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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
abcf57ab6d4d15a04c1638f383b4a50a17ea6a3c | setup.py | setup.py | from setuptools import setup
def readme():
with open('README.rst') as f:
return f.read()
setup(
name='hashdb2',
version='0.3',
description='HashDb2 provides a simple method for executing commands based on matched files',
long_description=readme(),
classifiers=[
'Development Stat... | from setuptools import setup
def readme():
with open('README.rst') as f:
return f.read()
setup(
name='hashdb2',
version='0.3',
description='HashDb2 provides a simple method for executing commands based on matched files',
long_description=readme(),
classifiers=[
'Development Stat... | Remove meta data around unsupported versions | Remove meta data around unsupported versions
| Python | apache-2.0 | WHenderson/HashDb | from setuptools import setup
def readme():
with open('README.rst') as f:
return f.read()
setup(
name='hashdb2',
version='0.3',
description='HashDb2 provides a simple method for executing commands based on matched files',
long_description=readme(),
classifiers=[
'Development Stat... | from setuptools import setup
def readme():
with open('README.rst') as f:
return f.read()
setup(
name='hashdb2',
version='0.3',
description='HashDb2 provides a simple method for executing commands based on matched files',
long_description=readme(),
classifiers=[
'Development Stat... | <commit_before>from setuptools import setup
def readme():
with open('README.rst') as f:
return f.read()
setup(
name='hashdb2',
version='0.3',
description='HashDb2 provides a simple method for executing commands based on matched files',
long_description=readme(),
classifiers=[
'D... | from setuptools import setup
def readme():
with open('README.rst') as f:
return f.read()
setup(
name='hashdb2',
version='0.3',
description='HashDb2 provides a simple method for executing commands based on matched files',
long_description=readme(),
classifiers=[
'Development Stat... | from setuptools import setup
def readme():
with open('README.rst') as f:
return f.read()
setup(
name='hashdb2',
version='0.3',
description='HashDb2 provides a simple method for executing commands based on matched files',
long_description=readme(),
classifiers=[
'Development Stat... | <commit_before>from setuptools import setup
def readme():
with open('README.rst') as f:
return f.read()
setup(
name='hashdb2',
version='0.3',
description='HashDb2 provides a simple method for executing commands based on matched files',
long_description=readme(),
classifiers=[
'D... |
2d5a45ecd7269c59ce7643dd1e4919a84ca16659 | setup.py | setup.py | from setuptools import setup, find_packages
from phonenumber_field import __version__
setup(
name="django-phonenumber-field",
version=__version__,
url='http://github.com/stefanfoulis/django-phonenumber-field',
license='BSD',
platforms=['OS Independent'],
description="An international phone num... | from setuptools import setup, find_packages
from phonenumber_field import __version__
setup(
name="django-phonenumber-field",
version=__version__,
url='http://github.com/stefanfoulis/django-phonenumber-field',
license='BSD',
platforms=['OS Independent'],
description="An international phone num... | Add python package install dependency | Add python package install dependency
Add babel as python package install dependency. Babel is used in
phonenumber_field.widget. | Python | mit | hwkns/django-phonenumber-field,bramd/django-phonenumber-field,ellmetha/django-phonenumber-field,thenewguy/django-phonenumber-field,hwkns/django-phonenumber-field,bramd/django-phonenumber-field,hovel/django-phonenumber-field,ellmetha/django-phonenumber-field,invalid-access/django-phonenumber-field,stefanfoulis/django-ph... | from setuptools import setup, find_packages
from phonenumber_field import __version__
setup(
name="django-phonenumber-field",
version=__version__,
url='http://github.com/stefanfoulis/django-phonenumber-field',
license='BSD',
platforms=['OS Independent'],
description="An international phone num... | from setuptools import setup, find_packages
from phonenumber_field import __version__
setup(
name="django-phonenumber-field",
version=__version__,
url='http://github.com/stefanfoulis/django-phonenumber-field',
license='BSD',
platforms=['OS Independent'],
description="An international phone num... | <commit_before>from setuptools import setup, find_packages
from phonenumber_field import __version__
setup(
name="django-phonenumber-field",
version=__version__,
url='http://github.com/stefanfoulis/django-phonenumber-field',
license='BSD',
platforms=['OS Independent'],
description="An internat... | from setuptools import setup, find_packages
from phonenumber_field import __version__
setup(
name="django-phonenumber-field",
version=__version__,
url='http://github.com/stefanfoulis/django-phonenumber-field',
license='BSD',
platforms=['OS Independent'],
description="An international phone num... | from setuptools import setup, find_packages
from phonenumber_field import __version__
setup(
name="django-phonenumber-field",
version=__version__,
url='http://github.com/stefanfoulis/django-phonenumber-field',
license='BSD',
platforms=['OS Independent'],
description="An international phone num... | <commit_before>from setuptools import setup, find_packages
from phonenumber_field import __version__
setup(
name="django-phonenumber-field",
version=__version__,
url='http://github.com/stefanfoulis/django-phonenumber-field',
license='BSD',
platforms=['OS Independent'],
description="An internat... |
45b23c04e68e50314bddb063aecf4df63edcbc7a | setup.py | setup.py | from setuptools import setup
setup(
name='runcalc',
version='0.1.1',
description='Running pace calculator',
author='Mike Patek',
author_email='[email protected]',
url='https://github.com/mpatek/runcalc',
download_url='https://github.com/mpatek/runcalc/tarball/0.1',
packages=['runcalc'],
... | from setuptools import setup
setup(
name='runcalc',
version='0.1.1',
description='Running pace calculator',
author='Mike Patek',
author_email='[email protected]',
url='https://github.com/mpatek/runcalc',
download_url='https://github.com/mpatek/runcalc/tarball/0.1.1',
packages=['runcalc']... | Increment version number in tarball | Increment version number in tarball
| Python | mit | mpatek/runcalc | from setuptools import setup
setup(
name='runcalc',
version='0.1.1',
description='Running pace calculator',
author='Mike Patek',
author_email='[email protected]',
url='https://github.com/mpatek/runcalc',
download_url='https://github.com/mpatek/runcalc/tarball/0.1',
packages=['runcalc'],
... | from setuptools import setup
setup(
name='runcalc',
version='0.1.1',
description='Running pace calculator',
author='Mike Patek',
author_email='[email protected]',
url='https://github.com/mpatek/runcalc',
download_url='https://github.com/mpatek/runcalc/tarball/0.1.1',
packages=['runcalc']... | <commit_before>from setuptools import setup
setup(
name='runcalc',
version='0.1.1',
description='Running pace calculator',
author='Mike Patek',
author_email='[email protected]',
url='https://github.com/mpatek/runcalc',
download_url='https://github.com/mpatek/runcalc/tarball/0.1',
package... | from setuptools import setup
setup(
name='runcalc',
version='0.1.1',
description='Running pace calculator',
author='Mike Patek',
author_email='[email protected]',
url='https://github.com/mpatek/runcalc',
download_url='https://github.com/mpatek/runcalc/tarball/0.1.1',
packages=['runcalc']... | from setuptools import setup
setup(
name='runcalc',
version='0.1.1',
description='Running pace calculator',
author='Mike Patek',
author_email='[email protected]',
url='https://github.com/mpatek/runcalc',
download_url='https://github.com/mpatek/runcalc/tarball/0.1',
packages=['runcalc'],
... | <commit_before>from setuptools import setup
setup(
name='runcalc',
version='0.1.1',
description='Running pace calculator',
author='Mike Patek',
author_email='[email protected]',
url='https://github.com/mpatek/runcalc',
download_url='https://github.com/mpatek/runcalc/tarball/0.1',
package... |
6b191243fee14e4703d42dc3fcc38c5c71ccffc9 | setup.py | setup.py | from setuptools import setup, PEP420PackageFinder
setup(
name='tangled.web',
version='1.0a13.dev0',
description='RESTful Web Framework',
long_description=open('README.rst').read(),
url='https://tangledframework.org/',
download_url='https://github.com/TangledWeb/tangled.web/tags',
author='W... | from setuptools import setup, PEP420PackageFinder
setup(
name='tangled.web',
version='1.0a13.dev0',
description='RESTful Web Framework',
long_description=open('README.rst').read(),
url='https://tangledframework.org/',
download_url='https://github.com/TangledWeb/tangled.web/tags',
author='W... | Remove shell console script from entry points | Remove shell console script from entry points
Amends e09ee16a77a7181fbf8ee18841be6ca37fd32250
| Python | mit | TangledWeb/tangled.web | from setuptools import setup, PEP420PackageFinder
setup(
name='tangled.web',
version='1.0a13.dev0',
description='RESTful Web Framework',
long_description=open('README.rst').read(),
url='https://tangledframework.org/',
download_url='https://github.com/TangledWeb/tangled.web/tags',
author='W... | from setuptools import setup, PEP420PackageFinder
setup(
name='tangled.web',
version='1.0a13.dev0',
description='RESTful Web Framework',
long_description=open('README.rst').read(),
url='https://tangledframework.org/',
download_url='https://github.com/TangledWeb/tangled.web/tags',
author='W... | <commit_before>from setuptools import setup, PEP420PackageFinder
setup(
name='tangled.web',
version='1.0a13.dev0',
description='RESTful Web Framework',
long_description=open('README.rst').read(),
url='https://tangledframework.org/',
download_url='https://github.com/TangledWeb/tangled.web/tags'... | from setuptools import setup, PEP420PackageFinder
setup(
name='tangled.web',
version='1.0a13.dev0',
description='RESTful Web Framework',
long_description=open('README.rst').read(),
url='https://tangledframework.org/',
download_url='https://github.com/TangledWeb/tangled.web/tags',
author='W... | from setuptools import setup, PEP420PackageFinder
setup(
name='tangled.web',
version='1.0a13.dev0',
description='RESTful Web Framework',
long_description=open('README.rst').read(),
url='https://tangledframework.org/',
download_url='https://github.com/TangledWeb/tangled.web/tags',
author='W... | <commit_before>from setuptools import setup, PEP420PackageFinder
setup(
name='tangled.web',
version='1.0a13.dev0',
description='RESTful Web Framework',
long_description=open('README.rst').read(),
url='https://tangledframework.org/',
download_url='https://github.com/TangledWeb/tangled.web/tags'... |
b68fbd9deefddac10328be172af4932e2149280a | setup.py | setup.py | # -*- coding: utf-8 -*-
import re
import ast
from setuptools import setup
_version_re = re.compile(r'__version__\s+=\s+(.*)')
with open('ipybind/__init__.py', 'rb') as f:
version = str(ast.literal_eval(_version_re.search(
f.read().decode('utf-8')).group(1)))
setup(
name='ipybind',
author='Ivan S... | # -*- coding: utf-8 -*-
import re
import ast
from setuptools import setup
_version_re = re.compile(r'__version__\s+=\s+(.*)')
with open('ipybind/__init__.py', 'rb') as f:
version = str(ast.literal_eval(_version_re.search(
f.read().decode('utf-8')).group(1)))
setup(
name='ipybind',
author='Ivan S... | Add ipybind.ext package to the manifest | Add ipybind.ext package to the manifest
| Python | mit | aldanor/ipybind,aldanor/ipybind,aldanor/ipybind | # -*- coding: utf-8 -*-
import re
import ast
from setuptools import setup
_version_re = re.compile(r'__version__\s+=\s+(.*)')
with open('ipybind/__init__.py', 'rb') as f:
version = str(ast.literal_eval(_version_re.search(
f.read().decode('utf-8')).group(1)))
setup(
name='ipybind',
author='Ivan S... | # -*- coding: utf-8 -*-
import re
import ast
from setuptools import setup
_version_re = re.compile(r'__version__\s+=\s+(.*)')
with open('ipybind/__init__.py', 'rb') as f:
version = str(ast.literal_eval(_version_re.search(
f.read().decode('utf-8')).group(1)))
setup(
name='ipybind',
author='Ivan S... | <commit_before># -*- coding: utf-8 -*-
import re
import ast
from setuptools import setup
_version_re = re.compile(r'__version__\s+=\s+(.*)')
with open('ipybind/__init__.py', 'rb') as f:
version = str(ast.literal_eval(_version_re.search(
f.read().decode('utf-8')).group(1)))
setup(
name='ipybind',
... | # -*- coding: utf-8 -*-
import re
import ast
from setuptools import setup
_version_re = re.compile(r'__version__\s+=\s+(.*)')
with open('ipybind/__init__.py', 'rb') as f:
version = str(ast.literal_eval(_version_re.search(
f.read().decode('utf-8')).group(1)))
setup(
name='ipybind',
author='Ivan S... | # -*- coding: utf-8 -*-
import re
import ast
from setuptools import setup
_version_re = re.compile(r'__version__\s+=\s+(.*)')
with open('ipybind/__init__.py', 'rb') as f:
version = str(ast.literal_eval(_version_re.search(
f.read().decode('utf-8')).group(1)))
setup(
name='ipybind',
author='Ivan S... | <commit_before># -*- coding: utf-8 -*-
import re
import ast
from setuptools import setup
_version_re = re.compile(r'__version__\s+=\s+(.*)')
with open('ipybind/__init__.py', 'rb') as f:
version = str(ast.literal_eval(_version_re.search(
f.read().decode('utf-8')).group(1)))
setup(
name='ipybind',
... |
d0fc566f2145d100cbfae864eade01c8163fdb97 | setup.py | setup.py | # -*- coding: utf-8 -*-
from distutils.core import setup
from setuptools import find_packages
setup(
name='django-tests-assistant',
version='0.1.2',
description= 'A tool to help keep track of tests, specially for you - developer.',
license='(AGPL v3+) GNU AFFERO GENERAL PUBLIC LICENSE Version 3 or late... | # -*- coding: utf-8 -*-
from distutils.core import setup
from setuptools import find_packages
setup(
name='django-tests-assistant',
version='0.2.0',
description= 'A tool to help keep track of tests, specially for you - developer.',
license='(AGPL v3+) GNU AFFERO GENERAL PUBLIC LICENSE Version 3 or late... | Package is now successfully getting integrated in a django project. So version increased | Package is now successfully getting integrated in a django project. So version increased
| Python | agpl-3.0 | tests-assistant/tests-assistant,tests-assistant/tests-assistant | # -*- coding: utf-8 -*-
from distutils.core import setup
from setuptools import find_packages
setup(
name='django-tests-assistant',
version='0.1.2',
description= 'A tool to help keep track of tests, specially for you - developer.',
license='(AGPL v3+) GNU AFFERO GENERAL PUBLIC LICENSE Version 3 or late... | # -*- coding: utf-8 -*-
from distutils.core import setup
from setuptools import find_packages
setup(
name='django-tests-assistant',
version='0.2.0',
description= 'A tool to help keep track of tests, specially for you - developer.',
license='(AGPL v3+) GNU AFFERO GENERAL PUBLIC LICENSE Version 3 or late... | <commit_before># -*- coding: utf-8 -*-
from distutils.core import setup
from setuptools import find_packages
setup(
name='django-tests-assistant',
version='0.1.2',
description= 'A tool to help keep track of tests, specially for you - developer.',
license='(AGPL v3+) GNU AFFERO GENERAL PUBLIC LICENSE Ve... | # -*- coding: utf-8 -*-
from distutils.core import setup
from setuptools import find_packages
setup(
name='django-tests-assistant',
version='0.2.0',
description= 'A tool to help keep track of tests, specially for you - developer.',
license='(AGPL v3+) GNU AFFERO GENERAL PUBLIC LICENSE Version 3 or late... | # -*- coding: utf-8 -*-
from distutils.core import setup
from setuptools import find_packages
setup(
name='django-tests-assistant',
version='0.1.2',
description= 'A tool to help keep track of tests, specially for you - developer.',
license='(AGPL v3+) GNU AFFERO GENERAL PUBLIC LICENSE Version 3 or late... | <commit_before># -*- coding: utf-8 -*-
from distutils.core import setup
from setuptools import find_packages
setup(
name='django-tests-assistant',
version='0.1.2',
description= 'A tool to help keep track of tests, specially for you - developer.',
license='(AGPL v3+) GNU AFFERO GENERAL PUBLIC LICENSE Ve... |
741776ce931eeb14156ca89f61ad94211d727eff | setup.py | setup.py | from setuptools import setup, find_packages
from sys import version_info
assert version_info >= (2,7)
setup(
name='molly',
version='2.0dev',
packages=find_packages(exclude=['tests']),
url='http://mollyproject.org/',
author='The Molly Project',
setup_requires=['setuptools'],
tests_require=[... | from setuptools import setup, find_packages
from sys import version_info
assert version_info >= (2,7)
setup(
name='molly',
version='2.0dev',
packages=find_packages(exclude=['tests']),
include_package_data=True,
url='http://mollyproject.org/',
author='The Molly Project',
setup_requires=['se... | Include templates, etc, with install | Include templates, etc, with install
| Python | apache-2.0 | ManchesterIO/mollyproject-next,ManchesterIO/mollyproject-next,ManchesterIO/mollyproject-next | from setuptools import setup, find_packages
from sys import version_info
assert version_info >= (2,7)
setup(
name='molly',
version='2.0dev',
packages=find_packages(exclude=['tests']),
url='http://mollyproject.org/',
author='The Molly Project',
setup_requires=['setuptools'],
tests_require=[... | from setuptools import setup, find_packages
from sys import version_info
assert version_info >= (2,7)
setup(
name='molly',
version='2.0dev',
packages=find_packages(exclude=['tests']),
include_package_data=True,
url='http://mollyproject.org/',
author='The Molly Project',
setup_requires=['se... | <commit_before>from setuptools import setup, find_packages
from sys import version_info
assert version_info >= (2,7)
setup(
name='molly',
version='2.0dev',
packages=find_packages(exclude=['tests']),
url='http://mollyproject.org/',
author='The Molly Project',
setup_requires=['setuptools'],
... | from setuptools import setup, find_packages
from sys import version_info
assert version_info >= (2,7)
setup(
name='molly',
version='2.0dev',
packages=find_packages(exclude=['tests']),
include_package_data=True,
url='http://mollyproject.org/',
author='The Molly Project',
setup_requires=['se... | from setuptools import setup, find_packages
from sys import version_info
assert version_info >= (2,7)
setup(
name='molly',
version='2.0dev',
packages=find_packages(exclude=['tests']),
url='http://mollyproject.org/',
author='The Molly Project',
setup_requires=['setuptools'],
tests_require=[... | <commit_before>from setuptools import setup, find_packages
from sys import version_info
assert version_info >= (2,7)
setup(
name='molly',
version='2.0dev',
packages=find_packages(exclude=['tests']),
url='http://mollyproject.org/',
author='The Molly Project',
setup_requires=['setuptools'],
... |
200f1727f16bcd903554346611afc976846f5896 | setup.py | setup.py | #!/usr/bin/env python
from distutils.core import setup
setup(
name='django-payfast',
version='0.2.2',
author='Mikhail Korobov',
author_email='[email protected]',
packages=['payfast', 'payfast.south_migrations'],
url='http://bitbucket.org/kmike/django-payfast/',
download_url = 'http://bitb... | #!/usr/bin/env python
from distutils.core import setup
setup(
name='django-payfast',
version='0.2.2',
author='Mikhail Korobov',
author_email='[email protected]',
packages=['payfast', 'payfast.south_migrations'],
url='http://bitbucket.org/kmike/django-payfast/',
download_url = 'http://bitb... | Package classifiers: Explicitly target Python 2.7 | Package classifiers: Explicitly target Python 2.7
| Python | mit | reinbach/django-payfast | #!/usr/bin/env python
from distutils.core import setup
setup(
name='django-payfast',
version='0.2.2',
author='Mikhail Korobov',
author_email='[email protected]',
packages=['payfast', 'payfast.south_migrations'],
url='http://bitbucket.org/kmike/django-payfast/',
download_url = 'http://bitb... | #!/usr/bin/env python
from distutils.core import setup
setup(
name='django-payfast',
version='0.2.2',
author='Mikhail Korobov',
author_email='[email protected]',
packages=['payfast', 'payfast.south_migrations'],
url='http://bitbucket.org/kmike/django-payfast/',
download_url = 'http://bitb... | <commit_before>#!/usr/bin/env python
from distutils.core import setup
setup(
name='django-payfast',
version='0.2.2',
author='Mikhail Korobov',
author_email='[email protected]',
packages=['payfast', 'payfast.south_migrations'],
url='http://bitbucket.org/kmike/django-payfast/',
download_url... | #!/usr/bin/env python
from distutils.core import setup
setup(
name='django-payfast',
version='0.2.2',
author='Mikhail Korobov',
author_email='[email protected]',
packages=['payfast', 'payfast.south_migrations'],
url='http://bitbucket.org/kmike/django-payfast/',
download_url = 'http://bitb... | #!/usr/bin/env python
from distutils.core import setup
setup(
name='django-payfast',
version='0.2.2',
author='Mikhail Korobov',
author_email='[email protected]',
packages=['payfast', 'payfast.south_migrations'],
url='http://bitbucket.org/kmike/django-payfast/',
download_url = 'http://bitb... | <commit_before>#!/usr/bin/env python
from distutils.core import setup
setup(
name='django-payfast',
version='0.2.2',
author='Mikhail Korobov',
author_email='[email protected]',
packages=['payfast', 'payfast.south_migrations'],
url='http://bitbucket.org/kmike/django-payfast/',
download_url... |
4e0e6b0d2586ea970da9980ab143488b82316da1 | setup.py | setup.py | import os
from setuptools import setup
from withtool import __version__
def read(fname):
path = os.path.join(os.path.dirname(__file__), fname)
with open(path, encoding='utf-8') as f:
return f.read()
setup(
name='with',
version=__version__,
description='A shell context manager',
lon... | import os
from setuptools import setup
from withtool import __version__
def read(fname):
path = os.path.join(os.path.dirname(__file__), fname)
with open(path, encoding='utf-8') as f:
return f.read()
setup(
name='with',
version=__version__,
description='A shell context manager',
lon... | Upgrade dependency appdirs to ==1.4.3 | Upgrade dependency appdirs to ==1.4.3
| Python | mit | renanivo/with | import os
from setuptools import setup
from withtool import __version__
def read(fname):
path = os.path.join(os.path.dirname(__file__), fname)
with open(path, encoding='utf-8') as f:
return f.read()
setup(
name='with',
version=__version__,
description='A shell context manager',
lon... | import os
from setuptools import setup
from withtool import __version__
def read(fname):
path = os.path.join(os.path.dirname(__file__), fname)
with open(path, encoding='utf-8') as f:
return f.read()
setup(
name='with',
version=__version__,
description='A shell context manager',
lon... | <commit_before>import os
from setuptools import setup
from withtool import __version__
def read(fname):
path = os.path.join(os.path.dirname(__file__), fname)
with open(path, encoding='utf-8') as f:
return f.read()
setup(
name='with',
version=__version__,
description='A shell context ma... | import os
from setuptools import setup
from withtool import __version__
def read(fname):
path = os.path.join(os.path.dirname(__file__), fname)
with open(path, encoding='utf-8') as f:
return f.read()
setup(
name='with',
version=__version__,
description='A shell context manager',
lon... | import os
from setuptools import setup
from withtool import __version__
def read(fname):
path = os.path.join(os.path.dirname(__file__), fname)
with open(path, encoding='utf-8') as f:
return f.read()
setup(
name='with',
version=__version__,
description='A shell context manager',
lon... | <commit_before>import os
from setuptools import setup
from withtool import __version__
def read(fname):
path = os.path.join(os.path.dirname(__file__), fname)
with open(path, encoding='utf-8') as f:
return f.read()
setup(
name='with',
version=__version__,
description='A shell context ma... |
5b7fd9974fab77c396288d0aefbc8b657e5b24d9 | setup.py | setup.py | from setuptools import setup
import os
def read(filename):
fin = None
data = None
try:
fin = open(filename)
data = fin.read()
finally:
if fin is not None:
fin.close()
return data
setup(
name='jstree',
version='0.1.1',
author='William Grim',
author_email='[email protected]',
ur... | from setuptools import setup
import os
def read(filename):
fin = None
data = None
try:
fin = open(filename)
data = fin.read()
finally:
if fin is not None:
fin.close()
return data
setup(
name='jstree',
version='0.1.2',
author='William Grim',
author_email='[email protected]',
ur... | Upgrade to v0.1.2 and properly add dictobj as an installation requirement. | Upgrade to v0.1.2 and properly add dictobj as an installation requirement.
| Python | apache-2.0 | grimwm/py-jstree,grimwm/py-jstree | from setuptools import setup
import os
def read(filename):
fin = None
data = None
try:
fin = open(filename)
data = fin.read()
finally:
if fin is not None:
fin.close()
return data
setup(
name='jstree',
version='0.1.1',
author='William Grim',
author_email='[email protected]',
ur... | from setuptools import setup
import os
def read(filename):
fin = None
data = None
try:
fin = open(filename)
data = fin.read()
finally:
if fin is not None:
fin.close()
return data
setup(
name='jstree',
version='0.1.2',
author='William Grim',
author_email='[email protected]',
ur... | <commit_before>from setuptools import setup
import os
def read(filename):
fin = None
data = None
try:
fin = open(filename)
data = fin.read()
finally:
if fin is not None:
fin.close()
return data
setup(
name='jstree',
version='0.1.1',
author='William Grim',
author_email='william@grim... | from setuptools import setup
import os
def read(filename):
fin = None
data = None
try:
fin = open(filename)
data = fin.read()
finally:
if fin is not None:
fin.close()
return data
setup(
name='jstree',
version='0.1.2',
author='William Grim',
author_email='[email protected]',
ur... | from setuptools import setup
import os
def read(filename):
fin = None
data = None
try:
fin = open(filename)
data = fin.read()
finally:
if fin is not None:
fin.close()
return data
setup(
name='jstree',
version='0.1.1',
author='William Grim',
author_email='[email protected]',
ur... | <commit_before>from setuptools import setup
import os
def read(filename):
fin = None
data = None
try:
fin = open(filename)
data = fin.read()
finally:
if fin is not None:
fin.close()
return data
setup(
name='jstree',
version='0.1.1',
author='William Grim',
author_email='william@grim... |
379eafd08e7e412c9abf88783f665e36e019fa23 | setup.py | setup.py | #!/usr/bin/env python
import os
from setuptools import setup, find_packages
name = 'Mikko Korpela'
# I might be just a little bit too much afraid of those bots..
address = name.lower().replace(' ', '.')+chr(64)+'gmail.com'
setup(name='robotframework-pabot',
version='1.2.1',
description='Parallel test run... | #!/usr/bin/env python
import os
from setuptools import setup, find_packages
name = 'Mikko Korpela'
# I might be just a little bit too much afraid of those bots..
address = name.lower().replace(' ', '.')+chr(64)+'gmail.com'
setup(name='robotframework-pabot',
version='1.2.1',
description='Parallel test run... | Revert "hide worker and coordinator" | Revert "hide worker and coordinator"
This reverts commit f73ce955ef6a2562f75f3311de279d43566dba08.
| Python | apache-2.0 | mkorpela/pabot,mkorpela/pabot | #!/usr/bin/env python
import os
from setuptools import setup, find_packages
name = 'Mikko Korpela'
# I might be just a little bit too much afraid of those bots..
address = name.lower().replace(' ', '.')+chr(64)+'gmail.com'
setup(name='robotframework-pabot',
version='1.2.1',
description='Parallel test run... | #!/usr/bin/env python
import os
from setuptools import setup, find_packages
name = 'Mikko Korpela'
# I might be just a little bit too much afraid of those bots..
address = name.lower().replace(' ', '.')+chr(64)+'gmail.com'
setup(name='robotframework-pabot',
version='1.2.1',
description='Parallel test run... | <commit_before>#!/usr/bin/env python
import os
from setuptools import setup, find_packages
name = 'Mikko Korpela'
# I might be just a little bit too much afraid of those bots..
address = name.lower().replace(' ', '.')+chr(64)+'gmail.com'
setup(name='robotframework-pabot',
version='1.2.1',
description='Pa... | #!/usr/bin/env python
import os
from setuptools import setup, find_packages
name = 'Mikko Korpela'
# I might be just a little bit too much afraid of those bots..
address = name.lower().replace(' ', '.')+chr(64)+'gmail.com'
setup(name='robotframework-pabot',
version='1.2.1',
description='Parallel test run... | #!/usr/bin/env python
import os
from setuptools import setup, find_packages
name = 'Mikko Korpela'
# I might be just a little bit too much afraid of those bots..
address = name.lower().replace(' ', '.')+chr(64)+'gmail.com'
setup(name='robotframework-pabot',
version='1.2.1',
description='Parallel test run... | <commit_before>#!/usr/bin/env python
import os
from setuptools import setup, find_packages
name = 'Mikko Korpela'
# I might be just a little bit too much afraid of those bots..
address = name.lower().replace(' ', '.')+chr(64)+'gmail.com'
setup(name='robotframework-pabot',
version='1.2.1',
description='Pa... |
2b241e537eca2ea0aab718a61cbdec4539d03fe4 | setup.py | setup.py | from setuptools import setup
setup(name='journal_dates',
packages=[''],
version='0.1',
description='Prints a monthly journal template',
url='http://github.com/bzamecnik/journal_dates.py',
author='Bohumir Zamecnik',
author_email='[email protected]',
license='MIT',
... | from setuptools import setup
setup(name='journal_dates',
packages=[''],
version='0.1',
description='Prints a monthly journal template',
url='http://github.com/bzamecnik/journal_dates',
author='Bohumir Zamecnik',
author_email='[email protected]',
license='MIT',
i... | Fix the github repo name. | Fix the github repo name.
| Python | mit | bzamecnik/journal_dates | from setuptools import setup
setup(name='journal_dates',
packages=[''],
version='0.1',
description='Prints a monthly journal template',
url='http://github.com/bzamecnik/journal_dates.py',
author='Bohumir Zamecnik',
author_email='[email protected]',
license='MIT',
... | from setuptools import setup
setup(name='journal_dates',
packages=[''],
version='0.1',
description='Prints a monthly journal template',
url='http://github.com/bzamecnik/journal_dates',
author='Bohumir Zamecnik',
author_email='[email protected]',
license='MIT',
i... | <commit_before>from setuptools import setup
setup(name='journal_dates',
packages=[''],
version='0.1',
description='Prints a monthly journal template',
url='http://github.com/bzamecnik/journal_dates.py',
author='Bohumir Zamecnik',
author_email='[email protected]',
lice... | from setuptools import setup
setup(name='journal_dates',
packages=[''],
version='0.1',
description='Prints a monthly journal template',
url='http://github.com/bzamecnik/journal_dates',
author='Bohumir Zamecnik',
author_email='[email protected]',
license='MIT',
i... | from setuptools import setup
setup(name='journal_dates',
packages=[''],
version='0.1',
description='Prints a monthly journal template',
url='http://github.com/bzamecnik/journal_dates.py',
author='Bohumir Zamecnik',
author_email='[email protected]',
license='MIT',
... | <commit_before>from setuptools import setup
setup(name='journal_dates',
packages=[''],
version='0.1',
description='Prints a monthly journal template',
url='http://github.com/bzamecnik/journal_dates.py',
author='Bohumir Zamecnik',
author_email='[email protected]',
lice... |
456aba54c0a0967cfca807fe193a959228a0576f | setup.py | setup.py | #!/usr/bin/env python2
from distutils.core import setup
import codecs
import os.path as path
cwd = path.dirname(__file__)
version = '0.0.0'
with codecs.open(path.join(cwd, 'mlbgame/version.py'), 'r', 'ascii') as f:
exec(f.read())
version = __version__
assert version != '0.0.0'
setup(
name='mlbgame',
... | #!/usr/bin/env python2
from distutils.core import setup
import codecs
import os.path as path
cwd = path.dirname(__file__)
version = '0.0.0'
with codecs.open(path.join(cwd, 'mlbgame/version.py'), 'r', 'ascii') as f:
exec(f.read())
version = __version__
assert version != '0.0.0'
install_requires = []
try:
... | Make sure urllib2 is installed | Make sure urllib2 is installed
| Python | mit | panzarino/mlbgame,zachpanz88/mlbgame | #!/usr/bin/env python2
from distutils.core import setup
import codecs
import os.path as path
cwd = path.dirname(__file__)
version = '0.0.0'
with codecs.open(path.join(cwd, 'mlbgame/version.py'), 'r', 'ascii') as f:
exec(f.read())
version = __version__
assert version != '0.0.0'
setup(
name='mlbgame',
... | #!/usr/bin/env python2
from distutils.core import setup
import codecs
import os.path as path
cwd = path.dirname(__file__)
version = '0.0.0'
with codecs.open(path.join(cwd, 'mlbgame/version.py'), 'r', 'ascii') as f:
exec(f.read())
version = __version__
assert version != '0.0.0'
install_requires = []
try:
... | <commit_before>#!/usr/bin/env python2
from distutils.core import setup
import codecs
import os.path as path
cwd = path.dirname(__file__)
version = '0.0.0'
with codecs.open(path.join(cwd, 'mlbgame/version.py'), 'r', 'ascii') as f:
exec(f.read())
version = __version__
assert version != '0.0.0'
setup(
name=... | #!/usr/bin/env python2
from distutils.core import setup
import codecs
import os.path as path
cwd = path.dirname(__file__)
version = '0.0.0'
with codecs.open(path.join(cwd, 'mlbgame/version.py'), 'r', 'ascii') as f:
exec(f.read())
version = __version__
assert version != '0.0.0'
install_requires = []
try:
... | #!/usr/bin/env python2
from distutils.core import setup
import codecs
import os.path as path
cwd = path.dirname(__file__)
version = '0.0.0'
with codecs.open(path.join(cwd, 'mlbgame/version.py'), 'r', 'ascii') as f:
exec(f.read())
version = __version__
assert version != '0.0.0'
setup(
name='mlbgame',
... | <commit_before>#!/usr/bin/env python2
from distutils.core import setup
import codecs
import os.path as path
cwd = path.dirname(__file__)
version = '0.0.0'
with codecs.open(path.join(cwd, 'mlbgame/version.py'), 'r', 'ascii') as f:
exec(f.read())
version = __version__
assert version != '0.0.0'
setup(
name=... |
f291359cec29752ad852002c532b683d278025f2 | setup.py | setup.py | import os
from setuptools import setup, find_packages
os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.settings'
setup(
name="django-nopassword",
version='1.3.1',
url='http://github.com/relekang/django-nopassword',
author='Rolf Erik Lekang',
author_email='[email protected]',
description='Authenti... | import os
from setuptools import setup, find_packages
os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.settings'
def _read_long_description():
try:
import pypandoc
return pypandoc.convert('README.md', 'rst')
except ImportError:
return None
setup(
name="django-nopassword",
versi... | Convert README.md to rst in long_description | Convert README.md to rst in long_description
| Python | mit | mjumbewu/django-nopassword,relekang/django-nopassword,mjumbewu/django-nopassword,relekang/django-nopassword | import os
from setuptools import setup, find_packages
os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.settings'
setup(
name="django-nopassword",
version='1.3.1',
url='http://github.com/relekang/django-nopassword',
author='Rolf Erik Lekang',
author_email='[email protected]',
description='Authenti... | import os
from setuptools import setup, find_packages
os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.settings'
def _read_long_description():
try:
import pypandoc
return pypandoc.convert('README.md', 'rst')
except ImportError:
return None
setup(
name="django-nopassword",
versi... | <commit_before>import os
from setuptools import setup, find_packages
os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.settings'
setup(
name="django-nopassword",
version='1.3.1',
url='http://github.com/relekang/django-nopassword',
author='Rolf Erik Lekang',
author_email='[email protected]',
descri... | import os
from setuptools import setup, find_packages
os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.settings'
def _read_long_description():
try:
import pypandoc
return pypandoc.convert('README.md', 'rst')
except ImportError:
return None
setup(
name="django-nopassword",
versi... | import os
from setuptools import setup, find_packages
os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.settings'
setup(
name="django-nopassword",
version='1.3.1',
url='http://github.com/relekang/django-nopassword',
author='Rolf Erik Lekang',
author_email='[email protected]',
description='Authenti... | <commit_before>import os
from setuptools import setup, find_packages
os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.settings'
setup(
name="django-nopassword",
version='1.3.1',
url='http://github.com/relekang/django-nopassword',
author='Rolf Erik Lekang',
author_email='[email protected]',
descri... |
a9709c70148368ead466b976136f89efeeaed8bc | setup.py | setup.py | from setuptools import setup, find_packages
setup(name='bmi-ilamb',
version=execfile('./bmi_ilamb/version.py'),
description='BMI for ILAMB',
long_description=open('README.md').read(),
url='https://github.com/permamodel/bmi-ilamb',
license='MIT',
author='Mark Piper',
author_em... | from setuptools import setup, find_packages
execfile('./bmi_ilamb/version.py')
setup(name='bmi-ilamb',
version=__version__,
description='BMI for ILAMB',
long_description=open('README.md').read(),
url='https://github.com/permamodel/bmi-ilamb',
license='MIT',
author='Mark Piper',
... | Fix error with setting version | Fix error with setting version
| Python | mit | permamodel/bmi-ilamb | from setuptools import setup, find_packages
setup(name='bmi-ilamb',
version=execfile('./bmi_ilamb/version.py'),
description='BMI for ILAMB',
long_description=open('README.md').read(),
url='https://github.com/permamodel/bmi-ilamb',
license='MIT',
author='Mark Piper',
author_em... | from setuptools import setup, find_packages
execfile('./bmi_ilamb/version.py')
setup(name='bmi-ilamb',
version=__version__,
description='BMI for ILAMB',
long_description=open('README.md').read(),
url='https://github.com/permamodel/bmi-ilamb',
license='MIT',
author='Mark Piper',
... | <commit_before>from setuptools import setup, find_packages
setup(name='bmi-ilamb',
version=execfile('./bmi_ilamb/version.py'),
description='BMI for ILAMB',
long_description=open('README.md').read(),
url='https://github.com/permamodel/bmi-ilamb',
license='MIT',
author='Mark Piper',
... | from setuptools import setup, find_packages
execfile('./bmi_ilamb/version.py')
setup(name='bmi-ilamb',
version=__version__,
description='BMI for ILAMB',
long_description=open('README.md').read(),
url='https://github.com/permamodel/bmi-ilamb',
license='MIT',
author='Mark Piper',
... | from setuptools import setup, find_packages
setup(name='bmi-ilamb',
version=execfile('./bmi_ilamb/version.py'),
description='BMI for ILAMB',
long_description=open('README.md').read(),
url='https://github.com/permamodel/bmi-ilamb',
license='MIT',
author='Mark Piper',
author_em... | <commit_before>from setuptools import setup, find_packages
setup(name='bmi-ilamb',
version=execfile('./bmi_ilamb/version.py'),
description='BMI for ILAMB',
long_description=open('README.md').read(),
url='https://github.com/permamodel/bmi-ilamb',
license='MIT',
author='Mark Piper',
... |
3b0479903c6ee13a5a6ab3d2fc96ae8c8566ed08 | setup.py | setup.py | from __future__ import print_function
import sys, os
from setuptools import setup, find_packages
with open('requirements.txt') as f:
INSTALL_REQUIRES = [l.strip() for l in f.readlines() if l]
try:
import numpy
except ImportError:
print('numpy is required during installation')
sys.exit(1)
try:
imp... | from __future__ import print_function
import sys, os
from setuptools import setup, find_packages
with open('requirements.txt') as f:
INSTALL_REQUIRES = [l.strip() for l in f.readlines() if l]
try:
import numpy
except ImportError:
print('numpy is required during installation')
sys.exit(1)
try:
imp... | Remove a debug statement (1/0.) | Remove a debug statement (1/0.)
| Python | mit | kpolimis/sklearn-forest-ci,uwescience/sklearn-forest-ci,arokem/sklearn-forest-ci,kpolimis/sklearn-forest-ci,scikit-learn-contrib/forest-confidence-interval,uwescience/sklearn-forest-ci,scikit-learn-contrib/forest-confidence-interval,arokem/sklearn-forest-ci | from __future__ import print_function
import sys, os
from setuptools import setup, find_packages
with open('requirements.txt') as f:
INSTALL_REQUIRES = [l.strip() for l in f.readlines() if l]
try:
import numpy
except ImportError:
print('numpy is required during installation')
sys.exit(1)
try:
imp... | from __future__ import print_function
import sys, os
from setuptools import setup, find_packages
with open('requirements.txt') as f:
INSTALL_REQUIRES = [l.strip() for l in f.readlines() if l]
try:
import numpy
except ImportError:
print('numpy is required during installation')
sys.exit(1)
try:
imp... | <commit_before>from __future__ import print_function
import sys, os
from setuptools import setup, find_packages
with open('requirements.txt') as f:
INSTALL_REQUIRES = [l.strip() for l in f.readlines() if l]
try:
import numpy
except ImportError:
print('numpy is required during installation')
sys.exit(1... | from __future__ import print_function
import sys, os
from setuptools import setup, find_packages
with open('requirements.txt') as f:
INSTALL_REQUIRES = [l.strip() for l in f.readlines() if l]
try:
import numpy
except ImportError:
print('numpy is required during installation')
sys.exit(1)
try:
imp... | from __future__ import print_function
import sys, os
from setuptools import setup, find_packages
with open('requirements.txt') as f:
INSTALL_REQUIRES = [l.strip() for l in f.readlines() if l]
try:
import numpy
except ImportError:
print('numpy is required during installation')
sys.exit(1)
try:
imp... | <commit_before>from __future__ import print_function
import sys, os
from setuptools import setup, find_packages
with open('requirements.txt') as f:
INSTALL_REQUIRES = [l.strip() for l in f.readlines() if l]
try:
import numpy
except ImportError:
print('numpy is required during installation')
sys.exit(1... |
ae463e9f27bd1266125d0d3d94dd88171df997d2 | setup.py | setup.py | #!/usr/bin/env python
from distutils.core import setup
setup(name='straight.plugin',
version='1.0',
description='A simple namespaced plugin facility',
author='Calvin Spealman',
author_email='[email protected]',
url='https://github.com/ironfroggy/straight.plugin',
packages=['stra... | #!/usr/bin/env python
from distutils.core import setup
setup(name='straight.plugin',
version='1.1.1',
description='A simple namespaced plugin facility',
author='Calvin Spealman',
author_email='[email protected]',
url='https://github.com/ironfroggy/straight.plugin',
packages=['st... | Mark version 1.1.1 with license. | Mark version 1.1.1 with license.
| Python | mit | ironfroggy/straight.plugin,pombredanne/straight.plugin | #!/usr/bin/env python
from distutils.core import setup
setup(name='straight.plugin',
version='1.0',
description='A simple namespaced plugin facility',
author='Calvin Spealman',
author_email='[email protected]',
url='https://github.com/ironfroggy/straight.plugin',
packages=['stra... | #!/usr/bin/env python
from distutils.core import setup
setup(name='straight.plugin',
version='1.1.1',
description='A simple namespaced plugin facility',
author='Calvin Spealman',
author_email='[email protected]',
url='https://github.com/ironfroggy/straight.plugin',
packages=['st... | <commit_before>#!/usr/bin/env python
from distutils.core import setup
setup(name='straight.plugin',
version='1.0',
description='A simple namespaced plugin facility',
author='Calvin Spealman',
author_email='[email protected]',
url='https://github.com/ironfroggy/straight.plugin',
... | #!/usr/bin/env python
from distutils.core import setup
setup(name='straight.plugin',
version='1.1.1',
description='A simple namespaced plugin facility',
author='Calvin Spealman',
author_email='[email protected]',
url='https://github.com/ironfroggy/straight.plugin',
packages=['st... | #!/usr/bin/env python
from distutils.core import setup
setup(name='straight.plugin',
version='1.0',
description='A simple namespaced plugin facility',
author='Calvin Spealman',
author_email='[email protected]',
url='https://github.com/ironfroggy/straight.plugin',
packages=['stra... | <commit_before>#!/usr/bin/env python
from distutils.core import setup
setup(name='straight.plugin',
version='1.0',
description='A simple namespaced plugin facility',
author='Calvin Spealman',
author_email='[email protected]',
url='https://github.com/ironfroggy/straight.plugin',
... |
6c70998c81dfe945ab82fdf0f2b99cb73ee1b031 | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name='myria-python',
version='1.1',
author='Daniel Halperin',
author_email='[email protected]',
packages=find_packages(),
scripts=[],
url='https://github.com/uwescience/myria',
description='Python interface for Myria.',
lon... | from setuptools import setup, find_packages
setup(
name='myria-python',
version='1.1',
author='Daniel Halperin',
author_email='[email protected]',
packages=find_packages(),
scripts=[],
url='https://github.com/uwescience/myria',
description='Python interface for Myria.',
lon... | Add upload file console script | Add upload file console script
| Python | bsd-3-clause | uwescience/myria-python,uwescience/myria-python | from setuptools import setup, find_packages
setup(
name='myria-python',
version='1.1',
author='Daniel Halperin',
author_email='[email protected]',
packages=find_packages(),
scripts=[],
url='https://github.com/uwescience/myria',
description='Python interface for Myria.',
lon... | from setuptools import setup, find_packages
setup(
name='myria-python',
version='1.1',
author='Daniel Halperin',
author_email='[email protected]',
packages=find_packages(),
scripts=[],
url='https://github.com/uwescience/myria',
description='Python interface for Myria.',
lon... | <commit_before>from setuptools import setup, find_packages
setup(
name='myria-python',
version='1.1',
author='Daniel Halperin',
author_email='[email protected]',
packages=find_packages(),
scripts=[],
url='https://github.com/uwescience/myria',
description='Python interface for M... | from setuptools import setup, find_packages
setup(
name='myria-python',
version='1.1',
author='Daniel Halperin',
author_email='[email protected]',
packages=find_packages(),
scripts=[],
url='https://github.com/uwescience/myria',
description='Python interface for Myria.',
lon... | from setuptools import setup, find_packages
setup(
name='myria-python',
version='1.1',
author='Daniel Halperin',
author_email='[email protected]',
packages=find_packages(),
scripts=[],
url='https://github.com/uwescience/myria',
description='Python interface for Myria.',
lon... | <commit_before>from setuptools import setup, find_packages
setup(
name='myria-python',
version='1.1',
author='Daniel Halperin',
author_email='[email protected]',
packages=find_packages(),
scripts=[],
url='https://github.com/uwescience/myria',
description='Python interface for M... |
9343fe5c269240d488a9a31016ab396f1df55c8e | setup.py | setup.py | from setuptools import setup, find_packages
from glob import glob
__author__ = 'shafferm'
__version__ = '0.1.1'
setup(
name="dada2_qiime1",
version=__version__,
install_requires=['rpy2 ==2.8', 'biom-format', 'numpy', 'qiime'],
scripts=glob("scripts/*.py"),
packages=find_packages(),
descriptio... | from setuptools import setup, find_packages
from glob import glob
__author__ = 'shafferm'
__version__ = '0.1.1'
setup(
name="dada2_qiime1",
version=__version__,
install_requires=['rpy2 ==2.8.5', 'biom-format', 'numpy', 'qiime'],
scripts=glob("scripts/*.py"),
packages=find_packages(),
descript... | Use rpy2 version available through conda (2.8.5) | Use rpy2 version available through conda (2.8.5) | Python | mit | shafferm/dada2_qiime1,shafferm/dada2_qiime1 | from setuptools import setup, find_packages
from glob import glob
__author__ = 'shafferm'
__version__ = '0.1.1'
setup(
name="dada2_qiime1",
version=__version__,
install_requires=['rpy2 ==2.8', 'biom-format', 'numpy', 'qiime'],
scripts=glob("scripts/*.py"),
packages=find_packages(),
descriptio... | from setuptools import setup, find_packages
from glob import glob
__author__ = 'shafferm'
__version__ = '0.1.1'
setup(
name="dada2_qiime1",
version=__version__,
install_requires=['rpy2 ==2.8.5', 'biom-format', 'numpy', 'qiime'],
scripts=glob("scripts/*.py"),
packages=find_packages(),
descript... | <commit_before>from setuptools import setup, find_packages
from glob import glob
__author__ = 'shafferm'
__version__ = '0.1.1'
setup(
name="dada2_qiime1",
version=__version__,
install_requires=['rpy2 ==2.8', 'biom-format', 'numpy', 'qiime'],
scripts=glob("scripts/*.py"),
packages=find_packages(),... | from setuptools import setup, find_packages
from glob import glob
__author__ = 'shafferm'
__version__ = '0.1.1'
setup(
name="dada2_qiime1",
version=__version__,
install_requires=['rpy2 ==2.8.5', 'biom-format', 'numpy', 'qiime'],
scripts=glob("scripts/*.py"),
packages=find_packages(),
descript... | from setuptools import setup, find_packages
from glob import glob
__author__ = 'shafferm'
__version__ = '0.1.1'
setup(
name="dada2_qiime1",
version=__version__,
install_requires=['rpy2 ==2.8', 'biom-format', 'numpy', 'qiime'],
scripts=glob("scripts/*.py"),
packages=find_packages(),
descriptio... | <commit_before>from setuptools import setup, find_packages
from glob import glob
__author__ = 'shafferm'
__version__ = '0.1.1'
setup(
name="dada2_qiime1",
version=__version__,
install_requires=['rpy2 ==2.8', 'biom-format', 'numpy', 'qiime'],
scripts=glob("scripts/*.py"),
packages=find_packages(),... |
e1319c52e55834a85bdd3242933f64f239e8b1d0 | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name='exchangerates',
version='0.2.0',
description="A module to make it easier to handle historical exchange rates",
long_description="",
classifiers=[
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
... | from setuptools import setup, find_packages
setup(
name='exchangerates',
version='0.3.0',
description="A module to make it easier to handle historical exchange rates",
long_description="",
classifiers=[
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
... | Update dependencies and version number, NB from the OECD rates for all dates are now included, not only those that fall before FERD rates | Update dependencies and version number, NB from the OECD rates for all dates are now included, not only those that fall before FERD rates
| Python | mit | markbrough/exchangerates | from setuptools import setup, find_packages
setup(
name='exchangerates',
version='0.2.0',
description="A module to make it easier to handle historical exchange rates",
long_description="",
classifiers=[
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
... | from setuptools import setup, find_packages
setup(
name='exchangerates',
version='0.3.0',
description="A module to make it easier to handle historical exchange rates",
long_description="",
classifiers=[
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
... | <commit_before>from setuptools import setup, find_packages
setup(
name='exchangerates',
version='0.2.0',
description="A module to make it easier to handle historical exchange rates",
long_description="",
classifiers=[
"Intended Audience :: Developers",
"License :: OSI Approved :: M... | from setuptools import setup, find_packages
setup(
name='exchangerates',
version='0.3.0',
description="A module to make it easier to handle historical exchange rates",
long_description="",
classifiers=[
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
... | from setuptools import setup, find_packages
setup(
name='exchangerates',
version='0.2.0',
description="A module to make it easier to handle historical exchange rates",
long_description="",
classifiers=[
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
... | <commit_before>from setuptools import setup, find_packages
setup(
name='exchangerates',
version='0.2.0',
description="A module to make it easier to handle historical exchange rates",
long_description="",
classifiers=[
"Intended Audience :: Developers",
"License :: OSI Approved :: M... |
97284a715fe2e062b6923e9fbb83a30972fe0a75 | setup.py | setup.py | from setuptools import setup
version = '0.2beta'
setup(
name='boilerpipy',
version=version,
description='Readability/Boilerpipe extractor in Python',
author='Harshavardhana',
author_email='[email protected]',
url='https://github.com/harshavardhana/boilerpipy.git',
license='Apache',... | from setuptools import setup
version = '0.2beta'
setup(
name='boilerpipy',
version=version,
description='Readability/Boilerpipe extractor in Python',
author='Harshavardhana',
author_email='[email protected]',
url='https://github.com/harshavardhana/boilerpipy.git',
license='Apache',... | Update license details according to pypi standards | Update license details according to pypi standards
| Python | apache-2.0 | harshavardhana/boilerpipy | from setuptools import setup
version = '0.2beta'
setup(
name='boilerpipy',
version=version,
description='Readability/Boilerpipe extractor in Python',
author='Harshavardhana',
author_email='[email protected]',
url='https://github.com/harshavardhana/boilerpipy.git',
license='Apache',... | from setuptools import setup
version = '0.2beta'
setup(
name='boilerpipy',
version=version,
description='Readability/Boilerpipe extractor in Python',
author='Harshavardhana',
author_email='[email protected]',
url='https://github.com/harshavardhana/boilerpipy.git',
license='Apache',... | <commit_before>from setuptools import setup
version = '0.2beta'
setup(
name='boilerpipy',
version=version,
description='Readability/Boilerpipe extractor in Python',
author='Harshavardhana',
author_email='[email protected]',
url='https://github.com/harshavardhana/boilerpipy.git',
li... | from setuptools import setup
version = '0.2beta'
setup(
name='boilerpipy',
version=version,
description='Readability/Boilerpipe extractor in Python',
author='Harshavardhana',
author_email='[email protected]',
url='https://github.com/harshavardhana/boilerpipy.git',
license='Apache',... | from setuptools import setup
version = '0.2beta'
setup(
name='boilerpipy',
version=version,
description='Readability/Boilerpipe extractor in Python',
author='Harshavardhana',
author_email='[email protected]',
url='https://github.com/harshavardhana/boilerpipy.git',
license='Apache',... | <commit_before>from setuptools import setup
version = '0.2beta'
setup(
name='boilerpipy',
version=version,
description='Readability/Boilerpipe extractor in Python',
author='Harshavardhana',
author_email='[email protected]',
url='https://github.com/harshavardhana/boilerpipy.git',
li... |
77f781d54a76eee5b1b47b57872593542e0a93bf | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name='pysummarize',
version='0.5.0',
description='Simple Python and NLTK-based implementation of text summarization',
url='https://github.com/despawnerer/summarize',
author='Aleksei Voronov',
author_email='[email protected]',
license='MIT',... | from setuptools import setup, find_packages
setup(
name='pysummarize',
version='0.5.0',
description='Simple Python and NLTK-based implementation of text summarization',
url='https://github.com/despawnerer/summarize',
author='Aleksei Voronov',
author_email='[email protected]',
license='MIT',... | Add English natural language classifier | Add English natural language classifier
| Python | mit | despawnerer/summarize | from setuptools import setup, find_packages
setup(
name='pysummarize',
version='0.5.0',
description='Simple Python and NLTK-based implementation of text summarization',
url='https://github.com/despawnerer/summarize',
author='Aleksei Voronov',
author_email='[email protected]',
license='MIT',... | from setuptools import setup, find_packages
setup(
name='pysummarize',
version='0.5.0',
description='Simple Python and NLTK-based implementation of text summarization',
url='https://github.com/despawnerer/summarize',
author='Aleksei Voronov',
author_email='[email protected]',
license='MIT',... | <commit_before>from setuptools import setup, find_packages
setup(
name='pysummarize',
version='0.5.0',
description='Simple Python and NLTK-based implementation of text summarization',
url='https://github.com/despawnerer/summarize',
author='Aleksei Voronov',
author_email='[email protected]',
... | from setuptools import setup, find_packages
setup(
name='pysummarize',
version='0.5.0',
description='Simple Python and NLTK-based implementation of text summarization',
url='https://github.com/despawnerer/summarize',
author='Aleksei Voronov',
author_email='[email protected]',
license='MIT',... | from setuptools import setup, find_packages
setup(
name='pysummarize',
version='0.5.0',
description='Simple Python and NLTK-based implementation of text summarization',
url='https://github.com/despawnerer/summarize',
author='Aleksei Voronov',
author_email='[email protected]',
license='MIT',... | <commit_before>from setuptools import setup, find_packages
setup(
name='pysummarize',
version='0.5.0',
description='Simple Python and NLTK-based implementation of text summarization',
url='https://github.com/despawnerer/summarize',
author='Aleksei Voronov',
author_email='[email protected]',
... |
a0aa52418658623044e22eaba7edb441b15e642c | setup.py | setup.py | #! /usr/bin/env python
from setuptools import setup, find_packages
setup(
name='armet',
version='0.3.0-pre',
description='Clean and modern framework for creating RESTful APIs.',
author='Concordus Applications',
author_email='[email protected]',
url='http://github.com/armet/python-armet... | #! /usr/bin/env python
from setuptools import setup, find_packages
setup(
name='armet',
version='0.3.0-pre',
description='Clean and modern framework for creating RESTful APIs.',
author='Concordus Applications',
author_email='[email protected]',
url='http://github.com/armet/python-armet... | Add wsgi_intercept to the dependencies list | Add wsgi_intercept to the dependencies list
| Python | mit | armet/python-armet | #! /usr/bin/env python
from setuptools import setup, find_packages
setup(
name='armet',
version='0.3.0-pre',
description='Clean and modern framework for creating RESTful APIs.',
author='Concordus Applications',
author_email='[email protected]',
url='http://github.com/armet/python-armet... | #! /usr/bin/env python
from setuptools import setup, find_packages
setup(
name='armet',
version='0.3.0-pre',
description='Clean and modern framework for creating RESTful APIs.',
author='Concordus Applications',
author_email='[email protected]',
url='http://github.com/armet/python-armet... | <commit_before>#! /usr/bin/env python
from setuptools import setup, find_packages
setup(
name='armet',
version='0.3.0-pre',
description='Clean and modern framework for creating RESTful APIs.',
author='Concordus Applications',
author_email='[email protected]',
url='http://github.com/arm... | #! /usr/bin/env python
from setuptools import setup, find_packages
setup(
name='armet',
version='0.3.0-pre',
description='Clean and modern framework for creating RESTful APIs.',
author='Concordus Applications',
author_email='[email protected]',
url='http://github.com/armet/python-armet... | #! /usr/bin/env python
from setuptools import setup, find_packages
setup(
name='armet',
version='0.3.0-pre',
description='Clean and modern framework for creating RESTful APIs.',
author='Concordus Applications',
author_email='[email protected]',
url='http://github.com/armet/python-armet... | <commit_before>#! /usr/bin/env python
from setuptools import setup, find_packages
setup(
name='armet',
version='0.3.0-pre',
description='Clean and modern framework for creating RESTful APIs.',
author='Concordus Applications',
author_email='[email protected]',
url='http://github.com/arm... |
70ce88c93054702713f4a636aa354ae806e757e5 | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name="seed-stage-based-messaging",
version="0.1",
url='http://github.com/praekelt/seed-stage-based-messaging',
license='BSD',
author='Praekelt Foundation',
author_email='[email protected]',
packages=find_packages(),
include_pac... | from setuptools import setup, find_packages
setup(
name="seed-stage-based-messaging",
version="0.1",
url='http://github.com/praekelt/seed-stage-based-messaging',
license='BSD',
author='Praekelt Foundation',
author_email='[email protected]',
packages=find_packages(),
include_pac... | Update filter. Review by @nicolaasdiebaas | Update filter. Review by @nicolaasdiebaas
| Python | bsd-3-clause | praekelt/seed-staged-based-messaging,praekelt/seed-stage-based-messaging,praekelt/seed-stage-based-messaging | from setuptools import setup, find_packages
setup(
name="seed-stage-based-messaging",
version="0.1",
url='http://github.com/praekelt/seed-stage-based-messaging',
license='BSD',
author='Praekelt Foundation',
author_email='[email protected]',
packages=find_packages(),
include_pac... | from setuptools import setup, find_packages
setup(
name="seed-stage-based-messaging",
version="0.1",
url='http://github.com/praekelt/seed-stage-based-messaging',
license='BSD',
author='Praekelt Foundation',
author_email='[email protected]',
packages=find_packages(),
include_pac... | <commit_before>from setuptools import setup, find_packages
setup(
name="seed-stage-based-messaging",
version="0.1",
url='http://github.com/praekelt/seed-stage-based-messaging',
license='BSD',
author='Praekelt Foundation',
author_email='[email protected]',
packages=find_packages(),
... | from setuptools import setup, find_packages
setup(
name="seed-stage-based-messaging",
version="0.1",
url='http://github.com/praekelt/seed-stage-based-messaging',
license='BSD',
author='Praekelt Foundation',
author_email='[email protected]',
packages=find_packages(),
include_pac... | from setuptools import setup, find_packages
setup(
name="seed-stage-based-messaging",
version="0.1",
url='http://github.com/praekelt/seed-stage-based-messaging',
license='BSD',
author='Praekelt Foundation',
author_email='[email protected]',
packages=find_packages(),
include_pac... | <commit_before>from setuptools import setup, find_packages
setup(
name="seed-stage-based-messaging",
version="0.1",
url='http://github.com/praekelt/seed-stage-based-messaging',
license='BSD',
author='Praekelt Foundation',
author_email='[email protected]',
packages=find_packages(),
... |
7b2d44cdc23ab8ec16113ff2aa8e0c7f5d98505c | setup.py | setup.py | """
Usage instructions:
- If you are installing: `python setup.py install`
- If you are developing: `python setup.py sdist bdist --format=zip bdist_wheel --universal`
"""
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except ImportError:
print('Failed to convert README to rst... | """
Usage instructions:
- If you are installing: `python setup.py install`
- If you are developing: `python setup.py sdist bdist --format=zip bdist_wheel --universal`
"""
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except ImportError:
try:
long_description = open('... | Bump version and make better attemp at generating README | Bump version and make better attemp at generating README
| Python | mit | boppreh/keyboard,glitchassassin/keyboard | """
Usage instructions:
- If you are installing: `python setup.py install`
- If you are developing: `python setup.py sdist bdist --format=zip bdist_wheel --universal`
"""
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except ImportError:
print('Failed to convert README to rst... | """
Usage instructions:
- If you are installing: `python setup.py install`
- If you are developing: `python setup.py sdist bdist --format=zip bdist_wheel --universal`
"""
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except ImportError:
try:
long_description = open('... | <commit_before>"""
Usage instructions:
- If you are installing: `python setup.py install`
- If you are developing: `python setup.py sdist bdist --format=zip bdist_wheel --universal`
"""
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except ImportError:
print('Failed to conver... | """
Usage instructions:
- If you are installing: `python setup.py install`
- If you are developing: `python setup.py sdist bdist --format=zip bdist_wheel --universal`
"""
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except ImportError:
try:
long_description = open('... | """
Usage instructions:
- If you are installing: `python setup.py install`
- If you are developing: `python setup.py sdist bdist --format=zip bdist_wheel --universal`
"""
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except ImportError:
print('Failed to convert README to rst... | <commit_before>"""
Usage instructions:
- If you are installing: `python setup.py install`
- If you are developing: `python setup.py sdist bdist --format=zip bdist_wheel --universal`
"""
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except ImportError:
print('Failed to conver... |
886eb01e87fa8decf821e6b560a6b57f4376644e | setup.py | setup.py | # coding: utf-8
# Author: Milan Kubik
from setuptools import setup, find_packages
with open('README.md') as f:
long_description = f.read()
setup(
name='ipaqe-dyndir',
version='0.1.4',
description='Ansible dynamic inventory for FreeIPA',
long_description=long_description,
keywords='freeipa te... | # coding: utf-8
# Author: Milan Kubik
from setuptools import setup, find_packages
with open('README.md') as f:
long_description = f.read()
setup(
name='ipaqe-dyndir',
version='0.2.0',
description='Ansible dynamic inventory for FreeIPA',
long_description=long_description,
keywords='freeipa te... | Increase the version to 0.2 | Increase the version to 0.2
An backward incompatible change was introduced by removing the package
names metadata from the inventory core.
If necessary, it is hereby advised to provide the metadata in other ways
supported by ansible, such as variables defined on role or playbook
level.
| Python | mit | apophys/ipaqe-dyndir | # coding: utf-8
# Author: Milan Kubik
from setuptools import setup, find_packages
with open('README.md') as f:
long_description = f.read()
setup(
name='ipaqe-dyndir',
version='0.1.4',
description='Ansible dynamic inventory for FreeIPA',
long_description=long_description,
keywords='freeipa te... | # coding: utf-8
# Author: Milan Kubik
from setuptools import setup, find_packages
with open('README.md') as f:
long_description = f.read()
setup(
name='ipaqe-dyndir',
version='0.2.0',
description='Ansible dynamic inventory for FreeIPA',
long_description=long_description,
keywords='freeipa te... | <commit_before># coding: utf-8
# Author: Milan Kubik
from setuptools import setup, find_packages
with open('README.md') as f:
long_description = f.read()
setup(
name='ipaqe-dyndir',
version='0.1.4',
description='Ansible dynamic inventory for FreeIPA',
long_description=long_description,
keywo... | # coding: utf-8
# Author: Milan Kubik
from setuptools import setup, find_packages
with open('README.md') as f:
long_description = f.read()
setup(
name='ipaqe-dyndir',
version='0.2.0',
description='Ansible dynamic inventory for FreeIPA',
long_description=long_description,
keywords='freeipa te... | # coding: utf-8
# Author: Milan Kubik
from setuptools import setup, find_packages
with open('README.md') as f:
long_description = f.read()
setup(
name='ipaqe-dyndir',
version='0.1.4',
description='Ansible dynamic inventory for FreeIPA',
long_description=long_description,
keywords='freeipa te... | <commit_before># coding: utf-8
# Author: Milan Kubik
from setuptools import setup, find_packages
with open('README.md') as f:
long_description = f.read()
setup(
name='ipaqe-dyndir',
version='0.1.4',
description='Ansible dynamic inventory for FreeIPA',
long_description=long_description,
keywo... |
62cddf84c9e46bb34c5f8320c0e739e38ebf5fec | setup.py | setup.py | # -*- coding: utf-8 -*-
from setuptools import setup
try:
from Cython.Build import cythonize
except ImportError:
CYTHON = False
else:
CYTHON = True
setup(
name='grako',
version='3.1.3-rc.1',
author='Juancarlo Añez',
author_email='[email protected]',
packages=['grako', 'grako.test'],
... | # -*- coding: utf-8 -*-
from setuptools import setup
try:
from Cython.Build import cythonize
except ImportError:
CYTHON = False
else:
CYTHON = True
setup(
name='grako',
version='3.1.3-rc.1',
author='Juancarlo Añez',
author_email='[email protected]',
packages=['grako', 'grako.codegen', ... | Include codegen package in distribution. | Include codegen package in distribution.
| Python | bsd-2-clause | vmuriart/grako,frnknglrt/grako | # -*- coding: utf-8 -*-
from setuptools import setup
try:
from Cython.Build import cythonize
except ImportError:
CYTHON = False
else:
CYTHON = True
setup(
name='grako',
version='3.1.3-rc.1',
author='Juancarlo Añez',
author_email='[email protected]',
packages=['grako', 'grako.test'],
... | # -*- coding: utf-8 -*-
from setuptools import setup
try:
from Cython.Build import cythonize
except ImportError:
CYTHON = False
else:
CYTHON = True
setup(
name='grako',
version='3.1.3-rc.1',
author='Juancarlo Añez',
author_email='[email protected]',
packages=['grako', 'grako.codegen', ... | <commit_before># -*- coding: utf-8 -*-
from setuptools import setup
try:
from Cython.Build import cythonize
except ImportError:
CYTHON = False
else:
CYTHON = True
setup(
name='grako',
version='3.1.3-rc.1',
author='Juancarlo Añez',
author_email='[email protected]',
packages=['grako', 'g... | # -*- coding: utf-8 -*-
from setuptools import setup
try:
from Cython.Build import cythonize
except ImportError:
CYTHON = False
else:
CYTHON = True
setup(
name='grako',
version='3.1.3-rc.1',
author='Juancarlo Añez',
author_email='[email protected]',
packages=['grako', 'grako.codegen', ... | # -*- coding: utf-8 -*-
from setuptools import setup
try:
from Cython.Build import cythonize
except ImportError:
CYTHON = False
else:
CYTHON = True
setup(
name='grako',
version='3.1.3-rc.1',
author='Juancarlo Añez',
author_email='[email protected]',
packages=['grako', 'grako.test'],
... | <commit_before># -*- coding: utf-8 -*-
from setuptools import setup
try:
from Cython.Build import cythonize
except ImportError:
CYTHON = False
else:
CYTHON = True
setup(
name='grako',
version='3.1.3-rc.1',
author='Juancarlo Añez',
author_email='[email protected]',
packages=['grako', 'g... |
74152918057a90799163ee31725916cd411b31bc | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
from setuptools import setup
import os.path
scripts = ['bpln', 'cbpn', 'mcmcbpn', 'sabpn']
scripts = [os.path.sep.join(('scripts', script)) for script in scripts]
setup(
name='BiologicalProcessNetworks',
version='0.1.0',
author='Christopher D. Lasher',
a... | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
from setuptools import setup
import os.path
scripts = ['bpln', 'cbpn', 'mcmcbpn', 'sabpn']
scripts = [os.path.sep.join(('scripts', script)) for script in scripts]
setup(
name='BiologicalProcessNetworks',
version='1.0a1',
author='Christopher D. Lasher',
a... | Make this the alpha release of 1.0. | Make this the alpha release of 1.0.
| Python | mit | gotgenes/BiologicalProcessNetworks | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
from setuptools import setup
import os.path
scripts = ['bpln', 'cbpn', 'mcmcbpn', 'sabpn']
scripts = [os.path.sep.join(('scripts', script)) for script in scripts]
setup(
name='BiologicalProcessNetworks',
version='0.1.0',
author='Christopher D. Lasher',
a... | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
from setuptools import setup
import os.path
scripts = ['bpln', 'cbpn', 'mcmcbpn', 'sabpn']
scripts = [os.path.sep.join(('scripts', script)) for script in scripts]
setup(
name='BiologicalProcessNetworks',
version='1.0a1',
author='Christopher D. Lasher',
a... | <commit_before>#!/usr/bin/env python
# -*- coding: UTF-8 -*-
from setuptools import setup
import os.path
scripts = ['bpln', 'cbpn', 'mcmcbpn', 'sabpn']
scripts = [os.path.sep.join(('scripts', script)) for script in scripts]
setup(
name='BiologicalProcessNetworks',
version='0.1.0',
author='Christopher D.... | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
from setuptools import setup
import os.path
scripts = ['bpln', 'cbpn', 'mcmcbpn', 'sabpn']
scripts = [os.path.sep.join(('scripts', script)) for script in scripts]
setup(
name='BiologicalProcessNetworks',
version='1.0a1',
author='Christopher D. Lasher',
a... | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
from setuptools import setup
import os.path
scripts = ['bpln', 'cbpn', 'mcmcbpn', 'sabpn']
scripts = [os.path.sep.join(('scripts', script)) for script in scripts]
setup(
name='BiologicalProcessNetworks',
version='0.1.0',
author='Christopher D. Lasher',
a... | <commit_before>#!/usr/bin/env python
# -*- coding: UTF-8 -*-
from setuptools import setup
import os.path
scripts = ['bpln', 'cbpn', 'mcmcbpn', 'sabpn']
scripts = [os.path.sep.join(('scripts', script)) for script in scripts]
setup(
name='BiologicalProcessNetworks',
version='0.1.0',
author='Christopher D.... |
6dcfacb5c76305bb227674eac6d926e54a26f45c | utils.py | utils.py | import platform
RUNNING_IN_HELL = platform.system() == 'Windows'
RUNNING_IN_STEVE_JOBS = platform.system() == 'Darwin'
RUNNING_IN_GANOO_LOONIX = platform.system() == 'Linux' | import platform
import io
from PyQt5.QtCore import *
from PyQt5.QtWidgets import *
from PyQt5.QtGui import *
RUNNING_IN_HELL = platform.system() == 'Windows'
RUNNING_IN_STEVE_JOBS = platform.system() == 'Darwin'
RUNNING_IN_GANOO_LOONIX = platform.system() == 'Linux'
def Pixmap2StringIO(pixmap):
byteArray = QBy... | Write Pixmap to a StringIO for uploading. | Write Pixmap to a StringIO for uploading.
| Python | mit | miniCruzer/postit-desktop | import platform
RUNNING_IN_HELL = platform.system() == 'Windows'
RUNNING_IN_STEVE_JOBS = platform.system() == 'Darwin'
RUNNING_IN_GANOO_LOONIX = platform.system() == 'Linux'Write Pixmap to a StringIO for uploading. | import platform
import io
from PyQt5.QtCore import *
from PyQt5.QtWidgets import *
from PyQt5.QtGui import *
RUNNING_IN_HELL = platform.system() == 'Windows'
RUNNING_IN_STEVE_JOBS = platform.system() == 'Darwin'
RUNNING_IN_GANOO_LOONIX = platform.system() == 'Linux'
def Pixmap2StringIO(pixmap):
byteArray = QBy... | <commit_before>import platform
RUNNING_IN_HELL = platform.system() == 'Windows'
RUNNING_IN_STEVE_JOBS = platform.system() == 'Darwin'
RUNNING_IN_GANOO_LOONIX = platform.system() == 'Linux'<commit_msg>Write Pixmap to a StringIO for uploading.<commit_after> | import platform
import io
from PyQt5.QtCore import *
from PyQt5.QtWidgets import *
from PyQt5.QtGui import *
RUNNING_IN_HELL = platform.system() == 'Windows'
RUNNING_IN_STEVE_JOBS = platform.system() == 'Darwin'
RUNNING_IN_GANOO_LOONIX = platform.system() == 'Linux'
def Pixmap2StringIO(pixmap):
byteArray = QBy... | import platform
RUNNING_IN_HELL = platform.system() == 'Windows'
RUNNING_IN_STEVE_JOBS = platform.system() == 'Darwin'
RUNNING_IN_GANOO_LOONIX = platform.system() == 'Linux'Write Pixmap to a StringIO for uploading.import platform
import io
from PyQt5.QtCore import *
from PyQt5.QtWidgets import *
from PyQt5.QtGui imp... | <commit_before>import platform
RUNNING_IN_HELL = platform.system() == 'Windows'
RUNNING_IN_STEVE_JOBS = platform.system() == 'Darwin'
RUNNING_IN_GANOO_LOONIX = platform.system() == 'Linux'<commit_msg>Write Pixmap to a StringIO for uploading.<commit_after>import platform
import io
from PyQt5.QtCore import *
from PyQt5... |
78d57a82383747b657522c35449d249cb17cd610 | 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 | brstrat/djangoappengine,Implisit/djangoappengine,potatolondon/djangoappengine-1-4,dwdraju/djangoappengine,potatolondon/djangoappengine-1-4,django-nonrel/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... |
6fabe58bda70c9f6f05a226585259d44b178d6de | tests/from_json_test.py | tests/from_json_test.py | from common import *
import tempfile
def test_from_json(ds_local):
df = ds_local
# Create temporary json files
pandas_df = df.to_pandas_df(df)
tmp = tempfile.mktemp('.json')
with open(tmp, 'w') as f:
f.write(pandas_df.to_json())
tmp_df = vaex.from_json(tmp, copy_index=False)
ass... | from common import *
import tempfile
def test_from_json(ds_local):
df = ds_local
# Create temporary json files
pandas_df = df.to_pandas_df(df)
tmp = tempfile.mktemp('.json')
with open(tmp, 'w') as f:
f.write(pandas_df.to_json())
tmp_df = vaex.from_json(tmp, copy_index=False)
ass... | Use set to compare elements between two lists (making them immutable) | Use set to compare elements between two lists (making them immutable)
| Python | mit | maartenbreddels/vaex,maartenbreddels/vaex,maartenbreddels/vaex,maartenbreddels/vaex,maartenbreddels/vaex,maartenbreddels/vaex | from common import *
import tempfile
def test_from_json(ds_local):
df = ds_local
# Create temporary json files
pandas_df = df.to_pandas_df(df)
tmp = tempfile.mktemp('.json')
with open(tmp, 'w') as f:
f.write(pandas_df.to_json())
tmp_df = vaex.from_json(tmp, copy_index=False)
ass... | from common import *
import tempfile
def test_from_json(ds_local):
df = ds_local
# Create temporary json files
pandas_df = df.to_pandas_df(df)
tmp = tempfile.mktemp('.json')
with open(tmp, 'w') as f:
f.write(pandas_df.to_json())
tmp_df = vaex.from_json(tmp, copy_index=False)
ass... | <commit_before>from common import *
import tempfile
def test_from_json(ds_local):
df = ds_local
# Create temporary json files
pandas_df = df.to_pandas_df(df)
tmp = tempfile.mktemp('.json')
with open(tmp, 'w') as f:
f.write(pandas_df.to_json())
tmp_df = vaex.from_json(tmp, copy_index=... | from common import *
import tempfile
def test_from_json(ds_local):
df = ds_local
# Create temporary json files
pandas_df = df.to_pandas_df(df)
tmp = tempfile.mktemp('.json')
with open(tmp, 'w') as f:
f.write(pandas_df.to_json())
tmp_df = vaex.from_json(tmp, copy_index=False)
ass... | from common import *
import tempfile
def test_from_json(ds_local):
df = ds_local
# Create temporary json files
pandas_df = df.to_pandas_df(df)
tmp = tempfile.mktemp('.json')
with open(tmp, 'w') as f:
f.write(pandas_df.to_json())
tmp_df = vaex.from_json(tmp, copy_index=False)
ass... | <commit_before>from common import *
import tempfile
def test_from_json(ds_local):
df = ds_local
# Create temporary json files
pandas_df = df.to_pandas_df(df)
tmp = tempfile.mktemp('.json')
with open(tmp, 'w') as f:
f.write(pandas_df.to_json())
tmp_df = vaex.from_json(tmp, copy_index=... |
84ebba9c7d9290a7c1b72e82c7ba99a1f3b0db9f | eli5/explain.py | eli5/explain.py | # -*- coding: utf-8 -*-
"""
Dispatch module. Explanation functions for conctere estimator classes
are defined in submodules.
"""
from singledispatch import singledispatch
@singledispatch
def explain_prediction(estimator, doc, **kwargs):
""" Return an explanation of an estimator """
return {
"estimator... | # -*- coding: utf-8 -*-
"""
Dispatch module. Explanation functions for conctere estimator classes
are defined in submodules.
"""
from singledispatch import singledispatch
from eli5.base import Explanation
@singledispatch
def explain_prediction(estimator, doc, **kwargs):
""" Return an explanation of an estimator ... | Fix return values of placeholder functions | Fix return values of placeholder functions
This allows to get nicer type completions in the IDE.
| Python | mit | TeamHG-Memex/eli5,TeamHG-Memex/eli5,TeamHG-Memex/eli5 | # -*- coding: utf-8 -*-
"""
Dispatch module. Explanation functions for conctere estimator classes
are defined in submodules.
"""
from singledispatch import singledispatch
@singledispatch
def explain_prediction(estimator, doc, **kwargs):
""" Return an explanation of an estimator """
return {
"estimator... | # -*- coding: utf-8 -*-
"""
Dispatch module. Explanation functions for conctere estimator classes
are defined in submodules.
"""
from singledispatch import singledispatch
from eli5.base import Explanation
@singledispatch
def explain_prediction(estimator, doc, **kwargs):
""" Return an explanation of an estimator ... | <commit_before># -*- coding: utf-8 -*-
"""
Dispatch module. Explanation functions for conctere estimator classes
are defined in submodules.
"""
from singledispatch import singledispatch
@singledispatch
def explain_prediction(estimator, doc, **kwargs):
""" Return an explanation of an estimator """
return {
... | # -*- coding: utf-8 -*-
"""
Dispatch module. Explanation functions for conctere estimator classes
are defined in submodules.
"""
from singledispatch import singledispatch
from eli5.base import Explanation
@singledispatch
def explain_prediction(estimator, doc, **kwargs):
""" Return an explanation of an estimator ... | # -*- coding: utf-8 -*-
"""
Dispatch module. Explanation functions for conctere estimator classes
are defined in submodules.
"""
from singledispatch import singledispatch
@singledispatch
def explain_prediction(estimator, doc, **kwargs):
""" Return an explanation of an estimator """
return {
"estimator... | <commit_before># -*- coding: utf-8 -*-
"""
Dispatch module. Explanation functions for conctere estimator classes
are defined in submodules.
"""
from singledispatch import singledispatch
@singledispatch
def explain_prediction(estimator, doc, **kwargs):
""" Return an explanation of an estimator """
return {
... |
28c326f61848e50bdc6a5e86fc790f8114bd0468 | rencon.py | rencon.py | #!/usr/bin/env python
import os
import sys
from string import Template
import argparse
import hashlib
if __name__ == "__main__":
parser = argparse.ArgumentParser(description='Rename files based on content.')
parser.add_argument('files', metavar='FILE', type=str, nargs='+',
help='Files ... | #!/usr/bin/env python
import os
import sys
from string import Template
import argparse
import hashlib
if __name__ == "__main__":
parser = argparse.ArgumentParser(description='Rename files based on content.')
parser.add_argument('files', metavar='FILE', type=str, nargs='+',
help='Files ... | Fix error when already renamed | Fix error when already renamed
| Python | mit | laurentb/rencon | #!/usr/bin/env python
import os
import sys
from string import Template
import argparse
import hashlib
if __name__ == "__main__":
parser = argparse.ArgumentParser(description='Rename files based on content.')
parser.add_argument('files', metavar='FILE', type=str, nargs='+',
help='Files ... | #!/usr/bin/env python
import os
import sys
from string import Template
import argparse
import hashlib
if __name__ == "__main__":
parser = argparse.ArgumentParser(description='Rename files based on content.')
parser.add_argument('files', metavar='FILE', type=str, nargs='+',
help='Files ... | <commit_before>#!/usr/bin/env python
import os
import sys
from string import Template
import argparse
import hashlib
if __name__ == "__main__":
parser = argparse.ArgumentParser(description='Rename files based on content.')
parser.add_argument('files', metavar='FILE', type=str, nargs='+',
... | #!/usr/bin/env python
import os
import sys
from string import Template
import argparse
import hashlib
if __name__ == "__main__":
parser = argparse.ArgumentParser(description='Rename files based on content.')
parser.add_argument('files', metavar='FILE', type=str, nargs='+',
help='Files ... | #!/usr/bin/env python
import os
import sys
from string import Template
import argparse
import hashlib
if __name__ == "__main__":
parser = argparse.ArgumentParser(description='Rename files based on content.')
parser.add_argument('files', metavar='FILE', type=str, nargs='+',
help='Files ... | <commit_before>#!/usr/bin/env python
import os
import sys
from string import Template
import argparse
import hashlib
if __name__ == "__main__":
parser = argparse.ArgumentParser(description='Rename files based on content.')
parser.add_argument('files', metavar='FILE', type=str, nargs='+',
... |
c6fa98931feaf9514b84ae979f32013ca345ef5f | saleor/product/views.py | saleor/product/views.py | from __future__ import unicode_literals
from django.http import HttpResponsePermanentRedirect
from django.contrib import messages
from django.shortcuts import get_object_or_404, redirect
from django.template.response import TemplateResponse
from django.utils.translation import ugettext as _
from .forms import get_for... | from __future__ import unicode_literals
from django.http import HttpResponsePermanentRedirect
from django.contrib import messages
from django.shortcuts import get_object_or_404, redirect
from django.template.response import TemplateResponse
from django.utils.translation import ugettext as _
from .forms import get_for... | Allow to use custom templates for products details pages | Allow to use custom templates for products details pages
| Python | bsd-3-clause | josesanch/saleor,car3oon/saleor,UITools/saleor,maferelo/saleor,avorio/saleor,tfroehlich82/saleor,avorio/saleor,laosunhust/saleor,KenMutemi/saleor,paweltin/saleor,mociepka/saleor,dashmug/saleor,HyperManTT/ECommerceSaleor,paweltin/saleor,HyperManTT/ECommerceSaleor,Drekscott/Motlaesaleor,taedori81/saleor,UITools/saleor,jo... | from __future__ import unicode_literals
from django.http import HttpResponsePermanentRedirect
from django.contrib import messages
from django.shortcuts import get_object_or_404, redirect
from django.template.response import TemplateResponse
from django.utils.translation import ugettext as _
from .forms import get_for... | from __future__ import unicode_literals
from django.http import HttpResponsePermanentRedirect
from django.contrib import messages
from django.shortcuts import get_object_or_404, redirect
from django.template.response import TemplateResponse
from django.utils.translation import ugettext as _
from .forms import get_for... | <commit_before>from __future__ import unicode_literals
from django.http import HttpResponsePermanentRedirect
from django.contrib import messages
from django.shortcuts import get_object_or_404, redirect
from django.template.response import TemplateResponse
from django.utils.translation import ugettext as _
from .forms... | from __future__ import unicode_literals
from django.http import HttpResponsePermanentRedirect
from django.contrib import messages
from django.shortcuts import get_object_or_404, redirect
from django.template.response import TemplateResponse
from django.utils.translation import ugettext as _
from .forms import get_for... | from __future__ import unicode_literals
from django.http import HttpResponsePermanentRedirect
from django.contrib import messages
from django.shortcuts import get_object_or_404, redirect
from django.template.response import TemplateResponse
from django.utils.translation import ugettext as _
from .forms import get_for... | <commit_before>from __future__ import unicode_literals
from django.http import HttpResponsePermanentRedirect
from django.contrib import messages
from django.shortcuts import get_object_or_404, redirect
from django.template.response import TemplateResponse
from django.utils.translation import ugettext as _
from .forms... |
5786942c88420be913705790489676780dcd9fc0 | nlppln/utils.py | nlppln/utils.py | """NLP pipeline utility functionality"""
import os
def remove_ext(fname):
"""Removes the extension from a filename
"""
bn = os.path.basename(fname)
return os.path.splitext(bn)[0]
def create_dirs(fname):
"""Create (output) directories if they don't exist
"""
fname = os.path.dirname(fname)
... | """NLP pipeline utility functionality"""
import os
def remove_ext(fname):
"""Removes the extension from a filename
"""
bn = os.path.basename(fname)
return os.path.splitext(bn)[0]
def create_dirs(fname):
"""Create (output) directories if they don't exist
"""
fname = os.path.dirname(os.path... | Update createdirs to determine the absolute path of files | Update createdirs to determine the absolute path of files
| Python | apache-2.0 | WhatWorksWhenForWhom/nlppln,WhatWorksWhenForWhom/nlppln,WhatWorksWhenForWhom/nlppln | """NLP pipeline utility functionality"""
import os
def remove_ext(fname):
"""Removes the extension from a filename
"""
bn = os.path.basename(fname)
return os.path.splitext(bn)[0]
def create_dirs(fname):
"""Create (output) directories if they don't exist
"""
fname = os.path.dirname(fname)
... | """NLP pipeline utility functionality"""
import os
def remove_ext(fname):
"""Removes the extension from a filename
"""
bn = os.path.basename(fname)
return os.path.splitext(bn)[0]
def create_dirs(fname):
"""Create (output) directories if they don't exist
"""
fname = os.path.dirname(os.path... | <commit_before>"""NLP pipeline utility functionality"""
import os
def remove_ext(fname):
"""Removes the extension from a filename
"""
bn = os.path.basename(fname)
return os.path.splitext(bn)[0]
def create_dirs(fname):
"""Create (output) directories if they don't exist
"""
fname = os.path.... | """NLP pipeline utility functionality"""
import os
def remove_ext(fname):
"""Removes the extension from a filename
"""
bn = os.path.basename(fname)
return os.path.splitext(bn)[0]
def create_dirs(fname):
"""Create (output) directories if they don't exist
"""
fname = os.path.dirname(os.path... | """NLP pipeline utility functionality"""
import os
def remove_ext(fname):
"""Removes the extension from a filename
"""
bn = os.path.basename(fname)
return os.path.splitext(bn)[0]
def create_dirs(fname):
"""Create (output) directories if they don't exist
"""
fname = os.path.dirname(fname)
... | <commit_before>"""NLP pipeline utility functionality"""
import os
def remove_ext(fname):
"""Removes the extension from a filename
"""
bn = os.path.basename(fname)
return os.path.splitext(bn)[0]
def create_dirs(fname):
"""Create (output) directories if they don't exist
"""
fname = os.path.... |
411117bf057e8835b6c9140b6a86b7ea85c6e80d | taskrunner/runners/result.py | taskrunner/runners/result.py |
class Result:
def __init__(self, return_code, stdout, stderr):
self.return_code = return_code
self.stdout = stdout
self.stderr = stderr
self.succeeded = self.return_code == 0
self.failed = not self.succeeded
self.stdout_lines = stdout.splitlines() if stdout else []
... | from ..util import cached_property
class Result:
def __init__(self, return_code, stdout, stderr):
self.return_code = return_code
self.stdout = stdout
self.stderr = stderr
self.succeeded = self.return_code == 0
self.failed = not self.succeeded
@cached_property
def ... | Make Result.stdout_lines and stderr_lines cached properties | Make Result.stdout_lines and stderr_lines cached properties
I guess it probably doesn't matter much for performance, but we might as
well avoid splitting output into lines eagerly since it's typically not
used.
| Python | mit | wylee/runcommands,wylee/runcommands |
class Result:
def __init__(self, return_code, stdout, stderr):
self.return_code = return_code
self.stdout = stdout
self.stderr = stderr
self.succeeded = self.return_code == 0
self.failed = not self.succeeded
self.stdout_lines = stdout.splitlines() if stdout else []
... | from ..util import cached_property
class Result:
def __init__(self, return_code, stdout, stderr):
self.return_code = return_code
self.stdout = stdout
self.stderr = stderr
self.succeeded = self.return_code == 0
self.failed = not self.succeeded
@cached_property
def ... | <commit_before>
class Result:
def __init__(self, return_code, stdout, stderr):
self.return_code = return_code
self.stdout = stdout
self.stderr = stderr
self.succeeded = self.return_code == 0
self.failed = not self.succeeded
self.stdout_lines = stdout.splitlines() if ... | from ..util import cached_property
class Result:
def __init__(self, return_code, stdout, stderr):
self.return_code = return_code
self.stdout = stdout
self.stderr = stderr
self.succeeded = self.return_code == 0
self.failed = not self.succeeded
@cached_property
def ... |
class Result:
def __init__(self, return_code, stdout, stderr):
self.return_code = return_code
self.stdout = stdout
self.stderr = stderr
self.succeeded = self.return_code == 0
self.failed = not self.succeeded
self.stdout_lines = stdout.splitlines() if stdout else []
... | <commit_before>
class Result:
def __init__(self, return_code, stdout, stderr):
self.return_code = return_code
self.stdout = stdout
self.stderr = stderr
self.succeeded = self.return_code == 0
self.failed = not self.succeeded
self.stdout_lines = stdout.splitlines() if ... |
ccd5c79d1a574fa4cc551675ae12d1e47e46c15d | chrome/test/chromeos/autotest/files/client/site_tests/desktopui_SyncIntegrationTests/desktopui_SyncIntegrationTests.py | chrome/test/chromeos/autotest/files/client/site_tests/desktopui_SyncIntegrationTests/desktopui_SyncIntegrationTests.py | # Copyright (c) 2010 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from autotest_lib.client.cros import chrome_test
class desktopui_SyncIntegrationTests(chrome_test.ChromeTestBase):
version = 1
def run_once(sel... | # Copyright (c) 2011 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from autotest_lib.client.cros import chrome_test
class desktopui_SyncIntegrationTests(chrome_test.ChromeTestBase):
version = 1
binary_to_run = ... | Make the sync integration tests self-contained on autotest | Make the sync integration tests self-contained on autotest
In the past, the sync integration tests used to require a password file
stored on every test device in order to do a gaia sign in using
production gaia servers. This caused the tests to be brittle.
As of today, the sync integration tests no longer rely on a p... | Python | bsd-3-clause | Crystalnix/house-of-life-chromium,adobe/chromium,gavinp/chromium,adobe/chromium,adobe/chromium,ropik/chromium,gavinp/chromium,yitian134/chromium,ropik/chromium,gavinp/chromium,Crystalnix/house-of-life-chromium,gavinp/chromium,yitian134/chromium,Crystalnix/house-of-life-chromium,yitian134/chromium,Crystalnix/house-of-li... | # Copyright (c) 2010 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from autotest_lib.client.cros import chrome_test
class desktopui_SyncIntegrationTests(chrome_test.ChromeTestBase):
version = 1
def run_once(sel... | # Copyright (c) 2011 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from autotest_lib.client.cros import chrome_test
class desktopui_SyncIntegrationTests(chrome_test.ChromeTestBase):
version = 1
binary_to_run = ... | <commit_before># Copyright (c) 2010 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from autotest_lib.client.cros import chrome_test
class desktopui_SyncIntegrationTests(chrome_test.ChromeTestBase):
version = 1
d... | # Copyright (c) 2011 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from autotest_lib.client.cros import chrome_test
class desktopui_SyncIntegrationTests(chrome_test.ChromeTestBase):
version = 1
binary_to_run = ... | # Copyright (c) 2010 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from autotest_lib.client.cros import chrome_test
class desktopui_SyncIntegrationTests(chrome_test.ChromeTestBase):
version = 1
def run_once(sel... | <commit_before># Copyright (c) 2010 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from autotest_lib.client.cros import chrome_test
class desktopui_SyncIntegrationTests(chrome_test.ChromeTestBase):
version = 1
d... |
00781ea2f2f03eb9229a055e65fc73b07122057c | ample/testing/__main__.py | ample/testing/__main__.py | """main routine for Ample testing"""
import os
import sys
from ample.util import exit_util, logging_util
from ample.testing import run_tests
logger = logging_util.setup_console_logging(formatstr='%(asctime)s - %(name)s - %(levelname)s - %(message)s')
###################################################################... | """main routine for Ample testing"""
import logging
import os
import sys
from ample.util import exit_util, logging_util
from ample.testing import run_tests
logger = logging_util.setup_console_logging(level=logging.CRITICAL, formatstr='%(asctime)s - %(name)s - %(levelname)s - %(message)s')
############################... | Change log level to CRITICAL | Change log level to CRITICAL
| Python | bsd-3-clause | linucks/ample,linucks/ample,rigdenlab/ample,rigdenlab/ample | """main routine for Ample testing"""
import os
import sys
from ample.util import exit_util, logging_util
from ample.testing import run_tests
logger = logging_util.setup_console_logging(formatstr='%(asctime)s - %(name)s - %(levelname)s - %(message)s')
###################################################################... | """main routine for Ample testing"""
import logging
import os
import sys
from ample.util import exit_util, logging_util
from ample.testing import run_tests
logger = logging_util.setup_console_logging(level=logging.CRITICAL, formatstr='%(asctime)s - %(name)s - %(levelname)s - %(message)s')
############################... | <commit_before>"""main routine for Ample testing"""
import os
import sys
from ample.util import exit_util, logging_util
from ample.testing import run_tests
logger = logging_util.setup_console_logging(formatstr='%(asctime)s - %(name)s - %(levelname)s - %(message)s')
####################################################... | """main routine for Ample testing"""
import logging
import os
import sys
from ample.util import exit_util, logging_util
from ample.testing import run_tests
logger = logging_util.setup_console_logging(level=logging.CRITICAL, formatstr='%(asctime)s - %(name)s - %(levelname)s - %(message)s')
############################... | """main routine for Ample testing"""
import os
import sys
from ample.util import exit_util, logging_util
from ample.testing import run_tests
logger = logging_util.setup_console_logging(formatstr='%(asctime)s - %(name)s - %(levelname)s - %(message)s')
###################################################################... | <commit_before>"""main routine for Ample testing"""
import os
import sys
from ample.util import exit_util, logging_util
from ample.testing import run_tests
logger = logging_util.setup_console_logging(formatstr='%(asctime)s - %(name)s - %(levelname)s - %(message)s')
####################################################... |
7deedcc1a4762b8156d8c52c42a90f94f501e6f1 | tests/integration/players.py | tests/integration/players.py | #!/usr/bin/env python
import urllib.parse
import urllib.request
def create_player(username, password, email):
url = 'http://localhost:3000/players'
values = {'username' : username,
'password' : password,
'email' : email }
data = urllib.parse.urlencode(values)
data = data... | #!/usr/bin/env python
import urllib.parse
import urllib.request
def create_player(username, password, email):
url = 'https://localhost:3000/players'
values = {'username' : username,
'password' : password,
'email' : email }
data = urllib.parse.urlencode(values)
data = dat... | Make integration test work again with usage of SSL | Make integration test work again with usage of SSL
| Python | mit | dropshot/dropshot-server | #!/usr/bin/env python
import urllib.parse
import urllib.request
def create_player(username, password, email):
url = 'http://localhost:3000/players'
values = {'username' : username,
'password' : password,
'email' : email }
data = urllib.parse.urlencode(values)
data = data... | #!/usr/bin/env python
import urllib.parse
import urllib.request
def create_player(username, password, email):
url = 'https://localhost:3000/players'
values = {'username' : username,
'password' : password,
'email' : email }
data = urllib.parse.urlencode(values)
data = dat... | <commit_before>#!/usr/bin/env python
import urllib.parse
import urllib.request
def create_player(username, password, email):
url = 'http://localhost:3000/players'
values = {'username' : username,
'password' : password,
'email' : email }
data = urllib.parse.urlencode(values)
... | #!/usr/bin/env python
import urllib.parse
import urllib.request
def create_player(username, password, email):
url = 'https://localhost:3000/players'
values = {'username' : username,
'password' : password,
'email' : email }
data = urllib.parse.urlencode(values)
data = dat... | #!/usr/bin/env python
import urllib.parse
import urllib.request
def create_player(username, password, email):
url = 'http://localhost:3000/players'
values = {'username' : username,
'password' : password,
'email' : email }
data = urllib.parse.urlencode(values)
data = data... | <commit_before>#!/usr/bin/env python
import urllib.parse
import urllib.request
def create_player(username, password, email):
url = 'http://localhost:3000/players'
values = {'username' : username,
'password' : password,
'email' : email }
data = urllib.parse.urlencode(values)
... |
1863c2cd57d2d09a8655ed15b741b1a038355321 | tests/util/get_passed_env.py | tests/util/get_passed_env.py | import os
from bonobo import Graph
def extract():
env_test_user = os.getenv('ENV_TEST_USER')
env_test_number = os.getenv('ENV_TEST_NUMBER')
env_test_string = os.getenv('ENV_TEST_STRING')
return env_test_user, env_test_number, env_test_string
def load(s: str):
print(s)
graph = Graph(extract, l... | import os
import bonobo
def extract():
env_test_user = os.getenv('ENV_TEST_USER')
env_test_number = os.getenv('ENV_TEST_NUMBER')
env_test_string = os.getenv('ENV_TEST_STRING')
return env_test_user, env_test_number, env_test_string
def load(s: str):
print(s)
graph = bonobo.Graph(extract, load)... | Change import style in example. | Change import style in example.
| Python | apache-2.0 | python-bonobo/bonobo,hartym/bonobo,hartym/bonobo,python-bonobo/bonobo,hartym/bonobo,python-bonobo/bonobo | import os
from bonobo import Graph
def extract():
env_test_user = os.getenv('ENV_TEST_USER')
env_test_number = os.getenv('ENV_TEST_NUMBER')
env_test_string = os.getenv('ENV_TEST_STRING')
return env_test_user, env_test_number, env_test_string
def load(s: str):
print(s)
graph = Graph(extract, l... | import os
import bonobo
def extract():
env_test_user = os.getenv('ENV_TEST_USER')
env_test_number = os.getenv('ENV_TEST_NUMBER')
env_test_string = os.getenv('ENV_TEST_STRING')
return env_test_user, env_test_number, env_test_string
def load(s: str):
print(s)
graph = bonobo.Graph(extract, load)... | <commit_before>import os
from bonobo import Graph
def extract():
env_test_user = os.getenv('ENV_TEST_USER')
env_test_number = os.getenv('ENV_TEST_NUMBER')
env_test_string = os.getenv('ENV_TEST_STRING')
return env_test_user, env_test_number, env_test_string
def load(s: str):
print(s)
graph = G... | import os
import bonobo
def extract():
env_test_user = os.getenv('ENV_TEST_USER')
env_test_number = os.getenv('ENV_TEST_NUMBER')
env_test_string = os.getenv('ENV_TEST_STRING')
return env_test_user, env_test_number, env_test_string
def load(s: str):
print(s)
graph = bonobo.Graph(extract, load)... | import os
from bonobo import Graph
def extract():
env_test_user = os.getenv('ENV_TEST_USER')
env_test_number = os.getenv('ENV_TEST_NUMBER')
env_test_string = os.getenv('ENV_TEST_STRING')
return env_test_user, env_test_number, env_test_string
def load(s: str):
print(s)
graph = Graph(extract, l... | <commit_before>import os
from bonobo import Graph
def extract():
env_test_user = os.getenv('ENV_TEST_USER')
env_test_number = os.getenv('ENV_TEST_NUMBER')
env_test_string = os.getenv('ENV_TEST_STRING')
return env_test_user, env_test_number, env_test_string
def load(s: str):
print(s)
graph = G... |
b2a2cd52d221b377af57b649d66c0df5e44b7712 | src/mist/io/tests/features/environment.py | src/mist/io/tests/features/environment.py | import os
import random
from shutil import copyfile
from behaving import environment as benv
from behaving.web.steps import *
from behaving.personas.steps import *
from test_config import CREDENTIALS, MISTCREDS, TESTNAMES
PERSONAS = {
'NinjaTester': dict(
creds=CREDENTIALS,
mistcreds=MISTCREDS,
... | import os
import random
from shutil import copyfile
from behaving import environment as benv
from behaving.web.steps import *
from behaving.personas.steps import *
try:
from test_config import CREDENTIALS, MISTCREDS, TESTNAMES
PERSONAS = {
'NinjaTester': dict(
creds=CREDENTIALS,
... | Fix auto importing test_config if it is not there | Fix auto importing test_config if it is not there
| Python | agpl-3.0 | DimensionDataCBUSydney/mist.io,kelonye/mist.io,Lao-liu/mist.io,munkiat/mist.io,zBMNForks/mist.io,johnnyWalnut/mist.io,afivos/mist.io,Lao-liu/mist.io,Lao-liu/mist.io,DimensionDataCBUSydney/mist.io,johnnyWalnut/mist.io,munkiat/mist.io,zBMNForks/mist.io,kelonye/mist.io,afivos/mist.io,afivos/mist.io,munkiat/mist.io,munkiat... | import os
import random
from shutil import copyfile
from behaving import environment as benv
from behaving.web.steps import *
from behaving.personas.steps import *
from test_config import CREDENTIALS, MISTCREDS, TESTNAMES
PERSONAS = {
'NinjaTester': dict(
creds=CREDENTIALS,
mistcreds=MISTCREDS,
... | import os
import random
from shutil import copyfile
from behaving import environment as benv
from behaving.web.steps import *
from behaving.personas.steps import *
try:
from test_config import CREDENTIALS, MISTCREDS, TESTNAMES
PERSONAS = {
'NinjaTester': dict(
creds=CREDENTIALS,
... | <commit_before>import os
import random
from shutil import copyfile
from behaving import environment as benv
from behaving.web.steps import *
from behaving.personas.steps import *
from test_config import CREDENTIALS, MISTCREDS, TESTNAMES
PERSONAS = {
'NinjaTester': dict(
creds=CREDENTIALS,
mistcre... | import os
import random
from shutil import copyfile
from behaving import environment as benv
from behaving.web.steps import *
from behaving.personas.steps import *
try:
from test_config import CREDENTIALS, MISTCREDS, TESTNAMES
PERSONAS = {
'NinjaTester': dict(
creds=CREDENTIALS,
... | import os
import random
from shutil import copyfile
from behaving import environment as benv
from behaving.web.steps import *
from behaving.personas.steps import *
from test_config import CREDENTIALS, MISTCREDS, TESTNAMES
PERSONAS = {
'NinjaTester': dict(
creds=CREDENTIALS,
mistcreds=MISTCREDS,
... | <commit_before>import os
import random
from shutil import copyfile
from behaving import environment as benv
from behaving.web.steps import *
from behaving.personas.steps import *
from test_config import CREDENTIALS, MISTCREDS, TESTNAMES
PERSONAS = {
'NinjaTester': dict(
creds=CREDENTIALS,
mistcre... |
0ea397c635983ed23dd3b8df8cbeb4d64f35404e | lib/event.py | lib/event.py | # For determining hostname
import socket
import logging
log = logging.getLogger(__name__)
class Events():
def __init__(self):
self.events = []
def add(self, service, state, description, ttl, tags=None, metric=None, hostname=socket.gethostname()):
event = {}
event['service'] = service
event['state'] = state... | # For determining hostname
import socket
import logging
log = logging.getLogger(__name__)
class Events():
def __init__(self):
self.events = []
def add(self, service, state, description, ttl, tags=None, metric=None, host=socket.gethostname()):
event = {}
event['service'] = service
event['state'] = state
e... | Fix fieldname mapping for riemann (should be host, not hostname) | Fix fieldname mapping for riemann (should be host, not hostname)
| Python | mit | crashlytics/riemann-sumd | # For determining hostname
import socket
import logging
log = logging.getLogger(__name__)
class Events():
def __init__(self):
self.events = []
def add(self, service, state, description, ttl, tags=None, metric=None, hostname=socket.gethostname()):
event = {}
event['service'] = service
event['state'] = state... | # For determining hostname
import socket
import logging
log = logging.getLogger(__name__)
class Events():
def __init__(self):
self.events = []
def add(self, service, state, description, ttl, tags=None, metric=None, host=socket.gethostname()):
event = {}
event['service'] = service
event['state'] = state
e... | <commit_before># For determining hostname
import socket
import logging
log = logging.getLogger(__name__)
class Events():
def __init__(self):
self.events = []
def add(self, service, state, description, ttl, tags=None, metric=None, hostname=socket.gethostname()):
event = {}
event['service'] = service
event['... | # For determining hostname
import socket
import logging
log = logging.getLogger(__name__)
class Events():
def __init__(self):
self.events = []
def add(self, service, state, description, ttl, tags=None, metric=None, host=socket.gethostname()):
event = {}
event['service'] = service
event['state'] = state
e... | # For determining hostname
import socket
import logging
log = logging.getLogger(__name__)
class Events():
def __init__(self):
self.events = []
def add(self, service, state, description, ttl, tags=None, metric=None, hostname=socket.gethostname()):
event = {}
event['service'] = service
event['state'] = state... | <commit_before># For determining hostname
import socket
import logging
log = logging.getLogger(__name__)
class Events():
def __init__(self):
self.events = []
def add(self, service, state, description, ttl, tags=None, metric=None, hostname=socket.gethostname()):
event = {}
event['service'] = service
event['... |
32b8a5d9f18a673c621c8543848f5163dfe24393 | cobs2/__init__.py | cobs2/__init__.py | """
Consistent Overhead Byte Stuffing (COBS) encoding and decoding.
Functions are provided for encoding and decoding according to
the basic COBS method.
The COBS variant "Zero Pair Elimination" (ZPE) is not
implemented.
A C extension implementation only is provided.
References:
http://www.stuartcheshire.org/pap... | """
Consistent Overhead Byte Stuffing (COBS) encoding and decoding.
Functions are provided for encoding and decoding according to
the basic COBS method.
The COBS variant "Zero Pair Elimination" (ZPE) is not
implemented.
A pure Python implementation and a C extension implementation
are provided. If the C extension is... | Change Python 2.x import to fall-back to pure Python code if it can't load the C extension. | Change Python 2.x import to fall-back to pure Python code if it can't load the C extension.
| Python | mit | cmcqueen/cobs-python,cmcqueen/cobs-python | """
Consistent Overhead Byte Stuffing (COBS) encoding and decoding.
Functions are provided for encoding and decoding according to
the basic COBS method.
The COBS variant "Zero Pair Elimination" (ZPE) is not
implemented.
A C extension implementation only is provided.
References:
http://www.stuartcheshire.org/pap... | """
Consistent Overhead Byte Stuffing (COBS) encoding and decoding.
Functions are provided for encoding and decoding according to
the basic COBS method.
The COBS variant "Zero Pair Elimination" (ZPE) is not
implemented.
A pure Python implementation and a C extension implementation
are provided. If the C extension is... | <commit_before>"""
Consistent Overhead Byte Stuffing (COBS) encoding and decoding.
Functions are provided for encoding and decoding according to
the basic COBS method.
The COBS variant "Zero Pair Elimination" (ZPE) is not
implemented.
A C extension implementation only is provided.
References:
http://www.stuartc... | """
Consistent Overhead Byte Stuffing (COBS) encoding and decoding.
Functions are provided for encoding and decoding according to
the basic COBS method.
The COBS variant "Zero Pair Elimination" (ZPE) is not
implemented.
A pure Python implementation and a C extension implementation
are provided. If the C extension is... | """
Consistent Overhead Byte Stuffing (COBS) encoding and decoding.
Functions are provided for encoding and decoding according to
the basic COBS method.
The COBS variant "Zero Pair Elimination" (ZPE) is not
implemented.
A C extension implementation only is provided.
References:
http://www.stuartcheshire.org/pap... | <commit_before>"""
Consistent Overhead Byte Stuffing (COBS) encoding and decoding.
Functions are provided for encoding and decoding according to
the basic COBS method.
The COBS variant "Zero Pair Elimination" (ZPE) is not
implemented.
A C extension implementation only is provided.
References:
http://www.stuartc... |
326e7ba1378b691ad6323c2559686f0c4d97b45f | flowgen/core.py | flowgen/core.py | # -*- coding: utf-8 -*-
from flowgen.graph import Graph
from flowgen.language import Code
from flowgen.options import parser
from pypeg2 import parse
from pypeg2.xmlast import thing2xml
class FlowGen(object):
def __init__(self, args):
self.args = parser.parse_args(args)
def any_output(self):
... | # -*- coding: utf-8 -*-
from __future__ import print_function
from flowgen.graph import Graph
from flowgen.language import Code
from flowgen.options import parser
from pypeg2 import parse
from pypeg2.xmlast import thing2xml
class FlowGen(object):
def __init__(self, args):
self.args = parser.parse_args(arg... | Update py27 compatibility in print function | Update py27 compatibility in print function
| Python | mit | ad-m/flowgen | # -*- coding: utf-8 -*-
from flowgen.graph import Graph
from flowgen.language import Code
from flowgen.options import parser
from pypeg2 import parse
from pypeg2.xmlast import thing2xml
class FlowGen(object):
def __init__(self, args):
self.args = parser.parse_args(args)
def any_output(self):
... | # -*- coding: utf-8 -*-
from __future__ import print_function
from flowgen.graph import Graph
from flowgen.language import Code
from flowgen.options import parser
from pypeg2 import parse
from pypeg2.xmlast import thing2xml
class FlowGen(object):
def __init__(self, args):
self.args = parser.parse_args(arg... | <commit_before># -*- coding: utf-8 -*-
from flowgen.graph import Graph
from flowgen.language import Code
from flowgen.options import parser
from pypeg2 import parse
from pypeg2.xmlast import thing2xml
class FlowGen(object):
def __init__(self, args):
self.args = parser.parse_args(args)
def any_output(... | # -*- coding: utf-8 -*-
from __future__ import print_function
from flowgen.graph import Graph
from flowgen.language import Code
from flowgen.options import parser
from pypeg2 import parse
from pypeg2.xmlast import thing2xml
class FlowGen(object):
def __init__(self, args):
self.args = parser.parse_args(arg... | # -*- coding: utf-8 -*-
from flowgen.graph import Graph
from flowgen.language import Code
from flowgen.options import parser
from pypeg2 import parse
from pypeg2.xmlast import thing2xml
class FlowGen(object):
def __init__(self, args):
self.args = parser.parse_args(args)
def any_output(self):
... | <commit_before># -*- coding: utf-8 -*-
from flowgen.graph import Graph
from flowgen.language import Code
from flowgen.options import parser
from pypeg2 import parse
from pypeg2.xmlast import thing2xml
class FlowGen(object):
def __init__(self, args):
self.args = parser.parse_args(args)
def any_output(... |
2c56045f95f8efd8ff52e5151b24cfaa275660e8 | forum/models.py | forum/models.py | from django.db import models
import django.contrib.auth.models as auth
class User(auth.User):
"""Model for representing users.
It has few fields that aren't in the standard authentication user
table, and are needed for the forum to work, like footers.
"""
display_name = models.CharField(max_length... | from django.db import models
import django.contrib.auth.models as auth
class User(auth.User):
"""Model for representing users.
It has few fields that aren't in the standard authentication user
table, and are needed for the forum to work, like footers.
"""
display_name = models.CharField(max_length... | Create model for post revisions. | Create model for post revisions.
| Python | mit | xfix/NextBoard | from django.db import models
import django.contrib.auth.models as auth
class User(auth.User):
"""Model for representing users.
It has few fields that aren't in the standard authentication user
table, and are needed for the forum to work, like footers.
"""
display_name = models.CharField(max_length... | from django.db import models
import django.contrib.auth.models as auth
class User(auth.User):
"""Model for representing users.
It has few fields that aren't in the standard authentication user
table, and are needed for the forum to work, like footers.
"""
display_name = models.CharField(max_length... | <commit_before>from django.db import models
import django.contrib.auth.models as auth
class User(auth.User):
"""Model for representing users.
It has few fields that aren't in the standard authentication user
table, and are needed for the forum to work, like footers.
"""
display_name = models.CharF... | from django.db import models
import django.contrib.auth.models as auth
class User(auth.User):
"""Model for representing users.
It has few fields that aren't in the standard authentication user
table, and are needed for the forum to work, like footers.
"""
display_name = models.CharField(max_length... | from django.db import models
import django.contrib.auth.models as auth
class User(auth.User):
"""Model for representing users.
It has few fields that aren't in the standard authentication user
table, and are needed for the forum to work, like footers.
"""
display_name = models.CharField(max_length... | <commit_before>from django.db import models
import django.contrib.auth.models as auth
class User(auth.User):
"""Model for representing users.
It has few fields that aren't in the standard authentication user
table, and are needed for the forum to work, like footers.
"""
display_name = models.CharF... |
cc8fab220bfeb94c94682912fbb63f4755dfa64f | oa_pmc.py | oa_pmc.py | #!/usr/bin/python
# -*- coding: utf-8 -*-
from time import sleep
from cachetools import LRUCache
from kids.cache import cache
from http_cache import http_get
# examples
# https://www.ebi.ac.uk/europepmc/webservices/rest/search?query=PMC3039489&resulttype=core&format=json&tool=oadoi
# https://www.ebi.ac.uk/europepm... | #!/usr/bin/python
# -*- coding: utf-8 -*-
from cachetools import LRUCache
from kids.cache import cache
from http_cache import http_get
# examples
# https://www.ebi.ac.uk/europepmc/webservices/rest/search?query=PMC3039489&resulttype=core&format=json&tool=oadoi
# https://www.ebi.ac.uk/europepmc/webservices/rest/searc... | Revert "apply caveman rate limiting to europe pmc api calls" | Revert "apply caveman rate limiting to europe pmc api calls"
This reverts commit f2d0b4ab961325dfffaf3a54603b56e848f46da0.
| Python | mit | Impactstory/sherlockoa,Impactstory/sherlockoa | #!/usr/bin/python
# -*- coding: utf-8 -*-
from time import sleep
from cachetools import LRUCache
from kids.cache import cache
from http_cache import http_get
# examples
# https://www.ebi.ac.uk/europepmc/webservices/rest/search?query=PMC3039489&resulttype=core&format=json&tool=oadoi
# https://www.ebi.ac.uk/europepm... | #!/usr/bin/python
# -*- coding: utf-8 -*-
from cachetools import LRUCache
from kids.cache import cache
from http_cache import http_get
# examples
# https://www.ebi.ac.uk/europepmc/webservices/rest/search?query=PMC3039489&resulttype=core&format=json&tool=oadoi
# https://www.ebi.ac.uk/europepmc/webservices/rest/searc... | <commit_before>#!/usr/bin/python
# -*- coding: utf-8 -*-
from time import sleep
from cachetools import LRUCache
from kids.cache import cache
from http_cache import http_get
# examples
# https://www.ebi.ac.uk/europepmc/webservices/rest/search?query=PMC3039489&resulttype=core&format=json&tool=oadoi
# https://www.ebi... | #!/usr/bin/python
# -*- coding: utf-8 -*-
from cachetools import LRUCache
from kids.cache import cache
from http_cache import http_get
# examples
# https://www.ebi.ac.uk/europepmc/webservices/rest/search?query=PMC3039489&resulttype=core&format=json&tool=oadoi
# https://www.ebi.ac.uk/europepmc/webservices/rest/searc... | #!/usr/bin/python
# -*- coding: utf-8 -*-
from time import sleep
from cachetools import LRUCache
from kids.cache import cache
from http_cache import http_get
# examples
# https://www.ebi.ac.uk/europepmc/webservices/rest/search?query=PMC3039489&resulttype=core&format=json&tool=oadoi
# https://www.ebi.ac.uk/europepm... | <commit_before>#!/usr/bin/python
# -*- coding: utf-8 -*-
from time import sleep
from cachetools import LRUCache
from kids.cache import cache
from http_cache import http_get
# examples
# https://www.ebi.ac.uk/europepmc/webservices/rest/search?query=PMC3039489&resulttype=core&format=json&tool=oadoi
# https://www.ebi... |
524626ee33e6139ded9e5f5fdbc108a7775911cf | scoring_engine/models/team.py | scoring_engine/models/team.py | from sqlalchemy import Column, Integer, String
from sqlalchemy.orm import relationship
from scoring_engine.models.base import Base
class Team(Base):
__tablename__ = 'teams'
id = Column(Integer, primary_key=True)
name = Column(String(20), nullable=False)
color = Column(String(10), nullable=False)
... | from sqlalchemy import Column, Integer, String
from sqlalchemy.orm import relationship
from scoring_engine.models.base import Base
class Team(Base):
__tablename__ = 'teams'
id = Column(Integer, primary_key=True)
name = Column(String(20), nullable=False)
color = Column(String(10), nullable=False)
... | Add default init for Team Class | Add default init for Team Class
| Python | mit | pwnbus/scoring_engine,pwnbus/scoring_engine,pwnbus/scoring_engine,pwnbus/scoring_engine | from sqlalchemy import Column, Integer, String
from sqlalchemy.orm import relationship
from scoring_engine.models.base import Base
class Team(Base):
__tablename__ = 'teams'
id = Column(Integer, primary_key=True)
name = Column(String(20), nullable=False)
color = Column(String(10), nullable=False)
... | from sqlalchemy import Column, Integer, String
from sqlalchemy.orm import relationship
from scoring_engine.models.base import Base
class Team(Base):
__tablename__ = 'teams'
id = Column(Integer, primary_key=True)
name = Column(String(20), nullable=False)
color = Column(String(10), nullable=False)
... | <commit_before>from sqlalchemy import Column, Integer, String
from sqlalchemy.orm import relationship
from scoring_engine.models.base import Base
class Team(Base):
__tablename__ = 'teams'
id = Column(Integer, primary_key=True)
name = Column(String(20), nullable=False)
color = Column(String(10), nulla... | from sqlalchemy import Column, Integer, String
from sqlalchemy.orm import relationship
from scoring_engine.models.base import Base
class Team(Base):
__tablename__ = 'teams'
id = Column(Integer, primary_key=True)
name = Column(String(20), nullable=False)
color = Column(String(10), nullable=False)
... | from sqlalchemy import Column, Integer, String
from sqlalchemy.orm import relationship
from scoring_engine.models.base import Base
class Team(Base):
__tablename__ = 'teams'
id = Column(Integer, primary_key=True)
name = Column(String(20), nullable=False)
color = Column(String(10), nullable=False)
... | <commit_before>from sqlalchemy import Column, Integer, String
from sqlalchemy.orm import relationship
from scoring_engine.models.base import Base
class Team(Base):
__tablename__ = 'teams'
id = Column(Integer, primary_key=True)
name = Column(String(20), nullable=False)
color = Column(String(10), nulla... |
3355006202321c9fcace1753486119d5e6177e06 | weaveserver/services/core/service.py | weaveserver/services/core/service.py | from threading import Thread, Event
from weavelib.services import BaseService, BackgroundThreadServiceStart
from .server import MessageServer
from .appmgr import ApplicationRegistry
PORT = 11023
class CoreService(BackgroundThreadServiceStart, BaseService):
def __init__(self, token, config):
super(Core... | from threading import Thread, Event
from weavelib.services import BaseService, BackgroundThreadServiceStart
from .server import MessageServer
from .appmgr import ApplicationRegistry
PORT = 11023
class CoreService(BackgroundThreadServiceStart, BaseService):
def __init__(self, token, config):
super(Core... | Convert config["PORT"] to int before using. | Convert config["PORT"] to int before using.
| Python | mit | supersaiyanmode/HomePiServer,supersaiyanmode/HomePiServer,supersaiyanmode/HomePiServer | from threading import Thread, Event
from weavelib.services import BaseService, BackgroundThreadServiceStart
from .server import MessageServer
from .appmgr import ApplicationRegistry
PORT = 11023
class CoreService(BackgroundThreadServiceStart, BaseService):
def __init__(self, token, config):
super(Core... | from threading import Thread, Event
from weavelib.services import BaseService, BackgroundThreadServiceStart
from .server import MessageServer
from .appmgr import ApplicationRegistry
PORT = 11023
class CoreService(BackgroundThreadServiceStart, BaseService):
def __init__(self, token, config):
super(Core... | <commit_before>from threading import Thread, Event
from weavelib.services import BaseService, BackgroundThreadServiceStart
from .server import MessageServer
from .appmgr import ApplicationRegistry
PORT = 11023
class CoreService(BackgroundThreadServiceStart, BaseService):
def __init__(self, token, config):
... | from threading import Thread, Event
from weavelib.services import BaseService, BackgroundThreadServiceStart
from .server import MessageServer
from .appmgr import ApplicationRegistry
PORT = 11023
class CoreService(BackgroundThreadServiceStart, BaseService):
def __init__(self, token, config):
super(Core... | from threading import Thread, Event
from weavelib.services import BaseService, BackgroundThreadServiceStart
from .server import MessageServer
from .appmgr import ApplicationRegistry
PORT = 11023
class CoreService(BackgroundThreadServiceStart, BaseService):
def __init__(self, token, config):
super(Core... | <commit_before>from threading import Thread, Event
from weavelib.services import BaseService, BackgroundThreadServiceStart
from .server import MessageServer
from .appmgr import ApplicationRegistry
PORT = 11023
class CoreService(BackgroundThreadServiceStart, BaseService):
def __init__(self, token, config):
... |
e9198579b3ff10c78df816fec204e36e502233d5 | tests/test_channel_handler.py | tests/test_channel_handler.py | import json
from tornado import testing, httpserver
from qotr.server import make_application
from qotr.channels import Channels
class TestChannelHandler(testing.AsyncHTTPTestCase):
'''
Test the channel creation handler.
'''
port = None
application = None
def get_app(self):
Channels.r... | import json
from tornado import testing
from qotr.server import make_application
from qotr.channels import Channels
class TestChannelHandler(testing.AsyncHTTPTestCase):
'''
Test the channel creation handler.
'''
port = None
application = None
def get_app(self):
Channels.reset()
... | Make sure that the channel creation and storage works | Make sure that the channel creation and storage works
Signed-off-by: Rohan Jain <[email protected]>
| Python | agpl-3.0 | rmoorman/qotr,rmoorman/qotr,crodjer/qotr,sbuss/qotr,sbuss/qotr,rmoorman/qotr,crodjer/qotr,curtiszimmerman/qotr,crodjer/qotr,curtiszimmerman/qotr,rmoorman/qotr,sbuss/qotr,curtiszimmerman/qotr,crodjer/qotr,curtiszimmerman/qotr,sbuss/qotr | import json
from tornado import testing, httpserver
from qotr.server import make_application
from qotr.channels import Channels
class TestChannelHandler(testing.AsyncHTTPTestCase):
'''
Test the channel creation handler.
'''
port = None
application = None
def get_app(self):
Channels.r... | import json
from tornado import testing
from qotr.server import make_application
from qotr.channels import Channels
class TestChannelHandler(testing.AsyncHTTPTestCase):
'''
Test the channel creation handler.
'''
port = None
application = None
def get_app(self):
Channels.reset()
... | <commit_before>import json
from tornado import testing, httpserver
from qotr.server import make_application
from qotr.channels import Channels
class TestChannelHandler(testing.AsyncHTTPTestCase):
'''
Test the channel creation handler.
'''
port = None
application = None
def get_app(self):
... | import json
from tornado import testing
from qotr.server import make_application
from qotr.channels import Channels
class TestChannelHandler(testing.AsyncHTTPTestCase):
'''
Test the channel creation handler.
'''
port = None
application = None
def get_app(self):
Channels.reset()
... | import json
from tornado import testing, httpserver
from qotr.server import make_application
from qotr.channels import Channels
class TestChannelHandler(testing.AsyncHTTPTestCase):
'''
Test the channel creation handler.
'''
port = None
application = None
def get_app(self):
Channels.r... | <commit_before>import json
from tornado import testing, httpserver
from qotr.server import make_application
from qotr.channels import Channels
class TestChannelHandler(testing.AsyncHTTPTestCase):
'''
Test the channel creation handler.
'''
port = None
application = None
def get_app(self):
... |
b7d63d1aab571eeab3dfc26674039b481398f7e5 | sidecar/themes/light/__init__.py | sidecar/themes/light/__init__.py | from pyramid_frontend.theme import Theme
from pyramid_frontend.images import FilterChain
class LightTheme(Theme):
key = 'light'
require_config_path = '/_light/js/require_config.js'
require_base_url = '/_light/js/vendor/'
image_filters = (
FilterChain(
'thumb', width=330, height=22... | from pyramid_frontend.theme import Theme
from pyramid_frontend.images import FilterChain
from pyramid_frontend.assets.less import LessAsset
from pyramid_frontend.assets.requirejs import RequireJSAsset
class LightTheme(Theme):
key = 'light'
image_filters = (
FilterChain(
'thumb', width=330... | Update theme configuration to latest pyramid_frontend API | Update theme configuration to latest pyramid_frontend API
| Python | mit | storborg/sidecar,storborg/sidecar | from pyramid_frontend.theme import Theme
from pyramid_frontend.images import FilterChain
class LightTheme(Theme):
key = 'light'
require_config_path = '/_light/js/require_config.js'
require_base_url = '/_light/js/vendor/'
image_filters = (
FilterChain(
'thumb', width=330, height=22... | from pyramid_frontend.theme import Theme
from pyramid_frontend.images import FilterChain
from pyramid_frontend.assets.less import LessAsset
from pyramid_frontend.assets.requirejs import RequireJSAsset
class LightTheme(Theme):
key = 'light'
image_filters = (
FilterChain(
'thumb', width=330... | <commit_before>from pyramid_frontend.theme import Theme
from pyramid_frontend.images import FilterChain
class LightTheme(Theme):
key = 'light'
require_config_path = '/_light/js/require_config.js'
require_base_url = '/_light/js/vendor/'
image_filters = (
FilterChain(
'thumb', width... | from pyramid_frontend.theme import Theme
from pyramid_frontend.images import FilterChain
from pyramid_frontend.assets.less import LessAsset
from pyramid_frontend.assets.requirejs import RequireJSAsset
class LightTheme(Theme):
key = 'light'
image_filters = (
FilterChain(
'thumb', width=330... | from pyramid_frontend.theme import Theme
from pyramid_frontend.images import FilterChain
class LightTheme(Theme):
key = 'light'
require_config_path = '/_light/js/require_config.js'
require_base_url = '/_light/js/vendor/'
image_filters = (
FilterChain(
'thumb', width=330, height=22... | <commit_before>from pyramid_frontend.theme import Theme
from pyramid_frontend.images import FilterChain
class LightTheme(Theme):
key = 'light'
require_config_path = '/_light/js/require_config.js'
require_base_url = '/_light/js/vendor/'
image_filters = (
FilterChain(
'thumb', width... |
cbb1384757e54252a9a333828e535ca5596eaca1 | wafer/schedule/admin.py | wafer/schedule/admin.py | from django.contrib import admin
from django import forms
from wafer.schedule.models import Venue, Slot, ScheduleItem
from wafer.talks.models import Talk, ACCEPTED
class ScheduleItemAdminForm(forms.ModelForm):
class Meta:
model = ScheduleItem
def __init__(self, *args, **kwargs):
super(Schedul... | from django.contrib import admin
from django import forms
from wafer.schedule.models import Venue, Slot, ScheduleItem
from wafer.talks.models import Talk, ACCEPTED
class ScheduleItemAdminForm(forms.ModelForm):
class Meta:
model = ScheduleItem
def __init__(self, *args, **kwargs):
super(Schedul... | Add end_time as editable on the slot list view to make tweaking times easier | Add end_time as editable on the slot list view to make tweaking times easier
| Python | isc | CTPUG/wafer,CarlFK/wafer,CTPUG/wafer,CarlFK/wafer,CTPUG/wafer,CarlFK/wafer,CTPUG/wafer,CarlFK/wafer | from django.contrib import admin
from django import forms
from wafer.schedule.models import Venue, Slot, ScheduleItem
from wafer.talks.models import Talk, ACCEPTED
class ScheduleItemAdminForm(forms.ModelForm):
class Meta:
model = ScheduleItem
def __init__(self, *args, **kwargs):
super(Schedul... | from django.contrib import admin
from django import forms
from wafer.schedule.models import Venue, Slot, ScheduleItem
from wafer.talks.models import Talk, ACCEPTED
class ScheduleItemAdminForm(forms.ModelForm):
class Meta:
model = ScheduleItem
def __init__(self, *args, **kwargs):
super(Schedul... | <commit_before>from django.contrib import admin
from django import forms
from wafer.schedule.models import Venue, Slot, ScheduleItem
from wafer.talks.models import Talk, ACCEPTED
class ScheduleItemAdminForm(forms.ModelForm):
class Meta:
model = ScheduleItem
def __init__(self, *args, **kwargs):
... | from django.contrib import admin
from django import forms
from wafer.schedule.models import Venue, Slot, ScheduleItem
from wafer.talks.models import Talk, ACCEPTED
class ScheduleItemAdminForm(forms.ModelForm):
class Meta:
model = ScheduleItem
def __init__(self, *args, **kwargs):
super(Schedul... | from django.contrib import admin
from django import forms
from wafer.schedule.models import Venue, Slot, ScheduleItem
from wafer.talks.models import Talk, ACCEPTED
class ScheduleItemAdminForm(forms.ModelForm):
class Meta:
model = ScheduleItem
def __init__(self, *args, **kwargs):
super(Schedul... | <commit_before>from django.contrib import admin
from django import forms
from wafer.schedule.models import Venue, Slot, ScheduleItem
from wafer.talks.models import Talk, ACCEPTED
class ScheduleItemAdminForm(forms.ModelForm):
class Meta:
model = ScheduleItem
def __init__(self, *args, **kwargs):
... |
8d3160f15b3c328ba86d6348a278c6825fcfa6c2 | wcontrol/src/results.py | wcontrol/src/results.py | from wcontrol.conf.config import BMI, BFP
class results(object):
def __init__(self, control, gender):
self.bmi = self.get_bmi(control.bmi)
self.fat = self.get_fat(control.fat, gender)
def get_bmi(self, bmi):
for limit, msg in BMI:
if bmi <= limit:
return ms... | from wcontrol.conf.config import BMI, BFP, MUSCLE
class results(object):
def __init__(self, control, gender):
self.bmi = self.get_bmi(control.bmi)
self.fat = self.get_fat(control.fat, gender)
self.muscle = self.get_muscle(control.muscle, gender)
def get_bmi(self, bmi):
for lim... | Add function to get the skeletal muscle result | Add function to get the skeletal muscle result
| Python | mit | pahumadad/weight-control,pahumadad/weight-control,pahumadad/weight-control,pahumadad/weight-control | from wcontrol.conf.config import BMI, BFP
class results(object):
def __init__(self, control, gender):
self.bmi = self.get_bmi(control.bmi)
self.fat = self.get_fat(control.fat, gender)
def get_bmi(self, bmi):
for limit, msg in BMI:
if bmi <= limit:
return ms... | from wcontrol.conf.config import BMI, BFP, MUSCLE
class results(object):
def __init__(self, control, gender):
self.bmi = self.get_bmi(control.bmi)
self.fat = self.get_fat(control.fat, gender)
self.muscle = self.get_muscle(control.muscle, gender)
def get_bmi(self, bmi):
for lim... | <commit_before>from wcontrol.conf.config import BMI, BFP
class results(object):
def __init__(self, control, gender):
self.bmi = self.get_bmi(control.bmi)
self.fat = self.get_fat(control.fat, gender)
def get_bmi(self, bmi):
for limit, msg in BMI:
if bmi <= limit:
... | from wcontrol.conf.config import BMI, BFP, MUSCLE
class results(object):
def __init__(self, control, gender):
self.bmi = self.get_bmi(control.bmi)
self.fat = self.get_fat(control.fat, gender)
self.muscle = self.get_muscle(control.muscle, gender)
def get_bmi(self, bmi):
for lim... | from wcontrol.conf.config import BMI, BFP
class results(object):
def __init__(self, control, gender):
self.bmi = self.get_bmi(control.bmi)
self.fat = self.get_fat(control.fat, gender)
def get_bmi(self, bmi):
for limit, msg in BMI:
if bmi <= limit:
return ms... | <commit_before>from wcontrol.conf.config import BMI, BFP
class results(object):
def __init__(self, control, gender):
self.bmi = self.get_bmi(control.bmi)
self.fat = self.get_fat(control.fat, gender)
def get_bmi(self, bmi):
for limit, msg in BMI:
if bmi <= limit:
... |
00009fe9627b947e3bb0674a3a70c61f4be59fb6 | skimage/viewer/qt/__init__.py | skimage/viewer/qt/__init__.py | import os
import warnings
qt_api = os.environ.get('QT_API')
if qt_api is None:
try:
import PySide
qt_api = 'pyside'
except ImportError:
try:
import PyQt4
qt_api = 'pyqt'
except ImportError:
qt_api = None
# Note that we don't want ... | import os
import warnings
qt_api = os.environ.get('QT_API')
if qt_api is None:
try:
import PyQt4
qt_api = 'pyqt'
except ImportError:
try:
import PySide
qt_api = 'pyside'
except ImportError:
qt_api = None
# Note that we don't want ... | Use same order as matplotlib for PySize/PyQT | Use same order as matplotlib for PySize/PyQT
| Python | bsd-3-clause | pratapvardhan/scikit-image,oew1v07/scikit-image,rjeli/scikit-image,jwiggins/scikit-image,warmspringwinds/scikit-image,youprofit/scikit-image,newville/scikit-image,warmspringwinds/scikit-image,keflavich/scikit-image,michaelpacer/scikit-image,WarrenWeckesser/scikits-image,ofgulban/scikit-image,juliusbierk/scikit-image,pa... | import os
import warnings
qt_api = os.environ.get('QT_API')
if qt_api is None:
try:
import PySide
qt_api = 'pyside'
except ImportError:
try:
import PyQt4
qt_api = 'pyqt'
except ImportError:
qt_api = None
# Note that we don't want ... | import os
import warnings
qt_api = os.environ.get('QT_API')
if qt_api is None:
try:
import PyQt4
qt_api = 'pyqt'
except ImportError:
try:
import PySide
qt_api = 'pyside'
except ImportError:
qt_api = None
# Note that we don't want ... | <commit_before>import os
import warnings
qt_api = os.environ.get('QT_API')
if qt_api is None:
try:
import PySide
qt_api = 'pyside'
except ImportError:
try:
import PyQt4
qt_api = 'pyqt'
except ImportError:
qt_api = None
# Note that... | import os
import warnings
qt_api = os.environ.get('QT_API')
if qt_api is None:
try:
import PyQt4
qt_api = 'pyqt'
except ImportError:
try:
import PySide
qt_api = 'pyside'
except ImportError:
qt_api = None
# Note that we don't want ... | import os
import warnings
qt_api = os.environ.get('QT_API')
if qt_api is None:
try:
import PySide
qt_api = 'pyside'
except ImportError:
try:
import PyQt4
qt_api = 'pyqt'
except ImportError:
qt_api = None
# Note that we don't want ... | <commit_before>import os
import warnings
qt_api = os.environ.get('QT_API')
if qt_api is None:
try:
import PySide
qt_api = 'pyside'
except ImportError:
try:
import PyQt4
qt_api = 'pyqt'
except ImportError:
qt_api = None
# Note that... |
11dbea120cf035f0af4fec5285187cfd4ea03182 | project/urls.py | project/urls.py | from django.conf.urls import patterns, include, url
from django.contrib.flatpages import urls
from search.views import CustomSearchView
from haystack.views import search_view_factory
from django.conf import settings
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
url('', include('... | from django.conf.urls import patterns, include, url
from django.contrib.flatpages import urls
from search.views import CustomSearchView
from haystack.views import search_view_factory
from django.conf import settings
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
url('', include('... | Remove font serving from app | Remove font serving from app
| Python | mit | AxisPhilly/lobbying.ph-django,AxisPhilly/lobbying.ph-django,AxisPhilly/lobbying.ph-django | from django.conf.urls import patterns, include, url
from django.contrib.flatpages import urls
from search.views import CustomSearchView
from haystack.views import search_view_factory
from django.conf import settings
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
url('', include('... | from django.conf.urls import patterns, include, url
from django.contrib.flatpages import urls
from search.views import CustomSearchView
from haystack.views import search_view_factory
from django.conf import settings
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
url('', include('... | <commit_before>from django.conf.urls import patterns, include, url
from django.contrib.flatpages import urls
from search.views import CustomSearchView
from haystack.views import search_view_factory
from django.conf import settings
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
ur... | from django.conf.urls import patterns, include, url
from django.contrib.flatpages import urls
from search.views import CustomSearchView
from haystack.views import search_view_factory
from django.conf import settings
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
url('', include('... | from django.conf.urls import patterns, include, url
from django.contrib.flatpages import urls
from search.views import CustomSearchView
from haystack.views import search_view_factory
from django.conf import settings
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
url('', include('... | <commit_before>from django.conf.urls import patterns, include, url
from django.contrib.flatpages import urls
from search.views import CustomSearchView
from haystack.views import search_view_factory
from django.conf import settings
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
ur... |
510c80cb3985750a732f96f91e4730b95491f4ca | client/gettransactions.py | client/gettransactions.py | #!/usr/bin/python
import sys
import api
import getpass
# Banks
banks = {}
import bankofamerica
banks["bankofamerica"] = bankofamerica
print "Login"
print "Username: ",
username = sys.stdin.readline().strip()
password = getpass.getpass()
if not api.callapi("login",{"username": username, "password": password}):
pr... | #!/usr/bin/python
import sys
import api
import getpass
# Banks
banks = {}
import bankofamerica
banks["bankofamerica"] = bankofamerica
print "Login"
print "Username: ",
username = sys.stdin.readline().strip()
password = getpass.getpass()
if not api.callapi("login",{"username": username, "password": password}):
pr... | Send all scraped data in one big json dump. | Send all scraped data in one big json dump.
| Python | agpl-3.0 | vincebusam/pyWebCash,vincebusam/pyWebCash,vincebusam/pyWebCash | #!/usr/bin/python
import sys
import api
import getpass
# Banks
banks = {}
import bankofamerica
banks["bankofamerica"] = bankofamerica
print "Login"
print "Username: ",
username = sys.stdin.readline().strip()
password = getpass.getpass()
if not api.callapi("login",{"username": username, "password": password}):
pr... | #!/usr/bin/python
import sys
import api
import getpass
# Banks
banks = {}
import bankofamerica
banks["bankofamerica"] = bankofamerica
print "Login"
print "Username: ",
username = sys.stdin.readline().strip()
password = getpass.getpass()
if not api.callapi("login",{"username": username, "password": password}):
pr... | <commit_before>#!/usr/bin/python
import sys
import api
import getpass
# Banks
banks = {}
import bankofamerica
banks["bankofamerica"] = bankofamerica
print "Login"
print "Username: ",
username = sys.stdin.readline().strip()
password = getpass.getpass()
if not api.callapi("login",{"username": username, "password": pas... | #!/usr/bin/python
import sys
import api
import getpass
# Banks
banks = {}
import bankofamerica
banks["bankofamerica"] = bankofamerica
print "Login"
print "Username: ",
username = sys.stdin.readline().strip()
password = getpass.getpass()
if not api.callapi("login",{"username": username, "password": password}):
pr... | #!/usr/bin/python
import sys
import api
import getpass
# Banks
banks = {}
import bankofamerica
banks["bankofamerica"] = bankofamerica
print "Login"
print "Username: ",
username = sys.stdin.readline().strip()
password = getpass.getpass()
if not api.callapi("login",{"username": username, "password": password}):
pr... | <commit_before>#!/usr/bin/python
import sys
import api
import getpass
# Banks
banks = {}
import bankofamerica
banks["bankofamerica"] = bankofamerica
print "Login"
print "Username: ",
username = sys.stdin.readline().strip()
password = getpass.getpass()
if not api.callapi("login",{"username": username, "password": pas... |
bfe5c6a16bf8515ae6ba49f4633f1a301e445092 | redcliff/cli.py | redcliff/cli.py | from sys import exit
import argparse
from .commands import dispatch, choices
from .config import get_config
from .utils import merge
def main():
parser = argparse.ArgumentParser()
parser.add_argument('-u', '--base-url',
metavar='https://redmine.example.com',
h... | from sys import exit
import argparse
from .commands import dispatch, choices
from .config import get_config
from .utils import merge, error
def main():
parser = argparse.ArgumentParser()
parser.add_argument('-u', '--base-url',
dest='url',
metavar='https://redm... | Fix exception when required options are missing | Fix exception when required options are missing
Options can be on command line and in config file, so we check in merged
dictionary after getting from both sources.
| Python | mit | dmedvinsky/redcliff | from sys import exit
import argparse
from .commands import dispatch, choices
from .config import get_config
from .utils import merge
def main():
parser = argparse.ArgumentParser()
parser.add_argument('-u', '--base-url',
metavar='https://redmine.example.com',
h... | from sys import exit
import argparse
from .commands import dispatch, choices
from .config import get_config
from .utils import merge, error
def main():
parser = argparse.ArgumentParser()
parser.add_argument('-u', '--base-url',
dest='url',
metavar='https://redm... | <commit_before>from sys import exit
import argparse
from .commands import dispatch, choices
from .config import get_config
from .utils import merge
def main():
parser = argparse.ArgumentParser()
parser.add_argument('-u', '--base-url',
metavar='https://redmine.example.com',
... | from sys import exit
import argparse
from .commands import dispatch, choices
from .config import get_config
from .utils import merge, error
def main():
parser = argparse.ArgumentParser()
parser.add_argument('-u', '--base-url',
dest='url',
metavar='https://redm... | from sys import exit
import argparse
from .commands import dispatch, choices
from .config import get_config
from .utils import merge
def main():
parser = argparse.ArgumentParser()
parser.add_argument('-u', '--base-url',
metavar='https://redmine.example.com',
h... | <commit_before>from sys import exit
import argparse
from .commands import dispatch, choices
from .config import get_config
from .utils import merge
def main():
parser = argparse.ArgumentParser()
parser.add_argument('-u', '--base-url',
metavar='https://redmine.example.com',
... |
d7280801306d9c7495a08288c6e1574f6dec303d | astroquery/astrometry_net/__init__.py | astroquery/astrometry_net/__init__.py | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
astrometry.net
--------------
:author: Matt Craig (<[email protected]>)
"""
# Make the URL of the server, timeout and other items configurable
from astropy import config as _config
class Conf(_config.ConfigNamespace):
""" Configuration para... | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
astrometry.net
--------------
:author: Matt Craig (<[email protected]>)
"""
# Make the URL of the server, timeout and other items configurable
from astropy import config as _config
class Conf(_config.ConfigNamespace):
""" Configuration para... | Increase timeout so that remote tests pass | Increase timeout so that remote tests pass
| Python | bsd-3-clause | imbasimba/astroquery,ceb8/astroquery,ceb8/astroquery,imbasimba/astroquery | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
astrometry.net
--------------
:author: Matt Craig (<[email protected]>)
"""
# Make the URL of the server, timeout and other items configurable
from astropy import config as _config
class Conf(_config.ConfigNamespace):
""" Configuration para... | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
astrometry.net
--------------
:author: Matt Craig (<[email protected]>)
"""
# Make the URL of the server, timeout and other items configurable
from astropy import config as _config
class Conf(_config.ConfigNamespace):
""" Configuration para... | <commit_before># Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
astrometry.net
--------------
:author: Matt Craig (<[email protected]>)
"""
# Make the URL of the server, timeout and other items configurable
from astropy import config as _config
class Conf(_config.ConfigNamespace):
""" Con... | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
astrometry.net
--------------
:author: Matt Craig (<[email protected]>)
"""
# Make the URL of the server, timeout and other items configurable
from astropy import config as _config
class Conf(_config.ConfigNamespace):
""" Configuration para... | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
astrometry.net
--------------
:author: Matt Craig (<[email protected]>)
"""
# Make the URL of the server, timeout and other items configurable
from astropy import config as _config
class Conf(_config.ConfigNamespace):
""" Configuration para... | <commit_before># Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
astrometry.net
--------------
:author: Matt Craig (<[email protected]>)
"""
# Make the URL of the server, timeout and other items configurable
from astropy import config as _config
class Conf(_config.ConfigNamespace):
""" Con... |
53fd251e22cf71c1f1f9a705d91ef91a9130129f | backend/django/apps/accounts/tests.py | backend/django/apps/accounts/tests.py | from django.core.urlresolvers import reverse
from rest_framework.test import APITestCase
from rest_framework import status
import factory
from .models import BaseAccount
class UserFactory(factory.Factory):
class Meta:
model = BaseAccount
first_name = 'John'
last_name = 'Doe'
email = '{}.{}@e... | from django.core.urlresolvers import reverse
from rest_framework.test import APITestCase
from rest_framework import status
import factory
import json
from .models import BaseAccount
from .serializers import WholeAccountSerializer
class UserFactory(factory.django.DjangoModelFactory):
class Meta:
model = B... | Create a test for user creation through `FactoryBoy` | Create a test for user creation through `FactoryBoy`
Add a test for user creation
| Python | mit | slavpetroff/sweetshop,slavpetroff/sweetshop | from django.core.urlresolvers import reverse
from rest_framework.test import APITestCase
from rest_framework import status
import factory
from .models import BaseAccount
class UserFactory(factory.Factory):
class Meta:
model = BaseAccount
first_name = 'John'
last_name = 'Doe'
email = '{}.{}@e... | from django.core.urlresolvers import reverse
from rest_framework.test import APITestCase
from rest_framework import status
import factory
import json
from .models import BaseAccount
from .serializers import WholeAccountSerializer
class UserFactory(factory.django.DjangoModelFactory):
class Meta:
model = B... | <commit_before>from django.core.urlresolvers import reverse
from rest_framework.test import APITestCase
from rest_framework import status
import factory
from .models import BaseAccount
class UserFactory(factory.Factory):
class Meta:
model = BaseAccount
first_name = 'John'
last_name = 'Doe'
e... | from django.core.urlresolvers import reverse
from rest_framework.test import APITestCase
from rest_framework import status
import factory
import json
from .models import BaseAccount
from .serializers import WholeAccountSerializer
class UserFactory(factory.django.DjangoModelFactory):
class Meta:
model = B... | from django.core.urlresolvers import reverse
from rest_framework.test import APITestCase
from rest_framework import status
import factory
from .models import BaseAccount
class UserFactory(factory.Factory):
class Meta:
model = BaseAccount
first_name = 'John'
last_name = 'Doe'
email = '{}.{}@e... | <commit_before>from django.core.urlresolvers import reverse
from rest_framework.test import APITestCase
from rest_framework import status
import factory
from .models import BaseAccount
class UserFactory(factory.Factory):
class Meta:
model = BaseAccount
first_name = 'John'
last_name = 'Doe'
e... |
8496ba409b9a340858e4473157aab87593868db7 | pytask/views.py | pytask/views.py | from django.shortcuts import render_to_response
def show_msg(user, message, redirect_url=None, url_desc=None):
""" simply redirect to homepage """
return render_to_response('show_msg.html',{'user': user,
'message': message,
... | from django.shortcuts import render_to_response
from pytask.profile import models as profile_models
def show_msg(user, message, redirect_url=None, url_desc=None):
""" simply redirect to homepage """
return render_to_response('show_msg.html',{'user': user,
'mess... | Use the right name for the profile role's values. | Use the right name for the profile role's values.
| Python | agpl-3.0 | madhusudancs/pytask,madhusudancs/pytask,madhusudancs/pytask | from django.shortcuts import render_to_response
def show_msg(user, message, redirect_url=None, url_desc=None):
""" simply redirect to homepage """
return render_to_response('show_msg.html',{'user': user,
'message': message,
... | from django.shortcuts import render_to_response
from pytask.profile import models as profile_models
def show_msg(user, message, redirect_url=None, url_desc=None):
""" simply redirect to homepage """
return render_to_response('show_msg.html',{'user': user,
'mess... | <commit_before>from django.shortcuts import render_to_response
def show_msg(user, message, redirect_url=None, url_desc=None):
""" simply redirect to homepage """
return render_to_response('show_msg.html',{'user': user,
'message': message,
... | from django.shortcuts import render_to_response
from pytask.profile import models as profile_models
def show_msg(user, message, redirect_url=None, url_desc=None):
""" simply redirect to homepage """
return render_to_response('show_msg.html',{'user': user,
'mess... | from django.shortcuts import render_to_response
def show_msg(user, message, redirect_url=None, url_desc=None):
""" simply redirect to homepage """
return render_to_response('show_msg.html',{'user': user,
'message': message,
... | <commit_before>from django.shortcuts import render_to_response
def show_msg(user, message, redirect_url=None, url_desc=None):
""" simply redirect to homepage """
return render_to_response('show_msg.html',{'user': user,
'message': message,
... |
46835075ad7dd6dd4b0478877f57b07e0e282add | tensorflow_datasets/image/nyu_depth_v2_test.py | tensorflow_datasets/image/nyu_depth_v2_test.py | """Tests for NYU Depth V2 Dataset."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from tensorflow_datasets import testing
from tensorflow_datasets.image import nyu_depth_v2
class NyuDepthV2Test(testing.DatasetBuilderTestCase):
DATASET_CLASS = nyu_de... | """Tests for NYU Depth V2 Dataset."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from tensorflow_datasets import testing
from tensorflow_datasets.image import nyu_depth_v2
class NyuDepthV2Test(testing.DatasetBuilderTestCase):
DATASET_CLASS = nyu_de... | Fix validation split for NYU Depth V2 test | Fix validation split for NYU Depth V2 test
| Python | apache-2.0 | tensorflow/datasets,tensorflow/datasets,tensorflow/datasets,tensorflow/datasets,tensorflow/datasets | """Tests for NYU Depth V2 Dataset."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from tensorflow_datasets import testing
from tensorflow_datasets.image import nyu_depth_v2
class NyuDepthV2Test(testing.DatasetBuilderTestCase):
DATASET_CLASS = nyu_de... | """Tests for NYU Depth V2 Dataset."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from tensorflow_datasets import testing
from tensorflow_datasets.image import nyu_depth_v2
class NyuDepthV2Test(testing.DatasetBuilderTestCase):
DATASET_CLASS = nyu_de... | <commit_before>"""Tests for NYU Depth V2 Dataset."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from tensorflow_datasets import testing
from tensorflow_datasets.image import nyu_depth_v2
class NyuDepthV2Test(testing.DatasetBuilderTestCase):
DATASET... | """Tests for NYU Depth V2 Dataset."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from tensorflow_datasets import testing
from tensorflow_datasets.image import nyu_depth_v2
class NyuDepthV2Test(testing.DatasetBuilderTestCase):
DATASET_CLASS = nyu_de... | """Tests for NYU Depth V2 Dataset."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from tensorflow_datasets import testing
from tensorflow_datasets.image import nyu_depth_v2
class NyuDepthV2Test(testing.DatasetBuilderTestCase):
DATASET_CLASS = nyu_de... | <commit_before>"""Tests for NYU Depth V2 Dataset."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from tensorflow_datasets import testing
from tensorflow_datasets.image import nyu_depth_v2
class NyuDepthV2Test(testing.DatasetBuilderTestCase):
DATASET... |
3cb25e903ad0fd342509d32dca2d3c507f001b5a | devilry/devilry_autoset_empty_email_by_username/models.py | devilry/devilry_autoset_empty_email_by_username/models.py | from django.db.models.signals import post_save
from devilry.devilry_account.models import User
from django.conf import settings
def set_email_by_username(sender, **kwargs):
"""
Signal handler which is invoked when a User is saved.
"""
user = kwargs['instance']
if not user.email:
user.email... | from django.conf import settings
def set_email_by_username(sender, **kwargs):
"""
Signal handler which is invoked when a User is saved.
"""
user = kwargs['instance']
if not user.email:
user.email = '{0}@{1}'.format(user.username, settings.DEVILRY_DEFAULT_EMAIL_SUFFIX)
# post_save.connect(... | Comment out the post_save connect line. | devilry_autoset_empty_email_by_username: Comment out the post_save connect line.
| Python | bsd-3-clause | devilry/devilry-django,devilry/devilry-django,devilry/devilry-django,devilry/devilry-django | from django.db.models.signals import post_save
from devilry.devilry_account.models import User
from django.conf import settings
def set_email_by_username(sender, **kwargs):
"""
Signal handler which is invoked when a User is saved.
"""
user = kwargs['instance']
if not user.email:
user.email... | from django.conf import settings
def set_email_by_username(sender, **kwargs):
"""
Signal handler which is invoked when a User is saved.
"""
user = kwargs['instance']
if not user.email:
user.email = '{0}@{1}'.format(user.username, settings.DEVILRY_DEFAULT_EMAIL_SUFFIX)
# post_save.connect(... | <commit_before>from django.db.models.signals import post_save
from devilry.devilry_account.models import User
from django.conf import settings
def set_email_by_username(sender, **kwargs):
"""
Signal handler which is invoked when a User is saved.
"""
user = kwargs['instance']
if not user.email:
... | from django.conf import settings
def set_email_by_username(sender, **kwargs):
"""
Signal handler which is invoked when a User is saved.
"""
user = kwargs['instance']
if not user.email:
user.email = '{0}@{1}'.format(user.username, settings.DEVILRY_DEFAULT_EMAIL_SUFFIX)
# post_save.connect(... | from django.db.models.signals import post_save
from devilry.devilry_account.models import User
from django.conf import settings
def set_email_by_username(sender, **kwargs):
"""
Signal handler which is invoked when a User is saved.
"""
user = kwargs['instance']
if not user.email:
user.email... | <commit_before>from django.db.models.signals import post_save
from devilry.devilry_account.models import User
from django.conf import settings
def set_email_by_username(sender, **kwargs):
"""
Signal handler which is invoked when a User is saved.
"""
user = kwargs['instance']
if not user.email:
... |
04fbd56e647de937ceae426acb6762f1cbbcf616 | cryptography/__about__.py | cryptography/__about__.py | # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the... | # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the... | Fix spelling of my name | Fix spelling of my name
| Python | bsd-3-clause | bwhmather/cryptography,dstufft/cryptography,glyph/cryptography,kimvais/cryptography,dstufft/cryptography,bwhmather/cryptography,Lukasa/cryptography,sholsapp/cryptography,bwhmather/cryptography,skeuomorf/cryptography,kimvais/cryptography,Ayrx/cryptography,sholsapp/cryptography,skeuomorf/cryptography,glyph/cryptography,H... | # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the... | # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the... | <commit_before># Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distri... | # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the... | # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the... | <commit_before># Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distri... |
092c58bbd0a8105e80e35c9c83833a62b510104f | similarities.py | similarities.py | #!/usr/bin/env python
from signal import signal, SIGPIPE, SIG_DFL
signal(SIGPIPE, SIG_DFL)
import argparse
import sys
from gensim.models.word2vec import Word2Vec
import csv
parser = argparse.ArgumentParser()
parser.add_argument('--sim', nargs='?', type=float, default=.3)
parser.add_argument('w2v')
args = vars(parser... | #!/usr/bin/env python
from signal import signal, SIGPIPE, SIG_DFL
signal(SIGPIPE, SIG_DFL)
import argparse
import sys
from gensim.models.word2vec import Word2Vec
import csv
parser = argparse.ArgumentParser()
parser.add_argument('--sim', nargs='?', type=float, default=.3)
parser.add_argument('w2v')
args = vars(parser... | Add a negative similarity crutch | Add a negative similarity crutch
| Python | mit | dustalov/watset,dustalov/watset | #!/usr/bin/env python
from signal import signal, SIGPIPE, SIG_DFL
signal(SIGPIPE, SIG_DFL)
import argparse
import sys
from gensim.models.word2vec import Word2Vec
import csv
parser = argparse.ArgumentParser()
parser.add_argument('--sim', nargs='?', type=float, default=.3)
parser.add_argument('w2v')
args = vars(parser... | #!/usr/bin/env python
from signal import signal, SIGPIPE, SIG_DFL
signal(SIGPIPE, SIG_DFL)
import argparse
import sys
from gensim.models.word2vec import Word2Vec
import csv
parser = argparse.ArgumentParser()
parser.add_argument('--sim', nargs='?', type=float, default=.3)
parser.add_argument('w2v')
args = vars(parser... | <commit_before>#!/usr/bin/env python
from signal import signal, SIGPIPE, SIG_DFL
signal(SIGPIPE, SIG_DFL)
import argparse
import sys
from gensim.models.word2vec import Word2Vec
import csv
parser = argparse.ArgumentParser()
parser.add_argument('--sim', nargs='?', type=float, default=.3)
parser.add_argument('w2v')
arg... | #!/usr/bin/env python
from signal import signal, SIGPIPE, SIG_DFL
signal(SIGPIPE, SIG_DFL)
import argparse
import sys
from gensim.models.word2vec import Word2Vec
import csv
parser = argparse.ArgumentParser()
parser.add_argument('--sim', nargs='?', type=float, default=.3)
parser.add_argument('w2v')
args = vars(parser... | #!/usr/bin/env python
from signal import signal, SIGPIPE, SIG_DFL
signal(SIGPIPE, SIG_DFL)
import argparse
import sys
from gensim.models.word2vec import Word2Vec
import csv
parser = argparse.ArgumentParser()
parser.add_argument('--sim', nargs='?', type=float, default=.3)
parser.add_argument('w2v')
args = vars(parser... | <commit_before>#!/usr/bin/env python
from signal import signal, SIGPIPE, SIG_DFL
signal(SIGPIPE, SIG_DFL)
import argparse
import sys
from gensim.models.word2vec import Word2Vec
import csv
parser = argparse.ArgumentParser()
parser.add_argument('--sim', nargs='?', type=float, default=.3)
parser.add_argument('w2v')
arg... |
78154a63e86774fb8952f42883f7788e94d0c8d2 | lib/spack/spack/operating_systems/linux_distro.py | lib/spack/spack/operating_systems/linux_distro.py | import re
from external.distro import linux_distribution
from spack.architecture import OperatingSystem
class LinuxDistro(OperatingSystem):
""" This class will represent the autodetected operating system
for a Linux System. Since there are many different flavors of
Linux, this class will attempt t... | import re
from spack.architecture import OperatingSystem
class LinuxDistro(OperatingSystem):
""" This class will represent the autodetected operating system
for a Linux System. Since there are many different flavors of
Linux, this class will attempt to encompass them all through
autodetect... | Fix bug in distribution detection on unsupported platforms. | Fix bug in distribution detection on unsupported platforms.
| Python | lgpl-2.1 | EmreAtes/spack,TheTimmy/spack,mfherbst/spack,tmerrick1/spack,iulian787/spack,skosukhin/spack,matthiasdiener/spack,mfherbst/spack,lgarren/spack,EmreAtes/spack,iulian787/spack,EmreAtes/spack,matthiasdiener/spack,mfherbst/spack,LLNL/spack,TheTimmy/spack,skosukhin/spack,skosukhin/spack,LLNL/spack,krafczyk/spack,krafczyk/sp... | import re
from external.distro import linux_distribution
from spack.architecture import OperatingSystem
class LinuxDistro(OperatingSystem):
""" This class will represent the autodetected operating system
for a Linux System. Since there are many different flavors of
Linux, this class will attempt t... | import re
from spack.architecture import OperatingSystem
class LinuxDistro(OperatingSystem):
""" This class will represent the autodetected operating system
for a Linux System. Since there are many different flavors of
Linux, this class will attempt to encompass them all through
autodetect... | <commit_before>import re
from external.distro import linux_distribution
from spack.architecture import OperatingSystem
class LinuxDistro(OperatingSystem):
""" This class will represent the autodetected operating system
for a Linux System. Since there are many different flavors of
Linux, this class... | import re
from spack.architecture import OperatingSystem
class LinuxDistro(OperatingSystem):
""" This class will represent the autodetected operating system
for a Linux System. Since there are many different flavors of
Linux, this class will attempt to encompass them all through
autodetect... | import re
from external.distro import linux_distribution
from spack.architecture import OperatingSystem
class LinuxDistro(OperatingSystem):
""" This class will represent the autodetected operating system
for a Linux System. Since there are many different flavors of
Linux, this class will attempt t... | <commit_before>import re
from external.distro import linux_distribution
from spack.architecture import OperatingSystem
class LinuxDistro(OperatingSystem):
""" This class will represent the autodetected operating system
for a Linux System. Since there are many different flavors of
Linux, this class... |
aae36c00e6dbea1ed68d2a921021d586d5ff723e | openquake/baselib/safeprint.py | openquake/baselib/safeprint.py | # -*- coding: utf-8 -*-
# vim: tabstop=4 shiftwidth=4 softtabstop=4
#
# Copyright (C) 2017 GEM Foundation
#
# OpenQuake 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, o... | # -*- coding: utf-8 -*-
# vim: tabstop=4 shiftwidth=4 softtabstop=4
#
# Copyright (C) 2017 GEM Foundation
#
# OpenQuake 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, o... | Fix out redirection in python2 | Fix out redirection in python2
| Python | agpl-3.0 | gem/oq-engine,gem/oq-engine,gem/oq-hazardlib,gem/oq-hazardlib,gem/oq-hazardlib,gem/oq-engine,gem/oq-engine,gem/oq-engine | # -*- coding: utf-8 -*-
# vim: tabstop=4 shiftwidth=4 softtabstop=4
#
# Copyright (C) 2017 GEM Foundation
#
# OpenQuake 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, o... | # -*- coding: utf-8 -*-
# vim: tabstop=4 shiftwidth=4 softtabstop=4
#
# Copyright (C) 2017 GEM Foundation
#
# OpenQuake 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, o... | <commit_before># -*- coding: utf-8 -*-
# vim: tabstop=4 shiftwidth=4 softtabstop=4
#
# Copyright (C) 2017 GEM Foundation
#
# OpenQuake 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... | # -*- coding: utf-8 -*-
# vim: tabstop=4 shiftwidth=4 softtabstop=4
#
# Copyright (C) 2017 GEM Foundation
#
# OpenQuake 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, o... | # -*- coding: utf-8 -*-
# vim: tabstop=4 shiftwidth=4 softtabstop=4
#
# Copyright (C) 2017 GEM Foundation
#
# OpenQuake 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, o... | <commit_before># -*- coding: utf-8 -*-
# vim: tabstop=4 shiftwidth=4 softtabstop=4
#
# Copyright (C) 2017 GEM Foundation
#
# OpenQuake 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... |
d7f43a15a2e4535728e7ec5d3cb550af3eed1590 | h2o-py/h2o/tree/__init__.py | h2o-py/h2o/tree/__init__.py | from .tree import H2OTree
from .tree import H2ONode
__all__ = ["H2OTree", "H2ONode"] | from .tree import H2OTree
from .tree import H2ONode
from .tree import H2OSplitNode
from .tree import H2OLeafNode
__all__ = ["H2OTree", "H2ONode", "H2OSplitNode", "H2OLeafNode"]
| Include H2OSplitNode & H2OLeafNode in __all__ | Include H2OSplitNode & H2OLeafNode in __all__ | Python | apache-2.0 | michalkurka/h2o-3,h2oai/h2o-3,michalkurka/h2o-3,h2oai/h2o-3,h2oai/h2o-3,michalkurka/h2o-3,h2oai/h2o-3,h2oai/h2o-3,h2oai/h2o-3,michalkurka/h2o-3,h2oai/h2o-3,michalkurka/h2o-3,michalkurka/h2o-3,michalkurka/h2o-3,h2oai/h2o-3 | from .tree import H2OTree
from .tree import H2ONode
__all__ = ["H2OTree", "H2ONode"]Include H2OSplitNode & H2OLeafNode in __all__ | from .tree import H2OTree
from .tree import H2ONode
from .tree import H2OSplitNode
from .tree import H2OLeafNode
__all__ = ["H2OTree", "H2ONode", "H2OSplitNode", "H2OLeafNode"]
| <commit_before>from .tree import H2OTree
from .tree import H2ONode
__all__ = ["H2OTree", "H2ONode"]<commit_msg>Include H2OSplitNode & H2OLeafNode in __all__<commit_after> | from .tree import H2OTree
from .tree import H2ONode
from .tree import H2OSplitNode
from .tree import H2OLeafNode
__all__ = ["H2OTree", "H2ONode", "H2OSplitNode", "H2OLeafNode"]
| from .tree import H2OTree
from .tree import H2ONode
__all__ = ["H2OTree", "H2ONode"]Include H2OSplitNode & H2OLeafNode in __all__from .tree import H2OTree
from .tree import H2ONode
from .tree import H2OSplitNode
from .tree import H2OLeafNode
__all__ = ["H2OTree", "H2ONode", "H2OSplitNode", "H2OLeafNode"]
| <commit_before>from .tree import H2OTree
from .tree import H2ONode
__all__ = ["H2OTree", "H2ONode"]<commit_msg>Include H2OSplitNode & H2OLeafNode in __all__<commit_after>from .tree import H2OTree
from .tree import H2ONode
from .tree import H2OSplitNode
from .tree import H2OLeafNode
__all__ = ["H2OTree", "H2ONode", "H... |
b652da4dda3ed5c0a37f2d32a07b9afaf6267e53 | organization/network/migrations/0118_team_slug.py | organization/network/migrations/0118_team_slug.py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.8 on 2018-12-19 11:53
from __future__ import unicode_literals
from django.db import migrations, models
from organization.network.models import Team
def generate_slugs(apps, schema_editor):
teams = Team.objects.all()
for team in teams:
team.save()
c... | # -*- coding: utf-8 -*-
# Generated by Django 1.10.8 on 2018-12-19 11:53
from __future__ import unicode_literals
from django.db import migrations, models
from organization.network.models import Team
# def generate_slugs(apps, schema_editor):
# teams = Team.objects.all()
# for team in teams:
# team.sa... | Fix migration when no existing team.user field at fresh start | Fix migration when no existing team.user field at fresh start
| Python | agpl-3.0 | Ircam-Web/mezzanine-organization,Ircam-Web/mezzanine-organization | # -*- coding: utf-8 -*-
# Generated by Django 1.10.8 on 2018-12-19 11:53
from __future__ import unicode_literals
from django.db import migrations, models
from organization.network.models import Team
def generate_slugs(apps, schema_editor):
teams = Team.objects.all()
for team in teams:
team.save()
c... | # -*- coding: utf-8 -*-
# Generated by Django 1.10.8 on 2018-12-19 11:53
from __future__ import unicode_literals
from django.db import migrations, models
from organization.network.models import Team
# def generate_slugs(apps, schema_editor):
# teams = Team.objects.all()
# for team in teams:
# team.sa... | <commit_before># -*- coding: utf-8 -*-
# Generated by Django 1.10.8 on 2018-12-19 11:53
from __future__ import unicode_literals
from django.db import migrations, models
from organization.network.models import Team
def generate_slugs(apps, schema_editor):
teams = Team.objects.all()
for team in teams:
... | # -*- coding: utf-8 -*-
# Generated by Django 1.10.8 on 2018-12-19 11:53
from __future__ import unicode_literals
from django.db import migrations, models
from organization.network.models import Team
# def generate_slugs(apps, schema_editor):
# teams = Team.objects.all()
# for team in teams:
# team.sa... | # -*- coding: utf-8 -*-
# Generated by Django 1.10.8 on 2018-12-19 11:53
from __future__ import unicode_literals
from django.db import migrations, models
from organization.network.models import Team
def generate_slugs(apps, schema_editor):
teams = Team.objects.all()
for team in teams:
team.save()
c... | <commit_before># -*- coding: utf-8 -*-
# Generated by Django 1.10.8 on 2018-12-19 11:53
from __future__ import unicode_literals
from django.db import migrations, models
from organization.network.models import Team
def generate_slugs(apps, schema_editor):
teams = Team.objects.all()
for team in teams:
... |
7e0de7c98be293bd3f48f00138c997292696ee6f | Lib/importlib/test/regrtest.py | Lib/importlib/test/regrtest.py | """Run Python's standard test suite using importlib.__import__.
Tests known to fail because of assumptions that importlib (properly)
invalidates are automatically skipped if the entire test suite is run.
Otherwise all command-line options valid for test.regrtest are also valid for
this script.
XXX FAILING
test_im... | """Run Python's standard test suite using importlib.__import__.
Tests known to fail because of assumptions that importlib (properly)
invalidates are automatically skipped if the entire test suite is run.
Otherwise all command-line options valid for test.regrtest are also valid for
this script.
XXX FAILING
test_im... | Clarify why test_import is failing under importlib. | Clarify why test_import is failing under importlib.
| Python | mit | sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator | """Run Python's standard test suite using importlib.__import__.
Tests known to fail because of assumptions that importlib (properly)
invalidates are automatically skipped if the entire test suite is run.
Otherwise all command-line options valid for test.regrtest are also valid for
this script.
XXX FAILING
test_im... | """Run Python's standard test suite using importlib.__import__.
Tests known to fail because of assumptions that importlib (properly)
invalidates are automatically skipped if the entire test suite is run.
Otherwise all command-line options valid for test.regrtest are also valid for
this script.
XXX FAILING
test_im... | <commit_before>"""Run Python's standard test suite using importlib.__import__.
Tests known to fail because of assumptions that importlib (properly)
invalidates are automatically skipped if the entire test suite is run.
Otherwise all command-line options valid for test.regrtest are also valid for
this script.
XXX FAIL... | """Run Python's standard test suite using importlib.__import__.
Tests known to fail because of assumptions that importlib (properly)
invalidates are automatically skipped if the entire test suite is run.
Otherwise all command-line options valid for test.regrtest are also valid for
this script.
XXX FAILING
test_im... | """Run Python's standard test suite using importlib.__import__.
Tests known to fail because of assumptions that importlib (properly)
invalidates are automatically skipped if the entire test suite is run.
Otherwise all command-line options valid for test.regrtest are also valid for
this script.
XXX FAILING
test_im... | <commit_before>"""Run Python's standard test suite using importlib.__import__.
Tests known to fail because of assumptions that importlib (properly)
invalidates are automatically skipped if the entire test suite is run.
Otherwise all command-line options valid for test.regrtest are also valid for
this script.
XXX FAIL... |
e77e5019ac81d6ea41e9253d394977543f26c9be | application.py | application.py | #!/usr/bin/env python
import os
from app import create_app
from flask.ext.script import Manager, Server
import watchtower
import logging
application = create_app(
os.getenv('EQ_ENVIRONMENT') or 'development'
)
application.debug = True
manager = Manager(application)
port = int(os.environ.get('PORT', 5000))
manage... | #!/usr/bin/env python
import os
from app import create_app
from flask.ext.script import Manager, Server
import watchtower
import logging
application = create_app(
os.getenv('EQ_ENVIRONMENT') or 'development'
)
application.debug = True
manager = Manager(application)
port = int(os.environ.get('PORT', 5000))
manage... | Allow log group to be set from env | Allow log group to be set from env
| Python | mit | ONSdigital/eq-survey-runner,ONSdigital/eq-survey-runner,ONSdigital/eq-survey-runner,ONSdigital/eq-survey-runner | #!/usr/bin/env python
import os
from app import create_app
from flask.ext.script import Manager, Server
import watchtower
import logging
application = create_app(
os.getenv('EQ_ENVIRONMENT') or 'development'
)
application.debug = True
manager = Manager(application)
port = int(os.environ.get('PORT', 5000))
manage... | #!/usr/bin/env python
import os
from app import create_app
from flask.ext.script import Manager, Server
import watchtower
import logging
application = create_app(
os.getenv('EQ_ENVIRONMENT') or 'development'
)
application.debug = True
manager = Manager(application)
port = int(os.environ.get('PORT', 5000))
manage... | <commit_before>#!/usr/bin/env python
import os
from app import create_app
from flask.ext.script import Manager, Server
import watchtower
import logging
application = create_app(
os.getenv('EQ_ENVIRONMENT') or 'development'
)
application.debug = True
manager = Manager(application)
port = int(os.environ.get('PORT'... | #!/usr/bin/env python
import os
from app import create_app
from flask.ext.script import Manager, Server
import watchtower
import logging
application = create_app(
os.getenv('EQ_ENVIRONMENT') or 'development'
)
application.debug = True
manager = Manager(application)
port = int(os.environ.get('PORT', 5000))
manage... | #!/usr/bin/env python
import os
from app import create_app
from flask.ext.script import Manager, Server
import watchtower
import logging
application = create_app(
os.getenv('EQ_ENVIRONMENT') or 'development'
)
application.debug = True
manager = Manager(application)
port = int(os.environ.get('PORT', 5000))
manage... | <commit_before>#!/usr/bin/env python
import os
from app import create_app
from flask.ext.script import Manager, Server
import watchtower
import logging
application = create_app(
os.getenv('EQ_ENVIRONMENT') or 'development'
)
application.debug = True
manager = Manager(application)
port = int(os.environ.get('PORT'... |
33ad684b4b8efab81d82e575d97184dc004d0386 | phy/conftest.py | phy/conftest.py | # -*- coding: utf-8 -*-
"""py.test utilities."""
#------------------------------------------------------------------------------
# Imports
#------------------------------------------------------------------------------
import logging
import numpy as np
import warnings
import matplotlib
from phylib import add_defau... | # -*- coding: utf-8 -*-
"""py.test utilities."""
#------------------------------------------------------------------------------
# Imports
#------------------------------------------------------------------------------
import logging
import numpy as np
import warnings
import matplotlib
from phylib import add_defau... | Remove repeat option from coverage | Remove repeat option from coverage
| Python | bsd-3-clause | kwikteam/phy,kwikteam/phy,kwikteam/phy | # -*- coding: utf-8 -*-
"""py.test utilities."""
#------------------------------------------------------------------------------
# Imports
#------------------------------------------------------------------------------
import logging
import numpy as np
import warnings
import matplotlib
from phylib import add_defau... | # -*- coding: utf-8 -*-
"""py.test utilities."""
#------------------------------------------------------------------------------
# Imports
#------------------------------------------------------------------------------
import logging
import numpy as np
import warnings
import matplotlib
from phylib import add_defau... | <commit_before># -*- coding: utf-8 -*-
"""py.test utilities."""
#------------------------------------------------------------------------------
# Imports
#------------------------------------------------------------------------------
import logging
import numpy as np
import warnings
import matplotlib
from phylib i... | # -*- coding: utf-8 -*-
"""py.test utilities."""
#------------------------------------------------------------------------------
# Imports
#------------------------------------------------------------------------------
import logging
import numpy as np
import warnings
import matplotlib
from phylib import add_defau... | # -*- coding: utf-8 -*-
"""py.test utilities."""
#------------------------------------------------------------------------------
# Imports
#------------------------------------------------------------------------------
import logging
import numpy as np
import warnings
import matplotlib
from phylib import add_defau... | <commit_before># -*- coding: utf-8 -*-
"""py.test utilities."""
#------------------------------------------------------------------------------
# Imports
#------------------------------------------------------------------------------
import logging
import numpy as np
import warnings
import matplotlib
from phylib i... |
56d7d7f9a6d8b0994f379b9f6a8f0af85be86c1a | docs/code_examples/websockets_async.py | docs/code_examples/websockets_async.py | import logging
logging.basicConfig(level=logging.INFO)
from gql import gql, Client, WebsocketsTransport
import asyncio
async def main():
transport = WebsocketsTransport(url='wss://countries.trevorblades.com/graphql')
# Using `async with` on the client will start a connection on the transport
# and provi... | import logging
logging.basicConfig(level=logging.INFO)
from gql import gql, Client, WebsocketsTransport
import asyncio
async def main():
transport = WebsocketsTransport(url='wss://countries.trevorblades.com/graphql')
# Using `async with` on the client will start a connection on the transport
# and provi... | Fix typo in docs websocket_async code example | Fix typo in docs websocket_async code example
| Python | mit | graphql-python/gql | import logging
logging.basicConfig(level=logging.INFO)
from gql import gql, Client, WebsocketsTransport
import asyncio
async def main():
transport = WebsocketsTransport(url='wss://countries.trevorblades.com/graphql')
# Using `async with` on the client will start a connection on the transport
# and provi... | import logging
logging.basicConfig(level=logging.INFO)
from gql import gql, Client, WebsocketsTransport
import asyncio
async def main():
transport = WebsocketsTransport(url='wss://countries.trevorblades.com/graphql')
# Using `async with` on the client will start a connection on the transport
# and provi... | <commit_before>import logging
logging.basicConfig(level=logging.INFO)
from gql import gql, Client, WebsocketsTransport
import asyncio
async def main():
transport = WebsocketsTransport(url='wss://countries.trevorblades.com/graphql')
# Using `async with` on the client will start a connection on the transport
... | import logging
logging.basicConfig(level=logging.INFO)
from gql import gql, Client, WebsocketsTransport
import asyncio
async def main():
transport = WebsocketsTransport(url='wss://countries.trevorblades.com/graphql')
# Using `async with` on the client will start a connection on the transport
# and provi... | import logging
logging.basicConfig(level=logging.INFO)
from gql import gql, Client, WebsocketsTransport
import asyncio
async def main():
transport = WebsocketsTransport(url='wss://countries.trevorblades.com/graphql')
# Using `async with` on the client will start a connection on the transport
# and provi... | <commit_before>import logging
logging.basicConfig(level=logging.INFO)
from gql import gql, Client, WebsocketsTransport
import asyncio
async def main():
transport = WebsocketsTransport(url='wss://countries.trevorblades.com/graphql')
# Using `async with` on the client will start a connection on the transport
... |
d0b25766a6e36294ae2c8083664fa36be6be292f | signage/urls.py | signage/urls.py | from django.conf.urls import url
from .views import DisplayCreate
from .views import DisplayDelete
from .views import DisplayDetail
from .views import DisplayList
from .views import DisplayUpdate
from .views import SlideCreate
from .views import SlideDelete
from .views import SlideList
from .views import SlideUpdate
... | from django.conf.urls import url
from . import views
app_name = 'signage'
urlpatterns = [
url(r'^display/(?P<pk>\d+)/$', views.DisplayDetail.as_view(), name='display'),
url(r'^display/create/$', views.DisplayCreate.as_view(), name='display_create'),
url(r'^display/(?P<pk>\d+)/delete/$', views.DisplayDel... | Refactor URL imports and paths | Refactor URL imports and paths
| Python | bsd-3-clause | jbittel/django-signage,jbittel/django-signage,jbittel/django-signage | from django.conf.urls import url
from .views import DisplayCreate
from .views import DisplayDelete
from .views import DisplayDetail
from .views import DisplayList
from .views import DisplayUpdate
from .views import SlideCreate
from .views import SlideDelete
from .views import SlideList
from .views import SlideUpdate
... | from django.conf.urls import url
from . import views
app_name = 'signage'
urlpatterns = [
url(r'^display/(?P<pk>\d+)/$', views.DisplayDetail.as_view(), name='display'),
url(r'^display/create/$', views.DisplayCreate.as_view(), name='display_create'),
url(r'^display/(?P<pk>\d+)/delete/$', views.DisplayDel... | <commit_before>from django.conf.urls import url
from .views import DisplayCreate
from .views import DisplayDelete
from .views import DisplayDetail
from .views import DisplayList
from .views import DisplayUpdate
from .views import SlideCreate
from .views import SlideDelete
from .views import SlideList
from .views impor... | from django.conf.urls import url
from . import views
app_name = 'signage'
urlpatterns = [
url(r'^display/(?P<pk>\d+)/$', views.DisplayDetail.as_view(), name='display'),
url(r'^display/create/$', views.DisplayCreate.as_view(), name='display_create'),
url(r'^display/(?P<pk>\d+)/delete/$', views.DisplayDel... | from django.conf.urls import url
from .views import DisplayCreate
from .views import DisplayDelete
from .views import DisplayDetail
from .views import DisplayList
from .views import DisplayUpdate
from .views import SlideCreate
from .views import SlideDelete
from .views import SlideList
from .views import SlideUpdate
... | <commit_before>from django.conf.urls import url
from .views import DisplayCreate
from .views import DisplayDelete
from .views import DisplayDetail
from .views import DisplayList
from .views import DisplayUpdate
from .views import SlideCreate
from .views import SlideDelete
from .views import SlideList
from .views impor... |
e42d34e2e3163488daff15c5b584d5f3757d162f | unit_test/memory_unit_test.py | unit_test/memory_unit_test.py | import memory
import head
# import write_heads
from keras import backend as K
number_of_memory_locations = 6
memory_vector_size = 3
memory_t = memory.initial(number_of_memory_locations, memory_vector_size)
weight_t = K.random_binomial((number_of_memory_locations, 1), 0.2)
read_vector = head.reading(memory_t, weigh... | from keras import backend as K
import theano.tensor as T
import theano
import memory
import head
#
# number_of_memory_locations = 6
# memory_vector_size = 3
#
# memory_t = memory.initial(number_of_memory_locations, memory_vector_size)
#
# weight_t = K.random_binomial((number_of_memory_locations, 1), 0.2)
#
# read_vecto... | Update code of NTM based on Keras. | Update code of NTM based on Keras.
| Python | mit | SigmaQuan/NTM-Keras | import memory
import head
# import write_heads
from keras import backend as K
number_of_memory_locations = 6
memory_vector_size = 3
memory_t = memory.initial(number_of_memory_locations, memory_vector_size)
weight_t = K.random_binomial((number_of_memory_locations, 1), 0.2)
read_vector = head.reading(memory_t, weigh... | from keras import backend as K
import theano.tensor as T
import theano
import memory
import head
#
# number_of_memory_locations = 6
# memory_vector_size = 3
#
# memory_t = memory.initial(number_of_memory_locations, memory_vector_size)
#
# weight_t = K.random_binomial((number_of_memory_locations, 1), 0.2)
#
# read_vecto... | <commit_before>import memory
import head
# import write_heads
from keras import backend as K
number_of_memory_locations = 6
memory_vector_size = 3
memory_t = memory.initial(number_of_memory_locations, memory_vector_size)
weight_t = K.random_binomial((number_of_memory_locations, 1), 0.2)
read_vector = head.reading(... | from keras import backend as K
import theano.tensor as T
import theano
import memory
import head
#
# number_of_memory_locations = 6
# memory_vector_size = 3
#
# memory_t = memory.initial(number_of_memory_locations, memory_vector_size)
#
# weight_t = K.random_binomial((number_of_memory_locations, 1), 0.2)
#
# read_vecto... | import memory
import head
# import write_heads
from keras import backend as K
number_of_memory_locations = 6
memory_vector_size = 3
memory_t = memory.initial(number_of_memory_locations, memory_vector_size)
weight_t = K.random_binomial((number_of_memory_locations, 1), 0.2)
read_vector = head.reading(memory_t, weigh... | <commit_before>import memory
import head
# import write_heads
from keras import backend as K
number_of_memory_locations = 6
memory_vector_size = 3
memory_t = memory.initial(number_of_memory_locations, memory_vector_size)
weight_t = K.random_binomial((number_of_memory_locations, 1), 0.2)
read_vector = head.reading(... |
55098fa6ce3a6d55849f08ddcfb95cc5c241abb5 | examples/IPLoM_example.py | examples/IPLoM_example.py | # for local run, before pygraphc packaging
import sys
sys.path.insert(0, '../pygraphc/misc')
from IPLoM import *
sys.path.insert(0, '../pygraphc/evaluation')
from ExternalEvaluation import *
# set path
ip_address = '161.166.232.17'
standard_path = '/home/hudan/Git/labeled-authlog/dataset/' + ip_address
standard_file =... | from pygraphc.misc.IPLoM import *
from pygraphc.evaluation.ExternalEvaluation import *
# set input path
ip_address = '161.166.232.17'
standard_path = '/home/hudan/Git/labeled-authlog/dataset/Hofstede2014/dataset1/' + ip_address
standard_file = standard_path + 'auth.log.anon.labeled'
analyzed_file = 'auth.log.anon'
pre... | Edit import module. pygraphc is now ready to be packaged | Edit import module. pygraphc is now ready to be packaged
| Python | mit | studiawan/pygraphc | # for local run, before pygraphc packaging
import sys
sys.path.insert(0, '../pygraphc/misc')
from IPLoM import *
sys.path.insert(0, '../pygraphc/evaluation')
from ExternalEvaluation import *
# set path
ip_address = '161.166.232.17'
standard_path = '/home/hudan/Git/labeled-authlog/dataset/' + ip_address
standard_file =... | from pygraphc.misc.IPLoM import *
from pygraphc.evaluation.ExternalEvaluation import *
# set input path
ip_address = '161.166.232.17'
standard_path = '/home/hudan/Git/labeled-authlog/dataset/Hofstede2014/dataset1/' + ip_address
standard_file = standard_path + 'auth.log.anon.labeled'
analyzed_file = 'auth.log.anon'
pre... | <commit_before># for local run, before pygraphc packaging
import sys
sys.path.insert(0, '../pygraphc/misc')
from IPLoM import *
sys.path.insert(0, '../pygraphc/evaluation')
from ExternalEvaluation import *
# set path
ip_address = '161.166.232.17'
standard_path = '/home/hudan/Git/labeled-authlog/dataset/' + ip_address
... | from pygraphc.misc.IPLoM import *
from pygraphc.evaluation.ExternalEvaluation import *
# set input path
ip_address = '161.166.232.17'
standard_path = '/home/hudan/Git/labeled-authlog/dataset/Hofstede2014/dataset1/' + ip_address
standard_file = standard_path + 'auth.log.anon.labeled'
analyzed_file = 'auth.log.anon'
pre... | # for local run, before pygraphc packaging
import sys
sys.path.insert(0, '../pygraphc/misc')
from IPLoM import *
sys.path.insert(0, '../pygraphc/evaluation')
from ExternalEvaluation import *
# set path
ip_address = '161.166.232.17'
standard_path = '/home/hudan/Git/labeled-authlog/dataset/' + ip_address
standard_file =... | <commit_before># for local run, before pygraphc packaging
import sys
sys.path.insert(0, '../pygraphc/misc')
from IPLoM import *
sys.path.insert(0, '../pygraphc/evaluation')
from ExternalEvaluation import *
# set path
ip_address = '161.166.232.17'
standard_path = '/home/hudan/Git/labeled-authlog/dataset/' + ip_address
... |
2a3fc1b82e47d23e3de8820343ab7d39c72aa35b | luispedro/urls.py | luispedro/urls.py | from django.conf.urls.defaults import *
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()
urlpatterns = patterns('',
# Example:
# (r'^luispedro/', include('luispedro.foo.urls')),
# Uncomment the admin/doc line below and add 'django.contrib.admin... | from django.conf.urls.defaults import *
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Example:
# (r'^luispedro/', include('luispedro.foo.urls')),
(r'^admin/', include(admin.site.urls)),
)
| Make this usable (at least testable) | Make this usable (at least testable)
| Python | agpl-3.0 | luispedro/django-gitcms,luispedro/django-gitcms | from django.conf.urls.defaults import *
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()
urlpatterns = patterns('',
# Example:
# (r'^luispedro/', include('luispedro.foo.urls')),
# Uncomment the admin/doc line below and add 'django.contrib.admin... | from django.conf.urls.defaults import *
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Example:
# (r'^luispedro/', include('luispedro.foo.urls')),
(r'^admin/', include(admin.site.urls)),
)
| <commit_before>from django.conf.urls.defaults import *
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()
urlpatterns = patterns('',
# Example:
# (r'^luispedro/', include('luispedro.foo.urls')),
# Uncomment the admin/doc line below and add 'djang... | from django.conf.urls.defaults import *
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Example:
# (r'^luispedro/', include('luispedro.foo.urls')),
(r'^admin/', include(admin.site.urls)),
)
| from django.conf.urls.defaults import *
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()
urlpatterns = patterns('',
# Example:
# (r'^luispedro/', include('luispedro.foo.urls')),
# Uncomment the admin/doc line below and add 'django.contrib.admin... | <commit_before>from django.conf.urls.defaults import *
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()
urlpatterns = patterns('',
# Example:
# (r'^luispedro/', include('luispedro.foo.urls')),
# Uncomment the admin/doc line below and add 'djang... |
e923a56f21fd6dc8d7e16005792d473788cb1925 | markups/common.py | markups/common.py | # This file is part of python-markups module
# License: 3-clause BSD, see LICENSE file
# Copyright: (C) Dmitry Shachnev, 2012-2018
import os.path
# Some common constants and functions
(LANGUAGE_HOME_PAGE, MODULE_HOME_PAGE, SYNTAX_DOCUMENTATION) = range(3)
CONFIGURATION_DIR = (os.getenv('XDG_CONFIG_HOME') or os.getenv... | # This file is part of python-markups module
# License: 3-clause BSD, see LICENSE file
# Copyright: (C) Dmitry Shachnev, 2012-2018
import os.path
# Some common constants and functions
(LANGUAGE_HOME_PAGE, MODULE_HOME_PAGE, SYNTAX_DOCUMENTATION) = range(3)
CONFIGURATION_DIR = (os.getenv('XDG_CONFIG_HOME') or os.getenv... | Add support for Arch Linux mathjax package | Add support for Arch Linux mathjax package
Fixes #4.
| Python | bsd-3-clause | mitya57/pymarkups,retext-project/pymarkups | # This file is part of python-markups module
# License: 3-clause BSD, see LICENSE file
# Copyright: (C) Dmitry Shachnev, 2012-2018
import os.path
# Some common constants and functions
(LANGUAGE_HOME_PAGE, MODULE_HOME_PAGE, SYNTAX_DOCUMENTATION) = range(3)
CONFIGURATION_DIR = (os.getenv('XDG_CONFIG_HOME') or os.getenv... | # This file is part of python-markups module
# License: 3-clause BSD, see LICENSE file
# Copyright: (C) Dmitry Shachnev, 2012-2018
import os.path
# Some common constants and functions
(LANGUAGE_HOME_PAGE, MODULE_HOME_PAGE, SYNTAX_DOCUMENTATION) = range(3)
CONFIGURATION_DIR = (os.getenv('XDG_CONFIG_HOME') or os.getenv... | <commit_before># This file is part of python-markups module
# License: 3-clause BSD, see LICENSE file
# Copyright: (C) Dmitry Shachnev, 2012-2018
import os.path
# Some common constants and functions
(LANGUAGE_HOME_PAGE, MODULE_HOME_PAGE, SYNTAX_DOCUMENTATION) = range(3)
CONFIGURATION_DIR = (os.getenv('XDG_CONFIG_HOME... | # This file is part of python-markups module
# License: 3-clause BSD, see LICENSE file
# Copyright: (C) Dmitry Shachnev, 2012-2018
import os.path
# Some common constants and functions
(LANGUAGE_HOME_PAGE, MODULE_HOME_PAGE, SYNTAX_DOCUMENTATION) = range(3)
CONFIGURATION_DIR = (os.getenv('XDG_CONFIG_HOME') or os.getenv... | # This file is part of python-markups module
# License: 3-clause BSD, see LICENSE file
# Copyright: (C) Dmitry Shachnev, 2012-2018
import os.path
# Some common constants and functions
(LANGUAGE_HOME_PAGE, MODULE_HOME_PAGE, SYNTAX_DOCUMENTATION) = range(3)
CONFIGURATION_DIR = (os.getenv('XDG_CONFIG_HOME') or os.getenv... | <commit_before># This file is part of python-markups module
# License: 3-clause BSD, see LICENSE file
# Copyright: (C) Dmitry Shachnev, 2012-2018
import os.path
# Some common constants and functions
(LANGUAGE_HOME_PAGE, MODULE_HOME_PAGE, SYNTAX_DOCUMENTATION) = range(3)
CONFIGURATION_DIR = (os.getenv('XDG_CONFIG_HOME... |
8fcdb1b07ba39befa178d66f7b214968d3de25d8 | coupons/settings.py | coupons/settings.py | import string
from django.conf import settings
COUPON_TYPES = getattr(settings, 'COUPONS_COUPON_TYPES', (
('monetary', 'Money based coupon'),
('percentage', 'Percentage discount'),
('virtual_currency', 'Virtual currency'),
))
CODE_LENGTH = getattr(settings, 'COUPNS_CODE_LENGTH', 15)
CODE_CHARS = getatt... | import string
from django.conf import settings
COUPON_TYPES = getattr(settings, 'COUPONS_COUPON_TYPES', (
('monetary', 'Money based coupon'),
('percentage', 'Percentage discount'),
('virtual_currency', 'Virtual currency'),
))
CODE_LENGTH = getattr(settings, 'COUPONS_CODE_LENGTH', 15)
CODE_CHARS = getat... | Correct typo in setting names | Correct typo in setting names | Python | bsd-3-clause | byteweaver/django-coupons,byteweaver/django-coupons | import string
from django.conf import settings
COUPON_TYPES = getattr(settings, 'COUPONS_COUPON_TYPES', (
('monetary', 'Money based coupon'),
('percentage', 'Percentage discount'),
('virtual_currency', 'Virtual currency'),
))
CODE_LENGTH = getattr(settings, 'COUPNS_CODE_LENGTH', 15)
CODE_CHARS = getatt... | import string
from django.conf import settings
COUPON_TYPES = getattr(settings, 'COUPONS_COUPON_TYPES', (
('monetary', 'Money based coupon'),
('percentage', 'Percentage discount'),
('virtual_currency', 'Virtual currency'),
))
CODE_LENGTH = getattr(settings, 'COUPONS_CODE_LENGTH', 15)
CODE_CHARS = getat... | <commit_before>import string
from django.conf import settings
COUPON_TYPES = getattr(settings, 'COUPONS_COUPON_TYPES', (
('monetary', 'Money based coupon'),
('percentage', 'Percentage discount'),
('virtual_currency', 'Virtual currency'),
))
CODE_LENGTH = getattr(settings, 'COUPNS_CODE_LENGTH', 15)
CODE... | import string
from django.conf import settings
COUPON_TYPES = getattr(settings, 'COUPONS_COUPON_TYPES', (
('monetary', 'Money based coupon'),
('percentage', 'Percentage discount'),
('virtual_currency', 'Virtual currency'),
))
CODE_LENGTH = getattr(settings, 'COUPONS_CODE_LENGTH', 15)
CODE_CHARS = getat... | import string
from django.conf import settings
COUPON_TYPES = getattr(settings, 'COUPONS_COUPON_TYPES', (
('monetary', 'Money based coupon'),
('percentage', 'Percentage discount'),
('virtual_currency', 'Virtual currency'),
))
CODE_LENGTH = getattr(settings, 'COUPNS_CODE_LENGTH', 15)
CODE_CHARS = getatt... | <commit_before>import string
from django.conf import settings
COUPON_TYPES = getattr(settings, 'COUPONS_COUPON_TYPES', (
('monetary', 'Money based coupon'),
('percentage', 'Percentage discount'),
('virtual_currency', 'Virtual currency'),
))
CODE_LENGTH = getattr(settings, 'COUPNS_CODE_LENGTH', 15)
CODE... |
b3850c475e449c0c6182629aa7521f335e86b1e1 | scrapy_local.py | scrapy_local.py | # Local dev settings for scrapy
# This is not the same
# Local config for testing
import os
# use this for running scrapy directly
# PROJECT_ROOT = os.path.abspath(os.path.dirname(__file__))
# FILES_STORE = os.path.join(PROJECT_ROOT, 'datafiles')
# Use this for deploying to scrapyd, as it would be in stage/productio... | # Local dev settings for scrapy
# This is not the same
# Local config for testing
import os
# use this for running scrapy directly
PROJECT_ROOT = os.path.abspath(os.path.dirname(__file__))
FILES_STORE = os.path.join(PROJECT_ROOT, 'datafiles')
| Fix issue with scrapy local settings | Fix issue with scrapy local settings
| Python | mit | comsaint/legco-watch,comsaint/legco-watch,comsaint/legco-watch,legco-watch/legco-watch,legco-watch/legco-watch,legco-watch/legco-watch,legco-watch/legco-watch,comsaint/legco-watch | # Local dev settings for scrapy
# This is not the same
# Local config for testing
import os
# use this for running scrapy directly
# PROJECT_ROOT = os.path.abspath(os.path.dirname(__file__))
# FILES_STORE = os.path.join(PROJECT_ROOT, 'datafiles')
# Use this for deploying to scrapyd, as it would be in stage/productio... | # Local dev settings for scrapy
# This is not the same
# Local config for testing
import os
# use this for running scrapy directly
PROJECT_ROOT = os.path.abspath(os.path.dirname(__file__))
FILES_STORE = os.path.join(PROJECT_ROOT, 'datafiles')
| <commit_before># Local dev settings for scrapy
# This is not the same
# Local config for testing
import os
# use this for running scrapy directly
# PROJECT_ROOT = os.path.abspath(os.path.dirname(__file__))
# FILES_STORE = os.path.join(PROJECT_ROOT, 'datafiles')
# Use this for deploying to scrapyd, as it would be in ... | # Local dev settings for scrapy
# This is not the same
# Local config for testing
import os
# use this for running scrapy directly
PROJECT_ROOT = os.path.abspath(os.path.dirname(__file__))
FILES_STORE = os.path.join(PROJECT_ROOT, 'datafiles')
| # Local dev settings for scrapy
# This is not the same
# Local config for testing
import os
# use this for running scrapy directly
# PROJECT_ROOT = os.path.abspath(os.path.dirname(__file__))
# FILES_STORE = os.path.join(PROJECT_ROOT, 'datafiles')
# Use this for deploying to scrapyd, as it would be in stage/productio... | <commit_before># Local dev settings for scrapy
# This is not the same
# Local config for testing
import os
# use this for running scrapy directly
# PROJECT_ROOT = os.path.abspath(os.path.dirname(__file__))
# FILES_STORE = os.path.join(PROJECT_ROOT, 'datafiles')
# Use this for deploying to scrapyd, as it would be in ... |
b1504dac6d33b4f0774cabceeb219653b9b6201f | ui.py | ui.py | from terminaltables import SingleTable
def render(object, **kw):
if object == 'gallows':
render_gallows(**kw)
if object == 'bank':
render_bank(**kw)
if object == 'game_state':
render_game_state(**kw)
def render_gallows(parts=0, **kw):
print("""
______
| |
... | from terminaltables import SingleTable
def render(object, **kw):
if object == 'gallows':
render_gallows(**kw)
if object == 'bank':
render_bank(**kw)
if object == 'game_state':
render_game_state(**kw)
def render_gallows(parts=0, **kw):
print("""
______
| |
... | Change the way we get a clean, blank line before rendering letter bank | Change the way we get a clean, blank line before rendering letter bank
| Python | mit | tml/python-hangman-2017-summer | from terminaltables import SingleTable
def render(object, **kw):
if object == 'gallows':
render_gallows(**kw)
if object == 'bank':
render_bank(**kw)
if object == 'game_state':
render_game_state(**kw)
def render_gallows(parts=0, **kw):
print("""
______
| |
... | from terminaltables import SingleTable
def render(object, **kw):
if object == 'gallows':
render_gallows(**kw)
if object == 'bank':
render_bank(**kw)
if object == 'game_state':
render_game_state(**kw)
def render_gallows(parts=0, **kw):
print("""
______
| |
... | <commit_before>from terminaltables import SingleTable
def render(object, **kw):
if object == 'gallows':
render_gallows(**kw)
if object == 'bank':
render_bank(**kw)
if object == 'game_state':
render_game_state(**kw)
def render_gallows(parts=0, **kw):
print("""
______
... | from terminaltables import SingleTable
def render(object, **kw):
if object == 'gallows':
render_gallows(**kw)
if object == 'bank':
render_bank(**kw)
if object == 'game_state':
render_game_state(**kw)
def render_gallows(parts=0, **kw):
print("""
______
| |
... | from terminaltables import SingleTable
def render(object, **kw):
if object == 'gallows':
render_gallows(**kw)
if object == 'bank':
render_bank(**kw)
if object == 'game_state':
render_game_state(**kw)
def render_gallows(parts=0, **kw):
print("""
______
| |
... | <commit_before>from terminaltables import SingleTable
def render(object, **kw):
if object == 'gallows':
render_gallows(**kw)
if object == 'bank':
render_bank(**kw)
if object == 'game_state':
render_game_state(**kw)
def render_gallows(parts=0, **kw):
print("""
______
... |
cf2af4a006d2545bbe0ec9fc92d087d8ff6805f1 | cah.py | cah.py | STA_F= "/home/ormiret/cah/statements.txt"
ANS_F= "/home/ormiret/cah/answers.txt"
import random
def rand_line(filename):
with open(filename) as f:
lines = f.readlines()
return random.choice(lines).strip()
def statement():
return rand_line(STA_F)
def answer():
return rand_line(ANS_F)
def fill_... | STA_F= "statements.txt"
ANS_F= "answers.txt"
import random
def rand_line(filename):
with open(filename) as f:
lines = f.readlines()
return random.choice(lines).strip()
def statement():
return rand_line(STA_F)
def answer():
return rand_line(ANS_F)
def fill_statement():
statement = rand_li... | Fix path to statements and answers files. | Fix path to statements and answers files.
| Python | mit | ormiret/cards-against-hackspace,ormiret/cards-against-hackspace | STA_F= "/home/ormiret/cah/statements.txt"
ANS_F= "/home/ormiret/cah/answers.txt"
import random
def rand_line(filename):
with open(filename) as f:
lines = f.readlines()
return random.choice(lines).strip()
def statement():
return rand_line(STA_F)
def answer():
return rand_line(ANS_F)
def fill_... | STA_F= "statements.txt"
ANS_F= "answers.txt"
import random
def rand_line(filename):
with open(filename) as f:
lines = f.readlines()
return random.choice(lines).strip()
def statement():
return rand_line(STA_F)
def answer():
return rand_line(ANS_F)
def fill_statement():
statement = rand_li... | <commit_before>STA_F= "/home/ormiret/cah/statements.txt"
ANS_F= "/home/ormiret/cah/answers.txt"
import random
def rand_line(filename):
with open(filename) as f:
lines = f.readlines()
return random.choice(lines).strip()
def statement():
return rand_line(STA_F)
def answer():
return rand_line(AN... | STA_F= "statements.txt"
ANS_F= "answers.txt"
import random
def rand_line(filename):
with open(filename) as f:
lines = f.readlines()
return random.choice(lines).strip()
def statement():
return rand_line(STA_F)
def answer():
return rand_line(ANS_F)
def fill_statement():
statement = rand_li... | STA_F= "/home/ormiret/cah/statements.txt"
ANS_F= "/home/ormiret/cah/answers.txt"
import random
def rand_line(filename):
with open(filename) as f:
lines = f.readlines()
return random.choice(lines).strip()
def statement():
return rand_line(STA_F)
def answer():
return rand_line(ANS_F)
def fill_... | <commit_before>STA_F= "/home/ormiret/cah/statements.txt"
ANS_F= "/home/ormiret/cah/answers.txt"
import random
def rand_line(filename):
with open(filename) as f:
lines = f.readlines()
return random.choice(lines).strip()
def statement():
return rand_line(STA_F)
def answer():
return rand_line(AN... |
7dfd89b22c66eb4cfc38218b9430adc38e8ad073 | oonib/__init__.py | oonib/__init__.py | """
In here we shall keep track of all variables and objects that should be
instantiated only once and be common to pieces of GLBackend code.
"""
__version__ = '1.0.0'
__all__ = ['Storage', 'randomStr']
import string
import random
class Storage(dict):
"""
A Storage object is like a dictionary except `obj.f... | """
In here we shall keep track of all variables and objects that should be
instantiated only once and be common to pieces of GLBackend code.
"""
__version__ = '1.0.0'
__all__ = ['Storage', 'randomStr']
import string
from random import SystemRandom
random = SystemRandom()
class Storage(dict):
"""
A Storage... | Use SystemRandom instead of insecure RNG | Use SystemRandom instead of insecure RNG
| Python | bsd-2-clause | dstufft/ooni-backend,dstufft/ooni-backend | """
In here we shall keep track of all variables and objects that should be
instantiated only once and be common to pieces of GLBackend code.
"""
__version__ = '1.0.0'
__all__ = ['Storage', 'randomStr']
import string
import random
class Storage(dict):
"""
A Storage object is like a dictionary except `obj.f... | """
In here we shall keep track of all variables and objects that should be
instantiated only once and be common to pieces of GLBackend code.
"""
__version__ = '1.0.0'
__all__ = ['Storage', 'randomStr']
import string
from random import SystemRandom
random = SystemRandom()
class Storage(dict):
"""
A Storage... | <commit_before>"""
In here we shall keep track of all variables and objects that should be
instantiated only once and be common to pieces of GLBackend code.
"""
__version__ = '1.0.0'
__all__ = ['Storage', 'randomStr']
import string
import random
class Storage(dict):
"""
A Storage object is like a dictionar... | """
In here we shall keep track of all variables and objects that should be
instantiated only once and be common to pieces of GLBackend code.
"""
__version__ = '1.0.0'
__all__ = ['Storage', 'randomStr']
import string
from random import SystemRandom
random = SystemRandom()
class Storage(dict):
"""
A Storage... | """
In here we shall keep track of all variables and objects that should be
instantiated only once and be common to pieces of GLBackend code.
"""
__version__ = '1.0.0'
__all__ = ['Storage', 'randomStr']
import string
import random
class Storage(dict):
"""
A Storage object is like a dictionary except `obj.f... | <commit_before>"""
In here we shall keep track of all variables and objects that should be
instantiated only once and be common to pieces of GLBackend code.
"""
__version__ = '1.0.0'
__all__ = ['Storage', 'randomStr']
import string
import random
class Storage(dict):
"""
A Storage object is like a dictionar... |
09c4cacfd5aeb5740c2c741a74043938fd0d1b0f | tests/test_reporters.py | tests/test_reporters.py | import pytest
from seqeval.reporters import DictReporter
@pytest.mark.parametrize(
'rows, expected',
[
([], {}),
(
[['PERSON', 0.82, 0.79, 0.81, 24]],
{
'PERSON': {
'precision': 0.82,
'recall': 0.79,
... | import pytest
from seqeval.reporters import DictReporter, StringReporter
class TestDictReporter:
def test_write_empty(self):
reporter = DictReporter()
reporter.write_blank()
assert reporter.report_dict == {}
@pytest.mark.parametrize(
'rows, expected',
[
([... | Add test cases for reporters.py | Add test cases for reporters.py
| Python | mit | chakki-works/seqeval,chakki-works/seqeval | import pytest
from seqeval.reporters import DictReporter
@pytest.mark.parametrize(
'rows, expected',
[
([], {}),
(
[['PERSON', 0.82, 0.79, 0.81, 24]],
{
'PERSON': {
'precision': 0.82,
'recall': 0.79,
... | import pytest
from seqeval.reporters import DictReporter, StringReporter
class TestDictReporter:
def test_write_empty(self):
reporter = DictReporter()
reporter.write_blank()
assert reporter.report_dict == {}
@pytest.mark.parametrize(
'rows, expected',
[
([... | <commit_before>import pytest
from seqeval.reporters import DictReporter
@pytest.mark.parametrize(
'rows, expected',
[
([], {}),
(
[['PERSON', 0.82, 0.79, 0.81, 24]],
{
'PERSON': {
'precision': 0.82,
'recall': 0.79,... | import pytest
from seqeval.reporters import DictReporter, StringReporter
class TestDictReporter:
def test_write_empty(self):
reporter = DictReporter()
reporter.write_blank()
assert reporter.report_dict == {}
@pytest.mark.parametrize(
'rows, expected',
[
([... | import pytest
from seqeval.reporters import DictReporter
@pytest.mark.parametrize(
'rows, expected',
[
([], {}),
(
[['PERSON', 0.82, 0.79, 0.81, 24]],
{
'PERSON': {
'precision': 0.82,
'recall': 0.79,
... | <commit_before>import pytest
from seqeval.reporters import DictReporter
@pytest.mark.parametrize(
'rows, expected',
[
([], {}),
(
[['PERSON', 0.82, 0.79, 0.81, 24]],
{
'PERSON': {
'precision': 0.82,
'recall': 0.79,... |
43c7be216422e66a6789ea115995373cfb017c65 | daemail/__init__.py | daemail/__init__.py | from __future__ import unicode_literals
import platform
__version__ = '0.3.0'
USER_AGENT = 'daemail {} ({} {})'.format(
__version__, platform.python_implementation(), platform.python_version()
)
| from __future__ import unicode_literals
import platform
__version__ = '0.3.0.dev1'
USER_AGENT = 'daemail {} ({} {})'.format(
__version__, platform.python_implementation(), platform.python_version()
)
| Mark current code as a dev version | Mark current code as a dev version
| Python | mit | jwodder/daemail | from __future__ import unicode_literals
import platform
__version__ = '0.3.0'
USER_AGENT = 'daemail {} ({} {})'.format(
__version__, platform.python_implementation(), platform.python_version()
)
Mark current code as a dev version | from __future__ import unicode_literals
import platform
__version__ = '0.3.0.dev1'
USER_AGENT = 'daemail {} ({} {})'.format(
__version__, platform.python_implementation(), platform.python_version()
)
| <commit_before>from __future__ import unicode_literals
import platform
__version__ = '0.3.0'
USER_AGENT = 'daemail {} ({} {})'.format(
__version__, platform.python_implementation(), platform.python_version()
)
<commit_msg>Mark current code as a dev version<commit_after> | from __future__ import unicode_literals
import platform
__version__ = '0.3.0.dev1'
USER_AGENT = 'daemail {} ({} {})'.format(
__version__, platform.python_implementation(), platform.python_version()
)
| from __future__ import unicode_literals
import platform
__version__ = '0.3.0'
USER_AGENT = 'daemail {} ({} {})'.format(
__version__, platform.python_implementation(), platform.python_version()
)
Mark current code as a dev versionfrom __future__ import unicode_literals
import platform
__version__ = '0.3.0.dev... | <commit_before>from __future__ import unicode_literals
import platform
__version__ = '0.3.0'
USER_AGENT = 'daemail {} ({} {})'.format(
__version__, platform.python_implementation(), platform.python_version()
)
<commit_msg>Mark current code as a dev version<commit_after>from __future__ import unicode_literals
... |
4f1f0b9d1643a6ff4934070472973e60b1eb6c26 | tests/rules_tests/isValid_tests/NongrammarEntitiesTest.py | tests/rules_tests/isValid_tests/NongrammarEntitiesTest.py | #!/usr/bin/env python
"""
:Author Patrik Valkovic
:Created 23.06.2017 16:39
:Licence GNUv3
Part of grammpy
"""
from unittest import main, TestCase
from grammpy import Rule
from .grammar import *
class NongrammarEntitiesTest(TestCase):
pass
if __name__ == '__main__':
main() | #!/usr/bin/env python
"""
:Author Patrik Valkovic
:Created 23.06.2017 16:39
:Licence GNUv3
Part of grammpy
"""
from unittest import main, TestCase
from grammpy import Rule, Nonterminal as _N
from grammpy.exceptions import TerminalDoesNotExistsException, NonterminalDoesNotExistsException
from .grammar import *
class... | Add tests of terminals and nonterminals that are not in grammar | Add tests of terminals and nonterminals that are not in grammar
| Python | mit | PatrikValkovic/grammpy | #!/usr/bin/env python
"""
:Author Patrik Valkovic
:Created 23.06.2017 16:39
:Licence GNUv3
Part of grammpy
"""
from unittest import main, TestCase
from grammpy import Rule
from .grammar import *
class NongrammarEntitiesTest(TestCase):
pass
if __name__ == '__main__':
main()Add tests of terminals and nonter... | #!/usr/bin/env python
"""
:Author Patrik Valkovic
:Created 23.06.2017 16:39
:Licence GNUv3
Part of grammpy
"""
from unittest import main, TestCase
from grammpy import Rule, Nonterminal as _N
from grammpy.exceptions import TerminalDoesNotExistsException, NonterminalDoesNotExistsException
from .grammar import *
class... | <commit_before>#!/usr/bin/env python
"""
:Author Patrik Valkovic
:Created 23.06.2017 16:39
:Licence GNUv3
Part of grammpy
"""
from unittest import main, TestCase
from grammpy import Rule
from .grammar import *
class NongrammarEntitiesTest(TestCase):
pass
if __name__ == '__main__':
main()<commit_msg>Add te... | #!/usr/bin/env python
"""
:Author Patrik Valkovic
:Created 23.06.2017 16:39
:Licence GNUv3
Part of grammpy
"""
from unittest import main, TestCase
from grammpy import Rule, Nonterminal as _N
from grammpy.exceptions import TerminalDoesNotExistsException, NonterminalDoesNotExistsException
from .grammar import *
class... | #!/usr/bin/env python
"""
:Author Patrik Valkovic
:Created 23.06.2017 16:39
:Licence GNUv3
Part of grammpy
"""
from unittest import main, TestCase
from grammpy import Rule
from .grammar import *
class NongrammarEntitiesTest(TestCase):
pass
if __name__ == '__main__':
main()Add tests of terminals and nonter... | <commit_before>#!/usr/bin/env python
"""
:Author Patrik Valkovic
:Created 23.06.2017 16:39
:Licence GNUv3
Part of grammpy
"""
from unittest import main, TestCase
from grammpy import Rule
from .grammar import *
class NongrammarEntitiesTest(TestCase):
pass
if __name__ == '__main__':
main()<commit_msg>Add te... |
e435592d64dbd4f75a7cc9d1ac8bb17ab4177a2b | erpnext/patches/v4_2/default_website_style.py | erpnext/patches/v4_2/default_website_style.py | import frappe
from frappe.templates.pages.style_settings import default_properties
def execute():
style_settings = frappe.get_doc("Style Settings", "Style Settings")
if not style_settings.apply_style:
style_settings.update(default_properties)
style_settings.apply_style = 1
style_settings.save()
| import frappe
from frappe.templates.pages.style_settings import default_properties
def execute():
frappe.reload_doc('website', 'doctype', 'style_settings')
style_settings = frappe.get_doc("Style Settings", "Style Settings")
if not style_settings.apply_style:
style_settings.update(default_properties)
style_setti... | Fix default website style patch (reload doc) | [minor] Fix default website style patch (reload doc) | Python | agpl-3.0 | gangadharkadam/saloon_erp,hatwar/buyback-erpnext,gangadharkadam/v6_erp,indictranstech/Das_Erpnext,gangadharkadam/vlinkerp,shft117/SteckerApp,sheafferusa/erpnext,mahabuber/erpnext,hernad/erpnext,suyashphadtare/gd-erp,gangadharkadam/letzerp,indictranstech/internal-erpnext,indictranstech/buyback-erp,4commerce-technologies... | import frappe
from frappe.templates.pages.style_settings import default_properties
def execute():
style_settings = frappe.get_doc("Style Settings", "Style Settings")
if not style_settings.apply_style:
style_settings.update(default_properties)
style_settings.apply_style = 1
style_settings.save()
[minor] Fix def... | import frappe
from frappe.templates.pages.style_settings import default_properties
def execute():
frappe.reload_doc('website', 'doctype', 'style_settings')
style_settings = frappe.get_doc("Style Settings", "Style Settings")
if not style_settings.apply_style:
style_settings.update(default_properties)
style_setti... | <commit_before>import frappe
from frappe.templates.pages.style_settings import default_properties
def execute():
style_settings = frappe.get_doc("Style Settings", "Style Settings")
if not style_settings.apply_style:
style_settings.update(default_properties)
style_settings.apply_style = 1
style_settings.save()
... | import frappe
from frappe.templates.pages.style_settings import default_properties
def execute():
frappe.reload_doc('website', 'doctype', 'style_settings')
style_settings = frappe.get_doc("Style Settings", "Style Settings")
if not style_settings.apply_style:
style_settings.update(default_properties)
style_setti... | import frappe
from frappe.templates.pages.style_settings import default_properties
def execute():
style_settings = frappe.get_doc("Style Settings", "Style Settings")
if not style_settings.apply_style:
style_settings.update(default_properties)
style_settings.apply_style = 1
style_settings.save()
[minor] Fix def... | <commit_before>import frappe
from frappe.templates.pages.style_settings import default_properties
def execute():
style_settings = frappe.get_doc("Style Settings", "Style Settings")
if not style_settings.apply_style:
style_settings.update(default_properties)
style_settings.apply_style = 1
style_settings.save()
... |
0378572237df9c3a4bfa7a5a7009fdd664e527e5 | wagtail/wagtailadmin/templatetags/gravatar.py | wagtail/wagtailadmin/templatetags/gravatar.py | # place inside a 'templatetags' directory inside the top level of a Django app (not project, must be inside an app)
# at the top of your page template include this:
# {% load gravatar %}
# and to use the url do this:
# <img src="{% gravatar_url '[email protected]' %}">
# or
# <img src="{% gravatar_url sometemplatev... | # place inside a 'templatetags' directory inside the top level of a Django app (not project, must be inside an app)
# at the top of your page template include this:
# {% load gravatar %}
# and to use the url do this:
# <img src="{% gravatar_url '[email protected]' %}">
# or
# <img src="{% gravatar_url sometemplatev... | Make mystery man the default Gravatar image | Make mystery man the default Gravatar image
| Python | bsd-3-clause | gasman/wagtail,rsalmaso/wagtail,nealtodd/wagtail,timorieber/wagtail,jnns/wagtail,wagtail/wagtail,gasman/wagtail,thenewguy/wagtail,mikedingjan/wagtail,wagtail/wagtail,gasman/wagtail,torchbox/wagtail,iansprice/wagtail,zerolab/wagtail,takeflight/wagtail,kaedroho/wagtail,Toshakins/wagtail,jnns/wagtail,nimasmi/wagtail,kaedr... | # place inside a 'templatetags' directory inside the top level of a Django app (not project, must be inside an app)
# at the top of your page template include this:
# {% load gravatar %}
# and to use the url do this:
# <img src="{% gravatar_url '[email protected]' %}">
# or
# <img src="{% gravatar_url sometemplatev... | # place inside a 'templatetags' directory inside the top level of a Django app (not project, must be inside an app)
# at the top of your page template include this:
# {% load gravatar %}
# and to use the url do this:
# <img src="{% gravatar_url '[email protected]' %}">
# or
# <img src="{% gravatar_url sometemplatev... | <commit_before># place inside a 'templatetags' directory inside the top level of a Django app (not project, must be inside an app)
# at the top of your page template include this:
# {% load gravatar %}
# and to use the url do this:
# <img src="{% gravatar_url '[email protected]' %}">
# or
# <img src="{% gravatar_ur... | # place inside a 'templatetags' directory inside the top level of a Django app (not project, must be inside an app)
# at the top of your page template include this:
# {% load gravatar %}
# and to use the url do this:
# <img src="{% gravatar_url '[email protected]' %}">
# or
# <img src="{% gravatar_url sometemplatev... | # place inside a 'templatetags' directory inside the top level of a Django app (not project, must be inside an app)
# at the top of your page template include this:
# {% load gravatar %}
# and to use the url do this:
# <img src="{% gravatar_url '[email protected]' %}">
# or
# <img src="{% gravatar_url sometemplatev... | <commit_before># place inside a 'templatetags' directory inside the top level of a Django app (not project, must be inside an app)
# at the top of your page template include this:
# {% load gravatar %}
# and to use the url do this:
# <img src="{% gravatar_url '[email protected]' %}">
# or
# <img src="{% gravatar_ur... |
9ff346834a39605a707d66d4a2c6e3dc20dcdd78 | markov_chain.py | markov_chain.py | from random import choice
class MarkovChain(object):
""" An interface for signle-word states Markov Chains """
def __init__(self, text=None):
self._states_map = {}
if text is not None:
self.add_text(text)
def add_text(self, text, separator=" "):
""" Adds text ... | from random import choice
class MarkovChain(object):
""" An interface for signle-word states Markov Chains """
def __init__(self, text=None):
self._states_map = {}
if text is not None:
self.add_text(text)
def add_text(self, text, separator=" "):
""" Adds text to the ma... | Add Markov Chain representation class | Add Markov Chain representation class
| Python | mit | iluxonchik/lyricist | from random import choice
class MarkovChain(object):
""" An interface for signle-word states Markov Chains """
def __init__(self, text=None):
self._states_map = {}
if text is not None:
self.add_text(text)
def add_text(self, text, separator=" "):
""" Adds text ... | from random import choice
class MarkovChain(object):
""" An interface for signle-word states Markov Chains """
def __init__(self, text=None):
self._states_map = {}
if text is not None:
self.add_text(text)
def add_text(self, text, separator=" "):
""" Adds text to the ma... | <commit_before>from random import choice
class MarkovChain(object):
""" An interface for signle-word states Markov Chains """
def __init__(self, text=None):
self._states_map = {}
if text is not None:
self.add_text(text)
def add_text(self, text, separator=" "):
... | from random import choice
class MarkovChain(object):
""" An interface for signle-word states Markov Chains """
def __init__(self, text=None):
self._states_map = {}
if text is not None:
self.add_text(text)
def add_text(self, text, separator=" "):
""" Adds text to the ma... | from random import choice
class MarkovChain(object):
""" An interface for signle-word states Markov Chains """
def __init__(self, text=None):
self._states_map = {}
if text is not None:
self.add_text(text)
def add_text(self, text, separator=" "):
""" Adds text ... | <commit_before>from random import choice
class MarkovChain(object):
""" An interface for signle-word states Markov Chains """
def __init__(self, text=None):
self._states_map = {}
if text is not None:
self.add_text(text)
def add_text(self, text, separator=" "):
... |
28afc9f6f81e1e7ed94e2ec561ef321bff8bb56a | sphinxdoc/urls.py | sphinxdoc/urls.py | # encoding: utf-8
"""
URL conf for django-sphinxdoc.
"""
from django.conf.urls.defaults import patterns, url
from django.views.generic import list_detail
from sphinxdoc import models
from sphinxdoc.views import ProjectSearchView
project_info = {
'queryset': models.Project.objects.all().order_by('name'),
'te... | # encoding: utf-8
"""
URL conf for django-sphinxdoc.
"""
from django.conf.urls.defaults import patterns, url
from django.views.generic import list_detail
from sphinxdoc import models
from sphinxdoc.views import ProjectSearchView
project_info = {
'queryset': models.Project.objects.all().order_by('name'),
'te... | Support more general documentation path names. | Support more general documentation path names.
| Python | bsd-3-clause | 30loops/django-sphinxdoc,kamni/django-sphinxdoc | # encoding: utf-8
"""
URL conf for django-sphinxdoc.
"""
from django.conf.urls.defaults import patterns, url
from django.views.generic import list_detail
from sphinxdoc import models
from sphinxdoc.views import ProjectSearchView
project_info = {
'queryset': models.Project.objects.all().order_by('name'),
'te... | # encoding: utf-8
"""
URL conf for django-sphinxdoc.
"""
from django.conf.urls.defaults import patterns, url
from django.views.generic import list_detail
from sphinxdoc import models
from sphinxdoc.views import ProjectSearchView
project_info = {
'queryset': models.Project.objects.all().order_by('name'),
'te... | <commit_before># encoding: utf-8
"""
URL conf for django-sphinxdoc.
"""
from django.conf.urls.defaults import patterns, url
from django.views.generic import list_detail
from sphinxdoc import models
from sphinxdoc.views import ProjectSearchView
project_info = {
'queryset': models.Project.objects.all().order_by('... | # encoding: utf-8
"""
URL conf for django-sphinxdoc.
"""
from django.conf.urls.defaults import patterns, url
from django.views.generic import list_detail
from sphinxdoc import models
from sphinxdoc.views import ProjectSearchView
project_info = {
'queryset': models.Project.objects.all().order_by('name'),
'te... | # encoding: utf-8
"""
URL conf for django-sphinxdoc.
"""
from django.conf.urls.defaults import patterns, url
from django.views.generic import list_detail
from sphinxdoc import models
from sphinxdoc.views import ProjectSearchView
project_info = {
'queryset': models.Project.objects.all().order_by('name'),
'te... | <commit_before># encoding: utf-8
"""
URL conf for django-sphinxdoc.
"""
from django.conf.urls.defaults import patterns, url
from django.views.generic import list_detail
from sphinxdoc import models
from sphinxdoc.views import ProjectSearchView
project_info = {
'queryset': models.Project.objects.all().order_by('... |
c7fef59a7e8c473a568b1aad7f30229eb71013dd | src/azure/cli/commands/resourcegroup.py | src/azure/cli/commands/resourcegroup.py | from msrest import Serializer
from ..commands import command, description
from ._command_creation import get_service_client
@command('resource group list')
@description('List resource groups')
# TODO: waiting on Python Azure SDK bug fixes
# @option('--tag-name -g <tagName>', L('the resource group's tag name'))
# @opti... | from msrest import Serializer
from ..commands import command, description
from ._command_creation import get_mgmt_service_client
@command('resource group list')
@description('List resource groups')
# TODO: waiting on Python Azure SDK bug fixes
# @option('--tag-name -g <tagName>', L('the resource group's tag name'))
# ... | Fix build break (renamed function) | Fix build break (renamed function)
| Python | mit | BurtBiel/azure-cli,samedder/azure-cli,yugangw-msft/azure-cli,yugangw-msft/azure-cli,yugangw-msft/azure-cli,samedder/azure-cli,QingChenmsft/azure-cli,samedder/azure-cli,yugangw-msft/azure-cli,QingChenmsft/azure-cli,BurtBiel/azure-cli,QingChenmsft/azure-cli,yugangw-msft/azure-cli,yugangw-msft/azure-cli,QingChenmsft/azure... | from msrest import Serializer
from ..commands import command, description
from ._command_creation import get_service_client
@command('resource group list')
@description('List resource groups')
# TODO: waiting on Python Azure SDK bug fixes
# @option('--tag-name -g <tagName>', L('the resource group's tag name'))
# @opti... | from msrest import Serializer
from ..commands import command, description
from ._command_creation import get_mgmt_service_client
@command('resource group list')
@description('List resource groups')
# TODO: waiting on Python Azure SDK bug fixes
# @option('--tag-name -g <tagName>', L('the resource group's tag name'))
# ... | <commit_before>from msrest import Serializer
from ..commands import command, description
from ._command_creation import get_service_client
@command('resource group list')
@description('List resource groups')
# TODO: waiting on Python Azure SDK bug fixes
# @option('--tag-name -g <tagName>', L('the resource group's tag ... | from msrest import Serializer
from ..commands import command, description
from ._command_creation import get_mgmt_service_client
@command('resource group list')
@description('List resource groups')
# TODO: waiting on Python Azure SDK bug fixes
# @option('--tag-name -g <tagName>', L('the resource group's tag name'))
# ... | from msrest import Serializer
from ..commands import command, description
from ._command_creation import get_service_client
@command('resource group list')
@description('List resource groups')
# TODO: waiting on Python Azure SDK bug fixes
# @option('--tag-name -g <tagName>', L('the resource group's tag name'))
# @opti... | <commit_before>from msrest import Serializer
from ..commands import command, description
from ._command_creation import get_service_client
@command('resource group list')
@description('List resource groups')
# TODO: waiting on Python Azure SDK bug fixes
# @option('--tag-name -g <tagName>', L('the resource group's tag ... |
f456f4e44a95ff36516395f41bb3a35afa33a90e | examples/pub_sub_more_on_filter.py | examples/pub_sub_more_on_filter.py | import time
from osbrain import run_agent
from osbrain import run_nameserver
def log_a(agent, message):
agent.log_info('Log a: %s' % message)
def log_b(agent, message):
agent.log_info('Log b: %s' % message)
def send_messages(agent):
agent.send('main', 'Apple', topic='a')
agent.send('main', 'Banana... | import time
from osbrain import run_agent
from osbrain import run_nameserver
def log_a(agent, message):
agent.log_info('Log a: %s' % message)
def log_b(agent, message):
agent.log_info('Log b: %s' % message)
def send_messages(agent):
agent.send('main', 'Apple', topic='a')
agent.send('main', 'Banana... | Fix example with wrong `handler` parameter name | Fix example with wrong `handler` parameter name
| Python | apache-2.0 | opensistemas-hub/osbrain | import time
from osbrain import run_agent
from osbrain import run_nameserver
def log_a(agent, message):
agent.log_info('Log a: %s' % message)
def log_b(agent, message):
agent.log_info('Log b: %s' % message)
def send_messages(agent):
agent.send('main', 'Apple', topic='a')
agent.send('main', 'Banana... | import time
from osbrain import run_agent
from osbrain import run_nameserver
def log_a(agent, message):
agent.log_info('Log a: %s' % message)
def log_b(agent, message):
agent.log_info('Log b: %s' % message)
def send_messages(agent):
agent.send('main', 'Apple', topic='a')
agent.send('main', 'Banana... | <commit_before>import time
from osbrain import run_agent
from osbrain import run_nameserver
def log_a(agent, message):
agent.log_info('Log a: %s' % message)
def log_b(agent, message):
agent.log_info('Log b: %s' % message)
def send_messages(agent):
agent.send('main', 'Apple', topic='a')
agent.send(... | import time
from osbrain import run_agent
from osbrain import run_nameserver
def log_a(agent, message):
agent.log_info('Log a: %s' % message)
def log_b(agent, message):
agent.log_info('Log b: %s' % message)
def send_messages(agent):
agent.send('main', 'Apple', topic='a')
agent.send('main', 'Banana... | import time
from osbrain import run_agent
from osbrain import run_nameserver
def log_a(agent, message):
agent.log_info('Log a: %s' % message)
def log_b(agent, message):
agent.log_info('Log b: %s' % message)
def send_messages(agent):
agent.send('main', 'Apple', topic='a')
agent.send('main', 'Banana... | <commit_before>import time
from osbrain import run_agent
from osbrain import run_nameserver
def log_a(agent, message):
agent.log_info('Log a: %s' % message)
def log_b(agent, message):
agent.log_info('Log b: %s' % message)
def send_messages(agent):
agent.send('main', 'Apple', topic='a')
agent.send(... |
dbce975bcb348e0f878f39557d911e99ba08294c | corehq/apps/hqcase/management/commands/ptop_reindexer_v2.py | corehq/apps/hqcase/management/commands/ptop_reindexer_v2.py | from django.core.management import BaseCommand, CommandError
from corehq.pillows.case import get_couch_case_reindexer, get_sql_case_reindexer
from corehq.pillows.xform import get_couch_form_reindexer, get_sql_form_reindexer
class Command(BaseCommand):
args = 'index'
help = 'Reindex a pillowtop index'
def... | from django.core.management import BaseCommand, CommandError
from corehq.pillows.case import get_couch_case_reindexer, get_sql_case_reindexer
from corehq.pillows.case_search import get_couch_case_search_reindexer
from corehq.pillows.xform import get_couch_form_reindexer, get_sql_form_reindexer
class Command(BaseComma... | Enable reindexing with v2 reindexer | Enable reindexing with v2 reindexer
| Python | bsd-3-clause | dimagi/commcare-hq,qedsoftware/commcare-hq,dimagi/commcare-hq,qedsoftware/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,qedsoftware/commcare-hq,qedsoftware/commcare-hq,qedsoftware/commcare-hq,dimagi/commcare-hq | from django.core.management import BaseCommand, CommandError
from corehq.pillows.case import get_couch_case_reindexer, get_sql_case_reindexer
from corehq.pillows.xform import get_couch_form_reindexer, get_sql_form_reindexer
class Command(BaseCommand):
args = 'index'
help = 'Reindex a pillowtop index'
def... | from django.core.management import BaseCommand, CommandError
from corehq.pillows.case import get_couch_case_reindexer, get_sql_case_reindexer
from corehq.pillows.case_search import get_couch_case_search_reindexer
from corehq.pillows.xform import get_couch_form_reindexer, get_sql_form_reindexer
class Command(BaseComma... | <commit_before>from django.core.management import BaseCommand, CommandError
from corehq.pillows.case import get_couch_case_reindexer, get_sql_case_reindexer
from corehq.pillows.xform import get_couch_form_reindexer, get_sql_form_reindexer
class Command(BaseCommand):
args = 'index'
help = 'Reindex a pillowtop ... | from django.core.management import BaseCommand, CommandError
from corehq.pillows.case import get_couch_case_reindexer, get_sql_case_reindexer
from corehq.pillows.case_search import get_couch_case_search_reindexer
from corehq.pillows.xform import get_couch_form_reindexer, get_sql_form_reindexer
class Command(BaseComma... | from django.core.management import BaseCommand, CommandError
from corehq.pillows.case import get_couch_case_reindexer, get_sql_case_reindexer
from corehq.pillows.xform import get_couch_form_reindexer, get_sql_form_reindexer
class Command(BaseCommand):
args = 'index'
help = 'Reindex a pillowtop index'
def... | <commit_before>from django.core.management import BaseCommand, CommandError
from corehq.pillows.case import get_couch_case_reindexer, get_sql_case_reindexer
from corehq.pillows.xform import get_couch_form_reindexer, get_sql_form_reindexer
class Command(BaseCommand):
args = 'index'
help = 'Reindex a pillowtop ... |
cc5028b58736ca7e06083d733d2e0a16a7ec8696 | src/vrun/cli.py | src/vrun/cli.py | from __future__ import print_function
import os
import sys
def main():
prefix = sys.prefix
binpath = os.path.join(prefix, 'bin')
PATH = os.environ.get('PATH', [])
PATH = binpath + os.pathsep + PATH
os.putenv('PATH', PATH)
os.putenv('VRUN_ACTIVATED', '1')
os.putenv('VIRTUAL_ENV', sys.prefi... | from __future__ import print_function
import os
import sys
def main():
prefix = sys.prefix
binpath = os.path.join(prefix, 'bin')
PATH = os.environ.get('PATH', '')
if PATH:
PATH = binpath + os.pathsep + PATH
else:
PATH = binpath
os.putenv('PATH', PATH)
os.putenv('VRUN_ACTI... | Add protection against empty PATH | Add protection against empty PATH
| Python | isc | bertjwregeer/vrun | from __future__ import print_function
import os
import sys
def main():
prefix = sys.prefix
binpath = os.path.join(prefix, 'bin')
PATH = os.environ.get('PATH', [])
PATH = binpath + os.pathsep + PATH
os.putenv('PATH', PATH)
os.putenv('VRUN_ACTIVATED', '1')
os.putenv('VIRTUAL_ENV', sys.prefi... | from __future__ import print_function
import os
import sys
def main():
prefix = sys.prefix
binpath = os.path.join(prefix, 'bin')
PATH = os.environ.get('PATH', '')
if PATH:
PATH = binpath + os.pathsep + PATH
else:
PATH = binpath
os.putenv('PATH', PATH)
os.putenv('VRUN_ACTI... | <commit_before>from __future__ import print_function
import os
import sys
def main():
prefix = sys.prefix
binpath = os.path.join(prefix, 'bin')
PATH = os.environ.get('PATH', [])
PATH = binpath + os.pathsep + PATH
os.putenv('PATH', PATH)
os.putenv('VRUN_ACTIVATED', '1')
os.putenv('VIRTUAL_... | from __future__ import print_function
import os
import sys
def main():
prefix = sys.prefix
binpath = os.path.join(prefix, 'bin')
PATH = os.environ.get('PATH', '')
if PATH:
PATH = binpath + os.pathsep + PATH
else:
PATH = binpath
os.putenv('PATH', PATH)
os.putenv('VRUN_ACTI... | from __future__ import print_function
import os
import sys
def main():
prefix = sys.prefix
binpath = os.path.join(prefix, 'bin')
PATH = os.environ.get('PATH', [])
PATH = binpath + os.pathsep + PATH
os.putenv('PATH', PATH)
os.putenv('VRUN_ACTIVATED', '1')
os.putenv('VIRTUAL_ENV', sys.prefi... | <commit_before>from __future__ import print_function
import os
import sys
def main():
prefix = sys.prefix
binpath = os.path.join(prefix, 'bin')
PATH = os.environ.get('PATH', [])
PATH = binpath + os.pathsep + PATH
os.putenv('PATH', PATH)
os.putenv('VRUN_ACTIVATED', '1')
os.putenv('VIRTUAL_... |
064b4c80018d9b76c2bedc010ab45c8b9ea7faa3 | netlib/utils.py | netlib/utils.py |
def cleanBin(s, fixspacing=False):
"""
Cleans binary data to make it safe to display. If fixspacing is True,
tabs, newlines and so forth will be maintained, if not, they will be
replaced with a placeholder.
"""
parts = []
for i in s:
o = ord(i)
if (o > 31 and o <... |
def cleanBin(s, fixspacing=False):
"""
Cleans binary data to make it safe to display. If fixspacing is True,
tabs, newlines and so forth will be maintained, if not, they will be
replaced with a placeholder.
"""
parts = []
for i in s:
o = ord(i)
if (o > 31 and o <... | Make cleanBin escape carriage returns. | Make cleanBin escape carriage returns.
We get confusing output on terminals if we leave \r unescaped.
| Python | mit | Kriechi/mitmproxy,cortesi/mitmproxy,dwfreed/mitmproxy,ParthGanatra/mitmproxy,dwfreed/mitmproxy,fimad/mitmproxy,cortesi/mitmproxy,cortesi/mitmproxy,laurmurclar/mitmproxy,MatthewShao/mitmproxy,Kriechi/mitmproxy,xaxa89/mitmproxy,xaxa89/mitmproxy,mhils/mitmproxy,ddworken/mitmproxy,dwfreed/mitmproxy,tdickers/mitmproxy,laurm... |
def cleanBin(s, fixspacing=False):
"""
Cleans binary data to make it safe to display. If fixspacing is True,
tabs, newlines and so forth will be maintained, if not, they will be
replaced with a placeholder.
"""
parts = []
for i in s:
o = ord(i)
if (o > 31 and o <... |
def cleanBin(s, fixspacing=False):
"""
Cleans binary data to make it safe to display. If fixspacing is True,
tabs, newlines and so forth will be maintained, if not, they will be
replaced with a placeholder.
"""
parts = []
for i in s:
o = ord(i)
if (o > 31 and o <... | <commit_before>
def cleanBin(s, fixspacing=False):
"""
Cleans binary data to make it safe to display. If fixspacing is True,
tabs, newlines and so forth will be maintained, if not, they will be
replaced with a placeholder.
"""
parts = []
for i in s:
o = ord(i)
if ... |
def cleanBin(s, fixspacing=False):
"""
Cleans binary data to make it safe to display. If fixspacing is True,
tabs, newlines and so forth will be maintained, if not, they will be
replaced with a placeholder.
"""
parts = []
for i in s:
o = ord(i)
if (o > 31 and o <... |
def cleanBin(s, fixspacing=False):
"""
Cleans binary data to make it safe to display. If fixspacing is True,
tabs, newlines and so forth will be maintained, if not, they will be
replaced with a placeholder.
"""
parts = []
for i in s:
o = ord(i)
if (o > 31 and o <... | <commit_before>
def cleanBin(s, fixspacing=False):
"""
Cleans binary data to make it safe to display. If fixspacing is True,
tabs, newlines and so forth will be maintained, if not, they will be
replaced with a placeholder.
"""
parts = []
for i in s:
o = ord(i)
if ... |
28ee80f7f544d06daa9cab51e082fd74cc6e4619 | dotfiledir/bin/runmutt.py | dotfiledir/bin/runmutt.py | #!/usr/bin/env python3
import subprocess
import threading
import time
import os
# Sync accounts asynchronously, but wait for all syncs to finish
def offlineimap():
AAU = subprocess.Popen(['offlineimap', '-a AAU'], stderr = AAUlog)
AU = subprocess.Popen(['offlineimap', '-a AU'], stderr = AUlog)
AAU.communi... | #!/usr/bin/env python3
import subprocess
import threading
import time
import os
# Sync accounts asynchronously, but wait for all syncs to finish
def offlineimap():
AAU = subprocess.Popen(['offlineimap', '-a AAU'], stderr = AAUlog)
AU = subprocess.Popen(['offlineimap', '-a AU'], stderr = AUlog)
AAU.communi... | Make offlineimap sync every minute | Make offlineimap sync every minute
| Python | mit | dahlbaek/Ubuntu-dotfiles | #!/usr/bin/env python3
import subprocess
import threading
import time
import os
# Sync accounts asynchronously, but wait for all syncs to finish
def offlineimap():
AAU = subprocess.Popen(['offlineimap', '-a AAU'], stderr = AAUlog)
AU = subprocess.Popen(['offlineimap', '-a AU'], stderr = AUlog)
AAU.communi... | #!/usr/bin/env python3
import subprocess
import threading
import time
import os
# Sync accounts asynchronously, but wait for all syncs to finish
def offlineimap():
AAU = subprocess.Popen(['offlineimap', '-a AAU'], stderr = AAUlog)
AU = subprocess.Popen(['offlineimap', '-a AU'], stderr = AUlog)
AAU.communi... | <commit_before>#!/usr/bin/env python3
import subprocess
import threading
import time
import os
# Sync accounts asynchronously, but wait for all syncs to finish
def offlineimap():
AAU = subprocess.Popen(['offlineimap', '-a AAU'], stderr = AAUlog)
AU = subprocess.Popen(['offlineimap', '-a AU'], stderr = AUlog)
... | #!/usr/bin/env python3
import subprocess
import threading
import time
import os
# Sync accounts asynchronously, but wait for all syncs to finish
def offlineimap():
AAU = subprocess.Popen(['offlineimap', '-a AAU'], stderr = AAUlog)
AU = subprocess.Popen(['offlineimap', '-a AU'], stderr = AUlog)
AAU.communi... | #!/usr/bin/env python3
import subprocess
import threading
import time
import os
# Sync accounts asynchronously, but wait for all syncs to finish
def offlineimap():
AAU = subprocess.Popen(['offlineimap', '-a AAU'], stderr = AAUlog)
AU = subprocess.Popen(['offlineimap', '-a AU'], stderr = AUlog)
AAU.communi... | <commit_before>#!/usr/bin/env python3
import subprocess
import threading
import time
import os
# Sync accounts asynchronously, but wait for all syncs to finish
def offlineimap():
AAU = subprocess.Popen(['offlineimap', '-a AAU'], stderr = AAUlog)
AU = subprocess.Popen(['offlineimap', '-a AU'], stderr = AUlog)
... |
0dfea440014b4e1701fd42a20c45f4d8992c00bb | misp_modules/modules/import_mod/stiximport.py | misp_modules/modules/import_mod/stiximport.py | import json
import re
import base64
import hashlib
import tempfile
import os
from pymisp.tools import stix
misperrors = {'error': 'Error'}
userConfig = {}
inputSource = ['file']
moduleinfo = {'version': '0.2', 'author': 'Hannah Ward',
'description': 'Import some stix stuff',
'module-type'... | import json
import re
import base64
import hashlib
from pymisp.tools import stix
misperrors = {'error': 'Error'}
userConfig = {}
inputSource = ['file']
moduleinfo = {'version': '0.2', 'author': 'Hannah Ward',
'description': 'Import some stix stuff',
'module-type': ['import']}
moduleconfi... | Use SpooledTemp, not NamedTemp file | Use SpooledTemp, not NamedTemp file
| Python | agpl-3.0 | VirusTotal/misp-modules,MISP/misp-modules,amuehlem/misp-modules,MISP/misp-modules,VirusTotal/misp-modules,Rafiot/misp-modules,amuehlem/misp-modules,MISP/misp-modules,Rafiot/misp-modules,Rafiot/misp-modules,VirusTotal/misp-modules,amuehlem/misp-modules | import json
import re
import base64
import hashlib
import tempfile
import os
from pymisp.tools import stix
misperrors = {'error': 'Error'}
userConfig = {}
inputSource = ['file']
moduleinfo = {'version': '0.2', 'author': 'Hannah Ward',
'description': 'Import some stix stuff',
'module-type'... | import json
import re
import base64
import hashlib
from pymisp.tools import stix
misperrors = {'error': 'Error'}
userConfig = {}
inputSource = ['file']
moduleinfo = {'version': '0.2', 'author': 'Hannah Ward',
'description': 'Import some stix stuff',
'module-type': ['import']}
moduleconfi... | <commit_before>import json
import re
import base64
import hashlib
import tempfile
import os
from pymisp.tools import stix
misperrors = {'error': 'Error'}
userConfig = {}
inputSource = ['file']
moduleinfo = {'version': '0.2', 'author': 'Hannah Ward',
'description': 'Import some stix stuff',
... | import json
import re
import base64
import hashlib
from pymisp.tools import stix
misperrors = {'error': 'Error'}
userConfig = {}
inputSource = ['file']
moduleinfo = {'version': '0.2', 'author': 'Hannah Ward',
'description': 'Import some stix stuff',
'module-type': ['import']}
moduleconfi... | import json
import re
import base64
import hashlib
import tempfile
import os
from pymisp.tools import stix
misperrors = {'error': 'Error'}
userConfig = {}
inputSource = ['file']
moduleinfo = {'version': '0.2', 'author': 'Hannah Ward',
'description': 'Import some stix stuff',
'module-type'... | <commit_before>import json
import re
import base64
import hashlib
import tempfile
import os
from pymisp.tools import stix
misperrors = {'error': 'Error'}
userConfig = {}
inputSource = ['file']
moduleinfo = {'version': '0.2', 'author': 'Hannah Ward',
'description': 'Import some stix stuff',
... |
153025aaa585e70d09509248ab18b214194759ae | tasks/static.py | tasks/static.py | # Copyright 2013 Donald Stufft
#
# 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, so... | # Copyright 2013 Donald Stufft
#
# 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, so... | Deal with the compass.rb -> config.rb change | Deal with the compass.rb -> config.rb change
| Python | apache-2.0 | techtonik/warehouse,techtonik/warehouse | # Copyright 2013 Donald Stufft
#
# 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, so... | # Copyright 2013 Donald Stufft
#
# 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, so... | <commit_before># Copyright 2013 Donald Stufft
#
# 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... | # Copyright 2013 Donald Stufft
#
# 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, so... | # Copyright 2013 Donald Stufft
#
# 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, so... | <commit_before># Copyright 2013 Donald Stufft
#
# 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... |
78f8ce5e046f2abaa8cef60c6980257713eff9d7 | server.py | server.py | from gevent.server import StreamServer
import os
def mangodb(socket, address):
socket.sendall('HELLO\r\n')
client = socket.makefile()
output = open('/dev/null', 'w')
while True:
line = client.readline()
if not line:
break
cmd_bits = line.split(' ', 1)
cmd = ... | from gevent.server import StreamServer
import os
def mangodb(socket, address):
socket.sendall('HELLO\r\n')
client = socket.makefile()
output = open('/dev/null', 'w')
while 1:
line = client.readline()
if not line:
break
cmd_bits = line.split(' ', 1)
cmd = cmd... | Replace `while True` with `while 1` for more web scale sauce. | Replace `while True` with `while 1` for more web scale sauce.
In Python 2.x, True is not a keyword, so it can be reassigned. Compiler replaces `while 1` loop with a single jump, so it is faster by 10%.
http://www.reddit.com/r/Python/comments/ppote/how_would_you_explain_a_performance_gap_between/ | Python | agpl-3.0 | mitsuhiko/mangodb | from gevent.server import StreamServer
import os
def mangodb(socket, address):
socket.sendall('HELLO\r\n')
client = socket.makefile()
output = open('/dev/null', 'w')
while True:
line = client.readline()
if not line:
break
cmd_bits = line.split(' ', 1)
cmd = ... | from gevent.server import StreamServer
import os
def mangodb(socket, address):
socket.sendall('HELLO\r\n')
client = socket.makefile()
output = open('/dev/null', 'w')
while 1:
line = client.readline()
if not line:
break
cmd_bits = line.split(' ', 1)
cmd = cmd... | <commit_before>from gevent.server import StreamServer
import os
def mangodb(socket, address):
socket.sendall('HELLO\r\n')
client = socket.makefile()
output = open('/dev/null', 'w')
while True:
line = client.readline()
if not line:
break
cmd_bits = line.split(' ', 1)... | from gevent.server import StreamServer
import os
def mangodb(socket, address):
socket.sendall('HELLO\r\n')
client = socket.makefile()
output = open('/dev/null', 'w')
while 1:
line = client.readline()
if not line:
break
cmd_bits = line.split(' ', 1)
cmd = cmd... | from gevent.server import StreamServer
import os
def mangodb(socket, address):
socket.sendall('HELLO\r\n')
client = socket.makefile()
output = open('/dev/null', 'w')
while True:
line = client.readline()
if not line:
break
cmd_bits = line.split(' ', 1)
cmd = ... | <commit_before>from gevent.server import StreamServer
import os
def mangodb(socket, address):
socket.sendall('HELLO\r\n')
client = socket.makefile()
output = open('/dev/null', 'w')
while True:
line = client.readline()
if not line:
break
cmd_bits = line.split(' ', 1)... |
f1ed7dd603ace84b1b8015c2d7d57515d9de3947 | src/detector.py | src/detector.py | #!/usr/bin/python
from sys import argv
import numpy as np
import cv2
import cv2.cv as cv
def detectCircle(imagePath):
image = cv2.imread(imagePath)
gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
gray = cv2.Canny(gray, 32, 2)
cv2.imwrite("canny.jpg", gray)
circles = cv2.HoughCircles(gray, cv.CV_HOUG... | #!/usr/bin/python
from sys import argv
import numpy as np
import cv2
import cv2.cv as cv
def detectCircle(imagePath):
image = cv2.imread(imagePath)
gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
gray = cv2.Canny(gray, 32, 2)
cv2.imwrite("canny.jpg", gray)
circles = cv2.HoughCircles(gray, cv.CV_HOUG... | Fix error in RaspberryPi environment <numpy type error>. | Fix error in RaspberryPi environment <numpy type error>.
| Python | apache-2.0 | Jarrey/BotEyePi,Jarrey/BotEyePi | #!/usr/bin/python
from sys import argv
import numpy as np
import cv2
import cv2.cv as cv
def detectCircle(imagePath):
image = cv2.imread(imagePath)
gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
gray = cv2.Canny(gray, 32, 2)
cv2.imwrite("canny.jpg", gray)
circles = cv2.HoughCircles(gray, cv.CV_HOUG... | #!/usr/bin/python
from sys import argv
import numpy as np
import cv2
import cv2.cv as cv
def detectCircle(imagePath):
image = cv2.imread(imagePath)
gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
gray = cv2.Canny(gray, 32, 2)
cv2.imwrite("canny.jpg", gray)
circles = cv2.HoughCircles(gray, cv.CV_HOUG... | <commit_before>#!/usr/bin/python
from sys import argv
import numpy as np
import cv2
import cv2.cv as cv
def detectCircle(imagePath):
image = cv2.imread(imagePath)
gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
gray = cv2.Canny(gray, 32, 2)
cv2.imwrite("canny.jpg", gray)
circles = cv2.HoughCircles(g... | #!/usr/bin/python
from sys import argv
import numpy as np
import cv2
import cv2.cv as cv
def detectCircle(imagePath):
image = cv2.imread(imagePath)
gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
gray = cv2.Canny(gray, 32, 2)
cv2.imwrite("canny.jpg", gray)
circles = cv2.HoughCircles(gray, cv.CV_HOUG... | #!/usr/bin/python
from sys import argv
import numpy as np
import cv2
import cv2.cv as cv
def detectCircle(imagePath):
image = cv2.imread(imagePath)
gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
gray = cv2.Canny(gray, 32, 2)
cv2.imwrite("canny.jpg", gray)
circles = cv2.HoughCircles(gray, cv.CV_HOUG... | <commit_before>#!/usr/bin/python
from sys import argv
import numpy as np
import cv2
import cv2.cv as cv
def detectCircle(imagePath):
image = cv2.imread(imagePath)
gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
gray = cv2.Canny(gray, 32, 2)
cv2.imwrite("canny.jpg", gray)
circles = cv2.HoughCircles(g... |
1b7e4ae56a5e56823f7639ab6940d63ed11f18ae | dataproperty/logger/_logger.py | dataproperty/logger/_logger.py | # encoding: utf-8
"""
.. codeauthor:: Tsuyoshi Hombashi <[email protected]>
"""
from __future__ import absolute_import, unicode_literals
from ._null_logger import NullLogger
try:
import logbook
logger = logbook.Logger("DataProperty")
logger.disable()
except ImportError:
logger = NullLogg... | # encoding: utf-8
"""
.. codeauthor:: Tsuyoshi Hombashi <[email protected]>
"""
from __future__ import absolute_import, unicode_literals
from ._null_logger import NullLogger
try:
import logbook
logger = logbook.Logger("DataProperty")
logger.disable()
LOGBOOK_INSTALLED = True
except Impor... | Fix logger functions failures when an optional package not installed | Fix logger functions failures when an optional package not installed
| Python | mit | thombashi/DataProperty | # encoding: utf-8
"""
.. codeauthor:: Tsuyoshi Hombashi <[email protected]>
"""
from __future__ import absolute_import, unicode_literals
from ._null_logger import NullLogger
try:
import logbook
logger = logbook.Logger("DataProperty")
logger.disable()
except ImportError:
logger = NullLogg... | # encoding: utf-8
"""
.. codeauthor:: Tsuyoshi Hombashi <[email protected]>
"""
from __future__ import absolute_import, unicode_literals
from ._null_logger import NullLogger
try:
import logbook
logger = logbook.Logger("DataProperty")
logger.disable()
LOGBOOK_INSTALLED = True
except Impor... | <commit_before># encoding: utf-8
"""
.. codeauthor:: Tsuyoshi Hombashi <[email protected]>
"""
from __future__ import absolute_import, unicode_literals
from ._null_logger import NullLogger
try:
import logbook
logger = logbook.Logger("DataProperty")
logger.disable()
except ImportError:
lo... | # encoding: utf-8
"""
.. codeauthor:: Tsuyoshi Hombashi <[email protected]>
"""
from __future__ import absolute_import, unicode_literals
from ._null_logger import NullLogger
try:
import logbook
logger = logbook.Logger("DataProperty")
logger.disable()
LOGBOOK_INSTALLED = True
except Impor... | # encoding: utf-8
"""
.. codeauthor:: Tsuyoshi Hombashi <[email protected]>
"""
from __future__ import absolute_import, unicode_literals
from ._null_logger import NullLogger
try:
import logbook
logger = logbook.Logger("DataProperty")
logger.disable()
except ImportError:
logger = NullLogg... | <commit_before># encoding: utf-8
"""
.. codeauthor:: Tsuyoshi Hombashi <[email protected]>
"""
from __future__ import absolute_import, unicode_literals
from ._null_logger import NullLogger
try:
import logbook
logger = logbook.Logger("DataProperty")
logger.disable()
except ImportError:
lo... |
efe30ee01d3b1eb46cd7d986beba09ec47a51e14 | app/api/cruds/weekday_crud.py | app/api/cruds/weekday_crud.py | from django.core.exceptions import ValidationError
import graphene
from graphene_django import DjangoObjectType
from app.timetables.models import Weekday
from .utils import get_errors
class WeekdayNode(DjangoObjectType):
original_id = graphene.Int()
class Meta:
model = Weekday
filter_fields... | from django.core.exceptions import ValidationError
import graphene
from graphene_django import DjangoObjectType
from app.timetables.models import Weekday
from .utils import get_errors
class WeekdayNode(DjangoObjectType):
original_id = graphene.Int()
class Meta:
model = Weekday
filter_fields... | Fix errors on create weekday | Fix errors on create weekday
| Python | mit | teamtaverna/core | from django.core.exceptions import ValidationError
import graphene
from graphene_django import DjangoObjectType
from app.timetables.models import Weekday
from .utils import get_errors
class WeekdayNode(DjangoObjectType):
original_id = graphene.Int()
class Meta:
model = Weekday
filter_fields... | from django.core.exceptions import ValidationError
import graphene
from graphene_django import DjangoObjectType
from app.timetables.models import Weekday
from .utils import get_errors
class WeekdayNode(DjangoObjectType):
original_id = graphene.Int()
class Meta:
model = Weekday
filter_fields... | <commit_before>from django.core.exceptions import ValidationError
import graphene
from graphene_django import DjangoObjectType
from app.timetables.models import Weekday
from .utils import get_errors
class WeekdayNode(DjangoObjectType):
original_id = graphene.Int()
class Meta:
model = Weekday
... | from django.core.exceptions import ValidationError
import graphene
from graphene_django import DjangoObjectType
from app.timetables.models import Weekday
from .utils import get_errors
class WeekdayNode(DjangoObjectType):
original_id = graphene.Int()
class Meta:
model = Weekday
filter_fields... | from django.core.exceptions import ValidationError
import graphene
from graphene_django import DjangoObjectType
from app.timetables.models import Weekday
from .utils import get_errors
class WeekdayNode(DjangoObjectType):
original_id = graphene.Int()
class Meta:
model = Weekday
filter_fields... | <commit_before>from django.core.exceptions import ValidationError
import graphene
from graphene_django import DjangoObjectType
from app.timetables.models import Weekday
from .utils import get_errors
class WeekdayNode(DjangoObjectType):
original_id = graphene.Int()
class Meta:
model = Weekday
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.