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
9c0d1f252bad1837545fa848c39786a98e6fd0ea
setup.py
setup.py
from distutils.core import setup setup( name='xirvik-tools', version='0.0.1', author='Fa An', author_email='2998784916@qq.com', packages=['xirvik'], url='https://faan/xirvik-tools', license='LICENSE.txt', description='Xirvik (ruTorrent mostly) tools.', long_description=open('README....
from distutils.core import setup setup( name='xirvik-tools', version='0.0.2', author='Fa An', author_email='2998784916@qq.com', packages=['xirvik', 'xirvik.client'], url='https://faan/xirvik-tools', license='LICENSE.txt', description='Xirvik (ruTorrent mostly) tools.', long_descript...
Add client part of package
Add client part of package
Python
mit
Tatsh/xirvik-tools
from distutils.core import setup setup( name='xirvik-tools', version='0.0.1', author='Fa An', author_email='2998784916@qq.com', packages=['xirvik'], url='https://faan/xirvik-tools', license='LICENSE.txt', description='Xirvik (ruTorrent mostly) tools.', long_description=open('README....
from distutils.core import setup setup( name='xirvik-tools', version='0.0.2', author='Fa An', author_email='2998784916@qq.com', packages=['xirvik', 'xirvik.client'], url='https://faan/xirvik-tools', license='LICENSE.txt', description='Xirvik (ruTorrent mostly) tools.', long_descript...
<commit_before>from distutils.core import setup setup( name='xirvik-tools', version='0.0.1', author='Fa An', author_email='2998784916@qq.com', packages=['xirvik'], url='https://faan/xirvik-tools', license='LICENSE.txt', description='Xirvik (ruTorrent mostly) tools.', long_descriptio...
from distutils.core import setup setup( name='xirvik-tools', version='0.0.2', author='Fa An', author_email='2998784916@qq.com', packages=['xirvik', 'xirvik.client'], url='https://faan/xirvik-tools', license='LICENSE.txt', description='Xirvik (ruTorrent mostly) tools.', long_descript...
from distutils.core import setup setup( name='xirvik-tools', version='0.0.1', author='Fa An', author_email='2998784916@qq.com', packages=['xirvik'], url='https://faan/xirvik-tools', license='LICENSE.txt', description='Xirvik (ruTorrent mostly) tools.', long_description=open('README....
<commit_before>from distutils.core import setup setup( name='xirvik-tools', version='0.0.1', author='Fa An', author_email='2998784916@qq.com', packages=['xirvik'], url='https://faan/xirvik-tools', license='LICENSE.txt', description='Xirvik (ruTorrent mostly) tools.', long_descriptio...
6ef5da6a4fc0eb54b575cfbc2dcebcbbe755db25
setup.py
setup.py
import os from setuptools import setup with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme: README = readme.read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='mezzanine-sermons', version='0.1.0...
import os from setuptools import setup with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme: README = readme.read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='mezzanine-sermons', version='0.1.1...
Change version number for release
Change version number for release
Python
bsd-2-clause
philipsouthwell/mezzanine-sermons,philipsouthwell/mezzanine-sermons
import os from setuptools import setup with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme: README = readme.read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='mezzanine-sermons', version='0.1.0...
import os from setuptools import setup with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme: README = readme.read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='mezzanine-sermons', version='0.1.1...
<commit_before>import os from setuptools import setup with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme: README = readme.read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='mezzanine-sermons', ...
import os from setuptools import setup with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme: README = readme.read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='mezzanine-sermons', version='0.1.1...
import os from setuptools import setup with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme: README = readme.read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='mezzanine-sermons', version='0.1.0...
<commit_before>import os from setuptools import setup with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme: README = readme.read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='mezzanine-sermons', ...
485302db80a519413bbc637ea25fa0f285b0458c
setup.py
setup.py
import re from setuptools import setup with open('pytest_mock.py') as f: m = re.search("version = '(.*)'", f.read()) assert m is not None version = m.group(1) setup( name='pytest-mock', version=version, entry_points={ 'pytest11': ['pytest_mock = pytest_mock'], }, py_modules=['...
import re from setuptools import setup with open('pytest_mock.py') as f: m = re.search("version = '(.*)'", f.read()) assert m is not None version = m.group(1) setup( name='pytest-mock', version=version, entry_points={ 'pytest11': ['pytest_mock = pytest_mock'], }, py_modules=['...
Add Framework::Pytest to list of classifiers
Add Framework::Pytest to list of classifiers
Python
mit
pytest-dev/pytest-mock,asfaltboy/pytest-mock
import re from setuptools import setup with open('pytest_mock.py') as f: m = re.search("version = '(.*)'", f.read()) assert m is not None version = m.group(1) setup( name='pytest-mock', version=version, entry_points={ 'pytest11': ['pytest_mock = pytest_mock'], }, py_modules=['...
import re from setuptools import setup with open('pytest_mock.py') as f: m = re.search("version = '(.*)'", f.read()) assert m is not None version = m.group(1) setup( name='pytest-mock', version=version, entry_points={ 'pytest11': ['pytest_mock = pytest_mock'], }, py_modules=['...
<commit_before>import re from setuptools import setup with open('pytest_mock.py') as f: m = re.search("version = '(.*)'", f.read()) assert m is not None version = m.group(1) setup( name='pytest-mock', version=version, entry_points={ 'pytest11': ['pytest_mock = pytest_mock'], }, ...
import re from setuptools import setup with open('pytest_mock.py') as f: m = re.search("version = '(.*)'", f.read()) assert m is not None version = m.group(1) setup( name='pytest-mock', version=version, entry_points={ 'pytest11': ['pytest_mock = pytest_mock'], }, py_modules=['...
import re from setuptools import setup with open('pytest_mock.py') as f: m = re.search("version = '(.*)'", f.read()) assert m is not None version = m.group(1) setup( name='pytest-mock', version=version, entry_points={ 'pytest11': ['pytest_mock = pytest_mock'], }, py_modules=['...
<commit_before>import re from setuptools import setup with open('pytest_mock.py') as f: m = re.search("version = '(.*)'", f.read()) assert m is not None version = m.group(1) setup( name='pytest-mock', version=version, entry_points={ 'pytest11': ['pytest_mock = pytest_mock'], }, ...
c94b2bf4a438e0eb284d9aaa31d38f145631ada4
setup.py
setup.py
from setuptools import setup, find_packages setup( name = 'AtomSeeker', version = '0.0.1', description = 'Analyzer for MP4/MOV format file', packages = find_packages(), author = 'Katsuki Kobayashi', author_email = 'rare@tirasweel.org', license = 'BSD 2-Clause License', entry_points = ""...
from setuptools import setup, find_packages setup( name='AtomSeeker', version='0.0.1', description='Analyzer for MP4/MOV format file', packages=find_packages(), author='Katsuki Kobayashi', author_email='rare@tirasweel.org', license='BSD 2-Clause License', entry_points=""" [conso...
Remove spaces around `=` operator
Remove spaces around `=` operator
Python
bsd-2-clause
rarewin/AtomSeeker,rarewin/AtomSeeker
from setuptools import setup, find_packages setup( name = 'AtomSeeker', version = '0.0.1', description = 'Analyzer for MP4/MOV format file', packages = find_packages(), author = 'Katsuki Kobayashi', author_email = 'rare@tirasweel.org', license = 'BSD 2-Clause License', entry_points = ""...
from setuptools import setup, find_packages setup( name='AtomSeeker', version='0.0.1', description='Analyzer for MP4/MOV format file', packages=find_packages(), author='Katsuki Kobayashi', author_email='rare@tirasweel.org', license='BSD 2-Clause License', entry_points=""" [conso...
<commit_before>from setuptools import setup, find_packages setup( name = 'AtomSeeker', version = '0.0.1', description = 'Analyzer for MP4/MOV format file', packages = find_packages(), author = 'Katsuki Kobayashi', author_email = 'rare@tirasweel.org', license = 'BSD 2-Clause License', en...
from setuptools import setup, find_packages setup( name='AtomSeeker', version='0.0.1', description='Analyzer for MP4/MOV format file', packages=find_packages(), author='Katsuki Kobayashi', author_email='rare@tirasweel.org', license='BSD 2-Clause License', entry_points=""" [conso...
from setuptools import setup, find_packages setup( name = 'AtomSeeker', version = '0.0.1', description = 'Analyzer for MP4/MOV format file', packages = find_packages(), author = 'Katsuki Kobayashi', author_email = 'rare@tirasweel.org', license = 'BSD 2-Clause License', entry_points = ""...
<commit_before>from setuptools import setup, find_packages setup( name = 'AtomSeeker', version = '0.0.1', description = 'Analyzer for MP4/MOV format file', packages = find_packages(), author = 'Katsuki Kobayashi', author_email = 'rare@tirasweel.org', license = 'BSD 2-Clause License', en...
2ad0d2f848aaef1adda348154545507566db304f
setup.py
setup.py
from setuptools import setup, find_packages setup( name='panoptes_client', url='https://github.com/zooniverse/panoptes-python-client', author='Adam McMaster', author_email='adam@zooniverse.org', version='1.0.3', packages=find_packages(), include_package_data=True, install_requires=[ ...
from setuptools import setup, find_packages setup( name='panoptes_client', url='https://github.com/zooniverse/panoptes-python-client', author='Adam McMaster', author_email='adam@zooniverse.org', version='1.0.3', packages=find_packages(), include_package_data=True, install_requires=[ ...
Update requests requirement from <2.20,>=2.4.2 to >=2.4.2,<2.21
Update requests requirement from <2.20,>=2.4.2 to >=2.4.2,<2.21 Updates the requirements on [requests](https://github.com/requests/requests) to permit the latest version. - [Release notes](https://github.com/requests/requests/releases) - [Changelog](https://github.com/requests/requests/blob/master/HISTORY.md) - [Commi...
Python
apache-2.0
zooniverse/panoptes-python-client
from setuptools import setup, find_packages setup( name='panoptes_client', url='https://github.com/zooniverse/panoptes-python-client', author='Adam McMaster', author_email='adam@zooniverse.org', version='1.0.3', packages=find_packages(), include_package_data=True, install_requires=[ ...
from setuptools import setup, find_packages setup( name='panoptes_client', url='https://github.com/zooniverse/panoptes-python-client', author='Adam McMaster', author_email='adam@zooniverse.org', version='1.0.3', packages=find_packages(), include_package_data=True, install_requires=[ ...
<commit_before>from setuptools import setup, find_packages setup( name='panoptes_client', url='https://github.com/zooniverse/panoptes-python-client', author='Adam McMaster', author_email='adam@zooniverse.org', version='1.0.3', packages=find_packages(), include_package_data=True, install...
from setuptools import setup, find_packages setup( name='panoptes_client', url='https://github.com/zooniverse/panoptes-python-client', author='Adam McMaster', author_email='adam@zooniverse.org', version='1.0.3', packages=find_packages(), include_package_data=True, install_requires=[ ...
from setuptools import setup, find_packages setup( name='panoptes_client', url='https://github.com/zooniverse/panoptes-python-client', author='Adam McMaster', author_email='adam@zooniverse.org', version='1.0.3', packages=find_packages(), include_package_data=True, install_requires=[ ...
<commit_before>from setuptools import setup, find_packages setup( name='panoptes_client', url='https://github.com/zooniverse/panoptes-python-client', author='Adam McMaster', author_email='adam@zooniverse.org', version='1.0.3', packages=find_packages(), include_package_data=True, install...
9e2e2bda5c8e42b0795612c0138eafbcd6b63eb5
setup.py
setup.py
from setuptools import setup setup( name='django-logentry-admin', author='Yuri Prezument', author_email='y@yprez.com', version='0.1.5', packages=['logentry_admin'], package_data={ 'logentry_admin': ['templates/admin/admin/logentry/change_form.html'] }, license='ISC', url='h...
from setuptools import setup with open('README.rst') as f: readme = f.read() with open('CHANGELOG.rst') as f: changelog = f.read() setup( name='django-logentry-admin', author='Yuri Prezument', author_email='y@yprez.com', version='0.1.5', packages=['logentry_admin'], package_data={ ...
Add changelog to readme, and open/close both files properly
Add changelog to readme, and open/close both files properly
Python
isc
yprez/django-logentry-admin,yprez/django-logentry-admin
from setuptools import setup setup( name='django-logentry-admin', author='Yuri Prezument', author_email='y@yprez.com', version='0.1.5', packages=['logentry_admin'], package_data={ 'logentry_admin': ['templates/admin/admin/logentry/change_form.html'] }, license='ISC', url='h...
from setuptools import setup with open('README.rst') as f: readme = f.read() with open('CHANGELOG.rst') as f: changelog = f.read() setup( name='django-logentry-admin', author='Yuri Prezument', author_email='y@yprez.com', version='0.1.5', packages=['logentry_admin'], package_data={ ...
<commit_before>from setuptools import setup setup( name='django-logentry-admin', author='Yuri Prezument', author_email='y@yprez.com', version='0.1.5', packages=['logentry_admin'], package_data={ 'logentry_admin': ['templates/admin/admin/logentry/change_form.html'] }, license='I...
from setuptools import setup with open('README.rst') as f: readme = f.read() with open('CHANGELOG.rst') as f: changelog = f.read() setup( name='django-logentry-admin', author='Yuri Prezument', author_email='y@yprez.com', version='0.1.5', packages=['logentry_admin'], package_data={ ...
from setuptools import setup setup( name='django-logentry-admin', author='Yuri Prezument', author_email='y@yprez.com', version='0.1.5', packages=['logentry_admin'], package_data={ 'logentry_admin': ['templates/admin/admin/logentry/change_form.html'] }, license='ISC', url='h...
<commit_before>from setuptools import setup setup( name='django-logentry-admin', author='Yuri Prezument', author_email='y@yprez.com', version='0.1.5', packages=['logentry_admin'], package_data={ 'logentry_admin': ['templates/admin/admin/logentry/change_form.html'] }, license='I...
e91f0586949b035b8e3f4c11999712d3134bf787
setup.py
setup.py
"""setup.py file.""" import uuid from setuptools import setup, find_packages from pip.req import parse_requirements __author__ = 'David Barroso <dbarrosop@dravetech.com>' install_reqs = parse_requirements('requirements.txt', session=uuid.uuid1()) reqs = [str(ir.req) for ir in install_reqs] setup( name="napalm-...
"""setup.py file.""" import uuid from setuptools import setup, find_packages from pip.req import parse_requirements __author__ = 'David Barroso <dbarrosop@dravetech.com>' install_reqs = parse_requirements('requirements.txt', session=uuid.uuid1()) reqs = [str(ir.req) for ir in install_reqs] setup( name="napalm-...
Exclude the test/ directory & files from being installed as a package.
Exclude the test/ directory & files from being installed as a package.
Python
apache-2.0
napalm-automation/napalm,spotify/napalm,napalm-automation/napalm-nxos,spotify/napalm
"""setup.py file.""" import uuid from setuptools import setup, find_packages from pip.req import parse_requirements __author__ = 'David Barroso <dbarrosop@dravetech.com>' install_reqs = parse_requirements('requirements.txt', session=uuid.uuid1()) reqs = [str(ir.req) for ir in install_reqs] setup( name="napalm-...
"""setup.py file.""" import uuid from setuptools import setup, find_packages from pip.req import parse_requirements __author__ = 'David Barroso <dbarrosop@dravetech.com>' install_reqs = parse_requirements('requirements.txt', session=uuid.uuid1()) reqs = [str(ir.req) for ir in install_reqs] setup( name="napalm-...
<commit_before>"""setup.py file.""" import uuid from setuptools import setup, find_packages from pip.req import parse_requirements __author__ = 'David Barroso <dbarrosop@dravetech.com>' install_reqs = parse_requirements('requirements.txt', session=uuid.uuid1()) reqs = [str(ir.req) for ir in install_reqs] setup( ...
"""setup.py file.""" import uuid from setuptools import setup, find_packages from pip.req import parse_requirements __author__ = 'David Barroso <dbarrosop@dravetech.com>' install_reqs = parse_requirements('requirements.txt', session=uuid.uuid1()) reqs = [str(ir.req) for ir in install_reqs] setup( name="napalm-...
"""setup.py file.""" import uuid from setuptools import setup, find_packages from pip.req import parse_requirements __author__ = 'David Barroso <dbarrosop@dravetech.com>' install_reqs = parse_requirements('requirements.txt', session=uuid.uuid1()) reqs = [str(ir.req) for ir in install_reqs] setup( name="napalm-...
<commit_before>"""setup.py file.""" import uuid from setuptools import setup, find_packages from pip.req import parse_requirements __author__ = 'David Barroso <dbarrosop@dravetech.com>' install_reqs = parse_requirements('requirements.txt', session=uuid.uuid1()) reqs = [str(ir.req) for ir in install_reqs] setup( ...
da4684ef09e0edee3a2d147d759d53f0944abf2f
setup.py
setup.py
#!/usr/bin/env python import sys from setuptools import find_packages, setup install_requires = [ 'cssselect', 'cssutils', 'lxml', ] tests_require = [ 'exam', 'pytest', ] setup( name='toronado', version='0.0.4', author='ted kaemming, disqus', author_email='ted@disqus.com', p...
#!/usr/bin/env python import sys from setuptools import find_packages, setup install_requires = [ 'cssselect', 'cssutils', 'lxml', ] tests_require = [ 'exam', 'pytest', ] setup( name='toronado', version='0.0.4', author='ted kaemming, disqus', author_email='ted@disqus.com', p...
Add classifiers for the supported versions
Add classifiers for the supported versions
Python
apache-2.0
disqus/toronado
#!/usr/bin/env python import sys from setuptools import find_packages, setup install_requires = [ 'cssselect', 'cssutils', 'lxml', ] tests_require = [ 'exam', 'pytest', ] setup( name='toronado', version='0.0.4', author='ted kaemming, disqus', author_email='ted@disqus.com', p...
#!/usr/bin/env python import sys from setuptools import find_packages, setup install_requires = [ 'cssselect', 'cssutils', 'lxml', ] tests_require = [ 'exam', 'pytest', ] setup( name='toronado', version='0.0.4', author='ted kaemming, disqus', author_email='ted@disqus.com', p...
<commit_before>#!/usr/bin/env python import sys from setuptools import find_packages, setup install_requires = [ 'cssselect', 'cssutils', 'lxml', ] tests_require = [ 'exam', 'pytest', ] setup( name='toronado', version='0.0.4', author='ted kaemming, disqus', author_email='ted@dis...
#!/usr/bin/env python import sys from setuptools import find_packages, setup install_requires = [ 'cssselect', 'cssutils', 'lxml', ] tests_require = [ 'exam', 'pytest', ] setup( name='toronado', version='0.0.4', author='ted kaemming, disqus', author_email='ted@disqus.com', p...
#!/usr/bin/env python import sys from setuptools import find_packages, setup install_requires = [ 'cssselect', 'cssutils', 'lxml', ] tests_require = [ 'exam', 'pytest', ] setup( name='toronado', version='0.0.4', author='ted kaemming, disqus', author_email='ted@disqus.com', p...
<commit_before>#!/usr/bin/env python import sys from setuptools import find_packages, setup install_requires = [ 'cssselect', 'cssutils', 'lxml', ] tests_require = [ 'exam', 'pytest', ] setup( name='toronado', version='0.0.4', author='ted kaemming, disqus', author_email='ted@dis...
d3f50efd67522f21781aaff2bdb6f2a1bf3151e0
setup.py
setup.py
from setuptools import setup, find_packages setup( name = 'dictsheet', version = '0.0.3', keywords = ('dictsheet', 'spreadsheet', 'gspread'), description = 'Dict wrapper for google spreadsheet', license = 'MIT License', install_requires = ['gspread>=0.4.1'], url = 'https://github.com/previa...
from setuptools import setup, find_packages from pip.req import parse_requirements install_reqs = parse_requirements('requirements.txt', session=False) reqs = [str(ir.req) for ir in install_reqs] # REFERENCE: # http://stackoverflow.com/questions/14399534/how-can-i-reference-requirements-txt-for-the-install-requires-kw...
Include packages in requirements.txt to install_requires().
[Feature] Include packages in requirements.txt to install_requires().
Python
mit
previa/dictsheet
from setuptools import setup, find_packages setup( name = 'dictsheet', version = '0.0.3', keywords = ('dictsheet', 'spreadsheet', 'gspread'), description = 'Dict wrapper for google spreadsheet', license = 'MIT License', install_requires = ['gspread>=0.4.1'], url = 'https://github.com/previa...
from setuptools import setup, find_packages from pip.req import parse_requirements install_reqs = parse_requirements('requirements.txt', session=False) reqs = [str(ir.req) for ir in install_reqs] # REFERENCE: # http://stackoverflow.com/questions/14399534/how-can-i-reference-requirements-txt-for-the-install-requires-kw...
<commit_before>from setuptools import setup, find_packages setup( name = 'dictsheet', version = '0.0.3', keywords = ('dictsheet', 'spreadsheet', 'gspread'), description = 'Dict wrapper for google spreadsheet', license = 'MIT License', install_requires = ['gspread>=0.4.1'], url = 'https://gi...
from setuptools import setup, find_packages from pip.req import parse_requirements install_reqs = parse_requirements('requirements.txt', session=False) reqs = [str(ir.req) for ir in install_reqs] # REFERENCE: # http://stackoverflow.com/questions/14399534/how-can-i-reference-requirements-txt-for-the-install-requires-kw...
from setuptools import setup, find_packages setup( name = 'dictsheet', version = '0.0.3', keywords = ('dictsheet', 'spreadsheet', 'gspread'), description = 'Dict wrapper for google spreadsheet', license = 'MIT License', install_requires = ['gspread>=0.4.1'], url = 'https://github.com/previa...
<commit_before>from setuptools import setup, find_packages setup( name = 'dictsheet', version = '0.0.3', keywords = ('dictsheet', 'spreadsheet', 'gspread'), description = 'Dict wrapper for google spreadsheet', license = 'MIT License', install_requires = ['gspread>=0.4.1'], url = 'https://gi...
dcf791dc3c0c827125ce1e1e4400f60de7c70509
shopify/product/tasks.py
shopify/product/tasks.py
from decimal import Decimal from django.conf import settings from django.core.mail import EmailMessage from celery.utils.log import get_task_logger from .csv_attach import CSVAttachmentWriter from .models import Transaction from celeryapp import app logger = get_task_logger(__name__) @app.task(max_retries=3) def...
from decimal import Decimal from django.conf import settings from django.core.mail import EmailMessage from celery.utils.log import get_task_logger from .csv_attach import CSVAttachmentWriter from .models import Transaction from celeryapp import app logger = get_task_logger(__name__) @app.task(max_retries=3) def...
Fix accessing settings for debit account number
Fix accessing settings for debit account number
Python
bsd-3-clause
CorbanU/corban-shopify,CorbanU/corban-shopify
from decimal import Decimal from django.conf import settings from django.core.mail import EmailMessage from celery.utils.log import get_task_logger from .csv_attach import CSVAttachmentWriter from .models import Transaction from celeryapp import app logger = get_task_logger(__name__) @app.task(max_retries=3) def...
from decimal import Decimal from django.conf import settings from django.core.mail import EmailMessage from celery.utils.log import get_task_logger from .csv_attach import CSVAttachmentWriter from .models import Transaction from celeryapp import app logger = get_task_logger(__name__) @app.task(max_retries=3) def...
<commit_before>from decimal import Decimal from django.conf import settings from django.core.mail import EmailMessage from celery.utils.log import get_task_logger from .csv_attach import CSVAttachmentWriter from .models import Transaction from celeryapp import app logger = get_task_logger(__name__) @app.task(max...
from decimal import Decimal from django.conf import settings from django.core.mail import EmailMessage from celery.utils.log import get_task_logger from .csv_attach import CSVAttachmentWriter from .models import Transaction from celeryapp import app logger = get_task_logger(__name__) @app.task(max_retries=3) def...
from decimal import Decimal from django.conf import settings from django.core.mail import EmailMessage from celery.utils.log import get_task_logger from .csv_attach import CSVAttachmentWriter from .models import Transaction from celeryapp import app logger = get_task_logger(__name__) @app.task(max_retries=3) def...
<commit_before>from decimal import Decimal from django.conf import settings from django.core.mail import EmailMessage from celery.utils.log import get_task_logger from .csv_attach import CSVAttachmentWriter from .models import Transaction from celeryapp import app logger = get_task_logger(__name__) @app.task(max...
9fd6e1f96d62934c20b554b112ed8954b1066767
setup.py
setup.py
import os from setuptools import setup, find_packages def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name='django-envelope', version=__import__('envelope').__version__, description='A contact form app for Django', long_description=read('README.rst'), ...
import os from setuptools import setup, find_packages def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name='django-envelope', version=__import__('envelope').__version__, description='A contact form app for Django', long_description=read('README.rst'), ...
Mark package as Python 3.6-compatible.
Mark package as Python 3.6-compatible.
Python
mit
zsiciarz/django-envelope,zsiciarz/django-envelope
import os from setuptools import setup, find_packages def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name='django-envelope', version=__import__('envelope').__version__, description='A contact form app for Django', long_description=read('README.rst'), ...
import os from setuptools import setup, find_packages def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name='django-envelope', version=__import__('envelope').__version__, description='A contact form app for Django', long_description=read('README.rst'), ...
<commit_before>import os from setuptools import setup, find_packages def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name='django-envelope', version=__import__('envelope').__version__, description='A contact form app for Django', long_description=read('...
import os from setuptools import setup, find_packages def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name='django-envelope', version=__import__('envelope').__version__, description='A contact form app for Django', long_description=read('README.rst'), ...
import os from setuptools import setup, find_packages def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name='django-envelope', version=__import__('envelope').__version__, description='A contact form app for Django', long_description=read('README.rst'), ...
<commit_before>import os from setuptools import setup, find_packages def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name='django-envelope', version=__import__('envelope').__version__, description='A contact form app for Django', long_description=read('...
663d0674ebdfd2f4ea5483479890e3a762d57755
l10n_ar_aeroo_sale/__openerp__.py
l10n_ar_aeroo_sale/__openerp__.py
# -*- coding: utf-8 -*- { 'name': 'Argentinian Like Sale Order Aeroo Report', 'version': '1.0', 'category': 'Localization/Argentina', 'sequence': 14, 'summary': '', 'description': """ Argentinian Like Sale Order / Quotation Aeroo Report ==================================================== ""...
# -*- coding: utf-8 -*- { 'name': 'Argentinian Like Sale Order Aeroo Report', 'version': '1.0', 'category': 'Localization/Argentina', 'sequence': 14, 'summary': '', 'description': """ Argentinian Like Sale Order / Quotation Aeroo Report ==================================================== ""...
FIX dependency on aeroo rpoert
FIX dependency on aeroo rpoert
Python
agpl-3.0
bmya/odoo-argentina,ingadhoc/odoo-argentina,jobiols/odoo-argentina,bmya/odoo-argentina,adhoc-dev/odoo-argentina,adrianpaesani/odoo-argentina,jobiols/odoo-argentina,adrianpaesani/odoo-argentina,adhoc-dev/odoo-argentina
# -*- coding: utf-8 -*- { 'name': 'Argentinian Like Sale Order Aeroo Report', 'version': '1.0', 'category': 'Localization/Argentina', 'sequence': 14, 'summary': '', 'description': """ Argentinian Like Sale Order / Quotation Aeroo Report ==================================================== ""...
# -*- coding: utf-8 -*- { 'name': 'Argentinian Like Sale Order Aeroo Report', 'version': '1.0', 'category': 'Localization/Argentina', 'sequence': 14, 'summary': '', 'description': """ Argentinian Like Sale Order / Quotation Aeroo Report ==================================================== ""...
<commit_before># -*- coding: utf-8 -*- { 'name': 'Argentinian Like Sale Order Aeroo Report', 'version': '1.0', 'category': 'Localization/Argentina', 'sequence': 14, 'summary': '', 'description': """ Argentinian Like Sale Order / Quotation Aeroo Report ============================================...
# -*- coding: utf-8 -*- { 'name': 'Argentinian Like Sale Order Aeroo Report', 'version': '1.0', 'category': 'Localization/Argentina', 'sequence': 14, 'summary': '', 'description': """ Argentinian Like Sale Order / Quotation Aeroo Report ==================================================== ""...
# -*- coding: utf-8 -*- { 'name': 'Argentinian Like Sale Order Aeroo Report', 'version': '1.0', 'category': 'Localization/Argentina', 'sequence': 14, 'summary': '', 'description': """ Argentinian Like Sale Order / Quotation Aeroo Report ==================================================== ""...
<commit_before># -*- coding: utf-8 -*- { 'name': 'Argentinian Like Sale Order Aeroo Report', 'version': '1.0', 'category': 'Localization/Argentina', 'sequence': 14, 'summary': '', 'description': """ Argentinian Like Sale Order / Quotation Aeroo Report ============================================...
d508def47782bb89a89846400c3d1a25e81f078b
setup.py
setup.py
from setuptools import setup, find_packages setup(name='pyroSAR', packages=find_packages(), include_package_data=True, version='0.1', description='a framework for large-scale SAR satellite data processing', classifiers=[ 'Programming Language :: Python :: 2.7', ], in...
from setuptools import setup, find_packages import os # Create .pyrosar in HOME - Directory directory = os.path.join(os.path.expanduser("~"), '.pyrosar') if not os.path.exists(directory): os.makedirs(directory) setup(name='pyroSAR', packages=find_packages(), include_package_data=True, version='...
Add DIR to HOME * Add .pyrosar directory to HOME-path.
Add DIR to HOME * Add .pyrosar directory to HOME-path.
Python
mit
johntruckenbrodt/pyroSAR,johntruckenbrodt/pyroSAR
from setuptools import setup, find_packages setup(name='pyroSAR', packages=find_packages(), include_package_data=True, version='0.1', description='a framework for large-scale SAR satellite data processing', classifiers=[ 'Programming Language :: Python :: 2.7', ], in...
from setuptools import setup, find_packages import os # Create .pyrosar in HOME - Directory directory = os.path.join(os.path.expanduser("~"), '.pyrosar') if not os.path.exists(directory): os.makedirs(directory) setup(name='pyroSAR', packages=find_packages(), include_package_data=True, version='...
<commit_before>from setuptools import setup, find_packages setup(name='pyroSAR', packages=find_packages(), include_package_data=True, version='0.1', description='a framework for large-scale SAR satellite data processing', classifiers=[ 'Programming Language :: Python :: 2.7', ...
from setuptools import setup, find_packages import os # Create .pyrosar in HOME - Directory directory = os.path.join(os.path.expanduser("~"), '.pyrosar') if not os.path.exists(directory): os.makedirs(directory) setup(name='pyroSAR', packages=find_packages(), include_package_data=True, version='...
from setuptools import setup, find_packages setup(name='pyroSAR', packages=find_packages(), include_package_data=True, version='0.1', description='a framework for large-scale SAR satellite data processing', classifiers=[ 'Programming Language :: Python :: 2.7', ], in...
<commit_before>from setuptools import setup, find_packages setup(name='pyroSAR', packages=find_packages(), include_package_data=True, version='0.1', description='a framework for large-scale SAR satellite data processing', classifiers=[ 'Programming Language :: Python :: 2.7', ...
9ff382cd398bf1ff3d700ad3eb567d48945a142b
setup.py
setup.py
try: from setuptools import setup from setuptools import find_packages packages = find_packages() except ImportError: from distutils.core import setup import os packages = [x.strip('./').replace('/','.') for x in os.popen('find . -name "__init__.py" | xargs -n1 dirname').read().strip().split('\n...
try: from setuptools import setup from setuptools import find_packages packages = find_packages() except ImportError: from distutils.core import setup import os packages = [x.strip('./').replace('/','.') for x in os.popen('find . -name "__init__.py" | xargs -n1 dirname').read().strip().split('\n...
Mark requirement for python 3.6
Mark requirement for python 3.6
Python
bsd-2-clause
angr/archinfo
try: from setuptools import setup from setuptools import find_packages packages = find_packages() except ImportError: from distutils.core import setup import os packages = [x.strip('./').replace('/','.') for x in os.popen('find . -name "__init__.py" | xargs -n1 dirname').read().strip().split('\n...
try: from setuptools import setup from setuptools import find_packages packages = find_packages() except ImportError: from distutils.core import setup import os packages = [x.strip('./').replace('/','.') for x in os.popen('find . -name "__init__.py" | xargs -n1 dirname').read().strip().split('\n...
<commit_before>try: from setuptools import setup from setuptools import find_packages packages = find_packages() except ImportError: from distutils.core import setup import os packages = [x.strip('./').replace('/','.') for x in os.popen('find . -name "__init__.py" | xargs -n1 dirname').read().st...
try: from setuptools import setup from setuptools import find_packages packages = find_packages() except ImportError: from distutils.core import setup import os packages = [x.strip('./').replace('/','.') for x in os.popen('find . -name "__init__.py" | xargs -n1 dirname').read().strip().split('\n...
try: from setuptools import setup from setuptools import find_packages packages = find_packages() except ImportError: from distutils.core import setup import os packages = [x.strip('./').replace('/','.') for x in os.popen('find . -name "__init__.py" | xargs -n1 dirname').read().strip().split('\n...
<commit_before>try: from setuptools import setup from setuptools import find_packages packages = find_packages() except ImportError: from distutils.core import setup import os packages = [x.strip('./').replace('/','.') for x in os.popen('find . -name "__init__.py" | xargs -n1 dirname').read().st...
0b3220b0e212bba1dd197e6d2304249142b332c8
presentationsapp/views.py
presentationsapp/views.py
from django.shortcuts import render, redirect from models import * # Create your views here. def index(req): return render(req, "landing.html", {'request': req}) def login(req): return render(req, "login.html", {'request': req}) def register(req): if req.method == 'POST': try: user = User(email = req.POST[...
from django.shortcuts import render, redirect from models import * # Create your views here. def index(req): return render(req, "landing.html", {'request': req}) def login(req): if req.method == 'POST': try: user = User.objects.get(email = req.POST['email']) if user.check_password(req.POST['password']): ...
Add save for registration & login logic
Add save for registration & login logic
Python
mit
masonsbro/presentations
from django.shortcuts import render, redirect from models import * # Create your views here. def index(req): return render(req, "landing.html", {'request': req}) def login(req): return render(req, "login.html", {'request': req}) def register(req): if req.method == 'POST': try: user = User(email = req.POST[...
from django.shortcuts import render, redirect from models import * # Create your views here. def index(req): return render(req, "landing.html", {'request': req}) def login(req): if req.method == 'POST': try: user = User.objects.get(email = req.POST['email']) if user.check_password(req.POST['password']): ...
<commit_before>from django.shortcuts import render, redirect from models import * # Create your views here. def index(req): return render(req, "landing.html", {'request': req}) def login(req): return render(req, "login.html", {'request': req}) def register(req): if req.method == 'POST': try: user = User(em...
from django.shortcuts import render, redirect from models import * # Create your views here. def index(req): return render(req, "landing.html", {'request': req}) def login(req): if req.method == 'POST': try: user = User.objects.get(email = req.POST['email']) if user.check_password(req.POST['password']): ...
from django.shortcuts import render, redirect from models import * # Create your views here. def index(req): return render(req, "landing.html", {'request': req}) def login(req): return render(req, "login.html", {'request': req}) def register(req): if req.method == 'POST': try: user = User(email = req.POST[...
<commit_before>from django.shortcuts import render, redirect from models import * # Create your views here. def index(req): return render(req, "landing.html", {'request': req}) def login(req): return render(req, "login.html", {'request': req}) def register(req): if req.method == 'POST': try: user = User(em...
6e8895d08ff85bf5ba35765161890e77faba5715
pryvate/blueprints/simple/simple.py
pryvate/blueprints/simple/simple.py
"""Simple blueprint.""" import os from flask import Blueprint, current_app, render_template blueprint = Blueprint('simple', __name__, url_prefix='/simple', template_folder='templates') @blueprint.route('', methods=['GET']) def get_simple(): """List all packages.""" packages = os.listdir(c...
"""Simple blueprint.""" import os from flask import Blueprint, current_app, make_response, render_template blueprint = Blueprint('simple', __name__, url_prefix='/simple', template_folder='templates') @blueprint.route('', methods=['POST']) def search_simple(): """Handling pip search.""" re...
Return 501 on pip search requests
Return 501 on pip search requests
Python
mit
Dinoshauer/pryvate,Dinoshauer/pryvate
"""Simple blueprint.""" import os from flask import Blueprint, current_app, render_template blueprint = Blueprint('simple', __name__, url_prefix='/simple', template_folder='templates') @blueprint.route('', methods=['GET']) def get_simple(): """List all packages.""" packages = os.listdir(c...
"""Simple blueprint.""" import os from flask import Blueprint, current_app, make_response, render_template blueprint = Blueprint('simple', __name__, url_prefix='/simple', template_folder='templates') @blueprint.route('', methods=['POST']) def search_simple(): """Handling pip search.""" re...
<commit_before>"""Simple blueprint.""" import os from flask import Blueprint, current_app, render_template blueprint = Blueprint('simple', __name__, url_prefix='/simple', template_folder='templates') @blueprint.route('', methods=['GET']) def get_simple(): """List all packages.""" packages...
"""Simple blueprint.""" import os from flask import Blueprint, current_app, make_response, render_template blueprint = Blueprint('simple', __name__, url_prefix='/simple', template_folder='templates') @blueprint.route('', methods=['POST']) def search_simple(): """Handling pip search.""" re...
"""Simple blueprint.""" import os from flask import Blueprint, current_app, render_template blueprint = Blueprint('simple', __name__, url_prefix='/simple', template_folder='templates') @blueprint.route('', methods=['GET']) def get_simple(): """List all packages.""" packages = os.listdir(c...
<commit_before>"""Simple blueprint.""" import os from flask import Blueprint, current_app, render_template blueprint = Blueprint('simple', __name__, url_prefix='/simple', template_folder='templates') @blueprint.route('', methods=['GET']) def get_simple(): """List all packages.""" packages...
1c7c0f081711654095023a984978cd812ac94fb6
numpy/tests/typing/reveal/modules.py
numpy/tests/typing/reveal/modules.py
import numpy as np reveal_type(np) # E: ModuleType reveal_type(np.char) # E: ModuleType reveal_type(np.compat) # E: ModuleType reveal_type(np.core) # E: ModuleType reveal_type(np.ctypeslib) # E: ModuleType reveal_type(np.emath) # E: ModuleType reveal_type(np.fft) # E: ModuleType reveal_type(np.lib) # E: Modul...
import numpy as np reveal_type(np) # E: ModuleType reveal_type(np.char) # E: ModuleType reveal_type(np.ctypeslib) # E: ModuleType reveal_type(np.emath) # E: ModuleType reveal_type(np.fft) # E: ModuleType reveal_type(np.lib) # E: ModuleType reveal_type(np.linalg) # E: ModuleType reveal_type(np.ma) # E: ModuleT...
Remove `compat` and `core` from the tests
TST: Remove `compat` and `core` from the tests
Python
bsd-3-clause
anntzer/numpy,numpy/numpy,rgommers/numpy,mhvk/numpy,anntzer/numpy,seberg/numpy,numpy/numpy,madphysicist/numpy,madphysicist/numpy,madphysicist/numpy,mattip/numpy,mattip/numpy,endolith/numpy,numpy/numpy,jakirkham/numpy,grlee77/numpy,simongibbons/numpy,grlee77/numpy,charris/numpy,anntzer/numpy,jakirkham/numpy,seberg/numpy...
import numpy as np reveal_type(np) # E: ModuleType reveal_type(np.char) # E: ModuleType reveal_type(np.compat) # E: ModuleType reveal_type(np.core) # E: ModuleType reveal_type(np.ctypeslib) # E: ModuleType reveal_type(np.emath) # E: ModuleType reveal_type(np.fft) # E: ModuleType reveal_type(np.lib) # E: Modul...
import numpy as np reveal_type(np) # E: ModuleType reveal_type(np.char) # E: ModuleType reveal_type(np.ctypeslib) # E: ModuleType reveal_type(np.emath) # E: ModuleType reveal_type(np.fft) # E: ModuleType reveal_type(np.lib) # E: ModuleType reveal_type(np.linalg) # E: ModuleType reveal_type(np.ma) # E: ModuleT...
<commit_before>import numpy as np reveal_type(np) # E: ModuleType reveal_type(np.char) # E: ModuleType reveal_type(np.compat) # E: ModuleType reveal_type(np.core) # E: ModuleType reveal_type(np.ctypeslib) # E: ModuleType reveal_type(np.emath) # E: ModuleType reveal_type(np.fft) # E: ModuleType reveal_type(np.l...
import numpy as np reveal_type(np) # E: ModuleType reveal_type(np.char) # E: ModuleType reveal_type(np.ctypeslib) # E: ModuleType reveal_type(np.emath) # E: ModuleType reveal_type(np.fft) # E: ModuleType reveal_type(np.lib) # E: ModuleType reveal_type(np.linalg) # E: ModuleType reveal_type(np.ma) # E: ModuleT...
import numpy as np reveal_type(np) # E: ModuleType reveal_type(np.char) # E: ModuleType reveal_type(np.compat) # E: ModuleType reveal_type(np.core) # E: ModuleType reveal_type(np.ctypeslib) # E: ModuleType reveal_type(np.emath) # E: ModuleType reveal_type(np.fft) # E: ModuleType reveal_type(np.lib) # E: Modul...
<commit_before>import numpy as np reveal_type(np) # E: ModuleType reveal_type(np.char) # E: ModuleType reveal_type(np.compat) # E: ModuleType reveal_type(np.core) # E: ModuleType reveal_type(np.ctypeslib) # E: ModuleType reveal_type(np.emath) # E: ModuleType reveal_type(np.fft) # E: ModuleType reveal_type(np.l...
5054e882194adae4b76681e78c45d41ae2c2f0f7
pymatgen/util/sequence.py
pymatgen/util/sequence.py
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ This module provides utilities to chunk large sequences and display progress bars during processing. """ import math def get_chunks(sequence, size=1): """ Args: sequence (): size ...
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ This module provides utilities to chunk large sequences and display progress bars during processing. """ import math def get_chunks(sequence, size=1): """ Args: sequence (): size ...
Allow `PBar` to accept any kwargs (e.g. those used by `tqdm`)
Allow `PBar` to accept any kwargs (e.g. those used by `tqdm`)
Python
mit
gVallverdu/pymatgen,vorwerkc/pymatgen,vorwerkc/pymatgen,davidwaroquiers/pymatgen,gVallverdu/pymatgen,gVallverdu/pymatgen,fraricci/pymatgen,vorwerkc/pymatgen,gVallverdu/pymatgen,davidwaroquiers/pymatgen,fraricci/pymatgen,davidwaroquiers/pymatgen,davidwaroquiers/pymatgen,fraricci/pymatgen,vorwerkc/pymatgen,fraricci/pymat...
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ This module provides utilities to chunk large sequences and display progress bars during processing. """ import math def get_chunks(sequence, size=1): """ Args: sequence (): size ...
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ This module provides utilities to chunk large sequences and display progress bars during processing. """ import math def get_chunks(sequence, size=1): """ Args: sequence (): size ...
<commit_before># coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ This module provides utilities to chunk large sequences and display progress bars during processing. """ import math def get_chunks(sequence, size=1): """ Args: sequence ()...
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ This module provides utilities to chunk large sequences and display progress bars during processing. """ import math def get_chunks(sequence, size=1): """ Args: sequence (): size ...
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ This module provides utilities to chunk large sequences and display progress bars during processing. """ import math def get_chunks(sequence, size=1): """ Args: sequence (): size ...
<commit_before># coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ This module provides utilities to chunk large sequences and display progress bars during processing. """ import math def get_chunks(sequence, size=1): """ Args: sequence ()...
6fa751accb736b3c32522ca498210ffeebfef650
pytablereader/tsv/core.py
pytablereader/tsv/core.py
""" .. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com> """ from .._validator import FileValidator, TextValidator from ..csv.core import CsvTableFileLoader, CsvTableTextLoader class TsvTableFileLoader(CsvTableFileLoader): """ Tab separated values (TSV) format file loader class. :param str fi...
""" .. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com> """ from .._validator import FileValidator, TextValidator from ..csv.core import CsvTableFileLoader, CsvTableTextLoader class TsvTableFileLoader(CsvTableFileLoader): """ Tab separated values (TSV) format file loader class. :param str fi...
Modify TsvTableFileLoader/TsvTableTextLoader to accept additional keyword arguments
Modify TsvTableFileLoader/TsvTableTextLoader to accept additional keyword arguments
Python
mit
thombashi/pytablereader,thombashi/pytablereader,thombashi/pytablereader
""" .. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com> """ from .._validator import FileValidator, TextValidator from ..csv.core import CsvTableFileLoader, CsvTableTextLoader class TsvTableFileLoader(CsvTableFileLoader): """ Tab separated values (TSV) format file loader class. :param str fi...
""" .. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com> """ from .._validator import FileValidator, TextValidator from ..csv.core import CsvTableFileLoader, CsvTableTextLoader class TsvTableFileLoader(CsvTableFileLoader): """ Tab separated values (TSV) format file loader class. :param str fi...
<commit_before>""" .. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com> """ from .._validator import FileValidator, TextValidator from ..csv.core import CsvTableFileLoader, CsvTableTextLoader class TsvTableFileLoader(CsvTableFileLoader): """ Tab separated values (TSV) format file loader class. ...
""" .. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com> """ from .._validator import FileValidator, TextValidator from ..csv.core import CsvTableFileLoader, CsvTableTextLoader class TsvTableFileLoader(CsvTableFileLoader): """ Tab separated values (TSV) format file loader class. :param str fi...
""" .. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com> """ from .._validator import FileValidator, TextValidator from ..csv.core import CsvTableFileLoader, CsvTableTextLoader class TsvTableFileLoader(CsvTableFileLoader): """ Tab separated values (TSV) format file loader class. :param str fi...
<commit_before>""" .. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com> """ from .._validator import FileValidator, TextValidator from ..csv.core import CsvTableFileLoader, CsvTableTextLoader class TsvTableFileLoader(CsvTableFileLoader): """ Tab separated values (TSV) format file loader class. ...
566a200a11a587a9293d6926348c3df77a4c840d
project/apps/api/management/commands/denormalize.py
project/apps/api/management/commands/denormalize.py
from django.core.management.base import ( BaseCommand, ) from apps.api.models import ( Convention, Contest, Contestant, Performance, ) class Command(BaseCommand): help = "Command to denormailze data." def handle(self, *args, **options): vs = Convention.objects.all() for v...
from django.core.management.base import ( BaseCommand, ) from apps.api.models import ( Convention, Contest, Contestant, Performance, ) class Command(BaseCommand): help = "Command to denormailze data." def handle(self, *args, **options): vs = Convention.objects.all() for v...
Remove ranking from denormalization command
Remove ranking from denormalization command
Python
bsd-2-clause
barberscore/barberscore-api,dbinetti/barberscore,barberscore/barberscore-api,dbinetti/barberscore-django,barberscore/barberscore-api,dbinetti/barberscore,barberscore/barberscore-api,dbinetti/barberscore-django
from django.core.management.base import ( BaseCommand, ) from apps.api.models import ( Convention, Contest, Contestant, Performance, ) class Command(BaseCommand): help = "Command to denormailze data." def handle(self, *args, **options): vs = Convention.objects.all() for v...
from django.core.management.base import ( BaseCommand, ) from apps.api.models import ( Convention, Contest, Contestant, Performance, ) class Command(BaseCommand): help = "Command to denormailze data." def handle(self, *args, **options): vs = Convention.objects.all() for v...
<commit_before>from django.core.management.base import ( BaseCommand, ) from apps.api.models import ( Convention, Contest, Contestant, Performance, ) class Command(BaseCommand): help = "Command to denormailze data." def handle(self, *args, **options): vs = Convention.objects.all(...
from django.core.management.base import ( BaseCommand, ) from apps.api.models import ( Convention, Contest, Contestant, Performance, ) class Command(BaseCommand): help = "Command to denormailze data." def handle(self, *args, **options): vs = Convention.objects.all() for v...
from django.core.management.base import ( BaseCommand, ) from apps.api.models import ( Convention, Contest, Contestant, Performance, ) class Command(BaseCommand): help = "Command to denormailze data." def handle(self, *args, **options): vs = Convention.objects.all() for v...
<commit_before>from django.core.management.base import ( BaseCommand, ) from apps.api.models import ( Convention, Contest, Contestant, Performance, ) class Command(BaseCommand): help = "Command to denormailze data." def handle(self, *args, **options): vs = Convention.objects.all(...
f18cf3c17e450eb6f8db5288ecf146eff0968a47
xmt/select.py
xmt/select.py
from itertools import groupby from nltk.translate.gleu_score import sentence_gleu as gleu from nltk.tokenize.toktok import ToktokTokenizer _tokenize = ToktokTokenizer().tokenize def select_first(p): """ Return (hypothesis, reference) translation pairs using the first realization result per item. """...
from itertools import groupby from nltk.translate import bleu_score from nltk.tokenize.toktok import ToktokTokenizer _tokenize = ToktokTokenizer().tokenize _smoother = bleu_score.SmoothingFunction().method3 bleu = bleu_score.sentence_bleu def select_first(p): """ Return (hypothesis, reference) translation p...
Use NIST-BLEU instead of GLEU for oracle.
Use NIST-BLEU instead of GLEU for oracle.
Python
mit
goodmami/xmt,goodmami/xmt
from itertools import groupby from nltk.translate.gleu_score import sentence_gleu as gleu from nltk.tokenize.toktok import ToktokTokenizer _tokenize = ToktokTokenizer().tokenize def select_first(p): """ Return (hypothesis, reference) translation pairs using the first realization result per item. """...
from itertools import groupby from nltk.translate import bleu_score from nltk.tokenize.toktok import ToktokTokenizer _tokenize = ToktokTokenizer().tokenize _smoother = bleu_score.SmoothingFunction().method3 bleu = bleu_score.sentence_bleu def select_first(p): """ Return (hypothesis, reference) translation p...
<commit_before> from itertools import groupby from nltk.translate.gleu_score import sentence_gleu as gleu from nltk.tokenize.toktok import ToktokTokenizer _tokenize = ToktokTokenizer().tokenize def select_first(p): """ Return (hypothesis, reference) translation pairs using the first realization result pe...
from itertools import groupby from nltk.translate import bleu_score from nltk.tokenize.toktok import ToktokTokenizer _tokenize = ToktokTokenizer().tokenize _smoother = bleu_score.SmoothingFunction().method3 bleu = bleu_score.sentence_bleu def select_first(p): """ Return (hypothesis, reference) translation p...
from itertools import groupby from nltk.translate.gleu_score import sentence_gleu as gleu from nltk.tokenize.toktok import ToktokTokenizer _tokenize = ToktokTokenizer().tokenize def select_first(p): """ Return (hypothesis, reference) translation pairs using the first realization result per item. """...
<commit_before> from itertools import groupby from nltk.translate.gleu_score import sentence_gleu as gleu from nltk.tokenize.toktok import ToktokTokenizer _tokenize = ToktokTokenizer().tokenize def select_first(p): """ Return (hypothesis, reference) translation pairs using the first realization result pe...
3d53d70ea657bcdd0f6ed28b4c9ae1f8e894b45a
cellcounter/accounts/models.py
cellcounter/accounts/models.py
import os import simplejson as json from django.db import models from django.contrib.auth.models import User from django_extensions.db.fields.json import JSONField from django.conf import settings from django.db.models.signals import post_save class UserProfile(models.Model): user = models.ForeignKey(User, uniqu...
import os import simplejson as json from django.db import models from django.contrib.auth.models import User from django_extensions.db.fields.json import JSONField from django.conf import settings from django.db.models.signals import post_save class UserProfile(models.Model): user = models.ForeignKey(User, uniqu...
Correct unicde function so UserProfile is correctly displayed in the admin form
Correct unicde function so UserProfile is correctly displayed in the admin form
Python
mit
haematologic/cellcounter,haematologic/cellcounter,cellcounter/cellcounter,cellcounter/cellcounter,haematologic/cellcounter,cellcounter/cellcounter,cellcounter/cellcounter
import os import simplejson as json from django.db import models from django.contrib.auth.models import User from django_extensions.db.fields.json import JSONField from django.conf import settings from django.db.models.signals import post_save class UserProfile(models.Model): user = models.ForeignKey(User, uniqu...
import os import simplejson as json from django.db import models from django.contrib.auth.models import User from django_extensions.db.fields.json import JSONField from django.conf import settings from django.db.models.signals import post_save class UserProfile(models.Model): user = models.ForeignKey(User, uniqu...
<commit_before>import os import simplejson as json from django.db import models from django.contrib.auth.models import User from django_extensions.db.fields.json import JSONField from django.conf import settings from django.db.models.signals import post_save class UserProfile(models.Model): user = models.Foreign...
import os import simplejson as json from django.db import models from django.contrib.auth.models import User from django_extensions.db.fields.json import JSONField from django.conf import settings from django.db.models.signals import post_save class UserProfile(models.Model): user = models.ForeignKey(User, uniqu...
import os import simplejson as json from django.db import models from django.contrib.auth.models import User from django_extensions.db.fields.json import JSONField from django.conf import settings from django.db.models.signals import post_save class UserProfile(models.Model): user = models.ForeignKey(User, uniqu...
<commit_before>import os import simplejson as json from django.db import models from django.contrib.auth.models import User from django_extensions.db.fields.json import JSONField from django.conf import settings from django.db.models.signals import post_save class UserProfile(models.Model): user = models.Foreign...
499add1d29847490141cda4625d9a4199e386283
ncdc_download/download_mapper2.py
ncdc_download/download_mapper2.py
#!/usr/bin/env python3 import ftplib import gzip import os import sys host = 'ftp.ncdc.noaa.gov' base = '/pub/data/noaa' retries = 3 ftp = ftplib.FTP(host) ftp.login() for line in sys.stdin: (year, filename) = line.strip().split() for i in range(retries): sys.stderr.write('reporter:status:Processing ...
#!/usr/bin/env python3 import ftplib import gzip import os import sys host = 'ftp.ncdc.noaa.gov' base = '/pub/data/noaa' retries = 3 ftp = ftplib.FTP(host) ftp.login() for line in sys.stdin: (year, filename) = line.strip().split() for i in range(retries): sys.stderr.write('reporter:status:Processing ...
Remove downloaded file before updating counter
Remove downloaded file before updating counter
Python
mit
simonbrady/cat,simonbrady/cat
#!/usr/bin/env python3 import ftplib import gzip import os import sys host = 'ftp.ncdc.noaa.gov' base = '/pub/data/noaa' retries = 3 ftp = ftplib.FTP(host) ftp.login() for line in sys.stdin: (year, filename) = line.strip().split() for i in range(retries): sys.stderr.write('reporter:status:Processing ...
#!/usr/bin/env python3 import ftplib import gzip import os import sys host = 'ftp.ncdc.noaa.gov' base = '/pub/data/noaa' retries = 3 ftp = ftplib.FTP(host) ftp.login() for line in sys.stdin: (year, filename) = line.strip().split() for i in range(retries): sys.stderr.write('reporter:status:Processing ...
<commit_before>#!/usr/bin/env python3 import ftplib import gzip import os import sys host = 'ftp.ncdc.noaa.gov' base = '/pub/data/noaa' retries = 3 ftp = ftplib.FTP(host) ftp.login() for line in sys.stdin: (year, filename) = line.strip().split() for i in range(retries): sys.stderr.write('reporter:sta...
#!/usr/bin/env python3 import ftplib import gzip import os import sys host = 'ftp.ncdc.noaa.gov' base = '/pub/data/noaa' retries = 3 ftp = ftplib.FTP(host) ftp.login() for line in sys.stdin: (year, filename) = line.strip().split() for i in range(retries): sys.stderr.write('reporter:status:Processing ...
#!/usr/bin/env python3 import ftplib import gzip import os import sys host = 'ftp.ncdc.noaa.gov' base = '/pub/data/noaa' retries = 3 ftp = ftplib.FTP(host) ftp.login() for line in sys.stdin: (year, filename) = line.strip().split() for i in range(retries): sys.stderr.write('reporter:status:Processing ...
<commit_before>#!/usr/bin/env python3 import ftplib import gzip import os import sys host = 'ftp.ncdc.noaa.gov' base = '/pub/data/noaa' retries = 3 ftp = ftplib.FTP(host) ftp.login() for line in sys.stdin: (year, filename) = line.strip().split() for i in range(retries): sys.stderr.write('reporter:sta...
1d1dcccc31cb566ec0e8d37926cf72fecef1b70d
weaveserver/services/simpledb/__init__.py
weaveserver/services/simpledb/__init__.py
from .service import SimpleDatabaseService __meta__ = { "name": "Simple Database", "class": SimpleDatabaseService, "deps": ["messaging", "appmanager"], "config": [] }
from .service import SimpleDatabaseService __meta__ = { "name": "Simple Database", "class": SimpleDatabaseService, "deps": ["messaging", "appmanager"], "config": [ { "name": "core", "loaders": [ {"type": "env"}, {"type": "sysvarfile"} ...
Add sysvarfile and env config loaders to simpledb.
Add sysvarfile and env config loaders to simpledb.
Python
mit
supersaiyanmode/HomePiServer,supersaiyanmode/HomePiServer,supersaiyanmode/HomePiServer
from .service import SimpleDatabaseService __meta__ = { "name": "Simple Database", "class": SimpleDatabaseService, "deps": ["messaging", "appmanager"], "config": [] } Add sysvarfile and env config loaders to simpledb.
from .service import SimpleDatabaseService __meta__ = { "name": "Simple Database", "class": SimpleDatabaseService, "deps": ["messaging", "appmanager"], "config": [ { "name": "core", "loaders": [ {"type": "env"}, {"type": "sysvarfile"} ...
<commit_before>from .service import SimpleDatabaseService __meta__ = { "name": "Simple Database", "class": SimpleDatabaseService, "deps": ["messaging", "appmanager"], "config": [] } <commit_msg>Add sysvarfile and env config loaders to simpledb.<commit_after>
from .service import SimpleDatabaseService __meta__ = { "name": "Simple Database", "class": SimpleDatabaseService, "deps": ["messaging", "appmanager"], "config": [ { "name": "core", "loaders": [ {"type": "env"}, {"type": "sysvarfile"} ...
from .service import SimpleDatabaseService __meta__ = { "name": "Simple Database", "class": SimpleDatabaseService, "deps": ["messaging", "appmanager"], "config": [] } Add sysvarfile and env config loaders to simpledb.from .service import SimpleDatabaseService __meta__ = { "name": "Simple Database"...
<commit_before>from .service import SimpleDatabaseService __meta__ = { "name": "Simple Database", "class": SimpleDatabaseService, "deps": ["messaging", "appmanager"], "config": [] } <commit_msg>Add sysvarfile and env config loaders to simpledb.<commit_after>from .service import SimpleDatabaseService _...
96512dd8484353bacd134a0bf9db774a166d530c
mitmproxy/platform/osx.py
mitmproxy/platform/osx.py
import subprocess import pf """ Doing this the "right" way by using DIOCNATLOOK on the pf device turns out to be a pain. Apple has made a number of modifications to the data structures returned, and compiling userspace tools to test and work with this turns out to be a pain in the ass. Parsing pfctl ou...
import subprocess import pf """ Doing this the "right" way by using DIOCNATLOOK on the pf device turns out to be a pain. Apple has made a number of modifications to the data structures returned, and compiling userspace tools to test and work with this turns out to be a pain in the ass. Parsing pfctl ou...
Include correct documentation URL in error message
Include correct documentation URL in error message
Python
mit
mhils/mitmproxy,laurmurclar/mitmproxy,vhaupert/mitmproxy,dufferzafar/mitmproxy,mitmproxy/mitmproxy,laurmurclar/mitmproxy,cortesi/mitmproxy,vhaupert/mitmproxy,StevenVanAcker/mitmproxy,jvillacorta/mitmproxy,mitmproxy/mitmproxy,zlorb/mitmproxy,StevenVanAcker/mitmproxy,dwfreed/mitmproxy,Kriechi/mitmproxy,dwfreed/mitmproxy,...
import subprocess import pf """ Doing this the "right" way by using DIOCNATLOOK on the pf device turns out to be a pain. Apple has made a number of modifications to the data structures returned, and compiling userspace tools to test and work with this turns out to be a pain in the ass. Parsing pfctl ou...
import subprocess import pf """ Doing this the "right" way by using DIOCNATLOOK on the pf device turns out to be a pain. Apple has made a number of modifications to the data structures returned, and compiling userspace tools to test and work with this turns out to be a pain in the ass. Parsing pfctl ou...
<commit_before>import subprocess import pf """ Doing this the "right" way by using DIOCNATLOOK on the pf device turns out to be a pain. Apple has made a number of modifications to the data structures returned, and compiling userspace tools to test and work with this turns out to be a pain in the ass. P...
import subprocess import pf """ Doing this the "right" way by using DIOCNATLOOK on the pf device turns out to be a pain. Apple has made a number of modifications to the data structures returned, and compiling userspace tools to test and work with this turns out to be a pain in the ass. Parsing pfctl ou...
import subprocess import pf """ Doing this the "right" way by using DIOCNATLOOK on the pf device turns out to be a pain. Apple has made a number of modifications to the data structures returned, and compiling userspace tools to test and work with this turns out to be a pain in the ass. Parsing pfctl ou...
<commit_before>import subprocess import pf """ Doing this the "right" way by using DIOCNATLOOK on the pf device turns out to be a pain. Apple has made a number of modifications to the data structures returned, and compiling userspace tools to test and work with this turns out to be a pain in the ass. P...
d500e290f8c1422f74b1d8c8d2bbb8ec9e5529cb
misc/singleton.py
misc/singleton.py
""" File: singleton.py Purpose: Defines a class whose subclasses will act like the singleton pattern. """ class Singleton(object): """ This is a class that implements singleton for its subclasses. The technique is based on a variant of other techniques found in: http://stackoverflow.com/questions/6...
class Singleton(object): """ This is a class that implements singleton for its subclasses. The technique is based on a variant of other techniques found in: http://stackoverflow.com/questions/6760685/creating-a-singleton-in-python https://gist.github.com/werediver/4396488 The technique is simp...
Add comments to Singleton about usage.
Add comments to Singleton about usage.
Python
mit
dpazel/music_rep
""" File: singleton.py Purpose: Defines a class whose subclasses will act like the singleton pattern. """ class Singleton(object): """ This is a class that implements singleton for its subclasses. The technique is based on a variant of other techniques found in: http://stackoverflow.com/questions/6...
class Singleton(object): """ This is a class that implements singleton for its subclasses. The technique is based on a variant of other techniques found in: http://stackoverflow.com/questions/6760685/creating-a-singleton-in-python https://gist.github.com/werediver/4396488 The technique is simp...
<commit_before>""" File: singleton.py Purpose: Defines a class whose subclasses will act like the singleton pattern. """ class Singleton(object): """ This is a class that implements singleton for its subclasses. The technique is based on a variant of other techniques found in: http://stackoverflow....
class Singleton(object): """ This is a class that implements singleton for its subclasses. The technique is based on a variant of other techniques found in: http://stackoverflow.com/questions/6760685/creating-a-singleton-in-python https://gist.github.com/werediver/4396488 The technique is simp...
""" File: singleton.py Purpose: Defines a class whose subclasses will act like the singleton pattern. """ class Singleton(object): """ This is a class that implements singleton for its subclasses. The technique is based on a variant of other techniques found in: http://stackoverflow.com/questions/6...
<commit_before>""" File: singleton.py Purpose: Defines a class whose subclasses will act like the singleton pattern. """ class Singleton(object): """ This is a class that implements singleton for its subclasses. The technique is based on a variant of other techniques found in: http://stackoverflow....
6b04211b42e76f6428fbaac361059fad4bef70de
txircd/modules/conn_join.py
txircd/modules/conn_join.py
from txircd.channel import IRCChannel from txircd.modbase import Module class Autojoin(Module): def joinOnConnect(self, user): if "client_join_on_connect" in self.ircd.servconfig: for channel in self.ircd.servconfig["client_join_on_connect"]: user.join(self.ircd.channels[channel] if channel in self.ircd.chan...
from txircd.channel import IRCChannel from txircd.modbase import Module class Autojoin(Module): def joinOnConnect(self, user): if "client_join_on_connect" in self.ircd.servconfig: for channel in self.ircd.servconfig["client_join_on_connect"]: user.join(self.ircd.channels[channel] if channel in self.ircd.chan...
Fix once again nobody being allowed to connect
Fix once again nobody being allowed to connect
Python
bsd-3-clause
Heufneutje/txircd,DesertBus/txircd,ElementalAlchemist/txircd
from txircd.channel import IRCChannel from txircd.modbase import Module class Autojoin(Module): def joinOnConnect(self, user): if "client_join_on_connect" in self.ircd.servconfig: for channel in self.ircd.servconfig["client_join_on_connect"]: user.join(self.ircd.channels[channel] if channel in self.ircd.chan...
from txircd.channel import IRCChannel from txircd.modbase import Module class Autojoin(Module): def joinOnConnect(self, user): if "client_join_on_connect" in self.ircd.servconfig: for channel in self.ircd.servconfig["client_join_on_connect"]: user.join(self.ircd.channels[channel] if channel in self.ircd.chan...
<commit_before>from txircd.channel import IRCChannel from txircd.modbase import Module class Autojoin(Module): def joinOnConnect(self, user): if "client_join_on_connect" in self.ircd.servconfig: for channel in self.ircd.servconfig["client_join_on_connect"]: user.join(self.ircd.channels[channel] if channel in...
from txircd.channel import IRCChannel from txircd.modbase import Module class Autojoin(Module): def joinOnConnect(self, user): if "client_join_on_connect" in self.ircd.servconfig: for channel in self.ircd.servconfig["client_join_on_connect"]: user.join(self.ircd.channels[channel] if channel in self.ircd.chan...
from txircd.channel import IRCChannel from txircd.modbase import Module class Autojoin(Module): def joinOnConnect(self, user): if "client_join_on_connect" in self.ircd.servconfig: for channel in self.ircd.servconfig["client_join_on_connect"]: user.join(self.ircd.channels[channel] if channel in self.ircd.chan...
<commit_before>from txircd.channel import IRCChannel from txircd.modbase import Module class Autojoin(Module): def joinOnConnect(self, user): if "client_join_on_connect" in self.ircd.servconfig: for channel in self.ircd.servconfig["client_join_on_connect"]: user.join(self.ircd.channels[channel] if channel in...
dcf0e140303259f7b3df2609281b635dbcd4806f
knapsack.py
knapsack.py
# Knapsack 0-1 function wieights, values and size n. from pyspark.sql import Row from pyspark.sql.functions import lit from pyspark.sql.functions import col # Greedy implementation of 0-1 Knapsack algorithm. def knapsack(knapsackDF, W): ratioDF = knapsackDF.withColumn("ratio", lit(knapsackDF.values / knapsackDF.w...
# Knapsack 0-1 function wieights, values and size n. import sys import pyspark.sql.functions as func from pyspark.sql.window import Window from pyspark.sql import Row from pyspark.sql.functions import lit from pyspark.sql.functions import col # Greedy implementation of 0-1 Knapsack algorithm. def knapsack(knapsackDF...
Add Window functions to attempt partial sum
Add Window functions to attempt partial sum
Python
apache-2.0
drulm/Spark_Knapsack,drulm/Spark_Knapsack
# Knapsack 0-1 function wieights, values and size n. from pyspark.sql import Row from pyspark.sql.functions import lit from pyspark.sql.functions import col # Greedy implementation of 0-1 Knapsack algorithm. def knapsack(knapsackDF, W): ratioDF = knapsackDF.withColumn("ratio", lit(knapsackDF.values / knapsackDF.w...
# Knapsack 0-1 function wieights, values and size n. import sys import pyspark.sql.functions as func from pyspark.sql.window import Window from pyspark.sql import Row from pyspark.sql.functions import lit from pyspark.sql.functions import col # Greedy implementation of 0-1 Knapsack algorithm. def knapsack(knapsackDF...
<commit_before> # Knapsack 0-1 function wieights, values and size n. from pyspark.sql import Row from pyspark.sql.functions import lit from pyspark.sql.functions import col # Greedy implementation of 0-1 Knapsack algorithm. def knapsack(knapsackDF, W): ratioDF = knapsackDF.withColumn("ratio", lit(knapsackDF.values...
# Knapsack 0-1 function wieights, values and size n. import sys import pyspark.sql.functions as func from pyspark.sql.window import Window from pyspark.sql import Row from pyspark.sql.functions import lit from pyspark.sql.functions import col # Greedy implementation of 0-1 Knapsack algorithm. def knapsack(knapsackDF...
# Knapsack 0-1 function wieights, values and size n. from pyspark.sql import Row from pyspark.sql.functions import lit from pyspark.sql.functions import col # Greedy implementation of 0-1 Knapsack algorithm. def knapsack(knapsackDF, W): ratioDF = knapsackDF.withColumn("ratio", lit(knapsackDF.values / knapsackDF.w...
<commit_before> # Knapsack 0-1 function wieights, values and size n. from pyspark.sql import Row from pyspark.sql.functions import lit from pyspark.sql.functions import col # Greedy implementation of 0-1 Knapsack algorithm. def knapsack(knapsackDF, W): ratioDF = knapsackDF.withColumn("ratio", lit(knapsackDF.values...
f0166ba101c131b5331e141128fc65e71c753015
flocker/common/__init__.py
flocker/common/__init__.py
# Copyright Hybrid Logic Ltd. See LICENSE file for details. """ Shared flocker components. """ __all__ = [ 'INode', 'FakeNode', 'ProcessNode', 'gather_deferreds', 'auto_threaded', 'auto_openstack_logging', 'get_all_ips', ] import platform from ._ipc import INode, FakeNode, ProcessNode from ._defer impo...
# Copyright Hybrid Logic Ltd. See LICENSE file for details. """ Shared flocker components. """ __all__ = [ 'INode', 'FakeNode', 'ProcessNode', 'gather_deferreds', 'auto_threaded', 'auto_openstack_logging', 'get_all_ips', 'ipaddress_from_string', ] import platform from ._ipc import INode, FakeNode, Proc...
Make the new helper function public
Make the new helper function public
Python
apache-2.0
Azulinho/flocker,1d4Nf6/flocker,hackday-profilers/flocker,wallnerryan/flocker-profiles,mbrukman/flocker,adamtheturtle/flocker,1d4Nf6/flocker,AndyHuu/flocker,jml/flocker,wallnerryan/flocker-profiles,achanda/flocker,agonzalezro/flocker,AndyHuu/flocker,adamtheturtle/flocker,runcom/flocker,achanda/flocker,runcom/flocker,ag...
# Copyright Hybrid Logic Ltd. See LICENSE file for details. """ Shared flocker components. """ __all__ = [ 'INode', 'FakeNode', 'ProcessNode', 'gather_deferreds', 'auto_threaded', 'auto_openstack_logging', 'get_all_ips', ] import platform from ._ipc import INode, FakeNode, ProcessNode from ._defer impo...
# Copyright Hybrid Logic Ltd. See LICENSE file for details. """ Shared flocker components. """ __all__ = [ 'INode', 'FakeNode', 'ProcessNode', 'gather_deferreds', 'auto_threaded', 'auto_openstack_logging', 'get_all_ips', 'ipaddress_from_string', ] import platform from ._ipc import INode, FakeNode, Proc...
<commit_before># Copyright Hybrid Logic Ltd. See LICENSE file for details. """ Shared flocker components. """ __all__ = [ 'INode', 'FakeNode', 'ProcessNode', 'gather_deferreds', 'auto_threaded', 'auto_openstack_logging', 'get_all_ips', ] import platform from ._ipc import INode, FakeNode, ProcessNode fr...
# Copyright Hybrid Logic Ltd. See LICENSE file for details. """ Shared flocker components. """ __all__ = [ 'INode', 'FakeNode', 'ProcessNode', 'gather_deferreds', 'auto_threaded', 'auto_openstack_logging', 'get_all_ips', 'ipaddress_from_string', ] import platform from ._ipc import INode, FakeNode, Proc...
# Copyright Hybrid Logic Ltd. See LICENSE file for details. """ Shared flocker components. """ __all__ = [ 'INode', 'FakeNode', 'ProcessNode', 'gather_deferreds', 'auto_threaded', 'auto_openstack_logging', 'get_all_ips', ] import platform from ._ipc import INode, FakeNode, ProcessNode from ._defer impo...
<commit_before># Copyright Hybrid Logic Ltd. See LICENSE file for details. """ Shared flocker components. """ __all__ = [ 'INode', 'FakeNode', 'ProcessNode', 'gather_deferreds', 'auto_threaded', 'auto_openstack_logging', 'get_all_ips', ] import platform from ._ipc import INode, FakeNode, ProcessNode fr...
f30a560db83d8a7ac87685c69f5b519faaa929fa
project_issue_department/__openerp__.py
project_issue_department/__openerp__.py
# -*- coding: utf-8 -*- ############################################################################## # # Copyright (C) 2012 Daniel Reis # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software...
# -*- coding: utf-8 -*- ############################################################################## # # Copyright (C) 2012 Daniel Reis # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software...
Fix pep8 to pass super checks
Fix pep8 to pass super checks
Python
agpl-3.0
OCA/department,Antiun/department,acsone/department,kmee/department,Endika/department
# -*- coding: utf-8 -*- ############################################################################## # # Copyright (C) 2012 Daniel Reis # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software...
# -*- coding: utf-8 -*- ############################################################################## # # Copyright (C) 2012 Daniel Reis # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software...
<commit_before># -*- coding: utf-8 -*- ############################################################################## # # Copyright (C) 2012 Daniel Reis # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by th...
# -*- coding: utf-8 -*- ############################################################################## # # Copyright (C) 2012 Daniel Reis # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software...
# -*- coding: utf-8 -*- ############################################################################## # # Copyright (C) 2012 Daniel Reis # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software...
<commit_before># -*- coding: utf-8 -*- ############################################################################## # # Copyright (C) 2012 Daniel Reis # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by th...
8ecc9c870fdc156d4fbe24717ab77990a50da010
welltie.py
welltie.py
from flask import Flask, render_template from synth.synth import generate_reflectivity, plot_logs from StringIO import StringIO app = Flask(__name__) @app.route('/') def index(): return render_template('index.html') @app.route('/plot') def plot(): buffer = StringIO() t, RC_t = generate_reflectivity() ...
from flask import Flask, render_template, make_response from synth.synth import generate_reflectivity, plot_logs from StringIO import StringIO app = Flask(__name__) @app.route('/') def index(): return render_template('index.html') @app.route('/plot') def plot(): t, RC_t = generate_reflectivity() start_z...
Correct content type (png image) is now reported for the url /plot
Correct content type (png image) is now reported for the url /plot
Python
mit
MrHiccups/open-well-ties,MrHiccups/open-well-ties,MrHiccups/open-well-ties
from flask import Flask, render_template from synth.synth import generate_reflectivity, plot_logs from StringIO import StringIO app = Flask(__name__) @app.route('/') def index(): return render_template('index.html') @app.route('/plot') def plot(): buffer = StringIO() t, RC_t = generate_reflectivity() ...
from flask import Flask, render_template, make_response from synth.synth import generate_reflectivity, plot_logs from StringIO import StringIO app = Flask(__name__) @app.route('/') def index(): return render_template('index.html') @app.route('/plot') def plot(): t, RC_t = generate_reflectivity() start_z...
<commit_before>from flask import Flask, render_template from synth.synth import generate_reflectivity, plot_logs from StringIO import StringIO app = Flask(__name__) @app.route('/') def index(): return render_template('index.html') @app.route('/plot') def plot(): buffer = StringIO() t, RC_t = generate_re...
from flask import Flask, render_template, make_response from synth.synth import generate_reflectivity, plot_logs from StringIO import StringIO app = Flask(__name__) @app.route('/') def index(): return render_template('index.html') @app.route('/plot') def plot(): t, RC_t = generate_reflectivity() start_z...
from flask import Flask, render_template from synth.synth import generate_reflectivity, plot_logs from StringIO import StringIO app = Flask(__name__) @app.route('/') def index(): return render_template('index.html') @app.route('/plot') def plot(): buffer = StringIO() t, RC_t = generate_reflectivity() ...
<commit_before>from flask import Flask, render_template from synth.synth import generate_reflectivity, plot_logs from StringIO import StringIO app = Flask(__name__) @app.route('/') def index(): return render_template('index.html') @app.route('/plot') def plot(): buffer = StringIO() t, RC_t = generate_re...
d851aae653ce87aed9b9f6ac3cf7f5312672a08c
radmin/templatetags/radmin_extras.py
radmin/templatetags/radmin_extras.py
from django import template import json from django.conf import settings register = template.Library() @register.simple_tag(takes_context=True) def get_admin_context(context): ctx = {'location':None, 'param1':None, 'param2':None, 'static':settings.STATIC_URL} try: context['app_list'] if len(co...
from django import template import json from django.conf import settings register = template.Library() @register.simple_tag(takes_context=True) def get_admin_context(context): ctx = {'location':None, 'param1':None, 'param2':None, 'static':settings.STATIC_URL} try: context['app_list'] if len(co...
Check if original object is None
Check if original object is None
Python
bsd-2-clause
mick-t/django-radmin-console,mick-t/django-radmin-console,mick-t/django-radmin-console
from django import template import json from django.conf import settings register = template.Library() @register.simple_tag(takes_context=True) def get_admin_context(context): ctx = {'location':None, 'param1':None, 'param2':None, 'static':settings.STATIC_URL} try: context['app_list'] if len(co...
from django import template import json from django.conf import settings register = template.Library() @register.simple_tag(takes_context=True) def get_admin_context(context): ctx = {'location':None, 'param1':None, 'param2':None, 'static':settings.STATIC_URL} try: context['app_list'] if len(co...
<commit_before>from django import template import json from django.conf import settings register = template.Library() @register.simple_tag(takes_context=True) def get_admin_context(context): ctx = {'location':None, 'param1':None, 'param2':None, 'static':settings.STATIC_URL} try: context['app_list'] ...
from django import template import json from django.conf import settings register = template.Library() @register.simple_tag(takes_context=True) def get_admin_context(context): ctx = {'location':None, 'param1':None, 'param2':None, 'static':settings.STATIC_URL} try: context['app_list'] if len(co...
from django import template import json from django.conf import settings register = template.Library() @register.simple_tag(takes_context=True) def get_admin_context(context): ctx = {'location':None, 'param1':None, 'param2':None, 'static':settings.STATIC_URL} try: context['app_list'] if len(co...
<commit_before>from django import template import json from django.conf import settings register = template.Library() @register.simple_tag(takes_context=True) def get_admin_context(context): ctx = {'location':None, 'param1':None, 'param2':None, 'static':settings.STATIC_URL} try: context['app_list'] ...
4b7e2812768159961f297ccf7b8a23c2d436ede2
dduplicated/fileManager.py
dduplicated/fileManager.py
import os from threading import Thread def _delete(path): os.remove(path) def _link(src, path): os.symlink(src, path) def manager_files(paths, link): # The first file is preserved to not delete all files in directories. first = True src = "" deleted_files = [] linked_files = [] errors = [] for path in pat...
import os from threading import Thread def _delete(path): os.remove(path) def _link(src, path): os.symlink(src, path) def manager_files(paths, link): # The first file is preserved to not delete all files in directories. first = True src = "" deleted_files = [] linked_files = [] errors = [] for path in pat...
Fix spacing in last method of file.
Fix spacing in last method of file. Signed-off-by: messiasthi <8562fc1efba9a3c99753c749fdfb1b6932b70fbf@gmail.com>
Python
mit
messiasthi/dduplicated-cli
import os from threading import Thread def _delete(path): os.remove(path) def _link(src, path): os.symlink(src, path) def manager_files(paths, link): # The first file is preserved to not delete all files in directories. first = True src = "" deleted_files = [] linked_files = [] errors = [] for path in pat...
import os from threading import Thread def _delete(path): os.remove(path) def _link(src, path): os.symlink(src, path) def manager_files(paths, link): # The first file is preserved to not delete all files in directories. first = True src = "" deleted_files = [] linked_files = [] errors = [] for path in pat...
<commit_before>import os from threading import Thread def _delete(path): os.remove(path) def _link(src, path): os.symlink(src, path) def manager_files(paths, link): # The first file is preserved to not delete all files in directories. first = True src = "" deleted_files = [] linked_files = [] errors = [] ...
import os from threading import Thread def _delete(path): os.remove(path) def _link(src, path): os.symlink(src, path) def manager_files(paths, link): # The first file is preserved to not delete all files in directories. first = True src = "" deleted_files = [] linked_files = [] errors = [] for path in pat...
import os from threading import Thread def _delete(path): os.remove(path) def _link(src, path): os.symlink(src, path) def manager_files(paths, link): # The first file is preserved to not delete all files in directories. first = True src = "" deleted_files = [] linked_files = [] errors = [] for path in pat...
<commit_before>import os from threading import Thread def _delete(path): os.remove(path) def _link(src, path): os.symlink(src, path) def manager_files(paths, link): # The first file is preserved to not delete all files in directories. first = True src = "" deleted_files = [] linked_files = [] errors = [] ...
146a2217fba0614d5f03e6a8648ced9613dc2cb8
readux/books/management/commands/web_export.py
readux/books/management/commands/web_export.py
from eulfedora.server import Repository from django.core.management.base import BaseCommand from readux.books import export from readux.books.models import Volume class Command(BaseCommand): help = 'Construct web export of an annotated volume' def add_arguments(self, parser): parser.add_argument('p...
from eulfedora.server import Repository from django.core.management.base import BaseCommand import shutil from readux.books import annotate, export from readux.books.models import Volume class Command(BaseCommand): help = 'Construct web export of an annotated volume' def add_arguments(self, parser): ...
Update web export manage command to generate static/jekyll site
Update web export manage command to generate static/jekyll site
Python
apache-2.0
emory-libraries/readux,emory-libraries/readux,emory-libraries/readux
from eulfedora.server import Repository from django.core.management.base import BaseCommand from readux.books import export from readux.books.models import Volume class Command(BaseCommand): help = 'Construct web export of an annotated volume' def add_arguments(self, parser): parser.add_argument('p...
from eulfedora.server import Repository from django.core.management.base import BaseCommand import shutil from readux.books import annotate, export from readux.books.models import Volume class Command(BaseCommand): help = 'Construct web export of an annotated volume' def add_arguments(self, parser): ...
<commit_before>from eulfedora.server import Repository from django.core.management.base import BaseCommand from readux.books import export from readux.books.models import Volume class Command(BaseCommand): help = 'Construct web export of an annotated volume' def add_arguments(self, parser): parser....
from eulfedora.server import Repository from django.core.management.base import BaseCommand import shutil from readux.books import annotate, export from readux.books.models import Volume class Command(BaseCommand): help = 'Construct web export of an annotated volume' def add_arguments(self, parser): ...
from eulfedora.server import Repository from django.core.management.base import BaseCommand from readux.books import export from readux.books.models import Volume class Command(BaseCommand): help = 'Construct web export of an annotated volume' def add_arguments(self, parser): parser.add_argument('p...
<commit_before>from eulfedora.server import Repository from django.core.management.base import BaseCommand from readux.books import export from readux.books.models import Volume class Command(BaseCommand): help = 'Construct web export of an annotated volume' def add_arguments(self, parser): parser....
a425db8ec0b21a5ff72af7481e7a7e30638ef9e3
sorl_thumbnail_serializer/fields.py
sorl_thumbnail_serializer/fields.py
from rest_framework import serializers from sorl.thumbnail import get_thumbnail class HyperlinkedSorlImageField(serializers.ImageField): def __init__(self, dimensions, options={}, *args, **kwargs): self.dimensions = dimensions self.options = options super(HyperlinkedSorlImageField, self...
from rest_framework import serializers from sorl.thumbnail import get_thumbnail class HyperlinkedSorlImageField(serializers.ImageField): def __init__(self, dimensions, options={}, *args, **kwargs): self.dimensions = dimensions self.options = options super(HyperlinkedSorlImageField, self...
Support for DRF 3.0 and above
Support for DRF 3.0 and above See http://www.django-rest-framework.org/topics/3.0-announcement/
Python
mit
dessibelle/sorl-thumbnail-serializer-field
from rest_framework import serializers from sorl.thumbnail import get_thumbnail class HyperlinkedSorlImageField(serializers.ImageField): def __init__(self, dimensions, options={}, *args, **kwargs): self.dimensions = dimensions self.options = options super(HyperlinkedSorlImageField, self...
from rest_framework import serializers from sorl.thumbnail import get_thumbnail class HyperlinkedSorlImageField(serializers.ImageField): def __init__(self, dimensions, options={}, *args, **kwargs): self.dimensions = dimensions self.options = options super(HyperlinkedSorlImageField, self...
<commit_before>from rest_framework import serializers from sorl.thumbnail import get_thumbnail class HyperlinkedSorlImageField(serializers.ImageField): def __init__(self, dimensions, options={}, *args, **kwargs): self.dimensions = dimensions self.options = options super(HyperlinkedSorlI...
from rest_framework import serializers from sorl.thumbnail import get_thumbnail class HyperlinkedSorlImageField(serializers.ImageField): def __init__(self, dimensions, options={}, *args, **kwargs): self.dimensions = dimensions self.options = options super(HyperlinkedSorlImageField, self...
from rest_framework import serializers from sorl.thumbnail import get_thumbnail class HyperlinkedSorlImageField(serializers.ImageField): def __init__(self, dimensions, options={}, *args, **kwargs): self.dimensions = dimensions self.options = options super(HyperlinkedSorlImageField, self...
<commit_before>from rest_framework import serializers from sorl.thumbnail import get_thumbnail class HyperlinkedSorlImageField(serializers.ImageField): def __init__(self, dimensions, options={}, *args, **kwargs): self.dimensions = dimensions self.options = options super(HyperlinkedSorlI...
89d2f9ef443b5cd17ec802e649843c086b48a0ca
yarn_api_client/__init__.py
yarn_api_client/__init__.py
# -*- coding: utf-8 -*- __version__ = '0.3.4' __all__ = ['ApplicationMaster', 'HistoryServer', 'NodeManager', 'ResourceManager'] from .application_master import ApplicationMaster from .history_server import HistoryServer from .node_manager import NodeManager from .resource_manager import ResourceManager
# -*- coding: utf-8 -*- __version__ = '0.3.5.dev' __all__ = ['ApplicationMaster', 'HistoryServer', 'NodeManager', 'ResourceManager'] from .application_master import ApplicationMaster from .history_server import HistoryServer from .node_manager import NodeManager from .resource_manager import ResourceManager
Prepare for next development iteration
Prepare for next development iteration
Python
bsd-3-clause
toidi/hadoop-yarn-api-python-client
# -*- coding: utf-8 -*- __version__ = '0.3.4' __all__ = ['ApplicationMaster', 'HistoryServer', 'NodeManager', 'ResourceManager'] from .application_master import ApplicationMaster from .history_server import HistoryServer from .node_manager import NodeManager from .resource_manager import ResourceManager Prepare for ne...
# -*- coding: utf-8 -*- __version__ = '0.3.5.dev' __all__ = ['ApplicationMaster', 'HistoryServer', 'NodeManager', 'ResourceManager'] from .application_master import ApplicationMaster from .history_server import HistoryServer from .node_manager import NodeManager from .resource_manager import ResourceManager
<commit_before># -*- coding: utf-8 -*- __version__ = '0.3.4' __all__ = ['ApplicationMaster', 'HistoryServer', 'NodeManager', 'ResourceManager'] from .application_master import ApplicationMaster from .history_server import HistoryServer from .node_manager import NodeManager from .resource_manager import ResourceManager...
# -*- coding: utf-8 -*- __version__ = '0.3.5.dev' __all__ = ['ApplicationMaster', 'HistoryServer', 'NodeManager', 'ResourceManager'] from .application_master import ApplicationMaster from .history_server import HistoryServer from .node_manager import NodeManager from .resource_manager import ResourceManager
# -*- coding: utf-8 -*- __version__ = '0.3.4' __all__ = ['ApplicationMaster', 'HistoryServer', 'NodeManager', 'ResourceManager'] from .application_master import ApplicationMaster from .history_server import HistoryServer from .node_manager import NodeManager from .resource_manager import ResourceManager Prepare for ne...
<commit_before># -*- coding: utf-8 -*- __version__ = '0.3.4' __all__ = ['ApplicationMaster', 'HistoryServer', 'NodeManager', 'ResourceManager'] from .application_master import ApplicationMaster from .history_server import HistoryServer from .node_manager import NodeManager from .resource_manager import ResourceManager...
22209f8de06a4a179cddd885566066dd6acdb8dd
python_course_1604/class_01/tests/test_04.py
python_course_1604/class_01/tests/test_04.py
''' Created on 6 Apr 2016 @author: fressi ''' import unittest import python_course_1604.class_01.exercize_04_stack_limit as exercize from python_course_1604.tests.utils import skip_if_exercize_not_started @skip_if_exercize_not_started(exercize) class TestStackLimit(unittest.TestCase): def test_failing_functi...
''' Created on 6 Apr 2016 @author: fressi ''' import unittest import python_course_1604.class_01.exercize_04_stack_limit as exercize from python_course_1604.tests.utils import skip_if_exercize_not_started @skip_if_exercize_not_started(exercize) class TestStackLimit(unittest.TestCase): def test_failing_functi...
Make stack limit check more tollerant.
Make stack limit check more tollerant.
Python
apache-2.0
FedericoRessi/pythoncourse
''' Created on 6 Apr 2016 @author: fressi ''' import unittest import python_course_1604.class_01.exercize_04_stack_limit as exercize from python_course_1604.tests.utils import skip_if_exercize_not_started @skip_if_exercize_not_started(exercize) class TestStackLimit(unittest.TestCase): def test_failing_functi...
''' Created on 6 Apr 2016 @author: fressi ''' import unittest import python_course_1604.class_01.exercize_04_stack_limit as exercize from python_course_1604.tests.utils import skip_if_exercize_not_started @skip_if_exercize_not_started(exercize) class TestStackLimit(unittest.TestCase): def test_failing_functi...
<commit_before>''' Created on 6 Apr 2016 @author: fressi ''' import unittest import python_course_1604.class_01.exercize_04_stack_limit as exercize from python_course_1604.tests.utils import skip_if_exercize_not_started @skip_if_exercize_not_started(exercize) class TestStackLimit(unittest.TestCase): def test...
''' Created on 6 Apr 2016 @author: fressi ''' import unittest import python_course_1604.class_01.exercize_04_stack_limit as exercize from python_course_1604.tests.utils import skip_if_exercize_not_started @skip_if_exercize_not_started(exercize) class TestStackLimit(unittest.TestCase): def test_failing_functi...
''' Created on 6 Apr 2016 @author: fressi ''' import unittest import python_course_1604.class_01.exercize_04_stack_limit as exercize from python_course_1604.tests.utils import skip_if_exercize_not_started @skip_if_exercize_not_started(exercize) class TestStackLimit(unittest.TestCase): def test_failing_functi...
<commit_before>''' Created on 6 Apr 2016 @author: fressi ''' import unittest import python_course_1604.class_01.exercize_04_stack_limit as exercize from python_course_1604.tests.utils import skip_if_exercize_not_started @skip_if_exercize_not_started(exercize) class TestStackLimit(unittest.TestCase): def test...
84cd432f2df46e24e7eaee81d899bf33fe551b70
netsecus/korrekturtools.py
netsecus/korrekturtools.py
from __future__ import unicode_literals import os import logging from . import helper def readStatus(config, student): student = student.lower() path = config("attachment_path") if not os.path.exists(path): return path = os.path.join(path, student) if not os.path.exists(path): ...
from __future__ import unicode_literals import os import logging import sqlite3 from . import helper def readStatus(config, student): database = getStatusTable(config) cursor = database.cursor() cursor.execute("SELECT status FROM status WHERE identifier = ?", (student,)) statusRow = cursor.fetchone...
Move status to database instead of status file (server side)
Move status to database instead of status file (server side)
Python
mit
hhucn/netsec-uebungssystem,hhucn/netsec-uebungssystem,hhucn/netsec-uebungssystem
from __future__ import unicode_literals import os import logging from . import helper def readStatus(config, student): student = student.lower() path = config("attachment_path") if not os.path.exists(path): return path = os.path.join(path, student) if not os.path.exists(path): ...
from __future__ import unicode_literals import os import logging import sqlite3 from . import helper def readStatus(config, student): database = getStatusTable(config) cursor = database.cursor() cursor.execute("SELECT status FROM status WHERE identifier = ?", (student,)) statusRow = cursor.fetchone...
<commit_before>from __future__ import unicode_literals import os import logging from . import helper def readStatus(config, student): student = student.lower() path = config("attachment_path") if not os.path.exists(path): return path = os.path.join(path, student) if not os.path.exists...
from __future__ import unicode_literals import os import logging import sqlite3 from . import helper def readStatus(config, student): database = getStatusTable(config) cursor = database.cursor() cursor.execute("SELECT status FROM status WHERE identifier = ?", (student,)) statusRow = cursor.fetchone...
from __future__ import unicode_literals import os import logging from . import helper def readStatus(config, student): student = student.lower() path = config("attachment_path") if not os.path.exists(path): return path = os.path.join(path, student) if not os.path.exists(path): ...
<commit_before>from __future__ import unicode_literals import os import logging from . import helper def readStatus(config, student): student = student.lower() path = config("attachment_path") if not os.path.exists(path): return path = os.path.join(path, student) if not os.path.exists...
3ec3948dfde67c15204964d35c2df1c60e7706a1
rwt/tests/test_scripts.py
rwt/tests/test_scripts.py
from __future__ import unicode_literals import textwrap import sys import subprocess from rwt import scripts def test_pkg_imported(tmpdir): """ Create a script that loads cython and ensure it runs. """ body = textwrap.dedent(""" import cython print("Successfully imported cython") """).lstrip() script_fil...
from __future__ import unicode_literals import textwrap import sys import subprocess from rwt import scripts def test_pkg_imported(tmpdir): """ Create a script that loads cython and ensure it runs. """ body = textwrap.dedent(""" import cython print("Successfully imported cython") """).lstrip() script_fil...
Add another test demonstrating that multiple assignment doesn't affect __requires__ parsing.
Add another test demonstrating that multiple assignment doesn't affect __requires__ parsing.
Python
mit
jaraco/rwt
from __future__ import unicode_literals import textwrap import sys import subprocess from rwt import scripts def test_pkg_imported(tmpdir): """ Create a script that loads cython and ensure it runs. """ body = textwrap.dedent(""" import cython print("Successfully imported cython") """).lstrip() script_fil...
from __future__ import unicode_literals import textwrap import sys import subprocess from rwt import scripts def test_pkg_imported(tmpdir): """ Create a script that loads cython and ensure it runs. """ body = textwrap.dedent(""" import cython print("Successfully imported cython") """).lstrip() script_fil...
<commit_before>from __future__ import unicode_literals import textwrap import sys import subprocess from rwt import scripts def test_pkg_imported(tmpdir): """ Create a script that loads cython and ensure it runs. """ body = textwrap.dedent(""" import cython print("Successfully imported cython") """).lstri...
from __future__ import unicode_literals import textwrap import sys import subprocess from rwt import scripts def test_pkg_imported(tmpdir): """ Create a script that loads cython and ensure it runs. """ body = textwrap.dedent(""" import cython print("Successfully imported cython") """).lstrip() script_fil...
from __future__ import unicode_literals import textwrap import sys import subprocess from rwt import scripts def test_pkg_imported(tmpdir): """ Create a script that loads cython and ensure it runs. """ body = textwrap.dedent(""" import cython print("Successfully imported cython") """).lstrip() script_fil...
<commit_before>from __future__ import unicode_literals import textwrap import sys import subprocess from rwt import scripts def test_pkg_imported(tmpdir): """ Create a script that loads cython and ensure it runs. """ body = textwrap.dedent(""" import cython print("Successfully imported cython") """).lstri...
0bd3fd319440a326277a021a0f1cf7324450407a
lava_scheduler_app/urls.py
lava_scheduler_app/urls.py
from django.conf.urls.defaults import url, patterns urlpatterns = patterns( 'lava_scheduler_app.views', url(r'index$', 'index'))
from django.conf.urls.defaults import url, patterns urlpatterns = patterns( 'lava_scheduler_app.views', url(r'$', 'index'))
Make /lava-server/scheduler/ be a valid URL
Make /lava-server/scheduler/ be a valid URL
Python
agpl-3.0
OSSystems/lava-server,Linaro/lava-server,Linaro/lava-server,OSSystems/lava-server,Linaro/lava-server,OSSystems/lava-server,Linaro/lava-server
from django.conf.urls.defaults import url, patterns urlpatterns = patterns( 'lava_scheduler_app.views', url(r'index$', 'index')) Make /lava-server/scheduler/ be a valid URL
from django.conf.urls.defaults import url, patterns urlpatterns = patterns( 'lava_scheduler_app.views', url(r'$', 'index'))
<commit_before>from django.conf.urls.defaults import url, patterns urlpatterns = patterns( 'lava_scheduler_app.views', url(r'index$', 'index')) <commit_msg>Make /lava-server/scheduler/ be a valid URL<commit_after>
from django.conf.urls.defaults import url, patterns urlpatterns = patterns( 'lava_scheduler_app.views', url(r'$', 'index'))
from django.conf.urls.defaults import url, patterns urlpatterns = patterns( 'lava_scheduler_app.views', url(r'index$', 'index')) Make /lava-server/scheduler/ be a valid URLfrom django.conf.urls.defaults import url, patterns urlpatterns = patterns( 'lava_scheduler_app.views', url(r'$', 'index'))
<commit_before>from django.conf.urls.defaults import url, patterns urlpatterns = patterns( 'lava_scheduler_app.views', url(r'index$', 'index')) <commit_msg>Make /lava-server/scheduler/ be a valid URL<commit_after>from django.conf.urls.defaults import url, patterns urlpatterns = patterns( 'lava_scheduler_a...
5444e755e819004b4da6560d5a6caad2d9993945
klustakwik2/scripts.py
klustakwik2/scripts.py
''' Utilities for scripts ''' import sys __all__ = ['parse_args'] def parse_args(num_args, allowed_params, msg, string_args=set()): msg += '\nAllowed arguments and default values:\n' for k, v in allowed_params.iteritems(): msg += '\n %s = %s' % (k, v) if len(sys.argv)<=num_args: print ...
''' Utilities for scripts ''' import sys __all__ = ['parse_args'] def parse_args(num_args, allowed_params, msg, string_args=set()): msg += '\nAllowed arguments and default values:\n' for k, v in allowed_params.iteritems(): msg += '\n %s = %s' % (k, v) if len(sys.argv)<=num_args: print ...
Handle true/false as well as True/False arguments
Handle true/false as well as True/False arguments
Python
bsd-3-clause
kwikteam/klustakwik2,benvermaercke/klustakwik2
''' Utilities for scripts ''' import sys __all__ = ['parse_args'] def parse_args(num_args, allowed_params, msg, string_args=set()): msg += '\nAllowed arguments and default values:\n' for k, v in allowed_params.iteritems(): msg += '\n %s = %s' % (k, v) if len(sys.argv)<=num_args: print ...
''' Utilities for scripts ''' import sys __all__ = ['parse_args'] def parse_args(num_args, allowed_params, msg, string_args=set()): msg += '\nAllowed arguments and default values:\n' for k, v in allowed_params.iteritems(): msg += '\n %s = %s' % (k, v) if len(sys.argv)<=num_args: print ...
<commit_before>''' Utilities for scripts ''' import sys __all__ = ['parse_args'] def parse_args(num_args, allowed_params, msg, string_args=set()): msg += '\nAllowed arguments and default values:\n' for k, v in allowed_params.iteritems(): msg += '\n %s = %s' % (k, v) if len(sys.argv)<=num_args:...
''' Utilities for scripts ''' import sys __all__ = ['parse_args'] def parse_args(num_args, allowed_params, msg, string_args=set()): msg += '\nAllowed arguments and default values:\n' for k, v in allowed_params.iteritems(): msg += '\n %s = %s' % (k, v) if len(sys.argv)<=num_args: print ...
''' Utilities for scripts ''' import sys __all__ = ['parse_args'] def parse_args(num_args, allowed_params, msg, string_args=set()): msg += '\nAllowed arguments and default values:\n' for k, v in allowed_params.iteritems(): msg += '\n %s = %s' % (k, v) if len(sys.argv)<=num_args: print ...
<commit_before>''' Utilities for scripts ''' import sys __all__ = ['parse_args'] def parse_args(num_args, allowed_params, msg, string_args=set()): msg += '\nAllowed arguments and default values:\n' for k, v in allowed_params.iteritems(): msg += '\n %s = %s' % (k, v) if len(sys.argv)<=num_args:...
cb334d281df315b59f9413a59be1289a7314cb68
src/load_remote_data.py
src/load_remote_data.py
#!/usr/bin/env python import os import requests # local configuration remote_data_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), '..', 'data', 'remote') # URLs at which data can be found csv_url_summary_stats = 'http://dashboard.iatistandard.org/summary_stats.csv' csv_url_humanitarian_stats = 'ht...
#!/usr/bin/env python import os import requests # local configuration remote_data_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), '..', 'data', 'remote') # URLs at which data can be found csv_url_summary_stats = 'http://dashboard.iatistandard.org/summary_stats.csv' csv_url_humanitarian_stats = 'ht...
Set a URL to download the humanitarian CSV from
Set a URL to download the humanitarian CSV from and fix a copypaste error
Python
mit
devinit/grand-bargain-monitoring,devinit/grand-bargain-monitoring,devinit/grand-bargain-monitoring
#!/usr/bin/env python import os import requests # local configuration remote_data_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), '..', 'data', 'remote') # URLs at which data can be found csv_url_summary_stats = 'http://dashboard.iatistandard.org/summary_stats.csv' csv_url_humanitarian_stats = 'ht...
#!/usr/bin/env python import os import requests # local configuration remote_data_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), '..', 'data', 'remote') # URLs at which data can be found csv_url_summary_stats = 'http://dashboard.iatistandard.org/summary_stats.csv' csv_url_humanitarian_stats = 'ht...
<commit_before>#!/usr/bin/env python import os import requests # local configuration remote_data_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), '..', 'data', 'remote') # URLs at which data can be found csv_url_summary_stats = 'http://dashboard.iatistandard.org/summary_stats.csv' csv_url_humanitar...
#!/usr/bin/env python import os import requests # local configuration remote_data_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), '..', 'data', 'remote') # URLs at which data can be found csv_url_summary_stats = 'http://dashboard.iatistandard.org/summary_stats.csv' csv_url_humanitarian_stats = 'ht...
#!/usr/bin/env python import os import requests # local configuration remote_data_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), '..', 'data', 'remote') # URLs at which data can be found csv_url_summary_stats = 'http://dashboard.iatistandard.org/summary_stats.csv' csv_url_humanitarian_stats = 'ht...
<commit_before>#!/usr/bin/env python import os import requests # local configuration remote_data_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), '..', 'data', 'remote') # URLs at which data can be found csv_url_summary_stats = 'http://dashboard.iatistandard.org/summary_stats.csv' csv_url_humanitar...
727ec507284776f3eec91b644cd5bb112bdb0af1
july/people/forms.py
july/people/forms.py
from django import forms class EditUserForm(forms.Form): about_me = forms.CharField(widget=forms.Textarea, required=False) url = forms.CharField(max_length=255, required=False) facebook_url = forms.CharField(max_length=255, required=False) email = forms.EmailField(max_length=255) def __init__(self...
from django import forms class EditUserForm(forms.Form): about_me = forms.CharField(widget=forms.Textarea, required=False) url = forms.CharField(max_length=255, required=False) facebook_url = forms.CharField(max_length=255, required=False) email = forms.EmailField(max_length=255) def __init__(self...
Use getattr for expando props
Use getattr for expando props
Python
mit
julython/julython.org,julython/julython.org,ChimeraCoder/GOctober,julython/julython.org,ChimeraCoder/GOctober,julython/julython.org,ChimeraCoder/GOctober
from django import forms class EditUserForm(forms.Form): about_me = forms.CharField(widget=forms.Textarea, required=False) url = forms.CharField(max_length=255, required=False) facebook_url = forms.CharField(max_length=255, required=False) email = forms.EmailField(max_length=255) def __init__(self...
from django import forms class EditUserForm(forms.Form): about_me = forms.CharField(widget=forms.Textarea, required=False) url = forms.CharField(max_length=255, required=False) facebook_url = forms.CharField(max_length=255, required=False) email = forms.EmailField(max_length=255) def __init__(self...
<commit_before>from django import forms class EditUserForm(forms.Form): about_me = forms.CharField(widget=forms.Textarea, required=False) url = forms.CharField(max_length=255, required=False) facebook_url = forms.CharField(max_length=255, required=False) email = forms.EmailField(max_length=255) de...
from django import forms class EditUserForm(forms.Form): about_me = forms.CharField(widget=forms.Textarea, required=False) url = forms.CharField(max_length=255, required=False) facebook_url = forms.CharField(max_length=255, required=False) email = forms.EmailField(max_length=255) def __init__(self...
from django import forms class EditUserForm(forms.Form): about_me = forms.CharField(widget=forms.Textarea, required=False) url = forms.CharField(max_length=255, required=False) facebook_url = forms.CharField(max_length=255, required=False) email = forms.EmailField(max_length=255) def __init__(self...
<commit_before>from django import forms class EditUserForm(forms.Form): about_me = forms.CharField(widget=forms.Textarea, required=False) url = forms.CharField(max_length=255, required=False) facebook_url = forms.CharField(max_length=255, required=False) email = forms.EmailField(max_length=255) de...
d863aaf76d7e1e794f508aeb0f5383f67f463e68
ogn/collect/fetchddb.py
ogn/collect/fetchddb.py
from __future__ import absolute_import from celery.utils.log import get_task_logger from ogn.collect.celery import app from ogn.model import Flarm from ogn.utils import get_ddb logger = get_task_logger(__name__) @app.task def update_ddb_data(): logger.info("Update ddb data.") app.session.query(Flarm).dele...
from __future__ import absolute_import from celery.utils.log import get_task_logger from ogn.collect.celery import app from ogn.model import Flarm from ogn.utils import get_ddb logger = get_task_logger(__name__) @app.task def update_ddb_data(): logger.info("Update ddb data.") app.session.query(Flarm).dele...
Reimplement ddb import from file as celery task.
Reimplement ddb import from file as celery task.
Python
agpl-3.0
glidernet/ogn-python,glidernet/ogn-python,Meisterschueler/ogn-python,kerel-fs/ogn-python,glidernet/ogn-python,glidernet/ogn-python,Meisterschueler/ogn-python,Meisterschueler/ogn-python,Meisterschueler/ogn-python
from __future__ import absolute_import from celery.utils.log import get_task_logger from ogn.collect.celery import app from ogn.model import Flarm from ogn.utils import get_ddb logger = get_task_logger(__name__) @app.task def update_ddb_data(): logger.info("Update ddb data.") app.session.query(Flarm).dele...
from __future__ import absolute_import from celery.utils.log import get_task_logger from ogn.collect.celery import app from ogn.model import Flarm from ogn.utils import get_ddb logger = get_task_logger(__name__) @app.task def update_ddb_data(): logger.info("Update ddb data.") app.session.query(Flarm).dele...
<commit_before>from __future__ import absolute_import from celery.utils.log import get_task_logger from ogn.collect.celery import app from ogn.model import Flarm from ogn.utils import get_ddb logger = get_task_logger(__name__) @app.task def update_ddb_data(): logger.info("Update ddb data.") app.session.qu...
from __future__ import absolute_import from celery.utils.log import get_task_logger from ogn.collect.celery import app from ogn.model import Flarm from ogn.utils import get_ddb logger = get_task_logger(__name__) @app.task def update_ddb_data(): logger.info("Update ddb data.") app.session.query(Flarm).dele...
from __future__ import absolute_import from celery.utils.log import get_task_logger from ogn.collect.celery import app from ogn.model import Flarm from ogn.utils import get_ddb logger = get_task_logger(__name__) @app.task def update_ddb_data(): logger.info("Update ddb data.") app.session.query(Flarm).dele...
<commit_before>from __future__ import absolute_import from celery.utils.log import get_task_logger from ogn.collect.celery import app from ogn.model import Flarm from ogn.utils import get_ddb logger = get_task_logger(__name__) @app.task def update_ddb_data(): logger.info("Update ddb data.") app.session.qu...
2267f31ba91ea649c54a51ab3e8f3babbe72f44e
openliveq/collection.py
openliveq/collection.py
from collections import defaultdict class Collection(object): DOC_FROM = ["question_body", "best_answer_body"] def __init__(self): ''' Compute the following statistics df: document frequency cf: collection frequency dn: total number of documents cn: total number...
from collections import defaultdict class Collection(object): DOC_FROM = ["question_body", "best_answer_body"] def __init__(self): ''' Compute the following statistics df: document frequency cf: collection frequency dn: total number of documents cn: total number...
Add avddlen property to Collection
Add avddlen property to Collection
Python
mit
mpkato/openliveq
from collections import defaultdict class Collection(object): DOC_FROM = ["question_body", "best_answer_body"] def __init__(self): ''' Compute the following statistics df: document frequency cf: collection frequency dn: total number of documents cn: total number...
from collections import defaultdict class Collection(object): DOC_FROM = ["question_body", "best_answer_body"] def __init__(self): ''' Compute the following statistics df: document frequency cf: collection frequency dn: total number of documents cn: total number...
<commit_before>from collections import defaultdict class Collection(object): DOC_FROM = ["question_body", "best_answer_body"] def __init__(self): ''' Compute the following statistics df: document frequency cf: collection frequency dn: total number of documents c...
from collections import defaultdict class Collection(object): DOC_FROM = ["question_body", "best_answer_body"] def __init__(self): ''' Compute the following statistics df: document frequency cf: collection frequency dn: total number of documents cn: total number...
from collections import defaultdict class Collection(object): DOC_FROM = ["question_body", "best_answer_body"] def __init__(self): ''' Compute the following statistics df: document frequency cf: collection frequency dn: total number of documents cn: total number...
<commit_before>from collections import defaultdict class Collection(object): DOC_FROM = ["question_body", "best_answer_body"] def __init__(self): ''' Compute the following statistics df: document frequency cf: collection frequency dn: total number of documents c...
072eeaf0efbc299efac0be6fc7499f2d48dacd1a
BudgetModelHelper.py
BudgetModelHelper.py
from DataModel import DataModel from DataModelAdapter import DataModelAdapter from Ledger import Ledger import pickle DATA_FILE='ledger.pickle' def get_ledger() : result = None try: with open(DATA_FILE, 'rb') as infile: result = pickle.load(infile) except FileNotFoundError: re...
from DataModel import DataModel from DataModelAdapter import DataModelAdapter from Ledger import Ledger import pickle DATA_FILE='ledger.pickle' def get_ledger() : result = None try: with open(DATA_FILE, 'rb') as infile: result = pickle.load(infile) except FileNotFoundError: pa...
Handle EOFError on pickle load
Handle EOFError on pickle load
Python
apache-2.0
mattdeckard/wherewithal
from DataModel import DataModel from DataModelAdapter import DataModelAdapter from Ledger import Ledger import pickle DATA_FILE='ledger.pickle' def get_ledger() : result = None try: with open(DATA_FILE, 'rb') as infile: result = pickle.load(infile) except FileNotFoundError: re...
from DataModel import DataModel from DataModelAdapter import DataModelAdapter from Ledger import Ledger import pickle DATA_FILE='ledger.pickle' def get_ledger() : result = None try: with open(DATA_FILE, 'rb') as infile: result = pickle.load(infile) except FileNotFoundError: pa...
<commit_before>from DataModel import DataModel from DataModelAdapter import DataModelAdapter from Ledger import Ledger import pickle DATA_FILE='ledger.pickle' def get_ledger() : result = None try: with open(DATA_FILE, 'rb') as infile: result = pickle.load(infile) except FileNotFoundEr...
from DataModel import DataModel from DataModelAdapter import DataModelAdapter from Ledger import Ledger import pickle DATA_FILE='ledger.pickle' def get_ledger() : result = None try: with open(DATA_FILE, 'rb') as infile: result = pickle.load(infile) except FileNotFoundError: pa...
from DataModel import DataModel from DataModelAdapter import DataModelAdapter from Ledger import Ledger import pickle DATA_FILE='ledger.pickle' def get_ledger() : result = None try: with open(DATA_FILE, 'rb') as infile: result = pickle.load(infile) except FileNotFoundError: re...
<commit_before>from DataModel import DataModel from DataModelAdapter import DataModelAdapter from Ledger import Ledger import pickle DATA_FILE='ledger.pickle' def get_ledger() : result = None try: with open(DATA_FILE, 'rb') as infile: result = pickle.load(infile) except FileNotFoundEr...
631a8ad370ee12b336a4f53e111267bf97151f40
satchmo/apps/satchmo_store/shop/management/commands/satchmo_copy_static.py
satchmo/apps/satchmo_store/shop/management/commands/satchmo_copy_static.py
from django.core.management.base import NoArgsCommand import os import shutil class Command(NoArgsCommand): help = "Copy the satchmo static directory and files to the local project." def handle_noargs(self, **options): import satchmo_store static_src = os.path.join(satchmo_store.__path__[0],'s...
from django.core.management.base import NoArgsCommand import os import shutil class Command(NoArgsCommand): help = "Copy the satchmo static directory and files to the local project." def handle_noargs(self, **options): import satchmo_store static_src = os.path.join(satchmo_store.__path__[0],'....
Change the static copy command so it works with new layout.
Change the static copy command so it works with new layout.
Python
bsd-3-clause
grengojbo/satchmo,grengojbo/satchmo
from django.core.management.base import NoArgsCommand import os import shutil class Command(NoArgsCommand): help = "Copy the satchmo static directory and files to the local project." def handle_noargs(self, **options): import satchmo_store static_src = os.path.join(satchmo_store.__path__[0],'s...
from django.core.management.base import NoArgsCommand import os import shutil class Command(NoArgsCommand): help = "Copy the satchmo static directory and files to the local project." def handle_noargs(self, **options): import satchmo_store static_src = os.path.join(satchmo_store.__path__[0],'....
<commit_before>from django.core.management.base import NoArgsCommand import os import shutil class Command(NoArgsCommand): help = "Copy the satchmo static directory and files to the local project." def handle_noargs(self, **options): import satchmo_store static_src = os.path.join(satchmo_store...
from django.core.management.base import NoArgsCommand import os import shutil class Command(NoArgsCommand): help = "Copy the satchmo static directory and files to the local project." def handle_noargs(self, **options): import satchmo_store static_src = os.path.join(satchmo_store.__path__[0],'....
from django.core.management.base import NoArgsCommand import os import shutil class Command(NoArgsCommand): help = "Copy the satchmo static directory and files to the local project." def handle_noargs(self, **options): import satchmo_store static_src = os.path.join(satchmo_store.__path__[0],'s...
<commit_before>from django.core.management.base import NoArgsCommand import os import shutil class Command(NoArgsCommand): help = "Copy the satchmo static directory and files to the local project." def handle_noargs(self, **options): import satchmo_store static_src = os.path.join(satchmo_store...
73f75efcfe69210d8e22ff55c19b02b7408b9671
pseudorandom.py
pseudorandom.py
from flask import Flask, render_template from names import get_full_name app = Flask(__name__) @app.route("/") def index(): return render_template('index.html', name=get_full_name()) if __name__ == "__main__": app.run()
import os from flask import Flask, render_template from names import get_full_name app = Flask(__name__) @app.route("/") def index(): return render_template('index.html', name=get_full_name()) if __name__ == "__main__": port = int(os.environ.get('PORT', 5000)) app.run(host='0.0.0.0', port=port)
Use environment variable PORT for flask port
Use environment variable PORT for flask port
Python
mit
treyhunner/pseudorandom.name,treyhunner/pseudorandom.name
from flask import Flask, render_template from names import get_full_name app = Flask(__name__) @app.route("/") def index(): return render_template('index.html', name=get_full_name()) if __name__ == "__main__": app.run() Use environment variable PORT for flask port
import os from flask import Flask, render_template from names import get_full_name app = Flask(__name__) @app.route("/") def index(): return render_template('index.html', name=get_full_name()) if __name__ == "__main__": port = int(os.environ.get('PORT', 5000)) app.run(host='0.0.0.0', port=port)
<commit_before>from flask import Flask, render_template from names import get_full_name app = Flask(__name__) @app.route("/") def index(): return render_template('index.html', name=get_full_name()) if __name__ == "__main__": app.run() <commit_msg>Use environment variable PORT for flask port<commit_after>
import os from flask import Flask, render_template from names import get_full_name app = Flask(__name__) @app.route("/") def index(): return render_template('index.html', name=get_full_name()) if __name__ == "__main__": port = int(os.environ.get('PORT', 5000)) app.run(host='0.0.0.0', port=port)
from flask import Flask, render_template from names import get_full_name app = Flask(__name__) @app.route("/") def index(): return render_template('index.html', name=get_full_name()) if __name__ == "__main__": app.run() Use environment variable PORT for flask portimport os from flask import Flask, render_...
<commit_before>from flask import Flask, render_template from names import get_full_name app = Flask(__name__) @app.route("/") def index(): return render_template('index.html', name=get_full_name()) if __name__ == "__main__": app.run() <commit_msg>Use environment variable PORT for flask port<commit_after>i...
e77c1f15f9a3b1d6b6224f4621450707a5059079
yunity/resources/tests/integration/__init__.py
yunity/resources/tests/integration/__init__.py
""" This package contains data files for our API integration tests. In order to add a new integration test, create a new package with the following contents: ``` yunity/resources/tests/integration/test_name__tested_functionality |-- __init__.py |-- initial_data.py # defines the calls to setup the database wit...
Add some documentation to integration tests
Add some documentation to integration tests
Python
agpl-3.0
yunity/foodsaving-backend,yunity/yunity-core,yunity/foodsaving-backend,yunity/foodsaving-backend,yunity/yunity-core
Add some documentation to integration tests
""" This package contains data files for our API integration tests. In order to add a new integration test, create a new package with the following contents: ``` yunity/resources/tests/integration/test_name__tested_functionality |-- __init__.py |-- initial_data.py # defines the calls to setup the database wit...
<commit_before><commit_msg>Add some documentation to integration tests<commit_after>
""" This package contains data files for our API integration tests. In order to add a new integration test, create a new package with the following contents: ``` yunity/resources/tests/integration/test_name__tested_functionality |-- __init__.py |-- initial_data.py # defines the calls to setup the database wit...
Add some documentation to integration tests""" This package contains data files for our API integration tests. In order to add a new integration test, create a new package with the following contents: ``` yunity/resources/tests/integration/test_name__tested_functionality |-- __init__.py |-- initial_data.py # ...
<commit_before><commit_msg>Add some documentation to integration tests<commit_after>""" This package contains data files for our API integration tests. In order to add a new integration test, create a new package with the following contents: ``` yunity/resources/tests/integration/test_name__tested_functionality |-...
987b9c6d8a3cea616c3fd4f8f3985944171956ab
px/px_commandline_test.py
px/px_commandline_test.py
import px_commandline def test_get_command_python(): assert px_commandline.get_command("python") == "python" assert px_commandline.get_command("/apa/Python") == "Python" assert px_commandline.get_command("python --help") == "python" # These are inspired by Python 2.7.11 --help output assert px_co...
Add (failing) Python command line parsing tests
Add (failing) Python command line parsing tests
Python
mit
walles/px,walles/px
Add (failing) Python command line parsing tests
import px_commandline def test_get_command_python(): assert px_commandline.get_command("python") == "python" assert px_commandline.get_command("/apa/Python") == "Python" assert px_commandline.get_command("python --help") == "python" # These are inspired by Python 2.7.11 --help output assert px_co...
<commit_before><commit_msg>Add (failing) Python command line parsing tests<commit_after>
import px_commandline def test_get_command_python(): assert px_commandline.get_command("python") == "python" assert px_commandline.get_command("/apa/Python") == "Python" assert px_commandline.get_command("python --help") == "python" # These are inspired by Python 2.7.11 --help output assert px_co...
Add (failing) Python command line parsing testsimport px_commandline def test_get_command_python(): assert px_commandline.get_command("python") == "python" assert px_commandline.get_command("/apa/Python") == "Python" assert px_commandline.get_command("python --help") == "python" # These are inspired ...
<commit_before><commit_msg>Add (failing) Python command line parsing tests<commit_after>import px_commandline def test_get_command_python(): assert px_commandline.get_command("python") == "python" assert px_commandline.get_command("/apa/Python") == "Python" assert px_commandline.get_command("python --help...
41b1d36a9d5fcb0dd2f6da53a7a0d4604b21a0eb
tests/query_test/test_scan_range_lengths.py
tests/query_test/test_scan_range_lengths.py
#!/usr/bin/env python # Copyright (c) 2012 Cloudera, Inc. All rights reserved. # Validates running with different scan range length values # import pytest from copy import copy from tests.common.test_vector import TestDimension from tests.common.impala_test_suite import ImpalaTestSuite, ALL_NODES_ONLY # We use very sm...
#!/usr/bin/env python # Copyright (c) 2012 Cloudera, Inc. All rights reserved. # Validates running with different scan range length values # import pytest from copy import copy from tests.common.test_vector import TestDimension from tests.common.impala_test_suite import ImpalaTestSuite, ALL_NODES_ONLY # We use very sm...
Fix IMPALA-122: Lzo scanner with small scan ranges.
Fix IMPALA-122: Lzo scanner with small scan ranges. Change-Id: I5226fd1a1aa368f5b291b78ad371363057ef574e Reviewed-on: http://gerrit.ent.cloudera.com:8080/140 Reviewed-by: Skye Wanderman-Milne <6d4b168ab637b0a20cc9dbf96abb2537f372f946@cloudera.com> Reviewed-by: Nong Li <99a5e5f8f5911755b88e0b536d46aafa102bed41@cloudera...
Python
apache-2.0
michaelhkw/incubator-impala,cloudera/Impala,michaelhkw/incubator-impala,michaelhkw/incubator-impala,michaelhkw/incubator-impala,cloudera/Impala,cloudera/Impala,cloudera/Impala,michaelhkw/incubator-impala,michaelhkw/incubator-impala,cloudera/Impala,cloudera/Impala,michaelhkw/incubator-impala,cloudera/Impala
#!/usr/bin/env python # Copyright (c) 2012 Cloudera, Inc. All rights reserved. # Validates running with different scan range length values # import pytest from copy import copy from tests.common.test_vector import TestDimension from tests.common.impala_test_suite import ImpalaTestSuite, ALL_NODES_ONLY # We use very sm...
#!/usr/bin/env python # Copyright (c) 2012 Cloudera, Inc. All rights reserved. # Validates running with different scan range length values # import pytest from copy import copy from tests.common.test_vector import TestDimension from tests.common.impala_test_suite import ImpalaTestSuite, ALL_NODES_ONLY # We use very sm...
<commit_before>#!/usr/bin/env python # Copyright (c) 2012 Cloudera, Inc. All rights reserved. # Validates running with different scan range length values # import pytest from copy import copy from tests.common.test_vector import TestDimension from tests.common.impala_test_suite import ImpalaTestSuite, ALL_NODES_ONLY #...
#!/usr/bin/env python # Copyright (c) 2012 Cloudera, Inc. All rights reserved. # Validates running with different scan range length values # import pytest from copy import copy from tests.common.test_vector import TestDimension from tests.common.impala_test_suite import ImpalaTestSuite, ALL_NODES_ONLY # We use very sm...
#!/usr/bin/env python # Copyright (c) 2012 Cloudera, Inc. All rights reserved. # Validates running with different scan range length values # import pytest from copy import copy from tests.common.test_vector import TestDimension from tests.common.impala_test_suite import ImpalaTestSuite, ALL_NODES_ONLY # We use very sm...
<commit_before>#!/usr/bin/env python # Copyright (c) 2012 Cloudera, Inc. All rights reserved. # Validates running with different scan range length values # import pytest from copy import copy from tests.common.test_vector import TestDimension from tests.common.impala_test_suite import ImpalaTestSuite, ALL_NODES_ONLY #...
d1e56cfcd11bcd509d8fa3954c00e06a84bddd87
synapse/storage/engines/__init__.py
synapse/storage/engines/__init__.py
# -*- coding: utf-8 -*- # Copyright 2015, 2016 OpenMarket Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
# -*- coding: utf-8 -*- # Copyright 2015, 2016 OpenMarket Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
Fix pep8 error on psycopg2cffi hack
Fix pep8 error on psycopg2cffi hack
Python
apache-2.0
matrix-org/synapse,matrix-org/synapse,matrix-org/synapse,matrix-org/synapse,matrix-org/synapse,matrix-org/synapse
# -*- coding: utf-8 -*- # Copyright 2015, 2016 OpenMarket Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
# -*- coding: utf-8 -*- # Copyright 2015, 2016 OpenMarket Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
<commit_before># -*- coding: utf-8 -*- # Copyright 2015, 2016 OpenMarket Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
# -*- coding: utf-8 -*- # Copyright 2015, 2016 OpenMarket Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
# -*- coding: utf-8 -*- # Copyright 2015, 2016 OpenMarket Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
<commit_before># -*- coding: utf-8 -*- # Copyright 2015, 2016 OpenMarket Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
bc9636bbc251fd200b50251489f37792d660c69d
test/data/static_analysis_output.py
test/data/static_analysis_output.py
import unittest class TestSimpleClass(unittest.TestCase): def test_simple_method(self): assert False # TODO: implement your test here def test_simple_method_with_one_arg(self): assert False # TODO: implement your test here class TestClassWithInit(unittest.TestCase): def test_object_initia...
import unittest class TestSimpleClass(unittest.TestCase): def test_simple_method(self): assert False # TODO: implement your test here def test_method_with_one_arg(self): assert False # TODO: implement your test here class TestClassWithInit(unittest.TestCase): def test_object_initializatio...
Fix for the static analysis acceptance test.
Fix for the static analysis acceptance test.
Python
mit
mkwiatkowski/pythoscope,mkwiatkowski/pythoscope
import unittest class TestSimpleClass(unittest.TestCase): def test_simple_method(self): assert False # TODO: implement your test here def test_simple_method_with_one_arg(self): assert False # TODO: implement your test here class TestClassWithInit(unittest.TestCase): def test_object_initia...
import unittest class TestSimpleClass(unittest.TestCase): def test_simple_method(self): assert False # TODO: implement your test here def test_method_with_one_arg(self): assert False # TODO: implement your test here class TestClassWithInit(unittest.TestCase): def test_object_initializatio...
<commit_before>import unittest class TestSimpleClass(unittest.TestCase): def test_simple_method(self): assert False # TODO: implement your test here def test_simple_method_with_one_arg(self): assert False # TODO: implement your test here class TestClassWithInit(unittest.TestCase): def tes...
import unittest class TestSimpleClass(unittest.TestCase): def test_simple_method(self): assert False # TODO: implement your test here def test_method_with_one_arg(self): assert False # TODO: implement your test here class TestClassWithInit(unittest.TestCase): def test_object_initializatio...
import unittest class TestSimpleClass(unittest.TestCase): def test_simple_method(self): assert False # TODO: implement your test here def test_simple_method_with_one_arg(self): assert False # TODO: implement your test here class TestClassWithInit(unittest.TestCase): def test_object_initia...
<commit_before>import unittest class TestSimpleClass(unittest.TestCase): def test_simple_method(self): assert False # TODO: implement your test here def test_simple_method_with_one_arg(self): assert False # TODO: implement your test here class TestClassWithInit(unittest.TestCase): def tes...
c6858c13f479e97193dcf63694694f69a4e18112
docker/settings.py
docker/settings.py
from .base_settings import * import os INSTALLED_APPS += [ 'data_aggregator.apps.DataAggregatorConfig', 'webpack_loader', ] if os.getenv('ENV') == 'localdev': DEBUG = True DATA_AGGREGATOR_ACCESS_GROUP = 'u_test_group' DATA_AGGREGATOR_THREADING_ENABLED = False RESTCLIENTS_DAO_CACHE_CLASS = None...
from .base_settings import * import os INSTALLED_APPS += [ 'data_aggregator.apps.DataAggregatorConfig', 'webpack_loader', ] if os.getenv('ENV') == 'localdev': DEBUG = True DATA_AGGREGATOR_ACCESS_GROUP = 'u_test_group' DATA_AGGREGATOR_THREADING_ENABLED = False RESTCLIENTS_DAO_CACHE_CLASS = None...
Increase rest client connection pool size to 50
Increase rest client connection pool size to 50
Python
apache-2.0
uw-it-aca/canvas-analytics,uw-it-aca/canvas-analytics,uw-it-aca/canvas-analytics,uw-it-aca/canvas-analytics
from .base_settings import * import os INSTALLED_APPS += [ 'data_aggregator.apps.DataAggregatorConfig', 'webpack_loader', ] if os.getenv('ENV') == 'localdev': DEBUG = True DATA_AGGREGATOR_ACCESS_GROUP = 'u_test_group' DATA_AGGREGATOR_THREADING_ENABLED = False RESTCLIENTS_DAO_CACHE_CLASS = None...
from .base_settings import * import os INSTALLED_APPS += [ 'data_aggregator.apps.DataAggregatorConfig', 'webpack_loader', ] if os.getenv('ENV') == 'localdev': DEBUG = True DATA_AGGREGATOR_ACCESS_GROUP = 'u_test_group' DATA_AGGREGATOR_THREADING_ENABLED = False RESTCLIENTS_DAO_CACHE_CLASS = None...
<commit_before>from .base_settings import * import os INSTALLED_APPS += [ 'data_aggregator.apps.DataAggregatorConfig', 'webpack_loader', ] if os.getenv('ENV') == 'localdev': DEBUG = True DATA_AGGREGATOR_ACCESS_GROUP = 'u_test_group' DATA_AGGREGATOR_THREADING_ENABLED = False RESTCLIENTS_DAO_CAC...
from .base_settings import * import os INSTALLED_APPS += [ 'data_aggregator.apps.DataAggregatorConfig', 'webpack_loader', ] if os.getenv('ENV') == 'localdev': DEBUG = True DATA_AGGREGATOR_ACCESS_GROUP = 'u_test_group' DATA_AGGREGATOR_THREADING_ENABLED = False RESTCLIENTS_DAO_CACHE_CLASS = None...
from .base_settings import * import os INSTALLED_APPS += [ 'data_aggregator.apps.DataAggregatorConfig', 'webpack_loader', ] if os.getenv('ENV') == 'localdev': DEBUG = True DATA_AGGREGATOR_ACCESS_GROUP = 'u_test_group' DATA_AGGREGATOR_THREADING_ENABLED = False RESTCLIENTS_DAO_CACHE_CLASS = None...
<commit_before>from .base_settings import * import os INSTALLED_APPS += [ 'data_aggregator.apps.DataAggregatorConfig', 'webpack_loader', ] if os.getenv('ENV') == 'localdev': DEBUG = True DATA_AGGREGATOR_ACCESS_GROUP = 'u_test_group' DATA_AGGREGATOR_THREADING_ENABLED = False RESTCLIENTS_DAO_CAC...
d8cc0fdaea848ed5d626ba6ba4292fd3cb906da3
project7/TrackParser.py
project7/TrackParser.py
""" Created by Max 12/2/2017 """ import pprint import numpy as np class TrackParser: @staticmethod def parse_track(path_to_track_file: str) -> np.ndarray: track = None with open(path_to_track_file, 'r') as track_file: lines = track_file.readlines() dimensions_str = li...
""" Created by Max 12/2/2017 """ import pprint import numpy as np class TrackParser: @staticmethod def parse_track(path_to_track_file: str) -> np.ndarray: track = None with open(path_to_track_file, 'r') as track_file: lines = track_file.readlines() dimensions_str = li...
Add comment to clarify coordinate order
Add comment to clarify coordinate order coordinates are (y,x) in the track.
Python
apache-2.0
MaxRobinson/CS449,MaxRobinson/CS449,MaxRobinson/CS449
""" Created by Max 12/2/2017 """ import pprint import numpy as np class TrackParser: @staticmethod def parse_track(path_to_track_file: str) -> np.ndarray: track = None with open(path_to_track_file, 'r') as track_file: lines = track_file.readlines() dimensions_str = li...
""" Created by Max 12/2/2017 """ import pprint import numpy as np class TrackParser: @staticmethod def parse_track(path_to_track_file: str) -> np.ndarray: track = None with open(path_to_track_file, 'r') as track_file: lines = track_file.readlines() dimensions_str = li...
<commit_before>""" Created by Max 12/2/2017 """ import pprint import numpy as np class TrackParser: @staticmethod def parse_track(path_to_track_file: str) -> np.ndarray: track = None with open(path_to_track_file, 'r') as track_file: lines = track_file.readlines() dime...
""" Created by Max 12/2/2017 """ import pprint import numpy as np class TrackParser: @staticmethod def parse_track(path_to_track_file: str) -> np.ndarray: track = None with open(path_to_track_file, 'r') as track_file: lines = track_file.readlines() dimensions_str = li...
""" Created by Max 12/2/2017 """ import pprint import numpy as np class TrackParser: @staticmethod def parse_track(path_to_track_file: str) -> np.ndarray: track = None with open(path_to_track_file, 'r') as track_file: lines = track_file.readlines() dimensions_str = li...
<commit_before>""" Created by Max 12/2/2017 """ import pprint import numpy as np class TrackParser: @staticmethod def parse_track(path_to_track_file: str) -> np.ndarray: track = None with open(path_to_track_file, 'r') as track_file: lines = track_file.readlines() dime...
2806254823ae46e4a8fd7204cda58be6eea18743
tests/10_test_elbaas.py
tests/10_test_elbaas.py
import otc class TestElbClient: """ELB client tests""" def setUp(self): """Setup test cloud""" self.cloud = otc.OtcCloud(cloud='test') def tearDown(self): pass def test_elbclient_user_agent(self): """Check user agent""" assert self.cloud.elbclient.client.USER_...
import otc class TestElbClient: """ELB client tests""" def setUp(self): """Setup test cloud""" self.cloud = otc.OtcCloud(cloud='test') def tearDown(self): pass def test_elbclient_user_agent(self): """Check user agent""" assert self.cloud.elbclient.client.USER_...
Check the ELB service url
Check the ELB service url
Python
apache-2.0
zamiam69/otc
import otc class TestElbClient: """ELB client tests""" def setUp(self): """Setup test cloud""" self.cloud = otc.OtcCloud(cloud='test') def tearDown(self): pass def test_elbclient_user_agent(self): """Check user agent""" assert self.cloud.elbclient.client.USER_...
import otc class TestElbClient: """ELB client tests""" def setUp(self): """Setup test cloud""" self.cloud = otc.OtcCloud(cloud='test') def tearDown(self): pass def test_elbclient_user_agent(self): """Check user agent""" assert self.cloud.elbclient.client.USER_...
<commit_before>import otc class TestElbClient: """ELB client tests""" def setUp(self): """Setup test cloud""" self.cloud = otc.OtcCloud(cloud='test') def tearDown(self): pass def test_elbclient_user_agent(self): """Check user agent""" assert self.cloud.elbclie...
import otc class TestElbClient: """ELB client tests""" def setUp(self): """Setup test cloud""" self.cloud = otc.OtcCloud(cloud='test') def tearDown(self): pass def test_elbclient_user_agent(self): """Check user agent""" assert self.cloud.elbclient.client.USER_...
import otc class TestElbClient: """ELB client tests""" def setUp(self): """Setup test cloud""" self.cloud = otc.OtcCloud(cloud='test') def tearDown(self): pass def test_elbclient_user_agent(self): """Check user agent""" assert self.cloud.elbclient.client.USER_...
<commit_before>import otc class TestElbClient: """ELB client tests""" def setUp(self): """Setup test cloud""" self.cloud = otc.OtcCloud(cloud='test') def tearDown(self): pass def test_elbclient_user_agent(self): """Check user agent""" assert self.cloud.elbclie...
99e8ebb9b8107bcb4646218755d81dc6194470bb
permuta/misc/misc.py
permuta/misc/misc.py
import bisect def binary_search(a, x): i = bisect.bisect_left(a, x) return i != len(a) and a[i] == x def flatten(lst): res = [] def dfs(l): try: for i in l: dfs(i) except: res.append(i) dfs(lst) return res def choose(l, k): cur = [...
import bisect def binary_search(a, x): i = bisect.bisect_left(a, x) return i != len(a) and a[i] == x def flatten(lst): res = [] def dfs(l): try: for i in l: dfs(i) except: res.append(l) dfs(lst) return res def choose(l, k): cur = [...
Make flatten more portable again
Make flatten more portable again
Python
bsd-3-clause
PermutaTriangle/Permuta
import bisect def binary_search(a, x): i = bisect.bisect_left(a, x) return i != len(a) and a[i] == x def flatten(lst): res = [] def dfs(l): try: for i in l: dfs(i) except: res.append(i) dfs(lst) return res def choose(l, k): cur = [...
import bisect def binary_search(a, x): i = bisect.bisect_left(a, x) return i != len(a) and a[i] == x def flatten(lst): res = [] def dfs(l): try: for i in l: dfs(i) except: res.append(l) dfs(lst) return res def choose(l, k): cur = [...
<commit_before> import bisect def binary_search(a, x): i = bisect.bisect_left(a, x) return i != len(a) and a[i] == x def flatten(lst): res = [] def dfs(l): try: for i in l: dfs(i) except: res.append(i) dfs(lst) return res def choose(l, ...
import bisect def binary_search(a, x): i = bisect.bisect_left(a, x) return i != len(a) and a[i] == x def flatten(lst): res = [] def dfs(l): try: for i in l: dfs(i) except: res.append(l) dfs(lst) return res def choose(l, k): cur = [...
import bisect def binary_search(a, x): i = bisect.bisect_left(a, x) return i != len(a) and a[i] == x def flatten(lst): res = [] def dfs(l): try: for i in l: dfs(i) except: res.append(i) dfs(lst) return res def choose(l, k): cur = [...
<commit_before> import bisect def binary_search(a, x): i = bisect.bisect_left(a, x) return i != len(a) and a[i] == x def flatten(lst): res = [] def dfs(l): try: for i in l: dfs(i) except: res.append(i) dfs(lst) return res def choose(l, ...
5ec1ba120642686b87cec0ad2ccc2c1428c4a553
samples/config.default.py
samples/config.default.py
#!/usr/bin/env python # -*- coding: utf-8 -*- credentials = { 'verify-email.org': { 'username': 'YOURUSERNAME', 'password': 'YOURPASSWORD', } 'emailhippo.com': { 'api_url': 'https://domain.com/api/v2', 'api_key': 'YOURAPIKEY', } }
#!/usr/bin/env python # -*- coding: utf-8 -*- credentials = { 'verify-email.org': { 'username': 'YOURUSERNAME', 'password': 'YOURPASSWORD', } 'emailhippo.com': { 'api_url': 'https://domain.com/api/v2', 'api_key': 'YOURAPIKEY', }, 'email-validator.net': { 'api...
Add an other provider to config
Add an other provider to config
Python
bsd-3-clause
scls19fr/email-verif
#!/usr/bin/env python # -*- coding: utf-8 -*- credentials = { 'verify-email.org': { 'username': 'YOURUSERNAME', 'password': 'YOURPASSWORD', } 'emailhippo.com': { 'api_url': 'https://domain.com/api/v2', 'api_key': 'YOURAPIKEY', } } Add an other provider to config
#!/usr/bin/env python # -*- coding: utf-8 -*- credentials = { 'verify-email.org': { 'username': 'YOURUSERNAME', 'password': 'YOURPASSWORD', } 'emailhippo.com': { 'api_url': 'https://domain.com/api/v2', 'api_key': 'YOURAPIKEY', }, 'email-validator.net': { 'api...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- credentials = { 'verify-email.org': { 'username': 'YOURUSERNAME', 'password': 'YOURPASSWORD', } 'emailhippo.com': { 'api_url': 'https://domain.com/api/v2', 'api_key': 'YOURAPIKEY', } } <commit_msg>Add an other ...
#!/usr/bin/env python # -*- coding: utf-8 -*- credentials = { 'verify-email.org': { 'username': 'YOURUSERNAME', 'password': 'YOURPASSWORD', } 'emailhippo.com': { 'api_url': 'https://domain.com/api/v2', 'api_key': 'YOURAPIKEY', }, 'email-validator.net': { 'api...
#!/usr/bin/env python # -*- coding: utf-8 -*- credentials = { 'verify-email.org': { 'username': 'YOURUSERNAME', 'password': 'YOURPASSWORD', } 'emailhippo.com': { 'api_url': 'https://domain.com/api/v2', 'api_key': 'YOURAPIKEY', } } Add an other provider to config#!/usr/bi...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- credentials = { 'verify-email.org': { 'username': 'YOURUSERNAME', 'password': 'YOURPASSWORD', } 'emailhippo.com': { 'api_url': 'https://domain.com/api/v2', 'api_key': 'YOURAPIKEY', } } <commit_msg>Add an other ...
9bc9ec9468459ab49530e6463255cca38aba721c
findaconf/tests/test_site_routes.py
findaconf/tests/test_site_routes.py
# coding: utf-8 from unittest import TestCase from findaconf import app, db from findaconf.tests.config import set_app, unset_app class TestSiteRoutes(TestCase): def setUp(self): self.app = set_app(app, db) def tearDown(self): unset_app(db) # test routes from blueprint/site.py def...
# coding: utf-8 from findaconf import app, db from findaconf.tests.config import set_app, unset_app from unittest import TestCase class TestSiteRoutes(TestCase): def setUp(self): self.app = set_app(app, db) def tearDown(self): unset_app(db) # test routes from blueprint/site.py def ...
Create tests for login page
Create tests for login page
Python
mit
cuducos/findaconf,cuducos/findaconf,koorukuroo/findaconf,cuducos/findaconf,koorukuroo/findaconf,koorukuroo/findaconf
# coding: utf-8 from unittest import TestCase from findaconf import app, db from findaconf.tests.config import set_app, unset_app class TestSiteRoutes(TestCase): def setUp(self): self.app = set_app(app, db) def tearDown(self): unset_app(db) # test routes from blueprint/site.py def...
# coding: utf-8 from findaconf import app, db from findaconf.tests.config import set_app, unset_app from unittest import TestCase class TestSiteRoutes(TestCase): def setUp(self): self.app = set_app(app, db) def tearDown(self): unset_app(db) # test routes from blueprint/site.py def ...
<commit_before># coding: utf-8 from unittest import TestCase from findaconf import app, db from findaconf.tests.config import set_app, unset_app class TestSiteRoutes(TestCase): def setUp(self): self.app = set_app(app, db) def tearDown(self): unset_app(db) # test routes from blueprint/s...
# coding: utf-8 from findaconf import app, db from findaconf.tests.config import set_app, unset_app from unittest import TestCase class TestSiteRoutes(TestCase): def setUp(self): self.app = set_app(app, db) def tearDown(self): unset_app(db) # test routes from blueprint/site.py def ...
# coding: utf-8 from unittest import TestCase from findaconf import app, db from findaconf.tests.config import set_app, unset_app class TestSiteRoutes(TestCase): def setUp(self): self.app = set_app(app, db) def tearDown(self): unset_app(db) # test routes from blueprint/site.py def...
<commit_before># coding: utf-8 from unittest import TestCase from findaconf import app, db from findaconf.tests.config import set_app, unset_app class TestSiteRoutes(TestCase): def setUp(self): self.app = set_app(app, db) def tearDown(self): unset_app(db) # test routes from blueprint/s...
d8d6054a64c07952ff0a60ef5d86d7a5b572d1b4
fireplace/cards/brawl/blingbrawl.py
fireplace/cards/brawl/blingbrawl.py
""" Blingtron's Beauteous Brawl """ from ..utils import * # Cash In class TP_Bling_HP2: activate = Destroy(FRIENDLY_WEAPON) # Blingtron's Blade class TB_BlingBrawl_Blade1e: events = Death(OWNER).on(Summon(CONTROLLER, RandomWeapon())) # Blingtron's Blade HERO class TB_BlingBrawl_Blade2: events = Summon(CONTROLL...
""" Blingtron's Beauteous Brawl """ from ..utils import * # Cash In class TP_Bling_HP2: activate = Destroy(FRIENDLY_WEAPON) # Blingtron's Blade class TB_BlingBrawl_Blade1e: events = Death(OWNER).on(Summon(CONTROLLER, RandomWeapon())) # Blingtron's Blade HERO class TB_BlingBrawl_Blade2: events = Summon(CONTROLL...
Implement Sharpen (unused Blingtron Brawl Hero Power)
Implement Sharpen (unused Blingtron Brawl Hero Power)
Python
agpl-3.0
Ragowit/fireplace,Ragowit/fireplace,smallnamespace/fireplace,NightKev/fireplace,smallnamespace/fireplace,beheh/fireplace,jleclanche/fireplace
""" Blingtron's Beauteous Brawl """ from ..utils import * # Cash In class TP_Bling_HP2: activate = Destroy(FRIENDLY_WEAPON) # Blingtron's Blade class TB_BlingBrawl_Blade1e: events = Death(OWNER).on(Summon(CONTROLLER, RandomWeapon())) # Blingtron's Blade HERO class TB_BlingBrawl_Blade2: events = Summon(CONTROLL...
""" Blingtron's Beauteous Brawl """ from ..utils import * # Cash In class TP_Bling_HP2: activate = Destroy(FRIENDLY_WEAPON) # Blingtron's Blade class TB_BlingBrawl_Blade1e: events = Death(OWNER).on(Summon(CONTROLLER, RandomWeapon())) # Blingtron's Blade HERO class TB_BlingBrawl_Blade2: events = Summon(CONTROLL...
<commit_before>""" Blingtron's Beauteous Brawl """ from ..utils import * # Cash In class TP_Bling_HP2: activate = Destroy(FRIENDLY_WEAPON) # Blingtron's Blade class TB_BlingBrawl_Blade1e: events = Death(OWNER).on(Summon(CONTROLLER, RandomWeapon())) # Blingtron's Blade HERO class TB_BlingBrawl_Blade2: events = ...
""" Blingtron's Beauteous Brawl """ from ..utils import * # Cash In class TP_Bling_HP2: activate = Destroy(FRIENDLY_WEAPON) # Blingtron's Blade class TB_BlingBrawl_Blade1e: events = Death(OWNER).on(Summon(CONTROLLER, RandomWeapon())) # Blingtron's Blade HERO class TB_BlingBrawl_Blade2: events = Summon(CONTROLL...
""" Blingtron's Beauteous Brawl """ from ..utils import * # Cash In class TP_Bling_HP2: activate = Destroy(FRIENDLY_WEAPON) # Blingtron's Blade class TB_BlingBrawl_Blade1e: events = Death(OWNER).on(Summon(CONTROLLER, RandomWeapon())) # Blingtron's Blade HERO class TB_BlingBrawl_Blade2: events = Summon(CONTROLL...
<commit_before>""" Blingtron's Beauteous Brawl """ from ..utils import * # Cash In class TP_Bling_HP2: activate = Destroy(FRIENDLY_WEAPON) # Blingtron's Blade class TB_BlingBrawl_Blade1e: events = Death(OWNER).on(Summon(CONTROLLER, RandomWeapon())) # Blingtron's Blade HERO class TB_BlingBrawl_Blade2: events = ...
86273d96e33e3bd686904377ba2b53fbbbcbc38b
tests/test_crossword.py
tests/test_crossword.py
import unittest from crossword import Crossword class CrosswordTestCase(unittest.TestCase): def test_crossword_set_and_get_element(self): c = Crossword(10, 10) c[3, 3] = 'A' self.assertEqual(c[3, 3], 'A')
import unittest from crossword import Crossword class CrosswordTestCase(unittest.TestCase): def test_crossword_set_and_get_element(self): crossword = Crossword(10, 10) crossword[3, 3] = 'A' self.assertEqual(crossword[3, 3], 'A')
Use a better variable name instead of one character
Use a better variable name instead of one character
Python
mit
svisser/crossword
import unittest from crossword import Crossword class CrosswordTestCase(unittest.TestCase): def test_crossword_set_and_get_element(self): c = Crossword(10, 10) c[3, 3] = 'A' self.assertEqual(c[3, 3], 'A') Use a better variable name instead of one character
import unittest from crossword import Crossword class CrosswordTestCase(unittest.TestCase): def test_crossword_set_and_get_element(self): crossword = Crossword(10, 10) crossword[3, 3] = 'A' self.assertEqual(crossword[3, 3], 'A')
<commit_before>import unittest from crossword import Crossword class CrosswordTestCase(unittest.TestCase): def test_crossword_set_and_get_element(self): c = Crossword(10, 10) c[3, 3] = 'A' self.assertEqual(c[3, 3], 'A') <commit_msg>Use a better variable name instead of one character<comm...
import unittest from crossword import Crossword class CrosswordTestCase(unittest.TestCase): def test_crossword_set_and_get_element(self): crossword = Crossword(10, 10) crossword[3, 3] = 'A' self.assertEqual(crossword[3, 3], 'A')
import unittest from crossword import Crossword class CrosswordTestCase(unittest.TestCase): def test_crossword_set_and_get_element(self): c = Crossword(10, 10) c[3, 3] = 'A' self.assertEqual(c[3, 3], 'A') Use a better variable name instead of one characterimport unittest from crossword ...
<commit_before>import unittest from crossword import Crossword class CrosswordTestCase(unittest.TestCase): def test_crossword_set_and_get_element(self): c = Crossword(10, 10) c[3, 3] = 'A' self.assertEqual(c[3, 3], 'A') <commit_msg>Use a better variable name instead of one character<comm...
10c2d1dcc9079a3166642a3d75947472ec377343
simple_scheduler/jobs/curl_job.py
simple_scheduler/jobs/curl_job.py
"""A job to send a HTTP GET periodically.""" import logging import requests from ndscheduler import job logger = logging.getLogger(__name__) class CurlJob(job.JobBase): TIMEOUT = 10 @classmethod def meta_info(cls): return { 'job_class_string': '%s.%s' % (cls.__module__, cls.__name_...
"""A job to send a HTTP GET periodically.""" import logging import requests from ndscheduler import job logger = logging.getLogger(__name__) class CurlJob(job.JobBase): TIMEOUT = 10 @classmethod def meta_info(cls): return { 'job_class_string': '%s.%s' % (cls.__module__, cls.__name_...
Add delete example in CURL job
Add delete example in CURL job
Python
bsd-2-clause
Nextdoor/ndscheduler,Nextdoor/ndscheduler,Nextdoor/ndscheduler,Nextdoor/ndscheduler
"""A job to send a HTTP GET periodically.""" import logging import requests from ndscheduler import job logger = logging.getLogger(__name__) class CurlJob(job.JobBase): TIMEOUT = 10 @classmethod def meta_info(cls): return { 'job_class_string': '%s.%s' % (cls.__module__, cls.__name_...
"""A job to send a HTTP GET periodically.""" import logging import requests from ndscheduler import job logger = logging.getLogger(__name__) class CurlJob(job.JobBase): TIMEOUT = 10 @classmethod def meta_info(cls): return { 'job_class_string': '%s.%s' % (cls.__module__, cls.__name_...
<commit_before>"""A job to send a HTTP GET periodically.""" import logging import requests from ndscheduler import job logger = logging.getLogger(__name__) class CurlJob(job.JobBase): TIMEOUT = 10 @classmethod def meta_info(cls): return { 'job_class_string': '%s.%s' % (cls.__module...
"""A job to send a HTTP GET periodically.""" import logging import requests from ndscheduler import job logger = logging.getLogger(__name__) class CurlJob(job.JobBase): TIMEOUT = 10 @classmethod def meta_info(cls): return { 'job_class_string': '%s.%s' % (cls.__module__, cls.__name_...
"""A job to send a HTTP GET periodically.""" import logging import requests from ndscheduler import job logger = logging.getLogger(__name__) class CurlJob(job.JobBase): TIMEOUT = 10 @classmethod def meta_info(cls): return { 'job_class_string': '%s.%s' % (cls.__module__, cls.__name_...
<commit_before>"""A job to send a HTTP GET periodically.""" import logging import requests from ndscheduler import job logger = logging.getLogger(__name__) class CurlJob(job.JobBase): TIMEOUT = 10 @classmethod def meta_info(cls): return { 'job_class_string': '%s.%s' % (cls.__module...
e4b640d6c7614e4b8d8767f64b7765ac95dbf440
mrburns/settings/server.py
mrburns/settings/server.py
import os import socket from .base import * # noqa SERVER_ENV = os.getenv('DJANGO_SERVER_ENV') SECRET_KEY = os.getenv('SECRET_KEY') STATIC_URL = os.getenv('STATIC_URL', STATIC_URL) DEBUG = TEMPLATE_DEBUG = False ALLOWED_HOSTS = [ 'webwewant.mozilla.org', 'webwewant.allizom.org', # the server's IP (for m...
import os import socket from .base import * # noqa SERVER_ENV = os.getenv('DJANGO_SERVER_ENV') SECRET_KEY = os.getenv('SECRET_KEY') STATIC_URL = os.getenv('STATIC_URL', STATIC_URL) DEBUG = TEMPLATE_DEBUG = False ALLOWED_HOSTS = [ 'webwewant.mozilla.org', 'webwewant.allizom.org', 'glow.cdn.mozilla.net', ...
Add CDN url to allowed hosts.
Add CDN url to allowed hosts.
Python
mpl-2.0
almossawi/mrburns,almossawi/mrburns,almossawi/mrburns,mozilla/mrburns,mozilla/mrburns,mozilla/mrburns,almossawi/mrburns
import os import socket from .base import * # noqa SERVER_ENV = os.getenv('DJANGO_SERVER_ENV') SECRET_KEY = os.getenv('SECRET_KEY') STATIC_URL = os.getenv('STATIC_URL', STATIC_URL) DEBUG = TEMPLATE_DEBUG = False ALLOWED_HOSTS = [ 'webwewant.mozilla.org', 'webwewant.allizom.org', # the server's IP (for m...
import os import socket from .base import * # noqa SERVER_ENV = os.getenv('DJANGO_SERVER_ENV') SECRET_KEY = os.getenv('SECRET_KEY') STATIC_URL = os.getenv('STATIC_URL', STATIC_URL) DEBUG = TEMPLATE_DEBUG = False ALLOWED_HOSTS = [ 'webwewant.mozilla.org', 'webwewant.allizom.org', 'glow.cdn.mozilla.net', ...
<commit_before>import os import socket from .base import * # noqa SERVER_ENV = os.getenv('DJANGO_SERVER_ENV') SECRET_KEY = os.getenv('SECRET_KEY') STATIC_URL = os.getenv('STATIC_URL', STATIC_URL) DEBUG = TEMPLATE_DEBUG = False ALLOWED_HOSTS = [ 'webwewant.mozilla.org', 'webwewant.allizom.org', # the ser...
import os import socket from .base import * # noqa SERVER_ENV = os.getenv('DJANGO_SERVER_ENV') SECRET_KEY = os.getenv('SECRET_KEY') STATIC_URL = os.getenv('STATIC_URL', STATIC_URL) DEBUG = TEMPLATE_DEBUG = False ALLOWED_HOSTS = [ 'webwewant.mozilla.org', 'webwewant.allizom.org', 'glow.cdn.mozilla.net', ...
import os import socket from .base import * # noqa SERVER_ENV = os.getenv('DJANGO_SERVER_ENV') SECRET_KEY = os.getenv('SECRET_KEY') STATIC_URL = os.getenv('STATIC_URL', STATIC_URL) DEBUG = TEMPLATE_DEBUG = False ALLOWED_HOSTS = [ 'webwewant.mozilla.org', 'webwewant.allizom.org', # the server's IP (for m...
<commit_before>import os import socket from .base import * # noqa SERVER_ENV = os.getenv('DJANGO_SERVER_ENV') SECRET_KEY = os.getenv('SECRET_KEY') STATIC_URL = os.getenv('STATIC_URL', STATIC_URL) DEBUG = TEMPLATE_DEBUG = False ALLOWED_HOSTS = [ 'webwewant.mozilla.org', 'webwewant.allizom.org', # the ser...
ab500891a44e7034e02889acc5f8ac1d44cb9aad
tests/test_error.py
tests/test_error.py
from __future__ import unicode_literals import unittest import six import spotify class ErrorTest(unittest.TestCase): def test_error_has_error_code(self): error = spotify.Error(0) self.assertEqual(error.error_code, 0) error = spotify.Error(1) self.assertEqual(error.error_code, 1...
from __future__ import unicode_literals import unittest import six import spotify class ErrorTest(unittest.TestCase): def test_error_has_error_code(self): error = spotify.Error(0) self.assertEqual(error.error_code, 0) error = spotify.Error(1) self.assertEqual(error.error_code, 1...
Make Error behavior consistent across Pythons
Make Error behavior consistent across Pythons
Python
apache-2.0
felix1m/pyspotify,jodal/pyspotify,jodal/pyspotify,felix1m/pyspotify,kotamat/pyspotify,jodal/pyspotify,kotamat/pyspotify,mopidy/pyspotify,mopidy/pyspotify,kotamat/pyspotify,felix1m/pyspotify
from __future__ import unicode_literals import unittest import six import spotify class ErrorTest(unittest.TestCase): def test_error_has_error_code(self): error = spotify.Error(0) self.assertEqual(error.error_code, 0) error = spotify.Error(1) self.assertEqual(error.error_code, 1...
from __future__ import unicode_literals import unittest import six import spotify class ErrorTest(unittest.TestCase): def test_error_has_error_code(self): error = spotify.Error(0) self.assertEqual(error.error_code, 0) error = spotify.Error(1) self.assertEqual(error.error_code, 1...
<commit_before>from __future__ import unicode_literals import unittest import six import spotify class ErrorTest(unittest.TestCase): def test_error_has_error_code(self): error = spotify.Error(0) self.assertEqual(error.error_code, 0) error = spotify.Error(1) self.assertEqual(erro...
from __future__ import unicode_literals import unittest import six import spotify class ErrorTest(unittest.TestCase): def test_error_has_error_code(self): error = spotify.Error(0) self.assertEqual(error.error_code, 0) error = spotify.Error(1) self.assertEqual(error.error_code, 1...
from __future__ import unicode_literals import unittest import six import spotify class ErrorTest(unittest.TestCase): def test_error_has_error_code(self): error = spotify.Error(0) self.assertEqual(error.error_code, 0) error = spotify.Error(1) self.assertEqual(error.error_code, 1...
<commit_before>from __future__ import unicode_literals import unittest import six import spotify class ErrorTest(unittest.TestCase): def test_error_has_error_code(self): error = spotify.Error(0) self.assertEqual(error.error_code, 0) error = spotify.Error(1) self.assertEqual(erro...
72bc614be6ed7f233fafeef11ab89561752be066
timpani/settings.py
timpani/settings.py
from . import database def getAllSettings(): databaseConnection = database.ConnectionManager.getConnection("main") query = databaseConnection.session.query(database.tables.Setting) settings = query.all() return {setting.name: setting.value for setting in settings} def getSettingValue(name): databaseConnection = ...
from . import database def getAllSettings(): databaseConnection = database.ConnectionManager.getConnection("main") query = databaseConnection.session.query(database.tables.Setting) settings = query.all() return {setting.name: setting.value for setting in settings} def getSettingValue(name): databaseConnection = ...
Fix lines in auth.py to to be 79 chars or less
Fix lines in auth.py to to be 79 chars or less
Python
mit
ollien/Timpani,ollien/Timpani,ollien/Timpani
from . import database def getAllSettings(): databaseConnection = database.ConnectionManager.getConnection("main") query = databaseConnection.session.query(database.tables.Setting) settings = query.all() return {setting.name: setting.value for setting in settings} def getSettingValue(name): databaseConnection = ...
from . import database def getAllSettings(): databaseConnection = database.ConnectionManager.getConnection("main") query = databaseConnection.session.query(database.tables.Setting) settings = query.all() return {setting.name: setting.value for setting in settings} def getSettingValue(name): databaseConnection = ...
<commit_before>from . import database def getAllSettings(): databaseConnection = database.ConnectionManager.getConnection("main") query = databaseConnection.session.query(database.tables.Setting) settings = query.all() return {setting.name: setting.value for setting in settings} def getSettingValue(name): databa...
from . import database def getAllSettings(): databaseConnection = database.ConnectionManager.getConnection("main") query = databaseConnection.session.query(database.tables.Setting) settings = query.all() return {setting.name: setting.value for setting in settings} def getSettingValue(name): databaseConnection = ...
from . import database def getAllSettings(): databaseConnection = database.ConnectionManager.getConnection("main") query = databaseConnection.session.query(database.tables.Setting) settings = query.all() return {setting.name: setting.value for setting in settings} def getSettingValue(name): databaseConnection = ...
<commit_before>from . import database def getAllSettings(): databaseConnection = database.ConnectionManager.getConnection("main") query = databaseConnection.session.query(database.tables.Setting) settings = query.all() return {setting.name: setting.value for setting in settings} def getSettingValue(name): databa...
8ee35fe46e978fcb17e99b50f045009ea8235067
tools/pdtools/pdtools/devices/camera.py
tools/pdtools/pdtools/devices/camera.py
import base64 import requests import six class Camera(object): def __init__(self, host): self.host = host def get_image(self): """ Get an image from the camera. Returns image data as a BytesIO/StringIO object. """ url = "http://{}/image.jpg".format(self.host)...
import base64 import requests import six class Camera(object): def __init__(self, host): self.host = host def __repr__(self): return "Camera({})".format(self.host) def get_image(self): """ Get an image from the camera. Returns image data as a BytesIO/StringIO ob...
Define __repr__ for pdtools Camera class.
Define __repr__ for pdtools Camera class.
Python
apache-2.0
ParadropLabs/Paradrop,ParadropLabs/Paradrop,ParadropLabs/Paradrop
import base64 import requests import six class Camera(object): def __init__(self, host): self.host = host def get_image(self): """ Get an image from the camera. Returns image data as a BytesIO/StringIO object. """ url = "http://{}/image.jpg".format(self.host)...
import base64 import requests import six class Camera(object): def __init__(self, host): self.host = host def __repr__(self): return "Camera({})".format(self.host) def get_image(self): """ Get an image from the camera. Returns image data as a BytesIO/StringIO ob...
<commit_before>import base64 import requests import six class Camera(object): def __init__(self, host): self.host = host def get_image(self): """ Get an image from the camera. Returns image data as a BytesIO/StringIO object. """ url = "http://{}/image.jpg".fo...
import base64 import requests import six class Camera(object): def __init__(self, host): self.host = host def __repr__(self): return "Camera({})".format(self.host) def get_image(self): """ Get an image from the camera. Returns image data as a BytesIO/StringIO ob...
import base64 import requests import six class Camera(object): def __init__(self, host): self.host = host def get_image(self): """ Get an image from the camera. Returns image data as a BytesIO/StringIO object. """ url = "http://{}/image.jpg".format(self.host)...
<commit_before>import base64 import requests import six class Camera(object): def __init__(self, host): self.host = host def get_image(self): """ Get an image from the camera. Returns image data as a BytesIO/StringIO object. """ url = "http://{}/image.jpg".fo...
3b6eaabe93a92782a1a5198ae4b03fa5e501a770
agir/activity/serializers.py
agir/activity/serializers.py
from rest_framework import serializers from agir.events.serializers import EventSerializer from agir.groups.serializers import SupportGroupSerializer from agir.lib.serializers import FlexibleFieldsMixin from agir.people.serializers import PersonSerializer class ActivitySerializer(FlexibleFieldsMixin, serializers.Ser...
from rest_framework import serializers from agir.events.serializers import EventSerializer from agir.groups.serializers import SupportGroupSerializer from agir.lib.serializers import FlexibleFieldsMixin from agir.people.serializers import PersonSerializer class ActivitySerializer(FlexibleFieldsMixin, serializers.Ser...
Add individual email field to activity serializer
Add individual email field to activity serializer
Python
agpl-3.0
lafranceinsoumise/api-django,lafranceinsoumise/api-django,lafranceinsoumise/api-django,lafranceinsoumise/api-django
from rest_framework import serializers from agir.events.serializers import EventSerializer from agir.groups.serializers import SupportGroupSerializer from agir.lib.serializers import FlexibleFieldsMixin from agir.people.serializers import PersonSerializer class ActivitySerializer(FlexibleFieldsMixin, serializers.Ser...
from rest_framework import serializers from agir.events.serializers import EventSerializer from agir.groups.serializers import SupportGroupSerializer from agir.lib.serializers import FlexibleFieldsMixin from agir.people.serializers import PersonSerializer class ActivitySerializer(FlexibleFieldsMixin, serializers.Ser...
<commit_before>from rest_framework import serializers from agir.events.serializers import EventSerializer from agir.groups.serializers import SupportGroupSerializer from agir.lib.serializers import FlexibleFieldsMixin from agir.people.serializers import PersonSerializer class ActivitySerializer(FlexibleFieldsMixin, ...
from rest_framework import serializers from agir.events.serializers import EventSerializer from agir.groups.serializers import SupportGroupSerializer from agir.lib.serializers import FlexibleFieldsMixin from agir.people.serializers import PersonSerializer class ActivitySerializer(FlexibleFieldsMixin, serializers.Ser...
from rest_framework import serializers from agir.events.serializers import EventSerializer from agir.groups.serializers import SupportGroupSerializer from agir.lib.serializers import FlexibleFieldsMixin from agir.people.serializers import PersonSerializer class ActivitySerializer(FlexibleFieldsMixin, serializers.Ser...
<commit_before>from rest_framework import serializers from agir.events.serializers import EventSerializer from agir.groups.serializers import SupportGroupSerializer from agir.lib.serializers import FlexibleFieldsMixin from agir.people.serializers import PersonSerializer class ActivitySerializer(FlexibleFieldsMixin, ...
8e5c55a4710352d5f3b211c9df7d11c3cf9ef104
us_ignite/dummy/text.py
us_ignite/dummy/text.py
from random import choice from django.conf import settings words = open(settings.WORDS_PATH, "r").readlines() def random_words(total): return " ".join([choice(words).lower().rstrip() for i in range(total)]) def random_paragraphs(total, word_no=30): return ".\n\n".join([random_words(word_no) for i in rang...
from random import choice from django.conf import settings from django.utils.encoding import smart_text words = open(settings.WORDS_PATH, "r").readlines() def random_words(total): return u" ".join([smart_text(choice(words).lower().rstrip()) for i in range(total)]) def random_paragraphs(total, word_no=30): ...
Handle encoding of the random words.
Handle encoding of the random words.
Python
bsd-3-clause
us-ignite/us_ignite,us-ignite/us_ignite,us-ignite/us_ignite,us-ignite/us_ignite,us-ignite/us_ignite
from random import choice from django.conf import settings words = open(settings.WORDS_PATH, "r").readlines() def random_words(total): return " ".join([choice(words).lower().rstrip() for i in range(total)]) def random_paragraphs(total, word_no=30): return ".\n\n".join([random_words(word_no) for i in rang...
from random import choice from django.conf import settings from django.utils.encoding import smart_text words = open(settings.WORDS_PATH, "r").readlines() def random_words(total): return u" ".join([smart_text(choice(words).lower().rstrip()) for i in range(total)]) def random_paragraphs(total, word_no=30): ...
<commit_before>from random import choice from django.conf import settings words = open(settings.WORDS_PATH, "r").readlines() def random_words(total): return " ".join([choice(words).lower().rstrip() for i in range(total)]) def random_paragraphs(total, word_no=30): return ".\n\n".join([random_words(word_no...
from random import choice from django.conf import settings from django.utils.encoding import smart_text words = open(settings.WORDS_PATH, "r").readlines() def random_words(total): return u" ".join([smart_text(choice(words).lower().rstrip()) for i in range(total)]) def random_paragraphs(total, word_no=30): ...
from random import choice from django.conf import settings words = open(settings.WORDS_PATH, "r").readlines() def random_words(total): return " ".join([choice(words).lower().rstrip() for i in range(total)]) def random_paragraphs(total, word_no=30): return ".\n\n".join([random_words(word_no) for i in rang...
<commit_before>from random import choice from django.conf import settings words = open(settings.WORDS_PATH, "r").readlines() def random_words(total): return " ".join([choice(words).lower().rstrip() for i in range(total)]) def random_paragraphs(total, word_no=30): return ".\n\n".join([random_words(word_no...
7d94abed2316c5ee6679f33d43c122b9bfcedab7
extra_countries/migrations/0001_initial.py
extra_countries/migrations/0001_initial.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('continents', '0001_initial'), ('currencies', '0001_initial'), ('cities', '0002_auto_20151112_1857'), ] operations = ...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('continents', '0001_initial'), ('currencies', '0001_initial'), ] operations = [ migrations.CreateModel( n...
Remove reference to nonexistent migration to fix tests
Remove reference to nonexistent migration to fix tests
Python
mit
openspending/cosmopolitan,kiote/cosmopolitan
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('continents', '0001_initial'), ('currencies', '0001_initial'), ('cities', '0002_auto_20151112_1857'), ] operations = ...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('continents', '0001_initial'), ('currencies', '0001_initial'), ] operations = [ migrations.CreateModel( n...
<commit_before># -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('continents', '0001_initial'), ('currencies', '0001_initial'), ('cities', '0002_auto_20151112_1857'), ] ...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('continents', '0001_initial'), ('currencies', '0001_initial'), ] operations = [ migrations.CreateModel( n...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('continents', '0001_initial'), ('currencies', '0001_initial'), ('cities', '0002_auto_20151112_1857'), ] operations = ...
<commit_before># -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('continents', '0001_initial'), ('currencies', '0001_initial'), ('cities', '0002_auto_20151112_1857'), ] ...
8a71fe98d50f7603742c60273502fb840e967c97
scalpel/event.py
scalpel/event.py
""" Author: Thiago Marcos P. Santos Created: August 28, 2008 Purpose: A signal/slot implementation """ from weakref import WeakValueDictionary class Signal(object): def __init__(self): self.__slots = WeakValueDictionary() def __call__(self, *args, **kargs): for key in self._...
""" Author: Thiago Marcos P. Santos Created: August 28, 2008 Purpose: A signal/slot implementation URL: http://code.activestate.com/recipes/576477/ Comment: Slightly modified with code from Patrick Chasco (http://code.activestate.com/recipes/439356/) to support connecting functions. """ ...
Add support for connecting functions to Signal objects.
Add support for connecting functions to Signal objects. Less elegant than the original recipe, but more functional.
Python
bsd-3-clause
stackp/Gum,stackp/Gum,stackp/Gum
""" Author: Thiago Marcos P. Santos Created: August 28, 2008 Purpose: A signal/slot implementation """ from weakref import WeakValueDictionary class Signal(object): def __init__(self): self.__slots = WeakValueDictionary() def __call__(self, *args, **kargs): for key in self._...
""" Author: Thiago Marcos P. Santos Created: August 28, 2008 Purpose: A signal/slot implementation URL: http://code.activestate.com/recipes/576477/ Comment: Slightly modified with code from Patrick Chasco (http://code.activestate.com/recipes/439356/) to support connecting functions. """ ...
<commit_before>""" Author: Thiago Marcos P. Santos Created: August 28, 2008 Purpose: A signal/slot implementation """ from weakref import WeakValueDictionary class Signal(object): def __init__(self): self.__slots = WeakValueDictionary() def __call__(self, *args, **kargs): fo...
""" Author: Thiago Marcos P. Santos Created: August 28, 2008 Purpose: A signal/slot implementation URL: http://code.activestate.com/recipes/576477/ Comment: Slightly modified with code from Patrick Chasco (http://code.activestate.com/recipes/439356/) to support connecting functions. """ ...
""" Author: Thiago Marcos P. Santos Created: August 28, 2008 Purpose: A signal/slot implementation """ from weakref import WeakValueDictionary class Signal(object): def __init__(self): self.__slots = WeakValueDictionary() def __call__(self, *args, **kargs): for key in self._...
<commit_before>""" Author: Thiago Marcos P. Santos Created: August 28, 2008 Purpose: A signal/slot implementation """ from weakref import WeakValueDictionary class Signal(object): def __init__(self): self.__slots = WeakValueDictionary() def __call__(self, *args, **kargs): fo...
84a6aa05079940173e079e5c2f513b5bd8f8bcb7
api/locations/models.py
api/locations/models.py
# -*- coding: utf-8 -*- # Copyright 2016 Steven Oud. All rights reserved. # Use of this source code is governed by a MIT-style license that can be found # in the LICENSE file. from datetime import datetime from api.models import JSONSerializer from api import db from api.visits.models import Visit class Location(db.M...
# -*- coding: utf-8 -*- # Copyright 2016 Steven Oud. All rights reserved. # Use of this source code is governed by a MIT-style license that can be found # in the LICENSE file. from datetime import datetime from api.models import JSONSerializer from api import db from api.visits.models import Visit class Location(db.M...
Fix onupdate not using current time
Fix onupdate not using current time
Python
mit
Proj-P/project-p-api,Proj-P/project-p-api
# -*- coding: utf-8 -*- # Copyright 2016 Steven Oud. All rights reserved. # Use of this source code is governed by a MIT-style license that can be found # in the LICENSE file. from datetime import datetime from api.models import JSONSerializer from api import db from api.visits.models import Visit class Location(db.M...
# -*- coding: utf-8 -*- # Copyright 2016 Steven Oud. All rights reserved. # Use of this source code is governed by a MIT-style license that can be found # in the LICENSE file. from datetime import datetime from api.models import JSONSerializer from api import db from api.visits.models import Visit class Location(db.M...
<commit_before># -*- coding: utf-8 -*- # Copyright 2016 Steven Oud. All rights reserved. # Use of this source code is governed by a MIT-style license that can be found # in the LICENSE file. from datetime import datetime from api.models import JSONSerializer from api import db from api.visits.models import Visit clas...
# -*- coding: utf-8 -*- # Copyright 2016 Steven Oud. All rights reserved. # Use of this source code is governed by a MIT-style license that can be found # in the LICENSE file. from datetime import datetime from api.models import JSONSerializer from api import db from api.visits.models import Visit class Location(db.M...
# -*- coding: utf-8 -*- # Copyright 2016 Steven Oud. All rights reserved. # Use of this source code is governed by a MIT-style license that can be found # in the LICENSE file. from datetime import datetime from api.models import JSONSerializer from api import db from api.visits.models import Visit class Location(db.M...
<commit_before># -*- coding: utf-8 -*- # Copyright 2016 Steven Oud. All rights reserved. # Use of this source code is governed by a MIT-style license that can be found # in the LICENSE file. from datetime import datetime from api.models import JSONSerializer from api import db from api.visits.models import Visit clas...
fec482c6b1655d7108386760a3e0297850da6e7b
editorsnotes/api/validators.py
editorsnotes/api/validators.py
from rest_framework.serializers import ValidationError class UniqueToProjectValidator: message = u'{model_name} with this {field_name} already exists.' def __init__(self, field, message=None): self.field_name = field self.message = message or self.message def set_context(self, serializer...
from rest_framework.serializers import ValidationError class UniqueToProjectValidator: message = u'{model_name} with this {field_name} already exists.' def __init__(self, field, message=None): self.field_name = field self.message = message or self.message def set_context(self, serializer...
Make sure a project is set for the project-specific validator
Make sure a project is set for the project-specific validator
Python
agpl-3.0
editorsnotes/editorsnotes,editorsnotes/editorsnotes
from rest_framework.serializers import ValidationError class UniqueToProjectValidator: message = u'{model_name} with this {field_name} already exists.' def __init__(self, field, message=None): self.field_name = field self.message = message or self.message def set_context(self, serializer...
from rest_framework.serializers import ValidationError class UniqueToProjectValidator: message = u'{model_name} with this {field_name} already exists.' def __init__(self, field, message=None): self.field_name = field self.message = message or self.message def set_context(self, serializer...
<commit_before>from rest_framework.serializers import ValidationError class UniqueToProjectValidator: message = u'{model_name} with this {field_name} already exists.' def __init__(self, field, message=None): self.field_name = field self.message = message or self.message def set_context(s...
from rest_framework.serializers import ValidationError class UniqueToProjectValidator: message = u'{model_name} with this {field_name} already exists.' def __init__(self, field, message=None): self.field_name = field self.message = message or self.message def set_context(self, serializer...
from rest_framework.serializers import ValidationError class UniqueToProjectValidator: message = u'{model_name} with this {field_name} already exists.' def __init__(self, field, message=None): self.field_name = field self.message = message or self.message def set_context(self, serializer...
<commit_before>from rest_framework.serializers import ValidationError class UniqueToProjectValidator: message = u'{model_name} with this {field_name} already exists.' def __init__(self, field, message=None): self.field_name = field self.message = message or self.message def set_context(s...
57f131218ac7362fdf85389b73dcafb9d35897f4
TriangleSimilarityDistanceCalculator.py
TriangleSimilarityDistanceCalculator.py
# Calculate the distance to an object of known size. # We need to know the perceived focal length for this to work. # # Known Focal Length values for calibrated cameras # Logitech C920: H620 V? # Microsoft Lifecam HD-3000: H652 V? # class TriangleSimilarityDistanceCalculator: knownSize = 0...
# Calculate the distance to an object of known size. # We need to know the perceived focal length for this to work. # # Known Focal Length values for calibrated cameras # Logitech C920: H622 V625 # Microsoft Lifecam HD-3000: H652 V? # PFL_H_C920 = 622 PFL_V_C920 = 625 PFL_H_LC3000 = 652 PF...
Update measured Focal Lengths for C920.
Update measured Focal Lengths for C920.
Python
mit
AluminatiFRC/Vision2016,AluminatiFRC/Vision2016
# Calculate the distance to an object of known size. # We need to know the perceived focal length for this to work. # # Known Focal Length values for calibrated cameras # Logitech C920: H620 V? # Microsoft Lifecam HD-3000: H652 V? # class TriangleSimilarityDistanceCalculator: knownSize = 0...
# Calculate the distance to an object of known size. # We need to know the perceived focal length for this to work. # # Known Focal Length values for calibrated cameras # Logitech C920: H622 V625 # Microsoft Lifecam HD-3000: H652 V? # PFL_H_C920 = 622 PFL_V_C920 = 625 PFL_H_LC3000 = 652 PF...
<commit_before># Calculate the distance to an object of known size. # We need to know the perceived focal length for this to work. # # Known Focal Length values for calibrated cameras # Logitech C920: H620 V? # Microsoft Lifecam HD-3000: H652 V? # class TriangleSimilarityDistanceCalculator: ...
# Calculate the distance to an object of known size. # We need to know the perceived focal length for this to work. # # Known Focal Length values for calibrated cameras # Logitech C920: H622 V625 # Microsoft Lifecam HD-3000: H652 V? # PFL_H_C920 = 622 PFL_V_C920 = 625 PFL_H_LC3000 = 652 PF...
# Calculate the distance to an object of known size. # We need to know the perceived focal length for this to work. # # Known Focal Length values for calibrated cameras # Logitech C920: H620 V? # Microsoft Lifecam HD-3000: H652 V? # class TriangleSimilarityDistanceCalculator: knownSize = 0...
<commit_before># Calculate the distance to an object of known size. # We need to know the perceived focal length for this to work. # # Known Focal Length values for calibrated cameras # Logitech C920: H620 V? # Microsoft Lifecam HD-3000: H652 V? # class TriangleSimilarityDistanceCalculator: ...
70e71fea19abf898c0c6c7dc77f5757a07174093
script/yaml-to-plist.py
script/yaml-to-plist.py
#!/usr/bin/env python3 import sys import yaml from os import path from plistlib import dumps def generated_comment(): return "This file is auto-generated from %s, do not edit it by hand!" \ % path.basename(in_path) def convert(yaml): lines = dumps(yaml).decode('utf-8').splitlines() lines.insert(...
#!/usr/bin/env python3 import sys import yaml from os import path from plistlib import dumps def generated_comment(): return "This file is auto-generated from %s, do not edit it by hand!" \ % path.basename(in_path) def convert(yaml): lines = dumps(yaml).decode('utf-8').splitlines() lines.insert(...
Use safe_load to avoid warning
Use safe_load to avoid warning
Python
mit
joaompinto/asciidoctor-vscode,joaompinto/asciidoctor-vscode,joaompinto/asciidoctor-vscode
#!/usr/bin/env python3 import sys import yaml from os import path from plistlib import dumps def generated_comment(): return "This file is auto-generated from %s, do not edit it by hand!" \ % path.basename(in_path) def convert(yaml): lines = dumps(yaml).decode('utf-8').splitlines() lines.insert(...
#!/usr/bin/env python3 import sys import yaml from os import path from plistlib import dumps def generated_comment(): return "This file is auto-generated from %s, do not edit it by hand!" \ % path.basename(in_path) def convert(yaml): lines = dumps(yaml).decode('utf-8').splitlines() lines.insert(...
<commit_before>#!/usr/bin/env python3 import sys import yaml from os import path from plistlib import dumps def generated_comment(): return "This file is auto-generated from %s, do not edit it by hand!" \ % path.basename(in_path) def convert(yaml): lines = dumps(yaml).decode('utf-8').splitlines() ...
#!/usr/bin/env python3 import sys import yaml from os import path from plistlib import dumps def generated_comment(): return "This file is auto-generated from %s, do not edit it by hand!" \ % path.basename(in_path) def convert(yaml): lines = dumps(yaml).decode('utf-8').splitlines() lines.insert(...
#!/usr/bin/env python3 import sys import yaml from os import path from plistlib import dumps def generated_comment(): return "This file is auto-generated from %s, do not edit it by hand!" \ % path.basename(in_path) def convert(yaml): lines = dumps(yaml).decode('utf-8').splitlines() lines.insert(...
<commit_before>#!/usr/bin/env python3 import sys import yaml from os import path from plistlib import dumps def generated_comment(): return "This file is auto-generated from %s, do not edit it by hand!" \ % path.basename(in_path) def convert(yaml): lines = dumps(yaml).decode('utf-8').splitlines() ...
693e02dd272af0d77b565e8d447bb3e72c43dd5f
apps/firefox/urls.py
apps/firefox/urls.py
from django.conf.urls.defaults import * from django.conf import settings from product_details import product_details from mozorg.util import page import views urlpatterns = patterns('', page('firefox/central', 'firefox/central.html'), page('firefox/customize', 'firefox/customize'), page('firefox/features'...
from django.conf.urls.defaults import * from django.conf import settings from product_details import product_details from mozorg.util import page import views urlpatterns = patterns('', page('firefox/central', 'firefox/central.html'), page('firefox/customize', 'firefox/customize.html'), page('firefox/feat...
Fix a typo in customize page url setup
Fix a typo in customize page url setup
Python
mpl-2.0
TheoChevalier/bedrock,SujaySKumar/bedrock,jpetto/bedrock,bensternthal/bedrock,gerv/bedrock,analytics-pros/mozilla-bedrock,flodolo/bedrock,TheoChevalier/bedrock,SujaySKumar/bedrock,mahinthjoe/bedrock,hoosteeno/bedrock,mahinthjoe/bedrock,ericawright/bedrock,mahinthjoe/bedrock,mmmavis/bedrock,gauthierm/bedrock,ckprice/bed...
from django.conf.urls.defaults import * from django.conf import settings from product_details import product_details from mozorg.util import page import views urlpatterns = patterns('', page('firefox/central', 'firefox/central.html'), page('firefox/customize', 'firefox/customize'), page('firefox/features'...
from django.conf.urls.defaults import * from django.conf import settings from product_details import product_details from mozorg.util import page import views urlpatterns = patterns('', page('firefox/central', 'firefox/central.html'), page('firefox/customize', 'firefox/customize.html'), page('firefox/feat...
<commit_before>from django.conf.urls.defaults import * from django.conf import settings from product_details import product_details from mozorg.util import page import views urlpatterns = patterns('', page('firefox/central', 'firefox/central.html'), page('firefox/customize', 'firefox/customize'), page('fi...
from django.conf.urls.defaults import * from django.conf import settings from product_details import product_details from mozorg.util import page import views urlpatterns = patterns('', page('firefox/central', 'firefox/central.html'), page('firefox/customize', 'firefox/customize.html'), page('firefox/feat...
from django.conf.urls.defaults import * from django.conf import settings from product_details import product_details from mozorg.util import page import views urlpatterns = patterns('', page('firefox/central', 'firefox/central.html'), page('firefox/customize', 'firefox/customize'), page('firefox/features'...
<commit_before>from django.conf.urls.defaults import * from django.conf import settings from product_details import product_details from mozorg.util import page import views urlpatterns = patterns('', page('firefox/central', 'firefox/central.html'), page('firefox/customize', 'firefox/customize'), page('fi...
f4bce878530358ea7820b4f45f4d1defaa194a85
rabbitpy/__init__.py
rabbitpy/__init__.py
__version__ = '0.10.0' from rabbitpy.connection import Connection from rabbitpy.exchange import Exchange from rabbitpy.message import Message from rabbitpy.amqp_queue import Queue from rabbitpy.tx import Tx from rabbitpy.simple import consume from rabbitpy.simple import get from rabbitpy.simple import publish from ra...
__version__ = '0.10.0' version = __version__ from rabbitpy.connection import Connection from rabbitpy.exchange import Exchange from rabbitpy.message import Message from rabbitpy.amqp_queue import Queue from rabbitpy.tx import Tx from rabbitpy.simple import consume from rabbitpy.simple import get from rabbitpy.simple ...
Add a DEBUG constant and the ability to more cleanly reference the version.
Add a DEBUG constant and the ability to more cleanly reference the version.
Python
bsd-3-clause
gmr/rabbitpy,gmr/rabbitpy,jonahbull/rabbitpy
__version__ = '0.10.0' from rabbitpy.connection import Connection from rabbitpy.exchange import Exchange from rabbitpy.message import Message from rabbitpy.amqp_queue import Queue from rabbitpy.tx import Tx from rabbitpy.simple import consume from rabbitpy.simple import get from rabbitpy.simple import publish from ra...
__version__ = '0.10.0' version = __version__ from rabbitpy.connection import Connection from rabbitpy.exchange import Exchange from rabbitpy.message import Message from rabbitpy.amqp_queue import Queue from rabbitpy.tx import Tx from rabbitpy.simple import consume from rabbitpy.simple import get from rabbitpy.simple ...
<commit_before>__version__ = '0.10.0' from rabbitpy.connection import Connection from rabbitpy.exchange import Exchange from rabbitpy.message import Message from rabbitpy.amqp_queue import Queue from rabbitpy.tx import Tx from rabbitpy.simple import consume from rabbitpy.simple import get from rabbitpy.simple import ...
__version__ = '0.10.0' version = __version__ from rabbitpy.connection import Connection from rabbitpy.exchange import Exchange from rabbitpy.message import Message from rabbitpy.amqp_queue import Queue from rabbitpy.tx import Tx from rabbitpy.simple import consume from rabbitpy.simple import get from rabbitpy.simple ...
__version__ = '0.10.0' from rabbitpy.connection import Connection from rabbitpy.exchange import Exchange from rabbitpy.message import Message from rabbitpy.amqp_queue import Queue from rabbitpy.tx import Tx from rabbitpy.simple import consume from rabbitpy.simple import get from rabbitpy.simple import publish from ra...
<commit_before>__version__ = '0.10.0' from rabbitpy.connection import Connection from rabbitpy.exchange import Exchange from rabbitpy.message import Message from rabbitpy.amqp_queue import Queue from rabbitpy.tx import Tx from rabbitpy.simple import consume from rabbitpy.simple import get from rabbitpy.simple import ...
e82474c0281aebe3b623a5be9adc0adf14fa58d5
ann_util.py
ann_util.py
import math import random def logistic(x): return 1.0 / (1 + math.exp(-x)) def deriv_logistic(x): lgst = logistic(x) return (1 - lgst) * lgst def hyperbolic_tangent(x): return math.tanh(x) def deriv_hyperbolic_tangent(x): th = math.tanh(x) return 1 - th * th def between(min, max): ...
import math import pickle import random def logistic(x): return 1.0 / (1 + math.exp(-x)) def deriv_logistic(x): lgst = logistic(x) return (1 - lgst) * lgst def hyperbolic_tangent(x): return math.tanh(x) def deriv_hyperbolic_tangent(x): th = math.tanh(x) return 1 - th * th def between(m...
Add pickle serialize and deserialize
Add pickle serialize and deserialize
Python
apache-2.0
Razvy000/ANN_Course
import math import random def logistic(x): return 1.0 / (1 + math.exp(-x)) def deriv_logistic(x): lgst = logistic(x) return (1 - lgst) * lgst def hyperbolic_tangent(x): return math.tanh(x) def deriv_hyperbolic_tangent(x): th = math.tanh(x) return 1 - th * th def between(min, max): ...
import math import pickle import random def logistic(x): return 1.0 / (1 + math.exp(-x)) def deriv_logistic(x): lgst = logistic(x) return (1 - lgst) * lgst def hyperbolic_tangent(x): return math.tanh(x) def deriv_hyperbolic_tangent(x): th = math.tanh(x) return 1 - th * th def between(m...
<commit_before>import math import random def logistic(x): return 1.0 / (1 + math.exp(-x)) def deriv_logistic(x): lgst = logistic(x) return (1 - lgst) * lgst def hyperbolic_tangent(x): return math.tanh(x) def deriv_hyperbolic_tangent(x): th = math.tanh(x) return 1 - th * th def between(...
import math import pickle import random def logistic(x): return 1.0 / (1 + math.exp(-x)) def deriv_logistic(x): lgst = logistic(x) return (1 - lgst) * lgst def hyperbolic_tangent(x): return math.tanh(x) def deriv_hyperbolic_tangent(x): th = math.tanh(x) return 1 - th * th def between(m...
import math import random def logistic(x): return 1.0 / (1 + math.exp(-x)) def deriv_logistic(x): lgst = logistic(x) return (1 - lgst) * lgst def hyperbolic_tangent(x): return math.tanh(x) def deriv_hyperbolic_tangent(x): th = math.tanh(x) return 1 - th * th def between(min, max): ...
<commit_before>import math import random def logistic(x): return 1.0 / (1 + math.exp(-x)) def deriv_logistic(x): lgst = logistic(x) return (1 - lgst) * lgst def hyperbolic_tangent(x): return math.tanh(x) def deriv_hyperbolic_tangent(x): th = math.tanh(x) return 1 - th * th def between(...
ec7cbb256e7beab806fe5346c306f7ebc13b1578
src/googleclouddebugger/labels.py
src/googleclouddebugger/labels.py
# Copyright 2015 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
# Copyright 2015 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
Set compatible_with=appengine on targets depended on by App Engine apps or by the App Engine runtime itself.
Set compatible_with=appengine on targets depended on by App Engine apps or by the App Engine runtime itself. This CL has no immediate impact on the targets, but it has two consequences moving forward: - When google3 moves to Java 8, compatible_with=appengine targets will remain on Java 7. (If this target is a non-java...
Python
apache-2.0
GoogleCloudPlatform/cloud-debug-python,GoogleCloudPlatform/cloud-debug-python,GoogleCloudPlatform/cloud-debug-python
# Copyright 2015 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
# Copyright 2015 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
<commit_before># Copyright 2015 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
# Copyright 2015 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
# Copyright 2015 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
<commit_before># Copyright 2015 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
6dd403ae88a11457c7930639781182afff892761
UM/__init__.py
UM/__init__.py
# Copyright (c) 2015 Ultimaker B.V. # Uranium is released under the terms of the AGPLv3 or higher. #Shoopdawoop ## \package UM # This is the main library for Uranium applications.
# Copyright (c) 2015 Ultimaker B.V. # Uranium is released under the terms of the AGPLv3 or higher. #Shoopdawoop ## \package UM # This is the main library for Uranium applications. from .Application import Application from .ColorGenerator import ColorGenerator from .Controller import Controller from .Event import Ev...
Allow new import style for UM directory
Allow new import style for UM directory This imports all public classes in the UM namespace rather than leaving them inside the modules in that namespace. For example, this allows directly importing UM.Logger and then using UM.Logger.log(...) to log a message. Contributes to ALL ISSUES AT THE SAME TIME.
Python
agpl-3.0
onitake/Uranium,onitake/Uranium
# Copyright (c) 2015 Ultimaker B.V. # Uranium is released under the terms of the AGPLv3 or higher. #Shoopdawoop ## \package UM # This is the main library for Uranium applications. Allow new import style for UM directory This imports all public classes in the UM namespace rather than leaving them inside the modules ...
# Copyright (c) 2015 Ultimaker B.V. # Uranium is released under the terms of the AGPLv3 or higher. #Shoopdawoop ## \package UM # This is the main library for Uranium applications. from .Application import Application from .ColorGenerator import ColorGenerator from .Controller import Controller from .Event import Ev...
<commit_before># Copyright (c) 2015 Ultimaker B.V. # Uranium is released under the terms of the AGPLv3 or higher. #Shoopdawoop ## \package UM # This is the main library for Uranium applications. <commit_msg>Allow new import style for UM directory This imports all public classes in the UM namespace rather than leavi...
# Copyright (c) 2015 Ultimaker B.V. # Uranium is released under the terms of the AGPLv3 or higher. #Shoopdawoop ## \package UM # This is the main library for Uranium applications. from .Application import Application from .ColorGenerator import ColorGenerator from .Controller import Controller from .Event import Ev...
# Copyright (c) 2015 Ultimaker B.V. # Uranium is released under the terms of the AGPLv3 or higher. #Shoopdawoop ## \package UM # This is the main library for Uranium applications. Allow new import style for UM directory This imports all public classes in the UM namespace rather than leaving them inside the modules ...
<commit_before># Copyright (c) 2015 Ultimaker B.V. # Uranium is released under the terms of the AGPLv3 or higher. #Shoopdawoop ## \package UM # This is the main library for Uranium applications. <commit_msg>Allow new import style for UM directory This imports all public classes in the UM namespace rather than leavi...
556cd504dbbd4dfd1a537e8f3e4636f9ebb50327
src/scripts/get_arxiv.py
src/scripts/get_arxiv.py
import sys import os import bs4 import urllib2 import urllib BASE_URL = "http://arxiv.org" HEP_URL = 'http://arxiv.org/abs/hep-th/%d' # TODO: Change prints to logs def get_pdf(paper_id, save_dir): try: paper_page = urllib2.urlopen(HEP_URL % paper_id) soup = bs4.BeautifulSoup(paper_page.read().dec...
import sys import os import bs4 import urllib2 import urllib BASE_URL = "http://arxiv.org" HEP_URL = 'http://arxiv.org/abs/hep-th/%d' # TODO: Change prints to logs def get_pdf(paper_id, save_dir): file_path = os.path.join(save_dir, str(paper_id) + ".pdf") if not os.path.isfile(file_path): # Only try ...
Update arxiv script to prevent dup downloads
Update arxiv script to prevent dup downloads
Python
mit
PinPinIre/Final-Year-Project,PinPinIre/Final-Year-Project,PinPinIre/Final-Year-Project
import sys import os import bs4 import urllib2 import urllib BASE_URL = "http://arxiv.org" HEP_URL = 'http://arxiv.org/abs/hep-th/%d' # TODO: Change prints to logs def get_pdf(paper_id, save_dir): try: paper_page = urllib2.urlopen(HEP_URL % paper_id) soup = bs4.BeautifulSoup(paper_page.read().dec...
import sys import os import bs4 import urllib2 import urllib BASE_URL = "http://arxiv.org" HEP_URL = 'http://arxiv.org/abs/hep-th/%d' # TODO: Change prints to logs def get_pdf(paper_id, save_dir): file_path = os.path.join(save_dir, str(paper_id) + ".pdf") if not os.path.isfile(file_path): # Only try ...
<commit_before>import sys import os import bs4 import urllib2 import urllib BASE_URL = "http://arxiv.org" HEP_URL = 'http://arxiv.org/abs/hep-th/%d' # TODO: Change prints to logs def get_pdf(paper_id, save_dir): try: paper_page = urllib2.urlopen(HEP_URL % paper_id) soup = bs4.BeautifulSoup(paper_...
import sys import os import bs4 import urllib2 import urllib BASE_URL = "http://arxiv.org" HEP_URL = 'http://arxiv.org/abs/hep-th/%d' # TODO: Change prints to logs def get_pdf(paper_id, save_dir): file_path = os.path.join(save_dir, str(paper_id) + ".pdf") if not os.path.isfile(file_path): # Only try ...
import sys import os import bs4 import urllib2 import urllib BASE_URL = "http://arxiv.org" HEP_URL = 'http://arxiv.org/abs/hep-th/%d' # TODO: Change prints to logs def get_pdf(paper_id, save_dir): try: paper_page = urllib2.urlopen(HEP_URL % paper_id) soup = bs4.BeautifulSoup(paper_page.read().dec...
<commit_before>import sys import os import bs4 import urllib2 import urllib BASE_URL = "http://arxiv.org" HEP_URL = 'http://arxiv.org/abs/hep-th/%d' # TODO: Change prints to logs def get_pdf(paper_id, save_dir): try: paper_page = urllib2.urlopen(HEP_URL % paper_id) soup = bs4.BeautifulSoup(paper_...
3ec2c5c7d30b69431d6703dafc4e9b0465b64ef9
lemur/migrations/versions/3097d57f3f0b_.py
lemur/migrations/versions/3097d57f3f0b_.py
"""Add new Indexes for faster searching Revision ID: 3097d57f3f0b Revises: 4fe230f7a26e Create Date: 2021-06-19 20:18:55.332165 """ # revision identifiers, used by Alembic. revision = '3097d57f3f0b' down_revision = '4fe230f7a26e' from alembic import op import sqlalchemy as sa def upgrade(): op.create_index( ...
"""Add new Indexes for faster searching Revision ID: 3097d57f3f0b Revises: 4fe230f7a26e Create Date: 2021-06-19 20:18:55.332165 """ # revision identifiers, used by Alembic. revision = '3097d57f3f0b' down_revision = '4fe230f7a26e' from alembic import op import sqlalchemy as sa def upgrade(): op.create_index( ...
Fix sqlalchemy import alias in DB migration file
Fix sqlalchemy import alias in DB migration file
Python
apache-2.0
Netflix/lemur,Netflix/lemur,Netflix/lemur,Netflix/lemur
"""Add new Indexes for faster searching Revision ID: 3097d57f3f0b Revises: 4fe230f7a26e Create Date: 2021-06-19 20:18:55.332165 """ # revision identifiers, used by Alembic. revision = '3097d57f3f0b' down_revision = '4fe230f7a26e' from alembic import op import sqlalchemy as sa def upgrade(): op.create_index( ...
"""Add new Indexes for faster searching Revision ID: 3097d57f3f0b Revises: 4fe230f7a26e Create Date: 2021-06-19 20:18:55.332165 """ # revision identifiers, used by Alembic. revision = '3097d57f3f0b' down_revision = '4fe230f7a26e' from alembic import op import sqlalchemy as sa def upgrade(): op.create_index( ...
<commit_before>"""Add new Indexes for faster searching Revision ID: 3097d57f3f0b Revises: 4fe230f7a26e Create Date: 2021-06-19 20:18:55.332165 """ # revision identifiers, used by Alembic. revision = '3097d57f3f0b' down_revision = '4fe230f7a26e' from alembic import op import sqlalchemy as sa def upgrade(): op....
"""Add new Indexes for faster searching Revision ID: 3097d57f3f0b Revises: 4fe230f7a26e Create Date: 2021-06-19 20:18:55.332165 """ # revision identifiers, used by Alembic. revision = '3097d57f3f0b' down_revision = '4fe230f7a26e' from alembic import op import sqlalchemy as sa def upgrade(): op.create_index( ...
"""Add new Indexes for faster searching Revision ID: 3097d57f3f0b Revises: 4fe230f7a26e Create Date: 2021-06-19 20:18:55.332165 """ # revision identifiers, used by Alembic. revision = '3097d57f3f0b' down_revision = '4fe230f7a26e' from alembic import op import sqlalchemy as sa def upgrade(): op.create_index( ...
<commit_before>"""Add new Indexes for faster searching Revision ID: 3097d57f3f0b Revises: 4fe230f7a26e Create Date: 2021-06-19 20:18:55.332165 """ # revision identifiers, used by Alembic. revision = '3097d57f3f0b' down_revision = '4fe230f7a26e' from alembic import op import sqlalchemy as sa def upgrade(): op....
69f7490b6ed28c28784148295dec2144344f4ed8
config.py
config.py
import os if os.environ.get('DATABASE_URL') is None: SQLALCHEMY_DATABASE_URI = 'sqlite:///meetup.db' else: SQLALCHEMY_DATABASE_URI = os.environ['DATABASE_URL'] SQLALCHEMY_TRACK_MODIFICATIONS = False # supress deprecation warning ACCESS_TOKEN = os.environ['ACCESS_TOKEN'] PAGE_ID = os.environ['PAGE_ID'] APP_...
import os SQLALCHEMY_DATABASE_URI = os.environ['DATABASE_URL'] SQLALCHEMY_TRACK_MODIFICATIONS = False # suppress deprecation warning ACCESS_TOKEN = os.environ['ACCESS_TOKEN'] PAGE_ID = os.environ['PAGE_ID'] APP_ID = os.environ['APP_ID'] VERIFY_TOKEN = os.environ['VERIFY_TOKEN']
Remove automatic fallback to SQLite
Remove automatic fallback to SQLite It's better to be explicit if there's no DATABASE_URL.
Python
mit
Stark-Mountain/meetup-facebook-bot,Stark-Mountain/meetup-facebook-bot
import os if os.environ.get('DATABASE_URL') is None: SQLALCHEMY_DATABASE_URI = 'sqlite:///meetup.db' else: SQLALCHEMY_DATABASE_URI = os.environ['DATABASE_URL'] SQLALCHEMY_TRACK_MODIFICATIONS = False # supress deprecation warning ACCESS_TOKEN = os.environ['ACCESS_TOKEN'] PAGE_ID = os.environ['PAGE_ID'] APP_...
import os SQLALCHEMY_DATABASE_URI = os.environ['DATABASE_URL'] SQLALCHEMY_TRACK_MODIFICATIONS = False # suppress deprecation warning ACCESS_TOKEN = os.environ['ACCESS_TOKEN'] PAGE_ID = os.environ['PAGE_ID'] APP_ID = os.environ['APP_ID'] VERIFY_TOKEN = os.environ['VERIFY_TOKEN']
<commit_before>import os if os.environ.get('DATABASE_URL') is None: SQLALCHEMY_DATABASE_URI = 'sqlite:///meetup.db' else: SQLALCHEMY_DATABASE_URI = os.environ['DATABASE_URL'] SQLALCHEMY_TRACK_MODIFICATIONS = False # supress deprecation warning ACCESS_TOKEN = os.environ['ACCESS_TOKEN'] PAGE_ID = os.environ[...
import os SQLALCHEMY_DATABASE_URI = os.environ['DATABASE_URL'] SQLALCHEMY_TRACK_MODIFICATIONS = False # suppress deprecation warning ACCESS_TOKEN = os.environ['ACCESS_TOKEN'] PAGE_ID = os.environ['PAGE_ID'] APP_ID = os.environ['APP_ID'] VERIFY_TOKEN = os.environ['VERIFY_TOKEN']
import os if os.environ.get('DATABASE_URL') is None: SQLALCHEMY_DATABASE_URI = 'sqlite:///meetup.db' else: SQLALCHEMY_DATABASE_URI = os.environ['DATABASE_URL'] SQLALCHEMY_TRACK_MODIFICATIONS = False # supress deprecation warning ACCESS_TOKEN = os.environ['ACCESS_TOKEN'] PAGE_ID = os.environ['PAGE_ID'] APP_...
<commit_before>import os if os.environ.get('DATABASE_URL') is None: SQLALCHEMY_DATABASE_URI = 'sqlite:///meetup.db' else: SQLALCHEMY_DATABASE_URI = os.environ['DATABASE_URL'] SQLALCHEMY_TRACK_MODIFICATIONS = False # supress deprecation warning ACCESS_TOKEN = os.environ['ACCESS_TOKEN'] PAGE_ID = os.environ[...
ab1a2982b6a44bfcfcaff5a3469f2d85f56a86a4
src/cli/_dbus/_manager.py
src/cli/_dbus/_manager.py
""" Manager interface. """ class Manager(object): """ Manager interface. """ _INTERFACE_NAME = 'org.storage.stratis1.Manager' def __init__(self, dbus_object): """ Initializer. :param dbus_object: the dbus object """ self._dbus_object = dbus_object def...
""" Manager interface. """ from ._properties import Properties class Manager(object): """ Manager interface. """ _INTERFACE_NAME = 'org.storage.stratis1.Manager' def __init__(self, dbus_object): """ Initializer. :param dbus_object: the dbus object """ se...
Use Properties interface to get Manager properties.
Use Properties interface to get Manager properties. Signed-off-by: mulhern <7b51bcf507bcd7afb72bf8663752c0ddbeb517f6@redhat.com>
Python
apache-2.0
stratis-storage/stratis-cli,stratis-storage/stratis-cli
""" Manager interface. """ class Manager(object): """ Manager interface. """ _INTERFACE_NAME = 'org.storage.stratis1.Manager' def __init__(self, dbus_object): """ Initializer. :param dbus_object: the dbus object """ self._dbus_object = dbus_object def...
""" Manager interface. """ from ._properties import Properties class Manager(object): """ Manager interface. """ _INTERFACE_NAME = 'org.storage.stratis1.Manager' def __init__(self, dbus_object): """ Initializer. :param dbus_object: the dbus object """ se...
<commit_before>""" Manager interface. """ class Manager(object): """ Manager interface. """ _INTERFACE_NAME = 'org.storage.stratis1.Manager' def __init__(self, dbus_object): """ Initializer. :param dbus_object: the dbus object """ self._dbus_object = dbus_...
""" Manager interface. """ from ._properties import Properties class Manager(object): """ Manager interface. """ _INTERFACE_NAME = 'org.storage.stratis1.Manager' def __init__(self, dbus_object): """ Initializer. :param dbus_object: the dbus object """ se...
""" Manager interface. """ class Manager(object): """ Manager interface. """ _INTERFACE_NAME = 'org.storage.stratis1.Manager' def __init__(self, dbus_object): """ Initializer. :param dbus_object: the dbus object """ self._dbus_object = dbus_object def...
<commit_before>""" Manager interface. """ class Manager(object): """ Manager interface. """ _INTERFACE_NAME = 'org.storage.stratis1.Manager' def __init__(self, dbus_object): """ Initializer. :param dbus_object: the dbus object """ self._dbus_object = dbus_...
bdc554d18dc67cd4979bac3bc5d4b7d01b23b8b4
grako/rendering.py
grako/rendering.py
# -*- coding: utf-8 -*- from __future__ import print_function, division, absolute_import, unicode_literals import itertools from .util import trim def render(item, **fields): """ Render the given item """ if item is None: return '' elif isinstance(item, Renderer): return item.render(**f...
# -*- coding: utf-8 -*- from __future__ import print_function, division, absolute_import, unicode_literals import itertools from .util import trim def render(item, **fields): """ Render the given item """ if item is None: return '' elif isinstance(item, Renderer): return item.render(**f...
Allow override of template through return value of render_fields.
Allow override of template through return value of render_fields.
Python
bsd-2-clause
swayf/grako,swayf/grako
# -*- coding: utf-8 -*- from __future__ import print_function, division, absolute_import, unicode_literals import itertools from .util import trim def render(item, **fields): """ Render the given item """ if item is None: return '' elif isinstance(item, Renderer): return item.render(**f...
# -*- coding: utf-8 -*- from __future__ import print_function, division, absolute_import, unicode_literals import itertools from .util import trim def render(item, **fields): """ Render the given item """ if item is None: return '' elif isinstance(item, Renderer): return item.render(**f...
<commit_before># -*- coding: utf-8 -*- from __future__ import print_function, division, absolute_import, unicode_literals import itertools from .util import trim def render(item, **fields): """ Render the given item """ if item is None: return '' elif isinstance(item, Renderer): return ...
# -*- coding: utf-8 -*- from __future__ import print_function, division, absolute_import, unicode_literals import itertools from .util import trim def render(item, **fields): """ Render the given item """ if item is None: return '' elif isinstance(item, Renderer): return item.render(**f...
# -*- coding: utf-8 -*- from __future__ import print_function, division, absolute_import, unicode_literals import itertools from .util import trim def render(item, **fields): """ Render the given item """ if item is None: return '' elif isinstance(item, Renderer): return item.render(**f...
<commit_before># -*- coding: utf-8 -*- from __future__ import print_function, division, absolute_import, unicode_literals import itertools from .util import trim def render(item, **fields): """ Render the given item """ if item is None: return '' elif isinstance(item, Renderer): return ...
f0984c9855a6283de27e717fad73bb4f1b6394ab
flatten-array/flatten_array.py
flatten-array/flatten_array.py
def flatten(lst): """Completely flatten an arbitrarily-deep list""" return [*_flatten(lst)] def _flatten(lst): """Generator for flattening arbitrarily-deep lists""" if isinstance(lst, (list, tuple)): for item in lst: if item is None: continue else: ...
def flatten(lst): """Completely flatten an arbitrarily-deep list""" return [*_flatten(lst)] def _flatten(lst): """Generator for flattening arbitrarily-deep lists""" for item in lst: if isinstance(item, (list, tuple)): yield from _flatten(item) elif item is not None: ...
Tidy and simplify generator code
Tidy and simplify generator code
Python
agpl-3.0
CubicComet/exercism-python-solutions
def flatten(lst): """Completely flatten an arbitrarily-deep list""" return [*_flatten(lst)] def _flatten(lst): """Generator for flattening arbitrarily-deep lists""" if isinstance(lst, (list, tuple)): for item in lst: if item is None: continue else: ...
def flatten(lst): """Completely flatten an arbitrarily-deep list""" return [*_flatten(lst)] def _flatten(lst): """Generator for flattening arbitrarily-deep lists""" for item in lst: if isinstance(item, (list, tuple)): yield from _flatten(item) elif item is not None: ...
<commit_before>def flatten(lst): """Completely flatten an arbitrarily-deep list""" return [*_flatten(lst)] def _flatten(lst): """Generator for flattening arbitrarily-deep lists""" if isinstance(lst, (list, tuple)): for item in lst: if item is None: continue ...
def flatten(lst): """Completely flatten an arbitrarily-deep list""" return [*_flatten(lst)] def _flatten(lst): """Generator for flattening arbitrarily-deep lists""" for item in lst: if isinstance(item, (list, tuple)): yield from _flatten(item) elif item is not None: ...
def flatten(lst): """Completely flatten an arbitrarily-deep list""" return [*_flatten(lst)] def _flatten(lst): """Generator for flattening arbitrarily-deep lists""" if isinstance(lst, (list, tuple)): for item in lst: if item is None: continue else: ...
<commit_before>def flatten(lst): """Completely flatten an arbitrarily-deep list""" return [*_flatten(lst)] def _flatten(lst): """Generator for flattening arbitrarily-deep lists""" if isinstance(lst, (list, tuple)): for item in lst: if item is None: continue ...
8e6a835cf98212545d00f0967b6f6ce936143687
fluxghost/http_server_debug.py
fluxghost/http_server_debug.py
from multiprocessing import Process import sys from fluxghost.http_server_base import HttpServerBase, logger def fork_entry(request, client, server): from fluxghost.http_handler import HttpHandler HttpHandler(request, client, server) def check_autoreload(): if "fluxghost.http_handler" in sys.modules:...
from multiprocessing import Process import sys from fluxghost.http_server_base import HttpServerBase, logger def fork_entry(request, client, server): from fluxghost.http_handler import HttpHandler HttpHandler(request, client, server) def check_autoreload(): if "fluxghost.http_handler" in sys.modules:...
Fix missing close socket error
Fix missing close socket error
Python
agpl-3.0
flux3dp/fluxghost,flux3dp/fluxghost,flux3dp/fluxghost,flux3dp/fluxghost
from multiprocessing import Process import sys from fluxghost.http_server_base import HttpServerBase, logger def fork_entry(request, client, server): from fluxghost.http_handler import HttpHandler HttpHandler(request, client, server) def check_autoreload(): if "fluxghost.http_handler" in sys.modules:...
from multiprocessing import Process import sys from fluxghost.http_server_base import HttpServerBase, logger def fork_entry(request, client, server): from fluxghost.http_handler import HttpHandler HttpHandler(request, client, server) def check_autoreload(): if "fluxghost.http_handler" in sys.modules:...
<commit_before> from multiprocessing import Process import sys from fluxghost.http_server_base import HttpServerBase, logger def fork_entry(request, client, server): from fluxghost.http_handler import HttpHandler HttpHandler(request, client, server) def check_autoreload(): if "fluxghost.http_handler" ...
from multiprocessing import Process import sys from fluxghost.http_server_base import HttpServerBase, logger def fork_entry(request, client, server): from fluxghost.http_handler import HttpHandler HttpHandler(request, client, server) def check_autoreload(): if "fluxghost.http_handler" in sys.modules:...
from multiprocessing import Process import sys from fluxghost.http_server_base import HttpServerBase, logger def fork_entry(request, client, server): from fluxghost.http_handler import HttpHandler HttpHandler(request, client, server) def check_autoreload(): if "fluxghost.http_handler" in sys.modules:...
<commit_before> from multiprocessing import Process import sys from fluxghost.http_server_base import HttpServerBase, logger def fork_entry(request, client, server): from fluxghost.http_handler import HttpHandler HttpHandler(request, client, server) def check_autoreload(): if "fluxghost.http_handler" ...
25746ab22ce7031e1bbee27bb04af73264525f4c
game/functional/test_input.py
game/functional/test_input.py
from twisted.trial.unittest import TestCase from twisted.internet import reactor from game.functional.test_view3d import SceneMixin from game.player import Player from game.vector import Vector class StdoutReportingController(object): # XXX Make an interface for the controller and verify this fake. def __ini...
from pygame import K_q from twisted.trial.unittest import TestCase from twisted.internet import reactor from game.functional.test_view3d import SceneMixin from game.player import Player from game.vector import Vector class QuittableController(object): # XXX Make an interface for the controller and verify these...
Add a functional test for mouse grab.
Add a functional test for mouse grab.
Python
mit
eriknelson/gam3
from twisted.trial.unittest import TestCase from twisted.internet import reactor from game.functional.test_view3d import SceneMixin from game.player import Player from game.vector import Vector class StdoutReportingController(object): # XXX Make an interface for the controller and verify this fake. def __ini...
from pygame import K_q from twisted.trial.unittest import TestCase from twisted.internet import reactor from game.functional.test_view3d import SceneMixin from game.player import Player from game.vector import Vector class QuittableController(object): # XXX Make an interface for the controller and verify these...
<commit_before> from twisted.trial.unittest import TestCase from twisted.internet import reactor from game.functional.test_view3d import SceneMixin from game.player import Player from game.vector import Vector class StdoutReportingController(object): # XXX Make an interface for the controller and verify this fake...
from pygame import K_q from twisted.trial.unittest import TestCase from twisted.internet import reactor from game.functional.test_view3d import SceneMixin from game.player import Player from game.vector import Vector class QuittableController(object): # XXX Make an interface for the controller and verify these...
from twisted.trial.unittest import TestCase from twisted.internet import reactor from game.functional.test_view3d import SceneMixin from game.player import Player from game.vector import Vector class StdoutReportingController(object): # XXX Make an interface for the controller and verify this fake. def __ini...
<commit_before> from twisted.trial.unittest import TestCase from twisted.internet import reactor from game.functional.test_view3d import SceneMixin from game.player import Player from game.vector import Vector class StdoutReportingController(object): # XXX Make an interface for the controller and verify this fake...
ba523056c0ec42fe00aa0f23ff4933b773e03b46
config/__init__.py
config/__init__.py
class Config: DEBUG = False TESTING = False REDIS = { 'host': 'localhost', 'port': 6379, 'db': 0, 'password': None } REDIS_KEY_EXPIRE = 604800 # a week in seconds IMAGE_DIR = './resources' LOG_FILE = 'app.log' class DevelopmentConfig(Config): DEBUG = Tru...
from logging import Formatter from logging.handlers import RotatingFileHandler import logging class Config: DEBUG = False TESTING = False REDIS = { 'host': 'localhost', 'port': 6379, 'db': 0, 'password': None } REDIS_KEY_EXPIRE = 604800 # a week in seconds IMAGE...
Move imports to top of file
Move imports to top of file
Python
mit
Dinoshauer/img-resize
class Config: DEBUG = False TESTING = False REDIS = { 'host': 'localhost', 'port': 6379, 'db': 0, 'password': None } REDIS_KEY_EXPIRE = 604800 # a week in seconds IMAGE_DIR = './resources' LOG_FILE = 'app.log' class DevelopmentConfig(Config): DEBUG = Tru...
from logging import Formatter from logging.handlers import RotatingFileHandler import logging class Config: DEBUG = False TESTING = False REDIS = { 'host': 'localhost', 'port': 6379, 'db': 0, 'password': None } REDIS_KEY_EXPIRE = 604800 # a week in seconds IMAGE...
<commit_before>class Config: DEBUG = False TESTING = False REDIS = { 'host': 'localhost', 'port': 6379, 'db': 0, 'password': None } REDIS_KEY_EXPIRE = 604800 # a week in seconds IMAGE_DIR = './resources' LOG_FILE = 'app.log' class DevelopmentConfig(Config): ...
from logging import Formatter from logging.handlers import RotatingFileHandler import logging class Config: DEBUG = False TESTING = False REDIS = { 'host': 'localhost', 'port': 6379, 'db': 0, 'password': None } REDIS_KEY_EXPIRE = 604800 # a week in seconds IMAGE...
class Config: DEBUG = False TESTING = False REDIS = { 'host': 'localhost', 'port': 6379, 'db': 0, 'password': None } REDIS_KEY_EXPIRE = 604800 # a week in seconds IMAGE_DIR = './resources' LOG_FILE = 'app.log' class DevelopmentConfig(Config): DEBUG = Tru...
<commit_before>class Config: DEBUG = False TESTING = False REDIS = { 'host': 'localhost', 'port': 6379, 'db': 0, 'password': None } REDIS_KEY_EXPIRE = 604800 # a week in seconds IMAGE_DIR = './resources' LOG_FILE = 'app.log' class DevelopmentConfig(Config): ...
2c00876b60cdebfe1ed9ffd93b3064abaf3a20a0
rma/rule/GlobalKeySpace.py
rma/rule/GlobalKeySpace.py
from rma.redis import * class GlobalKeySpace: def __init__(self, redis): """ :param RmaRedis redis: :return: """ self.redis = redis def analyze(self, keys=[]): total_keys = self.redis.total_keys() return [ { 'headers': ['Stat'...
from rma.redis import * class GlobalKeySpace: def __init__(self, redis): """ :param RmaRedis redis: :return: """ self.redis = redis def analyze(self, keys=[]): total_keys = self.redis.total_keys() keys_ = [ ["Total keys in db", total_keys], ...
Add max config to globals
Add max config to globals
Python
mit
gamenet/redis-memory-analyzer
from rma.redis import * class GlobalKeySpace: def __init__(self, redis): """ :param RmaRedis redis: :return: """ self.redis = redis def analyze(self, keys=[]): total_keys = self.redis.total_keys() return [ { 'headers': ['Stat'...
from rma.redis import * class GlobalKeySpace: def __init__(self, redis): """ :param RmaRedis redis: :return: """ self.redis = redis def analyze(self, keys=[]): total_keys = self.redis.total_keys() keys_ = [ ["Total keys in db", total_keys], ...
<commit_before>from rma.redis import * class GlobalKeySpace: def __init__(self, redis): """ :param RmaRedis redis: :return: """ self.redis = redis def analyze(self, keys=[]): total_keys = self.redis.total_keys() return [ { 'he...
from rma.redis import * class GlobalKeySpace: def __init__(self, redis): """ :param RmaRedis redis: :return: """ self.redis = redis def analyze(self, keys=[]): total_keys = self.redis.total_keys() keys_ = [ ["Total keys in db", total_keys], ...
from rma.redis import * class GlobalKeySpace: def __init__(self, redis): """ :param RmaRedis redis: :return: """ self.redis = redis def analyze(self, keys=[]): total_keys = self.redis.total_keys() return [ { 'headers': ['Stat'...
<commit_before>from rma.redis import * class GlobalKeySpace: def __init__(self, redis): """ :param RmaRedis redis: :return: """ self.redis = redis def analyze(self, keys=[]): total_keys = self.redis.total_keys() return [ { 'he...
7a71b2212bd71cb63b4708094a0cc3d409b820eb
bazaar/orders/models.py
bazaar/orders/models.py
from __future__ import unicode_literals from django.db import models from django.utils.encoding import python_2_unicode_compatible from bazaar.listings.models import Publishing, Store @python_2_unicode_compatible class Order(models.Model): ORDER_PENDING = 0 ORDER_COMPLETED = 1 ORDER_STATUS_CHOICES = ( ...
from __future__ import unicode_literals from django.db import models from django.utils.encoding import python_2_unicode_compatible from bazaar.listings.models import Publishing, Store @python_2_unicode_compatible class Order(models.Model): ORDER_PENDING = 0 ORDER_COMPLETED = 1 ORDER_STATUS_CHOICES = ( ...
Order status changed to integer
Order status changed to integer
Python
bsd-2-clause
evonove/django-bazaar,evonove/django-bazaar,meghabhoj/NEWBAZAAR,meghabhoj/NEWBAZAAR,evonove/django-bazaar,meghabhoj/NEWBAZAAR
from __future__ import unicode_literals from django.db import models from django.utils.encoding import python_2_unicode_compatible from bazaar.listings.models import Publishing, Store @python_2_unicode_compatible class Order(models.Model): ORDER_PENDING = 0 ORDER_COMPLETED = 1 ORDER_STATUS_CHOICES = ( ...
from __future__ import unicode_literals from django.db import models from django.utils.encoding import python_2_unicode_compatible from bazaar.listings.models import Publishing, Store @python_2_unicode_compatible class Order(models.Model): ORDER_PENDING = 0 ORDER_COMPLETED = 1 ORDER_STATUS_CHOICES = ( ...
<commit_before>from __future__ import unicode_literals from django.db import models from django.utils.encoding import python_2_unicode_compatible from bazaar.listings.models import Publishing, Store @python_2_unicode_compatible class Order(models.Model): ORDER_PENDING = 0 ORDER_COMPLETED = 1 ORDER_STATU...
from __future__ import unicode_literals from django.db import models from django.utils.encoding import python_2_unicode_compatible from bazaar.listings.models import Publishing, Store @python_2_unicode_compatible class Order(models.Model): ORDER_PENDING = 0 ORDER_COMPLETED = 1 ORDER_STATUS_CHOICES = ( ...
from __future__ import unicode_literals from django.db import models from django.utils.encoding import python_2_unicode_compatible from bazaar.listings.models import Publishing, Store @python_2_unicode_compatible class Order(models.Model): ORDER_PENDING = 0 ORDER_COMPLETED = 1 ORDER_STATUS_CHOICES = ( ...
<commit_before>from __future__ import unicode_literals from django.db import models from django.utils.encoding import python_2_unicode_compatible from bazaar.listings.models import Publishing, Store @python_2_unicode_compatible class Order(models.Model): ORDER_PENDING = 0 ORDER_COMPLETED = 1 ORDER_STATU...
4c90c7445b0ccec8658fa71d50aa78a7de9c74b2
salt/defaults/exitcodes.py
salt/defaults/exitcodes.py
# -*- coding: utf-8 -*- ''' Classification of Salt exit codes. These are intended to augment universal exit codes (found in Python's `os` module with the `EX_` prefix or in `sysexits.h`). ''' # Too many situations use "exit 1" - try not to use it when something # else is more appropriate. EX_GENERIC = 1 # Salt SSH "...
# -*- coding: utf-8 -*- ''' Classification of Salt exit codes. These are intended to augment universal exit codes (found in Python's `os` module with the `EX_` prefix or in `sysexits.h`). ''' # Too many situations use "exit 1" - try not to use it when something # else is more appropriate. EX_GENERIC = 1 # Salt SSH "...
Add Salt specific exit code
Add Salt specific exit code
Python
apache-2.0
saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt
# -*- coding: utf-8 -*- ''' Classification of Salt exit codes. These are intended to augment universal exit codes (found in Python's `os` module with the `EX_` prefix or in `sysexits.h`). ''' # Too many situations use "exit 1" - try not to use it when something # else is more appropriate. EX_GENERIC = 1 # Salt SSH "...
# -*- coding: utf-8 -*- ''' Classification of Salt exit codes. These are intended to augment universal exit codes (found in Python's `os` module with the `EX_` prefix or in `sysexits.h`). ''' # Too many situations use "exit 1" - try not to use it when something # else is more appropriate. EX_GENERIC = 1 # Salt SSH "...
<commit_before># -*- coding: utf-8 -*- ''' Classification of Salt exit codes. These are intended to augment universal exit codes (found in Python's `os` module with the `EX_` prefix or in `sysexits.h`). ''' # Too many situations use "exit 1" - try not to use it when something # else is more appropriate. EX_GENERIC = ...
# -*- coding: utf-8 -*- ''' Classification of Salt exit codes. These are intended to augment universal exit codes (found in Python's `os` module with the `EX_` prefix or in `sysexits.h`). ''' # Too many situations use "exit 1" - try not to use it when something # else is more appropriate. EX_GENERIC = 1 # Salt SSH "...
# -*- coding: utf-8 -*- ''' Classification of Salt exit codes. These are intended to augment universal exit codes (found in Python's `os` module with the `EX_` prefix or in `sysexits.h`). ''' # Too many situations use "exit 1" - try not to use it when something # else is more appropriate. EX_GENERIC = 1 # Salt SSH "...
<commit_before># -*- coding: utf-8 -*- ''' Classification of Salt exit codes. These are intended to augment universal exit codes (found in Python's `os` module with the `EX_` prefix or in `sysexits.h`). ''' # Too many situations use "exit 1" - try not to use it when something # else is more appropriate. EX_GENERIC = ...
e94cb9d7277b2c9312f5b0526faded654d79abcb
tests/test_integration.py
tests/test_integration.py
import os from unittest import TestCase from yoconfigurator.base import read_config from yoconfig import configure_services from pycloudflare.services import CloudFlareService app_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), '..')) conf = read_config(app_dir) class ZonesTest(TestCase): def set...
import os from unittest import TestCase from yoconfigurator.base import read_config from yoconfig import configure_services from pycloudflare.services import CloudFlareService app_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), '..')) conf = read_config(app_dir) class ZonesTest(TestCase): def set...
Test the actual get_zone call
Test the actual get_zone call
Python
mit
gnowxilef/pycloudflare,yola/pycloudflare
import os from unittest import TestCase from yoconfigurator.base import read_config from yoconfig import configure_services from pycloudflare.services import CloudFlareService app_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), '..')) conf = read_config(app_dir) class ZonesTest(TestCase): def set...
import os from unittest import TestCase from yoconfigurator.base import read_config from yoconfig import configure_services from pycloudflare.services import CloudFlareService app_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), '..')) conf = read_config(app_dir) class ZonesTest(TestCase): def set...
<commit_before>import os from unittest import TestCase from yoconfigurator.base import read_config from yoconfig import configure_services from pycloudflare.services import CloudFlareService app_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), '..')) conf = read_config(app_dir) class ZonesTest(TestCas...
import os from unittest import TestCase from yoconfigurator.base import read_config from yoconfig import configure_services from pycloudflare.services import CloudFlareService app_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), '..')) conf = read_config(app_dir) class ZonesTest(TestCase): def set...
import os from unittest import TestCase from yoconfigurator.base import read_config from yoconfig import configure_services from pycloudflare.services import CloudFlareService app_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), '..')) conf = read_config(app_dir) class ZonesTest(TestCase): def set...
<commit_before>import os from unittest import TestCase from yoconfigurator.base import read_config from yoconfig import configure_services from pycloudflare.services import CloudFlareService app_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), '..')) conf = read_config(app_dir) class ZonesTest(TestCas...
54fdf3922615d5907a2e5344bf027df389572feb
byceps/services/user/transfer/models.py
byceps/services/user/transfer/models.py
""" byceps.services.user.transfer.models ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :Copyright: 2006-2021 Jochen Kupperschmidt :License: Revised BSD (see `LICENSE` file for details) """ from __future__ import annotations from dataclasses import dataclass from datetime import date from typing import Any, Optional from .......
""" byceps.services.user.transfer.models ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :Copyright: 2006-2021 Jochen Kupperschmidt :License: Revised BSD (see `LICENSE` file for details) """ from __future__ import annotations from dataclasses import dataclass from datetime import date from typing import Any, Optional from .......
Fix display of full user name at least on current user's settings page
Fix display of full user name at least on current user's settings page
Python
bsd-3-clause
homeworkprod/byceps,homeworkprod/byceps,homeworkprod/byceps
""" byceps.services.user.transfer.models ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :Copyright: 2006-2021 Jochen Kupperschmidt :License: Revised BSD (see `LICENSE` file for details) """ from __future__ import annotations from dataclasses import dataclass from datetime import date from typing import Any, Optional from .......
""" byceps.services.user.transfer.models ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :Copyright: 2006-2021 Jochen Kupperschmidt :License: Revised BSD (see `LICENSE` file for details) """ from __future__ import annotations from dataclasses import dataclass from datetime import date from typing import Any, Optional from .......
<commit_before>""" byceps.services.user.transfer.models ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :Copyright: 2006-2021 Jochen Kupperschmidt :License: Revised BSD (see `LICENSE` file for details) """ from __future__ import annotations from dataclasses import dataclass from datetime import date from typing import Any, Opti...
""" byceps.services.user.transfer.models ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :Copyright: 2006-2021 Jochen Kupperschmidt :License: Revised BSD (see `LICENSE` file for details) """ from __future__ import annotations from dataclasses import dataclass from datetime import date from typing import Any, Optional from .......
""" byceps.services.user.transfer.models ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :Copyright: 2006-2021 Jochen Kupperschmidt :License: Revised BSD (see `LICENSE` file for details) """ from __future__ import annotations from dataclasses import dataclass from datetime import date from typing import Any, Optional from .......
<commit_before>""" byceps.services.user.transfer.models ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :Copyright: 2006-2021 Jochen Kupperschmidt :License: Revised BSD (see `LICENSE` file for details) """ from __future__ import annotations from dataclasses import dataclass from datetime import date from typing import Any, Opti...
8c8c0562e42ce789a283cec59771b1d1f3e95a2d
foreman/data_refinery_foreman/surveyor/management/commands/survey_sra.py
foreman/data_refinery_foreman/surveyor/management/commands/survey_sra.py
""" This command will create and run survey jobs for each SRA run accession in the range from start_accession to end_accession. """ from django.core.management.base import BaseCommand from data_refinery_foreman.surveyor import surveyor from data_refinery_common.logging import get_and_configure_logger logger = get_an...
""" This command will create and run survey jobs for each SRA run accession in the range from start_accession to end_accession. """ import boto3 import botocore import uuid from django.core.management.base import BaseCommand from data_refinery_foreman.surveyor import surveyor from data_refinery_common.logging import ...
Add support of s3 path
Add support of s3 path
Python
bsd-3-clause
data-refinery/data_refinery,data-refinery/data_refinery,data-refinery/data_refinery
""" This command will create and run survey jobs for each SRA run accession in the range from start_accession to end_accession. """ from django.core.management.base import BaseCommand from data_refinery_foreman.surveyor import surveyor from data_refinery_common.logging import get_and_configure_logger logger = get_an...
""" This command will create and run survey jobs for each SRA run accession in the range from start_accession to end_accession. """ import boto3 import botocore import uuid from django.core.management.base import BaseCommand from data_refinery_foreman.surveyor import surveyor from data_refinery_common.logging import ...
<commit_before>""" This command will create and run survey jobs for each SRA run accession in the range from start_accession to end_accession. """ from django.core.management.base import BaseCommand from data_refinery_foreman.surveyor import surveyor from data_refinery_common.logging import get_and_configure_logger ...
""" This command will create and run survey jobs for each SRA run accession in the range from start_accession to end_accession. """ import boto3 import botocore import uuid from django.core.management.base import BaseCommand from data_refinery_foreman.surveyor import surveyor from data_refinery_common.logging import ...
""" This command will create and run survey jobs for each SRA run accession in the range from start_accession to end_accession. """ from django.core.management.base import BaseCommand from data_refinery_foreman.surveyor import surveyor from data_refinery_common.logging import get_and_configure_logger logger = get_an...
<commit_before>""" This command will create and run survey jobs for each SRA run accession in the range from start_accession to end_accession. """ from django.core.management.base import BaseCommand from data_refinery_foreman.surveyor import surveyor from data_refinery_common.logging import get_and_configure_logger ...
3a96b839cbe8a2506f4a07a9b2be4acf4ca82e72
src/python/ipc-example.py
src/python/ipc-example.py
#!/usr/bin/env python3 # This file was developed by Thomáš Iser & Thomas Müller <thomas94@gmx.net>. # It is published under the BSD 3-Clause License within the LICENSE file. """ Example usage of tev's Python IPC implementation. """ from ipc import TevIpc import numpy as np if __name__ == "__main__": with TevIpc...
#!/usr/bin/env python3 # This file was developed by Thomáš Iser & Thomas Müller <thomas94@gmx.net>. # It is published under the BSD 3-Clause License within the LICENSE file. """ Example usage of tev's Python IPC implementation. """ from ipc import TevIpc import numpy as np if __name__ == "__main__": with TevIpc...
Use the example to verify tiled image updates are working
Use the example to verify tiled image updates are working
Python
bsd-3-clause
Tom94/tev,Tom94/tev,Tom94/tev,Tom94/tev
#!/usr/bin/env python3 # This file was developed by Thomáš Iser & Thomas Müller <thomas94@gmx.net>. # It is published under the BSD 3-Clause License within the LICENSE file. """ Example usage of tev's Python IPC implementation. """ from ipc import TevIpc import numpy as np if __name__ == "__main__": with TevIpc...
#!/usr/bin/env python3 # This file was developed by Thomáš Iser & Thomas Müller <thomas94@gmx.net>. # It is published under the BSD 3-Clause License within the LICENSE file. """ Example usage of tev's Python IPC implementation. """ from ipc import TevIpc import numpy as np if __name__ == "__main__": with TevIpc...
<commit_before>#!/usr/bin/env python3 # This file was developed by Thomáš Iser & Thomas Müller <thomas94@gmx.net>. # It is published under the BSD 3-Clause License within the LICENSE file. """ Example usage of tev's Python IPC implementation. """ from ipc import TevIpc import numpy as np if __name__ == "__main__": ...
#!/usr/bin/env python3 # This file was developed by Thomáš Iser & Thomas Müller <thomas94@gmx.net>. # It is published under the BSD 3-Clause License within the LICENSE file. """ Example usage of tev's Python IPC implementation. """ from ipc import TevIpc import numpy as np if __name__ == "__main__": with TevIpc...
#!/usr/bin/env python3 # This file was developed by Thomáš Iser & Thomas Müller <thomas94@gmx.net>. # It is published under the BSD 3-Clause License within the LICENSE file. """ Example usage of tev's Python IPC implementation. """ from ipc import TevIpc import numpy as np if __name__ == "__main__": with TevIpc...
<commit_before>#!/usr/bin/env python3 # This file was developed by Thomáš Iser & Thomas Müller <thomas94@gmx.net>. # It is published under the BSD 3-Clause License within the LICENSE file. """ Example usage of tev's Python IPC implementation. """ from ipc import TevIpc import numpy as np if __name__ == "__main__": ...
dbcd40d339968ece3ddb94d5fe9f6ddaab881967
zou/event_stream.py
zou/event_stream.py
import os from flask import Flask from flask_sse import sse app = Flask(__name__) redis_host = os.environ.get("KV_HOST", "localhost") redis_port = os.environ.get("KV_PORT", "5379") redis_url = "redis://%s:%s/2" % (redis_host, redis_port) app.config["REDIS_URL"] = redis_url app.register_blueprint(sse, url_prefix='/...
import os from flask import Flask from flask_sse import sse app = Flask(__name__) redis_host = os.environ.get("KV_HOST", "localhost") redis_port = os.environ.get("KV_PORT", "6379") redis_url = "redis://%s:%s/2" % (redis_host, redis_port) app.config["REDIS_URL"] = redis_url app.register_blueprint(sse, url_prefix='/...
Fix default port for Redis in event stream
Fix default port for Redis in event stream
Python
agpl-3.0
cgwire/zou
import os from flask import Flask from flask_sse import sse app = Flask(__name__) redis_host = os.environ.get("KV_HOST", "localhost") redis_port = os.environ.get("KV_PORT", "5379") redis_url = "redis://%s:%s/2" % (redis_host, redis_port) app.config["REDIS_URL"] = redis_url app.register_blueprint(sse, url_prefix='/...
import os from flask import Flask from flask_sse import sse app = Flask(__name__) redis_host = os.environ.get("KV_HOST", "localhost") redis_port = os.environ.get("KV_PORT", "6379") redis_url = "redis://%s:%s/2" % (redis_host, redis_port) app.config["REDIS_URL"] = redis_url app.register_blueprint(sse, url_prefix='/...
<commit_before>import os from flask import Flask from flask_sse import sse app = Flask(__name__) redis_host = os.environ.get("KV_HOST", "localhost") redis_port = os.environ.get("KV_PORT", "5379") redis_url = "redis://%s:%s/2" % (redis_host, redis_port) app.config["REDIS_URL"] = redis_url app.register_blueprint(sse...
import os from flask import Flask from flask_sse import sse app = Flask(__name__) redis_host = os.environ.get("KV_HOST", "localhost") redis_port = os.environ.get("KV_PORT", "6379") redis_url = "redis://%s:%s/2" % (redis_host, redis_port) app.config["REDIS_URL"] = redis_url app.register_blueprint(sse, url_prefix='/...
import os from flask import Flask from flask_sse import sse app = Flask(__name__) redis_host = os.environ.get("KV_HOST", "localhost") redis_port = os.environ.get("KV_PORT", "5379") redis_url = "redis://%s:%s/2" % (redis_host, redis_port) app.config["REDIS_URL"] = redis_url app.register_blueprint(sse, url_prefix='/...
<commit_before>import os from flask import Flask from flask_sse import sse app = Flask(__name__) redis_host = os.environ.get("KV_HOST", "localhost") redis_port = os.environ.get("KV_PORT", "5379") redis_url = "redis://%s:%s/2" % (redis_host, redis_port) app.config["REDIS_URL"] = redis_url app.register_blueprint(sse...
0cc571d20bfab4f3820f287cac51c0e47093c5c9
website/addons/dropbox/settings/local-dist.py
website/addons/dropbox/settings/local-dist.py
# -*- coding: utf-8 -*- """Example Dropbox local settings file. Copy this file to local.py and change these settings. """ # Get an app key and secret at https://www.dropbox.com/developers/apps DROPBOX_KEY = 'changeme' DROPBOX_SECRET = 'changeme'
# -*- coding: utf-8 -*- """Example Dropbox local settings file. Copy this file to local.py and change these settings. """ # Get an app key and secret at https://www.dropbox.com/developers/apps DROPBOX_KEY = 'changeme' DROPBOX_SECRET = 'changeme'
Fix coding style for travis ci build.
Fix coding style for travis ci build.
Python
apache-2.0
RomanZWang/osf.io,acshi/osf.io,leb2dg/osf.io,cslzchen/osf.io,Johnetordoff/osf.io,amyshi188/osf.io,emetsger/osf.io,Nesiehr/osf.io,HalcyonChimera/osf.io,acshi/osf.io,aaxelb/osf.io,RomanZWang/osf.io,chrisseto/osf.io,hmoco/osf.io,zamattiac/osf.io,TomHeatwole/osf.io,asanfilippo7/osf.io,mluke93/osf.io,crcresearch/osf.io,abou...
# -*- coding: utf-8 -*- """Example Dropbox local settings file. Copy this file to local.py and change these settings. """ # Get an app key and secret at https://www.dropbox.com/developers/apps DROPBOX_KEY = 'changeme' DROPBOX_SECRET = 'changeme'Fix coding style for travis ci build.
# -*- coding: utf-8 -*- """Example Dropbox local settings file. Copy this file to local.py and change these settings. """ # Get an app key and secret at https://www.dropbox.com/developers/apps DROPBOX_KEY = 'changeme' DROPBOX_SECRET = 'changeme'
<commit_before># -*- coding: utf-8 -*- """Example Dropbox local settings file. Copy this file to local.py and change these settings. """ # Get an app key and secret at https://www.dropbox.com/developers/apps DROPBOX_KEY = 'changeme' DROPBOX_SECRET = 'changeme'<commit_msg>Fix coding style for travis ci build.<commit_aft...
# -*- coding: utf-8 -*- """Example Dropbox local settings file. Copy this file to local.py and change these settings. """ # Get an app key and secret at https://www.dropbox.com/developers/apps DROPBOX_KEY = 'changeme' DROPBOX_SECRET = 'changeme'
# -*- coding: utf-8 -*- """Example Dropbox local settings file. Copy this file to local.py and change these settings. """ # Get an app key and secret at https://www.dropbox.com/developers/apps DROPBOX_KEY = 'changeme' DROPBOX_SECRET = 'changeme'Fix coding style for travis ci build.# -*- coding: utf-8 -*- """Example Dro...
<commit_before># -*- coding: utf-8 -*- """Example Dropbox local settings file. Copy this file to local.py and change these settings. """ # Get an app key and secret at https://www.dropbox.com/developers/apps DROPBOX_KEY = 'changeme' DROPBOX_SECRET = 'changeme'<commit_msg>Fix coding style for travis ci build.<commit_aft...
1d652cac957f06afdad9fd64f617494e7f4821e4
application.py
application.py
#!/usr/bin/env python # coding=utf-8 # # Copyright 2015 cc98.org import sys reload(sys) sys.setdefaultencoding("utf-8") import os.path import re import memcache import torndb import tornado.httpserver import tornado.ioloop import tornado.options import tornado.web from tornado.options import define, options from ji...
Add some necessary things to run the app
Add some necessary things to run the app
Python
mit
yiyangyi/cc98-tornado
Add some necessary things to run the app
#!/usr/bin/env python # coding=utf-8 # # Copyright 2015 cc98.org import sys reload(sys) sys.setdefaultencoding("utf-8") import os.path import re import memcache import torndb import tornado.httpserver import tornado.ioloop import tornado.options import tornado.web from tornado.options import define, options from ji...
<commit_before><commit_msg>Add some necessary things to run the app<commit_after>
#!/usr/bin/env python # coding=utf-8 # # Copyright 2015 cc98.org import sys reload(sys) sys.setdefaultencoding("utf-8") import os.path import re import memcache import torndb import tornado.httpserver import tornado.ioloop import tornado.options import tornado.web from tornado.options import define, options from ji...
Add some necessary things to run the app#!/usr/bin/env python # coding=utf-8 # # Copyright 2015 cc98.org import sys reload(sys) sys.setdefaultencoding("utf-8") import os.path import re import memcache import torndb import tornado.httpserver import tornado.ioloop import tornado.options import tornado.web from tornad...
<commit_before><commit_msg>Add some necessary things to run the app<commit_after>#!/usr/bin/env python # coding=utf-8 # # Copyright 2015 cc98.org import sys reload(sys) sys.setdefaultencoding("utf-8") import os.path import re import memcache import torndb import tornado.httpserver import tornado.ioloop import tornad...
6b365ae7d7ab01255643c48755590b8a1a0ae173
src/lib/constants/path.py
src/lib/constants/path.py
VIRTUALENV_DIR = "virtual_env/" VIRTUALENV_ACTIVATE = VIRTUALENV_DIR + "bin/activate_this.py" LOGS = "logs/" YAML = "/etc/ggrc_test.yaml" RESOURCES = "resources/" REQUIREMENTS = RESOURCES + "requirements.txt" SRC = "src/"
VIRTUALENV_DIR = "virtual_env/" BIN_DIR = "bin/" VIRTUALENV_ACTIVATE = "activate_this.py" LOGS = "logs/" YAML = "/etc/ggrc_test.yaml" RESOURCES = "resources/" REQUIREMENTS = RESOURCES + "requirements.txt" SRC = "src/" CHROME_DRIVER = "chromedriver"
Remove operations in module reserved for declaring constants.
Remove operations in module reserved for declaring constants.
Python
apache-2.0
NejcZupec/ggrc-core,plamut/ggrc-core,j0gurt/ggrc-core,NejcZupec/ggrc-core,jmakov/ggrc-core,jmakov/ggrc-core,j0gurt/ggrc-core,VinnieJohns/ggrc-core,jmakov/ggrc-core,kr41/ggrc-core,kr41/ggrc-core,kr41/ggrc-core,VinnieJohns/ggrc-core,andrei-karalionak/ggrc-core,AleksNeStu/ggrc-core,josthkko/ggrc-core,selahssea/ggrc-core,s...
VIRTUALENV_DIR = "virtual_env/" VIRTUALENV_ACTIVATE = VIRTUALENV_DIR + "bin/activate_this.py" LOGS = "logs/" YAML = "/etc/ggrc_test.yaml" RESOURCES = "resources/" REQUIREMENTS = RESOURCES + "requirements.txt" SRC = "src/" Remove operations in module reserved for declaring constants.
VIRTUALENV_DIR = "virtual_env/" BIN_DIR = "bin/" VIRTUALENV_ACTIVATE = "activate_this.py" LOGS = "logs/" YAML = "/etc/ggrc_test.yaml" RESOURCES = "resources/" REQUIREMENTS = RESOURCES + "requirements.txt" SRC = "src/" CHROME_DRIVER = "chromedriver"
<commit_before>VIRTUALENV_DIR = "virtual_env/" VIRTUALENV_ACTIVATE = VIRTUALENV_DIR + "bin/activate_this.py" LOGS = "logs/" YAML = "/etc/ggrc_test.yaml" RESOURCES = "resources/" REQUIREMENTS = RESOURCES + "requirements.txt" SRC = "src/" <commit_msg>Remove operations in module reserved for declaring constants.<commit_af...
VIRTUALENV_DIR = "virtual_env/" BIN_DIR = "bin/" VIRTUALENV_ACTIVATE = "activate_this.py" LOGS = "logs/" YAML = "/etc/ggrc_test.yaml" RESOURCES = "resources/" REQUIREMENTS = RESOURCES + "requirements.txt" SRC = "src/" CHROME_DRIVER = "chromedriver"
VIRTUALENV_DIR = "virtual_env/" VIRTUALENV_ACTIVATE = VIRTUALENV_DIR + "bin/activate_this.py" LOGS = "logs/" YAML = "/etc/ggrc_test.yaml" RESOURCES = "resources/" REQUIREMENTS = RESOURCES + "requirements.txt" SRC = "src/" Remove operations in module reserved for declaring constants.VIRTUALENV_DIR = "virtual_env/" BIN_D...
<commit_before>VIRTUALENV_DIR = "virtual_env/" VIRTUALENV_ACTIVATE = VIRTUALENV_DIR + "bin/activate_this.py" LOGS = "logs/" YAML = "/etc/ggrc_test.yaml" RESOURCES = "resources/" REQUIREMENTS = RESOURCES + "requirements.txt" SRC = "src/" <commit_msg>Remove operations in module reserved for declaring constants.<commit_af...
5f6d994dfde18206e000537510b87f451234f1d3
installer/installer_config/forms.py
installer/installer_config/forms.py
from django import forms from django.forms.models import ModelForm from installer_config.models import EnvironmentProfile, Package, TerminalPrompt class EnvironmentForm(ModelForm): packages = forms.ModelMultipleChoiceField(widget=forms.CheckboxSelectMultiple, queryse...
from django import forms from django.forms.models import ModelForm from installer_config.models import EnvironmentProfile, UserChoice class EnvironmentForm(ModelForm): packages = forms.ModelMultipleChoiceField(widget=forms.CheckboxSelectMultiple, queryset=UserChoice....
Fix form to query UserChoices, not Packages
Fix form to query UserChoices, not Packages
Python
mit
ezPy-co/ezpy,ezPy-co/ezpy,alibulota/Package_Installer,alibulota/Package_Installer
from django import forms from django.forms.models import ModelForm from installer_config.models import EnvironmentProfile, Package, TerminalPrompt class EnvironmentForm(ModelForm): packages = forms.ModelMultipleChoiceField(widget=forms.CheckboxSelectMultiple, queryse...
from django import forms from django.forms.models import ModelForm from installer_config.models import EnvironmentProfile, UserChoice class EnvironmentForm(ModelForm): packages = forms.ModelMultipleChoiceField(widget=forms.CheckboxSelectMultiple, queryset=UserChoice....
<commit_before>from django import forms from django.forms.models import ModelForm from installer_config.models import EnvironmentProfile, Package, TerminalPrompt class EnvironmentForm(ModelForm): packages = forms.ModelMultipleChoiceField(widget=forms.CheckboxSelectMultiple, ...
from django import forms from django.forms.models import ModelForm from installer_config.models import EnvironmentProfile, UserChoice class EnvironmentForm(ModelForm): packages = forms.ModelMultipleChoiceField(widget=forms.CheckboxSelectMultiple, queryset=UserChoice....
from django import forms from django.forms.models import ModelForm from installer_config.models import EnvironmentProfile, Package, TerminalPrompt class EnvironmentForm(ModelForm): packages = forms.ModelMultipleChoiceField(widget=forms.CheckboxSelectMultiple, queryse...
<commit_before>from django import forms from django.forms.models import ModelForm from installer_config.models import EnvironmentProfile, Package, TerminalPrompt class EnvironmentForm(ModelForm): packages = forms.ModelMultipleChoiceField(widget=forms.CheckboxSelectMultiple, ...