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
f1506a36ab4d9970fb7661aaf2a0f7da05812cec
setup.py
setup.py
import os from setuptools import setup, find_packages setup( name='mnp', version='1.0.0', author='Heryandi', author_email='heryandi@gmail.com', packages=find_packages(exclude='test'), scripts=[], url='https://github.com/heryandi/mnp', license='MIT', description='Wrapper tools to ma...
import os from setuptools import setup, find_packages setup( name="mnp", version="1.0.0", author="Heryandi", author_email="heryandi@gmail.com", packages=find_packages(exclude="test"), scripts=[], url="https://github.com/heryandi/mnp", license="MIT", description="Tools to manage Min...
Add classifier and keyword to metadata
Add classifier and keyword to metadata
Python
mit
heryandi/mnp
import os from setuptools import setup, find_packages setup( name='mnp', version='1.0.0', author='Heryandi', author_email='heryandi@gmail.com', packages=find_packages(exclude='test'), scripts=[], url='https://github.com/heryandi/mnp', license='MIT', description='Wrapper tools to ma...
import os from setuptools import setup, find_packages setup( name="mnp", version="1.0.0", author="Heryandi", author_email="heryandi@gmail.com", packages=find_packages(exclude="test"), scripts=[], url="https://github.com/heryandi/mnp", license="MIT", description="Tools to manage Min...
<commit_before>import os from setuptools import setup, find_packages setup( name='mnp', version='1.0.0', author='Heryandi', author_email='heryandi@gmail.com', packages=find_packages(exclude='test'), scripts=[], url='https://github.com/heryandi/mnp', license='MIT', description='Wrap...
import os from setuptools import setup, find_packages setup( name="mnp", version="1.0.0", author="Heryandi", author_email="heryandi@gmail.com", packages=find_packages(exclude="test"), scripts=[], url="https://github.com/heryandi/mnp", license="MIT", description="Tools to manage Min...
import os from setuptools import setup, find_packages setup( name='mnp', version='1.0.0', author='Heryandi', author_email='heryandi@gmail.com', packages=find_packages(exclude='test'), scripts=[], url='https://github.com/heryandi/mnp', license='MIT', description='Wrapper tools to ma...
<commit_before>import os from setuptools import setup, find_packages setup( name='mnp', version='1.0.0', author='Heryandi', author_email='heryandi@gmail.com', packages=find_packages(exclude='test'), scripts=[], url='https://github.com/heryandi/mnp', license='MIT', description='Wrap...
b22c7b78586ee07d686d06ccfd6213ca35afef1b
setup.py
setup.py
from setuptools import setup setup( name='slacker', version='0.9.29', packages=['slacker'], description='Slack API client', author='Oktay Sancak', author_email='oktaysancak@gmail.com', url='http://github.com/os/slacker/', install_requires=['requests >= 2.2.1'], license='http://www....
from setuptools import setup setup( name='slacker', version='0.9.30', packages=['slacker'], description='Slack API client', author='Oktay Sancak', author_email='oktaysancak@gmail.com', url='http://github.com/os/slacker/', install_requires=['requests >= 2.2.1'], license='http://www....
Set version number to 0.9.30
Set version number to 0.9.30
Python
apache-2.0
os/slacker
from setuptools import setup setup( name='slacker', version='0.9.29', packages=['slacker'], description='Slack API client', author='Oktay Sancak', author_email='oktaysancak@gmail.com', url='http://github.com/os/slacker/', install_requires=['requests >= 2.2.1'], license='http://www....
from setuptools import setup setup( name='slacker', version='0.9.30', packages=['slacker'], description='Slack API client', author='Oktay Sancak', author_email='oktaysancak@gmail.com', url='http://github.com/os/slacker/', install_requires=['requests >= 2.2.1'], license='http://www....
<commit_before>from setuptools import setup setup( name='slacker', version='0.9.29', packages=['slacker'], description='Slack API client', author='Oktay Sancak', author_email='oktaysancak@gmail.com', url='http://github.com/os/slacker/', install_requires=['requests >= 2.2.1'], licen...
from setuptools import setup setup( name='slacker', version='0.9.30', packages=['slacker'], description='Slack API client', author='Oktay Sancak', author_email='oktaysancak@gmail.com', url='http://github.com/os/slacker/', install_requires=['requests >= 2.2.1'], license='http://www....
from setuptools import setup setup( name='slacker', version='0.9.29', packages=['slacker'], description='Slack API client', author='Oktay Sancak', author_email='oktaysancak@gmail.com', url='http://github.com/os/slacker/', install_requires=['requests >= 2.2.1'], license='http://www....
<commit_before>from setuptools import setup setup( name='slacker', version='0.9.29', packages=['slacker'], description='Slack API client', author='Oktay Sancak', author_email='oktaysancak@gmail.com', url='http://github.com/os/slacker/', install_requires=['requests >= 2.2.1'], licen...
e7e519f1d1636240022b7961fe949bc41a97c091
setup.py
setup.py
#!/usr/bin/env python import os import shutil import sys VERSION = '0.0.0git' setup_info = dict( name = 'nimp', version = VERSION, author = 'Dontnod Entertainment', description = 'DNE build tool', packages = [ 'nimp', 'nimp/commands', 'nimp', ], install_requires...
#!/usr/bin/env python import os import shutil import sys VERSION = '0.0.1' setup_info = dict( name = 'nimp-cli', version = VERSION, author = 'Dontnod Entertainment', description = 'Multipurpose build tool', packages = [ 'nimp', 'nimp/commands', 'nimp', ], instal...
Call the package nimp-cli because nimp is already taken.
Call the package nimp-cli because nimp is already taken.
Python
mit
dontnod/nimp
#!/usr/bin/env python import os import shutil import sys VERSION = '0.0.0git' setup_info = dict( name = 'nimp', version = VERSION, author = 'Dontnod Entertainment', description = 'DNE build tool', packages = [ 'nimp', 'nimp/commands', 'nimp', ], install_requires...
#!/usr/bin/env python import os import shutil import sys VERSION = '0.0.1' setup_info = dict( name = 'nimp-cli', version = VERSION, author = 'Dontnod Entertainment', description = 'Multipurpose build tool', packages = [ 'nimp', 'nimp/commands', 'nimp', ], instal...
<commit_before>#!/usr/bin/env python import os import shutil import sys VERSION = '0.0.0git' setup_info = dict( name = 'nimp', version = VERSION, author = 'Dontnod Entertainment', description = 'DNE build tool', packages = [ 'nimp', 'nimp/commands', 'nimp', ], i...
#!/usr/bin/env python import os import shutil import sys VERSION = '0.0.1' setup_info = dict( name = 'nimp-cli', version = VERSION, author = 'Dontnod Entertainment', description = 'Multipurpose build tool', packages = [ 'nimp', 'nimp/commands', 'nimp', ], instal...
#!/usr/bin/env python import os import shutil import sys VERSION = '0.0.0git' setup_info = dict( name = 'nimp', version = VERSION, author = 'Dontnod Entertainment', description = 'DNE build tool', packages = [ 'nimp', 'nimp/commands', 'nimp', ], install_requires...
<commit_before>#!/usr/bin/env python import os import shutil import sys VERSION = '0.0.0git' setup_info = dict( name = 'nimp', version = VERSION, author = 'Dontnod Entertainment', description = 'DNE build tool', packages = [ 'nimp', 'nimp/commands', 'nimp', ], i...
03cb3e001a25467319d0d82a5fc95e1c07ea3dd4
setup.py
setup.py
from distutils.core import setup import multi_schema setup( name = "django-multi-schema", version = multi_schema.__version__, description = "Postgres schema support in django.", url = "http://hg.schinckel.net/django-multi-schema", author = "Matthew Schinckel", author_email = "matt@schinckel.net...
from distutils.core import setup import multi_schema setup( name = "django-multi-schema", version = multi_schema.__version__, description = "Postgres schema support in django.", url = "http://hg.schinckel.net/django-multi-schema", author = "Matthew Schinckel", author_email = "matt@schinckel.net...
Add south as a dependency, so we can apply a version. Does not need to be installed in INSTALLED_APPS.
Add south as a dependency, so we can apply a version. Does not need to be installed in INSTALLED_APPS.
Python
bsd-3-clause
luzfcb/django-boardinghouse,luzfcb/django-boardinghouse,luzfcb/django-boardinghouse
from distutils.core import setup import multi_schema setup( name = "django-multi-schema", version = multi_schema.__version__, description = "Postgres schema support in django.", url = "http://hg.schinckel.net/django-multi-schema", author = "Matthew Schinckel", author_email = "matt@schinckel.net...
from distutils.core import setup import multi_schema setup( name = "django-multi-schema", version = multi_schema.__version__, description = "Postgres schema support in django.", url = "http://hg.schinckel.net/django-multi-schema", author = "Matthew Schinckel", author_email = "matt@schinckel.net...
<commit_before>from distutils.core import setup import multi_schema setup( name = "django-multi-schema", version = multi_schema.__version__, description = "Postgres schema support in django.", url = "http://hg.schinckel.net/django-multi-schema", author = "Matthew Schinckel", author_email = "mat...
from distutils.core import setup import multi_schema setup( name = "django-multi-schema", version = multi_schema.__version__, description = "Postgres schema support in django.", url = "http://hg.schinckel.net/django-multi-schema", author = "Matthew Schinckel", author_email = "matt@schinckel.net...
from distutils.core import setup import multi_schema setup( name = "django-multi-schema", version = multi_schema.__version__, description = "Postgres schema support in django.", url = "http://hg.schinckel.net/django-multi-schema", author = "Matthew Schinckel", author_email = "matt@schinckel.net...
<commit_before>from distutils.core import setup import multi_schema setup( name = "django-multi-schema", version = multi_schema.__version__, description = "Postgres schema support in django.", url = "http://hg.schinckel.net/django-multi-schema", author = "Matthew Schinckel", author_email = "mat...
f97e5585386e7e9417689cceff1bf49386473551
setup.py
setup.py
from ez_setup import use_setuptools # https://pypi.python.org/pypi/setuptools use_setuptools() from setuptools import setup, find_packages from packager import __version__ # Get the long description from the README file. def get_long_description(): from codecs import open from os import path here = path.a...
from ez_setup import use_setuptools # https://pypi.python.org/pypi/setuptools use_setuptools() from setuptools import setup, find_packages from packager import __version__ # Get the long description from the README file. def get_long_description(): from codecs import open from os import path here = path.a...
Exclude tests from set of installed packages
Exclude tests from set of installed packages
Python
mit
csdms/packagebuilder
from ez_setup import use_setuptools # https://pypi.python.org/pypi/setuptools use_setuptools() from setuptools import setup, find_packages from packager import __version__ # Get the long description from the README file. def get_long_description(): from codecs import open from os import path here = path.a...
from ez_setup import use_setuptools # https://pypi.python.org/pypi/setuptools use_setuptools() from setuptools import setup, find_packages from packager import __version__ # Get the long description from the README file. def get_long_description(): from codecs import open from os import path here = path.a...
<commit_before>from ez_setup import use_setuptools # https://pypi.python.org/pypi/setuptools use_setuptools() from setuptools import setup, find_packages from packager import __version__ # Get the long description from the README file. def get_long_description(): from codecs import open from os import path ...
from ez_setup import use_setuptools # https://pypi.python.org/pypi/setuptools use_setuptools() from setuptools import setup, find_packages from packager import __version__ # Get the long description from the README file. def get_long_description(): from codecs import open from os import path here = path.a...
from ez_setup import use_setuptools # https://pypi.python.org/pypi/setuptools use_setuptools() from setuptools import setup, find_packages from packager import __version__ # Get the long description from the README file. def get_long_description(): from codecs import open from os import path here = path.a...
<commit_before>from ez_setup import use_setuptools # https://pypi.python.org/pypi/setuptools use_setuptools() from setuptools import setup, find_packages from packager import __version__ # Get the long description from the README file. def get_long_description(): from codecs import open from os import path ...
f0579373b2c3261b00228d4c30832f51d713a7c2
setup.py
setup.py
import os from setuptools import setup with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme: README = readme.read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='django-oidc-provider', version='0....
import os from setuptools import setup with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme: README = readme.read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='django-oidc-provider', version='0....
Add migrations folder to build.
Add migrations folder to build.
Python
mit
django-py/django-openid-provider,nmohoric/django-oidc-provider,wojtek-fliposports/django-oidc-provider,wayward710/django-oidc-provider,nmohoric/django-oidc-provider,ByteInternet/django-oidc-provider,bunnyinc/django-oidc-provider,ByteInternet/django-oidc-provider,juanifioren/django-oidc-provider,torreco/django-oidc-prov...
import os from setuptools import setup with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme: README = readme.read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='django-oidc-provider', version='0....
import os from setuptools import setup with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme: README = readme.read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='django-oidc-provider', version='0....
<commit_before>import os from setuptools import setup with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme: README = readme.read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='django-oidc-provider', ...
import os from setuptools import setup with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme: README = readme.read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='django-oidc-provider', version='0....
import os from setuptools import setup with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme: README = readme.read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='django-oidc-provider', version='0....
<commit_before>import os from setuptools import setup with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme: README = readme.read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='django-oidc-provider', ...
c1955ceeb08f960cef631e6a812862052d42d85c
setup.py
setup.py
#!/usr/bin/env python from setuptools import find_packages, setup setup( name='blanc-contentfiles', version='0.2.1', description='Blanc Content Files', long_description=open('README.rst').read(), url='https://github.com/blancltd/blanc-contentfiles', maintainer='Alex Tomkins', maintainer_ema...
#!/usr/bin/env python from setuptools import find_packages, setup setup( name='blanc-contentfiles', version='0.2.1', description='Blanc Content Files', long_description=open('README.rst').read(), url='https://github.com/blancltd/blanc-contentfiles', maintainer='Blanc Ltd', maintainer_email=...
Update contact details to the company
Update contact details to the company
Python
bsd-3-clause
blancltd/blanc-contentfiles
#!/usr/bin/env python from setuptools import find_packages, setup setup( name='blanc-contentfiles', version='0.2.1', description='Blanc Content Files', long_description=open('README.rst').read(), url='https://github.com/blancltd/blanc-contentfiles', maintainer='Alex Tomkins', maintainer_ema...
#!/usr/bin/env python from setuptools import find_packages, setup setup( name='blanc-contentfiles', version='0.2.1', description='Blanc Content Files', long_description=open('README.rst').read(), url='https://github.com/blancltd/blanc-contentfiles', maintainer='Blanc Ltd', maintainer_email=...
<commit_before>#!/usr/bin/env python from setuptools import find_packages, setup setup( name='blanc-contentfiles', version='0.2.1', description='Blanc Content Files', long_description=open('README.rst').read(), url='https://github.com/blancltd/blanc-contentfiles', maintainer='Alex Tomkins', ...
#!/usr/bin/env python from setuptools import find_packages, setup setup( name='blanc-contentfiles', version='0.2.1', description='Blanc Content Files', long_description=open('README.rst').read(), url='https://github.com/blancltd/blanc-contentfiles', maintainer='Blanc Ltd', maintainer_email=...
#!/usr/bin/env python from setuptools import find_packages, setup setup( name='blanc-contentfiles', version='0.2.1', description='Blanc Content Files', long_description=open('README.rst').read(), url='https://github.com/blancltd/blanc-contentfiles', maintainer='Alex Tomkins', maintainer_ema...
<commit_before>#!/usr/bin/env python from setuptools import find_packages, setup setup( name='blanc-contentfiles', version='0.2.1', description='Blanc Content Files', long_description=open('README.rst').read(), url='https://github.com/blancltd/blanc-contentfiles', maintainer='Alex Tomkins', ...
e059af57acec9c077ddb348ac6dd84ff58d312fe
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup, find_packages setup( name='blanc-basic-pages', version='0.2.1', description='Blanc Basic Pages for Django', long_description=open('README.rst').read(), url='https://github.com/blancltd/blanc-basic-pages', maintainer='Alex Tomkins', maintai...
#!/usr/bin/env python from setuptools import setup, find_packages setup( name='blanc-basic-pages', version='0.2.1', description='Blanc Basic Pages for Django', long_description=open('README.rst').read(), url='https://github.com/blancltd/blanc-basic-pages', maintainer='Alex Tomkins', maintai...
Fix dependencies for Django 1.7
Fix dependencies for Django 1.7 Older versions of django-mptt will generate warnings
Python
bsd-3-clause
blancltd/blanc-basic-pages
#!/usr/bin/env python from setuptools import setup, find_packages setup( name='blanc-basic-pages', version='0.2.1', description='Blanc Basic Pages for Django', long_description=open('README.rst').read(), url='https://github.com/blancltd/blanc-basic-pages', maintainer='Alex Tomkins', maintai...
#!/usr/bin/env python from setuptools import setup, find_packages setup( name='blanc-basic-pages', version='0.2.1', description='Blanc Basic Pages for Django', long_description=open('README.rst').read(), url='https://github.com/blancltd/blanc-basic-pages', maintainer='Alex Tomkins', maintai...
<commit_before>#!/usr/bin/env python from setuptools import setup, find_packages setup( name='blanc-basic-pages', version='0.2.1', description='Blanc Basic Pages for Django', long_description=open('README.rst').read(), url='https://github.com/blancltd/blanc-basic-pages', maintainer='Alex Tomkin...
#!/usr/bin/env python from setuptools import setup, find_packages setup( name='blanc-basic-pages', version='0.2.1', description='Blanc Basic Pages for Django', long_description=open('README.rst').read(), url='https://github.com/blancltd/blanc-basic-pages', maintainer='Alex Tomkins', maintai...
#!/usr/bin/env python from setuptools import setup, find_packages setup( name='blanc-basic-pages', version='0.2.1', description='Blanc Basic Pages for Django', long_description=open('README.rst').read(), url='https://github.com/blancltd/blanc-basic-pages', maintainer='Alex Tomkins', maintai...
<commit_before>#!/usr/bin/env python from setuptools import setup, find_packages setup( name='blanc-basic-pages', version='0.2.1', description='Blanc Basic Pages for Django', long_description=open('README.rst').read(), url='https://github.com/blancltd/blanc-basic-pages', maintainer='Alex Tomkin...
5865599eee7014a02e07413dea71a79e878ac6b1
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- try: from setuptools import setup except ImportError: from distutils.core import setup import ptwit requires = ['python-twitter>=1.0'] def readme(): with open('README.rst') as f: return f.read() setup(name='ptwit', version=ptwit.__version__...
#!/usr/bin/env python # -*- coding: utf-8 -*- try: from setuptools import setup except ImportError: from distutils.core import setup import ptwit requires = ['python-twitter>=1.0'] def readme(): with open('README.rst') as f: return f.read() setup(name='ptwit', version=ptwit.__version__...
Change the entry point to cmd
Change the entry point to cmd
Python
mit
ptpt/ptwit
#!/usr/bin/env python # -*- coding: utf-8 -*- try: from setuptools import setup except ImportError: from distutils.core import setup import ptwit requires = ['python-twitter>=1.0'] def readme(): with open('README.rst') as f: return f.read() setup(name='ptwit', version=ptwit.__version__...
#!/usr/bin/env python # -*- coding: utf-8 -*- try: from setuptools import setup except ImportError: from distutils.core import setup import ptwit requires = ['python-twitter>=1.0'] def readme(): with open('README.rst') as f: return f.read() setup(name='ptwit', version=ptwit.__version__...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- try: from setuptools import setup except ImportError: from distutils.core import setup import ptwit requires = ['python-twitter>=1.0'] def readme(): with open('README.rst') as f: return f.read() setup(name='ptwit', version=pt...
#!/usr/bin/env python # -*- coding: utf-8 -*- try: from setuptools import setup except ImportError: from distutils.core import setup import ptwit requires = ['python-twitter>=1.0'] def readme(): with open('README.rst') as f: return f.read() setup(name='ptwit', version=ptwit.__version__...
#!/usr/bin/env python # -*- coding: utf-8 -*- try: from setuptools import setup except ImportError: from distutils.core import setup import ptwit requires = ['python-twitter>=1.0'] def readme(): with open('README.rst') as f: return f.read() setup(name='ptwit', version=ptwit.__version__...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- try: from setuptools import setup except ImportError: from distutils.core import setup import ptwit requires = ['python-twitter>=1.0'] def readme(): with open('README.rst') as f: return f.read() setup(name='ptwit', version=pt...
669280351b04d61df1de5ff03c4c7a258b37ad32
sell/views.py
sell/views.py
from decimal import Decimal from django.shortcuts import render from django.utils.translation import ugettext_lazy as _ from books.models import BookType, Book from common.bookchooserwizard import BookChooserWizard class SellWizard(BookChooserWizard): @property def page_title(self): return _("Sell b...
from decimal import Decimal import re from django.shortcuts import render from django.utils.translation import ugettext_lazy as _ from books.models import BookType, Book from common.bookchooserwizard import BookChooserWizard class SellWizard(BookChooserWizard): @property def page_title(self): return...
Delete non-digit characters in ISBN in server side
Delete non-digit characters in ISBN in server side
Python
agpl-3.0
m4tx/egielda,m4tx/egielda,m4tx/egielda
from decimal import Decimal from django.shortcuts import render from django.utils.translation import ugettext_lazy as _ from books.models import BookType, Book from common.bookchooserwizard import BookChooserWizard class SellWizard(BookChooserWizard): @property def page_title(self): return _("Sell b...
from decimal import Decimal import re from django.shortcuts import render from django.utils.translation import ugettext_lazy as _ from books.models import BookType, Book from common.bookchooserwizard import BookChooserWizard class SellWizard(BookChooserWizard): @property def page_title(self): return...
<commit_before>from decimal import Decimal from django.shortcuts import render from django.utils.translation import ugettext_lazy as _ from books.models import BookType, Book from common.bookchooserwizard import BookChooserWizard class SellWizard(BookChooserWizard): @property def page_title(self): r...
from decimal import Decimal import re from django.shortcuts import render from django.utils.translation import ugettext_lazy as _ from books.models import BookType, Book from common.bookchooserwizard import BookChooserWizard class SellWizard(BookChooserWizard): @property def page_title(self): return...
from decimal import Decimal from django.shortcuts import render from django.utils.translation import ugettext_lazy as _ from books.models import BookType, Book from common.bookchooserwizard import BookChooserWizard class SellWizard(BookChooserWizard): @property def page_title(self): return _("Sell b...
<commit_before>from decimal import Decimal from django.shortcuts import render from django.utils.translation import ugettext_lazy as _ from books.models import BookType, Book from common.bookchooserwizard import BookChooserWizard class SellWizard(BookChooserWizard): @property def page_title(self): r...
eb5dab3b3231688966254a1797ced7eec67b6e8a
setup.py
setup.py
import multiprocessing from setuptools import setup, find_packages setup( name='sow-generator', version='0.1', description='Create a scope of work from templates and version controlled documentation.', long_description = open('README.rst', 'r').read() + open('CHANGELOG.rst', 'r').read() + open('AUTHORS...
import multiprocessing from setuptools import setup, find_packages setup( name='sow-generator', version='0.1.1', description='Create a scope of work from templates and version controlled documentation.', long_description = open('README.rst', 'r').read() + open('CHANGELOG.rst', 'r').read() + open('AUTHO...
Bump version to see if pip installs it
Bump version to see if pip installs it
Python
bsd-3-clause
praekelt/sow-generator
import multiprocessing from setuptools import setup, find_packages setup( name='sow-generator', version='0.1', description='Create a scope of work from templates and version controlled documentation.', long_description = open('README.rst', 'r').read() + open('CHANGELOG.rst', 'r').read() + open('AUTHORS...
import multiprocessing from setuptools import setup, find_packages setup( name='sow-generator', version='0.1.1', description='Create a scope of work from templates and version controlled documentation.', long_description = open('README.rst', 'r').read() + open('CHANGELOG.rst', 'r').read() + open('AUTHO...
<commit_before>import multiprocessing from setuptools import setup, find_packages setup( name='sow-generator', version='0.1', description='Create a scope of work from templates and version controlled documentation.', long_description = open('README.rst', 'r').read() + open('CHANGELOG.rst', 'r').read() ...
import multiprocessing from setuptools import setup, find_packages setup( name='sow-generator', version='0.1.1', description='Create a scope of work from templates and version controlled documentation.', long_description = open('README.rst', 'r').read() + open('CHANGELOG.rst', 'r').read() + open('AUTHO...
import multiprocessing from setuptools import setup, find_packages setup( name='sow-generator', version='0.1', description='Create a scope of work from templates and version controlled documentation.', long_description = open('README.rst', 'r').read() + open('CHANGELOG.rst', 'r').read() + open('AUTHORS...
<commit_before>import multiprocessing from setuptools import setup, find_packages setup( name='sow-generator', version='0.1', description='Create a scope of work from templates and version controlled documentation.', long_description = open('README.rst', 'r').read() + open('CHANGELOG.rst', 'r').read() ...
79f9a028215f6765898ae43faf2ba7e4aaf98f0c
setup.py
setup.py
import os from setuptools import setup, find_packages def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name='django-pgallery', version=__import__('pgallery').__version__, description='Photo gallery app for PostgreSQL and Django.', long_description=read('RE...
import os from setuptools import setup, find_packages def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name='django-pgallery', version=__import__('pgallery').__version__, description='Photo gallery app for PostgreSQL and Django.', long_description=read('RE...
Exclude tests package from installing.
Exclude tests package from installing.
Python
mit
zsiciarz/django-pgallery,zsiciarz/django-pgallery
import os from setuptools import setup, find_packages def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name='django-pgallery', version=__import__('pgallery').__version__, description='Photo gallery app for PostgreSQL and Django.', long_description=read('RE...
import os from setuptools import setup, find_packages def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name='django-pgallery', version=__import__('pgallery').__version__, description='Photo gallery app for PostgreSQL and Django.', long_description=read('RE...
<commit_before>import os from setuptools import setup, find_packages def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name='django-pgallery', version=__import__('pgallery').__version__, description='Photo gallery app for PostgreSQL and Django.', long_descr...
import os from setuptools import setup, find_packages def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name='django-pgallery', version=__import__('pgallery').__version__, description='Photo gallery app for PostgreSQL and Django.', long_description=read('RE...
import os from setuptools import setup, find_packages def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name='django-pgallery', version=__import__('pgallery').__version__, description='Photo gallery app for PostgreSQL and Django.', long_description=read('RE...
<commit_before>import os from setuptools import setup, find_packages def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name='django-pgallery', version=__import__('pgallery').__version__, description='Photo gallery app for PostgreSQL and Django.', long_descr...
eeecf68d2d59bc2233478b01748cbf88bab85722
setup.py
setup.py
#!/usr/bin/env python from distutils.core import setup execfile('facebook/version.py') setup( name = 'Facebook', version = __version__, description = 'Facebook makes it even easier to interact with Facebook\'s Graph API', long_description = open('README.rst').read() + '\n\n' + open('HISTORY.rst').rea...
#!/usr/bin/env python from distutils.core import setup execfile('facebook/version.py') setup( name='Facebook', version=__version__, description='Facebook makes it even easier to interact "+\ "with Facebook\'s Graph API', long_description=open('README.rst').read() + '\n\n' + open('...
Add missing requires and PEP8ize.
Add missing requires and PEP8ize.
Python
mit
jgorset/facebook,vyyvyyv/facebook,jgorset/facebook,vyyvyyv/facebook
#!/usr/bin/env python from distutils.core import setup execfile('facebook/version.py') setup( name = 'Facebook', version = __version__, description = 'Facebook makes it even easier to interact with Facebook\'s Graph API', long_description = open('README.rst').read() + '\n\n' + open('HISTORY.rst').rea...
#!/usr/bin/env python from distutils.core import setup execfile('facebook/version.py') setup( name='Facebook', version=__version__, description='Facebook makes it even easier to interact "+\ "with Facebook\'s Graph API', long_description=open('README.rst').read() + '\n\n' + open('...
<commit_before>#!/usr/bin/env python from distutils.core import setup execfile('facebook/version.py') setup( name = 'Facebook', version = __version__, description = 'Facebook makes it even easier to interact with Facebook\'s Graph API', long_description = open('README.rst').read() + '\n\n' + open('HI...
#!/usr/bin/env python from distutils.core import setup execfile('facebook/version.py') setup( name='Facebook', version=__version__, description='Facebook makes it even easier to interact "+\ "with Facebook\'s Graph API', long_description=open('README.rst').read() + '\n\n' + open('...
#!/usr/bin/env python from distutils.core import setup execfile('facebook/version.py') setup( name = 'Facebook', version = __version__, description = 'Facebook makes it even easier to interact with Facebook\'s Graph API', long_description = open('README.rst').read() + '\n\n' + open('HISTORY.rst').rea...
<commit_before>#!/usr/bin/env python from distutils.core import setup execfile('facebook/version.py') setup( name = 'Facebook', version = __version__, description = 'Facebook makes it even easier to interact with Facebook\'s Graph API', long_description = open('README.rst').read() + '\n\n' + open('HI...
932182858efcdf3d76d3a19cba09967c680e907f
setup.py
setup.py
# -*- coding: utf-8; mode: python; -*- """ A package that implements offline messages for Django Web Framework. (C) 2011 oDesk www.oDesk.com w/revisions by Zapier.com """ from setuptools import setup setup( name='django-offline-messages', version='0.3.1', description='A package that implements offline me...
# -*- coding: utf-8; mode: python; -*- """ A package that implements offline messages for Django Web Framework. (C) 2011 oDesk www.oDesk.com w/revisions by Zapier.com """ from setuptools import setup setup( name='django-offline-messages', version='0.3.1', description='A package that implements offline me...
Add django-jsonfield as a requirement
Add django-jsonfield as a requirement
Python
bsd-3-clause
dym/django-offline-messages
# -*- coding: utf-8; mode: python; -*- """ A package that implements offline messages for Django Web Framework. (C) 2011 oDesk www.oDesk.com w/revisions by Zapier.com """ from setuptools import setup setup( name='django-offline-messages', version='0.3.1', description='A package that implements offline me...
# -*- coding: utf-8; mode: python; -*- """ A package that implements offline messages for Django Web Framework. (C) 2011 oDesk www.oDesk.com w/revisions by Zapier.com """ from setuptools import setup setup( name='django-offline-messages', version='0.3.1', description='A package that implements offline me...
<commit_before># -*- coding: utf-8; mode: python; -*- """ A package that implements offline messages for Django Web Framework. (C) 2011 oDesk www.oDesk.com w/revisions by Zapier.com """ from setuptools import setup setup( name='django-offline-messages', version='0.3.1', description='A package that implem...
# -*- coding: utf-8; mode: python; -*- """ A package that implements offline messages for Django Web Framework. (C) 2011 oDesk www.oDesk.com w/revisions by Zapier.com """ from setuptools import setup setup( name='django-offline-messages', version='0.3.1', description='A package that implements offline me...
# -*- coding: utf-8; mode: python; -*- """ A package that implements offline messages for Django Web Framework. (C) 2011 oDesk www.oDesk.com w/revisions by Zapier.com """ from setuptools import setup setup( name='django-offline-messages', version='0.3.1', description='A package that implements offline me...
<commit_before># -*- coding: utf-8; mode: python; -*- """ A package that implements offline messages for Django Web Framework. (C) 2011 oDesk www.oDesk.com w/revisions by Zapier.com """ from setuptools import setup setup( name='django-offline-messages', version='0.3.1', description='A package that implem...
e10d5b8a975f1d9482f845c1476edcc4598bb84a
setup.py
setup.py
# -*- coding: utf-8 -*- import os from setuptools import find_packages, setup from pyglins import __version__, __description__ def read_readme(): with open(os.path.join(os.path.dirname(__file__), 'README.md')) as file: return file.read() setup(name='pyglins', version=__version__, description...
# -*- coding: utf-8 -*- from setuptools import find_packages, setup from pyglins import __version__, __description__ def read_readme(): try: import pypandoc description = pypandoc.convert('README.md', 'rst') except (IOError, ImportError): with open('README.md') as file: de...
Convert README.md to reStructuredText with pypandoc
Convert README.md to reStructuredText with pypandoc
Python
mit
paxet/pyglins
# -*- coding: utf-8 -*- import os from setuptools import find_packages, setup from pyglins import __version__, __description__ def read_readme(): with open(os.path.join(os.path.dirname(__file__), 'README.md')) as file: return file.read() setup(name='pyglins', version=__version__, description...
# -*- coding: utf-8 -*- from setuptools import find_packages, setup from pyglins import __version__, __description__ def read_readme(): try: import pypandoc description = pypandoc.convert('README.md', 'rst') except (IOError, ImportError): with open('README.md') as file: de...
<commit_before># -*- coding: utf-8 -*- import os from setuptools import find_packages, setup from pyglins import __version__, __description__ def read_readme(): with open(os.path.join(os.path.dirname(__file__), 'README.md')) as file: return file.read() setup(name='pyglins', version=__version__, ...
# -*- coding: utf-8 -*- from setuptools import find_packages, setup from pyglins import __version__, __description__ def read_readme(): try: import pypandoc description = pypandoc.convert('README.md', 'rst') except (IOError, ImportError): with open('README.md') as file: de...
# -*- coding: utf-8 -*- import os from setuptools import find_packages, setup from pyglins import __version__, __description__ def read_readme(): with open(os.path.join(os.path.dirname(__file__), 'README.md')) as file: return file.read() setup(name='pyglins', version=__version__, description...
<commit_before># -*- coding: utf-8 -*- import os from setuptools import find_packages, setup from pyglins import __version__, __description__ def read_readme(): with open(os.path.join(os.path.dirname(__file__), 'README.md')) as file: return file.read() setup(name='pyglins', version=__version__, ...
1b4ca927245e424a340f5caa2ed9bda615dd8a5c
setup.py
setup.py
"""setup.py ..codeauthor:: John Lane <jlane@fanthreesixty.com> """ from setuptools import setup, find_packages from sda import __author__, __email__, __license__, __version__ setup( name='sda', version=__version__, packages=find_packages(), scripts=[], description='A wrapper for Selenium. This ...
"""setup.py ..codeauthor:: John Lane <jlane@fanthreesixty.com> """ from setuptools import setup, find_packages from sda import __author__, __email__, __license__, __version__ setup( name='sda', version=__version__, packages=find_packages(), scripts=[], description='A wrapper for Selenium. This ...
Upgrade project to production ready
Upgrade project to production ready
Python
mit
jlane9/selenium_data_attributes,jlane9/selenium_data_attributes
"""setup.py ..codeauthor:: John Lane <jlane@fanthreesixty.com> """ from setuptools import setup, find_packages from sda import __author__, __email__, __license__, __version__ setup( name='sda', version=__version__, packages=find_packages(), scripts=[], description='A wrapper for Selenium. This ...
"""setup.py ..codeauthor:: John Lane <jlane@fanthreesixty.com> """ from setuptools import setup, find_packages from sda import __author__, __email__, __license__, __version__ setup( name='sda', version=__version__, packages=find_packages(), scripts=[], description='A wrapper for Selenium. This ...
<commit_before>"""setup.py ..codeauthor:: John Lane <jlane@fanthreesixty.com> """ from setuptools import setup, find_packages from sda import __author__, __email__, __license__, __version__ setup( name='sda', version=__version__, packages=find_packages(), scripts=[], description='A wrapper for ...
"""setup.py ..codeauthor:: John Lane <jlane@fanthreesixty.com> """ from setuptools import setup, find_packages from sda import __author__, __email__, __license__, __version__ setup( name='sda', version=__version__, packages=find_packages(), scripts=[], description='A wrapper for Selenium. This ...
"""setup.py ..codeauthor:: John Lane <jlane@fanthreesixty.com> """ from setuptools import setup, find_packages from sda import __author__, __email__, __license__, __version__ setup( name='sda', version=__version__, packages=find_packages(), scripts=[], description='A wrapper for Selenium. This ...
<commit_before>"""setup.py ..codeauthor:: John Lane <jlane@fanthreesixty.com> """ from setuptools import setup, find_packages from sda import __author__, __email__, __license__, __version__ setup( name='sda', version=__version__, packages=find_packages(), scripts=[], description='A wrapper for ...
9a424163fa97bbb5ab7b19ecb9707fa05cb1bef7
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup # Version info -- read without importing _locals = {} with open('releases/_version.py') as fp: exec(fp.read(), None, _locals) version = _locals['__version__'] setup( name='releases', version=version, description='A Sphinx extension for changelog mani...
#!/usr/bin/env python from setuptools import setup # Version info -- read without importing _locals = {} with open('releases/_version.py') as fp: exec(fp.read(), None, _locals) version = _locals['__version__'] setup( name='releases', version=version, description='A Sphinx extension for changelog mani...
Remove upper limit for Sphinx version
Remove upper limit for Sphinx version
Python
bsd-2-clause
bitprophet/releases
#!/usr/bin/env python from setuptools import setup # Version info -- read without importing _locals = {} with open('releases/_version.py') as fp: exec(fp.read(), None, _locals) version = _locals['__version__'] setup( name='releases', version=version, description='A Sphinx extension for changelog mani...
#!/usr/bin/env python from setuptools import setup # Version info -- read without importing _locals = {} with open('releases/_version.py') as fp: exec(fp.read(), None, _locals) version = _locals['__version__'] setup( name='releases', version=version, description='A Sphinx extension for changelog mani...
<commit_before>#!/usr/bin/env python from setuptools import setup # Version info -- read without importing _locals = {} with open('releases/_version.py') as fp: exec(fp.read(), None, _locals) version = _locals['__version__'] setup( name='releases', version=version, description='A Sphinx extension for...
#!/usr/bin/env python from setuptools import setup # Version info -- read without importing _locals = {} with open('releases/_version.py') as fp: exec(fp.read(), None, _locals) version = _locals['__version__'] setup( name='releases', version=version, description='A Sphinx extension for changelog mani...
#!/usr/bin/env python from setuptools import setup # Version info -- read without importing _locals = {} with open('releases/_version.py') as fp: exec(fp.read(), None, _locals) version = _locals['__version__'] setup( name='releases', version=version, description='A Sphinx extension for changelog mani...
<commit_before>#!/usr/bin/env python from setuptools import setup # Version info -- read without importing _locals = {} with open('releases/_version.py') as fp: exec(fp.read(), None, _locals) version = _locals['__version__'] setup( name='releases', version=version, description='A Sphinx extension for...
b389a7c0a3129573d28308cd175002b612b016f6
setup.py
setup.py
# -*- coding: utf-8 -*- """Setup for the DeepOBS package""" import setuptools def readme(): with open('README.md') as f: return f.read() setuptools.setup( name='deepobs', version='1.1.1', description='Deep Learning Optimizer Benchmark Suite', long_description=readme(), author='Frank ...
# -*- coding: utf-8 -*- """Setup for the DeepOBS package""" import setuptools def readme(): with open("README.md") as f: return f.read() setuptools.setup( name="deepobs", version="1.1.2", description="Deep Learning Optimizer Benchmark Suite", long_description=readme(), author="Frank...
Install specific version of matplotlib2tikz
Install specific version of matplotlib2tikz
Python
mit
fsschneider/DeepOBS,fsschneider/DeepOBS
# -*- coding: utf-8 -*- """Setup for the DeepOBS package""" import setuptools def readme(): with open('README.md') as f: return f.read() setuptools.setup( name='deepobs', version='1.1.1', description='Deep Learning Optimizer Benchmark Suite', long_description=readme(), author='Frank ...
# -*- coding: utf-8 -*- """Setup for the DeepOBS package""" import setuptools def readme(): with open("README.md") as f: return f.read() setuptools.setup( name="deepobs", version="1.1.2", description="Deep Learning Optimizer Benchmark Suite", long_description=readme(), author="Frank...
<commit_before># -*- coding: utf-8 -*- """Setup for the DeepOBS package""" import setuptools def readme(): with open('README.md') as f: return f.read() setuptools.setup( name='deepobs', version='1.1.1', description='Deep Learning Optimizer Benchmark Suite', long_description=readme(), ...
# -*- coding: utf-8 -*- """Setup for the DeepOBS package""" import setuptools def readme(): with open("README.md") as f: return f.read() setuptools.setup( name="deepobs", version="1.1.2", description="Deep Learning Optimizer Benchmark Suite", long_description=readme(), author="Frank...
# -*- coding: utf-8 -*- """Setup for the DeepOBS package""" import setuptools def readme(): with open('README.md') as f: return f.read() setuptools.setup( name='deepobs', version='1.1.1', description='Deep Learning Optimizer Benchmark Suite', long_description=readme(), author='Frank ...
<commit_before># -*- coding: utf-8 -*- """Setup for the DeepOBS package""" import setuptools def readme(): with open('README.md') as f: return f.read() setuptools.setup( name='deepobs', version='1.1.1', description='Deep Learning Optimizer Benchmark Suite', long_description=readme(), ...
51d0498f1c444f00ce982a93d8c9fdfb72a196b4
setup.py
setup.py
#! /usr/bin/env python ''' This file is part of targetcli. Copyright (c) 2011-2013 by Datera, 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 Unl...
#! /usr/bin/env python ''' This file is part of targetcli. Copyright (c) 2011-2013 by Datera, 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 Unl...
Replace execfile() with exec() since it does not work with Python 3
Replace execfile() with exec() since it does not work with Python 3 Signed-off-by: Christophe Vu-Brugier <1930e27f67e1e10d51770b88cb06d386f1aa46ae@yahoo.fr>
Python
apache-2.0
agrover/targetcli-fb,cloud4life/targetcli-fb,cvubrugier/targetcli-fb
#! /usr/bin/env python ''' This file is part of targetcli. Copyright (c) 2011-2013 by Datera, 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 Unl...
#! /usr/bin/env python ''' This file is part of targetcli. Copyright (c) 2011-2013 by Datera, 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 Unl...
<commit_before>#! /usr/bin/env python ''' This file is part of targetcli. Copyright (c) 2011-2013 by Datera, 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/L...
#! /usr/bin/env python ''' This file is part of targetcli. Copyright (c) 2011-2013 by Datera, 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 Unl...
#! /usr/bin/env python ''' This file is part of targetcli. Copyright (c) 2011-2013 by Datera, 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 Unl...
<commit_before>#! /usr/bin/env python ''' This file is part of targetcli. Copyright (c) 2011-2013 by Datera, 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/L...
99b79326fa18f46fe449e11fd0bfa17814d7a148
setup.py
setup.py
from distutils.core import setup setup( name='resync', version='0.6.1', packages=['resync'], classifiers=["Development Status :: 3 - Alpha", "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules", "Environment ...
from distutils.core import setup setup( name='resync', version='0.6.1', packages=['resync'], scripts=['bin/resync'], classifiers=["Development Status :: 3 - Alpha", "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules", ...
Add config to install resync script
Add config to install resync script
Python
apache-2.0
resync/resync,dans-er/resync,lindareijnhoudt/resync,lindareijnhoudt/resync,dans-er/resync
from distutils.core import setup setup( name='resync', version='0.6.1', packages=['resync'], classifiers=["Development Status :: 3 - Alpha", "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules", "Environment ...
from distutils.core import setup setup( name='resync', version='0.6.1', packages=['resync'], scripts=['bin/resync'], classifiers=["Development Status :: 3 - Alpha", "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules", ...
<commit_before>from distutils.core import setup setup( name='resync', version='0.6.1', packages=['resync'], classifiers=["Development Status :: 3 - Alpha", "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules", ...
from distutils.core import setup setup( name='resync', version='0.6.1', packages=['resync'], scripts=['bin/resync'], classifiers=["Development Status :: 3 - Alpha", "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules", ...
from distutils.core import setup setup( name='resync', version='0.6.1', packages=['resync'], classifiers=["Development Status :: 3 - Alpha", "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules", "Environment ...
<commit_before>from distutils.core import setup setup( name='resync', version='0.6.1', packages=['resync'], classifiers=["Development Status :: 3 - Alpha", "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules", ...
1594644990fe6c621d309b587d844669ec273dec
setup.py
setup.py
#!/usr/bin/env python import os import sys from setuptools import setup, find_packages from pkg_resources import resource_filename # depending on your execution context the version file # may be located in a different place! vsn_path = resource_filename(__name__, 'hvac/version') if not os.path.exists(vsn_path): vs...
#!/usr/bin/env python import os import sys from setuptools import setup, find_packages from pkg_resources import resource_filename with open("README.md", "r") as fh: long_description = fh.read() # depending on your execution context the version file # may be located in a different place! vsn_path = resource_filen...
Include README.md in package metadata
Include README.md in package metadata
Python
apache-2.0
ianunruh/hvac,ianunruh/hvac
#!/usr/bin/env python import os import sys from setuptools import setup, find_packages from pkg_resources import resource_filename # depending on your execution context the version file # may be located in a different place! vsn_path = resource_filename(__name__, 'hvac/version') if not os.path.exists(vsn_path): vs...
#!/usr/bin/env python import os import sys from setuptools import setup, find_packages from pkg_resources import resource_filename with open("README.md", "r") as fh: long_description = fh.read() # depending on your execution context the version file # may be located in a different place! vsn_path = resource_filen...
<commit_before>#!/usr/bin/env python import os import sys from setuptools import setup, find_packages from pkg_resources import resource_filename # depending on your execution context the version file # may be located in a different place! vsn_path = resource_filename(__name__, 'hvac/version') if not os.path.exists(vs...
#!/usr/bin/env python import os import sys from setuptools import setup, find_packages from pkg_resources import resource_filename with open("README.md", "r") as fh: long_description = fh.read() # depending on your execution context the version file # may be located in a different place! vsn_path = resource_filen...
#!/usr/bin/env python import os import sys from setuptools import setup, find_packages from pkg_resources import resource_filename # depending on your execution context the version file # may be located in a different place! vsn_path = resource_filename(__name__, 'hvac/version') if not os.path.exists(vsn_path): vs...
<commit_before>#!/usr/bin/env python import os import sys from setuptools import setup, find_packages from pkg_resources import resource_filename # depending on your execution context the version file # may be located in a different place! vsn_path = resource_filename(__name__, 'hvac/version') if not os.path.exists(vs...
769cf7b47fde883e4b44cec3adf8944bd62f7363
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup import inflection setup( name='inflection', version=inflection.__version__, description="A port of Ruby on Rails inflector to Python", long_description=open('README.rst').read(), author='Janne Vanhala', author_email='j...
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup import inflection setup( name='inflection', version=inflection.__version__, description="A port of Ruby on Rails inflector to Python", long_description=open('README.rst').read(), author='Janne Vanhala', author_email='j...
Use HTTPS for the project url
Use HTTPS for the project url
Python
mit
jpvanhal/inflection
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup import inflection setup( name='inflection', version=inflection.__version__, description="A port of Ruby on Rails inflector to Python", long_description=open('README.rst').read(), author='Janne Vanhala', author_email='j...
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup import inflection setup( name='inflection', version=inflection.__version__, description="A port of Ruby on Rails inflector to Python", long_description=open('README.rst').read(), author='Janne Vanhala', author_email='j...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup import inflection setup( name='inflection', version=inflection.__version__, description="A port of Ruby on Rails inflector to Python", long_description=open('README.rst').read(), author='Janne Vanhala', ...
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup import inflection setup( name='inflection', version=inflection.__version__, description="A port of Ruby on Rails inflector to Python", long_description=open('README.rst').read(), author='Janne Vanhala', author_email='j...
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup import inflection setup( name='inflection', version=inflection.__version__, description="A port of Ruby on Rails inflector to Python", long_description=open('README.rst').read(), author='Janne Vanhala', author_email='j...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup import inflection setup( name='inflection', version=inflection.__version__, description="A port of Ruby on Rails inflector to Python", long_description=open('README.rst').read(), author='Janne Vanhala', ...
d96027040f96de15c2bddf8ba5b94711b5af6e1f
setup.py
setup.py
#!/usr/bin/env python # coding=utf-8 __author__ = 'kulakov.ilya@gmail.com' from setuptools import setup from sys import platform REQUIREMENTS = [] if platform.startswith('darwin'): REQUIREMENTS.append('pyobjc >= 2.5') setup( name="Power", version="1.1", description="Cross-platform system power st...
#!/usr/bin/env python # coding=utf-8 __author__ = 'kulakov.ilya@gmail.com' from setuptools import setup from sys import platform REQUIREMENTS = [] # Not avaialable at PyPi yet # if platform.startswith('darwin'): # REQUIREMENTS.append('pyobjc >= 2.5') setup( name="Power", version="1.1", descriptio...
Remove PyObjC requirement since it's not avialable at PyPi yet.
Remove PyObjC requirement since it's not avialable at PyPi yet.
Python
mit
Kentzo/Power
#!/usr/bin/env python # coding=utf-8 __author__ = 'kulakov.ilya@gmail.com' from setuptools import setup from sys import platform REQUIREMENTS = [] if platform.startswith('darwin'): REQUIREMENTS.append('pyobjc >= 2.5') setup( name="Power", version="1.1", description="Cross-platform system power st...
#!/usr/bin/env python # coding=utf-8 __author__ = 'kulakov.ilya@gmail.com' from setuptools import setup from sys import platform REQUIREMENTS = [] # Not avaialable at PyPi yet # if platform.startswith('darwin'): # REQUIREMENTS.append('pyobjc >= 2.5') setup( name="Power", version="1.1", descriptio...
<commit_before>#!/usr/bin/env python # coding=utf-8 __author__ = 'kulakov.ilya@gmail.com' from setuptools import setup from sys import platform REQUIREMENTS = [] if platform.startswith('darwin'): REQUIREMENTS.append('pyobjc >= 2.5') setup( name="Power", version="1.1", description="Cross-platform ...
#!/usr/bin/env python # coding=utf-8 __author__ = 'kulakov.ilya@gmail.com' from setuptools import setup from sys import platform REQUIREMENTS = [] # Not avaialable at PyPi yet # if platform.startswith('darwin'): # REQUIREMENTS.append('pyobjc >= 2.5') setup( name="Power", version="1.1", descriptio...
#!/usr/bin/env python # coding=utf-8 __author__ = 'kulakov.ilya@gmail.com' from setuptools import setup from sys import platform REQUIREMENTS = [] if platform.startswith('darwin'): REQUIREMENTS.append('pyobjc >= 2.5') setup( name="Power", version="1.1", description="Cross-platform system power st...
<commit_before>#!/usr/bin/env python # coding=utf-8 __author__ = 'kulakov.ilya@gmail.com' from setuptools import setup from sys import platform REQUIREMENTS = [] if platform.startswith('darwin'): REQUIREMENTS.append('pyobjc >= 2.5') setup( name="Power", version="1.1", description="Cross-platform ...
323498419bfe080c9807586c2e5cc2678b7d2fd4
setup.py
setup.py
from setuptools import setup from os import path readme = open(path.join(path.abspath(path.dirname(__file__)), 'README.md')).read() setup( name='bottle-websocket', version='0.2', author='Zach Kelling', author_email='zeekayy@gmail.com', packages=['bottle_websocket',], description='WebSockets fo...
from setuptools import setup setup( name='bottle-websocket', version='0.2.5', author='Zach Kelling', author_email='zeekayy@gmail.com', packages=['bottle_websocket',], package_data={'': ['README.md']}, description='WebSockets for bottle', long_description=open('README.md'), install_r...
Use package_data, and bump version.
Use package_data, and bump version.
Python
mit
xujun10110/bottle-websocket,zeekay/bottle-websocket
from setuptools import setup from os import path readme = open(path.join(path.abspath(path.dirname(__file__)), 'README.md')).read() setup( name='bottle-websocket', version='0.2', author='Zach Kelling', author_email='zeekayy@gmail.com', packages=['bottle_websocket',], description='WebSockets fo...
from setuptools import setup setup( name='bottle-websocket', version='0.2.5', author='Zach Kelling', author_email='zeekayy@gmail.com', packages=['bottle_websocket',], package_data={'': ['README.md']}, description='WebSockets for bottle', long_description=open('README.md'), install_r...
<commit_before>from setuptools import setup from os import path readme = open(path.join(path.abspath(path.dirname(__file__)), 'README.md')).read() setup( name='bottle-websocket', version='0.2', author='Zach Kelling', author_email='zeekayy@gmail.com', packages=['bottle_websocket',], description...
from setuptools import setup setup( name='bottle-websocket', version='0.2.5', author='Zach Kelling', author_email='zeekayy@gmail.com', packages=['bottle_websocket',], package_data={'': ['README.md']}, description='WebSockets for bottle', long_description=open('README.md'), install_r...
from setuptools import setup from os import path readme = open(path.join(path.abspath(path.dirname(__file__)), 'README.md')).read() setup( name='bottle-websocket', version='0.2', author='Zach Kelling', author_email='zeekayy@gmail.com', packages=['bottle_websocket',], description='WebSockets fo...
<commit_before>from setuptools import setup from os import path readme = open(path.join(path.abspath(path.dirname(__file__)), 'README.md')).read() setup( name='bottle-websocket', version='0.2', author='Zach Kelling', author_email='zeekayy@gmail.com', packages=['bottle_websocket',], description...
7b825d860c84eae8b5a74ef16ae8e1da08dde888
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup, find_packages setup( name='synapse', version='0.1.0', description='Synapse Distributed Key-Value Hypergraph Analysis Framework', author='Invisigoth Kenshoto', author_email='invisigoth.kenshoto@gmail.com', url='https://github.com/vertexproject...
#!/usr/bin/env python from setuptools import setup, find_packages setup( name='synapse', version='0.1.0-alpha', description='Synapse Distributed Key-Value Hypergraph Analysis Framework', author='Invisigoth Kenshoto', author_email='invisigoth.kenshoto@gmail.com', url='https://github.com/vertexp...
Add -alpha prerelease version to version.
Add -alpha prerelease version to version.
Python
apache-2.0
vertexproject/synapse,vertexproject/synapse,vertexproject/synapse
#!/usr/bin/env python from setuptools import setup, find_packages setup( name='synapse', version='0.1.0', description='Synapse Distributed Key-Value Hypergraph Analysis Framework', author='Invisigoth Kenshoto', author_email='invisigoth.kenshoto@gmail.com', url='https://github.com/vertexproject...
#!/usr/bin/env python from setuptools import setup, find_packages setup( name='synapse', version='0.1.0-alpha', description='Synapse Distributed Key-Value Hypergraph Analysis Framework', author='Invisigoth Kenshoto', author_email='invisigoth.kenshoto@gmail.com', url='https://github.com/vertexp...
<commit_before>#!/usr/bin/env python from setuptools import setup, find_packages setup( name='synapse', version='0.1.0', description='Synapse Distributed Key-Value Hypergraph Analysis Framework', author='Invisigoth Kenshoto', author_email='invisigoth.kenshoto@gmail.com', url='https://github.co...
#!/usr/bin/env python from setuptools import setup, find_packages setup( name='synapse', version='0.1.0-alpha', description='Synapse Distributed Key-Value Hypergraph Analysis Framework', author='Invisigoth Kenshoto', author_email='invisigoth.kenshoto@gmail.com', url='https://github.com/vertexp...
#!/usr/bin/env python from setuptools import setup, find_packages setup( name='synapse', version='0.1.0', description='Synapse Distributed Key-Value Hypergraph Analysis Framework', author='Invisigoth Kenshoto', author_email='invisigoth.kenshoto@gmail.com', url='https://github.com/vertexproject...
<commit_before>#!/usr/bin/env python from setuptools import setup, find_packages setup( name='synapse', version='0.1.0', description='Synapse Distributed Key-Value Hypergraph Analysis Framework', author='Invisigoth Kenshoto', author_email='invisigoth.kenshoto@gmail.com', url='https://github.co...
8a97210aa5d83f6eac266a19fbad9a2159b14328
setup.py
setup.py
#!/usr/bin/env python import os import sys try: from setuptools import setup except ImportError: from distutils.core import setup if sys.argv[-1] == 'publish': os.system('python setup.py sdist bdist_wininst upload -r pypi') sys.exit() with open('README.rst') as f: readme = f.read() with open('LI...
#!/usr/bin/env python import os import sys try: from setuptools import setup except ImportError: from distutils.core import setup if sys.argv[-1] == 'publish': os.system('python setup.py sdist bdist_wininst upload -r pypi') sys.exit() with open('README.rst') as f: readme = f.read() with open('LI...
Set the required versions of required packages
Set the required versions of required packages
Python
mit
danxshap/django-rest-surveys
#!/usr/bin/env python import os import sys try: from setuptools import setup except ImportError: from distutils.core import setup if sys.argv[-1] == 'publish': os.system('python setup.py sdist bdist_wininst upload -r pypi') sys.exit() with open('README.rst') as f: readme = f.read() with open('LI...
#!/usr/bin/env python import os import sys try: from setuptools import setup except ImportError: from distutils.core import setup if sys.argv[-1] == 'publish': os.system('python setup.py sdist bdist_wininst upload -r pypi') sys.exit() with open('README.rst') as f: readme = f.read() with open('LI...
<commit_before>#!/usr/bin/env python import os import sys try: from setuptools import setup except ImportError: from distutils.core import setup if sys.argv[-1] == 'publish': os.system('python setup.py sdist bdist_wininst upload -r pypi') sys.exit() with open('README.rst') as f: readme = f.read(...
#!/usr/bin/env python import os import sys try: from setuptools import setup except ImportError: from distutils.core import setup if sys.argv[-1] == 'publish': os.system('python setup.py sdist bdist_wininst upload -r pypi') sys.exit() with open('README.rst') as f: readme = f.read() with open('LI...
#!/usr/bin/env python import os import sys try: from setuptools import setup except ImportError: from distutils.core import setup if sys.argv[-1] == 'publish': os.system('python setup.py sdist bdist_wininst upload -r pypi') sys.exit() with open('README.rst') as f: readme = f.read() with open('LI...
<commit_before>#!/usr/bin/env python import os import sys try: from setuptools import setup except ImportError: from distutils.core import setup if sys.argv[-1] == 'publish': os.system('python setup.py sdist bdist_wininst upload -r pypi') sys.exit() with open('README.rst') as f: readme = f.read(...
eb339f661aec7c01a727a01fd8b9e2880d99cc9c
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup, find_packages # Get version string with open('gdx2py/version.py') as f: exec(f.read()) setup(name='GDX2py', version=__version__, # pylint: disable=undefined-variable author='Erkka Rinne', author_email='erkka.rinne@vtt.fi', description='Read...
#!/usr/bin/env python from setuptools import setup, find_packages # Get version string with open('gdx2py/version.py') as f: exec(f.read()) setup(name='GDX2py', version=__version__, # pylint: disable=undefined-variable author='Erkka Rinne', author_email='erkka.rinne@vtt.fi', description='Read...
Add classifiers to package info
Add classifiers to package info
Python
mit
ererkka/GDX2py
#!/usr/bin/env python from setuptools import setup, find_packages # Get version string with open('gdx2py/version.py') as f: exec(f.read()) setup(name='GDX2py', version=__version__, # pylint: disable=undefined-variable author='Erkka Rinne', author_email='erkka.rinne@vtt.fi', description='Read...
#!/usr/bin/env python from setuptools import setup, find_packages # Get version string with open('gdx2py/version.py') as f: exec(f.read()) setup(name='GDX2py', version=__version__, # pylint: disable=undefined-variable author='Erkka Rinne', author_email='erkka.rinne@vtt.fi', description='Read...
<commit_before>#!/usr/bin/env python from setuptools import setup, find_packages # Get version string with open('gdx2py/version.py') as f: exec(f.read()) setup(name='GDX2py', version=__version__, # pylint: disable=undefined-variable author='Erkka Rinne', author_email='erkka.rinne@vtt.fi', de...
#!/usr/bin/env python from setuptools import setup, find_packages # Get version string with open('gdx2py/version.py') as f: exec(f.read()) setup(name='GDX2py', version=__version__, # pylint: disable=undefined-variable author='Erkka Rinne', author_email='erkka.rinne@vtt.fi', description='Read...
#!/usr/bin/env python from setuptools import setup, find_packages # Get version string with open('gdx2py/version.py') as f: exec(f.read()) setup(name='GDX2py', version=__version__, # pylint: disable=undefined-variable author='Erkka Rinne', author_email='erkka.rinne@vtt.fi', description='Read...
<commit_before>#!/usr/bin/env python from setuptools import setup, find_packages # Get version string with open('gdx2py/version.py') as f: exec(f.read()) setup(name='GDX2py', version=__version__, # pylint: disable=undefined-variable author='Erkka Rinne', author_email='erkka.rinne@vtt.fi', de...
170317364ae1ee97bad94fb9d53187ce674b5ebb
setup.py
setup.py
from os.path import isdir, isfile, join from distutils import log from setuptools import setup, find_packages INSTALL_REQUIRES = [ 'BTrees', 'zope.component', 'zodbpickle', 'ZODB', 'zope.index', 'zerodbext.catalog', 'cachetools', 'zc.zlibstorage', 'pycryptodome', 'flask-cors', ...
from setuptools import setup, find_packages INSTALL_REQUIRES = [ 'BTrees', 'zope.component', 'zodbpickle', 'ZODB', 'zope.index', 'zerodbext.catalog', 'cachetools', 'zc.zlibstorage', 'pycryptodome', 'flask-cors', 'flask', 'requests', 'jsonpickle', 'pyelliptic', ...
Revert "Fall back to pycryptodome if aes256gcm-nacl cannot be built."
Revert "Fall back to pycryptodome if aes256gcm-nacl cannot be built." This reverts commit f457b06dd1dd9d3b1d3577b5a8415868ff0cb3d8.
Python
agpl-3.0
zerodb/zerodb,zero-db/zerodb,zerodb/zerodb,zero-db/zerodb
from os.path import isdir, isfile, join from distutils import log from setuptools import setup, find_packages INSTALL_REQUIRES = [ 'BTrees', 'zope.component', 'zodbpickle', 'ZODB', 'zope.index', 'zerodbext.catalog', 'cachetools', 'zc.zlibstorage', 'pycryptodome', 'flask-cors', ...
from setuptools import setup, find_packages INSTALL_REQUIRES = [ 'BTrees', 'zope.component', 'zodbpickle', 'ZODB', 'zope.index', 'zerodbext.catalog', 'cachetools', 'zc.zlibstorage', 'pycryptodome', 'flask-cors', 'flask', 'requests', 'jsonpickle', 'pyelliptic', ...
<commit_before>from os.path import isdir, isfile, join from distutils import log from setuptools import setup, find_packages INSTALL_REQUIRES = [ 'BTrees', 'zope.component', 'zodbpickle', 'ZODB', 'zope.index', 'zerodbext.catalog', 'cachetools', 'zc.zlibstorage', 'pycryptodome', ...
from setuptools import setup, find_packages INSTALL_REQUIRES = [ 'BTrees', 'zope.component', 'zodbpickle', 'ZODB', 'zope.index', 'zerodbext.catalog', 'cachetools', 'zc.zlibstorage', 'pycryptodome', 'flask-cors', 'flask', 'requests', 'jsonpickle', 'pyelliptic', ...
from os.path import isdir, isfile, join from distutils import log from setuptools import setup, find_packages INSTALL_REQUIRES = [ 'BTrees', 'zope.component', 'zodbpickle', 'ZODB', 'zope.index', 'zerodbext.catalog', 'cachetools', 'zc.zlibstorage', 'pycryptodome', 'flask-cors', ...
<commit_before>from os.path import isdir, isfile, join from distutils import log from setuptools import setup, find_packages INSTALL_REQUIRES = [ 'BTrees', 'zope.component', 'zodbpickle', 'ZODB', 'zope.index', 'zerodbext.catalog', 'cachetools', 'zc.zlibstorage', 'pycryptodome', ...
d9771c3c0f78b55de4ae00be4553975c2f934c12
setup.py
setup.py
import os import re import sys import platform import subprocess import multiprocessing from setuptools import setup, Extension from setuptools.command.build_ext import build_ext from distutils.version import LooseVersion cores = multiprocessing.cpu_count()*1.25 threads="-j" + str(int(cores)) class CMakeExtension...
import os import re import sys import platform import subprocess import multiprocessing from setuptools import setup, Extension from setuptools.command.build_ext import build_ext from distutils.version import LooseVersion cores = multiprocessing.cpu_count()*1.25 threads="-j" + str(int(cores)) class CMakeExtension...
Update error in 3.7 release
Update error in 3.7 release
Python
apache-2.0
phrocker/sharkbite,phrocker/sharkbite,phrocker/sharkbite,phrocker/sharkbite,phrocker/sharkbite
import os import re import sys import platform import subprocess import multiprocessing from setuptools import setup, Extension from setuptools.command.build_ext import build_ext from distutils.version import LooseVersion cores = multiprocessing.cpu_count()*1.25 threads="-j" + str(int(cores)) class CMakeExtension...
import os import re import sys import platform import subprocess import multiprocessing from setuptools import setup, Extension from setuptools.command.build_ext import build_ext from distutils.version import LooseVersion cores = multiprocessing.cpu_count()*1.25 threads="-j" + str(int(cores)) class CMakeExtension...
<commit_before>import os import re import sys import platform import subprocess import multiprocessing from setuptools import setup, Extension from setuptools.command.build_ext import build_ext from distutils.version import LooseVersion cores = multiprocessing.cpu_count()*1.25 threads="-j" + str(int(cores)) class...
import os import re import sys import platform import subprocess import multiprocessing from setuptools import setup, Extension from setuptools.command.build_ext import build_ext from distutils.version import LooseVersion cores = multiprocessing.cpu_count()*1.25 threads="-j" + str(int(cores)) class CMakeExtension...
import os import re import sys import platform import subprocess import multiprocessing from setuptools import setup, Extension from setuptools.command.build_ext import build_ext from distutils.version import LooseVersion cores = multiprocessing.cpu_count()*1.25 threads="-j" + str(int(cores)) class CMakeExtension...
<commit_before>import os import re import sys import platform import subprocess import multiprocessing from setuptools import setup, Extension from setuptools.command.build_ext import build_ext from distutils.version import LooseVersion cores = multiprocessing.cpu_count()*1.25 threads="-j" + str(int(cores)) class...
13ef6879aeca9881483bd9f575d66377f1dde0c1
tests/test_io.py
tests/test_io.py
import numpy as np from tempfile import NamedTemporaryFile from microscopium import io as mio def test_imsave_tif_compress(): im = np.random.randint(0, 256, size=(1024, 1024, 3)).astype(np.uint8) with NamedTemporaryFile(suffix='.tif') as fout: fname = fout.name fout.close() mio.imsave(i...
import os import numpy as np from tempfile import NamedTemporaryFile from microscopium import io as mio from microscopium import pathutils as pth def test_recursive_glob(): abspath = os.path.dirname(__file__) tiffs0 = pth.all_matching_files(abspath, '*.tif') assert len(tiffs0) == 8 assert tiffs0[0].st...
Improve test coverage by testing recursive glob
Improve test coverage by testing recursive glob
Python
bsd-3-clause
jni/microscopium,microscopium/microscopium,Don86/microscopium,microscopium/microscopium,jni/microscopium,Don86/microscopium
import numpy as np from tempfile import NamedTemporaryFile from microscopium import io as mio def test_imsave_tif_compress(): im = np.random.randint(0, 256, size=(1024, 1024, 3)).astype(np.uint8) with NamedTemporaryFile(suffix='.tif') as fout: fname = fout.name fout.close() mio.imsave(i...
import os import numpy as np from tempfile import NamedTemporaryFile from microscopium import io as mio from microscopium import pathutils as pth def test_recursive_glob(): abspath = os.path.dirname(__file__) tiffs0 = pth.all_matching_files(abspath, '*.tif') assert len(tiffs0) == 8 assert tiffs0[0].st...
<commit_before>import numpy as np from tempfile import NamedTemporaryFile from microscopium import io as mio def test_imsave_tif_compress(): im = np.random.randint(0, 256, size=(1024, 1024, 3)).astype(np.uint8) with NamedTemporaryFile(suffix='.tif') as fout: fname = fout.name fout.close() ...
import os import numpy as np from tempfile import NamedTemporaryFile from microscopium import io as mio from microscopium import pathutils as pth def test_recursive_glob(): abspath = os.path.dirname(__file__) tiffs0 = pth.all_matching_files(abspath, '*.tif') assert len(tiffs0) == 8 assert tiffs0[0].st...
import numpy as np from tempfile import NamedTemporaryFile from microscopium import io as mio def test_imsave_tif_compress(): im = np.random.randint(0, 256, size=(1024, 1024, 3)).astype(np.uint8) with NamedTemporaryFile(suffix='.tif') as fout: fname = fout.name fout.close() mio.imsave(i...
<commit_before>import numpy as np from tempfile import NamedTemporaryFile from microscopium import io as mio def test_imsave_tif_compress(): im = np.random.randint(0, 256, size=(1024, 1024, 3)).astype(np.uint8) with NamedTemporaryFile(suffix='.tif') as fout: fname = fout.name fout.close() ...
cddb15f25df404d849601e7c8db2df15d2443958
intellipaste.py
intellipaste.py
#!/usr/bin/env python3 import os import time import json import requests import pyperclip API_KEY = os.environ.get('API_KEY') # API_KEY = "" def google_url_shorten(url): req_url = "https://www.googleapis.com/urlshortener/v1/url?" + API_KEY payload = {'longUrl': url} headers = {'content-type': 'applicati...
#!/usr/bin/env python3 import os import time import json import requests import pyperclip API_KEY = os.environ.get('API_KEY') # API_KEY = "" def google_url_shorten(url): req_url = "https://www.googleapis.com/urlshortener/v1/url?" + str(API_KEY) payload = {'longUrl': url} headers = {'content-type': 'appl...
Convert environment variable to string
Convert environment variable to string
Python
apache-2.0
LucasHMS/intelliPaste
#!/usr/bin/env python3 import os import time import json import requests import pyperclip API_KEY = os.environ.get('API_KEY') # API_KEY = "" def google_url_shorten(url): req_url = "https://www.googleapis.com/urlshortener/v1/url?" + API_KEY payload = {'longUrl': url} headers = {'content-type': 'applicati...
#!/usr/bin/env python3 import os import time import json import requests import pyperclip API_KEY = os.environ.get('API_KEY') # API_KEY = "" def google_url_shorten(url): req_url = "https://www.googleapis.com/urlshortener/v1/url?" + str(API_KEY) payload = {'longUrl': url} headers = {'content-type': 'appl...
<commit_before>#!/usr/bin/env python3 import os import time import json import requests import pyperclip API_KEY = os.environ.get('API_KEY') # API_KEY = "" def google_url_shorten(url): req_url = "https://www.googleapis.com/urlshortener/v1/url?" + API_KEY payload = {'longUrl': url} headers = {'content-ty...
#!/usr/bin/env python3 import os import time import json import requests import pyperclip API_KEY = os.environ.get('API_KEY') # API_KEY = "" def google_url_shorten(url): req_url = "https://www.googleapis.com/urlshortener/v1/url?" + str(API_KEY) payload = {'longUrl': url} headers = {'content-type': 'appl...
#!/usr/bin/env python3 import os import time import json import requests import pyperclip API_KEY = os.environ.get('API_KEY') # API_KEY = "" def google_url_shorten(url): req_url = "https://www.googleapis.com/urlshortener/v1/url?" + API_KEY payload = {'longUrl': url} headers = {'content-type': 'applicati...
<commit_before>#!/usr/bin/env python3 import os import time import json import requests import pyperclip API_KEY = os.environ.get('API_KEY') # API_KEY = "" def google_url_shorten(url): req_url = "https://www.googleapis.com/urlshortener/v1/url?" + API_KEY payload = {'longUrl': url} headers = {'content-ty...
11c1f5a9806f4a21abdb5ac7e4310ef3242389b0
server_dev.py
server_dev.py
from projects_controller import ProjectsController from redirects_controller import RedirectsController from flask import Flask, render_template, redirect, abort DATA_DIR = 'data' app = Flask(__name__) app.url_map.strict_slashes = False projects_controller = ProjectsController(DATA_DIR) redirects_controller = Redir...
from projects_controller import ProjectsController from redirects_controller import RedirectsController from flask import Flask, render_template, redirect, abort DATA_DIR = 'data' app = Flask(__name__) app.url_map.strict_slashes = False projects_controller = ProjectsController(DATA_DIR) redirects_controller = Redir...
Move comment to rational location
Move comment to rational location
Python
mit
teslaworksumn/teslaworks.net,teslaworksumn/teslaworks.net
from projects_controller import ProjectsController from redirects_controller import RedirectsController from flask import Flask, render_template, redirect, abort DATA_DIR = 'data' app = Flask(__name__) app.url_map.strict_slashes = False projects_controller = ProjectsController(DATA_DIR) redirects_controller = Redir...
from projects_controller import ProjectsController from redirects_controller import RedirectsController from flask import Flask, render_template, redirect, abort DATA_DIR = 'data' app = Flask(__name__) app.url_map.strict_slashes = False projects_controller = ProjectsController(DATA_DIR) redirects_controller = Redir...
<commit_before>from projects_controller import ProjectsController from redirects_controller import RedirectsController from flask import Flask, render_template, redirect, abort DATA_DIR = 'data' app = Flask(__name__) app.url_map.strict_slashes = False projects_controller = ProjectsController(DATA_DIR) redirects_con...
from projects_controller import ProjectsController from redirects_controller import RedirectsController from flask import Flask, render_template, redirect, abort DATA_DIR = 'data' app = Flask(__name__) app.url_map.strict_slashes = False projects_controller = ProjectsController(DATA_DIR) redirects_controller = Redir...
from projects_controller import ProjectsController from redirects_controller import RedirectsController from flask import Flask, render_template, redirect, abort DATA_DIR = 'data' app = Flask(__name__) app.url_map.strict_slashes = False projects_controller = ProjectsController(DATA_DIR) redirects_controller = Redir...
<commit_before>from projects_controller import ProjectsController from redirects_controller import RedirectsController from flask import Flask, render_template, redirect, abort DATA_DIR = 'data' app = Flask(__name__) app.url_map.strict_slashes = False projects_controller = ProjectsController(DATA_DIR) redirects_con...
97edbee5813b8a87606b8fb3d09b4f116cdaf025
mordecai/tests/conftest.py
mordecai/tests/conftest.py
from ..geoparse import Geoparser import pytest import spacy nlp = spacy.load('en_core_web_lg', disable=['parser', 'tagger']) @pytest.fixture(scope='session', autouse=True) def geo(): return Geoparser(nlp=nlp, threads=False, models_path = "/Users/ahalterman/MIT/Geolocation/mordecai_new/mordecai/mordecai/models/") ...
from ..geoparse import Geoparser import pytest import spacy nlp = spacy.load('en_core_web_lg', disable=['parser', 'tagger']) @pytest.fixture(scope='session', autouse=True) def geo(): return Geoparser(nlp=nlp, threads=False) @pytest.fixture(scope='session', autouse=True) def geo_thread(): return Geoparser(nlp...
Remove hardcoded paths from testing
Remove hardcoded paths from testing
Python
mit
openeventdata/mordecai
from ..geoparse import Geoparser import pytest import spacy nlp = spacy.load('en_core_web_lg', disable=['parser', 'tagger']) @pytest.fixture(scope='session', autouse=True) def geo(): return Geoparser(nlp=nlp, threads=False, models_path = "/Users/ahalterman/MIT/Geolocation/mordecai_new/mordecai/mordecai/models/") ...
from ..geoparse import Geoparser import pytest import spacy nlp = spacy.load('en_core_web_lg', disable=['parser', 'tagger']) @pytest.fixture(scope='session', autouse=True) def geo(): return Geoparser(nlp=nlp, threads=False) @pytest.fixture(scope='session', autouse=True) def geo_thread(): return Geoparser(nlp...
<commit_before>from ..geoparse import Geoparser import pytest import spacy nlp = spacy.load('en_core_web_lg', disable=['parser', 'tagger']) @pytest.fixture(scope='session', autouse=True) def geo(): return Geoparser(nlp=nlp, threads=False, models_path = "/Users/ahalterman/MIT/Geolocation/mordecai_new/mordecai/mord...
from ..geoparse import Geoparser import pytest import spacy nlp = spacy.load('en_core_web_lg', disable=['parser', 'tagger']) @pytest.fixture(scope='session', autouse=True) def geo(): return Geoparser(nlp=nlp, threads=False) @pytest.fixture(scope='session', autouse=True) def geo_thread(): return Geoparser(nlp...
from ..geoparse import Geoparser import pytest import spacy nlp = spacy.load('en_core_web_lg', disable=['parser', 'tagger']) @pytest.fixture(scope='session', autouse=True) def geo(): return Geoparser(nlp=nlp, threads=False, models_path = "/Users/ahalterman/MIT/Geolocation/mordecai_new/mordecai/mordecai/models/") ...
<commit_before>from ..geoparse import Geoparser import pytest import spacy nlp = spacy.load('en_core_web_lg', disable=['parser', 'tagger']) @pytest.fixture(scope='session', autouse=True) def geo(): return Geoparser(nlp=nlp, threads=False, models_path = "/Users/ahalterman/MIT/Geolocation/mordecai_new/mordecai/mord...
37aa1c9f8faeefe7305cca526a7424a349939add
tests/smoke_test.py
tests/smoke_test.py
# -*- coding: utf-8 -*- import unittest import sys sys.path.insert(0, '../mafia') from game import Game from game import Player from testclient.testmessenger import TestMessenger class SmokeTest(unittest.TestCase): def setUp(self): self.messenger = TestMessenger() def test_smoke_test(self):...
# -*- coding: utf-8 -*- import unittest import sys sys.path.insert(0, '../') from mafia.game import Game from mafia.game import Player from testclient.testmessenger import TestMessenger class SmokeTest(unittest.TestCase): def setUp(self): self.messenger = TestMessenger() def test_smoke_test...
Change the smoke test imports to a relative import for consistency.
Change the smoke test imports to a relative import for consistency.
Python
mit
BitokuOokami/PloungeMafiaToolkit
# -*- coding: utf-8 -*- import unittest import sys sys.path.insert(0, '../mafia') from game import Game from game import Player from testclient.testmessenger import TestMessenger class SmokeTest(unittest.TestCase): def setUp(self): self.messenger = TestMessenger() def test_smoke_test(self):...
# -*- coding: utf-8 -*- import unittest import sys sys.path.insert(0, '../') from mafia.game import Game from mafia.game import Player from testclient.testmessenger import TestMessenger class SmokeTest(unittest.TestCase): def setUp(self): self.messenger = TestMessenger() def test_smoke_test...
<commit_before># -*- coding: utf-8 -*- import unittest import sys sys.path.insert(0, '../mafia') from game import Game from game import Player from testclient.testmessenger import TestMessenger class SmokeTest(unittest.TestCase): def setUp(self): self.messenger = TestMessenger() def test_sm...
# -*- coding: utf-8 -*- import unittest import sys sys.path.insert(0, '../') from mafia.game import Game from mafia.game import Player from testclient.testmessenger import TestMessenger class SmokeTest(unittest.TestCase): def setUp(self): self.messenger = TestMessenger() def test_smoke_test...
# -*- coding: utf-8 -*- import unittest import sys sys.path.insert(0, '../mafia') from game import Game from game import Player from testclient.testmessenger import TestMessenger class SmokeTest(unittest.TestCase): def setUp(self): self.messenger = TestMessenger() def test_smoke_test(self):...
<commit_before># -*- coding: utf-8 -*- import unittest import sys sys.path.insert(0, '../mafia') from game import Game from game import Player from testclient.testmessenger import TestMessenger class SmokeTest(unittest.TestCase): def setUp(self): self.messenger = TestMessenger() def test_sm...
11d19d1756f6227db894aabcf4bd02e327e292c7
tests/test_basic.py
tests/test_basic.py
from hello_world import hello_world from unittest import TestCase class BasicTest(TestCase): def test_basic_hello_world(self): """ Test basic hello world messaging """ False
from hello_world import hello_world from unittest import TestCase class BasicTest(TestCase): def test_basic_hello_world(self): """ Test basic hello world messaging """ self.assertTrue(callable(hello_world))
Make things a little better
Make things a little better
Python
mit
jeansaad/hello_world
from hello_world import hello_world from unittest import TestCase class BasicTest(TestCase): def test_basic_hello_world(self): """ Test basic hello world messaging """ False Make things a little better
from hello_world import hello_world from unittest import TestCase class BasicTest(TestCase): def test_basic_hello_world(self): """ Test basic hello world messaging """ self.assertTrue(callable(hello_world))
<commit_before>from hello_world import hello_world from unittest import TestCase class BasicTest(TestCase): def test_basic_hello_world(self): """ Test basic hello world messaging """ False <commit_msg>Make things a little better<commit_after>
from hello_world import hello_world from unittest import TestCase class BasicTest(TestCase): def test_basic_hello_world(self): """ Test basic hello world messaging """ self.assertTrue(callable(hello_world))
from hello_world import hello_world from unittest import TestCase class BasicTest(TestCase): def test_basic_hello_world(self): """ Test basic hello world messaging """ False Make things a little betterfrom hello_world import hello_world from unittest import TestCase class Basic...
<commit_before>from hello_world import hello_world from unittest import TestCase class BasicTest(TestCase): def test_basic_hello_world(self): """ Test basic hello world messaging """ False <commit_msg>Make things a little better<commit_after>from hello_world import hello_world fr...
f23d90d441194d270b3bcf7997550f2f8e7e4c1d
sample-functions/BaseFunctions/python/handler.py
sample-functions/BaseFunctions/python/handler.py
import sys def get_stdin(): buf = "" for line in sys.stdin: buf = buf + line return buf if(__name__ == "__main__"): st = get_stdin() print(st)
import sys def get_stdin(): buf = "" for line in sys.stdin: buf = buf + line return buf if __name__ == "__main__": st = get_stdin() print(st)
Remove braces for Python sample
Remove braces for Python sample Suggested by community member in an un-merged PR. Signed-off-by: Alex Ellis (VMware) <5f7133baa0f5c7ca63ff11e11f2e2b0d2cf077c8@gmail.com>
Python
mit
openfaas/faas,rgee0/faas,alexellis/faas,openfaas/faas,alexellis/faas,rgee0/faas,alexellis/faas,alexellis/faas,rgee0/faas,rgee0/faas,openfaas/faas,rgee0/faas,rgee0/faas,rgee0/faas,alexellis/faas,rgee0/faas,alexellis/faas,rgee0/faas,alexellis/faas,alexellis/faas,alexellis/faas,rgee0/faas
import sys def get_stdin(): buf = "" for line in sys.stdin: buf = buf + line return buf if(__name__ == "__main__"): st = get_stdin() print(st) Remove braces for Python sample Suggested by community member in an un-merged PR. Signed-off-by: Alex Ellis (VMware) <5f7133baa0f5c7ca63ff11e11f2...
import sys def get_stdin(): buf = "" for line in sys.stdin: buf = buf + line return buf if __name__ == "__main__": st = get_stdin() print(st)
<commit_before>import sys def get_stdin(): buf = "" for line in sys.stdin: buf = buf + line return buf if(__name__ == "__main__"): st = get_stdin() print(st) <commit_msg>Remove braces for Python sample Suggested by community member in an un-merged PR. Signed-off-by: Alex Ellis (VMware) <...
import sys def get_stdin(): buf = "" for line in sys.stdin: buf = buf + line return buf if __name__ == "__main__": st = get_stdin() print(st)
import sys def get_stdin(): buf = "" for line in sys.stdin: buf = buf + line return buf if(__name__ == "__main__"): st = get_stdin() print(st) Remove braces for Python sample Suggested by community member in an un-merged PR. Signed-off-by: Alex Ellis (VMware) <5f7133baa0f5c7ca63ff11e11f2...
<commit_before>import sys def get_stdin(): buf = "" for line in sys.stdin: buf = buf + line return buf if(__name__ == "__main__"): st = get_stdin() print(st) <commit_msg>Remove braces for Python sample Suggested by community member in an un-merged PR. Signed-off-by: Alex Ellis (VMware) <...
acd92d6a9e8c710657a4bcf1c46076f9d06f3d46
test_results/plot_all.py
test_results/plot_all.py
import glob import csv import numpy as np import matplotlib.pyplot as plt for file in glob.glob("*.csv"): data = np.genfromtxt(file, delimiter = ',', names = True) plt.figure(figsize=(10,20)) plt.suptitle(file) num_plots = len(data.dtype.names) count = 1 for col_name in data.dtype.names: ...
import glob import numpy as np import matplotlib.pyplot as plt import matplotlib.backends.backend_pdf pdf = matplotlib.backends.backend_pdf.PdfPages("test-results-plots.pdf") for file in glob.glob("*.csv"): data = np.genfromtxt(file, delimiter = ',', names = True) plt.figure(figsize=(10,20)) plt.suptitle(...
Save all simulation plots to one PDF instead of multiple
Save all simulation plots to one PDF instead of multiple
Python
agpl-3.0
BrewPi/firmware,glibersat/firmware,glibersat/firmware,BrewPi/firmware,glibersat/firmware,etk29321/firmware,etk29321/firmware,etk29321/firmware,etk29321/firmware,glibersat/firmware,glibersat/firmware,BrewPi/firmware,BrewPi/firmware,BrewPi/firmware,BrewPi/firmware,BrewPi/firmware,etk29321/firmware,BrewPi/firmware,etk2932...
import glob import csv import numpy as np import matplotlib.pyplot as plt for file in glob.glob("*.csv"): data = np.genfromtxt(file, delimiter = ',', names = True) plt.figure(figsize=(10,20)) plt.suptitle(file) num_plots = len(data.dtype.names) count = 1 for col_name in data.dtype.names: ...
import glob import numpy as np import matplotlib.pyplot as plt import matplotlib.backends.backend_pdf pdf = matplotlib.backends.backend_pdf.PdfPages("test-results-plots.pdf") for file in glob.glob("*.csv"): data = np.genfromtxt(file, delimiter = ',', names = True) plt.figure(figsize=(10,20)) plt.suptitle(...
<commit_before>import glob import csv import numpy as np import matplotlib.pyplot as plt for file in glob.glob("*.csv"): data = np.genfromtxt(file, delimiter = ',', names = True) plt.figure(figsize=(10,20)) plt.suptitle(file) num_plots = len(data.dtype.names) count = 1 for col_name in data.dt...
import glob import numpy as np import matplotlib.pyplot as plt import matplotlib.backends.backend_pdf pdf = matplotlib.backends.backend_pdf.PdfPages("test-results-plots.pdf") for file in glob.glob("*.csv"): data = np.genfromtxt(file, delimiter = ',', names = True) plt.figure(figsize=(10,20)) plt.suptitle(...
import glob import csv import numpy as np import matplotlib.pyplot as plt for file in glob.glob("*.csv"): data = np.genfromtxt(file, delimiter = ',', names = True) plt.figure(figsize=(10,20)) plt.suptitle(file) num_plots = len(data.dtype.names) count = 1 for col_name in data.dtype.names: ...
<commit_before>import glob import csv import numpy as np import matplotlib.pyplot as plt for file in glob.glob("*.csv"): data = np.genfromtxt(file, delimiter = ',', names = True) plt.figure(figsize=(10,20)) plt.suptitle(file) num_plots = len(data.dtype.names) count = 1 for col_name in data.dt...
cc8f5b35d4c227f82b2872d5bfad24bef37209e5
overtime_calculator/__main__.py
overtime_calculator/__main__.py
import hug from overtime_calculator import auth, api @hug.get("/", output=hug.output_format.html) def base(): return "<h1>Hello, world</h1>" @hug.extend_api() def with_other_apis(): return [ auth, api ]
import sys import pathlib import hug from overtime_calculator import auth, api @hug.get("/", output=hug.output_format.html) def base(): return "<h1>Hello, world</h1>" @hug.extend_api() def with_other_apis(): return [ auth, api ] if __name__ == '__main__': _file = pathlib.Path(sys....
Improve UX for those who use CLI
Enhancement: Improve UX for those who use CLI
Python
mit
x10an14/overtime-calculator
import hug from overtime_calculator import auth, api @hug.get("/", output=hug.output_format.html) def base(): return "<h1>Hello, world</h1>" @hug.extend_api() def with_other_apis(): return [ auth, api ] Enhancement: Improve UX for those who use CLI
import sys import pathlib import hug from overtime_calculator import auth, api @hug.get("/", output=hug.output_format.html) def base(): return "<h1>Hello, world</h1>" @hug.extend_api() def with_other_apis(): return [ auth, api ] if __name__ == '__main__': _file = pathlib.Path(sys....
<commit_before>import hug from overtime_calculator import auth, api @hug.get("/", output=hug.output_format.html) def base(): return "<h1>Hello, world</h1>" @hug.extend_api() def with_other_apis(): return [ auth, api ] <commit_msg>Enhancement: Improve UX for those who use CLI<commit_afte...
import sys import pathlib import hug from overtime_calculator import auth, api @hug.get("/", output=hug.output_format.html) def base(): return "<h1>Hello, world</h1>" @hug.extend_api() def with_other_apis(): return [ auth, api ] if __name__ == '__main__': _file = pathlib.Path(sys....
import hug from overtime_calculator import auth, api @hug.get("/", output=hug.output_format.html) def base(): return "<h1>Hello, world</h1>" @hug.extend_api() def with_other_apis(): return [ auth, api ] Enhancement: Improve UX for those who use CLIimport sys import pathlib import hug ...
<commit_before>import hug from overtime_calculator import auth, api @hug.get("/", output=hug.output_format.html) def base(): return "<h1>Hello, world</h1>" @hug.extend_api() def with_other_apis(): return [ auth, api ] <commit_msg>Enhancement: Improve UX for those who use CLI<commit_afte...
f3c99d8a8a9d485ebc9a18419a142f03d4730fba
examples/guv_simple_http_response.py
examples/guv_simple_http_response.py
# FIXME: pyuv_cffi needs to build the library BEFORE the standard library is patched import pyuv_cffi print('pyuv_cffi imported', pyuv_cffi) import guv guv.monkey_patch() import guv.server import logging import time from util import create_example import logger if not hasattr(time, 'perf_counter'): time.perf_co...
import guv guv.monkey_patch() import guv.server import logging import time from util import create_example import logger from pympler import tracker tr = tracker.SummaryTracker() if not hasattr(time, 'perf_counter'): time.perf_counter = time.clock logger.configure() log = logging.getLogger() response_times = ...
Use pympler to look for memory leaks
Use pympler to look for memory leaks
Python
mit
veegee/guv,veegee/guv
# FIXME: pyuv_cffi needs to build the library BEFORE the standard library is patched import pyuv_cffi print('pyuv_cffi imported', pyuv_cffi) import guv guv.monkey_patch() import guv.server import logging import time from util import create_example import logger if not hasattr(time, 'perf_counter'): time.perf_co...
import guv guv.monkey_patch() import guv.server import logging import time from util import create_example import logger from pympler import tracker tr = tracker.SummaryTracker() if not hasattr(time, 'perf_counter'): time.perf_counter = time.clock logger.configure() log = logging.getLogger() response_times = ...
<commit_before># FIXME: pyuv_cffi needs to build the library BEFORE the standard library is patched import pyuv_cffi print('pyuv_cffi imported', pyuv_cffi) import guv guv.monkey_patch() import guv.server import logging import time from util import create_example import logger if not hasattr(time, 'perf_counter'): ...
import guv guv.monkey_patch() import guv.server import logging import time from util import create_example import logger from pympler import tracker tr = tracker.SummaryTracker() if not hasattr(time, 'perf_counter'): time.perf_counter = time.clock logger.configure() log = logging.getLogger() response_times = ...
# FIXME: pyuv_cffi needs to build the library BEFORE the standard library is patched import pyuv_cffi print('pyuv_cffi imported', pyuv_cffi) import guv guv.monkey_patch() import guv.server import logging import time from util import create_example import logger if not hasattr(time, 'perf_counter'): time.perf_co...
<commit_before># FIXME: pyuv_cffi needs to build the library BEFORE the standard library is patched import pyuv_cffi print('pyuv_cffi imported', pyuv_cffi) import guv guv.monkey_patch() import guv.server import logging import time from util import create_example import logger if not hasattr(time, 'perf_counter'): ...
e68d0b269b5c632bb96cdc04f37b622b15a0382e
dataproc/dataproc_e2e_test.py
dataproc/dataproc_e2e_test.py
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the Li...
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the Li...
Fix Dataproc e2e for Python 3
Fix Dataproc e2e for Python 3
Python
apache-2.0
JavaRabbit/CS496_capstone,sharbison3/python-docs-samples,hashems/Mobile-Cloud-Development-Projects,sharbison3/python-docs-samples,GoogleCloudPlatform/python-docs-samples,BrandonY/python-docs-samples,BrandonY/python-docs-samples,BrandonY/python-docs-samples,sharbison3/python-docs-samples,sharbison3/python-docs-samples,h...
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the Li...
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the Li...
<commit_before># Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distribut...
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the Li...
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the Li...
<commit_before># Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distribut...
b0b232297f55cd38db85bb2ec5b30a6022a3f4d1
tweepy/asynchronous/__init__.py
tweepy/asynchronous/__init__.py
# Tweepy # Copyright 2009-2021 Joshua Roesslein # See LICENSE for details. """ Tweepy.asynchronoous Asynchronous interfaces with the Twitter API """ try: import aiohttp except ModuleNotFoundError: from tweepy.errors import TweepyException raise TweepyException("tweepy.asynchronous requires aiohttp to be ...
# Tweepy # Copyright 2009-2021 Joshua Roesslein # See LICENSE for details. """ Tweepy.asynchronoous Asynchronous interfaces with the Twitter API """ try: import aiohttp import oauthlib except ModuleNotFoundError: from tweepy.errors import TweepyException raise TweepyException( "tweepy.asynchr...
Check oauthlib installation when importing asynchronous subpackage
Check oauthlib installation when importing asynchronous subpackage
Python
mit
svven/tweepy,tweepy/tweepy
# Tweepy # Copyright 2009-2021 Joshua Roesslein # See LICENSE for details. """ Tweepy.asynchronoous Asynchronous interfaces with the Twitter API """ try: import aiohttp except ModuleNotFoundError: from tweepy.errors import TweepyException raise TweepyException("tweepy.asynchronous requires aiohttp to be ...
# Tweepy # Copyright 2009-2021 Joshua Roesslein # See LICENSE for details. """ Tweepy.asynchronoous Asynchronous interfaces with the Twitter API """ try: import aiohttp import oauthlib except ModuleNotFoundError: from tweepy.errors import TweepyException raise TweepyException( "tweepy.asynchr...
<commit_before># Tweepy # Copyright 2009-2021 Joshua Roesslein # See LICENSE for details. """ Tweepy.asynchronoous Asynchronous interfaces with the Twitter API """ try: import aiohttp except ModuleNotFoundError: from tweepy.errors import TweepyException raise TweepyException("tweepy.asynchronous requires...
# Tweepy # Copyright 2009-2021 Joshua Roesslein # See LICENSE for details. """ Tweepy.asynchronoous Asynchronous interfaces with the Twitter API """ try: import aiohttp import oauthlib except ModuleNotFoundError: from tweepy.errors import TweepyException raise TweepyException( "tweepy.asynchr...
# Tweepy # Copyright 2009-2021 Joshua Roesslein # See LICENSE for details. """ Tweepy.asynchronoous Asynchronous interfaces with the Twitter API """ try: import aiohttp except ModuleNotFoundError: from tweepy.errors import TweepyException raise TweepyException("tweepy.asynchronous requires aiohttp to be ...
<commit_before># Tweepy # Copyright 2009-2021 Joshua Roesslein # See LICENSE for details. """ Tweepy.asynchronoous Asynchronous interfaces with the Twitter API """ try: import aiohttp except ModuleNotFoundError: from tweepy.errors import TweepyException raise TweepyException("tweepy.asynchronous requires...
f5f850e53a889a5afe483ae2ca07e147d4a94c08
tests.py
tests.py
#!/usr/bin/env python # encoding: utf-8 import datetime import unittest import mock from nose.tools import assert_equal, assert_is_instance from pandas_finance import get_stock class PandasFinanceTestCase(unittest.TestCase): @mock.patch('pandas_finance.web.DataReader') def test_get_stock_called_correctly(se...
#!/usr/bin/env python # encoding: utf-8 import datetime import unittest import mock from nose.tools import assert_equal, assert_is_instance from pandas_finance import get_stock, get_required_tickers class PandasFinanceTestCase(unittest.TestCase): @mock.patch('pandas_finance.web.DataReader') def test_get_stoc...
Add test for parsing tickers.
Add test for parsing tickers.
Python
agpl-3.0
scraperwiki/stock-tool,scraperwiki/stock-tool
#!/usr/bin/env python # encoding: utf-8 import datetime import unittest import mock from nose.tools import assert_equal, assert_is_instance from pandas_finance import get_stock class PandasFinanceTestCase(unittest.TestCase): @mock.patch('pandas_finance.web.DataReader') def test_get_stock_called_correctly(se...
#!/usr/bin/env python # encoding: utf-8 import datetime import unittest import mock from nose.tools import assert_equal, assert_is_instance from pandas_finance import get_stock, get_required_tickers class PandasFinanceTestCase(unittest.TestCase): @mock.patch('pandas_finance.web.DataReader') def test_get_stoc...
<commit_before>#!/usr/bin/env python # encoding: utf-8 import datetime import unittest import mock from nose.tools import assert_equal, assert_is_instance from pandas_finance import get_stock class PandasFinanceTestCase(unittest.TestCase): @mock.patch('pandas_finance.web.DataReader') def test_get_stock_call...
#!/usr/bin/env python # encoding: utf-8 import datetime import unittest import mock from nose.tools import assert_equal, assert_is_instance from pandas_finance import get_stock, get_required_tickers class PandasFinanceTestCase(unittest.TestCase): @mock.patch('pandas_finance.web.DataReader') def test_get_stoc...
#!/usr/bin/env python # encoding: utf-8 import datetime import unittest import mock from nose.tools import assert_equal, assert_is_instance from pandas_finance import get_stock class PandasFinanceTestCase(unittest.TestCase): @mock.patch('pandas_finance.web.DataReader') def test_get_stock_called_correctly(se...
<commit_before>#!/usr/bin/env python # encoding: utf-8 import datetime import unittest import mock from nose.tools import assert_equal, assert_is_instance from pandas_finance import get_stock class PandasFinanceTestCase(unittest.TestCase): @mock.patch('pandas_finance.web.DataReader') def test_get_stock_call...
019f259ae42a95802dce644511399332506ad1cc
tracing/tracing/metrics/metric_runner.py
tracing/tracing/metrics/metric_runner.py
# Copyright 2016 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 from perf_insights import map_single_trace from perf_insights import function_handle from perf_insights.mre import file_handle from perf_insights.m...
# Copyright 2016 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 from perf_insights import map_single_trace from perf_insights import function_handle from perf_insights.mre import file_handle from perf_insights.m...
Support relative paths in bin/run_metric
Support relative paths in bin/run_metric As a result of this patch, it will be possible to run: bin/run_metric MemoryMetric test_data/memory_dumps.json ^^^^^^^^^^^^^^^^^^^^^^^^^^^ instead of: bin/run_metric MemoryMetric $PWD/test_data/memory_dumps.json ...
Python
bsd-3-clause
catapult-project/catapult,sahiljain/catapult,benschmaus/catapult,catapult-project/catapult-csm,sahiljain/catapult,benschmaus/catapult,benschmaus/catapult,catapult-project/catapult,catapult-project/catapult,catapult-project/catapult,catapult-project/catapult,catapult-project/catapult-csm,catapult-project/catapult-csm,sa...
# Copyright 2016 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 from perf_insights import map_single_trace from perf_insights import function_handle from perf_insights.mre import file_handle from perf_insights.m...
# Copyright 2016 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 from perf_insights import map_single_trace from perf_insights import function_handle from perf_insights.mre import file_handle from perf_insights.m...
<commit_before># Copyright 2016 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 from perf_insights import map_single_trace from perf_insights import function_handle from perf_insights.mre import file_handle from ...
# Copyright 2016 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 from perf_insights import map_single_trace from perf_insights import function_handle from perf_insights.mre import file_handle from perf_insights.m...
# Copyright 2016 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 from perf_insights import map_single_trace from perf_insights import function_handle from perf_insights.mre import file_handle from perf_insights.m...
<commit_before># Copyright 2016 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 from perf_insights import map_single_trace from perf_insights import function_handle from perf_insights.mre import file_handle from ...
611aee2e704ffbad8579e5005ca36232097f96c5
bot/utils.py
bot/utils.py
from enum import IntEnum from discord import Embed class OpStatus(IntEnum): SUCCESS = 0x2ECC71, FAILURE = 0xc0392B, WARNING = 0xf39C12, NONE = None def build_embed(ctx, desc: str, title: str = '', status: OpStatus = OpStatus.SUCCESS) -> Embed: name = ctx.message.server.me.nick if ctx.message.server.me.nick is ...
from enum import IntEnum from discord import Embed class OpStatus(IntEnum): SUCCESS = 0x2ECC71, FAILURE = 0xc0392B, WARNING = 0xf39C12, NONE = -1 def build_embed(ctx, desc: str, title: str = '', status: OpStatus = OpStatus.SUCCESS) -> Embed: name = ctx.message.server.me.nick if ctx.message.server.me.nick is no...
Fix issue with enum not accepting null
Fix issue with enum not accepting null
Python
apache-2.0
HellPie/discord-reply-bot
from enum import IntEnum from discord import Embed class OpStatus(IntEnum): SUCCESS = 0x2ECC71, FAILURE = 0xc0392B, WARNING = 0xf39C12, NONE = None def build_embed(ctx, desc: str, title: str = '', status: OpStatus = OpStatus.SUCCESS) -> Embed: name = ctx.message.server.me.nick if ctx.message.server.me.nick is ...
from enum import IntEnum from discord import Embed class OpStatus(IntEnum): SUCCESS = 0x2ECC71, FAILURE = 0xc0392B, WARNING = 0xf39C12, NONE = -1 def build_embed(ctx, desc: str, title: str = '', status: OpStatus = OpStatus.SUCCESS) -> Embed: name = ctx.message.server.me.nick if ctx.message.server.me.nick is no...
<commit_before>from enum import IntEnum from discord import Embed class OpStatus(IntEnum): SUCCESS = 0x2ECC71, FAILURE = 0xc0392B, WARNING = 0xf39C12, NONE = None def build_embed(ctx, desc: str, title: str = '', status: OpStatus = OpStatus.SUCCESS) -> Embed: name = ctx.message.server.me.nick if ctx.message.ser...
from enum import IntEnum from discord import Embed class OpStatus(IntEnum): SUCCESS = 0x2ECC71, FAILURE = 0xc0392B, WARNING = 0xf39C12, NONE = -1 def build_embed(ctx, desc: str, title: str = '', status: OpStatus = OpStatus.SUCCESS) -> Embed: name = ctx.message.server.me.nick if ctx.message.server.me.nick is no...
from enum import IntEnum from discord import Embed class OpStatus(IntEnum): SUCCESS = 0x2ECC71, FAILURE = 0xc0392B, WARNING = 0xf39C12, NONE = None def build_embed(ctx, desc: str, title: str = '', status: OpStatus = OpStatus.SUCCESS) -> Embed: name = ctx.message.server.me.nick if ctx.message.server.me.nick is ...
<commit_before>from enum import IntEnum from discord import Embed class OpStatus(IntEnum): SUCCESS = 0x2ECC71, FAILURE = 0xc0392B, WARNING = 0xf39C12, NONE = None def build_embed(ctx, desc: str, title: str = '', status: OpStatus = OpStatus.SUCCESS) -> Embed: name = ctx.message.server.me.nick if ctx.message.ser...
b3466fc14e9616c620258eea382b644ac2585845
rest/urls.py
rest/urls.py
# Author: Braedy Kuzma from django.conf.urls import url from . import views urlpatterns = [ url(r'^posts/$', views.PostsView.as_view(), name='posts'), url(r'^posts/(?P<pid>[0-9a-fA-F\-]+)/$', views.PostView.as_view(), name='post'), url(r'^posts/(?P<pid>[0-9a-fA-F\-]+)/comments/$', views.Com...
# Author: Braedy Kuzma from django.conf.urls import url from . import views urlpatterns = [ url(r'^posts/$', views.PostsView.as_view(), name='posts'), url(r'^posts/(?P<pid>[0-9a-fA-F\-]+)/$', views.PostView.as_view(), name='post'), url(r'^posts/(?P<pid>[0-9a-fA-F\-]+)/comments/$', views.Com...
Add extra endpoint for posts?
Add extra endpoint for posts?
Python
apache-2.0
CMPUT404W17T06/CMPUT404-project,CMPUT404W17T06/CMPUT404-project,CMPUT404W17T06/CMPUT404-project
# Author: Braedy Kuzma from django.conf.urls import url from . import views urlpatterns = [ url(r'^posts/$', views.PostsView.as_view(), name='posts'), url(r'^posts/(?P<pid>[0-9a-fA-F\-]+)/$', views.PostView.as_view(), name='post'), url(r'^posts/(?P<pid>[0-9a-fA-F\-]+)/comments/$', views.Com...
# Author: Braedy Kuzma from django.conf.urls import url from . import views urlpatterns = [ url(r'^posts/$', views.PostsView.as_view(), name='posts'), url(r'^posts/(?P<pid>[0-9a-fA-F\-]+)/$', views.PostView.as_view(), name='post'), url(r'^posts/(?P<pid>[0-9a-fA-F\-]+)/comments/$', views.Com...
<commit_before># Author: Braedy Kuzma from django.conf.urls import url from . import views urlpatterns = [ url(r'^posts/$', views.PostsView.as_view(), name='posts'), url(r'^posts/(?P<pid>[0-9a-fA-F\-]+)/$', views.PostView.as_view(), name='post'), url(r'^posts/(?P<pid>[0-9a-fA-F\-]+)/comments/$', ...
# Author: Braedy Kuzma from django.conf.urls import url from . import views urlpatterns = [ url(r'^posts/$', views.PostsView.as_view(), name='posts'), url(r'^posts/(?P<pid>[0-9a-fA-F\-]+)/$', views.PostView.as_view(), name='post'), url(r'^posts/(?P<pid>[0-9a-fA-F\-]+)/comments/$', views.Com...
# Author: Braedy Kuzma from django.conf.urls import url from . import views urlpatterns = [ url(r'^posts/$', views.PostsView.as_view(), name='posts'), url(r'^posts/(?P<pid>[0-9a-fA-F\-]+)/$', views.PostView.as_view(), name='post'), url(r'^posts/(?P<pid>[0-9a-fA-F\-]+)/comments/$', views.Com...
<commit_before># Author: Braedy Kuzma from django.conf.urls import url from . import views urlpatterns = [ url(r'^posts/$', views.PostsView.as_view(), name='posts'), url(r'^posts/(?P<pid>[0-9a-fA-F\-]+)/$', views.PostView.as_view(), name='post'), url(r'^posts/(?P<pid>[0-9a-fA-F\-]+)/comments/$', ...
ab7ce76c47ea99080c105feb1a4f8aed39554597
doc/examples/example_world.py
doc/examples/example_world.py
from __future__ import unicode_literals from imaginary.world import ImaginaryWorld from imaginary.objects import Thing, Container, Exit from imaginary.garments import createShirt, createPants from imaginary.iimaginary import IClothing, IClothingWearer from examplegame.squeaky import Squeaker def world(store): ...
from __future__ import unicode_literals from imaginary.world import ImaginaryWorld from imaginary.objects import Thing, Container, Exit from imaginary.garments import createShirt, createPants from imaginary.iimaginary import IClothing, IClothingWearer from examplegame.squeaky import Squeaker def world(store): ...
Make rooms in the example game (grammatically) "proper" (nouns)
Make rooms in the example game (grammatically) "proper" (nouns)
Python
mit
twisted/imaginary
from __future__ import unicode_literals from imaginary.world import ImaginaryWorld from imaginary.objects import Thing, Container, Exit from imaginary.garments import createShirt, createPants from imaginary.iimaginary import IClothing, IClothingWearer from examplegame.squeaky import Squeaker def world(store): ...
from __future__ import unicode_literals from imaginary.world import ImaginaryWorld from imaginary.objects import Thing, Container, Exit from imaginary.garments import createShirt, createPants from imaginary.iimaginary import IClothing, IClothingWearer from examplegame.squeaky import Squeaker def world(store): ...
<commit_before> from __future__ import unicode_literals from imaginary.world import ImaginaryWorld from imaginary.objects import Thing, Container, Exit from imaginary.garments import createShirt, createPants from imaginary.iimaginary import IClothing, IClothingWearer from examplegame.squeaky import Squeaker def wor...
from __future__ import unicode_literals from imaginary.world import ImaginaryWorld from imaginary.objects import Thing, Container, Exit from imaginary.garments import createShirt, createPants from imaginary.iimaginary import IClothing, IClothingWearer from examplegame.squeaky import Squeaker def world(store): ...
from __future__ import unicode_literals from imaginary.world import ImaginaryWorld from imaginary.objects import Thing, Container, Exit from imaginary.garments import createShirt, createPants from imaginary.iimaginary import IClothing, IClothingWearer from examplegame.squeaky import Squeaker def world(store): ...
<commit_before> from __future__ import unicode_literals from imaginary.world import ImaginaryWorld from imaginary.objects import Thing, Container, Exit from imaginary.garments import createShirt, createPants from imaginary.iimaginary import IClothing, IClothingWearer from examplegame.squeaky import Squeaker def wor...
94e8b7bf8b24dfa36f240e601cb0894b10cab21a
tools/examples/geturl.py
tools/examples/geturl.py
#!/usr/bin/env python2 # # USAGE: geturl.py FILE_OR_DIR1 FILE_OR_DIR2 ... # # prints out the URL associated with each item # import sys import svn._wc import svn.util def main(pool, files): for f in files: entry = svn._wc.svn_wc_entry(f, 0, pool) print svn._wc.svn_wc_entry_t_url_get(entry) if __name__ == '...
#!/usr/bin/env python2 # # USAGE: geturl.py FILE_OR_DIR1 FILE_OR_DIR2 ... # # prints out the URL associated with each item # import os import sys import svn.wc import svn.util def main(pool, files): for f in files: dirpath = fullpath = os.path.abspath(f) if not os.path.isdir(dirpath): dirpath = os.pa...
Update the example to use the new access baton stuff.
Update the example to use the new access baton stuff. git-svn-id: f8a4e5e023278da1e04e203c7fe051e3c4285d88@844036 13f79535-47bb-0310-9956-ffa450edef68
Python
apache-2.0
YueLinHo/Subversion,YueLinHo/Subversion,wbond/subversion,wbond/subversion,YueLinHo/Subversion,wbond/subversion,YueLinHo/Subversion,wbond/subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,wbond/subversion,wbond/subversion,YueLinHo/Subversion,wbond/subversion
#!/usr/bin/env python2 # # USAGE: geturl.py FILE_OR_DIR1 FILE_OR_DIR2 ... # # prints out the URL associated with each item # import sys import svn._wc import svn.util def main(pool, files): for f in files: entry = svn._wc.svn_wc_entry(f, 0, pool) print svn._wc.svn_wc_entry_t_url_get(entry) if __name__ == '...
#!/usr/bin/env python2 # # USAGE: geturl.py FILE_OR_DIR1 FILE_OR_DIR2 ... # # prints out the URL associated with each item # import os import sys import svn.wc import svn.util def main(pool, files): for f in files: dirpath = fullpath = os.path.abspath(f) if not os.path.isdir(dirpath): dirpath = os.pa...
<commit_before>#!/usr/bin/env python2 # # USAGE: geturl.py FILE_OR_DIR1 FILE_OR_DIR2 ... # # prints out the URL associated with each item # import sys import svn._wc import svn.util def main(pool, files): for f in files: entry = svn._wc.svn_wc_entry(f, 0, pool) print svn._wc.svn_wc_entry_t_url_get(entry) i...
#!/usr/bin/env python2 # # USAGE: geturl.py FILE_OR_DIR1 FILE_OR_DIR2 ... # # prints out the URL associated with each item # import os import sys import svn.wc import svn.util def main(pool, files): for f in files: dirpath = fullpath = os.path.abspath(f) if not os.path.isdir(dirpath): dirpath = os.pa...
#!/usr/bin/env python2 # # USAGE: geturl.py FILE_OR_DIR1 FILE_OR_DIR2 ... # # prints out the URL associated with each item # import sys import svn._wc import svn.util def main(pool, files): for f in files: entry = svn._wc.svn_wc_entry(f, 0, pool) print svn._wc.svn_wc_entry_t_url_get(entry) if __name__ == '...
<commit_before>#!/usr/bin/env python2 # # USAGE: geturl.py FILE_OR_DIR1 FILE_OR_DIR2 ... # # prints out the URL associated with each item # import sys import svn._wc import svn.util def main(pool, files): for f in files: entry = svn._wc.svn_wc_entry(f, 0, pool) print svn._wc.svn_wc_entry_t_url_get(entry) i...
d76cb1aa296bc800cb24427110910a038a62a311
vctk/__init__.py
vctk/__init__.py
# coding: utf-8 from interface import * class SpeechParameters(object): """ Speech parameters """ def __init__(self, f0, spectrum_envelope, aperiodicity): self.f0 = f0 self.spectrum_envelope = spectrum_envelope self.aperiodicity = aperiodicity class VoiceConverter(object):...
Add class `VoiceConverter` that peforms all required processes in statistical voice conversion: speech analysis, feature parameterization, feature conversion and waveform syntheis
Add class `VoiceConverter` that peforms all required processes in statistical voice conversion: speech analysis, feature parameterization, feature conversion and waveform syntheis
Python
mit
k2kobayashi/sprocket
Add class `VoiceConverter` that peforms all required processes in statistical voice conversion: speech analysis, feature parameterization, feature conversion and waveform syntheis
# coding: utf-8 from interface import * class SpeechParameters(object): """ Speech parameters """ def __init__(self, f0, spectrum_envelope, aperiodicity): self.f0 = f0 self.spectrum_envelope = spectrum_envelope self.aperiodicity = aperiodicity class VoiceConverter(object):...
<commit_before><commit_msg>Add class `VoiceConverter` that peforms all required processes in statistical voice conversion: speech analysis, feature parameterization, feature conversion and waveform syntheis<commit_after>
# coding: utf-8 from interface import * class SpeechParameters(object): """ Speech parameters """ def __init__(self, f0, spectrum_envelope, aperiodicity): self.f0 = f0 self.spectrum_envelope = spectrum_envelope self.aperiodicity = aperiodicity class VoiceConverter(object):...
Add class `VoiceConverter` that peforms all required processes in statistical voice conversion: speech analysis, feature parameterization, feature conversion and waveform syntheis# coding: utf-8 from interface import * class SpeechParameters(object): """ Speech parameters """ def __init__(self, f0,...
<commit_before><commit_msg>Add class `VoiceConverter` that peforms all required processes in statistical voice conversion: speech analysis, feature parameterization, feature conversion and waveform syntheis<commit_after># coding: utf-8 from interface import * class SpeechParameters(object): """ Speech param...
15652b6817ad4548881883ee89981aff49c52c56
muranoagent/version.py
muranoagent/version.py
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
Fix murano agent component name
Fix murano agent component name Change-Id: I8f76630d3f007f89585b3418ff661c48004a2b5f Closes-bug: #1373347
Python
apache-2.0
Bloomie/murano-agent,Bloomie/murano-agent,telefonicaid/murano-agent,openstack/murano-agent,telefonicaid/murano-agent,Bloomie/murano-agent,openstack/murano-agent,telefonicaid/murano-agent,openstack/murano-agent,openstack/murano-agent,Bloomie/murano-agent
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
<commit_before># Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
<commit_before># Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
d23b82e89c756e8cd51aa2abfacd6cc7b2907fae
pygame/__init__.py
pygame/__init__.py
""" XXX: fish """ __all__ = ['display', 'color', 'surface', 'Color', 'time', 'event', 'constants', 'sprite', 'Rect', 'Surface', 'QUIT', 'init', 'mouse', 'locals', 'image'] from pygame.color import Color from pygame.rect import Rect from pygame.surface import Surface from pygame.constants import ...
""" XXX: fish """ __all__ = ['display', 'color', 'surface', 'Color', 'time', 'event', 'constants', 'sprite', 'Rect', 'Surface', 'QUIT', 'init', 'mouse', 'locals', 'image'] from pygame.color import Color from pygame.rect import Rect from pygame.surface import Surface from pygame.constants import ...
Fix error introduced in rebase
Fix error introduced in rebase
Python
lgpl-2.1
GertBurger/pygame_cffi,caseyc37/pygame_cffi,GertBurger/pygame_cffi,CTPUG/pygame_cffi,caseyc37/pygame_cffi,caseyc37/pygame_cffi,GertBurger/pygame_cffi,GertBurger/pygame_cffi,CTPUG/pygame_cffi,CTPUG/pygame_cffi
""" XXX: fish """ __all__ = ['display', 'color', 'surface', 'Color', 'time', 'event', 'constants', 'sprite', 'Rect', 'Surface', 'QUIT', 'init', 'mouse', 'locals', 'image'] from pygame.color import Color from pygame.rect import Rect from pygame.surface import Surface from pygame.constants import ...
""" XXX: fish """ __all__ = ['display', 'color', 'surface', 'Color', 'time', 'event', 'constants', 'sprite', 'Rect', 'Surface', 'QUIT', 'init', 'mouse', 'locals', 'image'] from pygame.color import Color from pygame.rect import Rect from pygame.surface import Surface from pygame.constants import ...
<commit_before>""" XXX: fish """ __all__ = ['display', 'color', 'surface', 'Color', 'time', 'event', 'constants', 'sprite', 'Rect', 'Surface', 'QUIT', 'init', 'mouse', 'locals', 'image'] from pygame.color import Color from pygame.rect import Rect from pygame.surface import Surface from pygame.co...
""" XXX: fish """ __all__ = ['display', 'color', 'surface', 'Color', 'time', 'event', 'constants', 'sprite', 'Rect', 'Surface', 'QUIT', 'init', 'mouse', 'locals', 'image'] from pygame.color import Color from pygame.rect import Rect from pygame.surface import Surface from pygame.constants import ...
""" XXX: fish """ __all__ = ['display', 'color', 'surface', 'Color', 'time', 'event', 'constants', 'sprite', 'Rect', 'Surface', 'QUIT', 'init', 'mouse', 'locals', 'image'] from pygame.color import Color from pygame.rect import Rect from pygame.surface import Surface from pygame.constants import ...
<commit_before>""" XXX: fish """ __all__ = ['display', 'color', 'surface', 'Color', 'time', 'event', 'constants', 'sprite', 'Rect', 'Surface', 'QUIT', 'init', 'mouse', 'locals', 'image'] from pygame.color import Color from pygame.rect import Rect from pygame.surface import Surface from pygame.co...
dc10cbafe045d55906d627816a88323fb4a8c948
exec_proc.py
exec_proc.py
#!/usr/bin/env python # Copyright 2014 Boundary, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
#!/usr/bin/env python # Copyright 2014 Boundary, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
Add output of command in hex
Add output of command in hex
Python
apache-2.0
boundary/boundary-plugin-shell,boundary/boundary-plugin-shell,jdgwartney/boundary-plugin-shell,jdgwartney/boundary-plugin-shell
#!/usr/bin/env python # Copyright 2014 Boundary, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
#!/usr/bin/env python # Copyright 2014 Boundary, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
<commit_before>#!/usr/bin/env python # Copyright 2014 Boundary, 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 a...
#!/usr/bin/env python # Copyright 2014 Boundary, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
#!/usr/bin/env python # Copyright 2014 Boundary, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
<commit_before>#!/usr/bin/env python # Copyright 2014 Boundary, 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 a...
68b1c3804504ecc14f7c23465ca11db31489e1cd
mozcal/events/views.py
mozcal/events/views.py
from django.shortcuts import render, get_object_or_404 from mozcal.events.models import Event, Space, FunctionalArea def one(request, slug): event = get_object_or_404(Event, slug=slug) return render(request, 'event.html', { 'event': event }) def all(request): events = Event.objects.all() spaces = Space.obj...
from django.shortcuts import render, get_object_or_404 from mozcal.events.models import Event, Space, FunctionalArea def one(request, slug): event = get_object_or_404(Event, slug=slug) return render(request, 'event.html', { 'event': event }) def all(request): search_string = request.GET.get('search', '') ...
Allow filtering of events by title
Allow filtering of events by title
Python
bsd-3-clause
ppapadeas/wprevents,yvan-sraka/wprevents,yvan-sraka/wprevents,ppapadeas/wprevents,yvan-sraka/wprevents,ppapadeas/wprevents,yvan-sraka/wprevents
from django.shortcuts import render, get_object_or_404 from mozcal.events.models import Event, Space, FunctionalArea def one(request, slug): event = get_object_or_404(Event, slug=slug) return render(request, 'event.html', { 'event': event }) def all(request): events = Event.objects.all() spaces = Space.obj...
from django.shortcuts import render, get_object_or_404 from mozcal.events.models import Event, Space, FunctionalArea def one(request, slug): event = get_object_or_404(Event, slug=slug) return render(request, 'event.html', { 'event': event }) def all(request): search_string = request.GET.get('search', '') ...
<commit_before>from django.shortcuts import render, get_object_or_404 from mozcal.events.models import Event, Space, FunctionalArea def one(request, slug): event = get_object_or_404(Event, slug=slug) return render(request, 'event.html', { 'event': event }) def all(request): events = Event.objects.all() spa...
from django.shortcuts import render, get_object_or_404 from mozcal.events.models import Event, Space, FunctionalArea def one(request, slug): event = get_object_or_404(Event, slug=slug) return render(request, 'event.html', { 'event': event }) def all(request): search_string = request.GET.get('search', '') ...
from django.shortcuts import render, get_object_or_404 from mozcal.events.models import Event, Space, FunctionalArea def one(request, slug): event = get_object_or_404(Event, slug=slug) return render(request, 'event.html', { 'event': event }) def all(request): events = Event.objects.all() spaces = Space.obj...
<commit_before>from django.shortcuts import render, get_object_or_404 from mozcal.events.models import Event, Space, FunctionalArea def one(request, slug): event = get_object_or_404(Event, slug=slug) return render(request, 'event.html', { 'event': event }) def all(request): events = Event.objects.all() spa...
ce191a9ea7bad7493560a7bdd7f7de2e56f94612
fuse_util.py
fuse_util.py
import sublime import os def getSetting(key,default=None): s = sublime.load_settings("Fuse.sublime-settings") return s.get(key, default) def getFusePathFromSettings(): path = getSetting("fuse_path_override") if path == "" or path == None: return "fuse" else: return path+"/fuse" def setSetting(key,value): s...
import sublime import os def getSetting(key,default=None): s = sublime.load_settings("Fuse.sublime-settings") return s.get(key, default) def getFusePathFromSettings(): path = getSetting("fuse_path_override") if path == "" or path == None: if os.path.isfile("/usr/bin/fuse"): return "/usr/bin/fuse" else: ...
Make Sublime plugin work with new Fuse install location
Make Sublime plugin work with new Fuse install location We changed the location of fuse from /usr/bin to /usr/local/bin to be compatible with El Capitan. The latter is not on path in Sublime, so use absolute paths for fuse.
Python
mit
fusetools/Fuse.SublimePlugin,fusetools/Fuse.SublimePlugin
import sublime import os def getSetting(key,default=None): s = sublime.load_settings("Fuse.sublime-settings") return s.get(key, default) def getFusePathFromSettings(): path = getSetting("fuse_path_override") if path == "" or path == None: return "fuse" else: return path+"/fuse" def setSetting(key,value): s...
import sublime import os def getSetting(key,default=None): s = sublime.load_settings("Fuse.sublime-settings") return s.get(key, default) def getFusePathFromSettings(): path = getSetting("fuse_path_override") if path == "" or path == None: if os.path.isfile("/usr/bin/fuse"): return "/usr/bin/fuse" else: ...
<commit_before>import sublime import os def getSetting(key,default=None): s = sublime.load_settings("Fuse.sublime-settings") return s.get(key, default) def getFusePathFromSettings(): path = getSetting("fuse_path_override") if path == "" or path == None: return "fuse" else: return path+"/fuse" def setSetting...
import sublime import os def getSetting(key,default=None): s = sublime.load_settings("Fuse.sublime-settings") return s.get(key, default) def getFusePathFromSettings(): path = getSetting("fuse_path_override") if path == "" or path == None: if os.path.isfile("/usr/bin/fuse"): return "/usr/bin/fuse" else: ...
import sublime import os def getSetting(key,default=None): s = sublime.load_settings("Fuse.sublime-settings") return s.get(key, default) def getFusePathFromSettings(): path = getSetting("fuse_path_override") if path == "" or path == None: return "fuse" else: return path+"/fuse" def setSetting(key,value): s...
<commit_before>import sublime import os def getSetting(key,default=None): s = sublime.load_settings("Fuse.sublime-settings") return s.get(key, default) def getFusePathFromSettings(): path = getSetting("fuse_path_override") if path == "" or path == None: return "fuse" else: return path+"/fuse" def setSetting...
02fc723b8d459de1bcf94dc02f7b8531dd9e7cfb
events/tests/test_user_get.py
events/tests/test_user_get.py
# -*- coding: utf-8 -*- import pytest from .utils import get, versioned_reverse as reverse, assert_fields_exist # === util methods === def get_list(api_client, version='v1'): list_url = reverse('user-list', version=version) return get(api_client, list_url) def assert_user_fields_exist(data, version='v1'): ...
# -*- coding: utf-8 -*- import pytest from .utils import get, versioned_reverse as reverse, assert_fields_exist # === util methods === def get_list(api_client, version='v1'): list_url = reverse('user-list', version=version) return get(api_client, list_url) def get_detail(api_client, detail_pk, version='v1')...
Check user detail in test
Check user detail in test
Python
mit
aapris/linkedevents,tuomas777/linkedevents,City-of-Helsinki/linkedevents,tuomas777/linkedevents,tuomas777/linkedevents,City-of-Helsinki/linkedevents,aapris/linkedevents,City-of-Helsinki/linkedevents,aapris/linkedevents
# -*- coding: utf-8 -*- import pytest from .utils import get, versioned_reverse as reverse, assert_fields_exist # === util methods === def get_list(api_client, version='v1'): list_url = reverse('user-list', version=version) return get(api_client, list_url) def assert_user_fields_exist(data, version='v1'): ...
# -*- coding: utf-8 -*- import pytest from .utils import get, versioned_reverse as reverse, assert_fields_exist # === util methods === def get_list(api_client, version='v1'): list_url = reverse('user-list', version=version) return get(api_client, list_url) def get_detail(api_client, detail_pk, version='v1')...
<commit_before># -*- coding: utf-8 -*- import pytest from .utils import get, versioned_reverse as reverse, assert_fields_exist # === util methods === def get_list(api_client, version='v1'): list_url = reverse('user-list', version=version) return get(api_client, list_url) def assert_user_fields_exist(data, v...
# -*- coding: utf-8 -*- import pytest from .utils import get, versioned_reverse as reverse, assert_fields_exist # === util methods === def get_list(api_client, version='v1'): list_url = reverse('user-list', version=version) return get(api_client, list_url) def get_detail(api_client, detail_pk, version='v1')...
# -*- coding: utf-8 -*- import pytest from .utils import get, versioned_reverse as reverse, assert_fields_exist # === util methods === def get_list(api_client, version='v1'): list_url = reverse('user-list', version=version) return get(api_client, list_url) def assert_user_fields_exist(data, version='v1'): ...
<commit_before># -*- coding: utf-8 -*- import pytest from .utils import get, versioned_reverse as reverse, assert_fields_exist # === util methods === def get_list(api_client, version='v1'): list_url = reverse('user-list', version=version) return get(api_client, list_url) def assert_user_fields_exist(data, v...
d0908d1e4e5279579a93772210b001c19fae9b10
cogs/misc.py
cogs/misc.py
import discord from discord.ext import commands class Misc: @commands.command() async def highfive(self, ctx): """ Give Yutu a high-five """ await ctx.send('{0.mention} :pray: {1.mention}'.format(ctx.me, ctx.author)) @commands.command() async def cute(self, ctx, user: d...
import discord from discord.ext import commands class Misc: @commands.command() async def highfive(self, ctx: commands.Context): """ Give Yutu a high-five """ await ctx.send('{0.mention} :pray: {1.mention}'.format(ctx.me, ctx.author)) @commands.command() async def cute(...
Add type markers for ctx objects
Add type markers for ctx objects
Python
mit
HarkonenBade/yutu
import discord from discord.ext import commands class Misc: @commands.command() async def highfive(self, ctx): """ Give Yutu a high-five """ await ctx.send('{0.mention} :pray: {1.mention}'.format(ctx.me, ctx.author)) @commands.command() async def cute(self, ctx, user: d...
import discord from discord.ext import commands class Misc: @commands.command() async def highfive(self, ctx: commands.Context): """ Give Yutu a high-five """ await ctx.send('{0.mention} :pray: {1.mention}'.format(ctx.me, ctx.author)) @commands.command() async def cute(...
<commit_before>import discord from discord.ext import commands class Misc: @commands.command() async def highfive(self, ctx): """ Give Yutu a high-five """ await ctx.send('{0.mention} :pray: {1.mention}'.format(ctx.me, ctx.author)) @commands.command() async def cute(sel...
import discord from discord.ext import commands class Misc: @commands.command() async def highfive(self, ctx: commands.Context): """ Give Yutu a high-five """ await ctx.send('{0.mention} :pray: {1.mention}'.format(ctx.me, ctx.author)) @commands.command() async def cute(...
import discord from discord.ext import commands class Misc: @commands.command() async def highfive(self, ctx): """ Give Yutu a high-five """ await ctx.send('{0.mention} :pray: {1.mention}'.format(ctx.me, ctx.author)) @commands.command() async def cute(self, ctx, user: d...
<commit_before>import discord from discord.ext import commands class Misc: @commands.command() async def highfive(self, ctx): """ Give Yutu a high-five """ await ctx.send('{0.mention} :pray: {1.mention}'.format(ctx.me, ctx.author)) @commands.command() async def cute(sel...
2263d180184c908b0e96d53f43f6c81aa23a3c92
push/urls.py
push/urls.py
from django.conf.urls import url from push import views urlpatterns = [ url(r'^$', views.index, name = 'index'), url(r'^sender', views.sender, name = 'sender'), url(r'^notification_list', views.notification_list, name = 'notification_list'), url(r'^settings', views.settings, name = 'settings'), url...
from django.conf.urls import url from push import views urlpatterns = [ url(r'^$', views.index, name = 'index'), url(r'^sender', views.sender, name = 'sender'), url(r'^notification_list', views.notification_list, name = 'notification_list'), url(r'^settings', views.settings, name = 'settings'), url...
Modify device_token register URL dispatcher
Modify device_token register URL dispatcher
Python
apache-2.0
nnsnodnb/django-mbaas,nnsnodnb/django-mbaas,nnsnodnb/django-mbaas
from django.conf.urls import url from push import views urlpatterns = [ url(r'^$', views.index, name = 'index'), url(r'^sender', views.sender, name = 'sender'), url(r'^notification_list', views.notification_list, name = 'notification_list'), url(r'^settings', views.settings, name = 'settings'), url...
from django.conf.urls import url from push import views urlpatterns = [ url(r'^$', views.index, name = 'index'), url(r'^sender', views.sender, name = 'sender'), url(r'^notification_list', views.notification_list, name = 'notification_list'), url(r'^settings', views.settings, name = 'settings'), url...
<commit_before>from django.conf.urls import url from push import views urlpatterns = [ url(r'^$', views.index, name = 'index'), url(r'^sender', views.sender, name = 'sender'), url(r'^notification_list', views.notification_list, name = 'notification_list'), url(r'^settings', views.settings, name = 'sett...
from django.conf.urls import url from push import views urlpatterns = [ url(r'^$', views.index, name = 'index'), url(r'^sender', views.sender, name = 'sender'), url(r'^notification_list', views.notification_list, name = 'notification_list'), url(r'^settings', views.settings, name = 'settings'), url...
from django.conf.urls import url from push import views urlpatterns = [ url(r'^$', views.index, name = 'index'), url(r'^sender', views.sender, name = 'sender'), url(r'^notification_list', views.notification_list, name = 'notification_list'), url(r'^settings', views.settings, name = 'settings'), url...
<commit_before>from django.conf.urls import url from push import views urlpatterns = [ url(r'^$', views.index, name = 'index'), url(r'^sender', views.sender, name = 'sender'), url(r'^notification_list', views.notification_list, name = 'notification_list'), url(r'^settings', views.settings, name = 'sett...
d5f0b698831e4bfb35b74ef0d8c7af75c91e67d3
dadd/worker/handlers.py
dadd/worker/handlers.py
import os import json import socket import requests from flask import request, jsonify, Response, abort from dadd.worker import app from dadd.worker.proc import ChildProcess @app.route('/run/', methods=['POST']) def run_process(): proc = ChildProcess(request.json) proc.run() return jsonify(proc.info())...
import os import json import socket import requests from flask import request, jsonify, Response, abort from dadd.worker import app from dadd.worker.proc import ChildProcess @app.route('/run/', methods=['POST']) def run_process(): proc = ChildProcess(request.json) proc.run() return jsonify(proc.info())...
Fix up the manual register URL in the worker and fix the initial log tail.
Fix up the manual register URL in the worker and fix the initial log tail.
Python
bsd-3-clause
ionrock/dadd,ionrock/dadd,ionrock/dadd,ionrock/dadd
import os import json import socket import requests from flask import request, jsonify, Response, abort from dadd.worker import app from dadd.worker.proc import ChildProcess @app.route('/run/', methods=['POST']) def run_process(): proc = ChildProcess(request.json) proc.run() return jsonify(proc.info())...
import os import json import socket import requests from flask import request, jsonify, Response, abort from dadd.worker import app from dadd.worker.proc import ChildProcess @app.route('/run/', methods=['POST']) def run_process(): proc = ChildProcess(request.json) proc.run() return jsonify(proc.info())...
<commit_before>import os import json import socket import requests from flask import request, jsonify, Response, abort from dadd.worker import app from dadd.worker.proc import ChildProcess @app.route('/run/', methods=['POST']) def run_process(): proc = ChildProcess(request.json) proc.run() return jsoni...
import os import json import socket import requests from flask import request, jsonify, Response, abort from dadd.worker import app from dadd.worker.proc import ChildProcess @app.route('/run/', methods=['POST']) def run_process(): proc = ChildProcess(request.json) proc.run() return jsonify(proc.info())...
import os import json import socket import requests from flask import request, jsonify, Response, abort from dadd.worker import app from dadd.worker.proc import ChildProcess @app.route('/run/', methods=['POST']) def run_process(): proc = ChildProcess(request.json) proc.run() return jsonify(proc.info())...
<commit_before>import os import json import socket import requests from flask import request, jsonify, Response, abort from dadd.worker import app from dadd.worker.proc import ChildProcess @app.route('/run/', methods=['POST']) def run_process(): proc = ChildProcess(request.json) proc.run() return jsoni...
3501f3404aebf6dc7ba349eafdc80602b98f72a9
snaek/ffi.py
snaek/ffi.py
import os import re import cffi _directive_re = re.compile(r'^\s*#.*?$(?m)') def make_ffi(module_path, crate_path, cached_header_filename=None): """Creates a FFI instance for the given configuration.""" if cached_header_filename is not None and \ os.path.isfile(cached_header_filename): with o...
import os import re import sys import cffi _directive_re = re.compile(r'^\s*#.*?$(?m)') def make_ffi(module_path, crate_path, cached_header_filename=None): """Creates a FFI instance for the given configuration.""" if cached_header_filename is not None and \ os.path.isfile(cached_header_filename): ...
Add a way to dump the header during setup.py runs
Add a way to dump the header during setup.py runs
Python
apache-2.0
mitsuhiko/snaek,mitsuhiko/snaek,mitsuhiko/snaek
import os import re import cffi _directive_re = re.compile(r'^\s*#.*?$(?m)') def make_ffi(module_path, crate_path, cached_header_filename=None): """Creates a FFI instance for the given configuration.""" if cached_header_filename is not None and \ os.path.isfile(cached_header_filename): with o...
import os import re import sys import cffi _directive_re = re.compile(r'^\s*#.*?$(?m)') def make_ffi(module_path, crate_path, cached_header_filename=None): """Creates a FFI instance for the given configuration.""" if cached_header_filename is not None and \ os.path.isfile(cached_header_filename): ...
<commit_before>import os import re import cffi _directive_re = re.compile(r'^\s*#.*?$(?m)') def make_ffi(module_path, crate_path, cached_header_filename=None): """Creates a FFI instance for the given configuration.""" if cached_header_filename is not None and \ os.path.isfile(cached_header_filename):...
import os import re import sys import cffi _directive_re = re.compile(r'^\s*#.*?$(?m)') def make_ffi(module_path, crate_path, cached_header_filename=None): """Creates a FFI instance for the given configuration.""" if cached_header_filename is not None and \ os.path.isfile(cached_header_filename): ...
import os import re import cffi _directive_re = re.compile(r'^\s*#.*?$(?m)') def make_ffi(module_path, crate_path, cached_header_filename=None): """Creates a FFI instance for the given configuration.""" if cached_header_filename is not None and \ os.path.isfile(cached_header_filename): with o...
<commit_before>import os import re import cffi _directive_re = re.compile(r'^\s*#.*?$(?m)') def make_ffi(module_path, crate_path, cached_header_filename=None): """Creates a FFI instance for the given configuration.""" if cached_header_filename is not None and \ os.path.isfile(cached_header_filename):...
fb1d39ed30e73bef49be7a71945d5dfd67af28e3
scripting.py
scripting.py
#!/usr/bin/env python2 import os, shutil def print_warning(message, *args, **kwargs): import colortext if args or kwargs: message = message.format(*args, **kwargs) colortext.write(message, color='red') def print_error_and_die(message, *args, **kwargs): print_warning(message + " Aborting...", *args, ...
#!/usr/bin/env python2 import os, shutil def print_warning(message, *args, **kwargs): import colortext if args or kwargs: message = message.format(*args, **kwargs) colortext.write(message, color='red') def print_error_and_die(message, *args, **kwargs): print_warning(message + " Aborting...", *args, ...
Add a friendly mkdir() function.
Add a friendly mkdir() function.
Python
mit
Kortemme-Lab/klab,Kortemme-Lab/klab,Kortemme-Lab/klab,Kortemme-Lab/klab
#!/usr/bin/env python2 import os, shutil def print_warning(message, *args, **kwargs): import colortext if args or kwargs: message = message.format(*args, **kwargs) colortext.write(message, color='red') def print_error_and_die(message, *args, **kwargs): print_warning(message + " Aborting...", *args, ...
#!/usr/bin/env python2 import os, shutil def print_warning(message, *args, **kwargs): import colortext if args or kwargs: message = message.format(*args, **kwargs) colortext.write(message, color='red') def print_error_and_die(message, *args, **kwargs): print_warning(message + " Aborting...", *args, ...
<commit_before>#!/usr/bin/env python2 import os, shutil def print_warning(message, *args, **kwargs): import colortext if args or kwargs: message = message.format(*args, **kwargs) colortext.write(message, color='red') def print_error_and_die(message, *args, **kwargs): print_warning(message + " Aborti...
#!/usr/bin/env python2 import os, shutil def print_warning(message, *args, **kwargs): import colortext if args or kwargs: message = message.format(*args, **kwargs) colortext.write(message, color='red') def print_error_and_die(message, *args, **kwargs): print_warning(message + " Aborting...", *args, ...
#!/usr/bin/env python2 import os, shutil def print_warning(message, *args, **kwargs): import colortext if args or kwargs: message = message.format(*args, **kwargs) colortext.write(message, color='red') def print_error_and_die(message, *args, **kwargs): print_warning(message + " Aborting...", *args, ...
<commit_before>#!/usr/bin/env python2 import os, shutil def print_warning(message, *args, **kwargs): import colortext if args or kwargs: message = message.format(*args, **kwargs) colortext.write(message, color='red') def print_error_and_die(message, *args, **kwargs): print_warning(message + " Aborti...
0216bfd48fddb9bb7bda611ec5bdfe368bdee55f
layout/tests.py
layout/tests.py
from django.test import TestCase # Create your tests here.
from django.core.urlresolvers import resolve from django.test import TestCase from layout.views import home class HomePageTest(TestCase): def test_root_url_resolves_to_home_page(self): found = resolve('/') self.assertEqual(found.func, home)
Add home page resolve test to layout
Add home page resolve test to layout
Python
mit
jvanbrug/scout,jvanbrug/scout
from django.test import TestCase # Create your tests here. Add home page resolve test to layout
from django.core.urlresolvers import resolve from django.test import TestCase from layout.views import home class HomePageTest(TestCase): def test_root_url_resolves_to_home_page(self): found = resolve('/') self.assertEqual(found.func, home)
<commit_before>from django.test import TestCase # Create your tests here. <commit_msg>Add home page resolve test to layout<commit_after>
from django.core.urlresolvers import resolve from django.test import TestCase from layout.views import home class HomePageTest(TestCase): def test_root_url_resolves_to_home_page(self): found = resolve('/') self.assertEqual(found.func, home)
from django.test import TestCase # Create your tests here. Add home page resolve test to layoutfrom django.core.urlresolvers import resolve from django.test import TestCase from layout.views import home class HomePageTest(TestCase): def test_root_url_resolves_to_home_page(self): found = resolve('/') ...
<commit_before>from django.test import TestCase # Create your tests here. <commit_msg>Add home page resolve test to layout<commit_after>from django.core.urlresolvers import resolve from django.test import TestCase from layout.views import home class HomePageTest(TestCase): def test_root_url_resolves_to_home_pa...
6556acc2d1be648fdb362f1f1e5000f443642416
examples/mnist-autoencoder.py
examples/mnist-autoencoder.py
#!/usr/bin/env python import cPickle import gzip import logging import os import sys import tempfile import urllib import lmj.tnn logging.basicConfig( stream=sys.stdout, format='%(levelname).1s %(asctime)s %(message)s', level=logging.INFO) URL = 'http://www.iro.umontreal.ca/~lisa/deep/data/mnist/mnist.p...
#!/usr/bin/env python import cPickle import gzip import logging import os import sys import tempfile import urllib import lmj.tnn logging.basicConfig( stream=sys.stdout, format='%(levelname).1s %(asctime)s %(message)s', level=logging.INFO) URL = 'http://www.iro.umontreal.ca/~lisa/deep/data/mnist/mnist.p...
Return unlabeled data for the autoencoder as a straight array.
Return unlabeled data for the autoencoder as a straight array.
Python
mit
lmjohns3/theanets,chrinide/theanets,devdoer/theanets
#!/usr/bin/env python import cPickle import gzip import logging import os import sys import tempfile import urllib import lmj.tnn logging.basicConfig( stream=sys.stdout, format='%(levelname).1s %(asctime)s %(message)s', level=logging.INFO) URL = 'http://www.iro.umontreal.ca/~lisa/deep/data/mnist/mnist.p...
#!/usr/bin/env python import cPickle import gzip import logging import os import sys import tempfile import urllib import lmj.tnn logging.basicConfig( stream=sys.stdout, format='%(levelname).1s %(asctime)s %(message)s', level=logging.INFO) URL = 'http://www.iro.umontreal.ca/~lisa/deep/data/mnist/mnist.p...
<commit_before>#!/usr/bin/env python import cPickle import gzip import logging import os import sys import tempfile import urllib import lmj.tnn logging.basicConfig( stream=sys.stdout, format='%(levelname).1s %(asctime)s %(message)s', level=logging.INFO) URL = 'http://www.iro.umontreal.ca/~lisa/deep/dat...
#!/usr/bin/env python import cPickle import gzip import logging import os import sys import tempfile import urllib import lmj.tnn logging.basicConfig( stream=sys.stdout, format='%(levelname).1s %(asctime)s %(message)s', level=logging.INFO) URL = 'http://www.iro.umontreal.ca/~lisa/deep/data/mnist/mnist.p...
#!/usr/bin/env python import cPickle import gzip import logging import os import sys import tempfile import urllib import lmj.tnn logging.basicConfig( stream=sys.stdout, format='%(levelname).1s %(asctime)s %(message)s', level=logging.INFO) URL = 'http://www.iro.umontreal.ca/~lisa/deep/data/mnist/mnist.p...
<commit_before>#!/usr/bin/env python import cPickle import gzip import logging import os import sys import tempfile import urllib import lmj.tnn logging.basicConfig( stream=sys.stdout, format='%(levelname).1s %(asctime)s %(message)s', level=logging.INFO) URL = 'http://www.iro.umontreal.ca/~lisa/deep/dat...
9debed5d1d83bdf2098a7a3841ae4ff272e7ea8e
lib/__init__.py
lib/__init__.py
from client import WebHDFSClient __version__ = '1.0'
from errors import WebHDFSError from client import WebHDFSClient from attrib import WebHDFSObject __version__ = '1.0'
Make other API classes available from base module.
Make other API classes available from base module.
Python
mit
mk23/webhdfs,mk23/webhdfs
from client import WebHDFSClient __version__ = '1.0' Make other API classes available from base module.
from errors import WebHDFSError from client import WebHDFSClient from attrib import WebHDFSObject __version__ = '1.0'
<commit_before>from client import WebHDFSClient __version__ = '1.0' <commit_msg>Make other API classes available from base module.<commit_after>
from errors import WebHDFSError from client import WebHDFSClient from attrib import WebHDFSObject __version__ = '1.0'
from client import WebHDFSClient __version__ = '1.0' Make other API classes available from base module.from errors import WebHDFSError from client import WebHDFSClient from attrib import WebHDFSObject __version__ = '1.0'
<commit_before>from client import WebHDFSClient __version__ = '1.0' <commit_msg>Make other API classes available from base module.<commit_after>from errors import WebHDFSError from client import WebHDFSClient from attrib import WebHDFSObject __version__ = '1.0'
2cb2779bfe1ddfcd6651665276ed0a1d513c57de
fireplace/cards/wog/shaman.py
fireplace/cards/wog/shaman.py
from ..utils import * ## # Minions class OG_023: "Primal Fusion" play = Buff(TARGET, "OG_023t") * Count(FRIENDLY_MINIONS + TOTEM) OG_023t = buff(+1, +1) class OG_209: "Hallazeal the Ascended" events = Damage(source=SPELL + FRIENDLY).on(Heal(FRIENDLY_HERO, Damage.AMOUNT))
from ..utils import * ## # Minions class OG_023: "Primal Fusion" play = Buff(TARGET, "OG_023t") * Count(FRIENDLY_MINIONS + TOTEM) OG_023t = buff(+1, +1) class OG_026: "Eternal Sentinel" play = UnlockOverload(CONTROLLER) class OG_209: "Hallazeal the Ascended" events = Damage(source=SPELL + FRIENDLY).on(Hea...
Implement Eternal Sentinel, Stormcrack and Hammer of Twilight
Implement Eternal Sentinel, Stormcrack and Hammer of Twilight
Python
agpl-3.0
NightKev/fireplace,beheh/fireplace,jleclanche/fireplace
from ..utils import * ## # Minions class OG_023: "Primal Fusion" play = Buff(TARGET, "OG_023t") * Count(FRIENDLY_MINIONS + TOTEM) OG_023t = buff(+1, +1) class OG_209: "Hallazeal the Ascended" events = Damage(source=SPELL + FRIENDLY).on(Heal(FRIENDLY_HERO, Damage.AMOUNT)) Implement Eternal Sentinel, Stormcrack...
from ..utils import * ## # Minions class OG_023: "Primal Fusion" play = Buff(TARGET, "OG_023t") * Count(FRIENDLY_MINIONS + TOTEM) OG_023t = buff(+1, +1) class OG_026: "Eternal Sentinel" play = UnlockOverload(CONTROLLER) class OG_209: "Hallazeal the Ascended" events = Damage(source=SPELL + FRIENDLY).on(Hea...
<commit_before>from ..utils import * ## # Minions class OG_023: "Primal Fusion" play = Buff(TARGET, "OG_023t") * Count(FRIENDLY_MINIONS + TOTEM) OG_023t = buff(+1, +1) class OG_209: "Hallazeal the Ascended" events = Damage(source=SPELL + FRIENDLY).on(Heal(FRIENDLY_HERO, Damage.AMOUNT)) <commit_msg>Implement E...
from ..utils import * ## # Minions class OG_023: "Primal Fusion" play = Buff(TARGET, "OG_023t") * Count(FRIENDLY_MINIONS + TOTEM) OG_023t = buff(+1, +1) class OG_026: "Eternal Sentinel" play = UnlockOverload(CONTROLLER) class OG_209: "Hallazeal the Ascended" events = Damage(source=SPELL + FRIENDLY).on(Hea...
from ..utils import * ## # Minions class OG_023: "Primal Fusion" play = Buff(TARGET, "OG_023t") * Count(FRIENDLY_MINIONS + TOTEM) OG_023t = buff(+1, +1) class OG_209: "Hallazeal the Ascended" events = Damage(source=SPELL + FRIENDLY).on(Heal(FRIENDLY_HERO, Damage.AMOUNT)) Implement Eternal Sentinel, Stormcrack...
<commit_before>from ..utils import * ## # Minions class OG_023: "Primal Fusion" play = Buff(TARGET, "OG_023t") * Count(FRIENDLY_MINIONS + TOTEM) OG_023t = buff(+1, +1) class OG_209: "Hallazeal the Ascended" events = Damage(source=SPELL + FRIENDLY).on(Heal(FRIENDLY_HERO, Damage.AMOUNT)) <commit_msg>Implement E...
562b56d67d7d292d7c63ec8c3f453bae92a3b073
tests/test_wysiwyg_editor.py
tests/test_wysiwyg_editor.py
from . import TheInternetTestCase from helium.api import click, Text, press, CONTROL, COMMAND, write from sys import platform class WYSIWYGEditorTest(TheInternetTestCase): def get_page(self): return "http://the-internet.herokuapp.com/tinymce" def test_use_wysiwyg_editor(self): self.assertTrue(Text("Your content ...
from . import TheInternetTestCase from helium.api import click, Text, write class WYSIWYGEditorTest(TheInternetTestCase): def get_page(self): return "http://the-internet.herokuapp.com/tinymce" def test_use_wysiwyg_editor(self): self.assertTrue(Text("Your content goes here.").exists()) click("File") click("Ne...
Simplify the WYSIWYG editor test case.
Simplify the WYSIWYG editor test case.
Python
mit
bugfree-software/the-internet-solution-python
from . import TheInternetTestCase from helium.api import click, Text, press, CONTROL, COMMAND, write from sys import platform class WYSIWYGEditorTest(TheInternetTestCase): def get_page(self): return "http://the-internet.herokuapp.com/tinymce" def test_use_wysiwyg_editor(self): self.assertTrue(Text("Your content ...
from . import TheInternetTestCase from helium.api import click, Text, write class WYSIWYGEditorTest(TheInternetTestCase): def get_page(self): return "http://the-internet.herokuapp.com/tinymce" def test_use_wysiwyg_editor(self): self.assertTrue(Text("Your content goes here.").exists()) click("File") click("Ne...
<commit_before>from . import TheInternetTestCase from helium.api import click, Text, press, CONTROL, COMMAND, write from sys import platform class WYSIWYGEditorTest(TheInternetTestCase): def get_page(self): return "http://the-internet.herokuapp.com/tinymce" def test_use_wysiwyg_editor(self): self.assertTrue(Text...
from . import TheInternetTestCase from helium.api import click, Text, write class WYSIWYGEditorTest(TheInternetTestCase): def get_page(self): return "http://the-internet.herokuapp.com/tinymce" def test_use_wysiwyg_editor(self): self.assertTrue(Text("Your content goes here.").exists()) click("File") click("Ne...
from . import TheInternetTestCase from helium.api import click, Text, press, CONTROL, COMMAND, write from sys import platform class WYSIWYGEditorTest(TheInternetTestCase): def get_page(self): return "http://the-internet.herokuapp.com/tinymce" def test_use_wysiwyg_editor(self): self.assertTrue(Text("Your content ...
<commit_before>from . import TheInternetTestCase from helium.api import click, Text, press, CONTROL, COMMAND, write from sys import platform class WYSIWYGEditorTest(TheInternetTestCase): def get_page(self): return "http://the-internet.herokuapp.com/tinymce" def test_use_wysiwyg_editor(self): self.assertTrue(Text...
47b3d205931d6ee7fa8062b3e2f01d1ea07df11a
pathvalidate/_error.py
pathvalidate/_error.py
# encoding: utf-8 """ .. codeauthor:: Tsuyoshi Hombashi <gogogo.vm@gmail.com> """ from __future__ import absolute_import from __future__ import unicode_literals class NullNameError(ValueError): """ Raised when a name is empty. """ class InvalidCharError(ValueError): """ Raised when includes in...
# encoding: utf-8 """ .. codeauthor:: Tsuyoshi Hombashi <gogogo.vm@gmail.com> """ from __future__ import absolute_import from __future__ import unicode_literals class InvalidNameError(ValueError): """ Base class of invalid name error. """ class NullNameError(InvalidNameError): """ Raised when ...
Add base class of invalid name error
Add base class of invalid name error
Python
mit
thombashi/pathvalidate
# encoding: utf-8 """ .. codeauthor:: Tsuyoshi Hombashi <gogogo.vm@gmail.com> """ from __future__ import absolute_import from __future__ import unicode_literals class NullNameError(ValueError): """ Raised when a name is empty. """ class InvalidCharError(ValueError): """ Raised when includes in...
# encoding: utf-8 """ .. codeauthor:: Tsuyoshi Hombashi <gogogo.vm@gmail.com> """ from __future__ import absolute_import from __future__ import unicode_literals class InvalidNameError(ValueError): """ Base class of invalid name error. """ class NullNameError(InvalidNameError): """ Raised when ...
<commit_before># encoding: utf-8 """ .. codeauthor:: Tsuyoshi Hombashi <gogogo.vm@gmail.com> """ from __future__ import absolute_import from __future__ import unicode_literals class NullNameError(ValueError): """ Raised when a name is empty. """ class InvalidCharError(ValueError): """ Raised w...
# encoding: utf-8 """ .. codeauthor:: Tsuyoshi Hombashi <gogogo.vm@gmail.com> """ from __future__ import absolute_import from __future__ import unicode_literals class InvalidNameError(ValueError): """ Base class of invalid name error. """ class NullNameError(InvalidNameError): """ Raised when ...
# encoding: utf-8 """ .. codeauthor:: Tsuyoshi Hombashi <gogogo.vm@gmail.com> """ from __future__ import absolute_import from __future__ import unicode_literals class NullNameError(ValueError): """ Raised when a name is empty. """ class InvalidCharError(ValueError): """ Raised when includes in...
<commit_before># encoding: utf-8 """ .. codeauthor:: Tsuyoshi Hombashi <gogogo.vm@gmail.com> """ from __future__ import absolute_import from __future__ import unicode_literals class NullNameError(ValueError): """ Raised when a name is empty. """ class InvalidCharError(ValueError): """ Raised w...
46fb576c9dcf83c40b67c75dade5b43a4d122e7f
platformio/__init__.py
platformio/__init__.py
# Copyright (C) Ivan Kravets <me@ikravets.com> # See LICENSE for details. VERSION = (0, 7, "0.dev") __version__ = ".".join([str(s) for s in VERSION]) __title__ = "platformio" __description__ = ("A cross-platform code builder and library manager") __url__ = "https://github.com/ivankravets/platformio" __author__ = "Iv...
# Copyright (C) Ivan Kravets <me@ikravets.com> # See LICENSE for details. VERSION = (0, 7, "0.dev") __version__ = ".".join([str(s) for s in VERSION]) __title__ = "platformio" __description__ = ("A cross-platform code builder and library manager") __url__ = "https://github.com/ivankravets/platformio" __author__ = "Iv...
Switch package manifest to dl.platformio
Switch package manifest to dl.platformio
Python
mit
aphelps/platformio,mcanthony/platformio,TimJay/platformio,aphelps/platformio,valeros/platformio,jrobeson/platformio,TimJay/platformio,bkudria/platformio,platformio/platformio-core,jrobeson/platformio,bkudria/platformio,ZachMassia/platformio,mplewis/platformio,mseroczynski/platformio,bkudria/platformio,aphelps/platformi...
# Copyright (C) Ivan Kravets <me@ikravets.com> # See LICENSE for details. VERSION = (0, 7, "0.dev") __version__ = ".".join([str(s) for s in VERSION]) __title__ = "platformio" __description__ = ("A cross-platform code builder and library manager") __url__ = "https://github.com/ivankravets/platformio" __author__ = "Iv...
# Copyright (C) Ivan Kravets <me@ikravets.com> # See LICENSE for details. VERSION = (0, 7, "0.dev") __version__ = ".".join([str(s) for s in VERSION]) __title__ = "platformio" __description__ = ("A cross-platform code builder and library manager") __url__ = "https://github.com/ivankravets/platformio" __author__ = "Iv...
<commit_before># Copyright (C) Ivan Kravets <me@ikravets.com> # See LICENSE for details. VERSION = (0, 7, "0.dev") __version__ = ".".join([str(s) for s in VERSION]) __title__ = "platformio" __description__ = ("A cross-platform code builder and library manager") __url__ = "https://github.com/ivankravets/platformio" _...
# Copyright (C) Ivan Kravets <me@ikravets.com> # See LICENSE for details. VERSION = (0, 7, "0.dev") __version__ = ".".join([str(s) for s in VERSION]) __title__ = "platformio" __description__ = ("A cross-platform code builder and library manager") __url__ = "https://github.com/ivankravets/platformio" __author__ = "Iv...
# Copyright (C) Ivan Kravets <me@ikravets.com> # See LICENSE for details. VERSION = (0, 7, "0.dev") __version__ = ".".join([str(s) for s in VERSION]) __title__ = "platformio" __description__ = ("A cross-platform code builder and library manager") __url__ = "https://github.com/ivankravets/platformio" __author__ = "Iv...
<commit_before># Copyright (C) Ivan Kravets <me@ikravets.com> # See LICENSE for details. VERSION = (0, 7, "0.dev") __version__ = ".".join([str(s) for s in VERSION]) __title__ = "platformio" __description__ = ("A cross-platform code builder and library manager") __url__ = "https://github.com/ivankravets/platformio" _...
752e6cef31ea124f00eced5699fb225501258148
reversible.py
reversible.py
#!/usr/bin/env python """ Some tools for dealing with reversible numbers for problem 145 from Project Euler. https://projecteuler.net/problem=145 """ def is_odd(num): """ Check if an integer is odd. """ if num % 2 != 0: return True else: return False def is_reversible(num): """ ...
#!/usr/bin/env python """ Some tools for dealing with reversible numbers for problem 145 from Project Euler. https://projecteuler.net/problem=145 """ def is_odd(num): """ Check if an integer is odd. """ if num % 2 != 0: return True else: return False def is_reversible(num): """ ...
Add check for leading zeroes.
Add check for leading zeroes.
Python
mit
smillet15/project-euler
#!/usr/bin/env python """ Some tools for dealing with reversible numbers for problem 145 from Project Euler. https://projecteuler.net/problem=145 """ def is_odd(num): """ Check if an integer is odd. """ if num % 2 != 0: return True else: return False def is_reversible(num): """ ...
#!/usr/bin/env python """ Some tools for dealing with reversible numbers for problem 145 from Project Euler. https://projecteuler.net/problem=145 """ def is_odd(num): """ Check if an integer is odd. """ if num % 2 != 0: return True else: return False def is_reversible(num): """ ...
<commit_before>#!/usr/bin/env python """ Some tools for dealing with reversible numbers for problem 145 from Project Euler. https://projecteuler.net/problem=145 """ def is_odd(num): """ Check if an integer is odd. """ if num % 2 != 0: return True else: return False def is_reversible...
#!/usr/bin/env python """ Some tools for dealing with reversible numbers for problem 145 from Project Euler. https://projecteuler.net/problem=145 """ def is_odd(num): """ Check if an integer is odd. """ if num % 2 != 0: return True else: return False def is_reversible(num): """ ...
#!/usr/bin/env python """ Some tools for dealing with reversible numbers for problem 145 from Project Euler. https://projecteuler.net/problem=145 """ def is_odd(num): """ Check if an integer is odd. """ if num % 2 != 0: return True else: return False def is_reversible(num): """ ...
<commit_before>#!/usr/bin/env python """ Some tools for dealing with reversible numbers for problem 145 from Project Euler. https://projecteuler.net/problem=145 """ def is_odd(num): """ Check if an integer is odd. """ if num % 2 != 0: return True else: return False def is_reversible...
3ffc101a1a8b1ec17e5f2e509a1e5182a1f6f4b9
fzn/utils.py
fzn/utils.py
import subprocess as sp import signal import threading import os SIGTERM_TIMEOUT = 1.0 class Command(object): def __init__(self, cmd, memlimit=None): self.cmd = cmd self.memlimit = memlimit self.process = None self.stdout = None self.stderr = None self.exitcode = ...
import subprocess as sp import signal import threading import os SIGTERM_TIMEOUT = 1.0 class Command(object): def __init__(self, cmd, memlimit=None): self.cmd = cmd self.memlimit = memlimit self.process = None self.stdout = None self.stderr = None self.exitcode = ...
Enable Command to support memory limiting.
Enable Command to support memory limiting.
Python
lgpl-2.1
eomahony/Numberjack,eomahony/Numberjack,eomahony/Numberjack,JElchison/Numberjack,JElchison/Numberjack,JElchison/Numberjack,JElchison/Numberjack,JElchison/Numberjack,eomahony/Numberjack,eomahony/Numberjack
import subprocess as sp import signal import threading import os SIGTERM_TIMEOUT = 1.0 class Command(object): def __init__(self, cmd, memlimit=None): self.cmd = cmd self.memlimit = memlimit self.process = None self.stdout = None self.stderr = None self.exitcode = ...
import subprocess as sp import signal import threading import os SIGTERM_TIMEOUT = 1.0 class Command(object): def __init__(self, cmd, memlimit=None): self.cmd = cmd self.memlimit = memlimit self.process = None self.stdout = None self.stderr = None self.exitcode = ...
<commit_before>import subprocess as sp import signal import threading import os SIGTERM_TIMEOUT = 1.0 class Command(object): def __init__(self, cmd, memlimit=None): self.cmd = cmd self.memlimit = memlimit self.process = None self.stdout = None self.stderr = None s...
import subprocess as sp import signal import threading import os SIGTERM_TIMEOUT = 1.0 class Command(object): def __init__(self, cmd, memlimit=None): self.cmd = cmd self.memlimit = memlimit self.process = None self.stdout = None self.stderr = None self.exitcode = ...
import subprocess as sp import signal import threading import os SIGTERM_TIMEOUT = 1.0 class Command(object): def __init__(self, cmd, memlimit=None): self.cmd = cmd self.memlimit = memlimit self.process = None self.stdout = None self.stderr = None self.exitcode = ...
<commit_before>import subprocess as sp import signal import threading import os SIGTERM_TIMEOUT = 1.0 class Command(object): def __init__(self, cmd, memlimit=None): self.cmd = cmd self.memlimit = memlimit self.process = None self.stdout = None self.stderr = None s...
a89a61620306d3cc38062cf69c56db64aadf0a8d
pokedex/db/__init__.py
pokedex/db/__init__.py
import pkg_resources from sqlalchemy import MetaData, Table, create_engine, orm from .tables import metadata def connect(uri=None, **kwargs): """Connects to the requested URI. Returns a session object. With the URI omitted, attempts to connect to a default SQLite database contained within the package d...
import pkg_resources from sqlalchemy import MetaData, Table, create_engine, orm from .tables import metadata def connect(uri=None, session_args={}, engine_args={}): """Connects to the requested URI. Returns a session object. With the URI omitted, attempts to connect to a default SQLite database contain...
Allow passing engine arguments to connect().
Allow passing engine arguments to connect().
Python
mit
mschex1/pokedex,RK905/pokedex-1,xfix/pokedex,veekun/pokedex,DaMouse404/pokedex,veekun/pokedex
import pkg_resources from sqlalchemy import MetaData, Table, create_engine, orm from .tables import metadata def connect(uri=None, **kwargs): """Connects to the requested URI. Returns a session object. With the URI omitted, attempts to connect to a default SQLite database contained within the package d...
import pkg_resources from sqlalchemy import MetaData, Table, create_engine, orm from .tables import metadata def connect(uri=None, session_args={}, engine_args={}): """Connects to the requested URI. Returns a session object. With the URI omitted, attempts to connect to a default SQLite database contain...
<commit_before>import pkg_resources from sqlalchemy import MetaData, Table, create_engine, orm from .tables import metadata def connect(uri=None, **kwargs): """Connects to the requested URI. Returns a session object. With the URI omitted, attempts to connect to a default SQLite database contained withi...
import pkg_resources from sqlalchemy import MetaData, Table, create_engine, orm from .tables import metadata def connect(uri=None, session_args={}, engine_args={}): """Connects to the requested URI. Returns a session object. With the URI omitted, attempts to connect to a default SQLite database contain...
import pkg_resources from sqlalchemy import MetaData, Table, create_engine, orm from .tables import metadata def connect(uri=None, **kwargs): """Connects to the requested URI. Returns a session object. With the URI omitted, attempts to connect to a default SQLite database contained within the package d...
<commit_before>import pkg_resources from sqlalchemy import MetaData, Table, create_engine, orm from .tables import metadata def connect(uri=None, **kwargs): """Connects to the requested URI. Returns a session object. With the URI omitted, attempts to connect to a default SQLite database contained withi...
9d5abdaefa483574cdd81da8d8d4e63ef68f5ab8
crossfolium/__init__.py
crossfolium/__init__.py
# -*- coding: utf-8 -*- """ Crossfolium ----------- """ import crossfolium.marker_function as marker_function from crossfolium.crossfolium import ( Crossfilter, PieFilter, RowBarFilter, BarFilter, TableFilter, CountFilter, ResetFilter, GeoChoroplethFilter, ) from .map import ( ...
# -*- coding: utf-8 -*- """ Crossfolium ----------- """ from __future__ import absolute_import from crossfolium import marker_function from crossfolium.crossfolium import ( Crossfilter, PieFilter, RowBarFilter, BarFilter, TableFilter, CountFilter, ResetFilter, GeoChoroplethFilter, ...
Handle absolute import for py27
Handle absolute import for py27
Python
mit
BibMartin/crossfolium,BibMartin/crossfolium
# -*- coding: utf-8 -*- """ Crossfolium ----------- """ import crossfolium.marker_function as marker_function from crossfolium.crossfolium import ( Crossfilter, PieFilter, RowBarFilter, BarFilter, TableFilter, CountFilter, ResetFilter, GeoChoroplethFilter, ) from .map import ( ...
# -*- coding: utf-8 -*- """ Crossfolium ----------- """ from __future__ import absolute_import from crossfolium import marker_function from crossfolium.crossfolium import ( Crossfilter, PieFilter, RowBarFilter, BarFilter, TableFilter, CountFilter, ResetFilter, GeoChoroplethFilter, ...
<commit_before># -*- coding: utf-8 -*- """ Crossfolium ----------- """ import crossfolium.marker_function as marker_function from crossfolium.crossfolium import ( Crossfilter, PieFilter, RowBarFilter, BarFilter, TableFilter, CountFilter, ResetFilter, GeoChoroplethFilter, ) from ....
# -*- coding: utf-8 -*- """ Crossfolium ----------- """ from __future__ import absolute_import from crossfolium import marker_function from crossfolium.crossfolium import ( Crossfilter, PieFilter, RowBarFilter, BarFilter, TableFilter, CountFilter, ResetFilter, GeoChoroplethFilter, ...
# -*- coding: utf-8 -*- """ Crossfolium ----------- """ import crossfolium.marker_function as marker_function from crossfolium.crossfolium import ( Crossfilter, PieFilter, RowBarFilter, BarFilter, TableFilter, CountFilter, ResetFilter, GeoChoroplethFilter, ) from .map import ( ...
<commit_before># -*- coding: utf-8 -*- """ Crossfolium ----------- """ import crossfolium.marker_function as marker_function from crossfolium.crossfolium import ( Crossfilter, PieFilter, RowBarFilter, BarFilter, TableFilter, CountFilter, ResetFilter, GeoChoroplethFilter, ) from ....
e325c603e972e6e7cd50eefae23b94594b6c9751
Tables/build_db.py
Tables/build_db.py
import sqlite3 import os import pandas as pd TABLES = [['Natures', 'nature'], ['Experience'], ] PATH = os.path.dirname(__file__)+"/" CONNECTION = sqlite3.connect(PATH + 'serpyrior.db') # insert a little jimmy drop tables here for table in TABLES: table_name = table[0] print(table_name) ...
import sqlite3 import os import pandas as pd TABLES = [['Natures', 'nature'], ['Experience'], ] PATH = os.path.dirname(__file__)+"/" try: # Little Bobby Tables os.remove(PATH + 'serpyrior.db') except FileNotFoundError: pass CONNECTION = sqlite3.connect(PATH + 'serpyrior.db') for table i...
Remove db if it already exists
Remove db if it already exists
Python
mit
Ditoeight/Pyranitar
import sqlite3 import os import pandas as pd TABLES = [['Natures', 'nature'], ['Experience'], ] PATH = os.path.dirname(__file__)+"/" CONNECTION = sqlite3.connect(PATH + 'serpyrior.db') # insert a little jimmy drop tables here for table in TABLES: table_name = table[0] print(table_name) ...
import sqlite3 import os import pandas as pd TABLES = [['Natures', 'nature'], ['Experience'], ] PATH = os.path.dirname(__file__)+"/" try: # Little Bobby Tables os.remove(PATH + 'serpyrior.db') except FileNotFoundError: pass CONNECTION = sqlite3.connect(PATH + 'serpyrior.db') for table i...
<commit_before>import sqlite3 import os import pandas as pd TABLES = [['Natures', 'nature'], ['Experience'], ] PATH = os.path.dirname(__file__)+"/" CONNECTION = sqlite3.connect(PATH + 'serpyrior.db') # insert a little jimmy drop tables here for table in TABLES: table_name = table[0] prin...
import sqlite3 import os import pandas as pd TABLES = [['Natures', 'nature'], ['Experience'], ] PATH = os.path.dirname(__file__)+"/" try: # Little Bobby Tables os.remove(PATH + 'serpyrior.db') except FileNotFoundError: pass CONNECTION = sqlite3.connect(PATH + 'serpyrior.db') for table i...
import sqlite3 import os import pandas as pd TABLES = [['Natures', 'nature'], ['Experience'], ] PATH = os.path.dirname(__file__)+"/" CONNECTION = sqlite3.connect(PATH + 'serpyrior.db') # insert a little jimmy drop tables here for table in TABLES: table_name = table[0] print(table_name) ...
<commit_before>import sqlite3 import os import pandas as pd TABLES = [['Natures', 'nature'], ['Experience'], ] PATH = os.path.dirname(__file__)+"/" CONNECTION = sqlite3.connect(PATH + 'serpyrior.db') # insert a little jimmy drop tables here for table in TABLES: table_name = table[0] prin...
55a8921f3634fe842eddf202d1237f53ca6d003b
kobo/settings/dev.py
kobo/settings/dev.py
# coding: utf-8 from .base import * LOGGING['handlers']['console'] = { 'level': 'DEBUG', 'class': 'logging.StreamHandler', 'formatter': 'verbose' } INSTALLED_APPS = INSTALLED_APPS + ('debug_toolbar',) MIDDLEWARE.append('debug_toolbar.middleware.DebugToolbarMiddleware') # Comment out the line below to use...
# coding: utf-8 from .base import * LOGGING['handlers']['console'] = { 'level': 'DEBUG', 'class': 'logging.StreamHandler', 'formatter': 'verbose' } INSTALLED_APPS = INSTALLED_APPS + ('debug_toolbar',) MIDDLEWARE.append('debug_toolbar.middleware.DebugToolbarMiddleware') def show_toolbar(request): retu...
Enable django debug toolbar via env var
Enable django debug toolbar via env var
Python
agpl-3.0
kobotoolbox/kpi,kobotoolbox/kpi,kobotoolbox/kpi,kobotoolbox/kpi,kobotoolbox/kpi
# coding: utf-8 from .base import * LOGGING['handlers']['console'] = { 'level': 'DEBUG', 'class': 'logging.StreamHandler', 'formatter': 'verbose' } INSTALLED_APPS = INSTALLED_APPS + ('debug_toolbar',) MIDDLEWARE.append('debug_toolbar.middleware.DebugToolbarMiddleware') # Comment out the line below to use...
# coding: utf-8 from .base import * LOGGING['handlers']['console'] = { 'level': 'DEBUG', 'class': 'logging.StreamHandler', 'formatter': 'verbose' } INSTALLED_APPS = INSTALLED_APPS + ('debug_toolbar',) MIDDLEWARE.append('debug_toolbar.middleware.DebugToolbarMiddleware') def show_toolbar(request): retu...
<commit_before># coding: utf-8 from .base import * LOGGING['handlers']['console'] = { 'level': 'DEBUG', 'class': 'logging.StreamHandler', 'formatter': 'verbose' } INSTALLED_APPS = INSTALLED_APPS + ('debug_toolbar',) MIDDLEWARE.append('debug_toolbar.middleware.DebugToolbarMiddleware') # Comment out the li...
# coding: utf-8 from .base import * LOGGING['handlers']['console'] = { 'level': 'DEBUG', 'class': 'logging.StreamHandler', 'formatter': 'verbose' } INSTALLED_APPS = INSTALLED_APPS + ('debug_toolbar',) MIDDLEWARE.append('debug_toolbar.middleware.DebugToolbarMiddleware') def show_toolbar(request): retu...
# coding: utf-8 from .base import * LOGGING['handlers']['console'] = { 'level': 'DEBUG', 'class': 'logging.StreamHandler', 'formatter': 'verbose' } INSTALLED_APPS = INSTALLED_APPS + ('debug_toolbar',) MIDDLEWARE.append('debug_toolbar.middleware.DebugToolbarMiddleware') # Comment out the line below to use...
<commit_before># coding: utf-8 from .base import * LOGGING['handlers']['console'] = { 'level': 'DEBUG', 'class': 'logging.StreamHandler', 'formatter': 'verbose' } INSTALLED_APPS = INSTALLED_APPS + ('debug_toolbar',) MIDDLEWARE.append('debug_toolbar.middleware.DebugToolbarMiddleware') # Comment out the li...
80fb36f2e8754a07ae2f6f4b454862a8b1852763
dadd/worker/handlers.py
dadd/worker/handlers.py
import json import requests from flask import request, jsonify from dadd.worker import app from dadd.worker.proc import ChildProcess @app.route('/run/', methods=['POST']) def run_process(): proc = ChildProcess(request.json) proc.run() return jsonify(proc.info()) @app.route('/register/', methods=['POS...
import json import socket import requests from flask import request, jsonify from dadd.worker import app from dadd.worker.proc import ChildProcess @app.route('/run/', methods=['POST']) def run_process(): proc = ChildProcess(request.json) proc.run() return jsonify(proc.info()) @app.route('/register/',...
Use the fqdn when registering with the master.
Use the fqdn when registering with the master. Not all deployment systems will provide a specific hostname via an env var so we'll avoid relying on it by asking the machine.
Python
bsd-3-clause
ionrock/dadd,ionrock/dadd,ionrock/dadd,ionrock/dadd
import json import requests from flask import request, jsonify from dadd.worker import app from dadd.worker.proc import ChildProcess @app.route('/run/', methods=['POST']) def run_process(): proc = ChildProcess(request.json) proc.run() return jsonify(proc.info()) @app.route('/register/', methods=['POS...
import json import socket import requests from flask import request, jsonify from dadd.worker import app from dadd.worker.proc import ChildProcess @app.route('/run/', methods=['POST']) def run_process(): proc = ChildProcess(request.json) proc.run() return jsonify(proc.info()) @app.route('/register/',...
<commit_before>import json import requests from flask import request, jsonify from dadd.worker import app from dadd.worker.proc import ChildProcess @app.route('/run/', methods=['POST']) def run_process(): proc = ChildProcess(request.json) proc.run() return jsonify(proc.info()) @app.route('/register/'...
import json import socket import requests from flask import request, jsonify from dadd.worker import app from dadd.worker.proc import ChildProcess @app.route('/run/', methods=['POST']) def run_process(): proc = ChildProcess(request.json) proc.run() return jsonify(proc.info()) @app.route('/register/',...
import json import requests from flask import request, jsonify from dadd.worker import app from dadd.worker.proc import ChildProcess @app.route('/run/', methods=['POST']) def run_process(): proc = ChildProcess(request.json) proc.run() return jsonify(proc.info()) @app.route('/register/', methods=['POS...
<commit_before>import json import requests from flask import request, jsonify from dadd.worker import app from dadd.worker.proc import ChildProcess @app.route('/run/', methods=['POST']) def run_process(): proc = ChildProcess(request.json) proc.run() return jsonify(proc.info()) @app.route('/register/'...
2a76368054599006c8f7833cda1ec20f85bfcb28
hash_table.py
hash_table.py
#!/usr/bin/env python '''Implementation of a simple hash table. The table has `hash`, `get` and `set` methods. The hash function uses a very basic hash algorithm to insert the value into the table. ''' class HashItem(object): def __init__(self): pass class Hash(object): def __init__(self, size=1024...
#!/usr/bin/env python '''Implementation of a simple hash table. The table has `hash`, `get` and `set` methods. The hash function uses a very basic hash algorithm to insert the value into the table. ''' class HashItem(object): def __init__(self): pass class Hash(object): def __init__(self, size=1024...
Build out hash function of hash table class
Build out hash function of hash table class
Python
mit
jwarren116/data-structures-deux
#!/usr/bin/env python '''Implementation of a simple hash table. The table has `hash`, `get` and `set` methods. The hash function uses a very basic hash algorithm to insert the value into the table. ''' class HashItem(object): def __init__(self): pass class Hash(object): def __init__(self, size=1024...
#!/usr/bin/env python '''Implementation of a simple hash table. The table has `hash`, `get` and `set` methods. The hash function uses a very basic hash algorithm to insert the value into the table. ''' class HashItem(object): def __init__(self): pass class Hash(object): def __init__(self, size=1024...
<commit_before>#!/usr/bin/env python '''Implementation of a simple hash table. The table has `hash`, `get` and `set` methods. The hash function uses a very basic hash algorithm to insert the value into the table. ''' class HashItem(object): def __init__(self): pass class Hash(object): def __init__(...
#!/usr/bin/env python '''Implementation of a simple hash table. The table has `hash`, `get` and `set` methods. The hash function uses a very basic hash algorithm to insert the value into the table. ''' class HashItem(object): def __init__(self): pass class Hash(object): def __init__(self, size=1024...
#!/usr/bin/env python '''Implementation of a simple hash table. The table has `hash`, `get` and `set` methods. The hash function uses a very basic hash algorithm to insert the value into the table. ''' class HashItem(object): def __init__(self): pass class Hash(object): def __init__(self, size=1024...
<commit_before>#!/usr/bin/env python '''Implementation of a simple hash table. The table has `hash`, `get` and `set` methods. The hash function uses a very basic hash algorithm to insert the value into the table. ''' class HashItem(object): def __init__(self): pass class Hash(object): def __init__(...
b0824da73317bae42cb39fad5cfc95574548594a
accounts/models.py
accounts/models.py
# coding: utf-8 from __future__ import unicode_literals from django.contrib.auth.models import AbstractUser, UserManager from django.db.models import BooleanField from django.utils.encoding import python_2_unicode_compatible from django.utils.translation import ungettext_lazy from mptt.fields import TreeForeignKey fro...
# coding: utf-8 from __future__ import unicode_literals from django.contrib.auth.models import AbstractUser, UserManager from django.db.models import BooleanField from django.utils.encoding import python_2_unicode_compatible from django.utils.translation import ungettext_lazy from mptt.fields import TreeForeignKey fro...
Change l'ordre d'insertion des utilisateurs.
Change l'ordre d'insertion des utilisateurs.
Python
bsd-3-clause
dezede/dezede,dezede/dezede,dezede/dezede,dezede/dezede
# coding: utf-8 from __future__ import unicode_literals from django.contrib.auth.models import AbstractUser, UserManager from django.db.models import BooleanField from django.utils.encoding import python_2_unicode_compatible from django.utils.translation import ungettext_lazy from mptt.fields import TreeForeignKey fro...
# coding: utf-8 from __future__ import unicode_literals from django.contrib.auth.models import AbstractUser, UserManager from django.db.models import BooleanField from django.utils.encoding import python_2_unicode_compatible from django.utils.translation import ungettext_lazy from mptt.fields import TreeForeignKey fro...
<commit_before># coding: utf-8 from __future__ import unicode_literals from django.contrib.auth.models import AbstractUser, UserManager from django.db.models import BooleanField from django.utils.encoding import python_2_unicode_compatible from django.utils.translation import ungettext_lazy from mptt.fields import Tre...
# coding: utf-8 from __future__ import unicode_literals from django.contrib.auth.models import AbstractUser, UserManager from django.db.models import BooleanField from django.utils.encoding import python_2_unicode_compatible from django.utils.translation import ungettext_lazy from mptt.fields import TreeForeignKey fro...
# coding: utf-8 from __future__ import unicode_literals from django.contrib.auth.models import AbstractUser, UserManager from django.db.models import BooleanField from django.utils.encoding import python_2_unicode_compatible from django.utils.translation import ungettext_lazy from mptt.fields import TreeForeignKey fro...
<commit_before># coding: utf-8 from __future__ import unicode_literals from django.contrib.auth.models import AbstractUser, UserManager from django.db.models import BooleanField from django.utils.encoding import python_2_unicode_compatible from django.utils.translation import ungettext_lazy from mptt.fields import Tre...
c568c4b51f7a20524fb8c5a6184b8fdacb25d613
src/lib/ghostlines/windows/account_window.py
src/lib/ghostlines/windows/account_window.py
from ghostlines.storage.app_storage import AppStorage from ghostlines.windows.account_details_window import AccountDetailsWindow from ghostlines.windows.sign_in_window import SignInWindow class AccountWindow(object): def __init__(self, sign_in=SignInWindow, account_details=AccountDetailsWindow): if self.i...
from ghostlines.storage.app_storage import AppStorage from ghostlines.windows.account_details_window import AccountDetailsWindow from ghostlines.windows.sign_in_window import SignInWindow class AccountWindow(object): def __init__(self, sign_in=SignInWindow, account_details=AccountDetailsWindow): if self.i...
Remove call to open account window when loading module
Remove call to open account window when loading module
Python
mit
ghostlines/ghostlines-robofont,ghostlines/ghostlines-robofont,ghostlines/ghostlines-robofont,ghostlines/ghostlines-robofont
from ghostlines.storage.app_storage import AppStorage from ghostlines.windows.account_details_window import AccountDetailsWindow from ghostlines.windows.sign_in_window import SignInWindow class AccountWindow(object): def __init__(self, sign_in=SignInWindow, account_details=AccountDetailsWindow): if self.i...
from ghostlines.storage.app_storage import AppStorage from ghostlines.windows.account_details_window import AccountDetailsWindow from ghostlines.windows.sign_in_window import SignInWindow class AccountWindow(object): def __init__(self, sign_in=SignInWindow, account_details=AccountDetailsWindow): if self.i...
<commit_before>from ghostlines.storage.app_storage import AppStorage from ghostlines.windows.account_details_window import AccountDetailsWindow from ghostlines.windows.sign_in_window import SignInWindow class AccountWindow(object): def __init__(self, sign_in=SignInWindow, account_details=AccountDetailsWindow): ...
from ghostlines.storage.app_storage import AppStorage from ghostlines.windows.account_details_window import AccountDetailsWindow from ghostlines.windows.sign_in_window import SignInWindow class AccountWindow(object): def __init__(self, sign_in=SignInWindow, account_details=AccountDetailsWindow): if self.i...
from ghostlines.storage.app_storage import AppStorage from ghostlines.windows.account_details_window import AccountDetailsWindow from ghostlines.windows.sign_in_window import SignInWindow class AccountWindow(object): def __init__(self, sign_in=SignInWindow, account_details=AccountDetailsWindow): if self.i...
<commit_before>from ghostlines.storage.app_storage import AppStorage from ghostlines.windows.account_details_window import AccountDetailsWindow from ghostlines.windows.sign_in_window import SignInWindow class AccountWindow(object): def __init__(self, sign_in=SignInWindow, account_details=AccountDetailsWindow): ...
9ffc56e947dea40cd49c76beada2ec469a01f8f8
__init__.py
__init__.py
import base64 import json from os import path import sys sys.path.insert(0, path.dirname(path.dirname(path.abspath(__file__)))) api_file = 'my_api.json' _api_file = '{}\{}'.format(path.dirname(path.abspath(__file__)), api_file) with open(_api_file) as fin: cw_api_settings = json.load(fin) API_URL = c...
import base64 import json from os import path import sys sys.path.insert(0, path.dirname(path.dirname(path.abspath(__file__)))) api_file = 'my_api.json' _api_file = path.join(path.dirname(path.abspath(__file__)), api_file) with open(_api_file) as fin: cw_api_settings = json.load(fin) API_URL = cw_api...
Make api file path OS safe
Make api file path OS safe
Python
mit
joshuamsmith/ConnectPyse
import base64 import json from os import path import sys sys.path.insert(0, path.dirname(path.dirname(path.abspath(__file__)))) api_file = 'my_api.json' _api_file = '{}\{}'.format(path.dirname(path.abspath(__file__)), api_file) with open(_api_file) as fin: cw_api_settings = json.load(fin) API_URL = c...
import base64 import json from os import path import sys sys.path.insert(0, path.dirname(path.dirname(path.abspath(__file__)))) api_file = 'my_api.json' _api_file = path.join(path.dirname(path.abspath(__file__)), api_file) with open(_api_file) as fin: cw_api_settings = json.load(fin) API_URL = cw_api...
<commit_before>import base64 import json from os import path import sys sys.path.insert(0, path.dirname(path.dirname(path.abspath(__file__)))) api_file = 'my_api.json' _api_file = '{}\{}'.format(path.dirname(path.abspath(__file__)), api_file) with open(_api_file) as fin: cw_api_settings = json.load(fi...
import base64 import json from os import path import sys sys.path.insert(0, path.dirname(path.dirname(path.abspath(__file__)))) api_file = 'my_api.json' _api_file = path.join(path.dirname(path.abspath(__file__)), api_file) with open(_api_file) as fin: cw_api_settings = json.load(fin) API_URL = cw_api...
import base64 import json from os import path import sys sys.path.insert(0, path.dirname(path.dirname(path.abspath(__file__)))) api_file = 'my_api.json' _api_file = '{}\{}'.format(path.dirname(path.abspath(__file__)), api_file) with open(_api_file) as fin: cw_api_settings = json.load(fin) API_URL = c...
<commit_before>import base64 import json from os import path import sys sys.path.insert(0, path.dirname(path.dirname(path.abspath(__file__)))) api_file = 'my_api.json' _api_file = '{}\{}'.format(path.dirname(path.abspath(__file__)), api_file) with open(_api_file) as fin: cw_api_settings = json.load(fi...
f99847f363eed36713f657a4cb15a103ffcc6623
web/server.py
web/server.py
import http.client import os from flask import Flask from pymongo import MongoClient MONGO_URL = os.environ.get('MONGO_URL', 'mongodb://mongo:27017/') MONGO_DATABASE = os.environ.get('MONGO_DATABASE', 'whistleblower') DATABASE = MongoClient(MONGO_URL)[MONGO_DATABASE] app = Flask(__name__) @app.route('/') def hello_...
import http.client import os from flask import Flask from pymongo import MongoClient MONGO_URL = os.environ.get('MONGO_URL', 'mongodb://mongo:27017/') MONGO_DATABASE = os.environ.get('MONGO_DATABASE', 'whistleblower') DATABASE = MongoClient(MONGO_URL)[MONGO_DATABASE] app = Flask(__name__) @app.route('/') def hello_...
Save every request coming in the facebook webroot endpoint
Save every request coming in the facebook webroot endpoint
Python
unlicense
datasciencebr/whistleblower
import http.client import os from flask import Flask from pymongo import MongoClient MONGO_URL = os.environ.get('MONGO_URL', 'mongodb://mongo:27017/') MONGO_DATABASE = os.environ.get('MONGO_DATABASE', 'whistleblower') DATABASE = MongoClient(MONGO_URL)[MONGO_DATABASE] app = Flask(__name__) @app.route('/') def hello_...
import http.client import os from flask import Flask from pymongo import MongoClient MONGO_URL = os.environ.get('MONGO_URL', 'mongodb://mongo:27017/') MONGO_DATABASE = os.environ.get('MONGO_DATABASE', 'whistleblower') DATABASE = MongoClient(MONGO_URL)[MONGO_DATABASE] app = Flask(__name__) @app.route('/') def hello_...
<commit_before>import http.client import os from flask import Flask from pymongo import MongoClient MONGO_URL = os.environ.get('MONGO_URL', 'mongodb://mongo:27017/') MONGO_DATABASE = os.environ.get('MONGO_DATABASE', 'whistleblower') DATABASE = MongoClient(MONGO_URL)[MONGO_DATABASE] app = Flask(__name__) @app.route(...
import http.client import os from flask import Flask from pymongo import MongoClient MONGO_URL = os.environ.get('MONGO_URL', 'mongodb://mongo:27017/') MONGO_DATABASE = os.environ.get('MONGO_DATABASE', 'whistleblower') DATABASE = MongoClient(MONGO_URL)[MONGO_DATABASE] app = Flask(__name__) @app.route('/') def hello_...
import http.client import os from flask import Flask from pymongo import MongoClient MONGO_URL = os.environ.get('MONGO_URL', 'mongodb://mongo:27017/') MONGO_DATABASE = os.environ.get('MONGO_DATABASE', 'whistleblower') DATABASE = MongoClient(MONGO_URL)[MONGO_DATABASE] app = Flask(__name__) @app.route('/') def hello_...
<commit_before>import http.client import os from flask import Flask from pymongo import MongoClient MONGO_URL = os.environ.get('MONGO_URL', 'mongodb://mongo:27017/') MONGO_DATABASE = os.environ.get('MONGO_DATABASE', 'whistleblower') DATABASE = MongoClient(MONGO_URL)[MONGO_DATABASE] app = Flask(__name__) @app.route(...
483cf7f91a89e040184bd71a0a1c59c0e0926e34
elasticmapping/types.py
elasticmapping/types.py
# ElasticMapping # File: types.py # Desc: base Elasticsearch types class CallableDict(dict): BASE = None OVERRIDES = None def __call__(self, overrides): new_dict = CallableDict(self) new_dict.OVERRIDES = overrides new_dict.BASE = self return new_dict BASE_TYPE = { 's...
# ElasticMapping # File: types.py # Desc: base Elasticsearch types class CallableDict(dict): BASE = None OVERRIDES = None def __call__(self, overrides): new_dict = CallableDict(self) new_dict.OVERRIDES = overrides new_dict.BASE = self return new_dict BASE_TYPE = { 's...
Switch default to actual ES default (date_optional_time) and add TIME type
Switch default to actual ES default (date_optional_time) and add TIME type
Python
mit
Fizzadar/ElasticMapping,Fizzadar/ElasticMapping
# ElasticMapping # File: types.py # Desc: base Elasticsearch types class CallableDict(dict): BASE = None OVERRIDES = None def __call__(self, overrides): new_dict = CallableDict(self) new_dict.OVERRIDES = overrides new_dict.BASE = self return new_dict BASE_TYPE = { 's...
# ElasticMapping # File: types.py # Desc: base Elasticsearch types class CallableDict(dict): BASE = None OVERRIDES = None def __call__(self, overrides): new_dict = CallableDict(self) new_dict.OVERRIDES = overrides new_dict.BASE = self return new_dict BASE_TYPE = { 's...
<commit_before># ElasticMapping # File: types.py # Desc: base Elasticsearch types class CallableDict(dict): BASE = None OVERRIDES = None def __call__(self, overrides): new_dict = CallableDict(self) new_dict.OVERRIDES = overrides new_dict.BASE = self return new_dict BASE_...
# ElasticMapping # File: types.py # Desc: base Elasticsearch types class CallableDict(dict): BASE = None OVERRIDES = None def __call__(self, overrides): new_dict = CallableDict(self) new_dict.OVERRIDES = overrides new_dict.BASE = self return new_dict BASE_TYPE = { 's...
# ElasticMapping # File: types.py # Desc: base Elasticsearch types class CallableDict(dict): BASE = None OVERRIDES = None def __call__(self, overrides): new_dict = CallableDict(self) new_dict.OVERRIDES = overrides new_dict.BASE = self return new_dict BASE_TYPE = { 's...
<commit_before># ElasticMapping # File: types.py # Desc: base Elasticsearch types class CallableDict(dict): BASE = None OVERRIDES = None def __call__(self, overrides): new_dict = CallableDict(self) new_dict.OVERRIDES = overrides new_dict.BASE = self return new_dict BASE_...
b3bae8e48618e487ce9c8a90a555d5c6d6664872
app/management/commands/cleanapptables.py
app/management/commands/cleanapptables.py
from django.core.management.base import BaseCommand, CommandError from app.models import Author, Location, AutoComment, Comment, Idea, Vote class Command(BaseCommand): def handle(self, *args, **options): self.stdout.write('Starting to clean app tables...') try: Idea.objects.all().delet...
from django.core.management.base import BaseCommand, CommandError from app.models import Author, Location, AutoComment, Comment, Idea, Vote, SocialNetworkAppUser class Command(BaseCommand): def handle(self, *args, **options): self.stdout.write('Starting to clean app tables...') try: Id...
Add the deletion of the app users
Add the deletion of the app users
Python
mit
joausaga/social-ideation,joausaga/social-ideation,rebearteta/social-ideation,rebearteta/social-ideation,rebearteta/social-ideation,joausaga/social-ideation,joausaga/social-ideation,rebearteta/social-ideation
from django.core.management.base import BaseCommand, CommandError from app.models import Author, Location, AutoComment, Comment, Idea, Vote class Command(BaseCommand): def handle(self, *args, **options): self.stdout.write('Starting to clean app tables...') try: Idea.objects.all().delet...
from django.core.management.base import BaseCommand, CommandError from app.models import Author, Location, AutoComment, Comment, Idea, Vote, SocialNetworkAppUser class Command(BaseCommand): def handle(self, *args, **options): self.stdout.write('Starting to clean app tables...') try: Id...
<commit_before>from django.core.management.base import BaseCommand, CommandError from app.models import Author, Location, AutoComment, Comment, Idea, Vote class Command(BaseCommand): def handle(self, *args, **options): self.stdout.write('Starting to clean app tables...') try: Idea.obje...
from django.core.management.base import BaseCommand, CommandError from app.models import Author, Location, AutoComment, Comment, Idea, Vote, SocialNetworkAppUser class Command(BaseCommand): def handle(self, *args, **options): self.stdout.write('Starting to clean app tables...') try: Id...
from django.core.management.base import BaseCommand, CommandError from app.models import Author, Location, AutoComment, Comment, Idea, Vote class Command(BaseCommand): def handle(self, *args, **options): self.stdout.write('Starting to clean app tables...') try: Idea.objects.all().delet...
<commit_before>from django.core.management.base import BaseCommand, CommandError from app.models import Author, Location, AutoComment, Comment, Idea, Vote class Command(BaseCommand): def handle(self, *args, **options): self.stdout.write('Starting to clean app tables...') try: Idea.obje...
cde145c95f604cd1936fe0d61e6f6b5858177a80
app/util/danger.py
app/util/danger.py
from itsdangerous import TimedJSONWebSignatureSerializer as Serializer from flask import request as flask_request from flask import abort import logging import os def gen_auth_token(id,expiration=10000): """Generate auth token""" try: s = Serializer(os.environ['API_KEY'],expires_in=expiration) exc...
from itsdangerous import TimedJSONWebSignatureSerializer as Serializer from flask import request as flask_request from flask import abort import logging import os def gen_auth_token(id,expiration=10000): """Generate auth token""" try: s = Serializer(os.environ['API_KEY'],expires_in=expiration) exc...
Add warning log level for auth checks
Add warning log level for auth checks
Python
mit
tforrest/soda-automation,tforrest/soda-automation
from itsdangerous import TimedJSONWebSignatureSerializer as Serializer from flask import request as flask_request from flask import abort import logging import os def gen_auth_token(id,expiration=10000): """Generate auth token""" try: s = Serializer(os.environ['API_KEY'],expires_in=expiration) exc...
from itsdangerous import TimedJSONWebSignatureSerializer as Serializer from flask import request as flask_request from flask import abort import logging import os def gen_auth_token(id,expiration=10000): """Generate auth token""" try: s = Serializer(os.environ['API_KEY'],expires_in=expiration) exc...
<commit_before>from itsdangerous import TimedJSONWebSignatureSerializer as Serializer from flask import request as flask_request from flask import abort import logging import os def gen_auth_token(id,expiration=10000): """Generate auth token""" try: s = Serializer(os.environ['API_KEY'],expires_in=expi...
from itsdangerous import TimedJSONWebSignatureSerializer as Serializer from flask import request as flask_request from flask import abort import logging import os def gen_auth_token(id,expiration=10000): """Generate auth token""" try: s = Serializer(os.environ['API_KEY'],expires_in=expiration) exc...
from itsdangerous import TimedJSONWebSignatureSerializer as Serializer from flask import request as flask_request from flask import abort import logging import os def gen_auth_token(id,expiration=10000): """Generate auth token""" try: s = Serializer(os.environ['API_KEY'],expires_in=expiration) exc...
<commit_before>from itsdangerous import TimedJSONWebSignatureSerializer as Serializer from flask import request as flask_request from flask import abort import logging import os def gen_auth_token(id,expiration=10000): """Generate auth token""" try: s = Serializer(os.environ['API_KEY'],expires_in=expi...
c9003940c583a19861c1dff20498aa4c6aae1efb
scikits/crab/tests/test_base.py
scikits/crab/tests/test_base.py
#-*- coding:utf-8 -*- """ Base Recommender Models. """ # Authors: Marcel Caraciolo <marcel@muricoca.com> # Bruno Melo <bruno@muricoca.com> # License: BSD Style. import unittest import sys sys.path.append('/Users/marcelcaraciolo/Desktop/Orygens/crab/crab/scikits/craba') from base import BaseRecommender #...
#-*- coding:utf-8 -*- """ Base Recommender Models. """ # Authors: Marcel Caraciolo <marcel@muricoca.com> # Bruno Melo <bruno@muricoca.com> # License: BSD Style. import unittest from base import BaseRecommender #test classes class MyRecommender(BaseRecommender): def __init__(self,model): Base...
Fix the test removing paths.
Fix the test removing paths.
Python
bsd-3-clause
Lawrence-Liu/crab,muricoca/crab,hi2srihari/crab,echogreens/crab,muricoca/crab,augustoppimenta/crab,imouren/crab,rcarmo/crab,Flowerowl/Crab,wnyc/crab,wnyc/crab
#-*- coding:utf-8 -*- """ Base Recommender Models. """ # Authors: Marcel Caraciolo <marcel@muricoca.com> # Bruno Melo <bruno@muricoca.com> # License: BSD Style. import unittest import sys sys.path.append('/Users/marcelcaraciolo/Desktop/Orygens/crab/crab/scikits/craba') from base import BaseRecommender #...
#-*- coding:utf-8 -*- """ Base Recommender Models. """ # Authors: Marcel Caraciolo <marcel@muricoca.com> # Bruno Melo <bruno@muricoca.com> # License: BSD Style. import unittest from base import BaseRecommender #test classes class MyRecommender(BaseRecommender): def __init__(self,model): Base...
<commit_before>#-*- coding:utf-8 -*- """ Base Recommender Models. """ # Authors: Marcel Caraciolo <marcel@muricoca.com> # Bruno Melo <bruno@muricoca.com> # License: BSD Style. import unittest import sys sys.path.append('/Users/marcelcaraciolo/Desktop/Orygens/crab/crab/scikits/craba') from base import Bas...
#-*- coding:utf-8 -*- """ Base Recommender Models. """ # Authors: Marcel Caraciolo <marcel@muricoca.com> # Bruno Melo <bruno@muricoca.com> # License: BSD Style. import unittest from base import BaseRecommender #test classes class MyRecommender(BaseRecommender): def __init__(self,model): Base...
#-*- coding:utf-8 -*- """ Base Recommender Models. """ # Authors: Marcel Caraciolo <marcel@muricoca.com> # Bruno Melo <bruno@muricoca.com> # License: BSD Style. import unittest import sys sys.path.append('/Users/marcelcaraciolo/Desktop/Orygens/crab/crab/scikits/craba') from base import BaseRecommender #...
<commit_before>#-*- coding:utf-8 -*- """ Base Recommender Models. """ # Authors: Marcel Caraciolo <marcel@muricoca.com> # Bruno Melo <bruno@muricoca.com> # License: BSD Style. import unittest import sys sys.path.append('/Users/marcelcaraciolo/Desktop/Orygens/crab/crab/scikits/craba') from base import Bas...
b2e4b0eaf67714c180feec53e5b0021d911d8f8d
pandora/py2compat.py
pandora/py2compat.py
""" Python 2 Compatibility Layer This module exists to work around compatibility issues between Python 2 and Python 3. The main code-base will use Python 3 idioms and this module will patch Python 2 code to support those changes. When Python 2 support is dropped this module can be removed and imports can be updated. "...
""" Python 2 Compatibility Layer This module exists to work around compatibility issues between Python 2 and Python 3. The main code-base will use Python 3 idioms and this module will patch Python 2 code to support those changes. When Python 2 support is dropped this module can be removed and imports can be updated. "...
Add missing import for unittest.mock.patch.
Add missing import for unittest.mock.patch.
Python
mit
mcrute/pydora
""" Python 2 Compatibility Layer This module exists to work around compatibility issues between Python 2 and Python 3. The main code-base will use Python 3 idioms and this module will patch Python 2 code to support those changes. When Python 2 support is dropped this module can be removed and imports can be updated. "...
""" Python 2 Compatibility Layer This module exists to work around compatibility issues between Python 2 and Python 3. The main code-base will use Python 3 idioms and this module will patch Python 2 code to support those changes. When Python 2 support is dropped this module can be removed and imports can be updated. "...
<commit_before>""" Python 2 Compatibility Layer This module exists to work around compatibility issues between Python 2 and Python 3. The main code-base will use Python 3 idioms and this module will patch Python 2 code to support those changes. When Python 2 support is dropped this module can be removed and imports ca...
""" Python 2 Compatibility Layer This module exists to work around compatibility issues between Python 2 and Python 3. The main code-base will use Python 3 idioms and this module will patch Python 2 code to support those changes. When Python 2 support is dropped this module can be removed and imports can be updated. "...
""" Python 2 Compatibility Layer This module exists to work around compatibility issues between Python 2 and Python 3. The main code-base will use Python 3 idioms and this module will patch Python 2 code to support those changes. When Python 2 support is dropped this module can be removed and imports can be updated. "...
<commit_before>""" Python 2 Compatibility Layer This module exists to work around compatibility issues between Python 2 and Python 3. The main code-base will use Python 3 idioms and this module will patch Python 2 code to support those changes. When Python 2 support is dropped this module can be removed and imports ca...
84dd763d5d2aec1c4248e42106ef4f68439bc4cd
server/api/serializers/rides.py
server/api/serializers/rides.py
import requests from django.conf import settings from rest_framework import serializers from rest_framework.validators import UniqueTogetherValidator from server.api.serializers.chapters import ChapterSerializer from server.core.models.rides import Ride, RideRiders class RideSerializer(serializers.ModelSerializer): ...
import requests from django.conf import settings from rest_framework import serializers from rest_framework.validators import UniqueTogetherValidator from server.api.serializers.chapters import ChapterSerializer from .riders import RiderSerializer from server.core.models.rides import Ride, RideRiders class RideSerial...
Send through serialised users with each ride api request
Send through serialised users with each ride api request
Python
mit
mwillmott/techbikers,mwillmott/techbikers,mwillmott/techbikers,Techbikers/techbikers,Techbikers/techbikers,Techbikers/techbikers,Techbikers/techbikers,mwillmott/techbikers
import requests from django.conf import settings from rest_framework import serializers from rest_framework.validators import UniqueTogetherValidator from server.api.serializers.chapters import ChapterSerializer from server.core.models.rides import Ride, RideRiders class RideSerializer(serializers.ModelSerializer): ...
import requests from django.conf import settings from rest_framework import serializers from rest_framework.validators import UniqueTogetherValidator from server.api.serializers.chapters import ChapterSerializer from .riders import RiderSerializer from server.core.models.rides import Ride, RideRiders class RideSerial...
<commit_before>import requests from django.conf import settings from rest_framework import serializers from rest_framework.validators import UniqueTogetherValidator from server.api.serializers.chapters import ChapterSerializer from server.core.models.rides import Ride, RideRiders class RideSerializer(serializers.Mode...
import requests from django.conf import settings from rest_framework import serializers from rest_framework.validators import UniqueTogetherValidator from server.api.serializers.chapters import ChapterSerializer from .riders import RiderSerializer from server.core.models.rides import Ride, RideRiders class RideSerial...
import requests from django.conf import settings from rest_framework import serializers from rest_framework.validators import UniqueTogetherValidator from server.api.serializers.chapters import ChapterSerializer from server.core.models.rides import Ride, RideRiders class RideSerializer(serializers.ModelSerializer): ...
<commit_before>import requests from django.conf import settings from rest_framework import serializers from rest_framework.validators import UniqueTogetherValidator from server.api.serializers.chapters import ChapterSerializer from server.core.models.rides import Ride, RideRiders class RideSerializer(serializers.Mode...
823347e9c5bcc93710b7bdc2656f438a0e74c2b8
invocations/_version.py
invocations/_version.py
__version_info__ = (0, 14, 0) __version__ = '.'.join(map(str, __version_info__))
__version_info__ = (0, 14, 1) __version__ = '.'.join(map(str, __version_info__))
Cut 0.14.1 because setup.py bug
Cut 0.14.1 because setup.py bug
Python
bsd-2-clause
pyinvoke/invocations
__version_info__ = (0, 14, 0) __version__ = '.'.join(map(str, __version_info__)) Cut 0.14.1 because setup.py bug
__version_info__ = (0, 14, 1) __version__ = '.'.join(map(str, __version_info__))
<commit_before>__version_info__ = (0, 14, 0) __version__ = '.'.join(map(str, __version_info__)) <commit_msg>Cut 0.14.1 because setup.py bug<commit_after>
__version_info__ = (0, 14, 1) __version__ = '.'.join(map(str, __version_info__))
__version_info__ = (0, 14, 0) __version__ = '.'.join(map(str, __version_info__)) Cut 0.14.1 because setup.py bug__version_info__ = (0, 14, 1) __version__ = '.'.join(map(str, __version_info__))
<commit_before>__version_info__ = (0, 14, 0) __version__ = '.'.join(map(str, __version_info__)) <commit_msg>Cut 0.14.1 because setup.py bug<commit_after>__version_info__ = (0, 14, 1) __version__ = '.'.join(map(str, __version_info__))
12bbc7e10ae52328feb766e2bed5f5f20fa0d354
pyramid_es/__init__.py
pyramid_es/__init__.py
from pyramid.settings import asbool from .client import ElasticClient def client_from_config(settings, prefix='elastic.'): """ Instantiate and configure an Elasticsearch from settings. In typical Pyramid usage, you shouldn't use this directly: instead, just include ``pyramid_es`` and use the :py:fun...
from pyramid.settings import asbool from .client import ElasticClient def client_from_config(settings, prefix='elastic.'): """ Instantiate and configure an Elasticsearch from settings. In typical Pyramid usage, you shouldn't use this directly: instead, just include ``pyramid_es`` and use the :py:fun...
Add a settings key to ensure index at start
Add a settings key to ensure index at start
Python
mit
storborg/pyramid_es
from pyramid.settings import asbool from .client import ElasticClient def client_from_config(settings, prefix='elastic.'): """ Instantiate and configure an Elasticsearch from settings. In typical Pyramid usage, you shouldn't use this directly: instead, just include ``pyramid_es`` and use the :py:fun...
from pyramid.settings import asbool from .client import ElasticClient def client_from_config(settings, prefix='elastic.'): """ Instantiate and configure an Elasticsearch from settings. In typical Pyramid usage, you shouldn't use this directly: instead, just include ``pyramid_es`` and use the :py:fun...
<commit_before>from pyramid.settings import asbool from .client import ElasticClient def client_from_config(settings, prefix='elastic.'): """ Instantiate and configure an Elasticsearch from settings. In typical Pyramid usage, you shouldn't use this directly: instead, just include ``pyramid_es`` and ...
from pyramid.settings import asbool from .client import ElasticClient def client_from_config(settings, prefix='elastic.'): """ Instantiate and configure an Elasticsearch from settings. In typical Pyramid usage, you shouldn't use this directly: instead, just include ``pyramid_es`` and use the :py:fun...
from pyramid.settings import asbool from .client import ElasticClient def client_from_config(settings, prefix='elastic.'): """ Instantiate and configure an Elasticsearch from settings. In typical Pyramid usage, you shouldn't use this directly: instead, just include ``pyramid_es`` and use the :py:fun...
<commit_before>from pyramid.settings import asbool from .client import ElasticClient def client_from_config(settings, prefix='elastic.'): """ Instantiate and configure an Elasticsearch from settings. In typical Pyramid usage, you shouldn't use this directly: instead, just include ``pyramid_es`` and ...
bfecf498c30c08d8ede18fd587e192f0961c334c
invoke/run.py
invoke/run.py
from subprocess import PIPE from .monkey import Popen from .exceptions import Failure class Result(object): def __init__(self, stdout=None, stderr=None, exited=None): self.exited = self.return_code = exited self.stdout = stdout self.stderr = stderr def __nonzero__(self): # Ho...
from subprocess import PIPE from .monkey import Popen from .exceptions import Failure class Result(object): def __init__(self, stdout=None, stderr=None, exited=None): self.exited = self.return_code = exited self.stdout = stdout self.stderr = stderr def __nonzero__(self): # Ho...
Add semi-useful `__str__` for Result
Add semi-useful `__str__` for Result
Python
bsd-2-clause
pyinvoke/invoke,mkusz/invoke,singingwolfboy/invoke,tyewang/invoke,mattrobenolt/invoke,kejbaly2/invoke,sophacles/invoke,pfmoore/invoke,pyinvoke/invoke,mkusz/invoke,pfmoore/invoke,kejbaly2/invoke,alex/invoke,frol/invoke,mattrobenolt/invoke,frol/invoke
from subprocess import PIPE from .monkey import Popen from .exceptions import Failure class Result(object): def __init__(self, stdout=None, stderr=None, exited=None): self.exited = self.return_code = exited self.stdout = stdout self.stderr = stderr def __nonzero__(self): # Ho...
from subprocess import PIPE from .monkey import Popen from .exceptions import Failure class Result(object): def __init__(self, stdout=None, stderr=None, exited=None): self.exited = self.return_code = exited self.stdout = stdout self.stderr = stderr def __nonzero__(self): # Ho...
<commit_before>from subprocess import PIPE from .monkey import Popen from .exceptions import Failure class Result(object): def __init__(self, stdout=None, stderr=None, exited=None): self.exited = self.return_code = exited self.stdout = stdout self.stderr = stderr def __nonzero__(self...
from subprocess import PIPE from .monkey import Popen from .exceptions import Failure class Result(object): def __init__(self, stdout=None, stderr=None, exited=None): self.exited = self.return_code = exited self.stdout = stdout self.stderr = stderr def __nonzero__(self): # Ho...
from subprocess import PIPE from .monkey import Popen from .exceptions import Failure class Result(object): def __init__(self, stdout=None, stderr=None, exited=None): self.exited = self.return_code = exited self.stdout = stdout self.stderr = stderr def __nonzero__(self): # Ho...
<commit_before>from subprocess import PIPE from .monkey import Popen from .exceptions import Failure class Result(object): def __init__(self, stdout=None, stderr=None, exited=None): self.exited = self.return_code = exited self.stdout = stdout self.stderr = stderr def __nonzero__(self...
87d099f8094d5fb2c78729adfc6df9c68f68b450
pythonforandroid/recipes/regex/__init__.py
pythonforandroid/recipes/regex/__init__.py
from pythonforandroid.recipe import CompiledComponentsPythonRecipe class RegexRecipe(CompiledComponentsPythonRecipe): name = 'regex' version = '2017.07.28' url = 'https://pypi.python.org/packages/d1/23/5fa829706ee1d4452552eb32e0bfc1039553e01f50a8754c6f7152e85c1b/regex-{version}.tar.gz' depends = ['se...
from pythonforandroid.recipe import CompiledComponentsPythonRecipe class RegexRecipe(CompiledComponentsPythonRecipe): name = 'regex' version = '2017.07.28' url = 'https://pypi.python.org/packages/d1/23/5fa829706ee1d4452552eb32e0bfc1039553e01f50a8754c6f7152e85c1b/regex-{version}.tar.gz' depends = ['se...
Fix compilation for regex recipe
[recipes] Fix compilation for regex recipe The error was: build/other_builds/hostpython3/desktop/hostpython3/Include/Python.h:39:19: fatal error: crypt.h: No such file or directory
Python
mit
rnixx/python-for-android,kronenpj/python-for-android,kivy/python-for-android,kivy/python-for-android,kivy/python-for-android,kivy/python-for-android,germn/python-for-android,PKRoma/python-for-android,kronenpj/python-for-android,rnixx/python-for-android,germn/python-for-android,germn/python-for-android,rnixx/python-for-...
from pythonforandroid.recipe import CompiledComponentsPythonRecipe class RegexRecipe(CompiledComponentsPythonRecipe): name = 'regex' version = '2017.07.28' url = 'https://pypi.python.org/packages/d1/23/5fa829706ee1d4452552eb32e0bfc1039553e01f50a8754c6f7152e85c1b/regex-{version}.tar.gz' depends = ['se...
from pythonforandroid.recipe import CompiledComponentsPythonRecipe class RegexRecipe(CompiledComponentsPythonRecipe): name = 'regex' version = '2017.07.28' url = 'https://pypi.python.org/packages/d1/23/5fa829706ee1d4452552eb32e0bfc1039553e01f50a8754c6f7152e85c1b/regex-{version}.tar.gz' depends = ['se...
<commit_before>from pythonforandroid.recipe import CompiledComponentsPythonRecipe class RegexRecipe(CompiledComponentsPythonRecipe): name = 'regex' version = '2017.07.28' url = 'https://pypi.python.org/packages/d1/23/5fa829706ee1d4452552eb32e0bfc1039553e01f50a8754c6f7152e85c1b/regex-{version}.tar.gz' ...
from pythonforandroid.recipe import CompiledComponentsPythonRecipe class RegexRecipe(CompiledComponentsPythonRecipe): name = 'regex' version = '2017.07.28' url = 'https://pypi.python.org/packages/d1/23/5fa829706ee1d4452552eb32e0bfc1039553e01f50a8754c6f7152e85c1b/regex-{version}.tar.gz' depends = ['se...
from pythonforandroid.recipe import CompiledComponentsPythonRecipe class RegexRecipe(CompiledComponentsPythonRecipe): name = 'regex' version = '2017.07.28' url = 'https://pypi.python.org/packages/d1/23/5fa829706ee1d4452552eb32e0bfc1039553e01f50a8754c6f7152e85c1b/regex-{version}.tar.gz' depends = ['se...
<commit_before>from pythonforandroid.recipe import CompiledComponentsPythonRecipe class RegexRecipe(CompiledComponentsPythonRecipe): name = 'regex' version = '2017.07.28' url = 'https://pypi.python.org/packages/d1/23/5fa829706ee1d4452552eb32e0bfc1039553e01f50a8754c6f7152e85c1b/regex-{version}.tar.gz' ...
5f5be04adc9e17aa497022ed3b19371075c63d85
relay_api/api/backend.py
relay_api/api/backend.py
import json from relay_api.core.relay import relay from relay_api.conf.config import relays def init_relays(): for r in relays: relays[r]["object"] = relay(relays[r]["gpio"]) relays[r]["state"] = relays[r]["object"].get_state() def get_all_relays(): relays_dict = __get_relay_dict() retur...
import json import copy from relay_api.core.relay import relay from relay_api.conf.config import relays def init_relays(): for r in relays: relays[r]["object"] = relay(relays[r]["gpio"]) relays[r]["state"] = relays[r]["object"].get_state() def get_all_relays(): relays_dict = __get_relay_dict...
Use deppcopy to copy dicts
Use deppcopy to copy dicts
Python
mit
pahumadad/raspi-relay-api
import json from relay_api.core.relay import relay from relay_api.conf.config import relays def init_relays(): for r in relays: relays[r]["object"] = relay(relays[r]["gpio"]) relays[r]["state"] = relays[r]["object"].get_state() def get_all_relays(): relays_dict = __get_relay_dict() retur...
import json import copy from relay_api.core.relay import relay from relay_api.conf.config import relays def init_relays(): for r in relays: relays[r]["object"] = relay(relays[r]["gpio"]) relays[r]["state"] = relays[r]["object"].get_state() def get_all_relays(): relays_dict = __get_relay_dict...
<commit_before>import json from relay_api.core.relay import relay from relay_api.conf.config import relays def init_relays(): for r in relays: relays[r]["object"] = relay(relays[r]["gpio"]) relays[r]["state"] = relays[r]["object"].get_state() def get_all_relays(): relays_dict = __get_relay_d...
import json import copy from relay_api.core.relay import relay from relay_api.conf.config import relays def init_relays(): for r in relays: relays[r]["object"] = relay(relays[r]["gpio"]) relays[r]["state"] = relays[r]["object"].get_state() def get_all_relays(): relays_dict = __get_relay_dict...
import json from relay_api.core.relay import relay from relay_api.conf.config import relays def init_relays(): for r in relays: relays[r]["object"] = relay(relays[r]["gpio"]) relays[r]["state"] = relays[r]["object"].get_state() def get_all_relays(): relays_dict = __get_relay_dict() retur...
<commit_before>import json from relay_api.core.relay import relay from relay_api.conf.config import relays def init_relays(): for r in relays: relays[r]["object"] = relay(relays[r]["gpio"]) relays[r]["state"] = relays[r]["object"].get_state() def get_all_relays(): relays_dict = __get_relay_d...
c100d61f084ea759654baf0e9414f73567577f68
src/robot.py
src/robot.py
from sr import * print "Hello, world!"
import time from sr import * print "Hello, world!" R = Robot() # This is the configuration for Elizabeth. # TODO: make this generic BOARD_RIGHT = R.motors["SR0HL17"] BOARD_LEFT = R.motors["SR0YK1C"] WHEEL_FRONT_LEFT = BOARD_LEFT.m1 # positive is towards the front of the robot WHEEL_FRONT_RIGHT = BOARD_RIGHT.m0 # po...
Implement a basic search-and-grab algorithm
Implement a basic search-and-grab algorithm
Python
mit
prophile/tudor-block-chase
from sr import * print "Hello, world!" Implement a basic search-and-grab algorithm
import time from sr import * print "Hello, world!" R = Robot() # This is the configuration for Elizabeth. # TODO: make this generic BOARD_RIGHT = R.motors["SR0HL17"] BOARD_LEFT = R.motors["SR0YK1C"] WHEEL_FRONT_LEFT = BOARD_LEFT.m1 # positive is towards the front of the robot WHEEL_FRONT_RIGHT = BOARD_RIGHT.m0 # po...
<commit_before>from sr import * print "Hello, world!" <commit_msg>Implement a basic search-and-grab algorithm<commit_after>
import time from sr import * print "Hello, world!" R = Robot() # This is the configuration for Elizabeth. # TODO: make this generic BOARD_RIGHT = R.motors["SR0HL17"] BOARD_LEFT = R.motors["SR0YK1C"] WHEEL_FRONT_LEFT = BOARD_LEFT.m1 # positive is towards the front of the robot WHEEL_FRONT_RIGHT = BOARD_RIGHT.m0 # po...
from sr import * print "Hello, world!" Implement a basic search-and-grab algorithmimport time from sr import * print "Hello, world!" R = Robot() # This is the configuration for Elizabeth. # TODO: make this generic BOARD_RIGHT = R.motors["SR0HL17"] BOARD_LEFT = R.motors["SR0YK1C"] WHEEL_FRONT_LEFT = BOARD_LEFT.m1 ...
<commit_before>from sr import * print "Hello, world!" <commit_msg>Implement a basic search-and-grab algorithm<commit_after>import time from sr import * print "Hello, world!" R = Robot() # This is the configuration for Elizabeth. # TODO: make this generic BOARD_RIGHT = R.motors["SR0HL17"] BOARD_LEFT = R.motors["SR0...
0d4e619a11a084f83ab42d45e528f7b38777fcae
linter.py
linter.py
# # linter.py # Linter for SublimeLinter3, a code checking framework for Sublime Text 3 # # Written by Andrew Grim # Copyright (c) 2014 Andrew Grim # # License: MIT # """This module exports the Puppet plugin class.""" from SublimeLinter.lint import Linter, util class Puppet(Linter): """Provides an interface to...
# # linter.py # Linter for SublimeLinter3, a code checking framework for Sublime Text 3 # # Written by Andrew Grim # Copyright (c) 2014 Andrew Grim # # License: MIT # """This module exports the Puppet plugin class.""" from SublimeLinter.lint import Linter, util class Puppet(Linter): """Provides an interface to...
Remove unnecessary defaults and simplify regexp
Remove unnecessary defaults and simplify regexp
Python
mit
dylanratcliffe/SublimeLinter-puppet,travisgroth/SublimeLinter-puppet,stopdropandrew/SublimeLinter-puppet
# # linter.py # Linter for SublimeLinter3, a code checking framework for Sublime Text 3 # # Written by Andrew Grim # Copyright (c) 2014 Andrew Grim # # License: MIT # """This module exports the Puppet plugin class.""" from SublimeLinter.lint import Linter, util class Puppet(Linter): """Provides an interface to...
# # linter.py # Linter for SublimeLinter3, a code checking framework for Sublime Text 3 # # Written by Andrew Grim # Copyright (c) 2014 Andrew Grim # # License: MIT # """This module exports the Puppet plugin class.""" from SublimeLinter.lint import Linter, util class Puppet(Linter): """Provides an interface to...
<commit_before># # linter.py # Linter for SublimeLinter3, a code checking framework for Sublime Text 3 # # Written by Andrew Grim # Copyright (c) 2014 Andrew Grim # # License: MIT # """This module exports the Puppet plugin class.""" from SublimeLinter.lint import Linter, util class Puppet(Linter): """Provides ...
# # linter.py # Linter for SublimeLinter3, a code checking framework for Sublime Text 3 # # Written by Andrew Grim # Copyright (c) 2014 Andrew Grim # # License: MIT # """This module exports the Puppet plugin class.""" from SublimeLinter.lint import Linter, util class Puppet(Linter): """Provides an interface to...
# # linter.py # Linter for SublimeLinter3, a code checking framework for Sublime Text 3 # # Written by Andrew Grim # Copyright (c) 2014 Andrew Grim # # License: MIT # """This module exports the Puppet plugin class.""" from SublimeLinter.lint import Linter, util class Puppet(Linter): """Provides an interface to...
<commit_before># # linter.py # Linter for SublimeLinter3, a code checking framework for Sublime Text 3 # # Written by Andrew Grim # Copyright (c) 2014 Andrew Grim # # License: MIT # """This module exports the Puppet plugin class.""" from SublimeLinter.lint import Linter, util class Puppet(Linter): """Provides ...
b6b506e8250078664bdefdcf7d9d380e950e3730
linter.py
linter.py
# # linter.py # Linter for SublimeLinter3, a code checking framework for Sublime Text 3 # # Written by Jack Brewer # Copyright (c) 2015 Jack Brewer # # License: MIT """Exports the Stylint plugin class.""" from SublimeLinter.lint import NodeLinter, util class Stylint(NodeLinter): """Provides an interface to sty...
# # linter.py # Linter for SublimeLinter3, a code checking framework for Sublime Text 3 # # Written by Jack Brewer # Copyright (c) 2015 Jack Brewer # # License: MIT """Exports the Stylint plugin class.""" from SublimeLinter.lint import NodeLinter, util class Stylint(NodeLinter): """Provides an interface to sty...
Handle case where rule shows before severity
Handle case where rule shows before severity Thank you @suprMax !
Python
mit
jackbrewer/SublimeLinter-contrib-stylint
# # linter.py # Linter for SublimeLinter3, a code checking framework for Sublime Text 3 # # Written by Jack Brewer # Copyright (c) 2015 Jack Brewer # # License: MIT """Exports the Stylint plugin class.""" from SublimeLinter.lint import NodeLinter, util class Stylint(NodeLinter): """Provides an interface to sty...
# # linter.py # Linter for SublimeLinter3, a code checking framework for Sublime Text 3 # # Written by Jack Brewer # Copyright (c) 2015 Jack Brewer # # License: MIT """Exports the Stylint plugin class.""" from SublimeLinter.lint import NodeLinter, util class Stylint(NodeLinter): """Provides an interface to sty...
<commit_before># # linter.py # Linter for SublimeLinter3, a code checking framework for Sublime Text 3 # # Written by Jack Brewer # Copyright (c) 2015 Jack Brewer # # License: MIT """Exports the Stylint plugin class.""" from SublimeLinter.lint import NodeLinter, util class Stylint(NodeLinter): """Provides an i...
# # linter.py # Linter for SublimeLinter3, a code checking framework for Sublime Text 3 # # Written by Jack Brewer # Copyright (c) 2015 Jack Brewer # # License: MIT """Exports the Stylint plugin class.""" from SublimeLinter.lint import NodeLinter, util class Stylint(NodeLinter): """Provides an interface to sty...
# # linter.py # Linter for SublimeLinter3, a code checking framework for Sublime Text 3 # # Written by Jack Brewer # Copyright (c) 2015 Jack Brewer # # License: MIT """Exports the Stylint plugin class.""" from SublimeLinter.lint import NodeLinter, util class Stylint(NodeLinter): """Provides an interface to sty...
<commit_before># # linter.py # Linter for SublimeLinter3, a code checking framework for Sublime Text 3 # # Written by Jack Brewer # Copyright (c) 2015 Jack Brewer # # License: MIT """Exports the Stylint plugin class.""" from SublimeLinter.lint import NodeLinter, util class Stylint(NodeLinter): """Provides an i...
f7172424977d0166ec4dd7946a360a5a426f4a72
bin/migrate-tips.py
bin/migrate-tips.py
from gratipay.wireup import db, env from gratipay.models.team import AlreadyMigrated db = db(env()) teams = db.all(""" SELECT distinct ON (t.slug) t.*::teams FROM teams t JOIN tips ON t.owner = tips.tippee -- Only fetch teams whose owner have tips. WHERE t.is_approved IS TRUE -- Onl...
from gratipay.wireup import db, env from gratipay.models.team import AlreadyMigrated db = db(env()) teams = db.all(""" SELECT distinct ON (t.slug) t.*::teams FROM teams t JOIN tips ON t.owner = tips.tippee -- Only fetch teams whose owners had tips under Gratipay 1.0 WHERE t.is_approved IS TRUE...
Exclude teams if owner has other teams with migrated tips
Exclude teams if owner has other teams with migrated tips
Python
mit
gratipay/gratipay.com,gratipay/gratipay.com,gratipay/gratipay.com,gratipay/gratipay.com
from gratipay.wireup import db, env from gratipay.models.team import AlreadyMigrated db = db(env()) teams = db.all(""" SELECT distinct ON (t.slug) t.*::teams FROM teams t JOIN tips ON t.owner = tips.tippee -- Only fetch teams whose owner have tips. WHERE t.is_approved IS TRUE -- Onl...
from gratipay.wireup import db, env from gratipay.models.team import AlreadyMigrated db = db(env()) teams = db.all(""" SELECT distinct ON (t.slug) t.*::teams FROM teams t JOIN tips ON t.owner = tips.tippee -- Only fetch teams whose owners had tips under Gratipay 1.0 WHERE t.is_approved IS TRUE...
<commit_before>from gratipay.wireup import db, env from gratipay.models.team import AlreadyMigrated db = db(env()) teams = db.all(""" SELECT distinct ON (t.slug) t.*::teams FROM teams t JOIN tips ON t.owner = tips.tippee -- Only fetch teams whose owner have tips. WHERE t.is_approved IS TRUE ...
from gratipay.wireup import db, env from gratipay.models.team import AlreadyMigrated db = db(env()) teams = db.all(""" SELECT distinct ON (t.slug) t.*::teams FROM teams t JOIN tips ON t.owner = tips.tippee -- Only fetch teams whose owners had tips under Gratipay 1.0 WHERE t.is_approved IS TRUE...
from gratipay.wireup import db, env from gratipay.models.team import AlreadyMigrated db = db(env()) teams = db.all(""" SELECT distinct ON (t.slug) t.*::teams FROM teams t JOIN tips ON t.owner = tips.tippee -- Only fetch teams whose owner have tips. WHERE t.is_approved IS TRUE -- Onl...
<commit_before>from gratipay.wireup import db, env from gratipay.models.team import AlreadyMigrated db = db(env()) teams = db.all(""" SELECT distinct ON (t.slug) t.*::teams FROM teams t JOIN tips ON t.owner = tips.tippee -- Only fetch teams whose owner have tips. WHERE t.is_approved IS TRUE ...
0ce14be170e09530b225f2f7526ad68ee1758095
peering/migrations/0027_auto_20190105_1600.py
peering/migrations/0027_auto_20190105_1600.py
# Generated by Django 2.1.4 on 2019-01-05 15:00 import django.contrib.postgres.fields from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ( "peering", "0026_autonomoussystem_potential_internet_exchange_peering_sessions", ) ...
# Generated by Django 2.1.4 on 2019-01-05 15:00 import django.contrib.postgres.fields from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ( "peering", "0026_autonomoussystem_potential_internet_exchange_peering_sessions", ) ...
Fix issue with migrations introduced lately.
Fix issue with migrations introduced lately.
Python
apache-2.0
respawner/peering-manager,respawner/peering-manager,respawner/peering-manager,respawner/peering-manager
# Generated by Django 2.1.4 on 2019-01-05 15:00 import django.contrib.postgres.fields from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ( "peering", "0026_autonomoussystem_potential_internet_exchange_peering_sessions", ) ...
# Generated by Django 2.1.4 on 2019-01-05 15:00 import django.contrib.postgres.fields from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ( "peering", "0026_autonomoussystem_potential_internet_exchange_peering_sessions", ) ...
<commit_before># Generated by Django 2.1.4 on 2019-01-05 15:00 import django.contrib.postgres.fields from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ( "peering", "0026_autonomoussystem_potential_internet_exchange_peering_sessions",...
# Generated by Django 2.1.4 on 2019-01-05 15:00 import django.contrib.postgres.fields from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ( "peering", "0026_autonomoussystem_potential_internet_exchange_peering_sessions", ) ...
# Generated by Django 2.1.4 on 2019-01-05 15:00 import django.contrib.postgres.fields from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ( "peering", "0026_autonomoussystem_potential_internet_exchange_peering_sessions", ) ...
<commit_before># Generated by Django 2.1.4 on 2019-01-05 15:00 import django.contrib.postgres.fields from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ( "peering", "0026_autonomoussystem_potential_internet_exchange_peering_sessions",...
e8b8c257c71b6c02fa691557618261e6832fba94
faker/providers/ssn/uk_UA/__init__.py
faker/providers/ssn/uk_UA/__init__.py
# coding=utf-8 from __future__ import unicode_literals from .. import Provider as SsnProvider # Note: as there no SSN in Ukraine # we get value added tax identification number (VATIN) here. # It is also called "Ідентифікаційний номер платника податків" (in ukrainian). # It contains only digits and length if 12. cla...
# coding=utf-8 from __future__ import unicode_literals from datetime import date from .. import Provider as SsnProvider from faker.providers.date_time import Provider as DateTimeProvider class Provider(SsnProvider): @classmethod def ssn(cls): """ Ukrainian "Реєстраційний номер облікової карт...
Make the Ukrainian SSN provider realer
Make the Ukrainian SSN provider realer
Python
mit
joke2k/faker,danhuss/faker,trtd/faker,joke2k/faker
# coding=utf-8 from __future__ import unicode_literals from .. import Provider as SsnProvider # Note: as there no SSN in Ukraine # we get value added tax identification number (VATIN) here. # It is also called "Ідентифікаційний номер платника податків" (in ukrainian). # It contains only digits and length if 12. cla...
# coding=utf-8 from __future__ import unicode_literals from datetime import date from .. import Provider as SsnProvider from faker.providers.date_time import Provider as DateTimeProvider class Provider(SsnProvider): @classmethod def ssn(cls): """ Ukrainian "Реєстраційний номер облікової карт...
<commit_before># coding=utf-8 from __future__ import unicode_literals from .. import Provider as SsnProvider # Note: as there no SSN in Ukraine # we get value added tax identification number (VATIN) here. # It is also called "Ідентифікаційний номер платника податків" (in ukrainian). # It contains only digits and leng...
# coding=utf-8 from __future__ import unicode_literals from datetime import date from .. import Provider as SsnProvider from faker.providers.date_time import Provider as DateTimeProvider class Provider(SsnProvider): @classmethod def ssn(cls): """ Ukrainian "Реєстраційний номер облікової карт...
# coding=utf-8 from __future__ import unicode_literals from .. import Provider as SsnProvider # Note: as there no SSN in Ukraine # we get value added tax identification number (VATIN) here. # It is also called "Ідентифікаційний номер платника податків" (in ukrainian). # It contains only digits and length if 12. cla...
<commit_before># coding=utf-8 from __future__ import unicode_literals from .. import Provider as SsnProvider # Note: as there no SSN in Ukraine # we get value added tax identification number (VATIN) here. # It is also called "Ідентифікаційний номер платника податків" (in ukrainian). # It contains only digits and leng...
b698f6925b4629d7473fbe42806f54068d98428a
tests/component/test_component_identidock.py
tests/component/test_component_identidock.py
import sys print(sys.path)
import pytest import requests from time import sleep COMPONENT_INDEX_URL = "http://identidock:5000" COMPONENT_MONSTER_BASE_URL = COMPONENT_INDEX_URL + '/monster' def test_get_mainpage(): print('component tester sleeping for 1 sec to let the identidock app to be ready adn also start its server') sleep(1) page =...
Add component test functions using pytest
Add component test functions using pytest
Python
mit
anirbanroydas/ci-testing-python,anirbanroydas/ci-testing-python,anirbanroydas/ci-testing-python
import sys print(sys.path) Add component test functions using pytest
import pytest import requests from time import sleep COMPONENT_INDEX_URL = "http://identidock:5000" COMPONENT_MONSTER_BASE_URL = COMPONENT_INDEX_URL + '/monster' def test_get_mainpage(): print('component tester sleeping for 1 sec to let the identidock app to be ready adn also start its server') sleep(1) page =...
<commit_before>import sys print(sys.path) <commit_msg>Add component test functions using pytest<commit_after>
import pytest import requests from time import sleep COMPONENT_INDEX_URL = "http://identidock:5000" COMPONENT_MONSTER_BASE_URL = COMPONENT_INDEX_URL + '/monster' def test_get_mainpage(): print('component tester sleeping for 1 sec to let the identidock app to be ready adn also start its server') sleep(1) page =...
import sys print(sys.path) Add component test functions using pytestimport pytest import requests from time import sleep COMPONENT_INDEX_URL = "http://identidock:5000" COMPONENT_MONSTER_BASE_URL = COMPONENT_INDEX_URL + '/monster' def test_get_mainpage(): print('component tester sleeping for 1 sec to let the ide...
<commit_before>import sys print(sys.path) <commit_msg>Add component test functions using pytest<commit_after>import pytest import requests from time import sleep COMPONENT_INDEX_URL = "http://identidock:5000" COMPONENT_MONSTER_BASE_URL = COMPONENT_INDEX_URL + '/monster' def test_get_mainpage(): print('component...
024ea3b2e9e373abdcd78e44a163a2c32345073f
unittests.py
unittests.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import unittest import const import uniformdh import obfsproxy.network.buffer as obfs_buf class UniformDHTest( unittest.TestCase ): def setUp( self ): weAreServer = True self.udh = uniformdh.new("A" * const.SHARED_SECRET_LENGTH, weAreServer) de...
#!/usr/bin/env python # -*- coding: utf-8 -*- import unittest import const import uniformdh import obfsproxy.network.buffer as obfs_buf class UniformDHTest( unittest.TestCase ): def setUp( self ): weAreServer = True self.udh = uniformdh.new("A" * const.SHARED_SECRET_LENGTH, weAreServer) de...
Extend UniformDH test to also verify the length of the shared master secret.
Extend UniformDH test to also verify the length of the shared master secret.
Python
bsd-3-clause
isislovecruft/scramblesuit,isislovecruft/scramblesuit
#!/usr/bin/env python # -*- coding: utf-8 -*- import unittest import const import uniformdh import obfsproxy.network.buffer as obfs_buf class UniformDHTest( unittest.TestCase ): def setUp( self ): weAreServer = True self.udh = uniformdh.new("A" * const.SHARED_SECRET_LENGTH, weAreServer) de...
#!/usr/bin/env python # -*- coding: utf-8 -*- import unittest import const import uniformdh import obfsproxy.network.buffer as obfs_buf class UniformDHTest( unittest.TestCase ): def setUp( self ): weAreServer = True self.udh = uniformdh.new("A" * const.SHARED_SECRET_LENGTH, weAreServer) de...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- import unittest import const import uniformdh import obfsproxy.network.buffer as obfs_buf class UniformDHTest( unittest.TestCase ): def setUp( self ): weAreServer = True self.udh = uniformdh.new("A" * const.SHARED_SECRET_LENGTH, weAre...
#!/usr/bin/env python # -*- coding: utf-8 -*- import unittest import const import uniformdh import obfsproxy.network.buffer as obfs_buf class UniformDHTest( unittest.TestCase ): def setUp( self ): weAreServer = True self.udh = uniformdh.new("A" * const.SHARED_SECRET_LENGTH, weAreServer) de...
#!/usr/bin/env python # -*- coding: utf-8 -*- import unittest import const import uniformdh import obfsproxy.network.buffer as obfs_buf class UniformDHTest( unittest.TestCase ): def setUp( self ): weAreServer = True self.udh = uniformdh.new("A" * const.SHARED_SECRET_LENGTH, weAreServer) de...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- import unittest import const import uniformdh import obfsproxy.network.buffer as obfs_buf class UniformDHTest( unittest.TestCase ): def setUp( self ): weAreServer = True self.udh = uniformdh.new("A" * const.SHARED_SECRET_LENGTH, weAre...
8a9c4585d633e5c7858071fe1420850f930c7614
manage.py
manage.py
from flask_script import Manager from flask_skeleton_api.main import app import subprocess import os manager = Manager(app) @manager.command def unittest(report=False): """Run unit tests""" if report: subprocess.call(["py.test", "--junitxml=test-output/unit-test-output.xml", ...
from flask_script import Manager from flask_skeleton_api.main import app import subprocess import os # Using Alembic? # See what extra lines are needed here: # http://192.168.249.38/gadgets/gadget-api/blob/master/manage.py manager = Manager(app) @manager.command def unittest(report=False): """Run unit tests""" ...
Add link to gadget for Alembic code
Add link to gadget for Alembic code
Python
mit
matthew-shaw/thing-api
from flask_script import Manager from flask_skeleton_api.main import app import subprocess import os manager = Manager(app) @manager.command def unittest(report=False): """Run unit tests""" if report: subprocess.call(["py.test", "--junitxml=test-output/unit-test-output.xml", ...
from flask_script import Manager from flask_skeleton_api.main import app import subprocess import os # Using Alembic? # See what extra lines are needed here: # http://192.168.249.38/gadgets/gadget-api/blob/master/manage.py manager = Manager(app) @manager.command def unittest(report=False): """Run unit tests""" ...
<commit_before>from flask_script import Manager from flask_skeleton_api.main import app import subprocess import os manager = Manager(app) @manager.command def unittest(report=False): """Run unit tests""" if report: subprocess.call(["py.test", "--junitxml=test-output/unit-test-output.xml", ...
from flask_script import Manager from flask_skeleton_api.main import app import subprocess import os # Using Alembic? # See what extra lines are needed here: # http://192.168.249.38/gadgets/gadget-api/blob/master/manage.py manager = Manager(app) @manager.command def unittest(report=False): """Run unit tests""" ...
from flask_script import Manager from flask_skeleton_api.main import app import subprocess import os manager = Manager(app) @manager.command def unittest(report=False): """Run unit tests""" if report: subprocess.call(["py.test", "--junitxml=test-output/unit-test-output.xml", ...
<commit_before>from flask_script import Manager from flask_skeleton_api.main import app import subprocess import os manager = Manager(app) @manager.command def unittest(report=False): """Run unit tests""" if report: subprocess.call(["py.test", "--junitxml=test-output/unit-test-output.xml", ...
61450328583cfb8e5ceee94a03502cef54bb11d6
learning_journal/tests/test_models.py
learning_journal/tests/test_models.py
# -*- coding: utf-8 -*- from learning_journal.models import Entry, DBSession def test_create_entry(dbtransaction): """Assert entry was entered into database.""" new_entry = Entry(title="Entry1", text="Hey, this works. Awesome.") assert new_entry.id is None DBSession.flush assert new_entry.id is n...
# -*- coding: utf-8 -*- from learning_journal.models import Entry, DBSession def test_create_entry(dbtransaction): """Assert entry was entered into database.""" new_entry = Entry(title="Entry1", text="Hey, this works. Awesome.") assert new_entry.id is None DBSession.add(new_entry) DBSession.flush...
Modify test file, still doesn't work. Messed around in pshell.
Modify test file, still doesn't work. Messed around in pshell.
Python
mit
DZwell/learning_journal,DZwell/learning_journal,DZwell/learning_journal
# -*- coding: utf-8 -*- from learning_journal.models import Entry, DBSession def test_create_entry(dbtransaction): """Assert entry was entered into database.""" new_entry = Entry(title="Entry1", text="Hey, this works. Awesome.") assert new_entry.id is None DBSession.flush assert new_entry.id is n...
# -*- coding: utf-8 -*- from learning_journal.models import Entry, DBSession def test_create_entry(dbtransaction): """Assert entry was entered into database.""" new_entry = Entry(title="Entry1", text="Hey, this works. Awesome.") assert new_entry.id is None DBSession.add(new_entry) DBSession.flush...
<commit_before># -*- coding: utf-8 -*- from learning_journal.models import Entry, DBSession def test_create_entry(dbtransaction): """Assert entry was entered into database.""" new_entry = Entry(title="Entry1", text="Hey, this works. Awesome.") assert new_entry.id is None DBSession.flush assert ne...
# -*- coding: utf-8 -*- from learning_journal.models import Entry, DBSession def test_create_entry(dbtransaction): """Assert entry was entered into database.""" new_entry = Entry(title="Entry1", text="Hey, this works. Awesome.") assert new_entry.id is None DBSession.add(new_entry) DBSession.flush...
# -*- coding: utf-8 -*- from learning_journal.models import Entry, DBSession def test_create_entry(dbtransaction): """Assert entry was entered into database.""" new_entry = Entry(title="Entry1", text="Hey, this works. Awesome.") assert new_entry.id is None DBSession.flush assert new_entry.id is n...
<commit_before># -*- coding: utf-8 -*- from learning_journal.models import Entry, DBSession def test_create_entry(dbtransaction): """Assert entry was entered into database.""" new_entry = Entry(title="Entry1", text="Hey, this works. Awesome.") assert new_entry.id is None DBSession.flush assert ne...
e45f394c61620db13bae579a29043dfdd6ae2d0f
SLA_bot/alertfeed.py
SLA_bot/alertfeed.py
import asyncio import json import aiohttp import SLA_bot.config as cf class AlertFeed: source_url = 'http://pso2emq.flyergo.eu/api/v2/' async def download(url): try: async with aiohttp.get(url) as response: return await response.json() except json.decoder.JSONDeco...
import asyncio import json import aiohttp import SLA_bot.config as cf class AlertFeed: source_url = 'http://pso2emq.flyergo.eu/api/v2/' async def download(url): try: async with aiohttp.get(url) as response: return await response.json() except json.decoder.JSONDeco...
Remove text coloring in AlertFeed if it seems like scheduled text
Remove text coloring in AlertFeed if it seems like scheduled text
Python
mit
EsqWiggles/SLA-bot,EsqWiggles/SLA-bot
import asyncio import json import aiohttp import SLA_bot.config as cf class AlertFeed: source_url = 'http://pso2emq.flyergo.eu/api/v2/' async def download(url): try: async with aiohttp.get(url) as response: return await response.json() except json.decoder.JSONDeco...
import asyncio import json import aiohttp import SLA_bot.config as cf class AlertFeed: source_url = 'http://pso2emq.flyergo.eu/api/v2/' async def download(url): try: async with aiohttp.get(url) as response: return await response.json() except json.decoder.JSONDeco...
<commit_before>import asyncio import json import aiohttp import SLA_bot.config as cf class AlertFeed: source_url = 'http://pso2emq.flyergo.eu/api/v2/' async def download(url): try: async with aiohttp.get(url) as response: return await response.json() except json.d...
import asyncio import json import aiohttp import SLA_bot.config as cf class AlertFeed: source_url = 'http://pso2emq.flyergo.eu/api/v2/' async def download(url): try: async with aiohttp.get(url) as response: return await response.json() except json.decoder.JSONDeco...
import asyncio import json import aiohttp import SLA_bot.config as cf class AlertFeed: source_url = 'http://pso2emq.flyergo.eu/api/v2/' async def download(url): try: async with aiohttp.get(url) as response: return await response.json() except json.decoder.JSONDeco...
<commit_before>import asyncio import json import aiohttp import SLA_bot.config as cf class AlertFeed: source_url = 'http://pso2emq.flyergo.eu/api/v2/' async def download(url): try: async with aiohttp.get(url) as response: return await response.json() except json.d...