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
9745638bbb58b0ccef543a76d1f0677d4dda6c03
setup.py
setup.py
from setuptools import find_packages, setup import versioneer setup( name="bmipy", version=versioneer.get_version(), description="Basic Model Interface for Python", author="Eric Hutton", author_email="[email protected]", url="http://csdms.colorado.edu", classifiers=[ "Intended ...
from setuptools import find_packages, setup import versioneer setup( name="bmipy", version=versioneer.get_version(), description="Basic Model Interface for Python", author="Eric Hutton", author_email="[email protected]", url="http://csdms.colorado.edu", classifiers=[ "Intended ...
Add numpy as an install requirement.
Add numpy as an install requirement.
Python
mit
csdms/bmi-python
from setuptools import find_packages, setup import versioneer setup( name="bmipy", version=versioneer.get_version(), description="Basic Model Interface for Python", author="Eric Hutton", author_email="[email protected]", url="http://csdms.colorado.edu", classifiers=[ "Intended ...
from setuptools import find_packages, setup import versioneer setup( name="bmipy", version=versioneer.get_version(), description="Basic Model Interface for Python", author="Eric Hutton", author_email="[email protected]", url="http://csdms.colorado.edu", classifiers=[ "Intended ...
<commit_before>from setuptools import find_packages, setup import versioneer setup( name="bmipy", version=versioneer.get_version(), description="Basic Model Interface for Python", author="Eric Hutton", author_email="[email protected]", url="http://csdms.colorado.edu", classifiers=[ ...
from setuptools import find_packages, setup import versioneer setup( name="bmipy", version=versioneer.get_version(), description="Basic Model Interface for Python", author="Eric Hutton", author_email="[email protected]", url="http://csdms.colorado.edu", classifiers=[ "Intended ...
from setuptools import find_packages, setup import versioneer setup( name="bmipy", version=versioneer.get_version(), description="Basic Model Interface for Python", author="Eric Hutton", author_email="[email protected]", url="http://csdms.colorado.edu", classifiers=[ "Intended ...
<commit_before>from setuptools import find_packages, setup import versioneer setup( name="bmipy", version=versioneer.get_version(), description="Basic Model Interface for Python", author="Eric Hutton", author_email="[email protected]", url="http://csdms.colorado.edu", classifiers=[ ...
889174cf77f31b7a683085dffb109c1ca8445ae4
setup.py
setup.py
# -*- coding: utf-8 -*- from setuptools import setup VERSION = '0.1.2' setup( name='tree_extractor', version=VERSION, description="Lib to extract html elements by preserving ancestors and cleaning CSS", author=u'Jurismarchés', author_email='[email protected]', url='https://github.com/j...
# -*- coding: utf-8 -*- from setuptools import setup VERSION = '0.1.3' with open('README.rst', 'r') as f: long_description = f.read() setup( name='tree_extractor', version=VERSION, description="Lib to extract html elements by preserving ancestors and cleaning CSS", long_description=long_descripti...
Add long description and bump version number
Add long description and bump version number
Python
mit
jurismarches/chopper
# -*- coding: utf-8 -*- from setuptools import setup VERSION = '0.1.2' setup( name='tree_extractor', version=VERSION, description="Lib to extract html elements by preserving ancestors and cleaning CSS", author=u'Jurismarchés', author_email='[email protected]', url='https://github.com/j...
# -*- coding: utf-8 -*- from setuptools import setup VERSION = '0.1.3' with open('README.rst', 'r') as f: long_description = f.read() setup( name='tree_extractor', version=VERSION, description="Lib to extract html elements by preserving ancestors and cleaning CSS", long_description=long_descripti...
<commit_before># -*- coding: utf-8 -*- from setuptools import setup VERSION = '0.1.2' setup( name='tree_extractor', version=VERSION, description="Lib to extract html elements by preserving ancestors and cleaning CSS", author=u'Jurismarchés', author_email='[email protected]', url='https...
# -*- coding: utf-8 -*- from setuptools import setup VERSION = '0.1.3' with open('README.rst', 'r') as f: long_description = f.read() setup( name='tree_extractor', version=VERSION, description="Lib to extract html elements by preserving ancestors and cleaning CSS", long_description=long_descripti...
# -*- coding: utf-8 -*- from setuptools import setup VERSION = '0.1.2' setup( name='tree_extractor', version=VERSION, description="Lib to extract html elements by preserving ancestors and cleaning CSS", author=u'Jurismarchés', author_email='[email protected]', url='https://github.com/j...
<commit_before># -*- coding: utf-8 -*- from setuptools import setup VERSION = '0.1.2' setup( name='tree_extractor', version=VERSION, description="Lib to extract html elements by preserving ancestors and cleaning CSS", author=u'Jurismarchés', author_email='[email protected]', url='https...
52f936b943471fae3f320da1eaeabd49ab0ed959
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() os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup(name='django-autocert', version='0.1.4', packages=['autocert'], include_...
import os from setuptools import setup with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme: README = readme.read() os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup(name='django-autocert', version='0.1.4', packages=['autocert'], include_...
Add temp dependency on josepy until acme adds it
Add temp dependency on josepy until acme adds it
Python
mit
farrepa/django-autocert
import os from setuptools import setup with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme: README = readme.read() os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup(name='django-autocert', version='0.1.4', packages=['autocert'], include_...
import os from setuptools import setup with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme: README = readme.read() os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup(name='django-autocert', version='0.1.4', packages=['autocert'], include_...
<commit_before>import os from setuptools import setup with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme: README = readme.read() os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup(name='django-autocert', version='0.1.4', packages=['autocert'],...
import os from setuptools import setup with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme: README = readme.read() os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup(name='django-autocert', version='0.1.4', packages=['autocert'], include_...
import os from setuptools import setup with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme: README = readme.read() os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup(name='django-autocert', version='0.1.4', packages=['autocert'], include_...
<commit_before>import os from setuptools import setup with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme: README = readme.read() os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup(name='django-autocert', version='0.1.4', packages=['autocert'],...
a1b3d04d33d3b59b2829e552747f6113241fdd7a
setup.py
setup.py
from setuptools import setup from tumblr_reader import __version__ setup( name='django-tumblr-reader', version=__version__, author='Zach Snow', author_email='[email protected]', packages=['tumblr_reader', 'tumblr_reader.templatetags'], url='http://zachsnow.com/projects/', license='LICENSE.rst'...
from setuptools import setup from tumblr_reader import __version__ setup( name='django-tumblr-reader', version=__version__, author='Zach Snow', author_email='[email protected]', packages=['tumblr_reader', 'tumblr_reader.templatetags'], include_package_data=True, url='http://zachsnow.com/projec...
Make sure to actually include the stuff in the manifest.
Make sure to actually include the stuff in the manifest.
Python
mit
zachsnow/django-tumblr-reader,zachsnow/django-tumblr-reader
from setuptools import setup from tumblr_reader import __version__ setup( name='django-tumblr-reader', version=__version__, author='Zach Snow', author_email='[email protected]', packages=['tumblr_reader', 'tumblr_reader.templatetags'], url='http://zachsnow.com/projects/', license='LICENSE.rst'...
from setuptools import setup from tumblr_reader import __version__ setup( name='django-tumblr-reader', version=__version__, author='Zach Snow', author_email='[email protected]', packages=['tumblr_reader', 'tumblr_reader.templatetags'], include_package_data=True, url='http://zachsnow.com/projec...
<commit_before>from setuptools import setup from tumblr_reader import __version__ setup( name='django-tumblr-reader', version=__version__, author='Zach Snow', author_email='[email protected]', packages=['tumblr_reader', 'tumblr_reader.templatetags'], url='http://zachsnow.com/projects/', licens...
from setuptools import setup from tumblr_reader import __version__ setup( name='django-tumblr-reader', version=__version__, author='Zach Snow', author_email='[email protected]', packages=['tumblr_reader', 'tumblr_reader.templatetags'], include_package_data=True, url='http://zachsnow.com/projec...
from setuptools import setup from tumblr_reader import __version__ setup( name='django-tumblr-reader', version=__version__, author='Zach Snow', author_email='[email protected]', packages=['tumblr_reader', 'tumblr_reader.templatetags'], url='http://zachsnow.com/projects/', license='LICENSE.rst'...
<commit_before>from setuptools import setup from tumblr_reader import __version__ setup( name='django-tumblr-reader', version=__version__, author='Zach Snow', author_email='[email protected]', packages=['tumblr_reader', 'tumblr_reader.templatetags'], url='http://zachsnow.com/projects/', licens...
eba11d1cf17a6e240ac89edebe0e7835a6273cc4
setup.py
setup.py
from setuptools import setup if __name__ == "__main__": with open('README.rst', 'r') as f: long_description = f.read() setup( classifiers=[ 'Environment :: Web Environment', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', ...
from setuptools import setup if __name__ == "__main__": with open('README.rst', 'r') as f: long_description = f.read() setup( classifiers=[ 'Environment :: Web Environment', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', ...
Remove compatibility tag for Python 2.6
Remove compatibility tag for Python 2.6
Python
mit
joac/klein,joac/klein
from setuptools import setup if __name__ == "__main__": with open('README.rst', 'r') as f: long_description = f.read() setup( classifiers=[ 'Environment :: Web Environment', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', ...
from setuptools import setup if __name__ == "__main__": with open('README.rst', 'r') as f: long_description = f.read() setup( classifiers=[ 'Environment :: Web Environment', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', ...
<commit_before>from setuptools import setup if __name__ == "__main__": with open('README.rst', 'r') as f: long_description = f.read() setup( classifiers=[ 'Environment :: Web Environment', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT L...
from setuptools import setup if __name__ == "__main__": with open('README.rst', 'r') as f: long_description = f.read() setup( classifiers=[ 'Environment :: Web Environment', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', ...
from setuptools import setup if __name__ == "__main__": with open('README.rst', 'r') as f: long_description = f.read() setup( classifiers=[ 'Environment :: Web Environment', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', ...
<commit_before>from setuptools import setup if __name__ == "__main__": with open('README.rst', 'r') as f: long_description = f.read() setup( classifiers=[ 'Environment :: Web Environment', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT L...
7fbee246eab2baac089c37a8949f1fd5835c9c98
setup.py
setup.py
from setuptools import setup setup( name='pytest-ui', description='Text User Interface for running python tests', version='0.1', license='MIT', platforms=['linux', 'osx', 'win32'], packages=['pytui'], url='https://github.com/martinsmid/pytest-ui', author_email='[email protected]', ...
from setuptools import setup setup( name='pytest-ui', description='Text User Interface for running python tests', version='0.1b', license='MIT', platforms=['linux', 'osx', 'win32'], packages=['pytui'], url='https://github.com/martinsmid/pytest-ui', author_email='[email protected]', ...
Mark version as beta Remove pytest plugin entrypoint (not ready)
Mark version as beta Remove pytest plugin entrypoint (not ready)
Python
mit
martinsmid/pytest-ui
from setuptools import setup setup( name='pytest-ui', description='Text User Interface for running python tests', version='0.1', license='MIT', platforms=['linux', 'osx', 'win32'], packages=['pytui'], url='https://github.com/martinsmid/pytest-ui', author_email='[email protected]', ...
from setuptools import setup setup( name='pytest-ui', description='Text User Interface for running python tests', version='0.1b', license='MIT', platforms=['linux', 'osx', 'win32'], packages=['pytui'], url='https://github.com/martinsmid/pytest-ui', author_email='[email protected]', ...
<commit_before>from setuptools import setup setup( name='pytest-ui', description='Text User Interface for running python tests', version='0.1', license='MIT', platforms=['linux', 'osx', 'win32'], packages=['pytui'], url='https://github.com/martinsmid/pytest-ui', author_email='martin.smi...
from setuptools import setup setup( name='pytest-ui', description='Text User Interface for running python tests', version='0.1b', license='MIT', platforms=['linux', 'osx', 'win32'], packages=['pytui'], url='https://github.com/martinsmid/pytest-ui', author_email='[email protected]', ...
from setuptools import setup setup( name='pytest-ui', description='Text User Interface for running python tests', version='0.1', license='MIT', platforms=['linux', 'osx', 'win32'], packages=['pytui'], url='https://github.com/martinsmid/pytest-ui', author_email='[email protected]', ...
<commit_before>from setuptools import setup setup( name='pytest-ui', description='Text User Interface for running python tests', version='0.1', license='MIT', platforms=['linux', 'osx', 'win32'], packages=['pytui'], url='https://github.com/martinsmid/pytest-ui', author_email='martin.smi...
9bc84f3be08aa97e68e567e5aa78c3edd23f2b5a
setup.py
setup.py
from setuptools import setup setup( name = 'saml2idp', version = '0.18', author = 'John Samuel Anderson', author_email = '[email protected]', description = 'SAML 2.0 IdP for Django', long_description = 'SAML 2.0 Identity Provider app for Django projects.', install_requires = [ ...
from setuptools import setup setup( name = 'saml2idp', version = '0.18', author = 'John Samuel Anderson', author_email = '[email protected]', description = 'SAML 2.0 IdP for Django', long_description = 'SAML 2.0 Identity Provider app for Django projects.', install_requires = [ ...
Add XML files in template folder to package data
Add XML files in template folder to package data
Python
mit
mobify/dj-saml-idp,mobify/dj-saml-idp,mobify/dj-saml-idp
from setuptools import setup setup( name = 'saml2idp', version = '0.18', author = 'John Samuel Anderson', author_email = '[email protected]', description = 'SAML 2.0 IdP for Django', long_description = 'SAML 2.0 Identity Provider app for Django projects.', install_requires = [ ...
from setuptools import setup setup( name = 'saml2idp', version = '0.18', author = 'John Samuel Anderson', author_email = '[email protected]', description = 'SAML 2.0 IdP for Django', long_description = 'SAML 2.0 Identity Provider app for Django projects.', install_requires = [ ...
<commit_before>from setuptools import setup setup( name = 'saml2idp', version = '0.18', author = 'John Samuel Anderson', author_email = '[email protected]', description = 'SAML 2.0 IdP for Django', long_description = 'SAML 2.0 Identity Provider app for Django projects.', install_r...
from setuptools import setup setup( name = 'saml2idp', version = '0.18', author = 'John Samuel Anderson', author_email = '[email protected]', description = 'SAML 2.0 IdP for Django', long_description = 'SAML 2.0 Identity Provider app for Django projects.', install_requires = [ ...
from setuptools import setup setup( name = 'saml2idp', version = '0.18', author = 'John Samuel Anderson', author_email = '[email protected]', description = 'SAML 2.0 IdP for Django', long_description = 'SAML 2.0 Identity Provider app for Django projects.', install_requires = [ ...
<commit_before>from setuptools import setup setup( name = 'saml2idp', version = '0.18', author = 'John Samuel Anderson', author_email = '[email protected]', description = 'SAML 2.0 IdP for Django', long_description = 'SAML 2.0 Identity Provider app for Django projects.', install_r...
9433c1dde6f082f4f2279a3f3ef776b12bcf70c4
setup.py
setup.py
""" Setup file for statscache """ from setuptools import setup def get_description(): with open('README.rst', 'r') as f: return ''.join(f.readlines()[2:]) requires = [ 'fedmsg', 'fedmsg_meta_fedora_infrastructure', 'sqlalchemy', ] tests_require = [ 'nose', 'freezegun' ] setup( ...
""" Setup file for statscache """ from setuptools import setup def get_description(): with open('README.rst', 'r') as f: return ''.join(f.readlines()[2:]) requires = [ 'fedmsg', 'moksha.hub>=1.4.6', 'fedmsg_meta_fedora_infrastructure', 'sqlalchemy', ] tests_require = [ 'nose', '...
Add Moksha Hub version requirement
Add Moksha Hub version requirement New features of statscache require a moksha installation with corresponding support, or else it won't run at all.
Python
lgpl-2.1
yazman/statscache,yazman/statscache,yazman/statscache
""" Setup file for statscache """ from setuptools import setup def get_description(): with open('README.rst', 'r') as f: return ''.join(f.readlines()[2:]) requires = [ 'fedmsg', 'fedmsg_meta_fedora_infrastructure', 'sqlalchemy', ] tests_require = [ 'nose', 'freezegun' ] setup( ...
""" Setup file for statscache """ from setuptools import setup def get_description(): with open('README.rst', 'r') as f: return ''.join(f.readlines()[2:]) requires = [ 'fedmsg', 'moksha.hub>=1.4.6', 'fedmsg_meta_fedora_infrastructure', 'sqlalchemy', ] tests_require = [ 'nose', '...
<commit_before>""" Setup file for statscache """ from setuptools import setup def get_description(): with open('README.rst', 'r') as f: return ''.join(f.readlines()[2:]) requires = [ 'fedmsg', 'fedmsg_meta_fedora_infrastructure', 'sqlalchemy', ] tests_require = [ 'nose', 'freezegun'...
""" Setup file for statscache """ from setuptools import setup def get_description(): with open('README.rst', 'r') as f: return ''.join(f.readlines()[2:]) requires = [ 'fedmsg', 'moksha.hub>=1.4.6', 'fedmsg_meta_fedora_infrastructure', 'sqlalchemy', ] tests_require = [ 'nose', '...
""" Setup file for statscache """ from setuptools import setup def get_description(): with open('README.rst', 'r') as f: return ''.join(f.readlines()[2:]) requires = [ 'fedmsg', 'fedmsg_meta_fedora_infrastructure', 'sqlalchemy', ] tests_require = [ 'nose', 'freezegun' ] setup( ...
<commit_before>""" Setup file for statscache """ from setuptools import setup def get_description(): with open('README.rst', 'r') as f: return ''.join(f.readlines()[2:]) requires = [ 'fedmsg', 'fedmsg_meta_fedora_infrastructure', 'sqlalchemy', ] tests_require = [ 'nose', 'freezegun'...
7d54a1c2934935fe2919bf053c9897e0c4f48e6a
setup.py
setup.py
#!/usr/bin/env python2.7 from distutils.core import setup setup( name='spreads', version='0.1.0', author='Johannes Baiter', author_email='[email protected]', packages=['spreads', 'spreadsplug'], scripts=['spread', ], url='http://github.com/jbaiter/spreads', license='LICENSE.txt'...
#!/usr/bin/env python2.7 from setuptools import setup, find_packages setup( name='spreads', version='0.1', author='Johannes Baiter', author_email='[email protected]', #packages=['spreads', 'spreadsplug'], packages=find_packages(), scripts=['spread', ], url='http://github.com/jba...
Switch from distutils to distribute
Switch from distutils to distribute
Python
agpl-3.0
miloh/spreads,adongy/spreads,DIYBookScanner/spreads,gareth8118/spreads,gareth8118/spreads,gareth8118/spreads,miloh/spreads,nafraf/spreads,miloh/spreads,adongy/spreads,DIYBookScanner/spreads,DIYBookScanner/spreads,jbaiter/spreads,adongy/spreads,jbaiter/spreads,nafraf/spreads,jbaiter/spreads,nafraf/spreads
#!/usr/bin/env python2.7 from distutils.core import setup setup( name='spreads', version='0.1.0', author='Johannes Baiter', author_email='[email protected]', packages=['spreads', 'spreadsplug'], scripts=['spread', ], url='http://github.com/jbaiter/spreads', license='LICENSE.txt'...
#!/usr/bin/env python2.7 from setuptools import setup, find_packages setup( name='spreads', version='0.1', author='Johannes Baiter', author_email='[email protected]', #packages=['spreads', 'spreadsplug'], packages=find_packages(), scripts=['spread', ], url='http://github.com/jba...
<commit_before>#!/usr/bin/env python2.7 from distutils.core import setup setup( name='spreads', version='0.1.0', author='Johannes Baiter', author_email='[email protected]', packages=['spreads', 'spreadsplug'], scripts=['spread', ], url='http://github.com/jbaiter/spreads', licens...
#!/usr/bin/env python2.7 from setuptools import setup, find_packages setup( name='spreads', version='0.1', author='Johannes Baiter', author_email='[email protected]', #packages=['spreads', 'spreadsplug'], packages=find_packages(), scripts=['spread', ], url='http://github.com/jba...
#!/usr/bin/env python2.7 from distutils.core import setup setup( name='spreads', version='0.1.0', author='Johannes Baiter', author_email='[email protected]', packages=['spreads', 'spreadsplug'], scripts=['spread', ], url='http://github.com/jbaiter/spreads', license='LICENSE.txt'...
<commit_before>#!/usr/bin/env python2.7 from distutils.core import setup setup( name='spreads', version='0.1.0', author='Johannes Baiter', author_email='[email protected]', packages=['spreads', 'spreadsplug'], scripts=['spread', ], url='http://github.com/jbaiter/spreads', licens...
cc9bfdb3185c2fbb6c7d0f6f2cb8b36f8e5024ed
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup, find_packages # Match releases to redis-py versions __version__ = '2.7.2' # Jenkins will replace __build__ with a unique value. __build__ = '' setup(name='mockredis', version=__version__ + __build__, description='Mock for redis-py', url='http://w...
#!/usr/bin/env python from setuptools import setup, find_packages # Match releases to redis-py versions __version__ = '2.7.2' # Jenkins will replace __build__ with a unique value. __build__ = '' setup(name='mockredis', version=__version__ + __build__, description='Mock for redis-py', url='http://w...
Revert use of bintrees; it's not a great fit.
Revert use of bintrees; it's not a great fit.
Python
apache-2.0
yossigo/mockredis,matejkloska/mockredis,path/mockredis,locationlabs/mockredis,optimizely/mockredis
#!/usr/bin/env python from setuptools import setup, find_packages # Match releases to redis-py versions __version__ = '2.7.2' # Jenkins will replace __build__ with a unique value. __build__ = '' setup(name='mockredis', version=__version__ + __build__, description='Mock for redis-py', url='http://w...
#!/usr/bin/env python from setuptools import setup, find_packages # Match releases to redis-py versions __version__ = '2.7.2' # Jenkins will replace __build__ with a unique value. __build__ = '' setup(name='mockredis', version=__version__ + __build__, description='Mock for redis-py', url='http://w...
<commit_before>#!/usr/bin/env python from setuptools import setup, find_packages # Match releases to redis-py versions __version__ = '2.7.2' # Jenkins will replace __build__ with a unique value. __build__ = '' setup(name='mockredis', version=__version__ + __build__, description='Mock for redis-py', ...
#!/usr/bin/env python from setuptools import setup, find_packages # Match releases to redis-py versions __version__ = '2.7.2' # Jenkins will replace __build__ with a unique value. __build__ = '' setup(name='mockredis', version=__version__ + __build__, description='Mock for redis-py', url='http://w...
#!/usr/bin/env python from setuptools import setup, find_packages # Match releases to redis-py versions __version__ = '2.7.2' # Jenkins will replace __build__ with a unique value. __build__ = '' setup(name='mockredis', version=__version__ + __build__, description='Mock for redis-py', url='http://w...
<commit_before>#!/usr/bin/env python from setuptools import setup, find_packages # Match releases to redis-py versions __version__ = '2.7.2' # Jenkins will replace __build__ with a unique value. __build__ = '' setup(name='mockredis', version=__version__ + __build__, description='Mock for redis-py', ...
33eb1ea53c3f999a1134dd180bc4b1d8e38d6a80
setup.py
setup.py
from setuptools import setup, find_packages setup( name="ghostwriter", version="0.0.1", packages=find_packages(), include_package_data=True, install_requires=[ 'flask', "six", "enum34", 'flask_login', 'flask_sqlalchemy' ], test_suite='ghostwriter.test', )
from setuptools import setup, find_packages setup( name="ghostwriter", version="0.0.2", author="Arthur M", description="a simple article/blog management tool of which *you* show how to show" packages=find_packages(), include_package_data=True, install_requires=[ 'flask', "six", "enu...
Add more information to the package
Add more information to the package
Python
mit
arthurmco/ghostwriter,arthurmco/ghostwriter
from setuptools import setup, find_packages setup( name="ghostwriter", version="0.0.1", packages=find_packages(), include_package_data=True, install_requires=[ 'flask', "six", "enum34", 'flask_login', 'flask_sqlalchemy' ], test_suite='ghostwriter.test', ) Add more information to the...
from setuptools import setup, find_packages setup( name="ghostwriter", version="0.0.2", author="Arthur M", description="a simple article/blog management tool of which *you* show how to show" packages=find_packages(), include_package_data=True, install_requires=[ 'flask', "six", "enu...
<commit_before>from setuptools import setup, find_packages setup( name="ghostwriter", version="0.0.1", packages=find_packages(), include_package_data=True, install_requires=[ 'flask', "six", "enum34", 'flask_login', 'flask_sqlalchemy' ], test_suite='ghostwriter.test', ) <commit_msg>...
from setuptools import setup, find_packages setup( name="ghostwriter", version="0.0.2", author="Arthur M", description="a simple article/blog management tool of which *you* show how to show" packages=find_packages(), include_package_data=True, install_requires=[ 'flask', "six", "enu...
from setuptools import setup, find_packages setup( name="ghostwriter", version="0.0.1", packages=find_packages(), include_package_data=True, install_requires=[ 'flask', "six", "enum34", 'flask_login', 'flask_sqlalchemy' ], test_suite='ghostwriter.test', ) Add more information to the...
<commit_before>from setuptools import setup, find_packages setup( name="ghostwriter", version="0.0.1", packages=find_packages(), include_package_data=True, install_requires=[ 'flask', "six", "enum34", 'flask_login', 'flask_sqlalchemy' ], test_suite='ghostwriter.test', ) <commit_msg>...
e6d42d647bd919f178066d8278c649858a164e5e
setup.py
setup.py
import ez_setup ez_setup.use_setuptools() from setuptools import setup, find_packages setup( name = "clamped", version = "0.1", packages = find_packages(), package_data = { "clamped": ["data/*.txt"], }, install_requires = ["clamp>=0.3"], clamp = ["clamped"], )
import ez_setup ez_setup.use_setuptools() from setuptools import setup, find_packages setup( name = "clamped", version = "0.1", packages = find_packages(), install_requires = ["clamp>=0.3"], clamp = { "modules": ["clamped"]}, )
Use new clamp keyword structure
Use new clamp keyword structure
Python
apache-2.0
jimbaker/clamped,jimbaker/clamped
import ez_setup ez_setup.use_setuptools() from setuptools import setup, find_packages setup( name = "clamped", version = "0.1", packages = find_packages(), package_data = { "clamped": ["data/*.txt"], }, install_requires = ["clamp>=0.3"], clamp = ["clamped"], ) Use new clamp keywor...
import ez_setup ez_setup.use_setuptools() from setuptools import setup, find_packages setup( name = "clamped", version = "0.1", packages = find_packages(), install_requires = ["clamp>=0.3"], clamp = { "modules": ["clamped"]}, )
<commit_before>import ez_setup ez_setup.use_setuptools() from setuptools import setup, find_packages setup( name = "clamped", version = "0.1", packages = find_packages(), package_data = { "clamped": ["data/*.txt"], }, install_requires = ["clamp>=0.3"], clamp = ["clamped"], ) <comm...
import ez_setup ez_setup.use_setuptools() from setuptools import setup, find_packages setup( name = "clamped", version = "0.1", packages = find_packages(), install_requires = ["clamp>=0.3"], clamp = { "modules": ["clamped"]}, )
import ez_setup ez_setup.use_setuptools() from setuptools import setup, find_packages setup( name = "clamped", version = "0.1", packages = find_packages(), package_data = { "clamped": ["data/*.txt"], }, install_requires = ["clamp>=0.3"], clamp = ["clamped"], ) Use new clamp keywor...
<commit_before>import ez_setup ez_setup.use_setuptools() from setuptools import setup, find_packages setup( name = "clamped", version = "0.1", packages = find_packages(), package_data = { "clamped": ["data/*.txt"], }, install_requires = ["clamp>=0.3"], clamp = ["clamped"], ) <comm...
19db38abd7390c69192c7ead259b821a19ec97fe
sqlviz.py
sqlviz.py
#! usr/bin/env python3 from docopt import docopt from matplotlib import pyplot class Schema: """ Wraps the SQL source code for a schema and provides methods to get information about that schema. """ def __init__(self, source): """ Creates a new instance of Schema for the specified sou...
#! usr/bin/env python3 from docopt import docopt from matplotlib import pyplot class Schema: """ Wraps the SQL source code for a schema and provides methods to get information about that schema. """ def __init__(self, source): """ Creates a new instance of Schema for the specified sou...
Add comments explaining why methods do nothing
Add comments explaining why methods do nothing
Python
mit
hawkw/sqlviz
#! usr/bin/env python3 from docopt import docopt from matplotlib import pyplot class Schema: """ Wraps the SQL source code for a schema and provides methods to get information about that schema. """ def __init__(self, source): """ Creates a new instance of Schema for the specified sou...
#! usr/bin/env python3 from docopt import docopt from matplotlib import pyplot class Schema: """ Wraps the SQL source code for a schema and provides methods to get information about that schema. """ def __init__(self, source): """ Creates a new instance of Schema for the specified sou...
<commit_before>#! usr/bin/env python3 from docopt import docopt from matplotlib import pyplot class Schema: """ Wraps the SQL source code for a schema and provides methods to get information about that schema. """ def __init__(self, source): """ Creates a new instance of Schema for th...
#! usr/bin/env python3 from docopt import docopt from matplotlib import pyplot class Schema: """ Wraps the SQL source code for a schema and provides methods to get information about that schema. """ def __init__(self, source): """ Creates a new instance of Schema for the specified sou...
#! usr/bin/env python3 from docopt import docopt from matplotlib import pyplot class Schema: """ Wraps the SQL source code for a schema and provides methods to get information about that schema. """ def __init__(self, source): """ Creates a new instance of Schema for the specified sou...
<commit_before>#! usr/bin/env python3 from docopt import docopt from matplotlib import pyplot class Schema: """ Wraps the SQL source code for a schema and provides methods to get information about that schema. """ def __init__(self, source): """ Creates a new instance of Schema for th...
de3161d66ab0a5661d98ace04f5f0ae7c01062bf
smsgateway/utils.py
smsgateway/utils.py
import logging logger = logging.getLogger(__name__) def strspn(source, allowed): newchrs = [] for c in source: if c in allowed: newchrs.append(c) return u''.join(newchrs) def check_cell_phone_number(number): cleaned_number = strspn(number, u'+0123456789') if not u'+' in cleane...
import logging logger = logging.getLogger(__name__) def strspn(source, allowed): newchrs = [] for c in source: if c in allowed: newchrs.append(c) return u''.join(newchrs) def check_cell_phone_number(number): cleaned_number = strspn(number, u'0123456789') #if not u'+' in cleaned...
Use international MSISDN format according to SMPP protocol spec: 4.2.6.1.1
Use international MSISDN format according to SMPP protocol spec: 4.2.6.1.1
Python
bsd-3-clause
peterayeni/django-smsgateway,peterayeni/django-smsgateway,mvpoland/django-smsgateway,mvpoland/django-smsgateway,peterayeni/django-smsgateway,mvpoland/django-smsgateway,peterayeni/django-smsgateway
import logging logger = logging.getLogger(__name__) def strspn(source, allowed): newchrs = [] for c in source: if c in allowed: newchrs.append(c) return u''.join(newchrs) def check_cell_phone_number(number): cleaned_number = strspn(number, u'+0123456789') if not u'+' in cleane...
import logging logger = logging.getLogger(__name__) def strspn(source, allowed): newchrs = [] for c in source: if c in allowed: newchrs.append(c) return u''.join(newchrs) def check_cell_phone_number(number): cleaned_number = strspn(number, u'0123456789') #if not u'+' in cleaned...
<commit_before>import logging logger = logging.getLogger(__name__) def strspn(source, allowed): newchrs = [] for c in source: if c in allowed: newchrs.append(c) return u''.join(newchrs) def check_cell_phone_number(number): cleaned_number = strspn(number, u'+0123456789') if not...
import logging logger = logging.getLogger(__name__) def strspn(source, allowed): newchrs = [] for c in source: if c in allowed: newchrs.append(c) return u''.join(newchrs) def check_cell_phone_number(number): cleaned_number = strspn(number, u'0123456789') #if not u'+' in cleaned...
import logging logger = logging.getLogger(__name__) def strspn(source, allowed): newchrs = [] for c in source: if c in allowed: newchrs.append(c) return u''.join(newchrs) def check_cell_phone_number(number): cleaned_number = strspn(number, u'+0123456789') if not u'+' in cleane...
<commit_before>import logging logger = logging.getLogger(__name__) def strspn(source, allowed): newchrs = [] for c in source: if c in allowed: newchrs.append(c) return u''.join(newchrs) def check_cell_phone_number(number): cleaned_number = strspn(number, u'+0123456789') if not...
22888f6731cf7e6ab0a6cb14088075cf7061d310
sympy/interactive/ipythonprinting.py
sympy/interactive/ipythonprinting.py
""" A print function that pretty prints SymPy objects. :moduleauthor: Brian Granger Usage ===== To use this extension, execute: %load_ext sympy.interactive.ipythonprinting Once the extension is loaded, SymPy Basic objects are automatically pretty-printed in the terminal and rendered in LaTeX in the Qt console ...
""" A print function that pretty prints SymPy objects. :moduleauthor: Brian Granger Usage ===== To use this extension, execute: %load_ext sympy.interactive.ipythonprinting Once the extension is loaded, SymPy Basic objects are automatically pretty-printed in the terminal and rendered in LaTeX in the Qt console ...
Remove checks that module is loaded
Remove checks that module is loaded
Python
bsd-3-clause
wanglongqi/sympy,meghana1995/sympy,skirpichev/omg,ga7g08/sympy,jamesblunt/sympy,Shaswat27/sympy,amitjamadagni/sympy,saurabhjn76/sympy,shikil/sympy,ga7g08/sympy,kevalds51/sympy,maniteja123/sympy,sampadsaha5/sympy,postvakje/sympy,debugger22/sympy,emon10005/sympy,farhaanbukhsh/sympy,diofant/diofant,sunny94/temp,souravsing...
""" A print function that pretty prints SymPy objects. :moduleauthor: Brian Granger Usage ===== To use this extension, execute: %load_ext sympy.interactive.ipythonprinting Once the extension is loaded, SymPy Basic objects are automatically pretty-printed in the terminal and rendered in LaTeX in the Qt console ...
""" A print function that pretty prints SymPy objects. :moduleauthor: Brian Granger Usage ===== To use this extension, execute: %load_ext sympy.interactive.ipythonprinting Once the extension is loaded, SymPy Basic objects are automatically pretty-printed in the terminal and rendered in LaTeX in the Qt console ...
<commit_before>""" A print function that pretty prints SymPy objects. :moduleauthor: Brian Granger Usage ===== To use this extension, execute: %load_ext sympy.interactive.ipythonprinting Once the extension is loaded, SymPy Basic objects are automatically pretty-printed in the terminal and rendered in LaTeX in ...
""" A print function that pretty prints SymPy objects. :moduleauthor: Brian Granger Usage ===== To use this extension, execute: %load_ext sympy.interactive.ipythonprinting Once the extension is loaded, SymPy Basic objects are automatically pretty-printed in the terminal and rendered in LaTeX in the Qt console ...
""" A print function that pretty prints SymPy objects. :moduleauthor: Brian Granger Usage ===== To use this extension, execute: %load_ext sympy.interactive.ipythonprinting Once the extension is loaded, SymPy Basic objects are automatically pretty-printed in the terminal and rendered in LaTeX in the Qt console ...
<commit_before>""" A print function that pretty prints SymPy objects. :moduleauthor: Brian Granger Usage ===== To use this extension, execute: %load_ext sympy.interactive.ipythonprinting Once the extension is loaded, SymPy Basic objects are automatically pretty-printed in the terminal and rendered in LaTeX in ...
10a5f15b1a7703179edac113dcdadd6042fb29f8
txircd/modules/cmode_s.py
txircd/modules/cmode_s.py
from twisted.words.protocols import irc from txircd.modbase import Mode class SecretMode(Mode): def checkPermission(self, user, cmd, data): if cmd != "NAMES": return data remove = [] for chan in data["targetchan"]: if "s" in chan.mode and chan.name not in user.channe...
from twisted.words.protocols import irc from txircd.modbase import Mode class SecretMode(Mode): def checkPermission(self, user, cmd, data): if cmd != "NAMES": return data remove = [] for chan in data["targetchan"]: if "s" in chan.mode and chan.name not in user.channe...
Fix LIST command crashing (again) on certain input
Fix LIST command crashing (again) on certain input
Python
bsd-3-clause
DesertBus/txircd,Heufneutje/txircd,ElementalAlchemist/txircd
from twisted.words.protocols import irc from txircd.modbase import Mode class SecretMode(Mode): def checkPermission(self, user, cmd, data): if cmd != "NAMES": return data remove = [] for chan in data["targetchan"]: if "s" in chan.mode and chan.name not in user.channe...
from twisted.words.protocols import irc from txircd.modbase import Mode class SecretMode(Mode): def checkPermission(self, user, cmd, data): if cmd != "NAMES": return data remove = [] for chan in data["targetchan"]: if "s" in chan.mode and chan.name not in user.channe...
<commit_before>from twisted.words.protocols import irc from txircd.modbase import Mode class SecretMode(Mode): def checkPermission(self, user, cmd, data): if cmd != "NAMES": return data remove = [] for chan in data["targetchan"]: if "s" in chan.mode and chan.name not...
from twisted.words.protocols import irc from txircd.modbase import Mode class SecretMode(Mode): def checkPermission(self, user, cmd, data): if cmd != "NAMES": return data remove = [] for chan in data["targetchan"]: if "s" in chan.mode and chan.name not in user.channe...
from twisted.words.protocols import irc from txircd.modbase import Mode class SecretMode(Mode): def checkPermission(self, user, cmd, data): if cmd != "NAMES": return data remove = [] for chan in data["targetchan"]: if "s" in chan.mode and chan.name not in user.channe...
<commit_before>from twisted.words.protocols import irc from txircd.modbase import Mode class SecretMode(Mode): def checkPermission(self, user, cmd, data): if cmd != "NAMES": return data remove = [] for chan in data["targetchan"]: if "s" in chan.mode and chan.name not...
857350154e11f09a1b4aeecd411ab41df2acf378
tests/integration/test_crossmodel.py
tests/integration/test_crossmodel.py
import pytest from .. import base @base.bootstrapped @pytest.mark.asyncio async def test_offer(event_loop): async with base.CleanModel() as model: application = await model.deploy( 'cs:~jameinel/ubuntu-lite-7', application_name='ubuntu', series='bionic', ch...
import pytest from .. import base @base.bootstrapped @pytest.mark.asyncio async def test_offer(event_loop): async with base.CleanModel() as model: application = await model.deploy( 'cs:~jameinel/ubuntu-lite-7', application_name='ubuntu', series='bionic', ch...
Remove offer with model name
Remove offer with model name
Python
apache-2.0
juju/python-libjuju,juju/python-libjuju
import pytest from .. import base @base.bootstrapped @pytest.mark.asyncio async def test_offer(event_loop): async with base.CleanModel() as model: application = await model.deploy( 'cs:~jameinel/ubuntu-lite-7', application_name='ubuntu', series='bionic', ch...
import pytest from .. import base @base.bootstrapped @pytest.mark.asyncio async def test_offer(event_loop): async with base.CleanModel() as model: application = await model.deploy( 'cs:~jameinel/ubuntu-lite-7', application_name='ubuntu', series='bionic', ch...
<commit_before>import pytest from .. import base @base.bootstrapped @pytest.mark.asyncio async def test_offer(event_loop): async with base.CleanModel() as model: application = await model.deploy( 'cs:~jameinel/ubuntu-lite-7', application_name='ubuntu', series='bionic',...
import pytest from .. import base @base.bootstrapped @pytest.mark.asyncio async def test_offer(event_loop): async with base.CleanModel() as model: application = await model.deploy( 'cs:~jameinel/ubuntu-lite-7', application_name='ubuntu', series='bionic', ch...
import pytest from .. import base @base.bootstrapped @pytest.mark.asyncio async def test_offer(event_loop): async with base.CleanModel() as model: application = await model.deploy( 'cs:~jameinel/ubuntu-lite-7', application_name='ubuntu', series='bionic', ch...
<commit_before>import pytest from .. import base @base.bootstrapped @pytest.mark.asyncio async def test_offer(event_loop): async with base.CleanModel() as model: application = await model.deploy( 'cs:~jameinel/ubuntu-lite-7', application_name='ubuntu', series='bionic',...
6715e42b5a3e0b8b9caea853a073d1aac0495885
phplint.py
phplint.py
import subprocess import os class PHPLint: def __init__(self): self.silent = False def setSilentLint(self, isSilent): self.silent = isSilent def lint(self, path): if os.path.isfile(path): self.lintFile(path) elif os.path.isdir(path): self.lintDir(pa...
import subprocess import os class PHPLint: def __init__(self): self.silent = False def set_silent_lint(self, is_silent): self.silent = is_silent def lint(self, path): if os.path.isfile(path): self.lint_file(path) elif os.path.isdir(path): self.lint_...
Change code to be compliant with PEP 8
Change code to be compliant with PEP 8 This change camel cased functions for underscored function names and properties.
Python
mit
nelsonsar/phplinter
import subprocess import os class PHPLint: def __init__(self): self.silent = False def setSilentLint(self, isSilent): self.silent = isSilent def lint(self, path): if os.path.isfile(path): self.lintFile(path) elif os.path.isdir(path): self.lintDir(pa...
import subprocess import os class PHPLint: def __init__(self): self.silent = False def set_silent_lint(self, is_silent): self.silent = is_silent def lint(self, path): if os.path.isfile(path): self.lint_file(path) elif os.path.isdir(path): self.lint_...
<commit_before>import subprocess import os class PHPLint: def __init__(self): self.silent = False def setSilentLint(self, isSilent): self.silent = isSilent def lint(self, path): if os.path.isfile(path): self.lintFile(path) elif os.path.isdir(path): ...
import subprocess import os class PHPLint: def __init__(self): self.silent = False def set_silent_lint(self, is_silent): self.silent = is_silent def lint(self, path): if os.path.isfile(path): self.lint_file(path) elif os.path.isdir(path): self.lint_...
import subprocess import os class PHPLint: def __init__(self): self.silent = False def setSilentLint(self, isSilent): self.silent = isSilent def lint(self, path): if os.path.isfile(path): self.lintFile(path) elif os.path.isdir(path): self.lintDir(pa...
<commit_before>import subprocess import os class PHPLint: def __init__(self): self.silent = False def setSilentLint(self, isSilent): self.silent = isSilent def lint(self, path): if os.path.isfile(path): self.lintFile(path) elif os.path.isdir(path): ...
e2bc8b6010e979a9c00851d21ee783c8e8e27a55
adaptive/typecheck.py
adaptive/typecheck.py
# Tools for type checking def assertListOf(lst, typ): assert isinstance(lst, list), lst for idx, value in enumerate(lst): #assert isinstance(value, typ), (idx, value) assert value is None or isinstance(value, typ), (idx, value) return True
# Tools for type checking def assertListOf(lst, typ, orNone=True): assert isinstance(lst, list), lst if orNone: for idx, value in enumerate(lst): assert value is None or isinstance(value, typ), (idx, value) else: for idx, value in enumerate(lst): assert isinstance(va...
Add type check helper; make typ or None optional for lists
Add type check helper; make typ or None optional for lists
Python
apache-2.0
datawire/adaptive
# Tools for type checking def assertListOf(lst, typ): assert isinstance(lst, list), lst for idx, value in enumerate(lst): #assert isinstance(value, typ), (idx, value) assert value is None or isinstance(value, typ), (idx, value) return True Add type check helper; make typ or None optional fo...
# Tools for type checking def assertListOf(lst, typ, orNone=True): assert isinstance(lst, list), lst if orNone: for idx, value in enumerate(lst): assert value is None or isinstance(value, typ), (idx, value) else: for idx, value in enumerate(lst): assert isinstance(va...
<commit_before># Tools for type checking def assertListOf(lst, typ): assert isinstance(lst, list), lst for idx, value in enumerate(lst): #assert isinstance(value, typ), (idx, value) assert value is None or isinstance(value, typ), (idx, value) return True <commit_msg>Add type check helper; m...
# Tools for type checking def assertListOf(lst, typ, orNone=True): assert isinstance(lst, list), lst if orNone: for idx, value in enumerate(lst): assert value is None or isinstance(value, typ), (idx, value) else: for idx, value in enumerate(lst): assert isinstance(va...
# Tools for type checking def assertListOf(lst, typ): assert isinstance(lst, list), lst for idx, value in enumerate(lst): #assert isinstance(value, typ), (idx, value) assert value is None or isinstance(value, typ), (idx, value) return True Add type check helper; make typ or None optional fo...
<commit_before># Tools for type checking def assertListOf(lst, typ): assert isinstance(lst, list), lst for idx, value in enumerate(lst): #assert isinstance(value, typ), (idx, value) assert value is None or isinstance(value, typ), (idx, value) return True <commit_msg>Add type check helper; m...
ae78e44461ec710c65479b094dcff257944e1f83
pyof/v0x01/controller2switch/stats_request.py
pyof/v0x01/controller2switch/stats_request.py
"""Query the datapath about its current state.""" # System imports # Third-party imports from pyof.foundation.base import GenericMessage from pyof.foundation.basic_types import ConstantTypeList, UBInt16 # Local imports from pyof.v0x01.common.header import Header, Type from pyof.v0x01.controller2switch.common import ...
"""Query the datapath about its current state.""" # System imports # Third-party imports from pyof.foundation.base import GenericMessage from pyof.foundation.basic_types import BinaryData, UBInt16 # Local imports from pyof.v0x01.common.header import Header, Type from pyof.v0x01.controller2switch.common import StatsT...
Fix StatsRequest body type; add default values
Fix StatsRequest body type; add default values
Python
mit
cemsbr/python-openflow,kytos/python-openflow
"""Query the datapath about its current state.""" # System imports # Third-party imports from pyof.foundation.base import GenericMessage from pyof.foundation.basic_types import ConstantTypeList, UBInt16 # Local imports from pyof.v0x01.common.header import Header, Type from pyof.v0x01.controller2switch.common import ...
"""Query the datapath about its current state.""" # System imports # Third-party imports from pyof.foundation.base import GenericMessage from pyof.foundation.basic_types import BinaryData, UBInt16 # Local imports from pyof.v0x01.common.header import Header, Type from pyof.v0x01.controller2switch.common import StatsT...
<commit_before>"""Query the datapath about its current state.""" # System imports # Third-party imports from pyof.foundation.base import GenericMessage from pyof.foundation.basic_types import ConstantTypeList, UBInt16 # Local imports from pyof.v0x01.common.header import Header, Type from pyof.v0x01.controller2switch...
"""Query the datapath about its current state.""" # System imports # Third-party imports from pyof.foundation.base import GenericMessage from pyof.foundation.basic_types import BinaryData, UBInt16 # Local imports from pyof.v0x01.common.header import Header, Type from pyof.v0x01.controller2switch.common import StatsT...
"""Query the datapath about its current state.""" # System imports # Third-party imports from pyof.foundation.base import GenericMessage from pyof.foundation.basic_types import ConstantTypeList, UBInt16 # Local imports from pyof.v0x01.common.header import Header, Type from pyof.v0x01.controller2switch.common import ...
<commit_before>"""Query the datapath about its current state.""" # System imports # Third-party imports from pyof.foundation.base import GenericMessage from pyof.foundation.basic_types import ConstantTypeList, UBInt16 # Local imports from pyof.v0x01.common.header import Header, Type from pyof.v0x01.controller2switch...
490f2b1f31fb1ec99bdd09db0e3806fc070ea32a
daemon/__init__.py
daemon/__init__.py
# -*- coding: utf-8 -*- # Copyright © 2009 Ben Finney <[email protected]> # Copyright © 2006 Robert Niederreiter # # This is free software: you may copy, modify, and/or distribute this work # under the terms of the Python Software Foundation License, version 2 or # later as published by the Python Software Fo...
# -*- coding: utf-8 -*- # Copyright © 2009 Ben Finney <[email protected]> # Copyright © 2006 Robert Niederreiter # # This is free software: you may copy, modify, and/or distribute this work # under the terms of the Python Software Foundation License, version 2 or # later as published by the Python Software Fo...
Update package docstring for PEP number.
Update package docstring for PEP number.
Python
apache-2.0
wting/python-daemon,eaufavor/python-daemon
# -*- coding: utf-8 -*- # Copyright © 2009 Ben Finney <[email protected]> # Copyright © 2006 Robert Niederreiter # # This is free software: you may copy, modify, and/or distribute this work # under the terms of the Python Software Foundation License, version 2 or # later as published by the Python Software Fo...
# -*- coding: utf-8 -*- # Copyright © 2009 Ben Finney <[email protected]> # Copyright © 2006 Robert Niederreiter # # This is free software: you may copy, modify, and/or distribute this work # under the terms of the Python Software Foundation License, version 2 or # later as published by the Python Software Fo...
<commit_before># -*- coding: utf-8 -*- # Copyright © 2009 Ben Finney <[email protected]> # Copyright © 2006 Robert Niederreiter # # This is free software: you may copy, modify, and/or distribute this work # under the terms of the Python Software Foundation License, version 2 or # later as published by the Pyt...
# -*- coding: utf-8 -*- # Copyright © 2009 Ben Finney <[email protected]> # Copyright © 2006 Robert Niederreiter # # This is free software: you may copy, modify, and/or distribute this work # under the terms of the Python Software Foundation License, version 2 or # later as published by the Python Software Fo...
# -*- coding: utf-8 -*- # Copyright © 2009 Ben Finney <[email protected]> # Copyright © 2006 Robert Niederreiter # # This is free software: you may copy, modify, and/or distribute this work # under the terms of the Python Software Foundation License, version 2 or # later as published by the Python Software Fo...
<commit_before># -*- coding: utf-8 -*- # Copyright © 2009 Ben Finney <[email protected]> # Copyright © 2006 Robert Niederreiter # # This is free software: you may copy, modify, and/or distribute this work # under the terms of the Python Software Foundation License, version 2 or # later as published by the Pyt...
1c8674029a1f1fa4a8f9545f540402ba418bd693
docs/generate_documentation.py
docs/generate_documentation.py
# -*- coding: utf-8 -*- #!/usr/bin/python import os from subprocess import Popen, PIPE import shutil docs_folder_path = os.path.join(os.path.dirname(__file__)) p1 = Popen(u'sphinx-build -M html {src} {dst}'.format( src=docs_folder_path, dst=os.path.join(docs_folder_path, u'_build') ), shell=True, stdin=PIPE, stdo...
# -*- coding: utf-8 -*- #!/usr/bin/python3 import os from subprocess import Popen, PIPE import shutil docs_folder_path = os.path.abspath(os.path.dirname(__file__)) p1 = Popen('python -m sphinx -v -b html {src} {dst}'.format( src=docs_folder_path, dst=os.path.join(docs_folder_path, '_build') ), shell=True, stdin=P...
Fix documentation generating script to work with Python 3
Fix documentation generating script to work with Python 3
Python
agpl-3.0
nabla-c0d3/sslyze
# -*- coding: utf-8 -*- #!/usr/bin/python import os from subprocess import Popen, PIPE import shutil docs_folder_path = os.path.join(os.path.dirname(__file__)) p1 = Popen(u'sphinx-build -M html {src} {dst}'.format( src=docs_folder_path, dst=os.path.join(docs_folder_path, u'_build') ), shell=True, stdin=PIPE, stdo...
# -*- coding: utf-8 -*- #!/usr/bin/python3 import os from subprocess import Popen, PIPE import shutil docs_folder_path = os.path.abspath(os.path.dirname(__file__)) p1 = Popen('python -m sphinx -v -b html {src} {dst}'.format( src=docs_folder_path, dst=os.path.join(docs_folder_path, '_build') ), shell=True, stdin=P...
<commit_before># -*- coding: utf-8 -*- #!/usr/bin/python import os from subprocess import Popen, PIPE import shutil docs_folder_path = os.path.join(os.path.dirname(__file__)) p1 = Popen(u'sphinx-build -M html {src} {dst}'.format( src=docs_folder_path, dst=os.path.join(docs_folder_path, u'_build') ), shell=True, s...
# -*- coding: utf-8 -*- #!/usr/bin/python3 import os from subprocess import Popen, PIPE import shutil docs_folder_path = os.path.abspath(os.path.dirname(__file__)) p1 = Popen('python -m sphinx -v -b html {src} {dst}'.format( src=docs_folder_path, dst=os.path.join(docs_folder_path, '_build') ), shell=True, stdin=P...
# -*- coding: utf-8 -*- #!/usr/bin/python import os from subprocess import Popen, PIPE import shutil docs_folder_path = os.path.join(os.path.dirname(__file__)) p1 = Popen(u'sphinx-build -M html {src} {dst}'.format( src=docs_folder_path, dst=os.path.join(docs_folder_path, u'_build') ), shell=True, stdin=PIPE, stdo...
<commit_before># -*- coding: utf-8 -*- #!/usr/bin/python import os from subprocess import Popen, PIPE import shutil docs_folder_path = os.path.join(os.path.dirname(__file__)) p1 = Popen(u'sphinx-build -M html {src} {dst}'.format( src=docs_folder_path, dst=os.path.join(docs_folder_path, u'_build') ), shell=True, s...
ceee44182b24ecdc0563a9e9a6841993d1978d0c
setup.py
setup.py
from distutils.core import setup setup( name='aJohnShots', version="1.0.0", description='Python module/library for saving Security Hash Algorithms into JSON format.', author='funilrys', author_email='[email protected]', license='GPL-3.0 https://opensource.org/licenses/GPL-3.0', url='http...
from distutils.core import setup setup( name='a_john_shots', version="1.0.0", description='Python module/library for saving Security Hash Algorithms into JSON format.', long_description=open('README').read(), author='funilrys', author_email='[email protected]', license='GPL-3.0 https://o...
Rename + add long_description + update keywords
Rename + add long_description + update keywords
Python
mit
funilrys/A-John-Shots
from distutils.core import setup setup( name='aJohnShots', version="1.0.0", description='Python module/library for saving Security Hash Algorithms into JSON format.', author='funilrys', author_email='[email protected]', license='GPL-3.0 https://opensource.org/licenses/GPL-3.0', url='http...
from distutils.core import setup setup( name='a_john_shots', version="1.0.0", description='Python module/library for saving Security Hash Algorithms into JSON format.', long_description=open('README').read(), author='funilrys', author_email='[email protected]', license='GPL-3.0 https://o...
<commit_before>from distutils.core import setup setup( name='aJohnShots', version="1.0.0", description='Python module/library for saving Security Hash Algorithms into JSON format.', author='funilrys', author_email='[email protected]', license='GPL-3.0 https://opensource.org/licenses/GPL-3.0'...
from distutils.core import setup setup( name='a_john_shots', version="1.0.0", description='Python module/library for saving Security Hash Algorithms into JSON format.', long_description=open('README').read(), author='funilrys', author_email='[email protected]', license='GPL-3.0 https://o...
from distutils.core import setup setup( name='aJohnShots', version="1.0.0", description='Python module/library for saving Security Hash Algorithms into JSON format.', author='funilrys', author_email='[email protected]', license='GPL-3.0 https://opensource.org/licenses/GPL-3.0', url='http...
<commit_before>from distutils.core import setup setup( name='aJohnShots', version="1.0.0", description='Python module/library for saving Security Hash Algorithms into JSON format.', author='funilrys', author_email='[email protected]', license='GPL-3.0 https://opensource.org/licenses/GPL-3.0'...
b2b691c1224e04d873c2673fb2d2734a92e88600
setup.py
setup.py
# -*- coding: utf-8 -*- from setuptools import setup, find_packages setup( name = "OpenFisca-Country-Template", version = "3.7.0", author = "OpenFisca Team", author_email = "[email protected]", classifiers=[ "Development Status :: 5 - Production/Stable", "License :: OSI Approve...
# -*- coding: utf-8 -*- from setuptools import setup, find_packages setup( name = "OpenFisca-Country-Template", version = "3.7.0", author = "OpenFisca Team", author_email = "[email protected]", classifiers=[ "Development Status :: 5 - Production/Stable", "License :: OSI Approve...
Update Core dependency to v27
Update Core dependency to v27
Python
agpl-3.0
openfisca/country-template,openfisca/country-template
# -*- coding: utf-8 -*- from setuptools import setup, find_packages setup( name = "OpenFisca-Country-Template", version = "3.7.0", author = "OpenFisca Team", author_email = "[email protected]", classifiers=[ "Development Status :: 5 - Production/Stable", "License :: OSI Approve...
# -*- coding: utf-8 -*- from setuptools import setup, find_packages setup( name = "OpenFisca-Country-Template", version = "3.7.0", author = "OpenFisca Team", author_email = "[email protected]", classifiers=[ "Development Status :: 5 - Production/Stable", "License :: OSI Approve...
<commit_before># -*- coding: utf-8 -*- from setuptools import setup, find_packages setup( name = "OpenFisca-Country-Template", version = "3.7.0", author = "OpenFisca Team", author_email = "[email protected]", classifiers=[ "Development Status :: 5 - Production/Stable", "License...
# -*- coding: utf-8 -*- from setuptools import setup, find_packages setup( name = "OpenFisca-Country-Template", version = "3.7.0", author = "OpenFisca Team", author_email = "[email protected]", classifiers=[ "Development Status :: 5 - Production/Stable", "License :: OSI Approve...
# -*- coding: utf-8 -*- from setuptools import setup, find_packages setup( name = "OpenFisca-Country-Template", version = "3.7.0", author = "OpenFisca Team", author_email = "[email protected]", classifiers=[ "Development Status :: 5 - Production/Stable", "License :: OSI Approve...
<commit_before># -*- coding: utf-8 -*- from setuptools import setup, find_packages setup( name = "OpenFisca-Country-Template", version = "3.7.0", author = "OpenFisca Team", author_email = "[email protected]", classifiers=[ "Development Status :: 5 - Production/Stable", "License...
addc581df4fd58522329ca6febe6bd82e77938a5
setup.py
setup.py
from setuptools import setup import sys # The argparse module was introduced in python 2.7 or python 3.2 REQUIRES = ["argparse"] if sys.version[:3] in ('2.6', '3.0', '3.1') else [] REQUIRES = REQUIRES + ["wand>=0.4.0"] setup( varsion='0.0.1', name="anki-slides-import", author="Utkarsh Upadhyay", autho...
from setuptools import setup import sys # The argparse module was introduced in python 2.7 or python 3.2 REQUIRES = ["argparse"] if sys.version[:3] in ('2.6', '3.0', '3.1') else [] REQUIRES = REQUIRES + ["wand>=0.4.0"] setup( version='0.0.1', name="anki-slides-import", author="Utkarsh Upadhyay", autho...
Fix format of console_scripts and spelling of version
Fix format of console_scripts and spelling of version
Python
mit
musically-ut/anki-slides-import
from setuptools import setup import sys # The argparse module was introduced in python 2.7 or python 3.2 REQUIRES = ["argparse"] if sys.version[:3] in ('2.6', '3.0', '3.1') else [] REQUIRES = REQUIRES + ["wand>=0.4.0"] setup( varsion='0.0.1', name="anki-slides-import", author="Utkarsh Upadhyay", autho...
from setuptools import setup import sys # The argparse module was introduced in python 2.7 or python 3.2 REQUIRES = ["argparse"] if sys.version[:3] in ('2.6', '3.0', '3.1') else [] REQUIRES = REQUIRES + ["wand>=0.4.0"] setup( version='0.0.1', name="anki-slides-import", author="Utkarsh Upadhyay", autho...
<commit_before>from setuptools import setup import sys # The argparse module was introduced in python 2.7 or python 3.2 REQUIRES = ["argparse"] if sys.version[:3] in ('2.6', '3.0', '3.1') else [] REQUIRES = REQUIRES + ["wand>=0.4.0"] setup( varsion='0.0.1', name="anki-slides-import", author="Utkarsh Upadh...
from setuptools import setup import sys # The argparse module was introduced in python 2.7 or python 3.2 REQUIRES = ["argparse"] if sys.version[:3] in ('2.6', '3.0', '3.1') else [] REQUIRES = REQUIRES + ["wand>=0.4.0"] setup( version='0.0.1', name="anki-slides-import", author="Utkarsh Upadhyay", autho...
from setuptools import setup import sys # The argparse module was introduced in python 2.7 or python 3.2 REQUIRES = ["argparse"] if sys.version[:3] in ('2.6', '3.0', '3.1') else [] REQUIRES = REQUIRES + ["wand>=0.4.0"] setup( varsion='0.0.1', name="anki-slides-import", author="Utkarsh Upadhyay", autho...
<commit_before>from setuptools import setup import sys # The argparse module was introduced in python 2.7 or python 3.2 REQUIRES = ["argparse"] if sys.version[:3] in ('2.6', '3.0', '3.1') else [] REQUIRES = REQUIRES + ["wand>=0.4.0"] setup( varsion='0.0.1', name="anki-slides-import", author="Utkarsh Upadh...
588a4ebcc5cf3a01b6769f1ae1a4df50d50f9010
setup.py
setup.py
#!/usr/bin/env python import os import sys import crabpy from setuptools import setup, find_packages packages = [ 'crabpy', ] requires = [ 'suds-jurko>=0.6.0', 'dogpile.cache' ] setup( name='crabpy', version='0.3.1', description='Interact with AGIV webservices.', long_description=open(...
#!/usr/bin/env python import os import sys import crabpy from setuptools import setup, find_packages packages = [ 'crabpy', ] requires = [ 'suds-jurko>=0.6.0', 'dogpile.cache', 'six' ] setup( name='crabpy', version='0.3.1', description='Interact with AGIV webservices.', long_descri...
Add six for py2/3 compatibility.
Add six for py2/3 compatibility.
Python
mit
OnroerendErfgoed/crabpy
#!/usr/bin/env python import os import sys import crabpy from setuptools import setup, find_packages packages = [ 'crabpy', ] requires = [ 'suds-jurko>=0.6.0', 'dogpile.cache' ] setup( name='crabpy', version='0.3.1', description='Interact with AGIV webservices.', long_description=open(...
#!/usr/bin/env python import os import sys import crabpy from setuptools import setup, find_packages packages = [ 'crabpy', ] requires = [ 'suds-jurko>=0.6.0', 'dogpile.cache', 'six' ] setup( name='crabpy', version='0.3.1', description='Interact with AGIV webservices.', long_descri...
<commit_before>#!/usr/bin/env python import os import sys import crabpy from setuptools import setup, find_packages packages = [ 'crabpy', ] requires = [ 'suds-jurko>=0.6.0', 'dogpile.cache' ] setup( name='crabpy', version='0.3.1', description='Interact with AGIV webservices.', long_de...
#!/usr/bin/env python import os import sys import crabpy from setuptools import setup, find_packages packages = [ 'crabpy', ] requires = [ 'suds-jurko>=0.6.0', 'dogpile.cache', 'six' ] setup( name='crabpy', version='0.3.1', description='Interact with AGIV webservices.', long_descri...
#!/usr/bin/env python import os import sys import crabpy from setuptools import setup, find_packages packages = [ 'crabpy', ] requires = [ 'suds-jurko>=0.6.0', 'dogpile.cache' ] setup( name='crabpy', version='0.3.1', description='Interact with AGIV webservices.', long_description=open(...
<commit_before>#!/usr/bin/env python import os import sys import crabpy from setuptools import setup, find_packages packages = [ 'crabpy', ] requires = [ 'suds-jurko>=0.6.0', 'dogpile.cache' ] setup( name='crabpy', version='0.3.1', description='Interact with AGIV webservices.', long_de...
a6dd042ecc79cef66ab04704c88e30097e981aba
setup.py
setup.py
#!/usr/bin/env python # coding: utf-8 from setuptools import setup, find_packages setup( name="bentoo", description="Benchmarking tools", version="0.14", packages=find_packages(), scripts=["scripts/bentoo-generator.py", "scripts/bentoo-runner.py", "scripts/bentoo-collector.py", "script...
#!/usr/bin/env python # coding: utf-8 from setuptools import setup, find_packages setup( name="bentoo", description="Benchmarking tools", version="0.15.dev", packages=find_packages(), scripts=["scripts/bentoo-generator.py", "scripts/bentoo-runner.py", "scripts/bentoo-collector.py", "sc...
Prepare for next dev cycle
Prepare for next dev cycle
Python
mit
ProgramFan/bentoo
#!/usr/bin/env python # coding: utf-8 from setuptools import setup, find_packages setup( name="bentoo", description="Benchmarking tools", version="0.14", packages=find_packages(), scripts=["scripts/bentoo-generator.py", "scripts/bentoo-runner.py", "scripts/bentoo-collector.py", "script...
#!/usr/bin/env python # coding: utf-8 from setuptools import setup, find_packages setup( name="bentoo", description="Benchmarking tools", version="0.15.dev", packages=find_packages(), scripts=["scripts/bentoo-generator.py", "scripts/bentoo-runner.py", "scripts/bentoo-collector.py", "sc...
<commit_before>#!/usr/bin/env python # coding: utf-8 from setuptools import setup, find_packages setup( name="bentoo", description="Benchmarking tools", version="0.14", packages=find_packages(), scripts=["scripts/bentoo-generator.py", "scripts/bentoo-runner.py", "scripts/bentoo-collect...
#!/usr/bin/env python # coding: utf-8 from setuptools import setup, find_packages setup( name="bentoo", description="Benchmarking tools", version="0.15.dev", packages=find_packages(), scripts=["scripts/bentoo-generator.py", "scripts/bentoo-runner.py", "scripts/bentoo-collector.py", "sc...
#!/usr/bin/env python # coding: utf-8 from setuptools import setup, find_packages setup( name="bentoo", description="Benchmarking tools", version="0.14", packages=find_packages(), scripts=["scripts/bentoo-generator.py", "scripts/bentoo-runner.py", "scripts/bentoo-collector.py", "script...
<commit_before>#!/usr/bin/env python # coding: utf-8 from setuptools import setup, find_packages setup( name="bentoo", description="Benchmarking tools", version="0.14", packages=find_packages(), scripts=["scripts/bentoo-generator.py", "scripts/bentoo-runner.py", "scripts/bentoo-collect...
36909f73f0d59fdf3e919805e7dc19b66484549f
setup.py
setup.py
from parsable import parsable from setuptools import setup with open('README.md') as f: long_description = f.read() setup( name='treecat', version='0.0.1', description='A tree-of-mixtures nonparametric Bayesian model', long_description=long_description, author='Fritz Obermeyer', author_ema...
from parsable import parsable from setuptools import setup try: import pypandoc long_description = pypandoc.convert('README.md', 'rst') except(IOError, ImportError): long_description = open('README.md').read() setup( name='treecat', version='0.0.1', description='A tree-of-mixtures nonparametri...
Use pypandoc to convert README from md to rst
Use pypandoc to convert README from md to rst
Python
apache-2.0
posterior/treecat,posterior/treecat
from parsable import parsable from setuptools import setup with open('README.md') as f: long_description = f.read() setup( name='treecat', version='0.0.1', description='A tree-of-mixtures nonparametric Bayesian model', long_description=long_description, author='Fritz Obermeyer', author_ema...
from parsable import parsable from setuptools import setup try: import pypandoc long_description = pypandoc.convert('README.md', 'rst') except(IOError, ImportError): long_description = open('README.md').read() setup( name='treecat', version='0.0.1', description='A tree-of-mixtures nonparametri...
<commit_before>from parsable import parsable from setuptools import setup with open('README.md') as f: long_description = f.read() setup( name='treecat', version='0.0.1', description='A tree-of-mixtures nonparametric Bayesian model', long_description=long_description, author='Fritz Obermeyer',...
from parsable import parsable from setuptools import setup try: import pypandoc long_description = pypandoc.convert('README.md', 'rst') except(IOError, ImportError): long_description = open('README.md').read() setup( name='treecat', version='0.0.1', description='A tree-of-mixtures nonparametri...
from parsable import parsable from setuptools import setup with open('README.md') as f: long_description = f.read() setup( name='treecat', version='0.0.1', description='A tree-of-mixtures nonparametric Bayesian model', long_description=long_description, author='Fritz Obermeyer', author_ema...
<commit_before>from parsable import parsable from setuptools import setup with open('README.md') as f: long_description = f.read() setup( name='treecat', version='0.0.1', description='A tree-of-mixtures nonparametric Bayesian model', long_description=long_description, author='Fritz Obermeyer',...
469016385d0fe11c397b6d0b4c5ce531a515dfe2
setup.py
setup.py
from setuptools import setup entry_points = { 'console_scripts': [ 'whatportis=whatportis.cli:run', ] } readme = open('README.rst').read() setup( name="whatportis", version="0.6", url='http://github.com/ncrocfer/whatportis', author='Nicolas Crocfer', author_email='[email protected]...
from setuptools import setup entry_points = { 'console_scripts': [ 'whatportis=whatportis.cli:run', ] } readme = open('README.rst').read() setup( name="whatportis", version="0.7", url='http://github.com/ncrocfer/whatportis', author='Nicolas Crocfer', author_email='[email protected]...
Bump version (0.6 -> 0.7)
Bump version (0.6 -> 0.7)
Python
mit
ncrocfer/whatportis
from setuptools import setup entry_points = { 'console_scripts': [ 'whatportis=whatportis.cli:run', ] } readme = open('README.rst').read() setup( name="whatportis", version="0.6", url='http://github.com/ncrocfer/whatportis', author='Nicolas Crocfer', author_email='[email protected]...
from setuptools import setup entry_points = { 'console_scripts': [ 'whatportis=whatportis.cli:run', ] } readme = open('README.rst').read() setup( name="whatportis", version="0.7", url='http://github.com/ncrocfer/whatportis', author='Nicolas Crocfer', author_email='[email protected]...
<commit_before>from setuptools import setup entry_points = { 'console_scripts': [ 'whatportis=whatportis.cli:run', ] } readme = open('README.rst').read() setup( name="whatportis", version="0.6", url='http://github.com/ncrocfer/whatportis', author='Nicolas Crocfer', author_email='nc...
from setuptools import setup entry_points = { 'console_scripts': [ 'whatportis=whatportis.cli:run', ] } readme = open('README.rst').read() setup( name="whatportis", version="0.7", url='http://github.com/ncrocfer/whatportis', author='Nicolas Crocfer', author_email='[email protected]...
from setuptools import setup entry_points = { 'console_scripts': [ 'whatportis=whatportis.cli:run', ] } readme = open('README.rst').read() setup( name="whatportis", version="0.6", url='http://github.com/ncrocfer/whatportis', author='Nicolas Crocfer', author_email='[email protected]...
<commit_before>from setuptools import setup entry_points = { 'console_scripts': [ 'whatportis=whatportis.cli:run', ] } readme = open('README.rst').read() setup( name="whatportis", version="0.6", url='http://github.com/ncrocfer/whatportis', author='Nicolas Crocfer', author_email='nc...
a42ec3c9f01897d1309e1abc05e30e0ff396162e
setup.py
setup.py
from setuptools import setup, find_packages setup( name="lightmatchingengine", url="https://github.com/gavincyi/LightMatchingEngine", license='MIT', author="Gavin Chan", author_email="[email protected]", description="A light matching engine", packages=find_packages(exclude=('tests',)), ...
from setuptools import setup, find_packages setup( name="lightmatchingengine", url="https://github.com/gavincyi/LightMatchingEngine", license='MIT', author="Gavin Chan", author_email="[email protected]", description="A light matching engine", packages=find_packages(exclude=('tests',)), ...
Add required dependencies for performance test
Add required dependencies for performance test
Python
mit
gavincyi/LightMatchingEngine
from setuptools import setup, find_packages setup( name="lightmatchingengine", url="https://github.com/gavincyi/LightMatchingEngine", license='MIT', author="Gavin Chan", author_email="[email protected]", description="A light matching engine", packages=find_packages(exclude=('tests',)), ...
from setuptools import setup, find_packages setup( name="lightmatchingengine", url="https://github.com/gavincyi/LightMatchingEngine", license='MIT', author="Gavin Chan", author_email="[email protected]", description="A light matching engine", packages=find_packages(exclude=('tests',)), ...
<commit_before>from setuptools import setup, find_packages setup( name="lightmatchingengine", url="https://github.com/gavincyi/LightMatchingEngine", license='MIT', author="Gavin Chan", author_email="[email protected]", description="A light matching engine", packages=find_packages(exclud...
from setuptools import setup, find_packages setup( name="lightmatchingengine", url="https://github.com/gavincyi/LightMatchingEngine", license='MIT', author="Gavin Chan", author_email="[email protected]", description="A light matching engine", packages=find_packages(exclude=('tests',)), ...
from setuptools import setup, find_packages setup( name="lightmatchingengine", url="https://github.com/gavincyi/LightMatchingEngine", license='MIT', author="Gavin Chan", author_email="[email protected]", description="A light matching engine", packages=find_packages(exclude=('tests',)), ...
<commit_before>from setuptools import setup, find_packages setup( name="lightmatchingengine", url="https://github.com/gavincyi/LightMatchingEngine", license='MIT', author="Gavin Chan", author_email="[email protected]", description="A light matching engine", packages=find_packages(exclud...
485a5ffe382e45766c60d7b3f35d12c58d8cf2c3
setup.py
setup.py
import os from setuptools import setup, find_packages PYPI_RESTRUCTURED_TEXT_INFO = \ """ Basic Example ------------- :: from assembla import API assembla = API(( '', # Username '', # Password )) print assembla.space(name='Big Project').ticket(number=201).status_name Full documentation at ...
import os from setuptools import setup, find_packages PYPI_RESTRUCTURED_TEXT_INFO = \ """ Basic Example ------------- :: from assembla import API assembla = API(( '', # Username '', # Password )) print assembla.space(name='Big Project').ticket(number=201).status_name Full documentation at ...
Revert "Bumping the version to 1.2.3."
Revert "Bumping the version to 1.2.3." This reverts commit 1b60d37c79fd5da505fe9312756e4eebc1464ddb.
Python
mit
markfinger/assembla
import os from setuptools import setup, find_packages PYPI_RESTRUCTURED_TEXT_INFO = \ """ Basic Example ------------- :: from assembla import API assembla = API(( '', # Username '', # Password )) print assembla.space(name='Big Project').ticket(number=201).status_name Full documentation at ...
import os from setuptools import setup, find_packages PYPI_RESTRUCTURED_TEXT_INFO = \ """ Basic Example ------------- :: from assembla import API assembla = API(( '', # Username '', # Password )) print assembla.space(name='Big Project').ticket(number=201).status_name Full documentation at ...
<commit_before>import os from setuptools import setup, find_packages PYPI_RESTRUCTURED_TEXT_INFO = \ """ Basic Example ------------- :: from assembla import API assembla = API(( '', # Username '', # Password )) print assembla.space(name='Big Project').ticket(number=201).status_name Full do...
import os from setuptools import setup, find_packages PYPI_RESTRUCTURED_TEXT_INFO = \ """ Basic Example ------------- :: from assembla import API assembla = API(( '', # Username '', # Password )) print assembla.space(name='Big Project').ticket(number=201).status_name Full documentation at ...
import os from setuptools import setup, find_packages PYPI_RESTRUCTURED_TEXT_INFO = \ """ Basic Example ------------- :: from assembla import API assembla = API(( '', # Username '', # Password )) print assembla.space(name='Big Project').ticket(number=201).status_name Full documentation at ...
<commit_before>import os from setuptools import setup, find_packages PYPI_RESTRUCTURED_TEXT_INFO = \ """ Basic Example ------------- :: from assembla import API assembla = API(( '', # Username '', # Password )) print assembla.space(name='Big Project').ticket(number=201).status_name Full do...
0dbc27a762c60c7c38af8ea3ee3c463431269309
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup setup(name='check_ruckus_vsz', version='0.13', description='Nagios Check for Ruckus SCG', author='Lukas Schauer', author_email='[email protected]', license='Apache 2.0', packages=['ruckus_vsz_snmp'], scripts=['check_ruckus_vsz...
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup setup(name='check_ruckus_vsz', version='0.13', description='Nagios Check for Ruckus SCG', author='Lukas Schauer', author_email='[email protected]', license='Apache 2.0', packages=['ruckus_vsz_snmp'], scripts=['check_ruckus_vsz...
Fix zip_safe for local installs
Fix zip_safe for local installs
Python
apache-2.0
CygnusNetworks/check_ruckus_vsz,CygnusNetworks/check_ruckus_vsz,CygnusNetworks/check_ruckus_vsz
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup setup(name='check_ruckus_vsz', version='0.13', description='Nagios Check for Ruckus SCG', author='Lukas Schauer', author_email='[email protected]', license='Apache 2.0', packages=['ruckus_vsz_snmp'], scripts=['check_ruckus_vsz...
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup setup(name='check_ruckus_vsz', version='0.13', description='Nagios Check for Ruckus SCG', author='Lukas Schauer', author_email='[email protected]', license='Apache 2.0', packages=['ruckus_vsz_snmp'], scripts=['check_ruckus_vsz...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup setup(name='check_ruckus_vsz', version='0.13', description='Nagios Check for Ruckus SCG', author='Lukas Schauer', author_email='[email protected]', license='Apache 2.0', packages=['ruckus_vsz_snmp'], scripts=['c...
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup setup(name='check_ruckus_vsz', version='0.13', description='Nagios Check for Ruckus SCG', author='Lukas Schauer', author_email='[email protected]', license='Apache 2.0', packages=['ruckus_vsz_snmp'], scripts=['check_ruckus_vsz...
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup setup(name='check_ruckus_vsz', version='0.13', description='Nagios Check for Ruckus SCG', author='Lukas Schauer', author_email='[email protected]', license='Apache 2.0', packages=['ruckus_vsz_snmp'], scripts=['check_ruckus_vsz...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup setup(name='check_ruckus_vsz', version='0.13', description='Nagios Check for Ruckus SCG', author='Lukas Schauer', author_email='[email protected]', license='Apache 2.0', packages=['ruckus_vsz_snmp'], scripts=['c...
b4b2eeb7c5782a638d80acce369e920d671134f3
setup.py
setup.py
#!/usr/bin/env python try: from setuptools import setup, find_packages except ImportError: from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages setup( name='django-bleach', version="0.1.2", description='Easily use bleach with Django models and te...
#!/usr/bin/env python try: from setuptools import setup, find_packages except ImportError: from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages setup( name='django-bleach', version="0.1.2", description='Easily use bleach with Django models and te...
Use `find_packages()` instead of naming packages
Use `find_packages()` instead of naming packages The `templatetags/` files were missed because they were not named. Using `find_packages()` will ensure this does not happen again.
Python
bsd-2-clause
python-force/django-bleach
#!/usr/bin/env python try: from setuptools import setup, find_packages except ImportError: from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages setup( name='django-bleach', version="0.1.2", description='Easily use bleach with Django models and te...
#!/usr/bin/env python try: from setuptools import setup, find_packages except ImportError: from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages setup( name='django-bleach', version="0.1.2", description='Easily use bleach with Django models and te...
<commit_before>#!/usr/bin/env python try: from setuptools import setup, find_packages except ImportError: from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages setup( name='django-bleach', version="0.1.2", description='Easily use bleach with Djang...
#!/usr/bin/env python try: from setuptools import setup, find_packages except ImportError: from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages setup( name='django-bleach', version="0.1.2", description='Easily use bleach with Django models and te...
#!/usr/bin/env python try: from setuptools import setup, find_packages except ImportError: from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages setup( name='django-bleach', version="0.1.2", description='Easily use bleach with Django models and te...
<commit_before>#!/usr/bin/env python try: from setuptools import setup, find_packages except ImportError: from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages setup( name='django-bleach', version="0.1.2", description='Easily use bleach with Djang...
8c73f1845a1807b506cac1797e2f1247cde5a164
setup.py
setup.py
"""Setup for PyPi""" from setuptools import setup setup( name='nik', packages=['nik'], version='1.0', description='Nifty tools and containers', author='Nik Vanderhoof', author_email='[email protected]', url='https://github.com/nvander1/nik', download_url='https://github.com/nvander1/nik/archive/1.0.ta...
"""Setup for PyPi""" from setuptools import setup setup( name='nik', packages=['nik'], version='1.0', description='Nifty tools and containers', author='Nik Vanderhoof', author_email='[email protected]', url='https://github.com/nvander1/nik', download_url='https://github.com/nvander1/ni...
Stop using borked local pylintrc
Stop using borked local pylintrc
Python
mit
nvander1/skrt
"""Setup for PyPi""" from setuptools import setup setup( name='nik', packages=['nik'], version='1.0', description='Nifty tools and containers', author='Nik Vanderhoof', author_email='[email protected]', url='https://github.com/nvander1/nik', download_url='https://github.com/nvander1/nik/archive/1.0.ta...
"""Setup for PyPi""" from setuptools import setup setup( name='nik', packages=['nik'], version='1.0', description='Nifty tools and containers', author='Nik Vanderhoof', author_email='[email protected]', url='https://github.com/nvander1/nik', download_url='https://github.com/nvander1/ni...
<commit_before>"""Setup for PyPi""" from setuptools import setup setup( name='nik', packages=['nik'], version='1.0', description='Nifty tools and containers', author='Nik Vanderhoof', author_email='[email protected]', url='https://github.com/nvander1/nik', download_url='https://github.com/nvander1/nik...
"""Setup for PyPi""" from setuptools import setup setup( name='nik', packages=['nik'], version='1.0', description='Nifty tools and containers', author='Nik Vanderhoof', author_email='[email protected]', url='https://github.com/nvander1/nik', download_url='https://github.com/nvander1/ni...
"""Setup for PyPi""" from setuptools import setup setup( name='nik', packages=['nik'], version='1.0', description='Nifty tools and containers', author='Nik Vanderhoof', author_email='[email protected]', url='https://github.com/nvander1/nik', download_url='https://github.com/nvander1/nik/archive/1.0.ta...
<commit_before>"""Setup for PyPi""" from setuptools import setup setup( name='nik', packages=['nik'], version='1.0', description='Nifty tools and containers', author='Nik Vanderhoof', author_email='[email protected]', url='https://github.com/nvander1/nik', download_url='https://github.com/nvander1/nik...
5b598ac0a950652a5eb13985b9fd2df23149931c
setup.py
setup.py
#!/usr/bin/env python # # Copyright 2011-2012 Splunk, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"): you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
#!/usr/bin/env python # # Copyright 2011-2012 Splunk, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"): you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
Fix splunk module name (splunk => splunklib)
Fix splunk module name (splunk => splunklib)
Python
apache-2.0
kkirsche/splunk-sdk-python,kkirsche/splunk-sdk-python,sullivanmatt/splunk-sdk-python,kkirsche/splunk-sdk-python,splunk/splunk-sdk-python,kkirsche/splunk-sdk-python,splunk/splunk-sdk-python,ww9rivers/splunk-sdk-python,lowtalker/splunk-sdk-python
#!/usr/bin/env python # # Copyright 2011-2012 Splunk, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"): you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
#!/usr/bin/env python # # Copyright 2011-2012 Splunk, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"): you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
<commit_before>#!/usr/bin/env python # # Copyright 2011-2012 Splunk, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"): you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
#!/usr/bin/env python # # Copyright 2011-2012 Splunk, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"): you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
#!/usr/bin/env python # # Copyright 2011-2012 Splunk, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"): you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
<commit_before>#!/usr/bin/env python # # Copyright 2011-2012 Splunk, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"): you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
5ad5bcef00c807dadd9c829f1eb459c4cc73cb5f
src/books/models.py
src/books/models.py
from django.db import models from datetime import datetime from django.utils import timezone # Create your models here. class Book(models.Model): title = models.CharField(max_length=200) author = models.CharField(max_length=200) year = models.DateTimeField('year published', help_text="Please use the following for...
from django.db import models from datetime import datetime from django.utils import timezone # Create your models here. class Book(models.Model): title = models.CharField(max_length=200) edition = models.SmallIntegerField(default=1) author = models.CharField(max_length=200) year = models.DateTimeField('year publis...
Refactor some book model variables
Refactor some book model variables Add an edition field, help texts to some of the fields. Change behaviour of the __str__ method to be more informative.
Python
mit
melkisedek/sen_project,melkisedek/sen_project,melkisedek/sen_project
from django.db import models from datetime import datetime from django.utils import timezone # Create your models here. class Book(models.Model): title = models.CharField(max_length=200) author = models.CharField(max_length=200) year = models.DateTimeField('year published', help_text="Please use the following for...
from django.db import models from datetime import datetime from django.utils import timezone # Create your models here. class Book(models.Model): title = models.CharField(max_length=200) edition = models.SmallIntegerField(default=1) author = models.CharField(max_length=200) year = models.DateTimeField('year publis...
<commit_before>from django.db import models from datetime import datetime from django.utils import timezone # Create your models here. class Book(models.Model): title = models.CharField(max_length=200) author = models.CharField(max_length=200) year = models.DateTimeField('year published', help_text="Please use th...
from django.db import models from datetime import datetime from django.utils import timezone # Create your models here. class Book(models.Model): title = models.CharField(max_length=200) edition = models.SmallIntegerField(default=1) author = models.CharField(max_length=200) year = models.DateTimeField('year publis...
from django.db import models from datetime import datetime from django.utils import timezone # Create your models here. class Book(models.Model): title = models.CharField(max_length=200) author = models.CharField(max_length=200) year = models.DateTimeField('year published', help_text="Please use the following for...
<commit_before>from django.db import models from datetime import datetime from django.utils import timezone # Create your models here. class Book(models.Model): title = models.CharField(max_length=200) author = models.CharField(max_length=200) year = models.DateTimeField('year published', help_text="Please use th...
3d4ec635c04a48fea8c2909c1a6630f89e6abba4
donut/modules/groups/routes.py
donut/modules/groups/routes.py
import flask import json from flask import jsonify from donut.modules.groups import blueprint, helpers @blueprint.route("/1/groups/") def get_groups_list(): # Create a dict of the passed in attribute which are filterable filterable_attrs = ["group_id", "group_name", "group_desc", "type"] attrs = { ...
import flask import json from flask import jsonify from donut.modules.groups import blueprint, helpers @blueprint.route("/1/groups/") def get_groups_list(): # Create a dict of the passed in attribute which are filterable filterable_attrs = ["group_id", "group_name", "group_desc", "type"] attrs = { ...
Send result as json instead of plaintext
Send result as json instead of plaintext
Python
mit
ASCIT/donut,ASCIT/donut-python,ASCIT/donut-python,ASCIT/donut,ASCIT/donut
import flask import json from flask import jsonify from donut.modules.groups import blueprint, helpers @blueprint.route("/1/groups/") def get_groups_list(): # Create a dict of the passed in attribute which are filterable filterable_attrs = ["group_id", "group_name", "group_desc", "type"] attrs = { ...
import flask import json from flask import jsonify from donut.modules.groups import blueprint, helpers @blueprint.route("/1/groups/") def get_groups_list(): # Create a dict of the passed in attribute which are filterable filterable_attrs = ["group_id", "group_name", "group_desc", "type"] attrs = { ...
<commit_before>import flask import json from flask import jsonify from donut.modules.groups import blueprint, helpers @blueprint.route("/1/groups/") def get_groups_list(): # Create a dict of the passed in attribute which are filterable filterable_attrs = ["group_id", "group_name", "group_desc", "type"] a...
import flask import json from flask import jsonify from donut.modules.groups import blueprint, helpers @blueprint.route("/1/groups/") def get_groups_list(): # Create a dict of the passed in attribute which are filterable filterable_attrs = ["group_id", "group_name", "group_desc", "type"] attrs = { ...
import flask import json from flask import jsonify from donut.modules.groups import blueprint, helpers @blueprint.route("/1/groups/") def get_groups_list(): # Create a dict of the passed in attribute which are filterable filterable_attrs = ["group_id", "group_name", "group_desc", "type"] attrs = { ...
<commit_before>import flask import json from flask import jsonify from donut.modules.groups import blueprint, helpers @blueprint.route("/1/groups/") def get_groups_list(): # Create a dict of the passed in attribute which are filterable filterable_attrs = ["group_id", "group_name", "group_desc", "type"] a...
242d9dcb77f627852599381246bbf355a18b585d
setup.py
setup.py
from setuptools import setup with open('README.rst') as f: long_desc = f.read() setup( name='ttrss-python', version='0.1.4', description='A client library for the Tiny Tiny RSS web API', long_description=long_desc, url='https://github.com/Vassius/ttrss-python', auth...
from setuptools import setup with open('README.rst') as f: long_desc = f.read() setup( name='ttrss-python', version='0.1.5', description='A client library for the Tiny Tiny RSS web API', long_description=long_desc, url='https://github.com/Vassius/ttrss-python', auth...
Bump version for PyPI release
Bump version for PyPI release
Python
mit
Vassius/ttrss-python
from setuptools import setup with open('README.rst') as f: long_desc = f.read() setup( name='ttrss-python', version='0.1.4', description='A client library for the Tiny Tiny RSS web API', long_description=long_desc, url='https://github.com/Vassius/ttrss-python', auth...
from setuptools import setup with open('README.rst') as f: long_desc = f.read() setup( name='ttrss-python', version='0.1.5', description='A client library for the Tiny Tiny RSS web API', long_description=long_desc, url='https://github.com/Vassius/ttrss-python', auth...
<commit_before>from setuptools import setup with open('README.rst') as f: long_desc = f.read() setup( name='ttrss-python', version='0.1.4', description='A client library for the Tiny Tiny RSS web API', long_description=long_desc, url='https://github.com/Vassius/ttrss-python...
from setuptools import setup with open('README.rst') as f: long_desc = f.read() setup( name='ttrss-python', version='0.1.5', description='A client library for the Tiny Tiny RSS web API', long_description=long_desc, url='https://github.com/Vassius/ttrss-python', auth...
from setuptools import setup with open('README.rst') as f: long_desc = f.read() setup( name='ttrss-python', version='0.1.4', description='A client library for the Tiny Tiny RSS web API', long_description=long_desc, url='https://github.com/Vassius/ttrss-python', auth...
<commit_before>from setuptools import setup with open('README.rst') as f: long_desc = f.read() setup( name='ttrss-python', version='0.1.4', description='A client library for the Tiny Tiny RSS web API', long_description=long_desc, url='https://github.com/Vassius/ttrss-python...
48918fce2706a6f7a9aa0b001f8f1634a49972c8
dthm4kaiako/config/__init__.py
dthm4kaiako/config/__init__.py
"""Configuration for Django system.""" __version__ = "0.13.1" __version_info__ = tuple( [ int(num) if num.isdigit() else num for num in __version__.replace("-", ".", 1).split(".") ] )
"""Configuration for Django system.""" __version__ = "0.13.2" __version_info__ = tuple( [ int(num) if num.isdigit() else num for num in __version__.replace("-", ".", 1).split(".") ] )
Increment version number to 0.13.2
Increment version number to 0.13.2
Python
mit
uccser/cs4teachers,uccser/cs4teachers,uccser/cs4teachers,uccser/cs4teachers
"""Configuration for Django system.""" __version__ = "0.13.1" __version_info__ = tuple( [ int(num) if num.isdigit() else num for num in __version__.replace("-", ".", 1).split(".") ] ) Increment version number to 0.13.2
"""Configuration for Django system.""" __version__ = "0.13.2" __version_info__ = tuple( [ int(num) if num.isdigit() else num for num in __version__.replace("-", ".", 1).split(".") ] )
<commit_before>"""Configuration for Django system.""" __version__ = "0.13.1" __version_info__ = tuple( [ int(num) if num.isdigit() else num for num in __version__.replace("-", ".", 1).split(".") ] ) <commit_msg>Increment version number to 0.13.2<commit_after>
"""Configuration for Django system.""" __version__ = "0.13.2" __version_info__ = tuple( [ int(num) if num.isdigit() else num for num in __version__.replace("-", ".", 1).split(".") ] )
"""Configuration for Django system.""" __version__ = "0.13.1" __version_info__ = tuple( [ int(num) if num.isdigit() else num for num in __version__.replace("-", ".", 1).split(".") ] ) Increment version number to 0.13.2"""Configuration for Django system.""" __version__ = "0.13.2" __version_info...
<commit_before>"""Configuration for Django system.""" __version__ = "0.13.1" __version_info__ = tuple( [ int(num) if num.isdigit() else num for num in __version__.replace("-", ".", 1).split(".") ] ) <commit_msg>Increment version number to 0.13.2<commit_after>"""Configuration for Django system."...
d17677568c11fd5cf3c8d37ac2aa38dcd6c9f347
setup.py
setup.py
#!/usr/bin/env python # Copyright 2014-2015 Boxkite Inc. # This file is part of the DataCats package and is released under # the terms of the GNU Affero General Public License version 3.0. # See LICENSE.txt or http://www.fsf.org/licensing/licenses/agpl-3.0.html from setuptools import setup import sys install_requir...
#!/usr/bin/env python # Copyright 2014-2015 Boxkite Inc. # This file is part of the DataCats package and is released under # the terms of the GNU Affero General Public License version 3.0. # See LICENSE.txt or http://www.fsf.org/licensing/licenses/agpl-3.0.html from setuptools import setup import sys install_requir...
Add clint package to datacats requirements
Add clint package to datacats requirements
Python
agpl-3.0
datawagovau/datacats,datacats/datacats,JJediny/datacats,poguez/datacats,deniszgonjanin/datacats,florianm/datacats,reneenoble/datacats,deniszgonjanin/datacats,poguez/datacats,florianm/datacats,JackMc/datacats,JJediny/datacats,JackMc/datacats,dborzov/datacats,datawagovau/datacats,reneenoble/datacats,wardi/datacats,dataca...
#!/usr/bin/env python # Copyright 2014-2015 Boxkite Inc. # This file is part of the DataCats package and is released under # the terms of the GNU Affero General Public License version 3.0. # See LICENSE.txt or http://www.fsf.org/licensing/licenses/agpl-3.0.html from setuptools import setup import sys install_requir...
#!/usr/bin/env python # Copyright 2014-2015 Boxkite Inc. # This file is part of the DataCats package and is released under # the terms of the GNU Affero General Public License version 3.0. # See LICENSE.txt or http://www.fsf.org/licensing/licenses/agpl-3.0.html from setuptools import setup import sys install_requir...
<commit_before>#!/usr/bin/env python # Copyright 2014-2015 Boxkite Inc. # This file is part of the DataCats package and is released under # the terms of the GNU Affero General Public License version 3.0. # See LICENSE.txt or http://www.fsf.org/licensing/licenses/agpl-3.0.html from setuptools import setup import sys ...
#!/usr/bin/env python # Copyright 2014-2015 Boxkite Inc. # This file is part of the DataCats package and is released under # the terms of the GNU Affero General Public License version 3.0. # See LICENSE.txt or http://www.fsf.org/licensing/licenses/agpl-3.0.html from setuptools import setup import sys install_requir...
#!/usr/bin/env python # Copyright 2014-2015 Boxkite Inc. # This file is part of the DataCats package and is released under # the terms of the GNU Affero General Public License version 3.0. # See LICENSE.txt or http://www.fsf.org/licensing/licenses/agpl-3.0.html from setuptools import setup import sys install_requir...
<commit_before>#!/usr/bin/env python # Copyright 2014-2015 Boxkite Inc. # This file is part of the DataCats package and is released under # the terms of the GNU Affero General Public License version 3.0. # See LICENSE.txt or http://www.fsf.org/licensing/licenses/agpl-3.0.html from setuptools import setup import sys ...
0443e6f70a8c2c072a4d80bac6aa4a0cc99df51d
setup.py
setup.py
from setuptools import setup from setuptools import find_packages from pip.req import parse_requirements import pip import xblog REQUIREMENTS_FILE = "xblog/requirements.txt" requirements = [str(ir.req) for ir in parse_requirements(REQUIREMENTS_FILE, session=pip.download.PipSession())] setup( name='django-xblog'...
import pip import xblog from setuptools import setup from setuptools import find_packages try: # for pip >= 10 from pip._internal.req import parse_requirements except ImportError: # for pip <= 9.0.3 from pip.req import parse_requirements REQUIREMENTS_FILE = "xblog/requirements.txt" requirements = [str(ir.r...
Fix for pip 10.0 and later
Fix for pip 10.0 and later
Python
bsd-2-clause
rubeon/django-xblog,rubeon/django-xblog,rubeon/django-xblog
from setuptools import setup from setuptools import find_packages from pip.req import parse_requirements import pip import xblog REQUIREMENTS_FILE = "xblog/requirements.txt" requirements = [str(ir.req) for ir in parse_requirements(REQUIREMENTS_FILE, session=pip.download.PipSession())] setup( name='django-xblog'...
import pip import xblog from setuptools import setup from setuptools import find_packages try: # for pip >= 10 from pip._internal.req import parse_requirements except ImportError: # for pip <= 9.0.3 from pip.req import parse_requirements REQUIREMENTS_FILE = "xblog/requirements.txt" requirements = [str(ir.r...
<commit_before>from setuptools import setup from setuptools import find_packages from pip.req import parse_requirements import pip import xblog REQUIREMENTS_FILE = "xblog/requirements.txt" requirements = [str(ir.req) for ir in parse_requirements(REQUIREMENTS_FILE, session=pip.download.PipSession())] setup( name...
import pip import xblog from setuptools import setup from setuptools import find_packages try: # for pip >= 10 from pip._internal.req import parse_requirements except ImportError: # for pip <= 9.0.3 from pip.req import parse_requirements REQUIREMENTS_FILE = "xblog/requirements.txt" requirements = [str(ir.r...
from setuptools import setup from setuptools import find_packages from pip.req import parse_requirements import pip import xblog REQUIREMENTS_FILE = "xblog/requirements.txt" requirements = [str(ir.req) for ir in parse_requirements(REQUIREMENTS_FILE, session=pip.download.PipSession())] setup( name='django-xblog'...
<commit_before>from setuptools import setup from setuptools import find_packages from pip.req import parse_requirements import pip import xblog REQUIREMENTS_FILE = "xblog/requirements.txt" requirements = [str(ir.req) for ir in parse_requirements(REQUIREMENTS_FILE, session=pip.download.PipSession())] setup( name...
91a5221c1f9c81ef9c430daf25839f76b676ebe1
setup.py
setup.py
from setuptools import setup, find_packages from setuptools.command.install import install as Install import re versionPattern = re.compile(r"""^__version__ = ['"](.*?)['"]$""", re.M) with open("axiom/_version.py", "rt") as f: version = versionPattern.search(f.read()).group(1) class InstallAndRegenerate(Install):...
from setuptools import setup, find_packages from setuptools.command.install import install as Install import re versionPattern = re.compile(r"""^__version__ = ['"](.*?)['"]$""", re.M) with open("axiom/_version.py", "rt") as f: version = versionPattern.search(f.read()).group(1) class InstallAndRegenerate(Install):...
Use Launchpad page as URL
Use Launchpad page as URL
Python
mit
twisted/axiom,hawkowl/axiom
from setuptools import setup, find_packages from setuptools.command.install import install as Install import re versionPattern = re.compile(r"""^__version__ = ['"](.*?)['"]$""", re.M) with open("axiom/_version.py", "rt") as f: version = versionPattern.search(f.read()).group(1) class InstallAndRegenerate(Install):...
from setuptools import setup, find_packages from setuptools.command.install import install as Install import re versionPattern = re.compile(r"""^__version__ = ['"](.*?)['"]$""", re.M) with open("axiom/_version.py", "rt") as f: version = versionPattern.search(f.read()).group(1) class InstallAndRegenerate(Install):...
<commit_before>from setuptools import setup, find_packages from setuptools.command.install import install as Install import re versionPattern = re.compile(r"""^__version__ = ['"](.*?)['"]$""", re.M) with open("axiom/_version.py", "rt") as f: version = versionPattern.search(f.read()).group(1) class InstallAndRegen...
from setuptools import setup, find_packages from setuptools.command.install import install as Install import re versionPattern = re.compile(r"""^__version__ = ['"](.*?)['"]$""", re.M) with open("axiom/_version.py", "rt") as f: version = versionPattern.search(f.read()).group(1) class InstallAndRegenerate(Install):...
from setuptools import setup, find_packages from setuptools.command.install import install as Install import re versionPattern = re.compile(r"""^__version__ = ['"](.*?)['"]$""", re.M) with open("axiom/_version.py", "rt") as f: version = versionPattern.search(f.read()).group(1) class InstallAndRegenerate(Install):...
<commit_before>from setuptools import setup, find_packages from setuptools.command.install import install as Install import re versionPattern = re.compile(r"""^__version__ = ['"](.*?)['"]$""", re.M) with open("axiom/_version.py", "rt") as f: version = versionPattern.search(f.read()).group(1) class InstallAndRegen...
a5e3b1d45857feec1a7d0bfbfea2ba47e2e27e12
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup import os # Utility function to read README file def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name='iss', version='2.5.10', description="Ideally Single Source app for MemberSuite data.", author='AASH...
#!/usr/bin/env python from setuptools import setup import os # Utility function to read README file def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name='iss', version='2.6', description="Ideally Single Source app for MemberSuite data.", author='AASHE',...
Change version to 2.6 as feature was added
Change version to 2.6 as feature was added
Python
mit
AASHE/iss
#!/usr/bin/env python from setuptools import setup import os # Utility function to read README file def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name='iss', version='2.5.10', description="Ideally Single Source app for MemberSuite data.", author='AASH...
#!/usr/bin/env python from setuptools import setup import os # Utility function to read README file def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name='iss', version='2.6', description="Ideally Single Source app for MemberSuite data.", author='AASHE',...
<commit_before>#!/usr/bin/env python from setuptools import setup import os # Utility function to read README file def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name='iss', version='2.5.10', description="Ideally Single Source app for MemberSuite data.", ...
#!/usr/bin/env python from setuptools import setup import os # Utility function to read README file def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name='iss', version='2.6', description="Ideally Single Source app for MemberSuite data.", author='AASHE',...
#!/usr/bin/env python from setuptools import setup import os # Utility function to read README file def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name='iss', version='2.5.10', description="Ideally Single Source app for MemberSuite data.", author='AASH...
<commit_before>#!/usr/bin/env python from setuptools import setup import os # Utility function to read README file def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name='iss', version='2.5.10', description="Ideally Single Source app for MemberSuite data.", ...
860de1e0d027dc8cd8b67ae9924ff181d234c22f
setup.py
setup.py
from setuptools import setup REPO_URL = 'http://github.com/datasciencebr/serenata-toolbox' setup( author='Serenata de Amor', author_email='[email protected]', classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Science/Research', 'License :: OSI Approve...
from setuptools import setup REPO_URL = 'http://github.com/datasciencebr/serenata-toolbox' setup( author='Serenata de Amor', author_email='[email protected]', classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Science/Research', 'License :: OSI Approve...
Downgrade de version bump to a minor one
Downgrade de version bump to a minor one
Python
mit
datasciencebr/serenata-toolbox
from setuptools import setup REPO_URL = 'http://github.com/datasciencebr/serenata-toolbox' setup( author='Serenata de Amor', author_email='[email protected]', classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Science/Research', 'License :: OSI Approve...
from setuptools import setup REPO_URL = 'http://github.com/datasciencebr/serenata-toolbox' setup( author='Serenata de Amor', author_email='[email protected]', classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Science/Research', 'License :: OSI Approve...
<commit_before>from setuptools import setup REPO_URL = 'http://github.com/datasciencebr/serenata-toolbox' setup( author='Serenata de Amor', author_email='[email protected]', classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Science/Research', 'License...
from setuptools import setup REPO_URL = 'http://github.com/datasciencebr/serenata-toolbox' setup( author='Serenata de Amor', author_email='[email protected]', classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Science/Research', 'License :: OSI Approve...
from setuptools import setup REPO_URL = 'http://github.com/datasciencebr/serenata-toolbox' setup( author='Serenata de Amor', author_email='[email protected]', classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Science/Research', 'License :: OSI Approve...
<commit_before>from setuptools import setup REPO_URL = 'http://github.com/datasciencebr/serenata-toolbox' setup( author='Serenata de Amor', author_email='[email protected]', classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Science/Research', 'License...
febb5d9890b074985ca99f05c5b8ffc2572d2652
apps/posters/forms.py
apps/posters/forms.py
# -*- coding: utf-8 -*- from django import forms from apps.posters.models import Poster class AddPosterForm(forms.ModelForm): when = forms.CharField(label=u"Event start", widget=forms.TextInput(attrs={'type': 'datetime-local'})) display_from = forms.CharField(label=u"Vis plakat fra", widget=forms.TextInput(...
# -*- coding: utf-8 -*- from django import forms from apps.posters.models import Poster class AddPosterForm(forms.ModelForm): display_from = forms.CharField(label=u"Vis plakat fra", widget=forms.TextInput(attrs={'type': 'date'})) display_to = forms.CharField(label=u"Vis plakat til", widget=forms.TextInput(a...
Remove event start field from form
Remove event start field from form
Python
mit
dotKom/onlineweb4,dotKom/onlineweb4,dotKom/onlineweb4,dotKom/onlineweb4
# -*- coding: utf-8 -*- from django import forms from apps.posters.models import Poster class AddPosterForm(forms.ModelForm): when = forms.CharField(label=u"Event start", widget=forms.TextInput(attrs={'type': 'datetime-local'})) display_from = forms.CharField(label=u"Vis plakat fra", widget=forms.TextInput(...
# -*- coding: utf-8 -*- from django import forms from apps.posters.models import Poster class AddPosterForm(forms.ModelForm): display_from = forms.CharField(label=u"Vis plakat fra", widget=forms.TextInput(attrs={'type': 'date'})) display_to = forms.CharField(label=u"Vis plakat til", widget=forms.TextInput(a...
<commit_before># -*- coding: utf-8 -*- from django import forms from apps.posters.models import Poster class AddPosterForm(forms.ModelForm): when = forms.CharField(label=u"Event start", widget=forms.TextInput(attrs={'type': 'datetime-local'})) display_from = forms.CharField(label=u"Vis plakat fra", widget=f...
# -*- coding: utf-8 -*- from django import forms from apps.posters.models import Poster class AddPosterForm(forms.ModelForm): display_from = forms.CharField(label=u"Vis plakat fra", widget=forms.TextInput(attrs={'type': 'date'})) display_to = forms.CharField(label=u"Vis plakat til", widget=forms.TextInput(a...
# -*- coding: utf-8 -*- from django import forms from apps.posters.models import Poster class AddPosterForm(forms.ModelForm): when = forms.CharField(label=u"Event start", widget=forms.TextInput(attrs={'type': 'datetime-local'})) display_from = forms.CharField(label=u"Vis plakat fra", widget=forms.TextInput(...
<commit_before># -*- coding: utf-8 -*- from django import forms from apps.posters.models import Poster class AddPosterForm(forms.ModelForm): when = forms.CharField(label=u"Event start", widget=forms.TextInput(attrs={'type': 'datetime-local'})) display_from = forms.CharField(label=u"Vis plakat fra", widget=f...
6f20554c2a7b0223b2291227b67fb3ede003f525
setup.py
setup.py
#!/usr/bin/env python """ Setup script """ import os import sys from distutils.core import setup from fedwatch import __version__ setup( name = 'fedwatch', description = 'Module for creating simple scripts reacting to fedmsg messages', version = __version__, license = 'LGPLv2+', py_modules = ['fed...
#!/usr/bin/env python """ Setup script """ import os import sys from distutils.core import setup from fedwatch import __version__ setup( name = 'fedwatch', description = 'Module for creating simple scripts reacting to fedmsg messages', version = __version__, license = 'LGPLv2+', py_modules = ['fed...
Add fedwatch-cli as installed script
Add fedwatch-cli as installed script
Python
lgpl-2.1
pombredanne/fedwatch,sochotnicky/fedwatch,pombredanne/fedwatch,mizdebsk/fedwatch,sochotnicky/fedwatch,mizdebsk/fedwatch
#!/usr/bin/env python """ Setup script """ import os import sys from distutils.core import setup from fedwatch import __version__ setup( name = 'fedwatch', description = 'Module for creating simple scripts reacting to fedmsg messages', version = __version__, license = 'LGPLv2+', py_modules = ['fed...
#!/usr/bin/env python """ Setup script """ import os import sys from distutils.core import setup from fedwatch import __version__ setup( name = 'fedwatch', description = 'Module for creating simple scripts reacting to fedmsg messages', version = __version__, license = 'LGPLv2+', py_modules = ['fed...
<commit_before>#!/usr/bin/env python """ Setup script """ import os import sys from distutils.core import setup from fedwatch import __version__ setup( name = 'fedwatch', description = 'Module for creating simple scripts reacting to fedmsg messages', version = __version__, license = 'LGPLv2+', py_...
#!/usr/bin/env python """ Setup script """ import os import sys from distutils.core import setup from fedwatch import __version__ setup( name = 'fedwatch', description = 'Module for creating simple scripts reacting to fedmsg messages', version = __version__, license = 'LGPLv2+', py_modules = ['fed...
#!/usr/bin/env python """ Setup script """ import os import sys from distutils.core import setup from fedwatch import __version__ setup( name = 'fedwatch', description = 'Module for creating simple scripts reacting to fedmsg messages', version = __version__, license = 'LGPLv2+', py_modules = ['fed...
<commit_before>#!/usr/bin/env python """ Setup script """ import os import sys from distutils.core import setup from fedwatch import __version__ setup( name = 'fedwatch', description = 'Module for creating simple scripts reacting to fedmsg messages', version = __version__, license = 'LGPLv2+', py_...
88451dba53aaf2257ece516d027bdbb0449cb8b4
globus_cli/commands/task/event_list.py
globus_cli/commands/task/event_list.py
import click from globus_cli.parsing import common_options, task_id_arg from globus_cli.helpers import outformat_is_json, print_table from globus_cli.services.transfer import print_json_from_iterator, get_client @click.command('event-list', help='List Events for a given Task') @common_options @task_id_arg def task_...
import click from globus_cli.parsing import common_options, task_id_arg from globus_cli.helpers import outformat_is_json, print_table from globus_cli.services.transfer import print_json_from_iterator, get_client @click.command('event-list', help='List Events for a given Task') @common_options @task_id_arg @click.op...
Add --limit and filtering options to task event-list
Add --limit and filtering options to task event-list
Python
apache-2.0
globus/globus-cli,globus/globus-cli
import click from globus_cli.parsing import common_options, task_id_arg from globus_cli.helpers import outformat_is_json, print_table from globus_cli.services.transfer import print_json_from_iterator, get_client @click.command('event-list', help='List Events for a given Task') @common_options @task_id_arg def task_...
import click from globus_cli.parsing import common_options, task_id_arg from globus_cli.helpers import outformat_is_json, print_table from globus_cli.services.transfer import print_json_from_iterator, get_client @click.command('event-list', help='List Events for a given Task') @common_options @task_id_arg @click.op...
<commit_before>import click from globus_cli.parsing import common_options, task_id_arg from globus_cli.helpers import outformat_is_json, print_table from globus_cli.services.transfer import print_json_from_iterator, get_client @click.command('event-list', help='List Events for a given Task') @common_options @task_i...
import click from globus_cli.parsing import common_options, task_id_arg from globus_cli.helpers import outformat_is_json, print_table from globus_cli.services.transfer import print_json_from_iterator, get_client @click.command('event-list', help='List Events for a given Task') @common_options @task_id_arg @click.op...
import click from globus_cli.parsing import common_options, task_id_arg from globus_cli.helpers import outformat_is_json, print_table from globus_cli.services.transfer import print_json_from_iterator, get_client @click.command('event-list', help='List Events for a given Task') @common_options @task_id_arg def task_...
<commit_before>import click from globus_cli.parsing import common_options, task_id_arg from globus_cli.helpers import outformat_is_json, print_table from globus_cli.services.transfer import print_json_from_iterator, get_client @click.command('event-list', help='List Events for a given Task') @common_options @task_i...
89f3cd5367c537b19e0da495892eb7cd8a42390a
setup.py
setup.py
""" A utility to package subsets of large ASPECT PVD files to visualize elsewhere without access to the original filesystem. """ from setuptools import find_packages, setup package = 'sci_parameter_utils' version = '0.2.0' dependencies = [ 'click', 'pyyaml', 'sympy' ] test_deps = [ 'pytest' ] setup( ...
""" A utility to package subsets of large ASPECT PVD files to visualize elsewhere without access to the original filesystem. """ import sys from setuptools import find_packages, setup needs_pytest = {'pytest', 'test'}.intersection(sys.argv) pytest_runner = ['pytest_runner'] if needs_pytest else [] package = 'sci_par...
Add better pytest test support
Add better pytest test support
Python
mit
class4kayaker/Parameter_Utils
""" A utility to package subsets of large ASPECT PVD files to visualize elsewhere without access to the original filesystem. """ from setuptools import find_packages, setup package = 'sci_parameter_utils' version = '0.2.0' dependencies = [ 'click', 'pyyaml', 'sympy' ] test_deps = [ 'pytest' ] setup( ...
""" A utility to package subsets of large ASPECT PVD files to visualize elsewhere without access to the original filesystem. """ import sys from setuptools import find_packages, setup needs_pytest = {'pytest', 'test'}.intersection(sys.argv) pytest_runner = ['pytest_runner'] if needs_pytest else [] package = 'sci_par...
<commit_before>""" A utility to package subsets of large ASPECT PVD files to visualize elsewhere without access to the original filesystem. """ from setuptools import find_packages, setup package = 'sci_parameter_utils' version = '0.2.0' dependencies = [ 'click', 'pyyaml', 'sympy' ] test_deps = [ 'pyt...
""" A utility to package subsets of large ASPECT PVD files to visualize elsewhere without access to the original filesystem. """ import sys from setuptools import find_packages, setup needs_pytest = {'pytest', 'test'}.intersection(sys.argv) pytest_runner = ['pytest_runner'] if needs_pytest else [] package = 'sci_par...
""" A utility to package subsets of large ASPECT PVD files to visualize elsewhere without access to the original filesystem. """ from setuptools import find_packages, setup package = 'sci_parameter_utils' version = '0.2.0' dependencies = [ 'click', 'pyyaml', 'sympy' ] test_deps = [ 'pytest' ] setup( ...
<commit_before>""" A utility to package subsets of large ASPECT PVD files to visualize elsewhere without access to the original filesystem. """ from setuptools import find_packages, setup package = 'sci_parameter_utils' version = '0.2.0' dependencies = [ 'click', 'pyyaml', 'sympy' ] test_deps = [ 'pyt...
44ac6ece920bb1602a053b31b78326a3f30be151
setup.py
setup.py
from setuptools import setup from guano import __version__ setup( name='guano', version=__version__, description='GUANO, the "Grand Unified" bat acoustics metadata format', long_description=open('README.md').read(), url='https://github.com/riggsd/guano-py', license='MIT', author='David A....
from setuptools import setup from glob import glob from guano import __version__ setup( name='guano', version=__version__, description='GUANO, the "Grand Unified" bat acoustics metadata format', long_description=open('README.md').read(), url='https://github.com/riggsd/guano-py', license='MIT'...
Declare to the PyPI that we support Python 3
Declare to the PyPI that we support Python 3
Python
mit
riggsd/guano-py
from setuptools import setup from guano import __version__ setup( name='guano', version=__version__, description='GUANO, the "Grand Unified" bat acoustics metadata format', long_description=open('README.md').read(), url='https://github.com/riggsd/guano-py', license='MIT', author='David A....
from setuptools import setup from glob import glob from guano import __version__ setup( name='guano', version=__version__, description='GUANO, the "Grand Unified" bat acoustics metadata format', long_description=open('README.md').read(), url='https://github.com/riggsd/guano-py', license='MIT'...
<commit_before>from setuptools import setup from guano import __version__ setup( name='guano', version=__version__, description='GUANO, the "Grand Unified" bat acoustics metadata format', long_description=open('README.md').read(), url='https://github.com/riggsd/guano-py', license='MIT', a...
from setuptools import setup from glob import glob from guano import __version__ setup( name='guano', version=__version__, description='GUANO, the "Grand Unified" bat acoustics metadata format', long_description=open('README.md').read(), url='https://github.com/riggsd/guano-py', license='MIT'...
from setuptools import setup from guano import __version__ setup( name='guano', version=__version__, description='GUANO, the "Grand Unified" bat acoustics metadata format', long_description=open('README.md').read(), url='https://github.com/riggsd/guano-py', license='MIT', author='David A....
<commit_before>from setuptools import setup from guano import __version__ setup( name='guano', version=__version__, description='GUANO, the "Grand Unified" bat acoustics metadata format', long_description=open('README.md').read(), url='https://github.com/riggsd/guano-py', license='MIT', a...
973c99c616c4648d143407c7363a49bbeecea994
setup.py
setup.py
#!/usr/bin/env python import os import sys from setuptools import setup, find_packages from moulinette import env LOCALES_DIR = env["LOCALES_DIR"] # Extend installation locale_files = [] if "install" in sys.argv: # Evaluate locale files for f in os.listdir("locales"): if f.endswith(".json"): ...
#!/usr/bin/env python import os import sys from setuptools import setup, find_packages from moulinette import env LOCALES_DIR = env["LOCALES_DIR"] # Extend installation locale_files = [] if "install" in sys.argv: # Evaluate locale files for f in os.listdir("locales"): if f.endswith(".json"): ...
Add mock as a test dependency
Add mock as a test dependency
Python
agpl-3.0
YunoHost/moulinette
#!/usr/bin/env python import os import sys from setuptools import setup, find_packages from moulinette import env LOCALES_DIR = env["LOCALES_DIR"] # Extend installation locale_files = [] if "install" in sys.argv: # Evaluate locale files for f in os.listdir("locales"): if f.endswith(".json"): ...
#!/usr/bin/env python import os import sys from setuptools import setup, find_packages from moulinette import env LOCALES_DIR = env["LOCALES_DIR"] # Extend installation locale_files = [] if "install" in sys.argv: # Evaluate locale files for f in os.listdir("locales"): if f.endswith(".json"): ...
<commit_before>#!/usr/bin/env python import os import sys from setuptools import setup, find_packages from moulinette import env LOCALES_DIR = env["LOCALES_DIR"] # Extend installation locale_files = [] if "install" in sys.argv: # Evaluate locale files for f in os.listdir("locales"): if f.endswith("...
#!/usr/bin/env python import os import sys from setuptools import setup, find_packages from moulinette import env LOCALES_DIR = env["LOCALES_DIR"] # Extend installation locale_files = [] if "install" in sys.argv: # Evaluate locale files for f in os.listdir("locales"): if f.endswith(".json"): ...
#!/usr/bin/env python import os import sys from setuptools import setup, find_packages from moulinette import env LOCALES_DIR = env["LOCALES_DIR"] # Extend installation locale_files = [] if "install" in sys.argv: # Evaluate locale files for f in os.listdir("locales"): if f.endswith(".json"): ...
<commit_before>#!/usr/bin/env python import os import sys from setuptools import setup, find_packages from moulinette import env LOCALES_DIR = env["LOCALES_DIR"] # Extend installation locale_files = [] if "install" in sys.argv: # Evaluate locale files for f in os.listdir("locales"): if f.endswith("...
29236db6d20d9039b5c32f34b1046466c86e3cf5
setup.py
setup.py
from setuptools import setup version = "0.6.0" url = "https://github.com/AndyDeany/pygame-template" with open("requirements.txt", "r") as requirements_file: requirements = requirements_file.read().split() setup( name="pygametemplate", version=version, license="MIT", description="Making making ga...
from setuptools import setup version = "0.6.0" url = "https://github.com/AndyDeany/pygame-template" with open("requirements.txt", "r") as requirements_file: requirements = requirements_file.read().split() setup( name="pygametemplate", version=version, license="MIT", description="Making making ga...
Update classifiers to represent currently supported python versions
Update classifiers to represent currently supported python versions
Python
mit
AndyDeany/pygame-template
from setuptools import setup version = "0.6.0" url = "https://github.com/AndyDeany/pygame-template" with open("requirements.txt", "r") as requirements_file: requirements = requirements_file.read().split() setup( name="pygametemplate", version=version, license="MIT", description="Making making ga...
from setuptools import setup version = "0.6.0" url = "https://github.com/AndyDeany/pygame-template" with open("requirements.txt", "r") as requirements_file: requirements = requirements_file.read().split() setup( name="pygametemplate", version=version, license="MIT", description="Making making ga...
<commit_before>from setuptools import setup version = "0.6.0" url = "https://github.com/AndyDeany/pygame-template" with open("requirements.txt", "r") as requirements_file: requirements = requirements_file.read().split() setup( name="pygametemplate", version=version, license="MIT", description="M...
from setuptools import setup version = "0.6.0" url = "https://github.com/AndyDeany/pygame-template" with open("requirements.txt", "r") as requirements_file: requirements = requirements_file.read().split() setup( name="pygametemplate", version=version, license="MIT", description="Making making ga...
from setuptools import setup version = "0.6.0" url = "https://github.com/AndyDeany/pygame-template" with open("requirements.txt", "r") as requirements_file: requirements = requirements_file.read().split() setup( name="pygametemplate", version=version, license="MIT", description="Making making ga...
<commit_before>from setuptools import setup version = "0.6.0" url = "https://github.com/AndyDeany/pygame-template" with open("requirements.txt", "r") as requirements_file: requirements = requirements_file.read().split() setup( name="pygametemplate", version=version, license="MIT", description="M...
155729f74a5bf54d9b4c5d4ed813849023af0157
setup.py
setup.py
from setuptools import setup setup( name='Resizer', version='0.0.1', description='Resizer helps you generate thumbnails and ' 'load images from various sources.', packages=['resizer'], platforms='any', install_requires=['PIL>=1.1.6'] )
from setuptools import setup setup( name='Resizer', version='0.0.1', description='Resizer helps you generate thumbnails and ' 'load images from various sources.', packages=['resizer'], platforms='any', install_requires=['Pillow>=1.7.7'] )
Use Pillow instead of PIL.
Use Pillow instead of PIL.
Python
mit
FelixLoether/Resizer,FelixLoether/Resizer
from setuptools import setup setup( name='Resizer', version='0.0.1', description='Resizer helps you generate thumbnails and ' 'load images from various sources.', packages=['resizer'], platforms='any', install_requires=['PIL>=1.1.6'] ) Use Pillow instead of PIL.
from setuptools import setup setup( name='Resizer', version='0.0.1', description='Resizer helps you generate thumbnails and ' 'load images from various sources.', packages=['resizer'], platforms='any', install_requires=['Pillow>=1.7.7'] )
<commit_before>from setuptools import setup setup( name='Resizer', version='0.0.1', description='Resizer helps you generate thumbnails and ' 'load images from various sources.', packages=['resizer'], platforms='any', install_requires=['PIL>=1.1.6'] ) <commit_msg>Use Pillow inste...
from setuptools import setup setup( name='Resizer', version='0.0.1', description='Resizer helps you generate thumbnails and ' 'load images from various sources.', packages=['resizer'], platforms='any', install_requires=['Pillow>=1.7.7'] )
from setuptools import setup setup( name='Resizer', version='0.0.1', description='Resizer helps you generate thumbnails and ' 'load images from various sources.', packages=['resizer'], platforms='any', install_requires=['PIL>=1.1.6'] ) Use Pillow instead of PIL.from setuptools i...
<commit_before>from setuptools import setup setup( name='Resizer', version='0.0.1', description='Resizer helps you generate thumbnails and ' 'load images from various sources.', packages=['resizer'], platforms='any', install_requires=['PIL>=1.1.6'] ) <commit_msg>Use Pillow inste...
1d83021ab395804020d1907db7b6db897dbd1efd
bin/upload_version.py
bin/upload_version.py
#!python import os import sys import json import requests if __name__ == '__main__': version = sys.argv[1] filepath = sys.argv[2] filename = filepath.split('/')[-1] github_token = os.environ['GITHUB_TOKEN'] auth = (github_token, 'x-oauth-basic') commit_sha = os.environ['CIRCLE_SHA1'] params = json.dumps...
#!python import os import sys import json import requests import subprocess def capture_output(command): proc = subprocess.Popen(command, stdout=subprocess.PIPE) return proc.stdout.read() if __name__ == '__main__': version = sys.argv[1] filepath = sys.argv[2] filename = filepath.split('/')[-1] ...
Update upload script to include checksums
Update upload script to include checksums
Python
bsd-2-clause
moritz9/redash,pubnative/redash,ninneko/redash,hudl/redash,pubnative/redash,vishesh92/redash,imsally/redash,easytaxibr/redash,jmvasquez/redashtest,guaguadev/redash,vishesh92/redash,jmvasquez/redashtest,easytaxibr/redash,44px/redash,amino-data/redash,chriszs/redash,jmvasquez/redashtest,jmvasquez/redashtest,amino-data/re...
#!python import os import sys import json import requests if __name__ == '__main__': version = sys.argv[1] filepath = sys.argv[2] filename = filepath.split('/')[-1] github_token = os.environ['GITHUB_TOKEN'] auth = (github_token, 'x-oauth-basic') commit_sha = os.environ['CIRCLE_SHA1'] params = json.dumps...
#!python import os import sys import json import requests import subprocess def capture_output(command): proc = subprocess.Popen(command, stdout=subprocess.PIPE) return proc.stdout.read() if __name__ == '__main__': version = sys.argv[1] filepath = sys.argv[2] filename = filepath.split('/')[-1] ...
<commit_before>#!python import os import sys import json import requests if __name__ == '__main__': version = sys.argv[1] filepath = sys.argv[2] filename = filepath.split('/')[-1] github_token = os.environ['GITHUB_TOKEN'] auth = (github_token, 'x-oauth-basic') commit_sha = os.environ['CIRCLE_SHA1'] para...
#!python import os import sys import json import requests import subprocess def capture_output(command): proc = subprocess.Popen(command, stdout=subprocess.PIPE) return proc.stdout.read() if __name__ == '__main__': version = sys.argv[1] filepath = sys.argv[2] filename = filepath.split('/')[-1] ...
#!python import os import sys import json import requests if __name__ == '__main__': version = sys.argv[1] filepath = sys.argv[2] filename = filepath.split('/')[-1] github_token = os.environ['GITHUB_TOKEN'] auth = (github_token, 'x-oauth-basic') commit_sha = os.environ['CIRCLE_SHA1'] params = json.dumps...
<commit_before>#!python import os import sys import json import requests if __name__ == '__main__': version = sys.argv[1] filepath = sys.argv[2] filename = filepath.split('/')[-1] github_token = os.environ['GITHUB_TOKEN'] auth = (github_token, 'x-oauth-basic') commit_sha = os.environ['CIRCLE_SHA1'] para...
60e208200970201f37b0eb4f85b6008681e1f35d
tasks.py
tasks.py
""" Automation tasks, aided by the Invoke package. """ import os import webbrowser from invoke import task, run DOCS_DIR = 'docs' DOCS_OUTPUT_DIR = os.path.join(DOCS_DIR, '_build') @task def docs(output='html', rebuild=False, show=True): """Build the docs and show them in default web browser.""" build_cmd ...
""" Automation tasks, aided by the Invoke package. """ import os import webbrowser import sys from invoke import task, run DOCS_DIR = 'docs' DOCS_OUTPUT_DIR = os.path.join(DOCS_DIR, '_build') @task def docs(output='html', rebuild=False, show=True): """Build the docs and show them in default web browser.""" ...
Fix to showing generated docs on OSX
Fix to showing generated docs on OSX
Python
bsd-3-clause
Xion/callee
""" Automation tasks, aided by the Invoke package. """ import os import webbrowser from invoke import task, run DOCS_DIR = 'docs' DOCS_OUTPUT_DIR = os.path.join(DOCS_DIR, '_build') @task def docs(output='html', rebuild=False, show=True): """Build the docs and show them in default web browser.""" build_cmd ...
""" Automation tasks, aided by the Invoke package. """ import os import webbrowser import sys from invoke import task, run DOCS_DIR = 'docs' DOCS_OUTPUT_DIR = os.path.join(DOCS_DIR, '_build') @task def docs(output='html', rebuild=False, show=True): """Build the docs and show them in default web browser.""" ...
<commit_before>""" Automation tasks, aided by the Invoke package. """ import os import webbrowser from invoke import task, run DOCS_DIR = 'docs' DOCS_OUTPUT_DIR = os.path.join(DOCS_DIR, '_build') @task def docs(output='html', rebuild=False, show=True): """Build the docs and show them in default web browser."""...
""" Automation tasks, aided by the Invoke package. """ import os import webbrowser import sys from invoke import task, run DOCS_DIR = 'docs' DOCS_OUTPUT_DIR = os.path.join(DOCS_DIR, '_build') @task def docs(output='html', rebuild=False, show=True): """Build the docs and show them in default web browser.""" ...
""" Automation tasks, aided by the Invoke package. """ import os import webbrowser from invoke import task, run DOCS_DIR = 'docs' DOCS_OUTPUT_DIR = os.path.join(DOCS_DIR, '_build') @task def docs(output='html', rebuild=False, show=True): """Build the docs and show them in default web browser.""" build_cmd ...
<commit_before>""" Automation tasks, aided by the Invoke package. """ import os import webbrowser from invoke import task, run DOCS_DIR = 'docs' DOCS_OUTPUT_DIR = os.path.join(DOCS_DIR, '_build') @task def docs(output='html', rebuild=False, show=True): """Build the docs and show them in default web browser."""...
af7122220447b1abe771f37400daeb4370603dd4
collection_pipelines/core.py
collection_pipelines/core.py
import functools def coroutine(fn): def wrapper(*args, **kwargs): generator = fn(*args, **kwargs) next(generator) return generator return wrapper class CollectionPipelineProcessor: sink = None start_source = None receiver = None def process(self, item): rais...
import functools def coroutine(fn): def wrapper(*args, **kwargs): generator = fn(*args, **kwargs) next(generator) return generator return wrapper class CollectionPipelineProcessor: sink = None start_source = None receiver = None def process(self, item): rais...
Add base class for output pipeline processors
Add base class for output pipeline processors
Python
mit
povilasb/pycollection-pipelines
import functools def coroutine(fn): def wrapper(*args, **kwargs): generator = fn(*args, **kwargs) next(generator) return generator return wrapper class CollectionPipelineProcessor: sink = None start_source = None receiver = None def process(self, item): rais...
import functools def coroutine(fn): def wrapper(*args, **kwargs): generator = fn(*args, **kwargs) next(generator) return generator return wrapper class CollectionPipelineProcessor: sink = None start_source = None receiver = None def process(self, item): rais...
<commit_before>import functools def coroutine(fn): def wrapper(*args, **kwargs): generator = fn(*args, **kwargs) next(generator) return generator return wrapper class CollectionPipelineProcessor: sink = None start_source = None receiver = None def process(self, item...
import functools def coroutine(fn): def wrapper(*args, **kwargs): generator = fn(*args, **kwargs) next(generator) return generator return wrapper class CollectionPipelineProcessor: sink = None start_source = None receiver = None def process(self, item): rais...
import functools def coroutine(fn): def wrapper(*args, **kwargs): generator = fn(*args, **kwargs) next(generator) return generator return wrapper class CollectionPipelineProcessor: sink = None start_source = None receiver = None def process(self, item): rais...
<commit_before>import functools def coroutine(fn): def wrapper(*args, **kwargs): generator = fn(*args, **kwargs) next(generator) return generator return wrapper class CollectionPipelineProcessor: sink = None start_source = None receiver = None def process(self, item...
93358a04380f427f3ac1cea84689a430bcb0c883
jenkins/management/commands/import_jenkinsserver.py
jenkins/management/commands/import_jenkinsserver.py
from __future__ import unicode_literals from optparse import make_option from django.core.management.base import BaseCommand, CommandError from django.db import transaction from jenkins.management.helpers import import_jenkinsserver class Command(BaseCommand): help = "Import or update a JenkinsServer" args ...
from __future__ import unicode_literals from optparse import make_option from django.core.management.base import BaseCommand, CommandError from django.db import transaction from jenkins.management.helpers import import_jenkinsserver class Command(BaseCommand): help = "Import or update a JenkinsServer" args ...
Make the command-line tool pass the right parameters.
Make the command-line tool pass the right parameters.
Python
mit
timrchavez/capomastro,caio1982/capomastro,caio1982/capomastro,caio1982/capomastro,timrchavez/capomastro
from __future__ import unicode_literals from optparse import make_option from django.core.management.base import BaseCommand, CommandError from django.db import transaction from jenkins.management.helpers import import_jenkinsserver class Command(BaseCommand): help = "Import or update a JenkinsServer" args ...
from __future__ import unicode_literals from optparse import make_option from django.core.management.base import BaseCommand, CommandError from django.db import transaction from jenkins.management.helpers import import_jenkinsserver class Command(BaseCommand): help = "Import or update a JenkinsServer" args ...
<commit_before>from __future__ import unicode_literals from optparse import make_option from django.core.management.base import BaseCommand, CommandError from django.db import transaction from jenkins.management.helpers import import_jenkinsserver class Command(BaseCommand): help = "Import or update a JenkinsSe...
from __future__ import unicode_literals from optparse import make_option from django.core.management.base import BaseCommand, CommandError from django.db import transaction from jenkins.management.helpers import import_jenkinsserver class Command(BaseCommand): help = "Import or update a JenkinsServer" args ...
from __future__ import unicode_literals from optparse import make_option from django.core.management.base import BaseCommand, CommandError from django.db import transaction from jenkins.management.helpers import import_jenkinsserver class Command(BaseCommand): help = "Import or update a JenkinsServer" args ...
<commit_before>from __future__ import unicode_literals from optparse import make_option from django.core.management.base import BaseCommand, CommandError from django.db import transaction from jenkins.management.helpers import import_jenkinsserver class Command(BaseCommand): help = "Import or update a JenkinsSe...
f93555f1039857d1c4ba06d3f5a95810f1f1d26e
devp2p/__init__.py
devp2p/__init__.py
# -*- coding: utf-8 -*- # ############# version ################## from pkg_resources import get_distribution, DistributionNotFound import os.path try: _dist = get_distribution('devp2p') # Normalize case for Windows systems dist_loc = os.path.normcase(_dist.location) here = os.path.normcase(__file__) ...
# -*- coding: utf-8 -*- # ############# version ################## from pkg_resources import get_distribution, DistributionNotFound import os.path import subprocess import re GIT_DESCRIBE_RE = re.compile('^(?P<version>v\d+\.\d+\.\d+)-(?P<git>\d+-g[a-fA-F0-9]+(?:-dirty)?)$') __version__ = None try: _dist = get_d...
Use version extraction code from pyethapp / pyethereum
Use version extraction code from pyethapp / pyethereum
Python
mit
ethereum/pydevp2p,ms83/pydevp2p
# -*- coding: utf-8 -*- # ############# version ################## from pkg_resources import get_distribution, DistributionNotFound import os.path try: _dist = get_distribution('devp2p') # Normalize case for Windows systems dist_loc = os.path.normcase(_dist.location) here = os.path.normcase(__file__) ...
# -*- coding: utf-8 -*- # ############# version ################## from pkg_resources import get_distribution, DistributionNotFound import os.path import subprocess import re GIT_DESCRIBE_RE = re.compile('^(?P<version>v\d+\.\d+\.\d+)-(?P<git>\d+-g[a-fA-F0-9]+(?:-dirty)?)$') __version__ = None try: _dist = get_d...
<commit_before># -*- coding: utf-8 -*- # ############# version ################## from pkg_resources import get_distribution, DistributionNotFound import os.path try: _dist = get_distribution('devp2p') # Normalize case for Windows systems dist_loc = os.path.normcase(_dist.location) here = os.path.normca...
# -*- coding: utf-8 -*- # ############# version ################## from pkg_resources import get_distribution, DistributionNotFound import os.path import subprocess import re GIT_DESCRIBE_RE = re.compile('^(?P<version>v\d+\.\d+\.\d+)-(?P<git>\d+-g[a-fA-F0-9]+(?:-dirty)?)$') __version__ = None try: _dist = get_d...
# -*- coding: utf-8 -*- # ############# version ################## from pkg_resources import get_distribution, DistributionNotFound import os.path try: _dist = get_distribution('devp2p') # Normalize case for Windows systems dist_loc = os.path.normcase(_dist.location) here = os.path.normcase(__file__) ...
<commit_before># -*- coding: utf-8 -*- # ############# version ################## from pkg_resources import get_distribution, DistributionNotFound import os.path try: _dist = get_distribution('devp2p') # Normalize case for Windows systems dist_loc = os.path.normcase(_dist.location) here = os.path.normca...
4dd28beddc2df9efeef798491d1963800113f801
django_bootstrap_calendar/models.py
django_bootstrap_calendar/models.py
# -*- coding: utf-8 -*- __author__ = 'sandlbn' from django.db import models from django.utils.translation import ugettext_lazy as _ from utils import datetime_to_timestamp class CalendarEvent(models.Model): """ Calendar Events """ CSS_CLASS_CHOICES = ( ('', _('Normal')), ('event-warni...
# -*- coding: utf-8 -*- __author__ = 'sandlbn' from django.db import models from django.utils.translation import ugettext_lazy as _ from utils import datetime_to_timestamp class CalendarEvent(models.Model): """ Calendar Events """ CSS_CLASS_CHOICES = ( ('', _('Normal')), ('event-warni...
Allow `css_class` to have blank value.
Allow `css_class` to have blank value. Currently the default value for the `css_class` field (name `Normal`) has the value of a blank string. To allow the value to be used `blank=True` must be set.
Python
bsd-3-clause
sandlbn/django-bootstrap-calendar,sandlbn/django-bootstrap-calendar,sandlbn/django-bootstrap-calendar
# -*- coding: utf-8 -*- __author__ = 'sandlbn' from django.db import models from django.utils.translation import ugettext_lazy as _ from utils import datetime_to_timestamp class CalendarEvent(models.Model): """ Calendar Events """ CSS_CLASS_CHOICES = ( ('', _('Normal')), ('event-warni...
# -*- coding: utf-8 -*- __author__ = 'sandlbn' from django.db import models from django.utils.translation import ugettext_lazy as _ from utils import datetime_to_timestamp class CalendarEvent(models.Model): """ Calendar Events """ CSS_CLASS_CHOICES = ( ('', _('Normal')), ('event-warni...
<commit_before># -*- coding: utf-8 -*- __author__ = 'sandlbn' from django.db import models from django.utils.translation import ugettext_lazy as _ from utils import datetime_to_timestamp class CalendarEvent(models.Model): """ Calendar Events """ CSS_CLASS_CHOICES = ( ('', _('Normal')), ...
# -*- coding: utf-8 -*- __author__ = 'sandlbn' from django.db import models from django.utils.translation import ugettext_lazy as _ from utils import datetime_to_timestamp class CalendarEvent(models.Model): """ Calendar Events """ CSS_CLASS_CHOICES = ( ('', _('Normal')), ('event-warni...
# -*- coding: utf-8 -*- __author__ = 'sandlbn' from django.db import models from django.utils.translation import ugettext_lazy as _ from utils import datetime_to_timestamp class CalendarEvent(models.Model): """ Calendar Events """ CSS_CLASS_CHOICES = ( ('', _('Normal')), ('event-warni...
<commit_before># -*- coding: utf-8 -*- __author__ = 'sandlbn' from django.db import models from django.utils.translation import ugettext_lazy as _ from utils import datetime_to_timestamp class CalendarEvent(models.Model): """ Calendar Events """ CSS_CLASS_CHOICES = ( ('', _('Normal')), ...
cea4e45dc95310993e3b23ceadf83cbda810f536
EasyEuler/commands/list.py
EasyEuler/commands/list.py
import click from tabulate import tabulate from EasyEuler import data @click.command() @click.option('--sort', '-s', type=click.Choice(['id', 'difficulty']), default='id', help='Sort the list by problem attribute.') def cli(sort): """ Lists all available problems. """ problems = sorted(data.pr...
import click from tabulate import tabulate from EasyEuler import data @click.command() @click.option('--sort', '-s', type=click.Choice(['id', 'difficulty']), default='id', help='Sort the list by problem attribute.') def cli(sort): """ Lists all available problems. """ problems = sorted(data.pr...
Add percentage sign to difficulty
Add percentage sign to difficulty
Python
mit
Encrylize/EasyEuler
import click from tabulate import tabulate from EasyEuler import data @click.command() @click.option('--sort', '-s', type=click.Choice(['id', 'difficulty']), default='id', help='Sort the list by problem attribute.') def cli(sort): """ Lists all available problems. """ problems = sorted(data.pr...
import click from tabulate import tabulate from EasyEuler import data @click.command() @click.option('--sort', '-s', type=click.Choice(['id', 'difficulty']), default='id', help='Sort the list by problem attribute.') def cli(sort): """ Lists all available problems. """ problems = sorted(data.pr...
<commit_before>import click from tabulate import tabulate from EasyEuler import data @click.command() @click.option('--sort', '-s', type=click.Choice(['id', 'difficulty']), default='id', help='Sort the list by problem attribute.') def cli(sort): """ Lists all available problems. """ problems =...
import click from tabulate import tabulate from EasyEuler import data @click.command() @click.option('--sort', '-s', type=click.Choice(['id', 'difficulty']), default='id', help='Sort the list by problem attribute.') def cli(sort): """ Lists all available problems. """ problems = sorted(data.pr...
import click from tabulate import tabulate from EasyEuler import data @click.command() @click.option('--sort', '-s', type=click.Choice(['id', 'difficulty']), default='id', help='Sort the list by problem attribute.') def cli(sort): """ Lists all available problems. """ problems = sorted(data.pr...
<commit_before>import click from tabulate import tabulate from EasyEuler import data @click.command() @click.option('--sort', '-s', type=click.Choice(['id', 'difficulty']), default='id', help='Sort the list by problem attribute.') def cli(sort): """ Lists all available problems. """ problems =...
13e141c1686198deaccc6c38d14cdbde8c4c8fb4
passpie/_compat.py
passpie/_compat.py
import os import sys try: from shutil import which as _which except ImportError: from distutils.spawn import find_executable as _which def which(binary): path = _which(binary) if path: realpath = os.path.realpath(path) return realpath return None def is_python2(): return sys....
import os import sys try: from shutil import which as _which except ImportError: from distutils.spawn import find_executable as _which try: basestring except NameError: basestring = str def which(binary): path = _which(binary) if path: realpath = os.path.realpath(path) return real...
Add basestring py2/py3 to compat
Add basestring py2/py3 to compat
Python
mit
marcwebbie/passpie,eiginn/passpie,scorphus/passpie,marcwebbie/passpie,eiginn/passpie,scorphus/passpie
import os import sys try: from shutil import which as _which except ImportError: from distutils.spawn import find_executable as _which def which(binary): path = _which(binary) if path: realpath = os.path.realpath(path) return realpath return None def is_python2(): return sys....
import os import sys try: from shutil import which as _which except ImportError: from distutils.spawn import find_executable as _which try: basestring except NameError: basestring = str def which(binary): path = _which(binary) if path: realpath = os.path.realpath(path) return real...
<commit_before>import os import sys try: from shutil import which as _which except ImportError: from distutils.spawn import find_executable as _which def which(binary): path = _which(binary) if path: realpath = os.path.realpath(path) return realpath return None def is_python2(): ...
import os import sys try: from shutil import which as _which except ImportError: from distutils.spawn import find_executable as _which try: basestring except NameError: basestring = str def which(binary): path = _which(binary) if path: realpath = os.path.realpath(path) return real...
import os import sys try: from shutil import which as _which except ImportError: from distutils.spawn import find_executable as _which def which(binary): path = _which(binary) if path: realpath = os.path.realpath(path) return realpath return None def is_python2(): return sys....
<commit_before>import os import sys try: from shutil import which as _which except ImportError: from distutils.spawn import find_executable as _which def which(binary): path = _which(binary) if path: realpath = os.path.realpath(path) return realpath return None def is_python2(): ...
8259a733e1f039cea55cfc5aad7d69e0fb37c43c
tests.py
tests.py
from money_conversion.money import Money import unittest class MoneyClassTest(unittest.TestCase): def setUp(self): self.twenty_euro = Money(20, 'EUR') def test_convert_euro_to_usd(self): twenty_usd = self.twenty_euro.to_usd() self.assertIsInstance(twenty_usd, Money) self.asse...
from money_conversion.money import Money import unittest class MoneyClassTest(unittest.TestCase): def setUp(self): self.twenty_euro = Money(20, 'EUR') def test_convert_euro_to_usd(self): twenty_usd = self.twenty_euro.to_usd() self.assertIsInstance(twenty_usd, Money) self.asse...
Add test that validates method call
Add test that validates method call
Python
mit
mdsrosa/money-conversion-py
from money_conversion.money import Money import unittest class MoneyClassTest(unittest.TestCase): def setUp(self): self.twenty_euro = Money(20, 'EUR') def test_convert_euro_to_usd(self): twenty_usd = self.twenty_euro.to_usd() self.assertIsInstance(twenty_usd, Money) self.asse...
from money_conversion.money import Money import unittest class MoneyClassTest(unittest.TestCase): def setUp(self): self.twenty_euro = Money(20, 'EUR') def test_convert_euro_to_usd(self): twenty_usd = self.twenty_euro.to_usd() self.assertIsInstance(twenty_usd, Money) self.asse...
<commit_before>from money_conversion.money import Money import unittest class MoneyClassTest(unittest.TestCase): def setUp(self): self.twenty_euro = Money(20, 'EUR') def test_convert_euro_to_usd(self): twenty_usd = self.twenty_euro.to_usd() self.assertIsInstance(twenty_usd, Money) ...
from money_conversion.money import Money import unittest class MoneyClassTest(unittest.TestCase): def setUp(self): self.twenty_euro = Money(20, 'EUR') def test_convert_euro_to_usd(self): twenty_usd = self.twenty_euro.to_usd() self.assertIsInstance(twenty_usd, Money) self.asse...
from money_conversion.money import Money import unittest class MoneyClassTest(unittest.TestCase): def setUp(self): self.twenty_euro = Money(20, 'EUR') def test_convert_euro_to_usd(self): twenty_usd = self.twenty_euro.to_usd() self.assertIsInstance(twenty_usd, Money) self.asse...
<commit_before>from money_conversion.money import Money import unittest class MoneyClassTest(unittest.TestCase): def setUp(self): self.twenty_euro = Money(20, 'EUR') def test_convert_euro_to_usd(self): twenty_usd = self.twenty_euro.to_usd() self.assertIsInstance(twenty_usd, Money) ...
0c2dc7714f2dbb1140f8c03b2181f1fd15c434bf
djlint/parsers.py
djlint/parsers.py
import ast import os class Parser(object): def __init__(self, repo_path): if not os.path.isabs(repo_path): raise ValueError('Repository path is not absolute: %s' % repo_path) self.repo_path = repo_path def walk(self): for root, dirnames, filenames in os.walk(self.repo_pat...
import ast import os class Parser(object): """ Find all *.py files inside `repo_path` and parse its into ast nodes. If file has syntax errors SyntaxError object will be returned except ast node. """ def __init__(self, repo_path): if not os.path.isabs(repo_path): raise Val...
Add docstrings to Parser class
Add docstrings to Parser class
Python
isc
alfredhq/djlint
import ast import os class Parser(object): def __init__(self, repo_path): if not os.path.isabs(repo_path): raise ValueError('Repository path is not absolute: %s' % repo_path) self.repo_path = repo_path def walk(self): for root, dirnames, filenames in os.walk(self.repo_pat...
import ast import os class Parser(object): """ Find all *.py files inside `repo_path` and parse its into ast nodes. If file has syntax errors SyntaxError object will be returned except ast node. """ def __init__(self, repo_path): if not os.path.isabs(repo_path): raise Val...
<commit_before>import ast import os class Parser(object): def __init__(self, repo_path): if not os.path.isabs(repo_path): raise ValueError('Repository path is not absolute: %s' % repo_path) self.repo_path = repo_path def walk(self): for root, dirnames, filenames in os.wal...
import ast import os class Parser(object): """ Find all *.py files inside `repo_path` and parse its into ast nodes. If file has syntax errors SyntaxError object will be returned except ast node. """ def __init__(self, repo_path): if not os.path.isabs(repo_path): raise Val...
import ast import os class Parser(object): def __init__(self, repo_path): if not os.path.isabs(repo_path): raise ValueError('Repository path is not absolute: %s' % repo_path) self.repo_path = repo_path def walk(self): for root, dirnames, filenames in os.walk(self.repo_pat...
<commit_before>import ast import os class Parser(object): def __init__(self, repo_path): if not os.path.isabs(repo_path): raise ValueError('Repository path is not absolute: %s' % repo_path) self.repo_path = repo_path def walk(self): for root, dirnames, filenames in os.wal...
b91b0d667f64960fd1f07b7dc42290f287ab4c5b
scripts/endpoints_json.py
scripts/endpoints_json.py
#!/usr/bin/env python3 import lxml.html from lxml.cssselect import CSSSelector import requests import json class EndpointIdentifier: _page = 'https://www.reddit.com/dev/api/oauth' _no_scope = '(any scope)' def __init__(self): pass def find(self): page = requests.get(self._page) ...
#!/usr/bin/env python3 import lxml.html from lxml.cssselect import CSSSelector import requests import json class EndpointIdentifier: _page = 'https://www.reddit.com/dev/api/oauth' _no_scope = '(any scope)' _headers = { 'User-Agent': 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like...
Add default headers, fix output
Add default headers, fix output
Python
mit
thatJavaNerd/JRAW,ccrama/JRAW,fbis251/JRAW,fbis251/JRAW,fbis251/JRAW,thatJavaNerd/JRAW,Saketme/JRAW,hzsweers/JRAW,hzsweers/JRAW,ccrama/JRAW,thatJavaNerd/JRAW,ccrama/JRAW,Saketme/JRAW,hzsweers/JRAW,Saketme/JRAW
#!/usr/bin/env python3 import lxml.html from lxml.cssselect import CSSSelector import requests import json class EndpointIdentifier: _page = 'https://www.reddit.com/dev/api/oauth' _no_scope = '(any scope)' def __init__(self): pass def find(self): page = requests.get(self._page) ...
#!/usr/bin/env python3 import lxml.html from lxml.cssselect import CSSSelector import requests import json class EndpointIdentifier: _page = 'https://www.reddit.com/dev/api/oauth' _no_scope = '(any scope)' _headers = { 'User-Agent': 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like...
<commit_before>#!/usr/bin/env python3 import lxml.html from lxml.cssselect import CSSSelector import requests import json class EndpointIdentifier: _page = 'https://www.reddit.com/dev/api/oauth' _no_scope = '(any scope)' def __init__(self): pass def find(self): page = requests.get(se...
#!/usr/bin/env python3 import lxml.html from lxml.cssselect import CSSSelector import requests import json class EndpointIdentifier: _page = 'https://www.reddit.com/dev/api/oauth' _no_scope = '(any scope)' _headers = { 'User-Agent': 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like...
#!/usr/bin/env python3 import lxml.html from lxml.cssselect import CSSSelector import requests import json class EndpointIdentifier: _page = 'https://www.reddit.com/dev/api/oauth' _no_scope = '(any scope)' def __init__(self): pass def find(self): page = requests.get(self._page) ...
<commit_before>#!/usr/bin/env python3 import lxml.html from lxml.cssselect import CSSSelector import requests import json class EndpointIdentifier: _page = 'https://www.reddit.com/dev/api/oauth' _no_scope = '(any scope)' def __init__(self): pass def find(self): page = requests.get(se...
9cb851af00b0b41c31f216bd062bdeea6251860c
examples/list_people.py
examples/list_people.py
#! /usr/bin/python # See README.txt for information and build instructions. import addressbook_pb2 import sys # Iterates though all people in the AddressBook and prints info about them. def ListPeople(address_book): for person in address_book.person: print "Person ID:", person.id print " Name:", person.na...
#! /usr/bin/python # See README.txt for information and build instructions. import addressbook_pb2 import sys # Iterates though all people in the AddressBook and prints info about them. def ListPeople(address_book): for person in address_book.person: print "Person ID:", person.id print " Name:", person.na...
Make Python example output identical to C++ and Java by removing redundant spaces.
Make Python example output identical to C++ and Java by removing redundant spaces. git-svn-id: 6df6fa3ddd728f578ea1442598151d5900a6ed44@65 630680e5-0e50-0410-840e-4b1c322b438d
Python
bsd-3-clause
svn2github/protobuf-mirror,chandlerc/protobuf-llvm,lcy03406/protobuf,svn2github/google-protobuf,da2ce7/protobuf,beyang/protobuf,patrickhartling/protobuf,mkrautz/external-protobuf,mkrautz/external-protobuf,spilgames/protobuf,Distrotech/protobuf,miracle2k/protobuf,kastnerkyle/protobuf-py3,svn2github/protobuf-mirror,mpapi...
#! /usr/bin/python # See README.txt for information and build instructions. import addressbook_pb2 import sys # Iterates though all people in the AddressBook and prints info about them. def ListPeople(address_book): for person in address_book.person: print "Person ID:", person.id print " Name:", person.na...
#! /usr/bin/python # See README.txt for information and build instructions. import addressbook_pb2 import sys # Iterates though all people in the AddressBook and prints info about them. def ListPeople(address_book): for person in address_book.person: print "Person ID:", person.id print " Name:", person.na...
<commit_before>#! /usr/bin/python # See README.txt for information and build instructions. import addressbook_pb2 import sys # Iterates though all people in the AddressBook and prints info about them. def ListPeople(address_book): for person in address_book.person: print "Person ID:", person.id print " Na...
#! /usr/bin/python # See README.txt for information and build instructions. import addressbook_pb2 import sys # Iterates though all people in the AddressBook and prints info about them. def ListPeople(address_book): for person in address_book.person: print "Person ID:", person.id print " Name:", person.na...
#! /usr/bin/python # See README.txt for information and build instructions. import addressbook_pb2 import sys # Iterates though all people in the AddressBook and prints info about them. def ListPeople(address_book): for person in address_book.person: print "Person ID:", person.id print " Name:", person.na...
<commit_before>#! /usr/bin/python # See README.txt for information and build instructions. import addressbook_pb2 import sys # Iterates though all people in the AddressBook and prints info about them. def ListPeople(address_book): for person in address_book.person: print "Person ID:", person.id print " Na...
4a92328908f38ec7cc6077289217a802283db03b
examples/list_people.py
examples/list_people.py
#! /usr/bin/python # See README.txt for information and build instructions. import addressbook_pb2 import sys # Iterates though all people in the AddressBook and prints info about them. def ListPeople(address_book): for person in address_book.person: print "Person ID:", person.id print " Name:", person.na...
#! /usr/bin/python # See README.txt for information and build instructions. import addressbook_pb2 import sys # Iterates though all people in the AddressBook and prints info about them. def ListPeople(address_book): for person in address_book.person: print "Person ID:", person.id print " Name:", person.na...
Make Python example output identical to C++ and Java by removing redundant spaces.
Make Python example output identical to C++ and Java by removing redundant spaces.
Python
bsd-3-clause
LeslieW/protobuf,LeslieW/protobuf,LeslieW/protobuf,LeslieW/protobuf
#! /usr/bin/python # See README.txt for information and build instructions. import addressbook_pb2 import sys # Iterates though all people in the AddressBook and prints info about them. def ListPeople(address_book): for person in address_book.person: print "Person ID:", person.id print " Name:", person.na...
#! /usr/bin/python # See README.txt for information and build instructions. import addressbook_pb2 import sys # Iterates though all people in the AddressBook and prints info about them. def ListPeople(address_book): for person in address_book.person: print "Person ID:", person.id print " Name:", person.na...
<commit_before>#! /usr/bin/python # See README.txt for information and build instructions. import addressbook_pb2 import sys # Iterates though all people in the AddressBook and prints info about them. def ListPeople(address_book): for person in address_book.person: print "Person ID:", person.id print " Na...
#! /usr/bin/python # See README.txt for information and build instructions. import addressbook_pb2 import sys # Iterates though all people in the AddressBook and prints info about them. def ListPeople(address_book): for person in address_book.person: print "Person ID:", person.id print " Name:", person.na...
#! /usr/bin/python # See README.txt for information and build instructions. import addressbook_pb2 import sys # Iterates though all people in the AddressBook and prints info about them. def ListPeople(address_book): for person in address_book.person: print "Person ID:", person.id print " Name:", person.na...
<commit_before>#! /usr/bin/python # See README.txt for information and build instructions. import addressbook_pb2 import sys # Iterates though all people in the AddressBook and prints info about them. def ListPeople(address_book): for person in address_book.person: print "Person ID:", person.id print " Na...
0a119e379150a8c1bbbd412d2b0734dd9748cf77
windows_install/omni-config-setup.py
windows_install/omni-config-setup.py
from distutils.core import setup import py2exe import sys setup(console=['..\src\omni-configure.py'], name="omni-configure", py_modules=['sfa','ConfigParser','logging','optparse', 'os','sys','string', 're','platform','shutil','zipfile','logging','subprocess']...
from distutils.core import setup import py2exe import sys setup(console=['..\src\omni-configure.py', '..\examples/readyToLogin.py', '..\src\clear-passphrases.py'], name="omni-configure", py_modules=['sfa','ConfigParser','logging','optparse', 'os','sys','string', ...
Add readyToLogin.py and clear-passphrases.py to setup.py script.
Add readyToLogin.py and clear-passphrases.py to setup.py script.
Python
mit
ahelsing/geni-tools,plantigrade/geni-tools,tcmitchell/geni-tools,tcmitchell/geni-tools,ahelsing/geni-tools,plantigrade/geni-tools
from distutils.core import setup import py2exe import sys setup(console=['..\src\omni-configure.py'], name="omni-configure", py_modules=['sfa','ConfigParser','logging','optparse', 'os','sys','string', 're','platform','shutil','zipfile','logging','subprocess']...
from distutils.core import setup import py2exe import sys setup(console=['..\src\omni-configure.py', '..\examples/readyToLogin.py', '..\src\clear-passphrases.py'], name="omni-configure", py_modules=['sfa','ConfigParser','logging','optparse', 'os','sys','string', ...
<commit_before>from distutils.core import setup import py2exe import sys setup(console=['..\src\omni-configure.py'], name="omni-configure", py_modules=['sfa','ConfigParser','logging','optparse', 'os','sys','string', 're','platform','shutil','zipfile','logging...
from distutils.core import setup import py2exe import sys setup(console=['..\src\omni-configure.py', '..\examples/readyToLogin.py', '..\src\clear-passphrases.py'], name="omni-configure", py_modules=['sfa','ConfigParser','logging','optparse', 'os','sys','string', ...
from distutils.core import setup import py2exe import sys setup(console=['..\src\omni-configure.py'], name="omni-configure", py_modules=['sfa','ConfigParser','logging','optparse', 'os','sys','string', 're','platform','shutil','zipfile','logging','subprocess']...
<commit_before>from distutils.core import setup import py2exe import sys setup(console=['..\src\omni-configure.py'], name="omni-configure", py_modules=['sfa','ConfigParser','logging','optparse', 'os','sys','string', 're','platform','shutil','zipfile','logging...
812fd79675590659b3dc4251ed998f84c4bf2395
utils.py
utils.py
import os import sys import hashlib def e(s): if type(s) == str: return str return s.encode('utf-8') def d(s): if type(s) == unicode: return s return unicode(s, 'utf-8') def mkid(s): return hashlib.sha1(e(s)).hexdigest()[:2*4] def running_in_tools_labs(): return os.path.exist...
import os import sys import hashlib def e(s): if type(s) == str: return s return s.encode('utf-8') def d(s): if type(s) == unicode: return s return unicode(s, 'utf-8') def mkid(s): return hashlib.sha1(e(s)).hexdigest()[:2*4] def running_in_tools_labs(): return os.path.exists(...
Fix string encoding when the argument is already a str().
Fix string encoding when the argument is already a str().
Python
mit
Stryn/citationhunt,Stryn/citationhunt,Stryn/citationhunt,Stryn/citationhunt,jhsoby/citationhunt,jhsoby/citationhunt,jhsoby/citationhunt,jhsoby/citationhunt
import os import sys import hashlib def e(s): if type(s) == str: return str return s.encode('utf-8') def d(s): if type(s) == unicode: return s return unicode(s, 'utf-8') def mkid(s): return hashlib.sha1(e(s)).hexdigest()[:2*4] def running_in_tools_labs(): return os.path.exist...
import os import sys import hashlib def e(s): if type(s) == str: return s return s.encode('utf-8') def d(s): if type(s) == unicode: return s return unicode(s, 'utf-8') def mkid(s): return hashlib.sha1(e(s)).hexdigest()[:2*4] def running_in_tools_labs(): return os.path.exists(...
<commit_before>import os import sys import hashlib def e(s): if type(s) == str: return str return s.encode('utf-8') def d(s): if type(s) == unicode: return s return unicode(s, 'utf-8') def mkid(s): return hashlib.sha1(e(s)).hexdigest()[:2*4] def running_in_tools_labs(): retur...
import os import sys import hashlib def e(s): if type(s) == str: return s return s.encode('utf-8') def d(s): if type(s) == unicode: return s return unicode(s, 'utf-8') def mkid(s): return hashlib.sha1(e(s)).hexdigest()[:2*4] def running_in_tools_labs(): return os.path.exists(...
import os import sys import hashlib def e(s): if type(s) == str: return str return s.encode('utf-8') def d(s): if type(s) == unicode: return s return unicode(s, 'utf-8') def mkid(s): return hashlib.sha1(e(s)).hexdigest()[:2*4] def running_in_tools_labs(): return os.path.exist...
<commit_before>import os import sys import hashlib def e(s): if type(s) == str: return str return s.encode('utf-8') def d(s): if type(s) == unicode: return s return unicode(s, 'utf-8') def mkid(s): return hashlib.sha1(e(s)).hexdigest()[:2*4] def running_in_tools_labs(): retur...
02f5da04b6082462adf07d2c29dbb36d88197047
ct/py/csv-django-settings.py
ct/py/csv-django-settings.py
#!/usr/bin/env python # Copyright (c) 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import os TEMPLATE_DIRS = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'html-templates'...
#!/usr/bin/env python # Copyright (c) 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import os TEMPLATE_DIRS = (os.path.join(os.path.dirname(os.path.realpath(__file__)), 'html-template...
Make TEMPLATE_DIRS a tuple to make newer version of django happy
Make TEMPLATE_DIRS a tuple to make newer version of django happy BUG=skia:3465 Review URL: https://codereview.chromium.org/968223003
Python
bsd-3-clause
Tiger66639/skia-buildbot,Tiger66639/skia-buildbot,Tiger66639/skia-buildbot,google/skia-buildbot,google/skia-buildbot,google/skia-buildbot,Tiger66639/skia-buildbot,google/skia-buildbot,google/skia-buildbot,google/skia-buildbot,Tiger66639/skia-buildbot,google/skia-buildbot,Tiger66639/skia-buildbot,google/skia-buildbot,Ti...
#!/usr/bin/env python # Copyright (c) 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import os TEMPLATE_DIRS = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'html-templates'...
#!/usr/bin/env python # Copyright (c) 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import os TEMPLATE_DIRS = (os.path.join(os.path.dirname(os.path.realpath(__file__)), 'html-template...
<commit_before>#!/usr/bin/env python # Copyright (c) 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import os TEMPLATE_DIRS = os.path.join(os.path.dirname(os.path.realpath(__file__)), '...
#!/usr/bin/env python # Copyright (c) 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import os TEMPLATE_DIRS = (os.path.join(os.path.dirname(os.path.realpath(__file__)), 'html-template...
#!/usr/bin/env python # Copyright (c) 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import os TEMPLATE_DIRS = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'html-templates'...
<commit_before>#!/usr/bin/env python # Copyright (c) 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import os TEMPLATE_DIRS = os.path.join(os.path.dirname(os.path.realpath(__file__)), '...
8f14ff9ec7c011c2e08f5eba1e87f03fbfede24c
extensions/rules/code_evaluation.py
extensions/rules/code_evaluation.py
# coding: utf-8 # # Copyright 2014 The Oppia Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
# coding: utf-8 # # Copyright 2014 The Oppia Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
Make the code evaluation rule use a UnicodeString rather than a NormalizedString, as part of the migration away from NormalizedStrings.
Make the code evaluation rule use a UnicodeString rather than a NormalizedString, as part of the migration away from NormalizedStrings.
Python
apache-2.0
fernandopinhati/oppia,danieljjh/oppia,Atlas-Sailed-Co/oppia,felipecocco/oppia,dippatel1994/oppia,sdulal/oppia,directorlive/oppia,virajprabhu/oppia,brylie/oppia,sbhowmik89/oppia,MAKOSCAFEE/oppia,himanshu-dixit/oppia,terrameijar/oppia,michaelWagner/oppia,gale320/oppia,sbhowmik89/oppia,kingctan/oppia,Dev4X/oppia,sunu/oppi...
# coding: utf-8 # # Copyright 2014 The Oppia Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
# coding: utf-8 # # Copyright 2014 The Oppia Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
<commit_before># coding: utf-8 # # Copyright 2014 The Oppia Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 #...
# coding: utf-8 # # Copyright 2014 The Oppia Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
# coding: utf-8 # # Copyright 2014 The Oppia Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
<commit_before># coding: utf-8 # # Copyright 2014 The Oppia Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 #...
2456af37c33cd1c7903c3641f8cc61550f6a113c
tests/app/test_application.py
tests/app/test_application.py
from .helpers import BaseApplicationTest class TestApplication(BaseApplicationTest): def test_index(self): response = self.client.get('/') assert 200 == response.status_code def test_404(self): response = self.client.get('/not-found') assert 404 == response.status_code
from .helpers import BaseApplicationTest class TestApplication(BaseApplicationTest): def test_index(self): response = self.client.get('/') assert 401 == response.status_code def test_404(self): response = self.client.get('/not-found') assert 404 == response.status_code
Make the tests expect authentication
Make the tests expect authentication
Python
mit
alphagov/digitalmarketplace-admin-frontend,alphagov/digitalmarketplace-admin-frontend,mtekel/digitalmarketplace-admin-frontend,alphagov/digitalmarketplace-admin-frontend,mtekel/digitalmarketplace-admin-frontend,alphagov/digitalmarketplace-admin-frontend,mtekel/digitalmarketplace-admin-frontend,mtekel/digitalmarketplace...
from .helpers import BaseApplicationTest class TestApplication(BaseApplicationTest): def test_index(self): response = self.client.get('/') assert 200 == response.status_code def test_404(self): response = self.client.get('/not-found') assert 404 == response.status_code Make th...
from .helpers import BaseApplicationTest class TestApplication(BaseApplicationTest): def test_index(self): response = self.client.get('/') assert 401 == response.status_code def test_404(self): response = self.client.get('/not-found') assert 404 == response.status_code
<commit_before>from .helpers import BaseApplicationTest class TestApplication(BaseApplicationTest): def test_index(self): response = self.client.get('/') assert 200 == response.status_code def test_404(self): response = self.client.get('/not-found') assert 404 == response.stat...
from .helpers import BaseApplicationTest class TestApplication(BaseApplicationTest): def test_index(self): response = self.client.get('/') assert 401 == response.status_code def test_404(self): response = self.client.get('/not-found') assert 404 == response.status_code
from .helpers import BaseApplicationTest class TestApplication(BaseApplicationTest): def test_index(self): response = self.client.get('/') assert 200 == response.status_code def test_404(self): response = self.client.get('/not-found') assert 404 == response.status_code Make th...
<commit_before>from .helpers import BaseApplicationTest class TestApplication(BaseApplicationTest): def test_index(self): response = self.client.get('/') assert 200 == response.status_code def test_404(self): response = self.client.get('/not-found') assert 404 == response.stat...
088e30bd675e2102f62493fd295808a7a48ae615
project/functions/main.py
project/functions/main.py
# Copyright 2021 Google LLC # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
import base64, json from google.cloud import datastore from fetch_trends import get_updated_daily_data from database_updates import update_investment_database def update(event, context): eventdata = event["data"] decoded = base64.b64decode(eventdata) data = json.loads(decoded) start_date = int(dat...
Update entry point for cloud function data fetch
Update entry point for cloud function data fetch
Python
apache-2.0
googleinterns/sgonks,googleinterns/sgonks,googleinterns/sgonks,googleinterns/sgonks
# Copyright 2021 Google LLC # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
import base64, json from google.cloud import datastore from fetch_trends import get_updated_daily_data from database_updates import update_investment_database def update(event, context): eventdata = event["data"] decoded = base64.b64decode(eventdata) data = json.loads(decoded) start_date = int(dat...
<commit_before># Copyright 2021 Google LLC # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
import base64, json from google.cloud import datastore from fetch_trends import get_updated_daily_data from database_updates import update_investment_database def update(event, context): eventdata = event["data"] decoded = base64.b64decode(eventdata) data = json.loads(decoded) start_date = int(dat...
# Copyright 2021 Google LLC # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
<commit_before># Copyright 2021 Google LLC # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
e229779753f3c5f44319d882d19feab324abe119
api/migrations/0011_user_preferences_update_troposphere_user.py
api/migrations/0011_user_preferences_update_troposphere_user.py
# -*- coding: utf-8 -*- # Generated by Django 1.9.4 on 2016-09-28 19:30 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('api', '0010_sitemetadata_site_footer_link'), ] operations = [ # migrations.RunSQL( ...
# -*- coding: utf-8 -*- # Generated by Django 1.9.4 on 2016-09-28 19:30 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('api', '0010_sitemetadata_site_footer_link'), ] # These one-off operations are no longer nece...
Add note after testing on all three 'valid' environment formats: (Clean, CyVerse, Jetstream)
Add note after testing on all three 'valid' environment formats: (Clean, CyVerse, Jetstream)
Python
apache-2.0
CCI-MOC/GUI-Frontend,CCI-MOC/GUI-Frontend,CCI-MOC/GUI-Frontend,CCI-MOC/GUI-Frontend,CCI-MOC/GUI-Frontend
# -*- coding: utf-8 -*- # Generated by Django 1.9.4 on 2016-09-28 19:30 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('api', '0010_sitemetadata_site_footer_link'), ] operations = [ # migrations.RunSQL( ...
# -*- coding: utf-8 -*- # Generated by Django 1.9.4 on 2016-09-28 19:30 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('api', '0010_sitemetadata_site_footer_link'), ] # These one-off operations are no longer nece...
<commit_before># -*- coding: utf-8 -*- # Generated by Django 1.9.4 on 2016-09-28 19:30 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('api', '0010_sitemetadata_site_footer_link'), ] operations = [ # migra...
# -*- coding: utf-8 -*- # Generated by Django 1.9.4 on 2016-09-28 19:30 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('api', '0010_sitemetadata_site_footer_link'), ] # These one-off operations are no longer nece...
# -*- coding: utf-8 -*- # Generated by Django 1.9.4 on 2016-09-28 19:30 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('api', '0010_sitemetadata_site_footer_link'), ] operations = [ # migrations.RunSQL( ...
<commit_before># -*- coding: utf-8 -*- # Generated by Django 1.9.4 on 2016-09-28 19:30 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('api', '0010_sitemetadata_site_footer_link'), ] operations = [ # migra...
27844c3a386616834f92cd34f4790b3117e7ac05
test_utils/templatetags/utils.py
test_utils/templatetags/utils.py
from django import template register = template.Library() def parse_ttag(token): bits = token.split_contents() tags = {} possible_tags = ['as', 'for', 'limit', 'exclude'] for index, bit in enumerate(bits): if bit.strip() in possible_tags: tags[bit.strip()] = bits[index+1] retu...
from django import template def parse_ttag(token, possible_tags=['as', 'for', 'limit', 'exclude']): """ A function to parse a template tag. Pass in the token to parse, and a list of keywords to look for. It sets the name of the tag to 'tag_name' in the hash returned. Default list of keywords is::...
Add some hotness to the parse_ttags function. Now allows you to pass a custom list of things to parse, much nicer.
Add some hotness to the parse_ttags function. Now allows you to pass a custom list of things to parse, much nicer.
Python
mit
frac/django-test-utils,ericholscher/django-test-utils,frac/django-test-utils,acdha/django-test-utils,ericholscher/django-test-utils,acdha/django-test-utils
from django import template register = template.Library() def parse_ttag(token): bits = token.split_contents() tags = {} possible_tags = ['as', 'for', 'limit', 'exclude'] for index, bit in enumerate(bits): if bit.strip() in possible_tags: tags[bit.strip()] = bits[index+1] retu...
from django import template def parse_ttag(token, possible_tags=['as', 'for', 'limit', 'exclude']): """ A function to parse a template tag. Pass in the token to parse, and a list of keywords to look for. It sets the name of the tag to 'tag_name' in the hash returned. Default list of keywords is::...
<commit_before>from django import template register = template.Library() def parse_ttag(token): bits = token.split_contents() tags = {} possible_tags = ['as', 'for', 'limit', 'exclude'] for index, bit in enumerate(bits): if bit.strip() in possible_tags: tags[bit.strip()] = bits[in...
from django import template def parse_ttag(token, possible_tags=['as', 'for', 'limit', 'exclude']): """ A function to parse a template tag. Pass in the token to parse, and a list of keywords to look for. It sets the name of the tag to 'tag_name' in the hash returned. Default list of keywords is::...
from django import template register = template.Library() def parse_ttag(token): bits = token.split_contents() tags = {} possible_tags = ['as', 'for', 'limit', 'exclude'] for index, bit in enumerate(bits): if bit.strip() in possible_tags: tags[bit.strip()] = bits[index+1] retu...
<commit_before>from django import template register = template.Library() def parse_ttag(token): bits = token.split_contents() tags = {} possible_tags = ['as', 'for', 'limit', 'exclude'] for index, bit in enumerate(bits): if bit.strip() in possible_tags: tags[bit.strip()] = bits[in...
fd6f45aa96599a90d9ece06ffa71d8612f9f64a7
run_tests.py
run_tests.py
#!/usr/bin/env python import os, sys, re, shutil os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.settings' import django from django.core.management import call_command names_prefix = 'tests.tests' if django.VERSION >= (1, 6) else 'tests' names = next((a for a in sys.argv[1:] if not a.startswith('-')), None) if names ...
#!/usr/bin/env python import os, sys, re, shutil os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.settings' import django from django.core.management import call_command names_prefix = 'tests.tests' if django.VERSION >= (1, 6) else 'tests' names = next((a for a in sys.argv[1:] if not a.startswith('-')), None) if names ...
Make makemigrations verbose in ./runtests.py -v
Make makemigrations verbose in ./runtests.py -v
Python
bsd-3-clause
whyflyru/django-cacheops,Suor/django-cacheops,andwun/django-cacheops,rutube/django-cacheops,bourivouh/django-cacheops,ErwinJunge/django-cacheops,LPgenerator/django-cacheops
#!/usr/bin/env python import os, sys, re, shutil os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.settings' import django from django.core.management import call_command names_prefix = 'tests.tests' if django.VERSION >= (1, 6) else 'tests' names = next((a for a in sys.argv[1:] if not a.startswith('-')), None) if names ...
#!/usr/bin/env python import os, sys, re, shutil os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.settings' import django from django.core.management import call_command names_prefix = 'tests.tests' if django.VERSION >= (1, 6) else 'tests' names = next((a for a in sys.argv[1:] if not a.startswith('-')), None) if names ...
<commit_before>#!/usr/bin/env python import os, sys, re, shutil os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.settings' import django from django.core.management import call_command names_prefix = 'tests.tests' if django.VERSION >= (1, 6) else 'tests' names = next((a for a in sys.argv[1:] if not a.startswith('-')), N...
#!/usr/bin/env python import os, sys, re, shutil os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.settings' import django from django.core.management import call_command names_prefix = 'tests.tests' if django.VERSION >= (1, 6) else 'tests' names = next((a for a in sys.argv[1:] if not a.startswith('-')), None) if names ...
#!/usr/bin/env python import os, sys, re, shutil os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.settings' import django from django.core.management import call_command names_prefix = 'tests.tests' if django.VERSION >= (1, 6) else 'tests' names = next((a for a in sys.argv[1:] if not a.startswith('-')), None) if names ...
<commit_before>#!/usr/bin/env python import os, sys, re, shutil os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.settings' import django from django.core.management import call_command names_prefix = 'tests.tests' if django.VERSION >= (1, 6) else 'tests' names = next((a for a in sys.argv[1:] if not a.startswith('-')), N...
682ca50c6eb01ce39937fcceee6f0ae010055663
employees/views.py
employees/views.py
from .models import Employee, BioData, Payroll from django.http import HttpResponse from django.shortcuts import render, get_object_or_404 def list(request): employees = Employee.objects.all()[:20] return render(request, 'employees/list.html', {'employees': employees}) def filtering(request): employees = ...
from .models import Employee, BioData, Payroll from django.http import HttpResponse from django.shortcuts import render, get_object_or_404 def list(request): employees = Employee.objects.all()[:50] return render(request, 'employees/list.html', {'employees': employees}) def filtering(request): employees = ...
Increase the list to query 50 employees.
Increase the list to query 50 employees.
Python
mit
newrelic/newrelic-python-kata,tebriel/newrelic-python-kata,tebriel/newrelic-python-kata,tebriel/newrelic-python-kata,newrelic/newrelic-python-kata,newrelic/newrelic-python-kata
from .models import Employee, BioData, Payroll from django.http import HttpResponse from django.shortcuts import render, get_object_or_404 def list(request): employees = Employee.objects.all()[:20] return render(request, 'employees/list.html', {'employees': employees}) def filtering(request): employees = ...
from .models import Employee, BioData, Payroll from django.http import HttpResponse from django.shortcuts import render, get_object_or_404 def list(request): employees = Employee.objects.all()[:50] return render(request, 'employees/list.html', {'employees': employees}) def filtering(request): employees = ...
<commit_before>from .models import Employee, BioData, Payroll from django.http import HttpResponse from django.shortcuts import render, get_object_or_404 def list(request): employees = Employee.objects.all()[:20] return render(request, 'employees/list.html', {'employees': employees}) def filtering(request): ...
from .models import Employee, BioData, Payroll from django.http import HttpResponse from django.shortcuts import render, get_object_or_404 def list(request): employees = Employee.objects.all()[:50] return render(request, 'employees/list.html', {'employees': employees}) def filtering(request): employees = ...
from .models import Employee, BioData, Payroll from django.http import HttpResponse from django.shortcuts import render, get_object_or_404 def list(request): employees = Employee.objects.all()[:20] return render(request, 'employees/list.html', {'employees': employees}) def filtering(request): employees = ...
<commit_before>from .models import Employee, BioData, Payroll from django.http import HttpResponse from django.shortcuts import render, get_object_or_404 def list(request): employees = Employee.objects.all()[:20] return render(request, 'employees/list.html', {'employees': employees}) def filtering(request): ...
1c32ccaf09db53192f5341ca5b0c443faf1a0ee6
pox.py
pox.py
#!/usr/bin/python from pox.core import core import pox.openflow.openflow import pox.topology.topology import pox.openflow.of_01 import pox.dumb_l3_switch.dumb_l3_switch # Set default log level import logging logging.basicConfig(level=logging.DEBUG) # Turn on extra info for event exceptions import pox.lib.revent.reve...
#!/usr/bin/python # Set default log level import logging logging.basicConfig(level=logging.DEBUG) from pox.core import core import pox.openflow.openflow import pox.topology.topology import pox.openflow.of_01 import pox.dumb_l3_switch.dumb_l3_switch # Turn on extra info for event exceptions import pox.lib.revent.reve...
Initialize logging very first thing
Initialize logging very first thing
Python
apache-2.0
kulawczukmarcin/mypox,adusia/pox,pthien92/sdn,xAKLx/pox,xAKLx/pox,carlye566/IoT-POX,diogommartins/pox,waltznetworks/pox,denovogroup/pox,kpengboy/pox-exercise,jacobq/csci5221-viro-project,andiwundsam/_of_normalize,chenyuntc/pox,kpengboy/pox-exercise,kulawczukmarcin/mypox,kulawczukmarcin/mypox,kavitshah8/SDNDeveloper,kav...
#!/usr/bin/python from pox.core import core import pox.openflow.openflow import pox.topology.topology import pox.openflow.of_01 import pox.dumb_l3_switch.dumb_l3_switch # Set default log level import logging logging.basicConfig(level=logging.DEBUG) # Turn on extra info for event exceptions import pox.lib.revent.reve...
#!/usr/bin/python # Set default log level import logging logging.basicConfig(level=logging.DEBUG) from pox.core import core import pox.openflow.openflow import pox.topology.topology import pox.openflow.of_01 import pox.dumb_l3_switch.dumb_l3_switch # Turn on extra info for event exceptions import pox.lib.revent.reve...
<commit_before>#!/usr/bin/python from pox.core import core import pox.openflow.openflow import pox.topology.topology import pox.openflow.of_01 import pox.dumb_l3_switch.dumb_l3_switch # Set default log level import logging logging.basicConfig(level=logging.DEBUG) # Turn on extra info for event exceptions import pox....
#!/usr/bin/python # Set default log level import logging logging.basicConfig(level=logging.DEBUG) from pox.core import core import pox.openflow.openflow import pox.topology.topology import pox.openflow.of_01 import pox.dumb_l3_switch.dumb_l3_switch # Turn on extra info for event exceptions import pox.lib.revent.reve...
#!/usr/bin/python from pox.core import core import pox.openflow.openflow import pox.topology.topology import pox.openflow.of_01 import pox.dumb_l3_switch.dumb_l3_switch # Set default log level import logging logging.basicConfig(level=logging.DEBUG) # Turn on extra info for event exceptions import pox.lib.revent.reve...
<commit_before>#!/usr/bin/python from pox.core import core import pox.openflow.openflow import pox.topology.topology import pox.openflow.of_01 import pox.dumb_l3_switch.dumb_l3_switch # Set default log level import logging logging.basicConfig(level=logging.DEBUG) # Turn on extra info for event exceptions import pox....
4e2fd5e78922eea0f6a65afd6d50ed4b0f03448c
tests/blueprints/board/topic_moderation_base.py
tests/blueprints/board/topic_moderation_base.py
""" :Copyright: 2006-2018 Jochen Kupperschmidt :License: Modified BSD, see LICENSE for details. """ from byceps.services.board.models.topic import Topic from testfixtures.board import create_board, create_category, create_topic from tests.base import AbstractAppTestCase from tests.helpers import assign_permissions_t...
""" :Copyright: 2006-2018 Jochen Kupperschmidt :License: Modified BSD, see LICENSE for details. """ from byceps.services.board.models.topic import Topic from byceps.services.party import settings_service as party_settings_service from testfixtures.board import create_board, create_category, create_topic from tests.b...
Configure board ID as party setting for board tests
Configure board ID as party setting for board tests
Python
bsd-3-clause
homeworkprod/byceps,m-ober/byceps,m-ober/byceps,m-ober/byceps,homeworkprod/byceps,homeworkprod/byceps
""" :Copyright: 2006-2018 Jochen Kupperschmidt :License: Modified BSD, see LICENSE for details. """ from byceps.services.board.models.topic import Topic from testfixtures.board import create_board, create_category, create_topic from tests.base import AbstractAppTestCase from tests.helpers import assign_permissions_t...
""" :Copyright: 2006-2018 Jochen Kupperschmidt :License: Modified BSD, see LICENSE for details. """ from byceps.services.board.models.topic import Topic from byceps.services.party import settings_service as party_settings_service from testfixtures.board import create_board, create_category, create_topic from tests.b...
<commit_before>""" :Copyright: 2006-2018 Jochen Kupperschmidt :License: Modified BSD, see LICENSE for details. """ from byceps.services.board.models.topic import Topic from testfixtures.board import create_board, create_category, create_topic from tests.base import AbstractAppTestCase from tests.helpers import assig...
""" :Copyright: 2006-2018 Jochen Kupperschmidt :License: Modified BSD, see LICENSE for details. """ from byceps.services.board.models.topic import Topic from byceps.services.party import settings_service as party_settings_service from testfixtures.board import create_board, create_category, create_topic from tests.b...
""" :Copyright: 2006-2018 Jochen Kupperschmidt :License: Modified BSD, see LICENSE for details. """ from byceps.services.board.models.topic import Topic from testfixtures.board import create_board, create_category, create_topic from tests.base import AbstractAppTestCase from tests.helpers import assign_permissions_t...
<commit_before>""" :Copyright: 2006-2018 Jochen Kupperschmidt :License: Modified BSD, see LICENSE for details. """ from byceps.services.board.models.topic import Topic from testfixtures.board import create_board, create_category, create_topic from tests.base import AbstractAppTestCase from tests.helpers import assig...
06d3aeda83e54edf7a2b972b9b44ae9bfa7f7178
icekit/project/hosts.py
icekit/project/hosts.py
from django_hosts import patterns, host host_patterns = patterns( '', host(r'www', 'icekit.project.urls', name='www'), host(r'api', 'icekit.api.urls', name='api'), )
from django_hosts import patterns, host from django.conf import settings host_patterns = patterns( '', host(r'www', settings.ROOT_URLCONF, name='www'), host(r'api', 'icekit.api.urls', name='api'), )
Use project ROOT_URLCONF on default host, not hardcoded urls.
Use project ROOT_URLCONF on default host, not hardcoded urls.
Python
mit
ic-labs/django-icekit,ic-labs/django-icekit,ic-labs/django-icekit,ic-labs/django-icekit
from django_hosts import patterns, host host_patterns = patterns( '', host(r'www', 'icekit.project.urls', name='www'), host(r'api', 'icekit.api.urls', name='api'), ) Use project ROOT_URLCONF on default host, not hardcoded urls.
from django_hosts import patterns, host from django.conf import settings host_patterns = patterns( '', host(r'www', settings.ROOT_URLCONF, name='www'), host(r'api', 'icekit.api.urls', name='api'), )
<commit_before>from django_hosts import patterns, host host_patterns = patterns( '', host(r'www', 'icekit.project.urls', name='www'), host(r'api', 'icekit.api.urls', name='api'), ) <commit_msg>Use project ROOT_URLCONF on default host, not hardcoded urls.<commit_after>
from django_hosts import patterns, host from django.conf import settings host_patterns = patterns( '', host(r'www', settings.ROOT_URLCONF, name='www'), host(r'api', 'icekit.api.urls', name='api'), )
from django_hosts import patterns, host host_patterns = patterns( '', host(r'www', 'icekit.project.urls', name='www'), host(r'api', 'icekit.api.urls', name='api'), ) Use project ROOT_URLCONF on default host, not hardcoded urls.from django_hosts import patterns, host from django.conf import settings host_...
<commit_before>from django_hosts import patterns, host host_patterns = patterns( '', host(r'www', 'icekit.project.urls', name='www'), host(r'api', 'icekit.api.urls', name='api'), ) <commit_msg>Use project ROOT_URLCONF on default host, not hardcoded urls.<commit_after>from django_hosts import patterns, hos...
6ee7d39c7c39a018a71cbb028dd847e3da521263
views.py
views.py
from rest_framework import viewsets, permissions from rest_framework_word_filter import FullWordSearchFilter from quotedb.models import Quote from quotedb.permissions import IsOwnerOrReadOnly from quotedb.serializers import QuoteSerializer class QuoteViewSet(viewsets.ModelViewSet): """ This viewset automati...
from rest_framework import viewsets, permissions from rest_framework.decorators import list_route from rest_framework.response import Response from rest_framework_word_filter import FullWordSearchFilter from quotedb.models import Quote from quotedb.permissions import IsOwnerOrReadOnly from quotedb.serializers import Q...
Add route to get random quote
Add route to get random quote
Python
mit
kfdm/django-qdb,kfdm/django-qdb
from rest_framework import viewsets, permissions from rest_framework_word_filter import FullWordSearchFilter from quotedb.models import Quote from quotedb.permissions import IsOwnerOrReadOnly from quotedb.serializers import QuoteSerializer class QuoteViewSet(viewsets.ModelViewSet): """ This viewset automati...
from rest_framework import viewsets, permissions from rest_framework.decorators import list_route from rest_framework.response import Response from rest_framework_word_filter import FullWordSearchFilter from quotedb.models import Quote from quotedb.permissions import IsOwnerOrReadOnly from quotedb.serializers import Q...
<commit_before>from rest_framework import viewsets, permissions from rest_framework_word_filter import FullWordSearchFilter from quotedb.models import Quote from quotedb.permissions import IsOwnerOrReadOnly from quotedb.serializers import QuoteSerializer class QuoteViewSet(viewsets.ModelViewSet): """ This v...
from rest_framework import viewsets, permissions from rest_framework.decorators import list_route from rest_framework.response import Response from rest_framework_word_filter import FullWordSearchFilter from quotedb.models import Quote from quotedb.permissions import IsOwnerOrReadOnly from quotedb.serializers import Q...
from rest_framework import viewsets, permissions from rest_framework_word_filter import FullWordSearchFilter from quotedb.models import Quote from quotedb.permissions import IsOwnerOrReadOnly from quotedb.serializers import QuoteSerializer class QuoteViewSet(viewsets.ModelViewSet): """ This viewset automati...
<commit_before>from rest_framework import viewsets, permissions from rest_framework_word_filter import FullWordSearchFilter from quotedb.models import Quote from quotedb.permissions import IsOwnerOrReadOnly from quotedb.serializers import QuoteSerializer class QuoteViewSet(viewsets.ModelViewSet): """ This v...
4208538a2b7c5f2280f67520a73bd87b74de26dd
scripts/getsent.py
scripts/getsent.py
#!/usr/bin/python import sys import depio sentnum = int(sys.argv[2]) fnames = [sys.argv[1]] for fname in fnames: sents = list(depio.depread(fname)) i=0 out = open("%d.%s" % (sentnum,fname),'w') for outl in sents[sentnum]: out.write('\t'.join(outl) + '\n') break out.close()
#!/usr/bin/python import sys import depio sentnum = int(sys.argv[2]) fnames = [sys.argv[1]] for fname in fnames: sents = list(depio.depread(fname)) i=0 out = open("%d.%s" % (sentnum,fname),'w') for outl in sents[sentnum]: out.write('\t'.join(outl) + '\n') out.write('\n') out.close()
Fix script to output new line at end of file
Fix script to output new line at end of file
Python
apache-2.0
habeanf/yap,habeanf/yap
#!/usr/bin/python import sys import depio sentnum = int(sys.argv[2]) fnames = [sys.argv[1]] for fname in fnames: sents = list(depio.depread(fname)) i=0 out = open("%d.%s" % (sentnum,fname),'w') for outl in sents[sentnum]: out.write('\t'.join(outl) + '\n') break out.close() Fix script to output new line at end...
#!/usr/bin/python import sys import depio sentnum = int(sys.argv[2]) fnames = [sys.argv[1]] for fname in fnames: sents = list(depio.depread(fname)) i=0 out = open("%d.%s" % (sentnum,fname),'w') for outl in sents[sentnum]: out.write('\t'.join(outl) + '\n') out.write('\n') out.close()
<commit_before>#!/usr/bin/python import sys import depio sentnum = int(sys.argv[2]) fnames = [sys.argv[1]] for fname in fnames: sents = list(depio.depread(fname)) i=0 out = open("%d.%s" % (sentnum,fname),'w') for outl in sents[sentnum]: out.write('\t'.join(outl) + '\n') break out.close() <commit_msg>Fix scrip...
#!/usr/bin/python import sys import depio sentnum = int(sys.argv[2]) fnames = [sys.argv[1]] for fname in fnames: sents = list(depio.depread(fname)) i=0 out = open("%d.%s" % (sentnum,fname),'w') for outl in sents[sentnum]: out.write('\t'.join(outl) + '\n') out.write('\n') out.close()
#!/usr/bin/python import sys import depio sentnum = int(sys.argv[2]) fnames = [sys.argv[1]] for fname in fnames: sents = list(depio.depread(fname)) i=0 out = open("%d.%s" % (sentnum,fname),'w') for outl in sents[sentnum]: out.write('\t'.join(outl) + '\n') break out.close() Fix script to output new line at end...
<commit_before>#!/usr/bin/python import sys import depio sentnum = int(sys.argv[2]) fnames = [sys.argv[1]] for fname in fnames: sents = list(depio.depread(fname)) i=0 out = open("%d.%s" % (sentnum,fname),'w') for outl in sents[sentnum]: out.write('\t'.join(outl) + '\n') break out.close() <commit_msg>Fix scrip...
78e7fd90db429793c2b4ceee34f5296484bb0fd4
run_tests.py
run_tests.py
#!/usr/bin/env python # This file is closely based on tests.py from matplotlib # # This allows running the matplotlib tests from the command line: e.g. # # $ python tests.py -v -d # # The arguments are identical to the arguments accepted by nosetests. # # See https://nose.readthedocs.org/ for a detailed description o...
#!/usr/bin/env python import sys import pytest if __name__ == '__main__': # show output results from every test function args = ['-v'] # show the message output for skipped and expected failure tests args.append('-rxs') args.extend(sys.argv[1:]) # call pytest and exit with the return code from ...
Use pytest to run tests
TST: Use pytest to run tests
Python
bsd-3-clause
NSLS-II/metadatastore,hhslepicka/metadatastore,arkilic/metadatastore,arkilic/metadatastore,ericdill/databroker,NSLS-II/metadatastore,ericdill/databroker,tacaswell/metadataStore,tacaswell/metadataStore,hhslepicka/metadatastore
#!/usr/bin/env python # This file is closely based on tests.py from matplotlib # # This allows running the matplotlib tests from the command line: e.g. # # $ python tests.py -v -d # # The arguments are identical to the arguments accepted by nosetests. # # See https://nose.readthedocs.org/ for a detailed description o...
#!/usr/bin/env python import sys import pytest if __name__ == '__main__': # show output results from every test function args = ['-v'] # show the message output for skipped and expected failure tests args.append('-rxs') args.extend(sys.argv[1:]) # call pytest and exit with the return code from ...
<commit_before>#!/usr/bin/env python # This file is closely based on tests.py from matplotlib # # This allows running the matplotlib tests from the command line: e.g. # # $ python tests.py -v -d # # The arguments are identical to the arguments accepted by nosetests. # # See https://nose.readthedocs.org/ for a detaile...
#!/usr/bin/env python import sys import pytest if __name__ == '__main__': # show output results from every test function args = ['-v'] # show the message output for skipped and expected failure tests args.append('-rxs') args.extend(sys.argv[1:]) # call pytest and exit with the return code from ...
#!/usr/bin/env python # This file is closely based on tests.py from matplotlib # # This allows running the matplotlib tests from the command line: e.g. # # $ python tests.py -v -d # # The arguments are identical to the arguments accepted by nosetests. # # See https://nose.readthedocs.org/ for a detailed description o...
<commit_before>#!/usr/bin/env python # This file is closely based on tests.py from matplotlib # # This allows running the matplotlib tests from the command line: e.g. # # $ python tests.py -v -d # # The arguments are identical to the arguments accepted by nosetests. # # See https://nose.readthedocs.org/ for a detaile...
e6206c2bdacfbd2632beb6ed56ccb6856d299e08
tests/test_suggestion_fetcher.py
tests/test_suggestion_fetcher.py
import unittest2 from google.appengine.ext import testbed from models.account import Account from models.suggestion import Suggestion from helpers.suggestions.suggestion_fetcher import SuggestionFetcher class TestEventTeamRepairer(unittest2.TestCase): def setUp(self): self.testbed = testbed.Testbed() ...
import unittest2 from google.appengine.ext import testbed from models.account import Account from models.suggestion import Suggestion from helpers.suggestions.suggestion_fetcher import SuggestionFetcher class TestSuggestionFetcher(unittest2.TestCase): def setUp(self): self.testbed = testbed.Testbed() ...
Fix class name of test.
Fix class name of test.
Python
mit
phil-lopreiato/the-blue-alliance,jaredhasenklein/the-blue-alliance,fangeugene/the-blue-alliance,tsteward/the-blue-alliance,phil-lopreiato/the-blue-alliance,the-blue-alliance/the-blue-alliance,synth3tk/the-blue-alliance,synth3tk/the-blue-alliance,nwalters512/the-blue-alliance,the-blue-alliance/the-blue-alliance,fangeuge...
import unittest2 from google.appengine.ext import testbed from models.account import Account from models.suggestion import Suggestion from helpers.suggestions.suggestion_fetcher import SuggestionFetcher class TestEventTeamRepairer(unittest2.TestCase): def setUp(self): self.testbed = testbed.Testbed() ...
import unittest2 from google.appengine.ext import testbed from models.account import Account from models.suggestion import Suggestion from helpers.suggestions.suggestion_fetcher import SuggestionFetcher class TestSuggestionFetcher(unittest2.TestCase): def setUp(self): self.testbed = testbed.Testbed() ...
<commit_before>import unittest2 from google.appengine.ext import testbed from models.account import Account from models.suggestion import Suggestion from helpers.suggestions.suggestion_fetcher import SuggestionFetcher class TestEventTeamRepairer(unittest2.TestCase): def setUp(self): self.testbed = test...
import unittest2 from google.appengine.ext import testbed from models.account import Account from models.suggestion import Suggestion from helpers.suggestions.suggestion_fetcher import SuggestionFetcher class TestSuggestionFetcher(unittest2.TestCase): def setUp(self): self.testbed = testbed.Testbed() ...
import unittest2 from google.appengine.ext import testbed from models.account import Account from models.suggestion import Suggestion from helpers.suggestions.suggestion_fetcher import SuggestionFetcher class TestEventTeamRepairer(unittest2.TestCase): def setUp(self): self.testbed = testbed.Testbed() ...
<commit_before>import unittest2 from google.appengine.ext import testbed from models.account import Account from models.suggestion import Suggestion from helpers.suggestions.suggestion_fetcher import SuggestionFetcher class TestEventTeamRepairer(unittest2.TestCase): def setUp(self): self.testbed = test...
c6e1774c8c8d9b41509e183df2177f32427274df
tests/unit/test_LambdaContext.py
tests/unit/test_LambdaContext.py
from aws_lambda.helpers import LambdaContext import time import unittest class TestLambdaContext(unittest.TestCase): def test_get_remaining_time_in_millis(self): context = LambdaContext('function_name',2000) time.sleep(.5) self.assertTrue(context.get_remaining_time_in_millis() < 2000) if __name__ == '__main_...
from aws_lambda.helpers import LambdaContext import time import unittest class TestLambdaContext(unittest.TestCase): def test_get_remaining_time_in_millis(self): context = LambdaContext('function_name', 2000) time.sleep(.5) self.assertTrue(context.get_remaining_time_in_millis() < 2000000) if __name__ == '__m...
Fix second/millisecond conversion issue in test case
Fix second/millisecond conversion issue in test case The test for the `get_remaining_time_in_millis` method was evaluating the output against a count in seconds, not milliseconds. This corrects the issue to allow the test suite to pass
Python
isc
nficano/python-lambda
from aws_lambda.helpers import LambdaContext import time import unittest class TestLambdaContext(unittest.TestCase): def test_get_remaining_time_in_millis(self): context = LambdaContext('function_name',2000) time.sleep(.5) self.assertTrue(context.get_remaining_time_in_millis() < 2000) if __name__ == '__main_...
from aws_lambda.helpers import LambdaContext import time import unittest class TestLambdaContext(unittest.TestCase): def test_get_remaining_time_in_millis(self): context = LambdaContext('function_name', 2000) time.sleep(.5) self.assertTrue(context.get_remaining_time_in_millis() < 2000000) if __name__ == '__m...
<commit_before>from aws_lambda.helpers import LambdaContext import time import unittest class TestLambdaContext(unittest.TestCase): def test_get_remaining_time_in_millis(self): context = LambdaContext('function_name',2000) time.sleep(.5) self.assertTrue(context.get_remaining_time_in_millis() < 2000) if __nam...
from aws_lambda.helpers import LambdaContext import time import unittest class TestLambdaContext(unittest.TestCase): def test_get_remaining_time_in_millis(self): context = LambdaContext('function_name', 2000) time.sleep(.5) self.assertTrue(context.get_remaining_time_in_millis() < 2000000) if __name__ == '__m...
from aws_lambda.helpers import LambdaContext import time import unittest class TestLambdaContext(unittest.TestCase): def test_get_remaining_time_in_millis(self): context = LambdaContext('function_name',2000) time.sleep(.5) self.assertTrue(context.get_remaining_time_in_millis() < 2000) if __name__ == '__main_...
<commit_before>from aws_lambda.helpers import LambdaContext import time import unittest class TestLambdaContext(unittest.TestCase): def test_get_remaining_time_in_millis(self): context = LambdaContext('function_name',2000) time.sleep(.5) self.assertTrue(context.get_remaining_time_in_millis() < 2000) if __nam...
fdbac9531215233b3ed5424401779c8edc33f16b
touchtechnology/common/fields.py
touchtechnology/common/fields.py
from django import forms from django.utils.translation import ugettext_lazy as _ def boolean_coerce(value): if value in {1, '1'}: return True if value in {0, '0'}: return False class BooleanChoiceField(forms.TypedChoiceField): widget = forms.RadioSelect def __init__(self, *args, **k...
from django import forms from django.utils.translation import ugettext_lazy as _ def boolean_coerce(value): if value in {1, '1'}: return True if value in {0, '0'}: return False class BooleanChoiceField(forms.TypedChoiceField): widget = forms.Select def __init__(self, *args, **kwargs...
Switch BooleanChoiceField to use Select widget instead of the RadioSelect widget
Switch BooleanChoiceField to use Select widget instead of the RadioSelect widget
Python
bsd-3-clause
goodtune/vitriolic,goodtune/vitriolic,goodtune/vitriolic,goodtune/vitriolic
from django import forms from django.utils.translation import ugettext_lazy as _ def boolean_coerce(value): if value in {1, '1'}: return True if value in {0, '0'}: return False class BooleanChoiceField(forms.TypedChoiceField): widget = forms.RadioSelect def __init__(self, *args, **k...
from django import forms from django.utils.translation import ugettext_lazy as _ def boolean_coerce(value): if value in {1, '1'}: return True if value in {0, '0'}: return False class BooleanChoiceField(forms.TypedChoiceField): widget = forms.Select def __init__(self, *args, **kwargs...
<commit_before>from django import forms from django.utils.translation import ugettext_lazy as _ def boolean_coerce(value): if value in {1, '1'}: return True if value in {0, '0'}: return False class BooleanChoiceField(forms.TypedChoiceField): widget = forms.RadioSelect def __init__(s...
from django import forms from django.utils.translation import ugettext_lazy as _ def boolean_coerce(value): if value in {1, '1'}: return True if value in {0, '0'}: return False class BooleanChoiceField(forms.TypedChoiceField): widget = forms.Select def __init__(self, *args, **kwargs...
from django import forms from django.utils.translation import ugettext_lazy as _ def boolean_coerce(value): if value in {1, '1'}: return True if value in {0, '0'}: return False class BooleanChoiceField(forms.TypedChoiceField): widget = forms.RadioSelect def __init__(self, *args, **k...
<commit_before>from django import forms from django.utils.translation import ugettext_lazy as _ def boolean_coerce(value): if value in {1, '1'}: return True if value in {0, '0'}: return False class BooleanChoiceField(forms.TypedChoiceField): widget = forms.RadioSelect def __init__(s...
d65643e1bb74210a458b370aca5343f5c7059022
wm_metrics/period.py
wm_metrics/period.py
"""Representation of a period of time.""" class Period(object): def __init__(self, start, end): self.start = start self.end = end def __repr__(self): return "%s-%s" % (self.start, self.end)
"""Representation of a period of time.""" class Period(object): def __init__(self, start, end): self.start = start self.end = end def __repr__(self): return "%s-%s" % (self.start, self.end) def __eq__(self, other): return ((other.start == self.start) and ...
Add __eq__ method to Period object
Add __eq__ method to Period object Ultimately we probably want to reuse Python objects like timestamps.
Python
mit
Commonists/wm_metrics,danmichaelo/wm_metrics,Commonists/wm_metrics,danmichaelo/wm_metrics,danmichaelo/wm_metrics,Commonists/wm_metrics,Commonists/wm_metrics,danmichaelo/wm_metrics
"""Representation of a period of time.""" class Period(object): def __init__(self, start, end): self.start = start self.end = end def __repr__(self): return "%s-%s" % (self.start, self.end) Add __eq__ method to Period object Ultimately we probably want to reuse Python objects like t...
"""Representation of a period of time.""" class Period(object): def __init__(self, start, end): self.start = start self.end = end def __repr__(self): return "%s-%s" % (self.start, self.end) def __eq__(self, other): return ((other.start == self.start) and ...
<commit_before>"""Representation of a period of time.""" class Period(object): def __init__(self, start, end): self.start = start self.end = end def __repr__(self): return "%s-%s" % (self.start, self.end) <commit_msg>Add __eq__ method to Period object Ultimately we probably want to ...
"""Representation of a period of time.""" class Period(object): def __init__(self, start, end): self.start = start self.end = end def __repr__(self): return "%s-%s" % (self.start, self.end) def __eq__(self, other): return ((other.start == self.start) and ...
"""Representation of a period of time.""" class Period(object): def __init__(self, start, end): self.start = start self.end = end def __repr__(self): return "%s-%s" % (self.start, self.end) Add __eq__ method to Period object Ultimately we probably want to reuse Python objects like t...
<commit_before>"""Representation of a period of time.""" class Period(object): def __init__(self, start, end): self.start = start self.end = end def __repr__(self): return "%s-%s" % (self.start, self.end) <commit_msg>Add __eq__ method to Period object Ultimately we probably want to ...
f3a8c5504d75bde7fe66aeb736f4d45aa24bf6f7
workbench/request.py
workbench/request.py
"""Helpers for WebOb requests and responses.""" import webob def webob_to_django_response(webob_response): """Returns a django response to the `webob_response`""" from django.http import HttpResponse django_response = HttpResponse( webob_response.app_iter, content_type=webob_response.cont...
"""Helpers for WebOb requests and responses.""" import webob def webob_to_django_response(webob_response): """Returns a django response to the `webob_response`""" from django.http import HttpResponse django_response = HttpResponse( webob_response.app_iter, content_type=webob_response.cont...
Delete unused webob conversion method
Delete unused webob conversion method
Python
apache-2.0
nagyistoce/edx-XBlock,edx-solutions/xblock-sdk,Pilou81715/hackathon_edX,EDUlib/XBlock,jamiefolsom/xblock-sdk,nagyistoce/edx-xblock-sdk,edx/xblock-sdk,lovehhf/XBlock,lovehhf/xblock-sdk,mitodl/XBlock,lovehhf/xblock-sdk,lovehhf/xblock-sdk,jamiefolsom/xblock-sdk,edx/XBlock,cpennington/XBlock,nagyistoce/edx-xblock-sdk,edx/X...
"""Helpers for WebOb requests and responses.""" import webob def webob_to_django_response(webob_response): """Returns a django response to the `webob_response`""" from django.http import HttpResponse django_response = HttpResponse( webob_response.app_iter, content_type=webob_response.cont...
"""Helpers for WebOb requests and responses.""" import webob def webob_to_django_response(webob_response): """Returns a django response to the `webob_response`""" from django.http import HttpResponse django_response = HttpResponse( webob_response.app_iter, content_type=webob_response.cont...
<commit_before>"""Helpers for WebOb requests and responses.""" import webob def webob_to_django_response(webob_response): """Returns a django response to the `webob_response`""" from django.http import HttpResponse django_response = HttpResponse( webob_response.app_iter, content_type=webo...
"""Helpers for WebOb requests and responses.""" import webob def webob_to_django_response(webob_response): """Returns a django response to the `webob_response`""" from django.http import HttpResponse django_response = HttpResponse( webob_response.app_iter, content_type=webob_response.cont...
"""Helpers for WebOb requests and responses.""" import webob def webob_to_django_response(webob_response): """Returns a django response to the `webob_response`""" from django.http import HttpResponse django_response = HttpResponse( webob_response.app_iter, content_type=webob_response.cont...
<commit_before>"""Helpers for WebOb requests and responses.""" import webob def webob_to_django_response(webob_response): """Returns a django response to the `webob_response`""" from django.http import HttpResponse django_response = HttpResponse( webob_response.app_iter, content_type=webo...
fe3e43e4d894a0d7009dcbfcafb2546d12cb6296
vumi/middleware/session_length.py
vumi/middleware/session_length.py
# -*- test-case-name: vumi.middleware.tests.test_session_length -*- import time from twisted.internet.defer import inlineCallbacks, returnValue from vumi.message.TransportUserMessage import SESSION_NEW, SESSION_CLOSE from vumi.middleware.base import BaseMiddleware from vumi.persist.txredis_manager import TxRedisMana...
# -*- test-case-name: vumi.middleware.tests.test_session_length -*- import time from twisted.internet.defer import inlineCallbacks, returnValue from vumi.message import TransportUserMessage from vumi.middleware.base import BaseMiddleware from vumi.persist.txredis_manager import TxRedisManager class SessionLengthMi...
Fix session event variable import.
Fix session event variable import.
Python
bsd-3-clause
vishwaprakashmishra/xmatrix,vishwaprakashmishra/xmatrix,harrissoerja/vumi,TouK/vumi,vishwaprakashmishra/xmatrix,TouK/vumi,harrissoerja/vumi,harrissoerja/vumi,TouK/vumi
# -*- test-case-name: vumi.middleware.tests.test_session_length -*- import time from twisted.internet.defer import inlineCallbacks, returnValue from vumi.message.TransportUserMessage import SESSION_NEW, SESSION_CLOSE from vumi.middleware.base import BaseMiddleware from vumi.persist.txredis_manager import TxRedisMana...
# -*- test-case-name: vumi.middleware.tests.test_session_length -*- import time from twisted.internet.defer import inlineCallbacks, returnValue from vumi.message import TransportUserMessage from vumi.middleware.base import BaseMiddleware from vumi.persist.txredis_manager import TxRedisManager class SessionLengthMi...
<commit_before># -*- test-case-name: vumi.middleware.tests.test_session_length -*- import time from twisted.internet.defer import inlineCallbacks, returnValue from vumi.message.TransportUserMessage import SESSION_NEW, SESSION_CLOSE from vumi.middleware.base import BaseMiddleware from vumi.persist.txredis_manager imp...
# -*- test-case-name: vumi.middleware.tests.test_session_length -*- import time from twisted.internet.defer import inlineCallbacks, returnValue from vumi.message import TransportUserMessage from vumi.middleware.base import BaseMiddleware from vumi.persist.txredis_manager import TxRedisManager class SessionLengthMi...
# -*- test-case-name: vumi.middleware.tests.test_session_length -*- import time from twisted.internet.defer import inlineCallbacks, returnValue from vumi.message.TransportUserMessage import SESSION_NEW, SESSION_CLOSE from vumi.middleware.base import BaseMiddleware from vumi.persist.txredis_manager import TxRedisMana...
<commit_before># -*- test-case-name: vumi.middleware.tests.test_session_length -*- import time from twisted.internet.defer import inlineCallbacks, returnValue from vumi.message.TransportUserMessage import SESSION_NEW, SESSION_CLOSE from vumi.middleware.base import BaseMiddleware from vumi.persist.txredis_manager imp...
a2a1e53d289d39d4df6c6552f89602e96e4775c6
django_ses/tests/__init__.py
django_ses/tests/__init__.py
from backend import SESBackendTest from commands import SESCommandTest from stats import StatParsingTest from configuration import SettingsImportTest
from .backend import * from .commands import * from .stats import * from .configuration import *
Make sure to load *all* tests
Make sure to load *all* tests
Python
mit
smaato/django-ses,django-ses/django-ses,ticosax/django-ses,piotrbulinski/django-ses-backend,ticosax/django-ses,brutasse/django-ses,grumbler/django-ses,brutasse/django-ses,django-ses/django-ses,grumbler/django-ses,350dotorg/django-ses,smaato/django-ses
from backend import SESBackendTest from commands import SESCommandTest from stats import StatParsingTest from configuration import SettingsImportTest Make sure to load *all* tests
from .backend import * from .commands import * from .stats import * from .configuration import *
<commit_before>from backend import SESBackendTest from commands import SESCommandTest from stats import StatParsingTest from configuration import SettingsImportTest <commit_msg>Make sure to load *all* tests<commit_after>
from .backend import * from .commands import * from .stats import * from .configuration import *
from backend import SESBackendTest from commands import SESCommandTest from stats import StatParsingTest from configuration import SettingsImportTest Make sure to load *all* testsfrom .backend import * from .commands import * from .stats import * from .configuration import *
<commit_before>from backend import SESBackendTest from commands import SESCommandTest from stats import StatParsingTest from configuration import SettingsImportTest <commit_msg>Make sure to load *all* tests<commit_after>from .backend import * from .commands import * from .stats import * from .configuration import *
1607a12c80b09616f7607e167de8ebb720fb0f3d
demo.py
demo.py
from __future__ import print_function import pynbs my_file = pynbs.read('demo_song.nbs') print(my_file.header.song_length) print(my_file.header.description) print(my_file.notes) print(my_file.layers) print(my_file.instruments) for tick, chord in my_file.song(): print(tick, [note.key for note ...
from __future__ import print_function import pynbs # read file my_file = pynbs.read('demo_song.nbs') print(my_file.header.song_length) print(my_file.header.description) print(my_file.notes) print(my_file.layers) print(my_file.instruments) for tick, chord in my_file.song(): print(tick, [not...
Add examples for editing and saving file
Add examples for editing and saving file
Python
mit
fizzy81/pynbs
from __future__ import print_function import pynbs my_file = pynbs.read('demo_song.nbs') print(my_file.header.song_length) print(my_file.header.description) print(my_file.notes) print(my_file.layers) print(my_file.instruments) for tick, chord in my_file.song(): print(tick, [note.key for note ...
from __future__ import print_function import pynbs # read file my_file = pynbs.read('demo_song.nbs') print(my_file.header.song_length) print(my_file.header.description) print(my_file.notes) print(my_file.layers) print(my_file.instruments) for tick, chord in my_file.song(): print(tick, [not...
<commit_before> from __future__ import print_function import pynbs my_file = pynbs.read('demo_song.nbs') print(my_file.header.song_length) print(my_file.header.description) print(my_file.notes) print(my_file.layers) print(my_file.instruments) for tick, chord in my_file.song(): print(tick, [not...
from __future__ import print_function import pynbs # read file my_file = pynbs.read('demo_song.nbs') print(my_file.header.song_length) print(my_file.header.description) print(my_file.notes) print(my_file.layers) print(my_file.instruments) for tick, chord in my_file.song(): print(tick, [not...
from __future__ import print_function import pynbs my_file = pynbs.read('demo_song.nbs') print(my_file.header.song_length) print(my_file.header.description) print(my_file.notes) print(my_file.layers) print(my_file.instruments) for tick, chord in my_file.song(): print(tick, [note.key for note ...
<commit_before> from __future__ import print_function import pynbs my_file = pynbs.read('demo_song.nbs') print(my_file.header.song_length) print(my_file.header.description) print(my_file.notes) print(my_file.layers) print(my_file.instruments) for tick, chord in my_file.song(): print(tick, [not...
7a7059a28a43e736d963f83b4ea42b08e9200691
fellowms/tests.py
fellowms/tests.py
from django.test import TestCase from .models import Event class EventTestCase(TestCase): def setUp(self): events = ( { "fellow": 1, "category": "O", "name": "CW16", "url": "http://www.software.ac.uk/cw16", ...
from django.test import TestCase from .models import Fellow, Event class FellowTestCase(TestCase): def setUp(self): fellows = ( { "forenames": "A", "surname": "C", "affiliation": "King's College", "research_area...
Add test for fellow model
Add test for fellow model
Python
bsd-3-clause
softwaresaved/fat,softwaresaved/fat,softwaresaved/fat,softwaresaved/fat
from django.test import TestCase from .models import Event class EventTestCase(TestCase): def setUp(self): events = ( { "fellow": 1, "category": "O", "name": "CW16", "url": "http://www.software.ac.uk/cw16", ...
from django.test import TestCase from .models import Fellow, Event class FellowTestCase(TestCase): def setUp(self): fellows = ( { "forenames": "A", "surname": "C", "affiliation": "King's College", "research_area...
<commit_before>from django.test import TestCase from .models import Event class EventTestCase(TestCase): def setUp(self): events = ( { "fellow": 1, "category": "O", "name": "CW16", "url": "http://www.software.ac...
from django.test import TestCase from .models import Fellow, Event class FellowTestCase(TestCase): def setUp(self): fellows = ( { "forenames": "A", "surname": "C", "affiliation": "King's College", "research_area...
from django.test import TestCase from .models import Event class EventTestCase(TestCase): def setUp(self): events = ( { "fellow": 1, "category": "O", "name": "CW16", "url": "http://www.software.ac.uk/cw16", ...
<commit_before>from django.test import TestCase from .models import Event class EventTestCase(TestCase): def setUp(self): events = ( { "fellow": 1, "category": "O", "name": "CW16", "url": "http://www.software.ac...
31ddb8ec0cba2afd4787906c6b6e299df33a8714
ldapdb/__init__.py
ldapdb/__init__.py
# -*- coding: utf-8 -*- # This software is distributed under the two-clause BSD license. # Copyright (c) The django-ldapdb project from django.conf import settings import ldap.filter def escape_ldap_filter(value): return ldap.filter.escape_filter_chars(str(value)) # Legacy single database support if hasattr(set...
# -*- coding: utf-8 -*- # This software is distributed under the two-clause BSD license. # Copyright (c) The django-ldapdb project from django.conf import settings import sys import ldap.filter def escape_ldap_filter(value): if sys.version_info[0] < 3: text_value = unicode(value) else: text_...
Fix encoding issue with legacy python (2.7)
Fix encoding issue with legacy python (2.7)
Python
bsd-2-clause
django-ldapdb/django-ldapdb,jlaine/django-ldapdb
# -*- coding: utf-8 -*- # This software is distributed under the two-clause BSD license. # Copyright (c) The django-ldapdb project from django.conf import settings import ldap.filter def escape_ldap_filter(value): return ldap.filter.escape_filter_chars(str(value)) # Legacy single database support if hasattr(set...
# -*- coding: utf-8 -*- # This software is distributed under the two-clause BSD license. # Copyright (c) The django-ldapdb project from django.conf import settings import sys import ldap.filter def escape_ldap_filter(value): if sys.version_info[0] < 3: text_value = unicode(value) else: text_...
<commit_before># -*- coding: utf-8 -*- # This software is distributed under the two-clause BSD license. # Copyright (c) The django-ldapdb project from django.conf import settings import ldap.filter def escape_ldap_filter(value): return ldap.filter.escape_filter_chars(str(value)) # Legacy single database support...
# -*- coding: utf-8 -*- # This software is distributed under the two-clause BSD license. # Copyright (c) The django-ldapdb project from django.conf import settings import sys import ldap.filter def escape_ldap_filter(value): if sys.version_info[0] < 3: text_value = unicode(value) else: text_...
# -*- coding: utf-8 -*- # This software is distributed under the two-clause BSD license. # Copyright (c) The django-ldapdb project from django.conf import settings import ldap.filter def escape_ldap_filter(value): return ldap.filter.escape_filter_chars(str(value)) # Legacy single database support if hasattr(set...
<commit_before># -*- coding: utf-8 -*- # This software is distributed under the two-clause BSD license. # Copyright (c) The django-ldapdb project from django.conf import settings import ldap.filter def escape_ldap_filter(value): return ldap.filter.escape_filter_chars(str(value)) # Legacy single database support...
b1380edda27c021c67cfd686a30410c15c1f023e
scoring_engine/engine/execute_command.py
scoring_engine/engine/execute_command.py
from scoring_engine.celery_app import celery_app from billiard.exceptions import SoftTimeLimitExceeded import subprocess from scoring_engine.logger import logger @celery_app.task(name='execute_command', soft_time_limit=30) def execute_command(job): output = "" logger.info("Running cmd for " + str(job)) t...
from scoring_engine.celery_app import celery_app from billiard.exceptions import SoftTimeLimitExceeded import subprocess from scoring_engine.logger import logger @celery_app.task(name='execute_command', soft_time_limit=30) def execute_command(job): output = "" # Disable duplicate celery log messages if l...
Disable duplicate celery log messages
Disable duplicate celery log messages
Python
mit
pwnbus/scoring_engine,pwnbus/scoring_engine,pwnbus/scoring_engine,pwnbus/scoring_engine
from scoring_engine.celery_app import celery_app from billiard.exceptions import SoftTimeLimitExceeded import subprocess from scoring_engine.logger import logger @celery_app.task(name='execute_command', soft_time_limit=30) def execute_command(job): output = "" logger.info("Running cmd for " + str(job)) t...
from scoring_engine.celery_app import celery_app from billiard.exceptions import SoftTimeLimitExceeded import subprocess from scoring_engine.logger import logger @celery_app.task(name='execute_command', soft_time_limit=30) def execute_command(job): output = "" # Disable duplicate celery log messages if l...
<commit_before>from scoring_engine.celery_app import celery_app from billiard.exceptions import SoftTimeLimitExceeded import subprocess from scoring_engine.logger import logger @celery_app.task(name='execute_command', soft_time_limit=30) def execute_command(job): output = "" logger.info("Running cmd for " + ...
from scoring_engine.celery_app import celery_app from billiard.exceptions import SoftTimeLimitExceeded import subprocess from scoring_engine.logger import logger @celery_app.task(name='execute_command', soft_time_limit=30) def execute_command(job): output = "" # Disable duplicate celery log messages if l...
from scoring_engine.celery_app import celery_app from billiard.exceptions import SoftTimeLimitExceeded import subprocess from scoring_engine.logger import logger @celery_app.task(name='execute_command', soft_time_limit=30) def execute_command(job): output = "" logger.info("Running cmd for " + str(job)) t...
<commit_before>from scoring_engine.celery_app import celery_app from billiard.exceptions import SoftTimeLimitExceeded import subprocess from scoring_engine.logger import logger @celery_app.task(name='execute_command', soft_time_limit=30) def execute_command(job): output = "" logger.info("Running cmd for " + ...
66c341ecb6d93758bbccfd65dae6317fce8ed8f5
jobsboard/jobs/views.py
jobsboard/jobs/views.py
from django.views.generic.list import ListView from django.views.generic.detail import DetailView from django.views.generic.edit import CreateView from django.shortcuts import redirect, render from django.http import HttpResponse from .models import Job from jobsboard.jobs.forms import JobForm class JobListView(Lis...
from django.views.generic.list import ListView from django.views.generic.detail import DetailView from django.views.generic.edit import CreateView from django.shortcuts import redirect, render from django.http import HttpResponse from .models import Job from jobsboard.jobs.forms import JobForm class JobListView(Lis...
Add new line at end of file
Add new line at end of file
Python
mit
pythonph/jobs-board,pythonph/jobs-board,pythonph/jobs-board
from django.views.generic.list import ListView from django.views.generic.detail import DetailView from django.views.generic.edit import CreateView from django.shortcuts import redirect, render from django.http import HttpResponse from .models import Job from jobsboard.jobs.forms import JobForm class JobListView(Lis...
from django.views.generic.list import ListView from django.views.generic.detail import DetailView from django.views.generic.edit import CreateView from django.shortcuts import redirect, render from django.http import HttpResponse from .models import Job from jobsboard.jobs.forms import JobForm class JobListView(Lis...
<commit_before>from django.views.generic.list import ListView from django.views.generic.detail import DetailView from django.views.generic.edit import CreateView from django.shortcuts import redirect, render from django.http import HttpResponse from .models import Job from jobsboard.jobs.forms import JobForm class ...
from django.views.generic.list import ListView from django.views.generic.detail import DetailView from django.views.generic.edit import CreateView from django.shortcuts import redirect, render from django.http import HttpResponse from .models import Job from jobsboard.jobs.forms import JobForm class JobListView(Lis...
from django.views.generic.list import ListView from django.views.generic.detail import DetailView from django.views.generic.edit import CreateView from django.shortcuts import redirect, render from django.http import HttpResponse from .models import Job from jobsboard.jobs.forms import JobForm class JobListView(Lis...
<commit_before>from django.views.generic.list import ListView from django.views.generic.detail import DetailView from django.views.generic.edit import CreateView from django.shortcuts import redirect, render from django.http import HttpResponse from .models import Job from jobsboard.jobs.forms import JobForm class ...
9216224d96770e32778c46b4959731ac70cb2c88
london_commute_alert.py
london_commute_alert.py
import datetime import os import requests def update(): requests.packages.urllib3.disable_warnings() resp = requests.get('http://api.tfl.gov.uk/Line/Mode/tube/Status').json() return {el['id']: el['lineStatuses'][0]['statusSeverityDescription'] for el in resp} def email(lines): with open('curl_raw_c...
import datetime import os import requests def update(): requests.packages.urllib3.disable_warnings() resp = requests.get('http://api.tfl.gov.uk/Line/Mode/tube/Status').json() return {el['id']: el['lineStatuses'][0]['statusSeverityDescription'] for el in resp} def email(lines): with open('curl_raw_c...
Move from python anywhere to webfaction
Move from python anywhere to webfaction
Python
mit
noelevans/sandpit,noelevans/sandpit,noelevans/sandpit,noelevans/sandpit,noelevans/sandpit,noelevans/sandpit
import datetime import os import requests def update(): requests.packages.urllib3.disable_warnings() resp = requests.get('http://api.tfl.gov.uk/Line/Mode/tube/Status').json() return {el['id']: el['lineStatuses'][0]['statusSeverityDescription'] for el in resp} def email(lines): with open('curl_raw_c...
import datetime import os import requests def update(): requests.packages.urllib3.disable_warnings() resp = requests.get('http://api.tfl.gov.uk/Line/Mode/tube/Status').json() return {el['id']: el['lineStatuses'][0]['statusSeverityDescription'] for el in resp} def email(lines): with open('curl_raw_c...
<commit_before>import datetime import os import requests def update(): requests.packages.urllib3.disable_warnings() resp = requests.get('http://api.tfl.gov.uk/Line/Mode/tube/Status').json() return {el['id']: el['lineStatuses'][0]['statusSeverityDescription'] for el in resp} def email(lines): with o...
import datetime import os import requests def update(): requests.packages.urllib3.disable_warnings() resp = requests.get('http://api.tfl.gov.uk/Line/Mode/tube/Status').json() return {el['id']: el['lineStatuses'][0]['statusSeverityDescription'] for el in resp} def email(lines): with open('curl_raw_c...
import datetime import os import requests def update(): requests.packages.urllib3.disable_warnings() resp = requests.get('http://api.tfl.gov.uk/Line/Mode/tube/Status').json() return {el['id']: el['lineStatuses'][0]['statusSeverityDescription'] for el in resp} def email(lines): with open('curl_raw_c...
<commit_before>import datetime import os import requests def update(): requests.packages.urllib3.disable_warnings() resp = requests.get('http://api.tfl.gov.uk/Line/Mode/tube/Status').json() return {el['id']: el['lineStatuses'][0]['statusSeverityDescription'] for el in resp} def email(lines): with o...
7a59999961b67dbd480c80a4a4f95fa6738b2949
day-20/solution.py
day-20/solution.py
from __future__ import print_function def findFirst(data, target): for idx, value in enumerate(data): if value >= target: return idx return None target = 34000000 # Target is achieved at itself/10, so reasonable upper bound. upperbound = target // 10 # Use a varation of Erathostenes' si...
from __future__ import print_function def findFirst(data, target): return next(idx for idx, value in enumerate(data) if value >= target) target = 34000000 # Target is achieved at itself/10, so reasonable upper bound. upperbound = target // 10 # Use a varation of Erathostenes' sieve to compute the results sieve1...
Improve getting the first valid value.
Improve getting the first valid value.
Python
mit
bertptrs/adventofcode,bertptrs/adventofcode,bertptrs/adventofcode,bertptrs/adventofcode,bertptrs/adventofcode,bertptrs/adventofcode,bertptrs/adventofcode,bertptrs/adventofcode,bertptrs/adventofcode,bertptrs/adventofcode,bertptrs/adventofcode,bertptrs/adventofcode,bertptrs/adventofcode,bertptrs/adventofcode,bertptrs/adv...
from __future__ import print_function def findFirst(data, target): for idx, value in enumerate(data): if value >= target: return idx return None target = 34000000 # Target is achieved at itself/10, so reasonable upper bound. upperbound = target // 10 # Use a varation of Erathostenes' si...
from __future__ import print_function def findFirst(data, target): return next(idx for idx, value in enumerate(data) if value >= target) target = 34000000 # Target is achieved at itself/10, so reasonable upper bound. upperbound = target // 10 # Use a varation of Erathostenes' sieve to compute the results sieve1...
<commit_before>from __future__ import print_function def findFirst(data, target): for idx, value in enumerate(data): if value >= target: return idx return None target = 34000000 # Target is achieved at itself/10, so reasonable upper bound. upperbound = target // 10 # Use a varation of E...
from __future__ import print_function def findFirst(data, target): return next(idx for idx, value in enumerate(data) if value >= target) target = 34000000 # Target is achieved at itself/10, so reasonable upper bound. upperbound = target // 10 # Use a varation of Erathostenes' sieve to compute the results sieve1...
from __future__ import print_function def findFirst(data, target): for idx, value in enumerate(data): if value >= target: return idx return None target = 34000000 # Target is achieved at itself/10, so reasonable upper bound. upperbound = target // 10 # Use a varation of Erathostenes' si...
<commit_before>from __future__ import print_function def findFirst(data, target): for idx, value in enumerate(data): if value >= target: return idx return None target = 34000000 # Target is achieved at itself/10, so reasonable upper bound. upperbound = target // 10 # Use a varation of E...
61bbfbcdd2b23b24233ea6543cbfc880b6b01ea9
husk/decorators.py
husk/decorators.py
from argparse import ArgumentParser def cached_property(func): cach_attr = '_{}'.format(func.__name__) @property def wrap(self): if not hasattr(self, cach_attr): value = func(self) if value is not None: setattr(self, cach_attr, value) return getattr...
from argparse import ArgumentParser def cached_property(func): cach_attr = '_{}'.format(func.__name__) @property def wrap(self): if not hasattr(self, cach_attr): value = func(self) if value is not None: setattr(self, cach_attr, value) return getattr...
Add `handle_raw` method that does not catch all upstream exceptions
Add `handle_raw` method that does not catch all upstream exceptions
Python
bsd-2-clause
husk/husk
from argparse import ArgumentParser def cached_property(func): cach_attr = '_{}'.format(func.__name__) @property def wrap(self): if not hasattr(self, cach_attr): value = func(self) if value is not None: setattr(self, cach_attr, value) return getattr...
from argparse import ArgumentParser def cached_property(func): cach_attr = '_{}'.format(func.__name__) @property def wrap(self): if not hasattr(self, cach_attr): value = func(self) if value is not None: setattr(self, cach_attr, value) return getattr...
<commit_before>from argparse import ArgumentParser def cached_property(func): cach_attr = '_{}'.format(func.__name__) @property def wrap(self): if not hasattr(self, cach_attr): value = func(self) if value is not None: setattr(self, cach_attr, value) ...
from argparse import ArgumentParser def cached_property(func): cach_attr = '_{}'.format(func.__name__) @property def wrap(self): if not hasattr(self, cach_attr): value = func(self) if value is not None: setattr(self, cach_attr, value) return getattr...
from argparse import ArgumentParser def cached_property(func): cach_attr = '_{}'.format(func.__name__) @property def wrap(self): if not hasattr(self, cach_attr): value = func(self) if value is not None: setattr(self, cach_attr, value) return getattr...
<commit_before>from argparse import ArgumentParser def cached_property(func): cach_attr = '_{}'.format(func.__name__) @property def wrap(self): if not hasattr(self, cach_attr): value = func(self) if value is not None: setattr(self, cach_attr, value) ...
ff31630a582ae2353e18e67cdcfc5495672bd423
ironic/__init__.py
ironic/__init__.py
# Copyright (c) 2014 Hewlett-Packard Development Company, L.P. # 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 # # U...
Move eventlent monkeypatch out of cmd/
Move eventlent monkeypatch out of cmd/ Completing a #TODO that I left for myself months ago, now that we are using PBR for our build system, move the eventlent monkey patching out of ironic/cmd/__init__ and into ironic/__init__ Change-Id: I1fd352919de0a2afe7058ab84c208781ce095dab
Python
apache-2.0
faizan-barmawer/elytics,NaohiroTamura/ironic-lib,openstack/ironic-lib,citrix-openstack-build/ironic-lib,faizan-barmawer/ironic-lib
Move eventlent monkeypatch out of cmd/ Completing a #TODO that I left for myself months ago, now that we are using PBR for our build system, move the eventlent monkey patching out of ironic/cmd/__init__ and into ironic/__init__ Change-Id: I1fd352919de0a2afe7058ab84c208781ce095dab
# Copyright (c) 2014 Hewlett-Packard Development Company, L.P. # 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 # # U...
<commit_before><commit_msg>Move eventlent monkeypatch out of cmd/ Completing a #TODO that I left for myself months ago, now that we are using PBR for our build system, move the eventlent monkey patching out of ironic/cmd/__init__ and into ironic/__init__ Change-Id: I1fd352919de0a2afe7058ab84c208781ce095dab<commit_aft...
# Copyright (c) 2014 Hewlett-Packard Development Company, L.P. # 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 # # U...
Move eventlent monkeypatch out of cmd/ Completing a #TODO that I left for myself months ago, now that we are using PBR for our build system, move the eventlent monkey patching out of ironic/cmd/__init__ and into ironic/__init__ Change-Id: I1fd352919de0a2afe7058ab84c208781ce095dab# Copyright (c) 2014 Hewlett-Packard D...
<commit_before><commit_msg>Move eventlent monkeypatch out of cmd/ Completing a #TODO that I left for myself months ago, now that we are using PBR for our build system, move the eventlent monkey patching out of ironic/cmd/__init__ and into ironic/__init__ Change-Id: I1fd352919de0a2afe7058ab84c208781ce095dab<commit_aft...
8e2a42369228f3d19b046a610c93de4bec06d5bf
avocado/core/structures.py
avocado/core/structures.py
try: from collections import OrderedDict except ImportError: from ordereddict import OrderedDict class ChoicesDict(OrderedDict): "OrdereDict that yields the key and value on iteration." def __iter__(self): iterator = super(ChoicesDict, self).__iter__() for key in iterator: ...
try: from collections import OrderedDict except ImportError: from ordereddict import OrderedDict REPR_OUTPUT_SIZE = 20 class ChoicesDict(OrderedDict): "OrdereDict that yields the key and value on iteration." def __iter__(self): iterator = super(ChoicesDict, self).__iter__() for key ...
Add __repr__ to ChoicesDict structure
Add __repr__ to ChoicesDict structure
Python
bsd-2-clause
murphyke/avocado,murphyke/avocado,murphyke/avocado,murphyke/avocado
try: from collections import OrderedDict except ImportError: from ordereddict import OrderedDict class ChoicesDict(OrderedDict): "OrdereDict that yields the key and value on iteration." def __iter__(self): iterator = super(ChoicesDict, self).__iter__() for key in iterator: ...
try: from collections import OrderedDict except ImportError: from ordereddict import OrderedDict REPR_OUTPUT_SIZE = 20 class ChoicesDict(OrderedDict): "OrdereDict that yields the key and value on iteration." def __iter__(self): iterator = super(ChoicesDict, self).__iter__() for key ...
<commit_before>try: from collections import OrderedDict except ImportError: from ordereddict import OrderedDict class ChoicesDict(OrderedDict): "OrdereDict that yields the key and value on iteration." def __iter__(self): iterator = super(ChoicesDict, self).__iter__() for key in iterat...
try: from collections import OrderedDict except ImportError: from ordereddict import OrderedDict REPR_OUTPUT_SIZE = 20 class ChoicesDict(OrderedDict): "OrdereDict that yields the key and value on iteration." def __iter__(self): iterator = super(ChoicesDict, self).__iter__() for key ...
try: from collections import OrderedDict except ImportError: from ordereddict import OrderedDict class ChoicesDict(OrderedDict): "OrdereDict that yields the key and value on iteration." def __iter__(self): iterator = super(ChoicesDict, self).__iter__() for key in iterator: ...
<commit_before>try: from collections import OrderedDict except ImportError: from ordereddict import OrderedDict class ChoicesDict(OrderedDict): "OrdereDict that yields the key and value on iteration." def __iter__(self): iterator = super(ChoicesDict, self).__iter__() for key in iterat...
9af50ecde67e593533898040e63e6a456fc16da5
tests/test_style.py
tests/test_style.py
import pkg_resources import unittest class CodeStyleTestCase(unittest.TestCase): def test_code_style(self): flake8 = pkg_resources.load_entry_point('flake8', 'console_scripts', 'flake8') try: flake8([]) except SystemExit as e: if e.code != 0: self.fa...
import logging import pkg_resources import unittest class CodeStyleTestCase(unittest.TestCase): def test_code_style(self): logger = logging.getLogger('flake8') logger.setLevel(logging.ERROR) flake8 = pkg_resources.load_entry_point('flake8', 'console_scripts', 'flake8') try: ...
Decrease noise from code-style test
Decrease noise from code-style test
Python
mit
ministryofjustice/django-zendesk-tickets,ministryofjustice/django-zendesk-tickets
import pkg_resources import unittest class CodeStyleTestCase(unittest.TestCase): def test_code_style(self): flake8 = pkg_resources.load_entry_point('flake8', 'console_scripts', 'flake8') try: flake8([]) except SystemExit as e: if e.code != 0: self.fa...
import logging import pkg_resources import unittest class CodeStyleTestCase(unittest.TestCase): def test_code_style(self): logger = logging.getLogger('flake8') logger.setLevel(logging.ERROR) flake8 = pkg_resources.load_entry_point('flake8', 'console_scripts', 'flake8') try: ...
<commit_before>import pkg_resources import unittest class CodeStyleTestCase(unittest.TestCase): def test_code_style(self): flake8 = pkg_resources.load_entry_point('flake8', 'console_scripts', 'flake8') try: flake8([]) except SystemExit as e: if e.code != 0: ...
import logging import pkg_resources import unittest class CodeStyleTestCase(unittest.TestCase): def test_code_style(self): logger = logging.getLogger('flake8') logger.setLevel(logging.ERROR) flake8 = pkg_resources.load_entry_point('flake8', 'console_scripts', 'flake8') try: ...
import pkg_resources import unittest class CodeStyleTestCase(unittest.TestCase): def test_code_style(self): flake8 = pkg_resources.load_entry_point('flake8', 'console_scripts', 'flake8') try: flake8([]) except SystemExit as e: if e.code != 0: self.fa...
<commit_before>import pkg_resources import unittest class CodeStyleTestCase(unittest.TestCase): def test_code_style(self): flake8 = pkg_resources.load_entry_point('flake8', 'console_scripts', 'flake8') try: flake8([]) except SystemExit as e: if e.code != 0: ...
2b9828541066ec4adb09f80fe29468cb0ce2a1e0
readthedocs/core/management/commands/build_files.py
readthedocs/core/management/commands/build_files.py
import logging from django.core.management.base import BaseCommand from django.conf import settings from projects import tasks from projects.models import ImportedFile from builds.models import Version log = logging.getLogger(__name__) class Command(BaseCommand): help = '''\ Delete and re-create ImportedFile ...
import logging from django.core.management.base import BaseCommand from django.conf import settings from projects import tasks from projects.models import ImportedFile from builds.models import Version log = logging.getLogger(__name__) class Command(BaseCommand): help = '''\ Delete and re-create ImportedFile ...
Add ability to index specific project.
Add ability to index specific project.
Python
mit
SteveViss/readthedocs.org,takluyver/readthedocs.org,VishvajitP/readthedocs.org,davidfischer/readthedocs.org,stevepiercy/readthedocs.org,fujita-shintaro/readthedocs.org,espdev/readthedocs.org,royalwang/readthedocs.org,raven47git/readthedocs.org,royalwang/readthedocs.org,agjohnson/readthedocs.org,pombredanne/readthedocs....
import logging from django.core.management.base import BaseCommand from django.conf import settings from projects import tasks from projects.models import ImportedFile from builds.models import Version log = logging.getLogger(__name__) class Command(BaseCommand): help = '''\ Delete and re-create ImportedFile ...
import logging from django.core.management.base import BaseCommand from django.conf import settings from projects import tasks from projects.models import ImportedFile from builds.models import Version log = logging.getLogger(__name__) class Command(BaseCommand): help = '''\ Delete and re-create ImportedFile ...
<commit_before>import logging from django.core.management.base import BaseCommand from django.conf import settings from projects import tasks from projects.models import ImportedFile from builds.models import Version log = logging.getLogger(__name__) class Command(BaseCommand): help = '''\ Delete and re-creat...
import logging from django.core.management.base import BaseCommand from django.conf import settings from projects import tasks from projects.models import ImportedFile from builds.models import Version log = logging.getLogger(__name__) class Command(BaseCommand): help = '''\ Delete and re-create ImportedFile ...
import logging from django.core.management.base import BaseCommand from django.conf import settings from projects import tasks from projects.models import ImportedFile from builds.models import Version log = logging.getLogger(__name__) class Command(BaseCommand): help = '''\ Delete and re-create ImportedFile ...
<commit_before>import logging from django.core.management.base import BaseCommand from django.conf import settings from projects import tasks from projects.models import ImportedFile from builds.models import Version log = logging.getLogger(__name__) class Command(BaseCommand): help = '''\ Delete and re-creat...