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
8a3249a0c5fa3a82e7730aab973822b34bdc1a4a
setup.py
setup.py
import os from setuptools import setup def long_description(): os.system('pandoc --from=markdown --to=rst --output=README.rst README.md') readme_fn = os.path.join(os.path.dirname(__file__), 'README.rst') if os.path.exists(readme_fn): with open(readme_fn) as f: return f.read() else: return 'not a...
import os from setuptools import setup def long_description(): os.system('pandoc --from=markdown --to=rst --output=README.rst README.md') readme_fn = os.path.join(os.path.dirname(__file__), 'README.rst') if os.path.exists(readme_fn): with open(readme_fn) as f: return f.read() else: return 'not a...
Add bottle as a requirement for this package.
Add bottle as a requirement for this package.
Python
lgpl-2.1
keredson/boddle
import os from setuptools import setup def long_description(): os.system('pandoc --from=markdown --to=rst --output=README.rst README.md') readme_fn = os.path.join(os.path.dirname(__file__), 'README.rst') if os.path.exists(readme_fn): with open(readme_fn) as f: return f.read() else: return 'not a...
import os from setuptools import setup def long_description(): os.system('pandoc --from=markdown --to=rst --output=README.rst README.md') readme_fn = os.path.join(os.path.dirname(__file__), 'README.rst') if os.path.exists(readme_fn): with open(readme_fn) as f: return f.read() else: return 'not a...
<commit_before>import os from setuptools import setup def long_description(): os.system('pandoc --from=markdown --to=rst --output=README.rst README.md') readme_fn = os.path.join(os.path.dirname(__file__), 'README.rst') if os.path.exists(readme_fn): with open(readme_fn) as f: return f.read() else: ...
import os from setuptools import setup def long_description(): os.system('pandoc --from=markdown --to=rst --output=README.rst README.md') readme_fn = os.path.join(os.path.dirname(__file__), 'README.rst') if os.path.exists(readme_fn): with open(readme_fn) as f: return f.read() else: return 'not a...
import os from setuptools import setup def long_description(): os.system('pandoc --from=markdown --to=rst --output=README.rst README.md') readme_fn = os.path.join(os.path.dirname(__file__), 'README.rst') if os.path.exists(readme_fn): with open(readme_fn) as f: return f.read() else: return 'not a...
<commit_before>import os from setuptools import setup def long_description(): os.system('pandoc --from=markdown --to=rst --output=README.rst README.md') readme_fn = os.path.join(os.path.dirname(__file__), 'README.rst') if os.path.exists(readme_fn): with open(readme_fn) as f: return f.read() else: ...
27482ee5b6728160ff167ccb70b3dcdf86b99a55
setup.py
setup.py
from setuptools import setup, find_packages import sys import mbtoolbox with open('mbtoolbox/__init__.py') as f: for line in f: if line.find("__version__") >= 0: version = line.split("=")[1].strip() version = version.strip('"') version = version.strip("'") c...
from setuptools import setup, find_packages import sys import mbtoolbox with open('mbtoolbox/__init__.py') as f: for line in f: if line.find("__version__") >= 0: version = line.split("=")[1].strip() version = version.strip('"') version = version.strip("'") c...
Revert "Update mbutil to 0.2.0"
Revert "Update mbutil to 0.2.0" This reverts commit c3834af13fb14d0961e7e8ce29c3bbbe91ebb5ce.
Python
mit
lukasmartinelli/mbtoolbox
from setuptools import setup, find_packages import sys import mbtoolbox with open('mbtoolbox/__init__.py') as f: for line in f: if line.find("__version__") >= 0: version = line.split("=")[1].strip() version = version.strip('"') version = version.strip("'") c...
from setuptools import setup, find_packages import sys import mbtoolbox with open('mbtoolbox/__init__.py') as f: for line in f: if line.find("__version__") >= 0: version = line.split("=")[1].strip() version = version.strip('"') version = version.strip("'") c...
<commit_before>from setuptools import setup, find_packages import sys import mbtoolbox with open('mbtoolbox/__init__.py') as f: for line in f: if line.find("__version__") >= 0: version = line.split("=")[1].strip() version = version.strip('"') version = version.strip("'"...
from setuptools import setup, find_packages import sys import mbtoolbox with open('mbtoolbox/__init__.py') as f: for line in f: if line.find("__version__") >= 0: version = line.split("=")[1].strip() version = version.strip('"') version = version.strip("'") c...
from setuptools import setup, find_packages import sys import mbtoolbox with open('mbtoolbox/__init__.py') as f: for line in f: if line.find("__version__") >= 0: version = line.split("=")[1].strip() version = version.strip('"') version = version.strip("'") c...
<commit_before>from setuptools import setup, find_packages import sys import mbtoolbox with open('mbtoolbox/__init__.py') as f: for line in f: if line.find("__version__") >= 0: version = line.split("=")[1].strip() version = version.strip('"') version = version.strip("'"...
d1a79a8008f0944b95f4c8d44c737639abaf6559
setup.py
setup.py
from setuptools import setup setup(name='nexmo', version='1.0.3', description='Python client for the Nexmo API', long_description='Python client for the Nexmo API', url='http://github.com/nexmo/python-nexmo', author='Tim Craft', author_email='mail@timcraft.com', license='MIT', packages=['nexmo'], pl...
from setuptools import setup setup(name='nexmo', version='1.0.3', description='Python client for the Nexmo API', long_description='Python client for the Nexmo API', url='http://github.com/Nexmo/nexmo-python', author='Tim Craft', author_email='mail@timcraft.com', license='MIT', packages=['nexmo'], pl...
Update package url to github.com/Nexmo/nexmo-python
Update package url to github.com/Nexmo/nexmo-python
Python
mit
Nexmo/nexmo-python
from setuptools import setup setup(name='nexmo', version='1.0.3', description='Python client for the Nexmo API', long_description='Python client for the Nexmo API', url='http://github.com/nexmo/python-nexmo', author='Tim Craft', author_email='mail@timcraft.com', license='MIT', packages=['nexmo'], pl...
from setuptools import setup setup(name='nexmo', version='1.0.3', description='Python client for the Nexmo API', long_description='Python client for the Nexmo API', url='http://github.com/Nexmo/nexmo-python', author='Tim Craft', author_email='mail@timcraft.com', license='MIT', packages=['nexmo'], pl...
<commit_before>from setuptools import setup setup(name='nexmo', version='1.0.3', description='Python client for the Nexmo API', long_description='Python client for the Nexmo API', url='http://github.com/nexmo/python-nexmo', author='Tim Craft', author_email='mail@timcraft.com', license='MIT', packages=...
from setuptools import setup setup(name='nexmo', version='1.0.3', description='Python client for the Nexmo API', long_description='Python client for the Nexmo API', url='http://github.com/Nexmo/nexmo-python', author='Tim Craft', author_email='mail@timcraft.com', license='MIT', packages=['nexmo'], pl...
from setuptools import setup setup(name='nexmo', version='1.0.3', description='Python client for the Nexmo API', long_description='Python client for the Nexmo API', url='http://github.com/nexmo/python-nexmo', author='Tim Craft', author_email='mail@timcraft.com', license='MIT', packages=['nexmo'], pl...
<commit_before>from setuptools import setup setup(name='nexmo', version='1.0.3', description='Python client for the Nexmo API', long_description='Python client for the Nexmo API', url='http://github.com/nexmo/python-nexmo', author='Tim Craft', author_email='mail@timcraft.com', license='MIT', packages=...
45bb129760da600879d1d75baeb17100a8824426
setup.py
setup.py
#! /usr/bin/env python from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages setup(name='permamodel', version='0.1.0', author='Elchin Jafarov and Scott Stewart', author_email='james.stewart@colorado.edu', description='Permamodel', long_descripti...
#! /usr/bin/env python from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages setup(name='permamodel', version='0.1.0', author='Elchin Jafarov and Scott Stewart', author_email='james.stewart@colorado.edu', description='Permamodel', long_descripti...
Include new data directory as package data
Include new data directory as package data
Python
mit
permamodel/permamodel,permamodel/permamodel
#! /usr/bin/env python from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages setup(name='permamodel', version='0.1.0', author='Elchin Jafarov and Scott Stewart', author_email='james.stewart@colorado.edu', description='Permamodel', long_descripti...
#! /usr/bin/env python from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages setup(name='permamodel', version='0.1.0', author='Elchin Jafarov and Scott Stewart', author_email='james.stewart@colorado.edu', description='Permamodel', long_descripti...
<commit_before>#! /usr/bin/env python from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages setup(name='permamodel', version='0.1.0', author='Elchin Jafarov and Scott Stewart', author_email='james.stewart@colorado.edu', description='Permamodel', ...
#! /usr/bin/env python from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages setup(name='permamodel', version='0.1.0', author='Elchin Jafarov and Scott Stewart', author_email='james.stewart@colorado.edu', description='Permamodel', long_descripti...
#! /usr/bin/env python from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages setup(name='permamodel', version='0.1.0', author='Elchin Jafarov and Scott Stewart', author_email='james.stewart@colorado.edu', description='Permamodel', long_descripti...
<commit_before>#! /usr/bin/env python from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages setup(name='permamodel', version='0.1.0', author='Elchin Jafarov and Scott Stewart', author_email='james.stewart@colorado.edu', description='Permamodel', ...
26e3ff35c56f96adf986e0d71de05248e94a01ed
setup.py
setup.py
from setuptools import setup setup(name='protofuzz', version='0.1', description='Google protobuf message generator', url='http://github.com/trailofbits/protofuzz', author='Yan Ivnitskiy', author_email='yan@trailofbits.com', license='MIT', packages=['protofuzz'], install_...
from setuptools import setup setup(name='protofuzz', version='0.1', description='Google protobuf message generator', url='http://github.com/trailofbits/protofuzz', author='Yan Ivnitskiy', author_email='yan@trailofbits.com', license='MIT', packages=['protofuzz'], install_...
Move from py3-protobufers to official version
Move from py3-protobufers to official version The offical version of protobuf supports python 3 as of version 2.6, whats more it supports version 3.5 which the py3-protobuffers version doesn't seem to (see Issue #4). The py3-protobuffers module is also no longer maintained so switching away is sensible.
Python
mit
trailofbits/protofuzz
from setuptools import setup setup(name='protofuzz', version='0.1', description='Google protobuf message generator', url='http://github.com/trailofbits/protofuzz', author='Yan Ivnitskiy', author_email='yan@trailofbits.com', license='MIT', packages=['protofuzz'], install_...
from setuptools import setup setup(name='protofuzz', version='0.1', description='Google protobuf message generator', url='http://github.com/trailofbits/protofuzz', author='Yan Ivnitskiy', author_email='yan@trailofbits.com', license='MIT', packages=['protofuzz'], install_...
<commit_before>from setuptools import setup setup(name='protofuzz', version='0.1', description='Google protobuf message generator', url='http://github.com/trailofbits/protofuzz', author='Yan Ivnitskiy', author_email='yan@trailofbits.com', license='MIT', packages=['protofuzz'],...
from setuptools import setup setup(name='protofuzz', version='0.1', description='Google protobuf message generator', url='http://github.com/trailofbits/protofuzz', author='Yan Ivnitskiy', author_email='yan@trailofbits.com', license='MIT', packages=['protofuzz'], install_...
from setuptools import setup setup(name='protofuzz', version='0.1', description='Google protobuf message generator', url='http://github.com/trailofbits/protofuzz', author='Yan Ivnitskiy', author_email='yan@trailofbits.com', license='MIT', packages=['protofuzz'], install_...
<commit_before>from setuptools import setup setup(name='protofuzz', version='0.1', description='Google protobuf message generator', url='http://github.com/trailofbits/protofuzz', author='Yan Ivnitskiy', author_email='yan@trailofbits.com', license='MIT', packages=['protofuzz'],...
9437c82748b4154ccbb336f9fd115a2f70e22c20
setup.py
setup.py
from setuptools import setup setup( name='bambou', version='0.0.1', url='http://www.nuagenetworks.net/', author='Christophe Serafin', author_email='christophe.serafin@alcatel-lucent.com', packages=['bambou', 'bambou.utils'], description='REST Library for Nuage Networks', long_descripti...
from setuptools import setup setup( name='bambou', version='0.0.2', url='http://www.nuagenetworks.net/', author='Christophe Serafin', author_email='christophe.serafin@alcatel-lucent.com', packages=['bambou', 'bambou.utils'], description='REST Library for Nuage Networks', long_descripti...
Set Bambou package version to 0.0.2
Set Bambou package version to 0.0.2
Python
bsd-3-clause
nuagenetworks/bambou
from setuptools import setup setup( name='bambou', version='0.0.1', url='http://www.nuagenetworks.net/', author='Christophe Serafin', author_email='christophe.serafin@alcatel-lucent.com', packages=['bambou', 'bambou.utils'], description='REST Library for Nuage Networks', long_descripti...
from setuptools import setup setup( name='bambou', version='0.0.2', url='http://www.nuagenetworks.net/', author='Christophe Serafin', author_email='christophe.serafin@alcatel-lucent.com', packages=['bambou', 'bambou.utils'], description='REST Library for Nuage Networks', long_descripti...
<commit_before>from setuptools import setup setup( name='bambou', version='0.0.1', url='http://www.nuagenetworks.net/', author='Christophe Serafin', author_email='christophe.serafin@alcatel-lucent.com', packages=['bambou', 'bambou.utils'], description='REST Library for Nuage Networks', ...
from setuptools import setup setup( name='bambou', version='0.0.2', url='http://www.nuagenetworks.net/', author='Christophe Serafin', author_email='christophe.serafin@alcatel-lucent.com', packages=['bambou', 'bambou.utils'], description='REST Library for Nuage Networks', long_descripti...
from setuptools import setup setup( name='bambou', version='0.0.1', url='http://www.nuagenetworks.net/', author='Christophe Serafin', author_email='christophe.serafin@alcatel-lucent.com', packages=['bambou', 'bambou.utils'], description='REST Library for Nuage Networks', long_descripti...
<commit_before>from setuptools import setup setup( name='bambou', version='0.0.1', url='http://www.nuagenetworks.net/', author='Christophe Serafin', author_email='christophe.serafin@alcatel-lucent.com', packages=['bambou', 'bambou.utils'], description='REST Library for Nuage Networks', ...
2c71d9589947e1e1f3e75e907b1c28beccc7b268
setup.py
setup.py
from setuptools import setup, find_packages setup( name='rq-retry-scheduler', version='0.1.0b1', url='https://github.com/mikemill/rq_retry_scheduler', description='RQ Retry and Scheduler', long_description=open('README.rst').read(), author='Michael Miller', author_email='mikemill@gmail.com...
from setuptools import setup, find_packages try: import pypandoc def long_description(): return pypandoc.convert_file('README.md', 'rst') except ImportError: def long_description(): return '' setup( name='rq-retry-scheduler', version='0.1.0b1', url='https://github.com/mikemi...
Use pypandoc to convert README.md to RST for long_description
Use pypandoc to convert README.md to RST for long_description
Python
mit
mikemill/rq_retry_scheduler
from setuptools import setup, find_packages setup( name='rq-retry-scheduler', version='0.1.0b1', url='https://github.com/mikemill/rq_retry_scheduler', description='RQ Retry and Scheduler', long_description=open('README.rst').read(), author='Michael Miller', author_email='mikemill@gmail.com...
from setuptools import setup, find_packages try: import pypandoc def long_description(): return pypandoc.convert_file('README.md', 'rst') except ImportError: def long_description(): return '' setup( name='rq-retry-scheduler', version='0.1.0b1', url='https://github.com/mikemi...
<commit_before>from setuptools import setup, find_packages setup( name='rq-retry-scheduler', version='0.1.0b1', url='https://github.com/mikemill/rq_retry_scheduler', description='RQ Retry and Scheduler', long_description=open('README.rst').read(), author='Michael Miller', author_email='mik...
from setuptools import setup, find_packages try: import pypandoc def long_description(): return pypandoc.convert_file('README.md', 'rst') except ImportError: def long_description(): return '' setup( name='rq-retry-scheduler', version='0.1.0b1', url='https://github.com/mikemi...
from setuptools import setup, find_packages setup( name='rq-retry-scheduler', version='0.1.0b1', url='https://github.com/mikemill/rq_retry_scheduler', description='RQ Retry and Scheduler', long_description=open('README.rst').read(), author='Michael Miller', author_email='mikemill@gmail.com...
<commit_before>from setuptools import setup, find_packages setup( name='rq-retry-scheduler', version='0.1.0b1', url='https://github.com/mikemill/rq_retry_scheduler', description='RQ Retry and Scheduler', long_description=open('README.rst').read(), author='Michael Miller', author_email='mik...
dadc4766e047d83c65915cb2d1f2fb43ec2ed12e
setup.py
setup.py
from setuptools import setup, find_packages from plotbitrate import __version__ with open("README.md", "r") as fh: long_description = fh.read() setup( name='rezun-plotbitrate', version=__version__, packages=find_packages(), description='A simple bitrate plotter for media files', long_descr...
from setuptools import setup, find_packages from plotbitrate import __version__ with open("README.md", "r") as fh: long_description = fh.read() setup( name='plotbitrate', version=__version__, packages=find_packages(), description='A simple bitrate plotter for media files', long_description...
Rename pypi package and change author
Rename pypi package and change author
Python
bsd-2-clause
zeroepoch/plotbitrate
from setuptools import setup, find_packages from plotbitrate import __version__ with open("README.md", "r") as fh: long_description = fh.read() setup( name='rezun-plotbitrate', version=__version__, packages=find_packages(), description='A simple bitrate plotter for media files', long_descr...
from setuptools import setup, find_packages from plotbitrate import __version__ with open("README.md", "r") as fh: long_description = fh.read() setup( name='plotbitrate', version=__version__, packages=find_packages(), description='A simple bitrate plotter for media files', long_description...
<commit_before>from setuptools import setup, find_packages from plotbitrate import __version__ with open("README.md", "r") as fh: long_description = fh.read() setup( name='rezun-plotbitrate', version=__version__, packages=find_packages(), description='A simple bitrate plotter for media files',...
from setuptools import setup, find_packages from plotbitrate import __version__ with open("README.md", "r") as fh: long_description = fh.read() setup( name='plotbitrate', version=__version__, packages=find_packages(), description='A simple bitrate plotter for media files', long_description...
from setuptools import setup, find_packages from plotbitrate import __version__ with open("README.md", "r") as fh: long_description = fh.read() setup( name='rezun-plotbitrate', version=__version__, packages=find_packages(), description='A simple bitrate plotter for media files', long_descr...
<commit_before>from setuptools import setup, find_packages from plotbitrate import __version__ with open("README.md", "r") as fh: long_description = fh.read() setup( name='rezun-plotbitrate', version=__version__, packages=find_packages(), description='A simple bitrate plotter for media files',...
6df9998f67056ca751d624379565d8e793e93f1f
setup.py
setup.py
import re from setuptools import setup init_contents = open('random_object_id/__init__.py').read() version = re.search('"([0-9\.]+)"', init_contents).group(1) with open('README.rst', 'rb') as f: long_description = f.read().decode('utf-8') setup( name='random-object-id', packages=['random_object_id'], ...
import re import os from setuptools import setup def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() init_path = 'random_object_id/__init__.py' version = re.search('"([0-9\.]+)"', read(init_path)).group(1) long_description = read('README.rst') setup( name='random-object-id'...
Use helper method to read files
Use helper method to read files
Python
mit
mxr/random-object-id
import re from setuptools import setup init_contents = open('random_object_id/__init__.py').read() version = re.search('"([0-9\.]+)"', init_contents).group(1) with open('README.rst', 'rb') as f: long_description = f.read().decode('utf-8') setup( name='random-object-id', packages=['random_object_id'], ...
import re import os from setuptools import setup def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() init_path = 'random_object_id/__init__.py' version = re.search('"([0-9\.]+)"', read(init_path)).group(1) long_description = read('README.rst') setup( name='random-object-id'...
<commit_before>import re from setuptools import setup init_contents = open('random_object_id/__init__.py').read() version = re.search('"([0-9\.]+)"', init_contents).group(1) with open('README.rst', 'rb') as f: long_description = f.read().decode('utf-8') setup( name='random-object-id', packages=['random_...
import re import os from setuptools import setup def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() init_path = 'random_object_id/__init__.py' version = re.search('"([0-9\.]+)"', read(init_path)).group(1) long_description = read('README.rst') setup( name='random-object-id'...
import re from setuptools import setup init_contents = open('random_object_id/__init__.py').read() version = re.search('"([0-9\.]+)"', init_contents).group(1) with open('README.rst', 'rb') as f: long_description = f.read().decode('utf-8') setup( name='random-object-id', packages=['random_object_id'], ...
<commit_before>import re from setuptools import setup init_contents = open('random_object_id/__init__.py').read() version = re.search('"([0-9\.]+)"', init_contents).group(1) with open('README.rst', 'rb') as f: long_description = f.read().decode('utf-8') setup( name='random-object-id', packages=['random_...
1a647b75916fc11d835813825dc20ce45a368546
setup.py
setup.py
from distutils.core import setup from setuptools import find_packages setup( name='katagawa', version='0.1.0', packages=find_packages(), url='https://github.com/SunDwarf/Katagawa', license='MIT', author='Laura Dickinson', author_email='l@veriny.tf', description='An asyncio ORM for Pyth...
from distutils.core import setup from setuptools import find_packages setup( name='katagawa', version='0.1.0', packages=find_packages(), url='https://github.com/SunDwarf/Katagawa', license='MIT', author='Laura Dickinson', author_email='l@veriny.tf', description='An asyncio ORM for Pyth...
Add cached_property as a requirement.
Add cached_property as a requirement.
Python
mit
SunDwarf/asyncqlio
from distutils.core import setup from setuptools import find_packages setup( name='katagawa', version='0.1.0', packages=find_packages(), url='https://github.com/SunDwarf/Katagawa', license='MIT', author='Laura Dickinson', author_email='l@veriny.tf', description='An asyncio ORM for Pyth...
from distutils.core import setup from setuptools import find_packages setup( name='katagawa', version='0.1.0', packages=find_packages(), url='https://github.com/SunDwarf/Katagawa', license='MIT', author='Laura Dickinson', author_email='l@veriny.tf', description='An asyncio ORM for Pyth...
<commit_before>from distutils.core import setup from setuptools import find_packages setup( name='katagawa', version='0.1.0', packages=find_packages(), url='https://github.com/SunDwarf/Katagawa', license='MIT', author='Laura Dickinson', author_email='l@veriny.tf', description='An async...
from distutils.core import setup from setuptools import find_packages setup( name='katagawa', version='0.1.0', packages=find_packages(), url='https://github.com/SunDwarf/Katagawa', license='MIT', author='Laura Dickinson', author_email='l@veriny.tf', description='An asyncio ORM for Pyth...
from distutils.core import setup from setuptools import find_packages setup( name='katagawa', version='0.1.0', packages=find_packages(), url='https://github.com/SunDwarf/Katagawa', license='MIT', author='Laura Dickinson', author_email='l@veriny.tf', description='An asyncio ORM for Pyth...
<commit_before>from distutils.core import setup from setuptools import find_packages setup( name='katagawa', version='0.1.0', packages=find_packages(), url='https://github.com/SunDwarf/Katagawa', license='MIT', author='Laura Dickinson', author_email='l@veriny.tf', description='An async...
1ee1a337cb3094ae5a5cc79b6d4c62c2f7f64dc3
setup.py
setup.py
#!/usr/bin/env python from distutils.core import setup setup( name='dbtools', version=open("VERSION.txt").read().strip(), description='Lightweight SQLite interface', author='Jessica B. Hamrick', author_email='jhamrick@berkeley.edu', url='https://github.com/jhamrick/dbtools', packages=['dbt...
#!/usr/bin/env python from distutils.core import setup setup( name='dbtools', version=open("VERSION.txt").read().strip(), description='Lightweight SQLite interface', author='Jessica B. Hamrick', author_email='jhamrick@berkeley.edu', url='https://github.com/jhamrick/dbtools', packages=['dbt...
Add trove classifier for Python 3
Add trove classifier for Python 3
Python
mit
jhamrick/dbtools,jhamrick/dbtools
#!/usr/bin/env python from distutils.core import setup setup( name='dbtools', version=open("VERSION.txt").read().strip(), description='Lightweight SQLite interface', author='Jessica B. Hamrick', author_email='jhamrick@berkeley.edu', url='https://github.com/jhamrick/dbtools', packages=['dbt...
#!/usr/bin/env python from distutils.core import setup setup( name='dbtools', version=open("VERSION.txt").read().strip(), description='Lightweight SQLite interface', author='Jessica B. Hamrick', author_email='jhamrick@berkeley.edu', url='https://github.com/jhamrick/dbtools', packages=['dbt...
<commit_before>#!/usr/bin/env python from distutils.core import setup setup( name='dbtools', version=open("VERSION.txt").read().strip(), description='Lightweight SQLite interface', author='Jessica B. Hamrick', author_email='jhamrick@berkeley.edu', url='https://github.com/jhamrick/dbtools', ...
#!/usr/bin/env python from distutils.core import setup setup( name='dbtools', version=open("VERSION.txt").read().strip(), description='Lightweight SQLite interface', author='Jessica B. Hamrick', author_email='jhamrick@berkeley.edu', url='https://github.com/jhamrick/dbtools', packages=['dbt...
#!/usr/bin/env python from distutils.core import setup setup( name='dbtools', version=open("VERSION.txt").read().strip(), description='Lightweight SQLite interface', author='Jessica B. Hamrick', author_email='jhamrick@berkeley.edu', url='https://github.com/jhamrick/dbtools', packages=['dbt...
<commit_before>#!/usr/bin/env python from distutils.core import setup setup( name='dbtools', version=open("VERSION.txt").read().strip(), description='Lightweight SQLite interface', author='Jessica B. Hamrick', author_email='jhamrick@berkeley.edu', url='https://github.com/jhamrick/dbtools', ...
13bd34b4f7933a243afac3917c75bed32a86cd24
setup.py
setup.py
#!/usr/bin/env python from setuptools import find_packages, setup # Use quickphotos.VERSION for version numbers version_tuple = __import__('quickphotos').VERSION version = '.'.join([str(v) for v in version_tuple]) setup( name='django-quick-photos', version=version, description='Latest Photos from Instagra...
#!/usr/bin/env python from setuptools import find_packages, setup # Use quickphotos.VERSION for version numbers version_tuple = __import__('quickphotos').VERSION version = '.'.join([str(v) for v in version_tuple]) setup( name='django-quick-photos', version=version, description='Latest Photos from Instagra...
Update maintainer to Blanc Ltd
Update maintainer to Blanc Ltd
Python
bsd-3-clause
blancltd/django-quick-photos,kmlebedev/mezzanine-instagram-quickphotos
#!/usr/bin/env python from setuptools import find_packages, setup # Use quickphotos.VERSION for version numbers version_tuple = __import__('quickphotos').VERSION version = '.'.join([str(v) for v in version_tuple]) setup( name='django-quick-photos', version=version, description='Latest Photos from Instagra...
#!/usr/bin/env python from setuptools import find_packages, setup # Use quickphotos.VERSION for version numbers version_tuple = __import__('quickphotos').VERSION version = '.'.join([str(v) for v in version_tuple]) setup( name='django-quick-photos', version=version, description='Latest Photos from Instagra...
<commit_before>#!/usr/bin/env python from setuptools import find_packages, setup # Use quickphotos.VERSION for version numbers version_tuple = __import__('quickphotos').VERSION version = '.'.join([str(v) for v in version_tuple]) setup( name='django-quick-photos', version=version, description='Latest Photo...
#!/usr/bin/env python from setuptools import find_packages, setup # Use quickphotos.VERSION for version numbers version_tuple = __import__('quickphotos').VERSION version = '.'.join([str(v) for v in version_tuple]) setup( name='django-quick-photos', version=version, description='Latest Photos from Instagra...
#!/usr/bin/env python from setuptools import find_packages, setup # Use quickphotos.VERSION for version numbers version_tuple = __import__('quickphotos').VERSION version = '.'.join([str(v) for v in version_tuple]) setup( name='django-quick-photos', version=version, description='Latest Photos from Instagra...
<commit_before>#!/usr/bin/env python from setuptools import find_packages, setup # Use quickphotos.VERSION for version numbers version_tuple = __import__('quickphotos').VERSION version = '.'.join([str(v) for v in version_tuple]) setup( name='django-quick-photos', version=version, description='Latest Photo...
89b55999c3ffa46b627b03cf8f10aeeb42ab986f
setup.py
setup.py
# -*- encoding: utf8 -*- from setuptools import setup, find_packages import os setup( name = "django-prefetch", version = "0.1.1", url = 'https://github.com/ionelmc/django-prefetch', download_url = '', license = 'BSD', description = "Generic model related data prefetch framework for Django", ...
# -*- encoding: utf8 -*- from setuptools import setup, find_packages import os setup( name = "django-prefetch", version = "0.1.1", url = 'https://github.com/ionelmc/django-prefetch', download_url = '', license = 'BSD', description = "Generic model related data prefetch framework for Django", ...
Use open instead of file.
Use open instead of file.
Python
bsd-2-clause
ionelmc/django-prefetch
# -*- encoding: utf8 -*- from setuptools import setup, find_packages import os setup( name = "django-prefetch", version = "0.1.1", url = 'https://github.com/ionelmc/django-prefetch', download_url = '', license = 'BSD', description = "Generic model related data prefetch framework for Django", ...
# -*- encoding: utf8 -*- from setuptools import setup, find_packages import os setup( name = "django-prefetch", version = "0.1.1", url = 'https://github.com/ionelmc/django-prefetch', download_url = '', license = 'BSD', description = "Generic model related data prefetch framework for Django", ...
<commit_before># -*- encoding: utf8 -*- from setuptools import setup, find_packages import os setup( name = "django-prefetch", version = "0.1.1", url = 'https://github.com/ionelmc/django-prefetch', download_url = '', license = 'BSD', description = "Generic model related data prefetch framework...
# -*- encoding: utf8 -*- from setuptools import setup, find_packages import os setup( name = "django-prefetch", version = "0.1.1", url = 'https://github.com/ionelmc/django-prefetch', download_url = '', license = 'BSD', description = "Generic model related data prefetch framework for Django", ...
# -*- encoding: utf8 -*- from setuptools import setup, find_packages import os setup( name = "django-prefetch", version = "0.1.1", url = 'https://github.com/ionelmc/django-prefetch', download_url = '', license = 'BSD', description = "Generic model related data prefetch framework for Django", ...
<commit_before># -*- encoding: utf8 -*- from setuptools import setup, find_packages import os setup( name = "django-prefetch", version = "0.1.1", url = 'https://github.com/ionelmc/django-prefetch', download_url = '', license = 'BSD', description = "Generic model related data prefetch framework...
55ef7aa61e7c0980c53f9ae25dbf8ee368b6db1c
setup.py
setup.py
#!/usr/bin/env python """ whichpkg ======== Locate the path of a specific python module """ from setuptools import setup setup( name='whichpkg', version='0.3.0', author='Matt Robenolt', author_email='matt@ydekproductions.com', url='https://github.com/mattrobenolt/whichpkg', description='Locate...
#!/usr/bin/env python """ whichpkg ======== Locate the path of a specific python module """ import re from setuptools import setup version = re.search("__version__\s*=\s*'(.+)?'", open('bin/whichpkg').read()).groups(1)[0] setup( name='whichpkg', version=version, author='Matt Robenolt', author_email='...
Read the __version__ from whichpkg directly
Read the __version__ from whichpkg directly
Python
bsd-2-clause
mattrobenolt/whichpkg,pombredanne/whichpkg
#!/usr/bin/env python """ whichpkg ======== Locate the path of a specific python module """ from setuptools import setup setup( name='whichpkg', version='0.3.0', author='Matt Robenolt', author_email='matt@ydekproductions.com', url='https://github.com/mattrobenolt/whichpkg', description='Locate...
#!/usr/bin/env python """ whichpkg ======== Locate the path of a specific python module """ import re from setuptools import setup version = re.search("__version__\s*=\s*'(.+)?'", open('bin/whichpkg').read()).groups(1)[0] setup( name='whichpkg', version=version, author='Matt Robenolt', author_email='...
<commit_before>#!/usr/bin/env python """ whichpkg ======== Locate the path of a specific python module """ from setuptools import setup setup( name='whichpkg', version='0.3.0', author='Matt Robenolt', author_email='matt@ydekproductions.com', url='https://github.com/mattrobenolt/whichpkg', desc...
#!/usr/bin/env python """ whichpkg ======== Locate the path of a specific python module """ import re from setuptools import setup version = re.search("__version__\s*=\s*'(.+)?'", open('bin/whichpkg').read()).groups(1)[0] setup( name='whichpkg', version=version, author='Matt Robenolt', author_email='...
#!/usr/bin/env python """ whichpkg ======== Locate the path of a specific python module """ from setuptools import setup setup( name='whichpkg', version='0.3.0', author='Matt Robenolt', author_email='matt@ydekproductions.com', url='https://github.com/mattrobenolt/whichpkg', description='Locate...
<commit_before>#!/usr/bin/env python """ whichpkg ======== Locate the path of a specific python module """ from setuptools import setup setup( name='whichpkg', version='0.3.0', author='Matt Robenolt', author_email='matt@ydekproductions.com', url='https://github.com/mattrobenolt/whichpkg', desc...
f981802947fd2c15be04489f6805395971807c9d
PVGeo/__main__.py
PVGeo/__main__.py
__all__ = [ 'test', ] def test(): """ @desc: This is a convienance method to run all of the tests in `PVGeo`. @notes: This can be executed from either the command line of within a standard Python environment: ```bash $ python -m PVGeo test ``` ```py >>> import PVGeo >>> P...
__all__ = [ 'test', ] def test(close=False): """ @desc: This is a convienance method to run all of the tests in `PVGeo`. @notes: This can be executed from either the command line of within a standard Python environment: ```bash $ python -m PVGeo test ``` ```py >>> import PVGe...
Add catch for Travis CI testing.
Add catch for Travis CI testing.
Python
bsd-3-clause
banesullivan/ParaViewGeophysics,banesullivan/ParaViewGeophysics,banesullivan/ParaViewGeophysics
__all__ = [ 'test', ] def test(): """ @desc: This is a convienance method to run all of the tests in `PVGeo`. @notes: This can be executed from either the command line of within a standard Python environment: ```bash $ python -m PVGeo test ``` ```py >>> import PVGeo >>> P...
__all__ = [ 'test', ] def test(close=False): """ @desc: This is a convienance method to run all of the tests in `PVGeo`. @notes: This can be executed from either the command line of within a standard Python environment: ```bash $ python -m PVGeo test ``` ```py >>> import PVGe...
<commit_before>__all__ = [ 'test', ] def test(): """ @desc: This is a convienance method to run all of the tests in `PVGeo`. @notes: This can be executed from either the command line of within a standard Python environment: ```bash $ python -m PVGeo test ``` ```py >>> import ...
__all__ = [ 'test', ] def test(close=False): """ @desc: This is a convienance method to run all of the tests in `PVGeo`. @notes: This can be executed from either the command line of within a standard Python environment: ```bash $ python -m PVGeo test ``` ```py >>> import PVGe...
__all__ = [ 'test', ] def test(): """ @desc: This is a convienance method to run all of the tests in `PVGeo`. @notes: This can be executed from either the command line of within a standard Python environment: ```bash $ python -m PVGeo test ``` ```py >>> import PVGeo >>> P...
<commit_before>__all__ = [ 'test', ] def test(): """ @desc: This is a convienance method to run all of the tests in `PVGeo`. @notes: This can be executed from either the command line of within a standard Python environment: ```bash $ python -m PVGeo test ``` ```py >>> import ...
3d774d8422b660d18f740f3ff3cadc1683d1c420
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup, find_packages setup( name = "tagman", version = "0.1.8", author = "ReThought Ltd", author_email = "matthew@rethought-solutions.com", url = "https://github.com/Rethought/tagman.git", packages = find_packages('src'), package_dir = {'':'src'...
#!/usr/bin/env python from setuptools import setup, find_packages setup( name = "tagman", version = "0.1.9", author = "ReThought Ltd", author_email = "matthew@rethought-solutions.com", url = "https://github.com/Rethought/tagman.git", packages = find_packages('src'), package_dir = {'':'src'...
Increment version to reflect change
Increment version to reflect change
Python
bsd-3-clause
Rethought/tagman,Rethought/tagman
#!/usr/bin/env python from setuptools import setup, find_packages setup( name = "tagman", version = "0.1.8", author = "ReThought Ltd", author_email = "matthew@rethought-solutions.com", url = "https://github.com/Rethought/tagman.git", packages = find_packages('src'), package_dir = {'':'src'...
#!/usr/bin/env python from setuptools import setup, find_packages setup( name = "tagman", version = "0.1.9", author = "ReThought Ltd", author_email = "matthew@rethought-solutions.com", url = "https://github.com/Rethought/tagman.git", packages = find_packages('src'), package_dir = {'':'src'...
<commit_before>#!/usr/bin/env python from setuptools import setup, find_packages setup( name = "tagman", version = "0.1.8", author = "ReThought Ltd", author_email = "matthew@rethought-solutions.com", url = "https://github.com/Rethought/tagman.git", packages = find_packages('src'), package_...
#!/usr/bin/env python from setuptools import setup, find_packages setup( name = "tagman", version = "0.1.9", author = "ReThought Ltd", author_email = "matthew@rethought-solutions.com", url = "https://github.com/Rethought/tagman.git", packages = find_packages('src'), package_dir = {'':'src'...
#!/usr/bin/env python from setuptools import setup, find_packages setup( name = "tagman", version = "0.1.8", author = "ReThought Ltd", author_email = "matthew@rethought-solutions.com", url = "https://github.com/Rethought/tagman.git", packages = find_packages('src'), package_dir = {'':'src'...
<commit_before>#!/usr/bin/env python from setuptools import setup, find_packages setup( name = "tagman", version = "0.1.8", author = "ReThought Ltd", author_email = "matthew@rethought-solutions.com", url = "https://github.com/Rethought/tagman.git", packages = find_packages('src'), package_...
0f1c65fd5cf3d9be85030dbcb64dfa51284f9b77
setup.py
setup.py
#!/usr/bin/env python # encoding: utf-8 """ tempodb/setup.py Copyright (c) 2012 TempoDB Inc. All rights reserved. """ import os from setuptools import setup def get_version(version_tuple): version = '%s.%s' % (version_tuple[0], version_tuple[1]) if version_tuple[2]: version = '%s.%s' % (version, ver...
#!/usr/bin/env python # encoding: utf-8 """ tempodb/setup.py Copyright (c) 2012 TempoDB Inc. All rights reserved. """ import os from setuptools import setup def get_version(version_tuple): version = '%s.%s' % (version_tuple[0], version_tuple[1]) if version_tuple[2]: version = '%s.%s' % (version, ver...
Use a custom version of the requests package to default to SSLv3
Use a custom version of the requests package to default to SSLv3
Python
mit
TempoIQ/tempoiq-python,tempodb/tempodb-python,tempodb/tempodb-python,mrgaaron/tempoiq-python
#!/usr/bin/env python # encoding: utf-8 """ tempodb/setup.py Copyright (c) 2012 TempoDB Inc. All rights reserved. """ import os from setuptools import setup def get_version(version_tuple): version = '%s.%s' % (version_tuple[0], version_tuple[1]) if version_tuple[2]: version = '%s.%s' % (version, ver...
#!/usr/bin/env python # encoding: utf-8 """ tempodb/setup.py Copyright (c) 2012 TempoDB Inc. All rights reserved. """ import os from setuptools import setup def get_version(version_tuple): version = '%s.%s' % (version_tuple[0], version_tuple[1]) if version_tuple[2]: version = '%s.%s' % (version, ver...
<commit_before>#!/usr/bin/env python # encoding: utf-8 """ tempodb/setup.py Copyright (c) 2012 TempoDB Inc. All rights reserved. """ import os from setuptools import setup def get_version(version_tuple): version = '%s.%s' % (version_tuple[0], version_tuple[1]) if version_tuple[2]: version = '%s.%s' ...
#!/usr/bin/env python # encoding: utf-8 """ tempodb/setup.py Copyright (c) 2012 TempoDB Inc. All rights reserved. """ import os from setuptools import setup def get_version(version_tuple): version = '%s.%s' % (version_tuple[0], version_tuple[1]) if version_tuple[2]: version = '%s.%s' % (version, ver...
#!/usr/bin/env python # encoding: utf-8 """ tempodb/setup.py Copyright (c) 2012 TempoDB Inc. All rights reserved. """ import os from setuptools import setup def get_version(version_tuple): version = '%s.%s' % (version_tuple[0], version_tuple[1]) if version_tuple[2]: version = '%s.%s' % (version, ver...
<commit_before>#!/usr/bin/env python # encoding: utf-8 """ tempodb/setup.py Copyright (c) 2012 TempoDB Inc. All rights reserved. """ import os from setuptools import setup def get_version(version_tuple): version = '%s.%s' % (version_tuple[0], version_tuple[1]) if version_tuple[2]: version = '%s.%s' ...
44238902398806ae237e53b14cf836562719a361
setup.py
setup.py
import os from setuptools import setup import sys def read(filename): return open(os.path.join(os.path.dirname(__file__), filename)).read() version_dependant_requirements = [ "uhashring < 2" if sys.version_info < (3, 6) else "uhashring", # It uses f-strings ] setup( name="python-binary-memcached", ...
import os import sys from setuptools import setup from m2r import convert def read(filename): return open(os.path.join(os.path.dirname(__file__), filename)).read() version_dependant_requirements = [ "uhashring < 2" if sys.version_info < (3, 6) else "uhashring", # It uses f-strings ] setup( name="pyth...
Use m2r to convert the changelog to rst
chore: Use m2r to convert the changelog to rst
Python
mit
jaysonsantos/python-binary-memcached,jaysonsantos/python-binary-memcached
import os from setuptools import setup import sys def read(filename): return open(os.path.join(os.path.dirname(__file__), filename)).read() version_dependant_requirements = [ "uhashring < 2" if sys.version_info < (3, 6) else "uhashring", # It uses f-strings ] setup( name="python-binary-memcached", ...
import os import sys from setuptools import setup from m2r import convert def read(filename): return open(os.path.join(os.path.dirname(__file__), filename)).read() version_dependant_requirements = [ "uhashring < 2" if sys.version_info < (3, 6) else "uhashring", # It uses f-strings ] setup( name="pyth...
<commit_before>import os from setuptools import setup import sys def read(filename): return open(os.path.join(os.path.dirname(__file__), filename)).read() version_dependant_requirements = [ "uhashring < 2" if sys.version_info < (3, 6) else "uhashring", # It uses f-strings ] setup( name="python-binary-...
import os import sys from setuptools import setup from m2r import convert def read(filename): return open(os.path.join(os.path.dirname(__file__), filename)).read() version_dependant_requirements = [ "uhashring < 2" if sys.version_info < (3, 6) else "uhashring", # It uses f-strings ] setup( name="pyth...
import os from setuptools import setup import sys def read(filename): return open(os.path.join(os.path.dirname(__file__), filename)).read() version_dependant_requirements = [ "uhashring < 2" if sys.version_info < (3, 6) else "uhashring", # It uses f-strings ] setup( name="python-binary-memcached", ...
<commit_before>import os from setuptools import setup import sys def read(filename): return open(os.path.join(os.path.dirname(__file__), filename)).read() version_dependant_requirements = [ "uhashring < 2" if sys.version_info < (3, 6) else "uhashring", # It uses f-strings ] setup( name="python-binary-...
529db5b62f87506dcf0b3cb87447c6ed4d9862ab
setup.py
setup.py
from setuptools import setup import os setup( name = "conduit", version = "0.0.2", author = "Steve Leibman", author_email = "sleibman@alum.mit.edu", description = ("Framework for dataflow-style python programming"), license = "MIT", keywords = "dataflow distributed pipe flow programming", ...
from setuptools import setup import os setup( name = "conduit", version = "0.0.3", author = "Steve Leibman", author_email = "sleibman@alum.mit.edu", description = ("Framework for dataflow-style python programming"), license = "MIT", keywords = "dataflow distributed pipe flow programming", ...
Bump version to 0.0.3 for pip.
Bump version to 0.0.3 for pip.
Python
mit
sleibman/python-conduit,sleibman/python-conduit
from setuptools import setup import os setup( name = "conduit", version = "0.0.2", author = "Steve Leibman", author_email = "sleibman@alum.mit.edu", description = ("Framework for dataflow-style python programming"), license = "MIT", keywords = "dataflow distributed pipe flow programming", ...
from setuptools import setup import os setup( name = "conduit", version = "0.0.3", author = "Steve Leibman", author_email = "sleibman@alum.mit.edu", description = ("Framework for dataflow-style python programming"), license = "MIT", keywords = "dataflow distributed pipe flow programming", ...
<commit_before>from setuptools import setup import os setup( name = "conduit", version = "0.0.2", author = "Steve Leibman", author_email = "sleibman@alum.mit.edu", description = ("Framework for dataflow-style python programming"), license = "MIT", keywords = "dataflow distributed pipe flow ...
from setuptools import setup import os setup( name = "conduit", version = "0.0.3", author = "Steve Leibman", author_email = "sleibman@alum.mit.edu", description = ("Framework for dataflow-style python programming"), license = "MIT", keywords = "dataflow distributed pipe flow programming", ...
from setuptools import setup import os setup( name = "conduit", version = "0.0.2", author = "Steve Leibman", author_email = "sleibman@alum.mit.edu", description = ("Framework for dataflow-style python programming"), license = "MIT", keywords = "dataflow distributed pipe flow programming", ...
<commit_before>from setuptools import setup import os setup( name = "conduit", version = "0.0.2", author = "Steve Leibman", author_email = "sleibman@alum.mit.edu", description = ("Framework for dataflow-style python programming"), license = "MIT", keywords = "dataflow distributed pipe flow ...
0406ddcb3e22f8f3eb3b1fdba702e41ebe8b5bf0
connector/tests/__init__.py
connector/tests/__init__.py
# -*- coding: utf-8 -*- ############################################################################## # # Author: Guewen Baconnier # Copyright 2012 Camptocamp SA # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # pu...
# -*- coding: utf-8 -*- ############################################################################## # # Author: Guewen Baconnier # Copyright 2012 Camptocamp SA # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # pu...
Remove deprecated fast_suite and check list for unit tests
Remove deprecated fast_suite and check list for unit tests
Python
agpl-3.0
OCA/connector,OCA/connector
# -*- coding: utf-8 -*- ############################################################################## # # Author: Guewen Baconnier # Copyright 2012 Camptocamp SA # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # pu...
# -*- coding: utf-8 -*- ############################################################################## # # Author: Guewen Baconnier # Copyright 2012 Camptocamp SA # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # pu...
<commit_before># -*- coding: utf-8 -*- ############################################################################## # # Author: Guewen Baconnier # Copyright 2012 Camptocamp SA # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public Lic...
# -*- coding: utf-8 -*- ############################################################################## # # Author: Guewen Baconnier # Copyright 2012 Camptocamp SA # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # pu...
# -*- coding: utf-8 -*- ############################################################################## # # Author: Guewen Baconnier # Copyright 2012 Camptocamp SA # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # pu...
<commit_before># -*- coding: utf-8 -*- ############################################################################## # # Author: Guewen Baconnier # Copyright 2012 Camptocamp SA # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public Lic...
9dafef749aaf2fca9e865cf28b043ea22bafe3a5
backend/django/apps/accounts/tests.py
backend/django/apps/accounts/tests.py
from django.core.urlresolvers import reverse from rest_framework.test import APITestCase from rest_framework import status import factory import json from .models import BaseAccount from .serializers import WholeAccountSerializer class UserFactory(factory.django.DjangoModelFactory): class Meta: model = B...
from django.core.urlresolvers import reverse from rest_framework.test import APITestCase from rest_framework import status import factory import json from .models import BaseAccount from .serializers import WholeAccountSerializer class UserFactory(factory.django.DjangoModelFactory): class Meta: model = B...
Create a test for Account creation
Create a test for Account creation
Python
mit
slavpetroff/sweetshop,slavpetroff/sweetshop
from django.core.urlresolvers import reverse from rest_framework.test import APITestCase from rest_framework import status import factory import json from .models import BaseAccount from .serializers import WholeAccountSerializer class UserFactory(factory.django.DjangoModelFactory): class Meta: model = B...
from django.core.urlresolvers import reverse from rest_framework.test import APITestCase from rest_framework import status import factory import json from .models import BaseAccount from .serializers import WholeAccountSerializer class UserFactory(factory.django.DjangoModelFactory): class Meta: model = B...
<commit_before>from django.core.urlresolvers import reverse from rest_framework.test import APITestCase from rest_framework import status import factory import json from .models import BaseAccount from .serializers import WholeAccountSerializer class UserFactory(factory.django.DjangoModelFactory): class Meta: ...
from django.core.urlresolvers import reverse from rest_framework.test import APITestCase from rest_framework import status import factory import json from .models import BaseAccount from .serializers import WholeAccountSerializer class UserFactory(factory.django.DjangoModelFactory): class Meta: model = B...
from django.core.urlresolvers import reverse from rest_framework.test import APITestCase from rest_framework import status import factory import json from .models import BaseAccount from .serializers import WholeAccountSerializer class UserFactory(factory.django.DjangoModelFactory): class Meta: model = B...
<commit_before>from django.core.urlresolvers import reverse from rest_framework.test import APITestCase from rest_framework import status import factory import json from .models import BaseAccount from .serializers import WholeAccountSerializer class UserFactory(factory.django.DjangoModelFactory): class Meta: ...
994b9fbc9372b0c54f840a239f8b4a1cc89315ee
src/waldur_mastermind/invoices/filters.py
src/waldur_mastermind/invoices/filters.py
import django_filters from waldur_core.core import filters as core_filters from . import models class InvoiceFilter(django_filters.FilterSet): customer = core_filters.URLFilter(view_name='customer-detail', name='customer__uuid') customer_uuid = django_filters.UUIDFilter(name='customer__uuid') state = dja...
import django_filters from waldur_core.core import filters as core_filters from . import models class InvoiceFilter(django_filters.FilterSet): customer = core_filters.URLFilter(view_name='customer-detail', name='customer__uuid') customer_uuid = django_filters.UUIDFilter(name='customer__uuid') state = dja...
Allow to filter invoices by date
Allow to filter invoices by date [WAL-2340]
Python
mit
opennode/waldur-mastermind,opennode/waldur-mastermind,opennode/nodeconductor-assembly-waldur,opennode/nodeconductor-assembly-waldur,opennode/waldur-mastermind,opennode/waldur-mastermind,opennode/nodeconductor-assembly-waldur
import django_filters from waldur_core.core import filters as core_filters from . import models class InvoiceFilter(django_filters.FilterSet): customer = core_filters.URLFilter(view_name='customer-detail', name='customer__uuid') customer_uuid = django_filters.UUIDFilter(name='customer__uuid') state = dja...
import django_filters from waldur_core.core import filters as core_filters from . import models class InvoiceFilter(django_filters.FilterSet): customer = core_filters.URLFilter(view_name='customer-detail', name='customer__uuid') customer_uuid = django_filters.UUIDFilter(name='customer__uuid') state = dja...
<commit_before>import django_filters from waldur_core.core import filters as core_filters from . import models class InvoiceFilter(django_filters.FilterSet): customer = core_filters.URLFilter(view_name='customer-detail', name='customer__uuid') customer_uuid = django_filters.UUIDFilter(name='customer__uuid') ...
import django_filters from waldur_core.core import filters as core_filters from . import models class InvoiceFilter(django_filters.FilterSet): customer = core_filters.URLFilter(view_name='customer-detail', name='customer__uuid') customer_uuid = django_filters.UUIDFilter(name='customer__uuid') state = dja...
import django_filters from waldur_core.core import filters as core_filters from . import models class InvoiceFilter(django_filters.FilterSet): customer = core_filters.URLFilter(view_name='customer-detail', name='customer__uuid') customer_uuid = django_filters.UUIDFilter(name='customer__uuid') state = dja...
<commit_before>import django_filters from waldur_core.core import filters as core_filters from . import models class InvoiceFilter(django_filters.FilterSet): customer = core_filters.URLFilter(view_name='customer-detail', name='customer__uuid') customer_uuid = django_filters.UUIDFilter(name='customer__uuid') ...
f25814cd2a91cb183e6cdae4a4597534dc8de17e
codesearch/paths.py
codesearch/paths.py
# Copyright 2017 The Chromium Authors. # # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file or at # https://developers.google.com/open-source/licenses/bsd. import os def GetPackageRelativePath(filename): """GetPackageRelativePath returns the path to |filename| rela...
# Copyright 2017 The Chromium Authors. # # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file or at # https://developers.google.com/open-source/licenses/bsd. import os class NoSourceRootError(Exception): """Exception raise when the CodeSearch library can't determine...
Raise a more specific exception when the source root cannot be found.
Raise a more specific exception when the source root cannot be found.
Python
bsd-3-clause
chromium/codesearch-py,chromium/codesearch-py
# Copyright 2017 The Chromium Authors. # # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file or at # https://developers.google.com/open-source/licenses/bsd. import os def GetPackageRelativePath(filename): """GetPackageRelativePath returns the path to |filename| rela...
# Copyright 2017 The Chromium Authors. # # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file or at # https://developers.google.com/open-source/licenses/bsd. import os class NoSourceRootError(Exception): """Exception raise when the CodeSearch library can't determine...
<commit_before># Copyright 2017 The Chromium Authors. # # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file or at # https://developers.google.com/open-source/licenses/bsd. import os def GetPackageRelativePath(filename): """GetPackageRelativePath returns the path to ...
# Copyright 2017 The Chromium Authors. # # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file or at # https://developers.google.com/open-source/licenses/bsd. import os class NoSourceRootError(Exception): """Exception raise when the CodeSearch library can't determine...
# Copyright 2017 The Chromium Authors. # # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file or at # https://developers.google.com/open-source/licenses/bsd. import os def GetPackageRelativePath(filename): """GetPackageRelativePath returns the path to |filename| rela...
<commit_before># Copyright 2017 The Chromium Authors. # # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file or at # https://developers.google.com/open-source/licenses/bsd. import os def GetPackageRelativePath(filename): """GetPackageRelativePath returns the path to ...
7e153f0cb35a3572a724c29f3be26bf6254d632b
client/views.py
client/views.py
from django.shortcuts import render from django.http import HttpResponse, Http404 from .models import Message from django.contrib.auth.decorators import login_required # Create your views here. @login_required def chatroom(request): messages = Message.objects.order_by('date') context = {'messages': messages} ...
from django.shortcuts import render, render_to_response, HttpResponseRedirect from django.http import HttpResponse, Http404 from .models import Message, MessageForm from django.contrib.auth.decorators import login_required import datetime # Create your views here. @login_required def chatroom(request): # if this i...
Update chatroom view to process new messages
Update chatroom view to process new messages
Python
apache-2.0
jason-feng/chatroom,jason-feng/chatroom,jason-feng/chatroom,jason-feng/chatroom
from django.shortcuts import render from django.http import HttpResponse, Http404 from .models import Message from django.contrib.auth.decorators import login_required # Create your views here. @login_required def chatroom(request): messages = Message.objects.order_by('date') context = {'messages': messages} ...
from django.shortcuts import render, render_to_response, HttpResponseRedirect from django.http import HttpResponse, Http404 from .models import Message, MessageForm from django.contrib.auth.decorators import login_required import datetime # Create your views here. @login_required def chatroom(request): # if this i...
<commit_before>from django.shortcuts import render from django.http import HttpResponse, Http404 from .models import Message from django.contrib.auth.decorators import login_required # Create your views here. @login_required def chatroom(request): messages = Message.objects.order_by('date') context = {'messag...
from django.shortcuts import render, render_to_response, HttpResponseRedirect from django.http import HttpResponse, Http404 from .models import Message, MessageForm from django.contrib.auth.decorators import login_required import datetime # Create your views here. @login_required def chatroom(request): # if this i...
from django.shortcuts import render from django.http import HttpResponse, Http404 from .models import Message from django.contrib.auth.decorators import login_required # Create your views here. @login_required def chatroom(request): messages = Message.objects.order_by('date') context = {'messages': messages} ...
<commit_before>from django.shortcuts import render from django.http import HttpResponse, Http404 from .models import Message from django.contrib.auth.decorators import login_required # Create your views here. @login_required def chatroom(request): messages = Message.objects.order_by('date') context = {'messag...
59a717588c9f0e76d532516a0c38624042527291
testing/plot_test_data.py
testing/plot_test_data.py
import zephyr.util from zephyr.collector import MeasurementCollector from zephyr.bioharness import BioHarnessSignalAnalysis, BioHarnessPacketHandler from zephyr.message import MessagePayloadParser from zephyr.testing import visualize_measurements, test_data_dir, VirtualSerial from zephyr.protocol import Protocol...
import zephyr.util from zephyr.collector import MeasurementCollector from zephyr.bioharness import BioHarnessSignalAnalysis, BioHarnessPacketHandler from zephyr.message import MessagePayloadParser from zephyr.testing import visualize_measurements, test_data_dir, VirtualSerial from zephyr.protocol import Protocol...
Fix test data plotting to use the changed interfaces
Fix test data plotting to use the changed interfaces
Python
bsd-2-clause
jpaalasm/zephyr-bt
import zephyr.util from zephyr.collector import MeasurementCollector from zephyr.bioharness import BioHarnessSignalAnalysis, BioHarnessPacketHandler from zephyr.message import MessagePayloadParser from zephyr.testing import visualize_measurements, test_data_dir, VirtualSerial from zephyr.protocol import Protocol...
import zephyr.util from zephyr.collector import MeasurementCollector from zephyr.bioharness import BioHarnessSignalAnalysis, BioHarnessPacketHandler from zephyr.message import MessagePayloadParser from zephyr.testing import visualize_measurements, test_data_dir, VirtualSerial from zephyr.protocol import Protocol...
<commit_before> import zephyr.util from zephyr.collector import MeasurementCollector from zephyr.bioharness import BioHarnessSignalAnalysis, BioHarnessPacketHandler from zephyr.message import MessagePayloadParser from zephyr.testing import visualize_measurements, test_data_dir, VirtualSerial from zephyr.protocol ...
import zephyr.util from zephyr.collector import MeasurementCollector from zephyr.bioharness import BioHarnessSignalAnalysis, BioHarnessPacketHandler from zephyr.message import MessagePayloadParser from zephyr.testing import visualize_measurements, test_data_dir, VirtualSerial from zephyr.protocol import Protocol...
import zephyr.util from zephyr.collector import MeasurementCollector from zephyr.bioharness import BioHarnessSignalAnalysis, BioHarnessPacketHandler from zephyr.message import MessagePayloadParser from zephyr.testing import visualize_measurements, test_data_dir, VirtualSerial from zephyr.protocol import Protocol...
<commit_before> import zephyr.util from zephyr.collector import MeasurementCollector from zephyr.bioharness import BioHarnessSignalAnalysis, BioHarnessPacketHandler from zephyr.message import MessagePayloadParser from zephyr.testing import visualize_measurements, test_data_dir, VirtualSerial from zephyr.protocol ...
19280ac68748cb5cd2cb439edeb667f581840604
tests/test_http_client.py
tests/test_http_client.py
import unittest import httpretty from fbmsgbot.http_client import HttpClient from fbmsgbot.resources.urls import FACEBOOK_MESSAGES_POST_URL class TestHttpClient(unittest.TestCase): """ Test the HttpClient """ @httpretty.activate def test_submit_GET_request(self): httpretty.register_uri...
import unittest import httpretty from fbmsgbot.http_client import HttpClient from fbmsgbot.resources.urls import FACEBOOK_MESSAGES_POST_URL class TestHttpClient(unittest.TestCase): """ Test the HttpClient """ @httpretty.activate def test_submit_GET_request(self): httpretty.register_uri...
Update tests to remove completion blocks
Update tests to remove completion blocks
Python
mit
ben-cunningham/pybot,ben-cunningham/python-messenger-bot
import unittest import httpretty from fbmsgbot.http_client import HttpClient from fbmsgbot.resources.urls import FACEBOOK_MESSAGES_POST_URL class TestHttpClient(unittest.TestCase): """ Test the HttpClient """ @httpretty.activate def test_submit_GET_request(self): httpretty.register_uri...
import unittest import httpretty from fbmsgbot.http_client import HttpClient from fbmsgbot.resources.urls import FACEBOOK_MESSAGES_POST_URL class TestHttpClient(unittest.TestCase): """ Test the HttpClient """ @httpretty.activate def test_submit_GET_request(self): httpretty.register_uri...
<commit_before>import unittest import httpretty from fbmsgbot.http_client import HttpClient from fbmsgbot.resources.urls import FACEBOOK_MESSAGES_POST_URL class TestHttpClient(unittest.TestCase): """ Test the HttpClient """ @httpretty.activate def test_submit_GET_request(self): httpret...
import unittest import httpretty from fbmsgbot.http_client import HttpClient from fbmsgbot.resources.urls import FACEBOOK_MESSAGES_POST_URL class TestHttpClient(unittest.TestCase): """ Test the HttpClient """ @httpretty.activate def test_submit_GET_request(self): httpretty.register_uri...
import unittest import httpretty from fbmsgbot.http_client import HttpClient from fbmsgbot.resources.urls import FACEBOOK_MESSAGES_POST_URL class TestHttpClient(unittest.TestCase): """ Test the HttpClient """ @httpretty.activate def test_submit_GET_request(self): httpretty.register_uri...
<commit_before>import unittest import httpretty from fbmsgbot.http_client import HttpClient from fbmsgbot.resources.urls import FACEBOOK_MESSAGES_POST_URL class TestHttpClient(unittest.TestCase): """ Test the HttpClient """ @httpretty.activate def test_submit_GET_request(self): httpret...
01382a617d075b468ea8a08087f298da5c55a46c
kolibri/core/bookmarks/models.py
kolibri/core/bookmarks/models.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models from django.utils import timezone from morango.models import UUIDField from kolibri.core.auth.models import AbstractFacilityDataModel from kolibri.core.auth.models import Facility from kolibri.core.auth.models import Facility...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models from django.utils import timezone from morango.models import UUIDField from kolibri.core.auth.models import AbstractFacilityDataModel from kolibri.core.auth.models import FacilityUser from kolibri.core.auth.permissions.genera...
Remove unnecessary cruft from Bookmark.infer_dataset
Remove unnecessary cruft from Bookmark.infer_dataset
Python
mit
learningequality/kolibri,learningequality/kolibri,learningequality/kolibri,learningequality/kolibri
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models from django.utils import timezone from morango.models import UUIDField from kolibri.core.auth.models import AbstractFacilityDataModel from kolibri.core.auth.models import Facility from kolibri.core.auth.models import Facility...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models from django.utils import timezone from morango.models import UUIDField from kolibri.core.auth.models import AbstractFacilityDataModel from kolibri.core.auth.models import FacilityUser from kolibri.core.auth.permissions.genera...
<commit_before># -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models from django.utils import timezone from morango.models import UUIDField from kolibri.core.auth.models import AbstractFacilityDataModel from kolibri.core.auth.models import Facility from kolibri.core.auth.models ...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models from django.utils import timezone from morango.models import UUIDField from kolibri.core.auth.models import AbstractFacilityDataModel from kolibri.core.auth.models import FacilityUser from kolibri.core.auth.permissions.genera...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models from django.utils import timezone from morango.models import UUIDField from kolibri.core.auth.models import AbstractFacilityDataModel from kolibri.core.auth.models import Facility from kolibri.core.auth.models import Facility...
<commit_before># -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models from django.utils import timezone from morango.models import UUIDField from kolibri.core.auth.models import AbstractFacilityDataModel from kolibri.core.auth.models import Facility from kolibri.core.auth.models ...
40aa16d48c58a17ab08ac526e1a8806214167a1b
carnifex/test/integration/test_local_process.py
carnifex/test/integration/test_local_process.py
from twisted.trial.unittest import TestCase from carnifex.localprocess import LocalProcessInductor from twisted.internet import reactor class InductorTest(TestCase): def test_real_run(self): executable = 'echo' echo_text = "hello world!" expected_stdout = echo_text + '\n' inductor...
from twisted.trial.unittest import TestCase from carnifex.localprocess import LocalProcessInductor from twisted.internet import reactor class InductorTest(TestCase): def test_real_run(self): executable = 'echo' echo_text = "hello world!" expected_stdout = echo_text + '\n' inductor...
Add more tests to the local process integration test
Add more tests to the local process integration test
Python
mit
sporsh/carnifex
from twisted.trial.unittest import TestCase from carnifex.localprocess import LocalProcessInductor from twisted.internet import reactor class InductorTest(TestCase): def test_real_run(self): executable = 'echo' echo_text = "hello world!" expected_stdout = echo_text + '\n' inductor...
from twisted.trial.unittest import TestCase from carnifex.localprocess import LocalProcessInductor from twisted.internet import reactor class InductorTest(TestCase): def test_real_run(self): executable = 'echo' echo_text = "hello world!" expected_stdout = echo_text + '\n' inductor...
<commit_before>from twisted.trial.unittest import TestCase from carnifex.localprocess import LocalProcessInductor from twisted.internet import reactor class InductorTest(TestCase): def test_real_run(self): executable = 'echo' echo_text = "hello world!" expected_stdout = echo_text + '\n' ...
from twisted.trial.unittest import TestCase from carnifex.localprocess import LocalProcessInductor from twisted.internet import reactor class InductorTest(TestCase): def test_real_run(self): executable = 'echo' echo_text = "hello world!" expected_stdout = echo_text + '\n' inductor...
from twisted.trial.unittest import TestCase from carnifex.localprocess import LocalProcessInductor from twisted.internet import reactor class InductorTest(TestCase): def test_real_run(self): executable = 'echo' echo_text = "hello world!" expected_stdout = echo_text + '\n' inductor...
<commit_before>from twisted.trial.unittest import TestCase from carnifex.localprocess import LocalProcessInductor from twisted.internet import reactor class InductorTest(TestCase): def test_real_run(self): executable = 'echo' echo_text = "hello world!" expected_stdout = echo_text + '\n' ...
411517f7130b3f40b589682dfb0aef63b0df609a
document/api.py
document/api.py
from rest_framework import serializers, viewsets from document.models import Document, Kamerstuk, Dossier class DossierSerializer(serializers.HyperlinkedModelSerializer): documents = serializers.HyperlinkedRelatedField(read_only=True, view_name='document-detail...
from rest_framework import serializers, viewsets from document.models import Document, Kamerstuk, Dossier class DossierSerializer(serializers.HyperlinkedModelSerializer): documents = serializers.HyperlinkedRelatedField(read_only=True, view_name='document-detail...
Add dossier title to API
Add dossier title to API
Python
mit
openkamer/openkamer,openkamer/openkamer,openkamer/openkamer,openkamer/openkamer
from rest_framework import serializers, viewsets from document.models import Document, Kamerstuk, Dossier class DossierSerializer(serializers.HyperlinkedModelSerializer): documents = serializers.HyperlinkedRelatedField(read_only=True, view_name='document-detail...
from rest_framework import serializers, viewsets from document.models import Document, Kamerstuk, Dossier class DossierSerializer(serializers.HyperlinkedModelSerializer): documents = serializers.HyperlinkedRelatedField(read_only=True, view_name='document-detail...
<commit_before>from rest_framework import serializers, viewsets from document.models import Document, Kamerstuk, Dossier class DossierSerializer(serializers.HyperlinkedModelSerializer): documents = serializers.HyperlinkedRelatedField(read_only=True, view_name='...
from rest_framework import serializers, viewsets from document.models import Document, Kamerstuk, Dossier class DossierSerializer(serializers.HyperlinkedModelSerializer): documents = serializers.HyperlinkedRelatedField(read_only=True, view_name='document-detail...
from rest_framework import serializers, viewsets from document.models import Document, Kamerstuk, Dossier class DossierSerializer(serializers.HyperlinkedModelSerializer): documents = serializers.HyperlinkedRelatedField(read_only=True, view_name='document-detail...
<commit_before>from rest_framework import serializers, viewsets from document.models import Document, Kamerstuk, Dossier class DossierSerializer(serializers.HyperlinkedModelSerializer): documents = serializers.HyperlinkedRelatedField(read_only=True, view_name='...
446da2ceffb49fe694026c3e8d3c7f24cdcc4215
tests.py
tests.py
"""Test suite for Mann.""" # -*- coding: utf-8 -*- import unittest from colour_runner import runner as crunner # from mypleasure.mann import Mann class ConsoleTestCase(unittest.TestCase): """Test console logger.""" def runTest(self): # noqa pass def suite(): """Compose and return test suite."""...
"""Test suite for Mann.""" # -*- coding: utf-8 -*- import sys import unittest from io import StringIO from colour_runner import runner as crunner from mypleasure.mann import Mann class ConsoleTestCase(unittest.TestCase): """Test console logger.""" def runTest(self): # noqa try: out = Stri...
Create test for console output.
Create test for console output.
Python
mit
mypleasureteam/mann
"""Test suite for Mann.""" # -*- coding: utf-8 -*- import unittest from colour_runner import runner as crunner # from mypleasure.mann import Mann class ConsoleTestCase(unittest.TestCase): """Test console logger.""" def runTest(self): # noqa pass def suite(): """Compose and return test suite."""...
"""Test suite for Mann.""" # -*- coding: utf-8 -*- import sys import unittest from io import StringIO from colour_runner import runner as crunner from mypleasure.mann import Mann class ConsoleTestCase(unittest.TestCase): """Test console logger.""" def runTest(self): # noqa try: out = Stri...
<commit_before>"""Test suite for Mann.""" # -*- coding: utf-8 -*- import unittest from colour_runner import runner as crunner # from mypleasure.mann import Mann class ConsoleTestCase(unittest.TestCase): """Test console logger.""" def runTest(self): # noqa pass def suite(): """Compose and return...
"""Test suite for Mann.""" # -*- coding: utf-8 -*- import sys import unittest from io import StringIO from colour_runner import runner as crunner from mypleasure.mann import Mann class ConsoleTestCase(unittest.TestCase): """Test console logger.""" def runTest(self): # noqa try: out = Stri...
"""Test suite for Mann.""" # -*- coding: utf-8 -*- import unittest from colour_runner import runner as crunner # from mypleasure.mann import Mann class ConsoleTestCase(unittest.TestCase): """Test console logger.""" def runTest(self): # noqa pass def suite(): """Compose and return test suite."""...
<commit_before>"""Test suite for Mann.""" # -*- coding: utf-8 -*- import unittest from colour_runner import runner as crunner # from mypleasure.mann import Mann class ConsoleTestCase(unittest.TestCase): """Test console logger.""" def runTest(self): # noqa pass def suite(): """Compose and return...
b19951bcf2035c9e755ad731e4f5081cf5f0d46f
troposphere/codeguruprofiler.py
troposphere/codeguruprofiler.py
# Copyright (c) 2020, Mark Peek <mark@peek.org> # All rights reserved. # # See LICENSE file for full license. from . import AWSObject class ProfilingGroup(AWSObject): resource_type = "AWS::CodeGuruProfiler::ProfilingGroup" props = { 'ProfilingGroupName': (basestring, True), }
# Copyright (c) 2020, Mark Peek <mark@peek.org> # All rights reserved. # # See LICENSE file for full license. from . import AWSObject class ProfilingGroup(AWSObject): resource_type = "AWS::CodeGuruProfiler::ProfilingGroup" props = { 'AgentPermissions': (dict, False), 'ProfilingGroupName': (b...
Update AWS::CodeGuruProfiler::ProfilingGroup per 2020-06-03 changes
Update AWS::CodeGuruProfiler::ProfilingGroup per 2020-06-03 changes
Python
bsd-2-clause
cloudtools/troposphere,cloudtools/troposphere
# Copyright (c) 2020, Mark Peek <mark@peek.org> # All rights reserved. # # See LICENSE file for full license. from . import AWSObject class ProfilingGroup(AWSObject): resource_type = "AWS::CodeGuruProfiler::ProfilingGroup" props = { 'ProfilingGroupName': (basestring, True), } Update AWS::CodeGur...
# Copyright (c) 2020, Mark Peek <mark@peek.org> # All rights reserved. # # See LICENSE file for full license. from . import AWSObject class ProfilingGroup(AWSObject): resource_type = "AWS::CodeGuruProfiler::ProfilingGroup" props = { 'AgentPermissions': (dict, False), 'ProfilingGroupName': (b...
<commit_before># Copyright (c) 2020, Mark Peek <mark@peek.org> # All rights reserved. # # See LICENSE file for full license. from . import AWSObject class ProfilingGroup(AWSObject): resource_type = "AWS::CodeGuruProfiler::ProfilingGroup" props = { 'ProfilingGroupName': (basestring, True), } <com...
# Copyright (c) 2020, Mark Peek <mark@peek.org> # All rights reserved. # # See LICENSE file for full license. from . import AWSObject class ProfilingGroup(AWSObject): resource_type = "AWS::CodeGuruProfiler::ProfilingGroup" props = { 'AgentPermissions': (dict, False), 'ProfilingGroupName': (b...
# Copyright (c) 2020, Mark Peek <mark@peek.org> # All rights reserved. # # See LICENSE file for full license. from . import AWSObject class ProfilingGroup(AWSObject): resource_type = "AWS::CodeGuruProfiler::ProfilingGroup" props = { 'ProfilingGroupName': (basestring, True), } Update AWS::CodeGur...
<commit_before># Copyright (c) 2020, Mark Peek <mark@peek.org> # All rights reserved. # # See LICENSE file for full license. from . import AWSObject class ProfilingGroup(AWSObject): resource_type = "AWS::CodeGuruProfiler::ProfilingGroup" props = { 'ProfilingGroupName': (basestring, True), } <com...
22a0968d92ef81e021aeae5ab4fd724cc64a3f8c
saleor/site/utils.py
saleor/site/utils.py
from django.conf import settings from .models import SiteSetting def get_site_settings(request): if not hasattr(request, 'site_settings'): site_settings_id = getattr(settings, 'SITE_SETTINGS_ID', None) request.site_settings = get_site_settings_uncached(site_settings_id) return request.site_se...
from django.conf import settings from .models import SiteSetting def get_site_settings(request): if not hasattr(request, 'site_settings'): site_settings_id = getattr(settings, 'SITE_SETTINGS_ID', None) request.site_settings = get_site_settings_uncached(site_settings_id) return request.site_se...
Define function for getting setting value by key
Define function for getting setting value by key
Python
bsd-3-clause
KenMutemi/saleor,maferelo/saleor,mociepka/saleor,HyperManTT/ECommerceSaleor,maferelo/saleor,jreigel/saleor,KenMutemi/saleor,itbabu/saleor,UITools/saleor,maferelo/saleor,itbabu/saleor,tfroehlich82/saleor,UITools/saleor,jreigel/saleor,car3oon/saleor,tfroehlich82/saleor,tfroehlich82/saleor,jreigel/saleor,mociepka/saleor,U...
from django.conf import settings from .models import SiteSetting def get_site_settings(request): if not hasattr(request, 'site_settings'): site_settings_id = getattr(settings, 'SITE_SETTINGS_ID', None) request.site_settings = get_site_settings_uncached(site_settings_id) return request.site_se...
from django.conf import settings from .models import SiteSetting def get_site_settings(request): if not hasattr(request, 'site_settings'): site_settings_id = getattr(settings, 'SITE_SETTINGS_ID', None) request.site_settings = get_site_settings_uncached(site_settings_id) return request.site_se...
<commit_before>from django.conf import settings from .models import SiteSetting def get_site_settings(request): if not hasattr(request, 'site_settings'): site_settings_id = getattr(settings, 'SITE_SETTINGS_ID', None) request.site_settings = get_site_settings_uncached(site_settings_id) return ...
from django.conf import settings from .models import SiteSetting def get_site_settings(request): if not hasattr(request, 'site_settings'): site_settings_id = getattr(settings, 'SITE_SETTINGS_ID', None) request.site_settings = get_site_settings_uncached(site_settings_id) return request.site_se...
from django.conf import settings from .models import SiteSetting def get_site_settings(request): if not hasattr(request, 'site_settings'): site_settings_id = getattr(settings, 'SITE_SETTINGS_ID', None) request.site_settings = get_site_settings_uncached(site_settings_id) return request.site_se...
<commit_before>from django.conf import settings from .models import SiteSetting def get_site_settings(request): if not hasattr(request, 'site_settings'): site_settings_id = getattr(settings, 'SITE_SETTINGS_ID', None) request.site_settings = get_site_settings_uncached(site_settings_id) return ...
7caa677b300340b62f999ed3733e95fb431da9d4
views.py
views.py
from django.shortcuts import render, HttpResponse from django.shortcuts import HttpResponseRedirect from django.template import Context, Template from models import UploadFileForm from models import extGenOptimizer1 OPTIONS = """ header: { left: 'prev,next today', center: 'title', right: 'month,agendaWeek', }, defau...
from django.shortcuts import render, HttpResponse from django.shortcuts import HttpResponseRedirect from django.template import Context, Template from django.middleware.csrf import rotate_token from models import UploadFileForm from models import extGenOptimizer1 OPTIONS = """ header: { left: 'prev,next today', cent...
Add rotation of CSRF token to prevent form resubmission
Add rotation of CSRF token to prevent form resubmission
Python
mit
cameronlai/EXT_GEN,cameronlai/EXT_GEN
from django.shortcuts import render, HttpResponse from django.shortcuts import HttpResponseRedirect from django.template import Context, Template from models import UploadFileForm from models import extGenOptimizer1 OPTIONS = """ header: { left: 'prev,next today', center: 'title', right: 'month,agendaWeek', }, defau...
from django.shortcuts import render, HttpResponse from django.shortcuts import HttpResponseRedirect from django.template import Context, Template from django.middleware.csrf import rotate_token from models import UploadFileForm from models import extGenOptimizer1 OPTIONS = """ header: { left: 'prev,next today', cent...
<commit_before>from django.shortcuts import render, HttpResponse from django.shortcuts import HttpResponseRedirect from django.template import Context, Template from models import UploadFileForm from models import extGenOptimizer1 OPTIONS = """ header: { left: 'prev,next today', center: 'title', right: 'month,agenda...
from django.shortcuts import render, HttpResponse from django.shortcuts import HttpResponseRedirect from django.template import Context, Template from django.middleware.csrf import rotate_token from models import UploadFileForm from models import extGenOptimizer1 OPTIONS = """ header: { left: 'prev,next today', cent...
from django.shortcuts import render, HttpResponse from django.shortcuts import HttpResponseRedirect from django.template import Context, Template from models import UploadFileForm from models import extGenOptimizer1 OPTIONS = """ header: { left: 'prev,next today', center: 'title', right: 'month,agendaWeek', }, defau...
<commit_before>from django.shortcuts import render, HttpResponse from django.shortcuts import HttpResponseRedirect from django.template import Context, Template from models import UploadFileForm from models import extGenOptimizer1 OPTIONS = """ header: { left: 'prev,next today', center: 'title', right: 'month,agenda...
8a821cb62a35547417fcd56d02486e5cc2d8494f
xzarr.py
xzarr.py
from .base import DataSourceMixin class ZarrSource(DataSourceMixin): """Open a xarray dataset. Parameters ---------- urlpath: str Path to source. This can be a local directory or a remote data service (i.e., with a protocol specifier like ``'s3://``). storage_options: dict ...
from .base import DataSourceMixin class ZarrSource(DataSourceMixin): """Open a xarray dataset. Parameters ---------- urlpath: str Path to source. This can be a local directory or a remote data service (i.e., with a protocol specifier like ``'s3://``). storage_options: dict ...
Make work with any filesystem
Make work with any filesystem
Python
bsd-3-clause
ericdill/databroker,ericdill/databroker
from .base import DataSourceMixin class ZarrSource(DataSourceMixin): """Open a xarray dataset. Parameters ---------- urlpath: str Path to source. This can be a local directory or a remote data service (i.e., with a protocol specifier like ``'s3://``). storage_options: dict ...
from .base import DataSourceMixin class ZarrSource(DataSourceMixin): """Open a xarray dataset. Parameters ---------- urlpath: str Path to source. This can be a local directory or a remote data service (i.e., with a protocol specifier like ``'s3://``). storage_options: dict ...
<commit_before>from .base import DataSourceMixin class ZarrSource(DataSourceMixin): """Open a xarray dataset. Parameters ---------- urlpath: str Path to source. This can be a local directory or a remote data service (i.e., with a protocol specifier like ``'s3://``). storage_option...
from .base import DataSourceMixin class ZarrSource(DataSourceMixin): """Open a xarray dataset. Parameters ---------- urlpath: str Path to source. This can be a local directory or a remote data service (i.e., with a protocol specifier like ``'s3://``). storage_options: dict ...
from .base import DataSourceMixin class ZarrSource(DataSourceMixin): """Open a xarray dataset. Parameters ---------- urlpath: str Path to source. This can be a local directory or a remote data service (i.e., with a protocol specifier like ``'s3://``). storage_options: dict ...
<commit_before>from .base import DataSourceMixin class ZarrSource(DataSourceMixin): """Open a xarray dataset. Parameters ---------- urlpath: str Path to source. This can be a local directory or a remote data service (i.e., with a protocol specifier like ``'s3://``). storage_option...
f04e32cf6731e8900fa85b1814d9a68da1bcaa9d
vimeo/auth/authorization_code.py
vimeo/auth/authorization_code.py
#! /usr/bin/env python # encoding: utf-8 from __future__ import absolute_import import urllib from .base import AuthenticationMixinBase from . import GrantFailed try: basestring except NameError: basestring = str class AuthorizationCodeMixin(AuthenticationMixinBase): """Implement helpers for the Authori...
#! /usr/bin/env python # encoding: utf-8 from __future__ import absolute_import from .base import AuthenticationMixinBase from . import GrantFailed # We need to get urlencode from urllib.parse in Python 3, but fall back to # urllib in Python 2 try: from urllib.parse import urlencode except ImportError: from ...
Make urlencode load properly in python 3.
Make urlencode load properly in python 3.
Python
apache-2.0
blorenz/vimeo.py,vimeo/vimeo.py,gabrielgisoldo/vimeo.py,greedo/vimeo.py
#! /usr/bin/env python # encoding: utf-8 from __future__ import absolute_import import urllib from .base import AuthenticationMixinBase from . import GrantFailed try: basestring except NameError: basestring = str class AuthorizationCodeMixin(AuthenticationMixinBase): """Implement helpers for the Authori...
#! /usr/bin/env python # encoding: utf-8 from __future__ import absolute_import from .base import AuthenticationMixinBase from . import GrantFailed # We need to get urlencode from urllib.parse in Python 3, but fall back to # urllib in Python 2 try: from urllib.parse import urlencode except ImportError: from ...
<commit_before>#! /usr/bin/env python # encoding: utf-8 from __future__ import absolute_import import urllib from .base import AuthenticationMixinBase from . import GrantFailed try: basestring except NameError: basestring = str class AuthorizationCodeMixin(AuthenticationMixinBase): """Implement helpers ...
#! /usr/bin/env python # encoding: utf-8 from __future__ import absolute_import from .base import AuthenticationMixinBase from . import GrantFailed # We need to get urlencode from urllib.parse in Python 3, but fall back to # urllib in Python 2 try: from urllib.parse import urlencode except ImportError: from ...
#! /usr/bin/env python # encoding: utf-8 from __future__ import absolute_import import urllib from .base import AuthenticationMixinBase from . import GrantFailed try: basestring except NameError: basestring = str class AuthorizationCodeMixin(AuthenticationMixinBase): """Implement helpers for the Authori...
<commit_before>#! /usr/bin/env python # encoding: utf-8 from __future__ import absolute_import import urllib from .base import AuthenticationMixinBase from . import GrantFailed try: basestring except NameError: basestring = str class AuthorizationCodeMixin(AuthenticationMixinBase): """Implement helpers ...
483e04671095eedabc8972982dd2109a5329c603
tests/test_templatetags.py
tests/test_templatetags.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ test_templatetags ------------------- Tests for `columns.templatetags` module. """ import unittest from columns.templatetags.columns import rows, columns class TestColumns(unittest.TestCase): def test_columns(self): data = range(7) result = ro...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ test_templatetags ------------------- Tests for `columns.templatetags` module. """ import unittest from columns.templatetags.columns import columns class TestColumns(unittest.TestCase): def test_columns(self): data = range(7) result = columns(...
Fix tests to match updated defs.
Fix tests to match updated defs.
Python
bsd-3-clause
audreyr/django-columns,audreyr/django-columns,audreyr/django-columns
#!/usr/bin/env python # -*- coding: utf-8 -*- """ test_templatetags ------------------- Tests for `columns.templatetags` module. """ import unittest from columns.templatetags.columns import rows, columns class TestColumns(unittest.TestCase): def test_columns(self): data = range(7) result = ro...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ test_templatetags ------------------- Tests for `columns.templatetags` module. """ import unittest from columns.templatetags.columns import columns class TestColumns(unittest.TestCase): def test_columns(self): data = range(7) result = columns(...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- """ test_templatetags ------------------- Tests for `columns.templatetags` module. """ import unittest from columns.templatetags.columns import rows, columns class TestColumns(unittest.TestCase): def test_columns(self): data = range(7) ...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ test_templatetags ------------------- Tests for `columns.templatetags` module. """ import unittest from columns.templatetags.columns import columns class TestColumns(unittest.TestCase): def test_columns(self): data = range(7) result = columns(...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ test_templatetags ------------------- Tests for `columns.templatetags` module. """ import unittest from columns.templatetags.columns import rows, columns class TestColumns(unittest.TestCase): def test_columns(self): data = range(7) result = ro...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- """ test_templatetags ------------------- Tests for `columns.templatetags` module. """ import unittest from columns.templatetags.columns import rows, columns class TestColumns(unittest.TestCase): def test_columns(self): data = range(7) ...
272d4bab431cd2b4e2010f3a7cd5b1c236bdacb4
Export.py
Export.py
import sqlite3 def main(): conn = sqlite3.connect("database") cursor = conn.cursor() # I claim this gives the current score. Another formulation is # select trackid, score, max(scoreid) from scores group by trackid; # cursor.execute("""select trackid, score from scores # group b...
import sqlite3 def main(): conn = sqlite3.connect("database") cursor = conn.cursor() # I claim this gives the current score. Another formulation is # select trackid, score, max(scoreid) from scores group by trackid; # cursor.execute("""select trackid, score from scores # group b...
Use new column for score.
Use new column for score.
Python
bsd-3-clause
erbridge/NQr,erbridge/NQr,erbridge/NQr
import sqlite3 def main(): conn = sqlite3.connect("database") cursor = conn.cursor() # I claim this gives the current score. Another formulation is # select trackid, score, max(scoreid) from scores group by trackid; # cursor.execute("""select trackid, score from scores # group b...
import sqlite3 def main(): conn = sqlite3.connect("database") cursor = conn.cursor() # I claim this gives the current score. Another formulation is # select trackid, score, max(scoreid) from scores group by trackid; # cursor.execute("""select trackid, score from scores # group b...
<commit_before>import sqlite3 def main(): conn = sqlite3.connect("database") cursor = conn.cursor() # I claim this gives the current score. Another formulation is # select trackid, score, max(scoreid) from scores group by trackid; # cursor.execute("""select trackid, score from scores # ...
import sqlite3 def main(): conn = sqlite3.connect("database") cursor = conn.cursor() # I claim this gives the current score. Another formulation is # select trackid, score, max(scoreid) from scores group by trackid; # cursor.execute("""select trackid, score from scores # group b...
import sqlite3 def main(): conn = sqlite3.connect("database") cursor = conn.cursor() # I claim this gives the current score. Another formulation is # select trackid, score, max(scoreid) from scores group by trackid; # cursor.execute("""select trackid, score from scores # group b...
<commit_before>import sqlite3 def main(): conn = sqlite3.connect("database") cursor = conn.cursor() # I claim this gives the current score. Another formulation is # select trackid, score, max(scoreid) from scores group by trackid; # cursor.execute("""select trackid, score from scores # ...
005d74dcb1f1f3e576af71e7cb3fb1e1d6d4df08
scripts/lib/paths.py
scripts/lib/paths.py
details_source = './source/details/' xml_source = './source/raw_xml/' term_dest = './courses/terms/' course_dest = './source/courses/' info_path = './courses/info.json' mappings_path = './related-data/generated/' handmade_path = './related-data/handmade/' def find_details_subdir(clbid): str_clbid ...
details_source = './source/details/' xml_source = './source/raw_xml/' term_dest = './courses/terms/' course_dest = './source/courses/' info_path = './courses/info.json' mappings_path = './related-data/generated/' handmade_path = './related-data/handmade/' def find_details_subdir(clbid): str_clbid ...
Remove the allocation of a variable in make_course_path
Remove the allocation of a variable in make_course_path
Python
mit
StoDevX/course-data-tools,StoDevX/course-data-tools
details_source = './source/details/' xml_source = './source/raw_xml/' term_dest = './courses/terms/' course_dest = './source/courses/' info_path = './courses/info.json' mappings_path = './related-data/generated/' handmade_path = './related-data/handmade/' def find_details_subdir(clbid): str_clbid ...
details_source = './source/details/' xml_source = './source/raw_xml/' term_dest = './courses/terms/' course_dest = './source/courses/' info_path = './courses/info.json' mappings_path = './related-data/generated/' handmade_path = './related-data/handmade/' def find_details_subdir(clbid): str_clbid ...
<commit_before>details_source = './source/details/' xml_source = './source/raw_xml/' term_dest = './courses/terms/' course_dest = './source/courses/' info_path = './courses/info.json' mappings_path = './related-data/generated/' handmade_path = './related-data/handmade/' def find_details_subdir(clbi...
details_source = './source/details/' xml_source = './source/raw_xml/' term_dest = './courses/terms/' course_dest = './source/courses/' info_path = './courses/info.json' mappings_path = './related-data/generated/' handmade_path = './related-data/handmade/' def find_details_subdir(clbid): str_clbid ...
details_source = './source/details/' xml_source = './source/raw_xml/' term_dest = './courses/terms/' course_dest = './source/courses/' info_path = './courses/info.json' mappings_path = './related-data/generated/' handmade_path = './related-data/handmade/' def find_details_subdir(clbid): str_clbid ...
<commit_before>details_source = './source/details/' xml_source = './source/raw_xml/' term_dest = './courses/terms/' course_dest = './source/courses/' info_path = './courses/info.json' mappings_path = './related-data/generated/' handmade_path = './related-data/handmade/' def find_details_subdir(clbi...
e30b9cfd55b91424de62e5ac9fcdb0464a78f37e
testtube/tests/__init__.py
testtube/tests/__init__.py
import sys if sys.version_info[:2] < (2, 7): import unittest2 as unittest else: import unittest
import sys if sys.version_info[:2] < (2, 7): import unittest2 as unittest # NOQA else: import unittest # NOQA if sys.version_info < (3,): from mock import Mock, patch # NOQA else: from unittest.mock import Mock, patch # NOQA # Frosted doesn't yet support noqa flags, so this hides the imported/un...
Make import mock.Mock or unittest.mock.Mock easier
Make import mock.Mock or unittest.mock.Mock easier
Python
mit
thomasw/testtube,beck/testtube,blaix/testtube
import sys if sys.version_info[:2] < (2, 7): import unittest2 as unittest else: import unittest Make import mock.Mock or unittest.mock.Mock easier
import sys if sys.version_info[:2] < (2, 7): import unittest2 as unittest # NOQA else: import unittest # NOQA if sys.version_info < (3,): from mock import Mock, patch # NOQA else: from unittest.mock import Mock, patch # NOQA # Frosted doesn't yet support noqa flags, so this hides the imported/un...
<commit_before>import sys if sys.version_info[:2] < (2, 7): import unittest2 as unittest else: import unittest <commit_msg>Make import mock.Mock or unittest.mock.Mock easier<commit_after>
import sys if sys.version_info[:2] < (2, 7): import unittest2 as unittest # NOQA else: import unittest # NOQA if sys.version_info < (3,): from mock import Mock, patch # NOQA else: from unittest.mock import Mock, patch # NOQA # Frosted doesn't yet support noqa flags, so this hides the imported/un...
import sys if sys.version_info[:2] < (2, 7): import unittest2 as unittest else: import unittest Make import mock.Mock or unittest.mock.Mock easierimport sys if sys.version_info[:2] < (2, 7): import unittest2 as unittest # NOQA else: import unittest # NOQA if sys.version_info < (3,): from mock i...
<commit_before>import sys if sys.version_info[:2] < (2, 7): import unittest2 as unittest else: import unittest <commit_msg>Make import mock.Mock or unittest.mock.Mock easier<commit_after>import sys if sys.version_info[:2] < (2, 7): import unittest2 as unittest # NOQA else: import unittest # NOQA if...
e9edc74a28442c2f519d4a3c40253f7844c9ca2f
thecut/authorship/forms.py
thecut/authorship/forms.py
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals class AuthorshipFormMixin(object): """Set the ``created_by`` and ``updated_by`` fields on a model. This form requires that a property, ``self.user`` be set to an instance of :py:class`~django.contrib.auth.models.User` before...
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals class AuthorshipFormMixin(object): """Set the ``created_by`` and ``updated_by`` fields on a model. Requires that a ``User`` instance be passed in to the constructor. Views that inherit from ``AuthorshipViewMixin`` automatica...
Set the `self.user` property on the `AuthorshipFormMixin`.
Set the `self.user` property on the `AuthorshipFormMixin`.
Python
apache-2.0
thecut/thecut-authorship
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals class AuthorshipFormMixin(object): """Set the ``created_by`` and ``updated_by`` fields on a model. This form requires that a property, ``self.user`` be set to an instance of :py:class`~django.contrib.auth.models.User` before...
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals class AuthorshipFormMixin(object): """Set the ``created_by`` and ``updated_by`` fields on a model. Requires that a ``User`` instance be passed in to the constructor. Views that inherit from ``AuthorshipViewMixin`` automatica...
<commit_before># -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals class AuthorshipFormMixin(object): """Set the ``created_by`` and ``updated_by`` fields on a model. This form requires that a property, ``self.user`` be set to an instance of :py:class`~django.contrib.auth.mode...
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals class AuthorshipFormMixin(object): """Set the ``created_by`` and ``updated_by`` fields on a model. Requires that a ``User`` instance be passed in to the constructor. Views that inherit from ``AuthorshipViewMixin`` automatica...
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals class AuthorshipFormMixin(object): """Set the ``created_by`` and ``updated_by`` fields on a model. This form requires that a property, ``self.user`` be set to an instance of :py:class`~django.contrib.auth.models.User` before...
<commit_before># -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals class AuthorshipFormMixin(object): """Set the ``created_by`` and ``updated_by`` fields on a model. This form requires that a property, ``self.user`` be set to an instance of :py:class`~django.contrib.auth.mode...
013c359fff199e20b2359d3b59526ca7d9ad2932
velvet/test/test_utils.py
velvet/test/test_utils.py
#!/usr/bin/env python #------------------------------------------------------------------------ # Copyright (c) 2015 SGW # # Distributed under the terms of the New BSD License. # # The full License is in the file LICENSE #------------------------------------------------------------------------ import unittest import ...
#!/usr/bin/env python #------------------------------------------------------------------------ # Copyright (c) 2015 SGW # # Distributed under the terms of the New BSD License. # # The full License is in the file LICENSE #------------------------------------------------------------------------ import unittest import ...
Fix bug in unit test
Fix bug in unit test
Python
bsd-3-clause
sgwoodjr/velvet
#!/usr/bin/env python #------------------------------------------------------------------------ # Copyright (c) 2015 SGW # # Distributed under the terms of the New BSD License. # # The full License is in the file LICENSE #------------------------------------------------------------------------ import unittest import ...
#!/usr/bin/env python #------------------------------------------------------------------------ # Copyright (c) 2015 SGW # # Distributed under the terms of the New BSD License. # # The full License is in the file LICENSE #------------------------------------------------------------------------ import unittest import ...
<commit_before>#!/usr/bin/env python #------------------------------------------------------------------------ # Copyright (c) 2015 SGW # # Distributed under the terms of the New BSD License. # # The full License is in the file LICENSE #------------------------------------------------------------------------ import u...
#!/usr/bin/env python #------------------------------------------------------------------------ # Copyright (c) 2015 SGW # # Distributed under the terms of the New BSD License. # # The full License is in the file LICENSE #------------------------------------------------------------------------ import unittest import ...
#!/usr/bin/env python #------------------------------------------------------------------------ # Copyright (c) 2015 SGW # # Distributed under the terms of the New BSD License. # # The full License is in the file LICENSE #------------------------------------------------------------------------ import unittest import ...
<commit_before>#!/usr/bin/env python #------------------------------------------------------------------------ # Copyright (c) 2015 SGW # # Distributed under the terms of the New BSD License. # # The full License is in the file LICENSE #------------------------------------------------------------------------ import u...
3df3f72b54068deaca51ce2b4c52c185bf8f4526
virtool/uploads/models.py
virtool/uploads/models.py
import enum from sqlalchemy import Column, String, Boolean, Integer, DateTime, Enum from virtool.postgres import Base class UploadType(enum.Enum): hmm = "hmm" reference = "reference" reads = "reads" subtraction = "subtraction" null = None class Upload(Base): __tablename__ = "uploads" ...
import enum from sqlalchemy import Column, String, Boolean, Integer, DateTime, Enum from virtool.postgres import Base class UploadType(str, enum.Enum): hmm = "hmm" reference = "reference" reads = "reads" subtraction = "subtraction" null = None class Upload(Base): __tablename__ = "uploads" ...
Declare subclass of `UploadType` to be `str`
Declare subclass of `UploadType` to be `str` * Fixes issues with JSON serializing * Revert `__repr__` string format changes as the newlines created large gaps of whitespace
Python
mit
virtool/virtool,igboyes/virtool,igboyes/virtool,virtool/virtool
import enum from sqlalchemy import Column, String, Boolean, Integer, DateTime, Enum from virtool.postgres import Base class UploadType(enum.Enum): hmm = "hmm" reference = "reference" reads = "reads" subtraction = "subtraction" null = None class Upload(Base): __tablename__ = "uploads" ...
import enum from sqlalchemy import Column, String, Boolean, Integer, DateTime, Enum from virtool.postgres import Base class UploadType(str, enum.Enum): hmm = "hmm" reference = "reference" reads = "reads" subtraction = "subtraction" null = None class Upload(Base): __tablename__ = "uploads" ...
<commit_before>import enum from sqlalchemy import Column, String, Boolean, Integer, DateTime, Enum from virtool.postgres import Base class UploadType(enum.Enum): hmm = "hmm" reference = "reference" reads = "reads" subtraction = "subtraction" null = None class Upload(Base): __tablename__ = ...
import enum from sqlalchemy import Column, String, Boolean, Integer, DateTime, Enum from virtool.postgres import Base class UploadType(str, enum.Enum): hmm = "hmm" reference = "reference" reads = "reads" subtraction = "subtraction" null = None class Upload(Base): __tablename__ = "uploads" ...
import enum from sqlalchemy import Column, String, Boolean, Integer, DateTime, Enum from virtool.postgres import Base class UploadType(enum.Enum): hmm = "hmm" reference = "reference" reads = "reads" subtraction = "subtraction" null = None class Upload(Base): __tablename__ = "uploads" ...
<commit_before>import enum from sqlalchemy import Column, String, Boolean, Integer, DateTime, Enum from virtool.postgres import Base class UploadType(enum.Enum): hmm = "hmm" reference = "reference" reads = "reads" subtraction = "subtraction" null = None class Upload(Base): __tablename__ = ...
778fccf168a47f80dcc92373a92964467343bcce
topics/lemmatize_folder.py
topics/lemmatize_folder.py
import os import sys import re import subprocess def lemmatize( text ): text = text.encode('utf8') text = re.sub( '[\.,?!:;]' , '' , text ) out = subprocess.check_output( 'module load finnish-process; echo "' + text + '" | finnish-process', shell = True) lemma = '' for line in out.split('\n'): ...
import os import sys import re import subprocess def lemmatize( text ): text = text.encode('utf8') text = re.sub( '[\.,?!:;]' , '' , text ) out = subprocess.check_output( 'module load finnish-process; echo "' + text + '" | finnish-process', shell = True) lemma = '' for line in out.split('\n'): ...
Write access to new output file
Write access to new output file
Python
mit
HIIT/digivaalit-2015,HIIT/digivaalit-2015,HIIT/digivaalit-2015
import os import sys import re import subprocess def lemmatize( text ): text = text.encode('utf8') text = re.sub( '[\.,?!:;]' , '' , text ) out = subprocess.check_output( 'module load finnish-process; echo "' + text + '" | finnish-process', shell = True) lemma = '' for line in out.split('\n'): ...
import os import sys import re import subprocess def lemmatize( text ): text = text.encode('utf8') text = re.sub( '[\.,?!:;]' , '' , text ) out = subprocess.check_output( 'module load finnish-process; echo "' + text + '" | finnish-process', shell = True) lemma = '' for line in out.split('\n'): ...
<commit_before>import os import sys import re import subprocess def lemmatize( text ): text = text.encode('utf8') text = re.sub( '[\.,?!:;]' , '' , text ) out = subprocess.check_output( 'module load finnish-process; echo "' + text + '" | finnish-process', shell = True) lemma = '' for line in out...
import os import sys import re import subprocess def lemmatize( text ): text = text.encode('utf8') text = re.sub( '[\.,?!:;]' , '' , text ) out = subprocess.check_output( 'module load finnish-process; echo "' + text + '" | finnish-process', shell = True) lemma = '' for line in out.split('\n'): ...
import os import sys import re import subprocess def lemmatize( text ): text = text.encode('utf8') text = re.sub( '[\.,?!:;]' , '' , text ) out = subprocess.check_output( 'module load finnish-process; echo "' + text + '" | finnish-process', shell = True) lemma = '' for line in out.split('\n'): ...
<commit_before>import os import sys import re import subprocess def lemmatize( text ): text = text.encode('utf8') text = re.sub( '[\.,?!:;]' , '' , text ) out = subprocess.check_output( 'module load finnish-process; echo "' + text + '" | finnish-process', shell = True) lemma = '' for line in out...
cdf674fc65491c72723d068e72f9ba9f85c5b482
django_summernote/__init__.py
django_summernote/__init__.py
version_info = (0, 8, 11, 6) __version__ = version = '.'.join(map(str, version_info)) __project__ = PROJECT = 'django-summernote' __author__ = AUTHOR = "django-summernote contributors" default_app_config = 'django_summernote.apps.DjangoSummernoteConfig'
version_info = (0, 8, 11, 6) __version__ = version = '.'.join(map(str, version_info)) __project__ = PROJECT = 'django-summernote' __author__ = AUTHOR = "django-summernote contributors" from django import VERSION as django_version if django_version < (3, 2): default_app_config = 'django_summernote.apps.DjangoSumme...
Fix default_app_config problem with Django >= 3.20
Fix default_app_config problem with Django >= 3.20
Python
mit
summernote/django-summernote,summernote/django-summernote,summernote/django-summernote
version_info = (0, 8, 11, 6) __version__ = version = '.'.join(map(str, version_info)) __project__ = PROJECT = 'django-summernote' __author__ = AUTHOR = "django-summernote contributors" default_app_config = 'django_summernote.apps.DjangoSummernoteConfig' Fix default_app_config problem with Django >= 3.20
version_info = (0, 8, 11, 6) __version__ = version = '.'.join(map(str, version_info)) __project__ = PROJECT = 'django-summernote' __author__ = AUTHOR = "django-summernote contributors" from django import VERSION as django_version if django_version < (3, 2): default_app_config = 'django_summernote.apps.DjangoSumme...
<commit_before>version_info = (0, 8, 11, 6) __version__ = version = '.'.join(map(str, version_info)) __project__ = PROJECT = 'django-summernote' __author__ = AUTHOR = "django-summernote contributors" default_app_config = 'django_summernote.apps.DjangoSummernoteConfig' <commit_msg>Fix default_app_config problem with ...
version_info = (0, 8, 11, 6) __version__ = version = '.'.join(map(str, version_info)) __project__ = PROJECT = 'django-summernote' __author__ = AUTHOR = "django-summernote contributors" from django import VERSION as django_version if django_version < (3, 2): default_app_config = 'django_summernote.apps.DjangoSumme...
version_info = (0, 8, 11, 6) __version__ = version = '.'.join(map(str, version_info)) __project__ = PROJECT = 'django-summernote' __author__ = AUTHOR = "django-summernote contributors" default_app_config = 'django_summernote.apps.DjangoSummernoteConfig' Fix default_app_config problem with Django >= 3.20version_info ...
<commit_before>version_info = (0, 8, 11, 6) __version__ = version = '.'.join(map(str, version_info)) __project__ = PROJECT = 'django-summernote' __author__ = AUTHOR = "django-summernote contributors" default_app_config = 'django_summernote.apps.DjangoSummernoteConfig' <commit_msg>Fix default_app_config problem with ...
298a60fa2ad56cb6bfbf4a9821b547e5b197384c
django_replicated/decorators.py
django_replicated/decorators.py
# -*- coding:utf-8 -*- ''' Decorators for using specific routing state for particular requests. Used in cases when automatic switching based on request method doesn't work. Usage: from django_replicated.decorators import use_master, use_slave @use_master def my_view(request, ...): # master databa...
# -*- coding:utf-8 -*- ''' Decorators for using specific routing state for particular requests. Used in cases when automatic switching based on request method doesn't work. Usage: from django_replicated.decorators import use_master, use_slave @use_master def my_view(request, ...): # master databa...
Use 'wraps' from 'functools', to keep wrapped function's docstring, name and attributes.
Use 'wraps' from 'functools', to keep wrapped function's docstring, name and attributes.
Python
bsd-3-clause
lavr/django_replicated,dmirain/django_replicated,Zunonia/django_replicated
# -*- coding:utf-8 -*- ''' Decorators for using specific routing state for particular requests. Used in cases when automatic switching based on request method doesn't work. Usage: from django_replicated.decorators import use_master, use_slave @use_master def my_view(request, ...): # master databa...
# -*- coding:utf-8 -*- ''' Decorators for using specific routing state for particular requests. Used in cases when automatic switching based on request method doesn't work. Usage: from django_replicated.decorators import use_master, use_slave @use_master def my_view(request, ...): # master databa...
<commit_before># -*- coding:utf-8 -*- ''' Decorators for using specific routing state for particular requests. Used in cases when automatic switching based on request method doesn't work. Usage: from django_replicated.decorators import use_master, use_slave @use_master def my_view(request, ...): ...
# -*- coding:utf-8 -*- ''' Decorators for using specific routing state for particular requests. Used in cases when automatic switching based on request method doesn't work. Usage: from django_replicated.decorators import use_master, use_slave @use_master def my_view(request, ...): # master databa...
# -*- coding:utf-8 -*- ''' Decorators for using specific routing state for particular requests. Used in cases when automatic switching based on request method doesn't work. Usage: from django_replicated.decorators import use_master, use_slave @use_master def my_view(request, ...): # master databa...
<commit_before># -*- coding:utf-8 -*- ''' Decorators for using specific routing state for particular requests. Used in cases when automatic switching based on request method doesn't work. Usage: from django_replicated.decorators import use_master, use_slave @use_master def my_view(request, ...): ...
af2afbbbd3014f85c69bbfb4dc65f6850e7840b4
djlint/analyzers/db_backends.py
djlint/analyzers/db_backends.py
import ast from .base import BaseAnalyzer, Result class DB_BackendsVisitor(ast.NodeVisitor): def __init__(self): self.found = [] deprecated_items = { 'django.db.backends.postgresql': 'django.db.backends.postgresql_psycopg2', } def visit_Str(self, node): if node...
import ast from .base import BaseAnalyzer, Result class DB_BackendsVisitor(ast.NodeVisitor): def __init__(self): self.found = [] removed_items = { 'django.db.backends.postgresql': 'django.db.backends.postgresql_psycopg2', } def visit_Str(self, node): if node.s ...
Update database backends analyzer to target 1.5
Update database backends analyzer to target 1.5
Python
isc
alfredhq/djlint
import ast from .base import BaseAnalyzer, Result class DB_BackendsVisitor(ast.NodeVisitor): def __init__(self): self.found = [] deprecated_items = { 'django.db.backends.postgresql': 'django.db.backends.postgresql_psycopg2', } def visit_Str(self, node): if node...
import ast from .base import BaseAnalyzer, Result class DB_BackendsVisitor(ast.NodeVisitor): def __init__(self): self.found = [] removed_items = { 'django.db.backends.postgresql': 'django.db.backends.postgresql_psycopg2', } def visit_Str(self, node): if node.s ...
<commit_before>import ast from .base import BaseAnalyzer, Result class DB_BackendsVisitor(ast.NodeVisitor): def __init__(self): self.found = [] deprecated_items = { 'django.db.backends.postgresql': 'django.db.backends.postgresql_psycopg2', } def visit_Str(self, node): ...
import ast from .base import BaseAnalyzer, Result class DB_BackendsVisitor(ast.NodeVisitor): def __init__(self): self.found = [] removed_items = { 'django.db.backends.postgresql': 'django.db.backends.postgresql_psycopg2', } def visit_Str(self, node): if node.s ...
import ast from .base import BaseAnalyzer, Result class DB_BackendsVisitor(ast.NodeVisitor): def __init__(self): self.found = [] deprecated_items = { 'django.db.backends.postgresql': 'django.db.backends.postgresql_psycopg2', } def visit_Str(self, node): if node...
<commit_before>import ast from .base import BaseAnalyzer, Result class DB_BackendsVisitor(ast.NodeVisitor): def __init__(self): self.found = [] deprecated_items = { 'django.db.backends.postgresql': 'django.db.backends.postgresql_psycopg2', } def visit_Str(self, node): ...
2ac9df192c523d125288f093bb7c2d4c91b54bbe
yunity/users/factories.py
yunity/users/factories.py
from django.contrib.auth import get_user_model from factory import DjangoModelFactory, CREATE_STRATEGY, LazyAttribute, PostGeneration, SubFactory from yunity.base.factories import Wall from yunity.utils.tests.fake import faker class User(DjangoModelFactory): class Meta: model = get_user_model() s...
from django.contrib.auth import get_user_model from factory import DjangoModelFactory, CREATE_STRATEGY, LazyAttribute, PostGeneration, SubFactory from yunity.walls.factories import Wall from yunity.utils.tests.fake import faker class User(DjangoModelFactory): class Meta: model = get_user_model() ...
Fix reference to wall factory
Fix reference to wall factory
Python
agpl-3.0
yunity/foodsaving-backend,yunity/yunity-core,yunity/foodsaving-backend,yunity/foodsaving-backend,yunity/yunity-core
from django.contrib.auth import get_user_model from factory import DjangoModelFactory, CREATE_STRATEGY, LazyAttribute, PostGeneration, SubFactory from yunity.base.factories import Wall from yunity.utils.tests.fake import faker class User(DjangoModelFactory): class Meta: model = get_user_model() s...
from django.contrib.auth import get_user_model from factory import DjangoModelFactory, CREATE_STRATEGY, LazyAttribute, PostGeneration, SubFactory from yunity.walls.factories import Wall from yunity.utils.tests.fake import faker class User(DjangoModelFactory): class Meta: model = get_user_model() ...
<commit_before>from django.contrib.auth import get_user_model from factory import DjangoModelFactory, CREATE_STRATEGY, LazyAttribute, PostGeneration, SubFactory from yunity.base.factories import Wall from yunity.utils.tests.fake import faker class User(DjangoModelFactory): class Meta: model = get_user_mo...
from django.contrib.auth import get_user_model from factory import DjangoModelFactory, CREATE_STRATEGY, LazyAttribute, PostGeneration, SubFactory from yunity.walls.factories import Wall from yunity.utils.tests.fake import faker class User(DjangoModelFactory): class Meta: model = get_user_model() ...
from django.contrib.auth import get_user_model from factory import DjangoModelFactory, CREATE_STRATEGY, LazyAttribute, PostGeneration, SubFactory from yunity.base.factories import Wall from yunity.utils.tests.fake import faker class User(DjangoModelFactory): class Meta: model = get_user_model() s...
<commit_before>from django.contrib.auth import get_user_model from factory import DjangoModelFactory, CREATE_STRATEGY, LazyAttribute, PostGeneration, SubFactory from yunity.base.factories import Wall from yunity.utils.tests.fake import faker class User(DjangoModelFactory): class Meta: model = get_user_mo...
f8a209e7b0cca0fb6cd7bd49fa4f024c472b4e13
zappa/ext/django_zappa.py
zappa/ext/django_zappa.py
import sys # add the Lambda root path into the sys.path sys.path.append('/var/task') from django.core.handlers.wsgi import WSGIHandler from django.core.wsgi import get_wsgi_application import os def get_django_wsgi(settings_module): os.environ.setdefault("DJANGO_SETTINGS_MODULE", settings_module) import dja...
import os import sys # add the Lambda root path into the sys.path sys.path.append('/var/task') def get_django_wsgi(settings_module): from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETTINGS_MODULE", settings_module) import django if django.VERSION[0] <= 1 and django....
Call django.setup() from zappa only for django < 1.7.0
Call django.setup() from zappa only for django < 1.7.0 * because since django 1.7 it leads to double initialization, which is problematic on some installations
Python
mit
scoates/Zappa,Miserlou/Zappa,anush0247/Zappa,mathom/Zappa,michi88/Zappa,parroyo/Zappa,anush0247/Zappa,longzhi/Zappa,Miserlou/Zappa,longzhi/Zappa,scoates/Zappa,pjz/Zappa,pjz/Zappa,parroyo/Zappa,mathom/Zappa,michi88/Zappa
import sys # add the Lambda root path into the sys.path sys.path.append('/var/task') from django.core.handlers.wsgi import WSGIHandler from django.core.wsgi import get_wsgi_application import os def get_django_wsgi(settings_module): os.environ.setdefault("DJANGO_SETTINGS_MODULE", settings_module) import dja...
import os import sys # add the Lambda root path into the sys.path sys.path.append('/var/task') def get_django_wsgi(settings_module): from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETTINGS_MODULE", settings_module) import django if django.VERSION[0] <= 1 and django....
<commit_before>import sys # add the Lambda root path into the sys.path sys.path.append('/var/task') from django.core.handlers.wsgi import WSGIHandler from django.core.wsgi import get_wsgi_application import os def get_django_wsgi(settings_module): os.environ.setdefault("DJANGO_SETTINGS_MODULE", settings_module) ...
import os import sys # add the Lambda root path into the sys.path sys.path.append('/var/task') def get_django_wsgi(settings_module): from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETTINGS_MODULE", settings_module) import django if django.VERSION[0] <= 1 and django....
import sys # add the Lambda root path into the sys.path sys.path.append('/var/task') from django.core.handlers.wsgi import WSGIHandler from django.core.wsgi import get_wsgi_application import os def get_django_wsgi(settings_module): os.environ.setdefault("DJANGO_SETTINGS_MODULE", settings_module) import dja...
<commit_before>import sys # add the Lambda root path into the sys.path sys.path.append('/var/task') from django.core.handlers.wsgi import WSGIHandler from django.core.wsgi import get_wsgi_application import os def get_django_wsgi(settings_module): os.environ.setdefault("DJANGO_SETTINGS_MODULE", settings_module) ...
5e671fe98093cf506ce1cb134c335cabd934ad84
aioredis/locks.py
aioredis/locks.py
from asyncio.locks import Lock as _Lock from asyncio import coroutine from asyncio import futures from .util import create_future # Fixes an issue with all Python versions that leaves pending waiters # without being awakened when the first waiter is canceled. # Code adapted from the PR https://github.com/python/cpyth...
from asyncio.locks import Lock as _Lock from asyncio import coroutine from asyncio import futures from .util import create_future # Fixes an issue with all Python versions that leaves pending waiters # without being awakened when the first waiter is canceled. # Code adapted from the PR https://github.com/python/cpyth...
Fix critical bug with patched Lock
Fix critical bug with patched Lock
Python
mit
aio-libs/aioredis,aio-libs/aioredis,ymap/aioredis
from asyncio.locks import Lock as _Lock from asyncio import coroutine from asyncio import futures from .util import create_future # Fixes an issue with all Python versions that leaves pending waiters # without being awakened when the first waiter is canceled. # Code adapted from the PR https://github.com/python/cpyth...
from asyncio.locks import Lock as _Lock from asyncio import coroutine from asyncio import futures from .util import create_future # Fixes an issue with all Python versions that leaves pending waiters # without being awakened when the first waiter is canceled. # Code adapted from the PR https://github.com/python/cpyth...
<commit_before>from asyncio.locks import Lock as _Lock from asyncio import coroutine from asyncio import futures from .util import create_future # Fixes an issue with all Python versions that leaves pending waiters # without being awakened when the first waiter is canceled. # Code adapted from the PR https://github.c...
from asyncio.locks import Lock as _Lock from asyncio import coroutine from asyncio import futures from .util import create_future # Fixes an issue with all Python versions that leaves pending waiters # without being awakened when the first waiter is canceled. # Code adapted from the PR https://github.com/python/cpyth...
from asyncio.locks import Lock as _Lock from asyncio import coroutine from asyncio import futures from .util import create_future # Fixes an issue with all Python versions that leaves pending waiters # without being awakened when the first waiter is canceled. # Code adapted from the PR https://github.com/python/cpyth...
<commit_before>from asyncio.locks import Lock as _Lock from asyncio import coroutine from asyncio import futures from .util import create_future # Fixes an issue with all Python versions that leaves pending waiters # without being awakened when the first waiter is canceled. # Code adapted from the PR https://github.c...
2fb1e51d7131f089b6cedbdf227eddb79e3641bf
zerver/webhooks/dropbox/view.py
zerver/webhooks/dropbox/view.py
from django.http import HttpRequest, HttpResponse from zerver.lib.response import json_success from zerver.lib.webhooks.common import check_send_webhook_message from zerver.decorator import REQ, has_request_variables, api_key_only_webhook_view from zerver.models import UserProfile @api_key_only_webhook_view('Dropbox')...
from django.http import HttpRequest, HttpResponse from zerver.lib.response import json_success from zerver.lib.webhooks.common import check_send_webhook_message from zerver.decorator import REQ, has_request_variables, api_key_only_webhook_view from zerver.models import UserProfile @api_key_only_webhook_view('Dropbox',...
Fix incorrect placement of notify_bot_owner_on_invalid_json.
dropbox: Fix incorrect placement of notify_bot_owner_on_invalid_json. This was an error I introduced in editing b79213d2602291a4c7ccbafe0f775f77db60665b.
Python
apache-2.0
punchagan/zulip,brainwane/zulip,andersk/zulip,dhcrzf/zulip,rht/zulip,rishig/zulip,dhcrzf/zulip,andersk/zulip,showell/zulip,punchagan/zulip,rishig/zulip,showell/zulip,kou/zulip,kou/zulip,hackerkid/zulip,brainwane/zulip,synicalsyntax/zulip,hackerkid/zulip,rishig/zulip,jackrzhang/zulip,kou/zulip,andersk/zulip,rht/zulip,ti...
from django.http import HttpRequest, HttpResponse from zerver.lib.response import json_success from zerver.lib.webhooks.common import check_send_webhook_message from zerver.decorator import REQ, has_request_variables, api_key_only_webhook_view from zerver.models import UserProfile @api_key_only_webhook_view('Dropbox')...
from django.http import HttpRequest, HttpResponse from zerver.lib.response import json_success from zerver.lib.webhooks.common import check_send_webhook_message from zerver.decorator import REQ, has_request_variables, api_key_only_webhook_view from zerver.models import UserProfile @api_key_only_webhook_view('Dropbox',...
<commit_before>from django.http import HttpRequest, HttpResponse from zerver.lib.response import json_success from zerver.lib.webhooks.common import check_send_webhook_message from zerver.decorator import REQ, has_request_variables, api_key_only_webhook_view from zerver.models import UserProfile @api_key_only_webhook_...
from django.http import HttpRequest, HttpResponse from zerver.lib.response import json_success from zerver.lib.webhooks.common import check_send_webhook_message from zerver.decorator import REQ, has_request_variables, api_key_only_webhook_view from zerver.models import UserProfile @api_key_only_webhook_view('Dropbox',...
from django.http import HttpRequest, HttpResponse from zerver.lib.response import json_success from zerver.lib.webhooks.common import check_send_webhook_message from zerver.decorator import REQ, has_request_variables, api_key_only_webhook_view from zerver.models import UserProfile @api_key_only_webhook_view('Dropbox')...
<commit_before>from django.http import HttpRequest, HttpResponse from zerver.lib.response import json_success from zerver.lib.webhooks.common import check_send_webhook_message from zerver.decorator import REQ, has_request_variables, api_key_only_webhook_view from zerver.models import UserProfile @api_key_only_webhook_...
7b05ce75c0dd16944b26f2c53f1508aa3f771d27
migrations/versions/0177_add_virus_scan_statuses.py
migrations/versions/0177_add_virus_scan_statuses.py
""" Revision ID: 0177_add_virus_scan_statuses Revises: 0176_alter_billing_columns Create Date: 2018-02-21 14:05:04.448977 """ from alembic import op revision = '0176_alter_billing_columns' down_revision = '0175_drop_job_statistics_table' def upgrade(): op.execute("INSERT INTO notification_status_types (name) ...
""" Revision ID: 0177_add_virus_scan_statuses Revises: 0176_alter_billing_columns Create Date: 2018-02-21 14:05:04.448977 """ from alembic import op revision = '0177_add_virus_scan_statuses' down_revision = '0176_alter_billing_columns' def upgrade(): op.execute("INSERT INTO notification_status_types (name) VA...
Fix revision numbers in migration 0177
Fix revision numbers in migration 0177
Python
mit
alphagov/notifications-api,alphagov/notifications-api
""" Revision ID: 0177_add_virus_scan_statuses Revises: 0176_alter_billing_columns Create Date: 2018-02-21 14:05:04.448977 """ from alembic import op revision = '0176_alter_billing_columns' down_revision = '0175_drop_job_statistics_table' def upgrade(): op.execute("INSERT INTO notification_status_types (name) ...
""" Revision ID: 0177_add_virus_scan_statuses Revises: 0176_alter_billing_columns Create Date: 2018-02-21 14:05:04.448977 """ from alembic import op revision = '0177_add_virus_scan_statuses' down_revision = '0176_alter_billing_columns' def upgrade(): op.execute("INSERT INTO notification_status_types (name) VA...
<commit_before>""" Revision ID: 0177_add_virus_scan_statuses Revises: 0176_alter_billing_columns Create Date: 2018-02-21 14:05:04.448977 """ from alembic import op revision = '0176_alter_billing_columns' down_revision = '0175_drop_job_statistics_table' def upgrade(): op.execute("INSERT INTO notification_statu...
""" Revision ID: 0177_add_virus_scan_statuses Revises: 0176_alter_billing_columns Create Date: 2018-02-21 14:05:04.448977 """ from alembic import op revision = '0177_add_virus_scan_statuses' down_revision = '0176_alter_billing_columns' def upgrade(): op.execute("INSERT INTO notification_status_types (name) VA...
""" Revision ID: 0177_add_virus_scan_statuses Revises: 0176_alter_billing_columns Create Date: 2018-02-21 14:05:04.448977 """ from alembic import op revision = '0176_alter_billing_columns' down_revision = '0175_drop_job_statistics_table' def upgrade(): op.execute("INSERT INTO notification_status_types (name) ...
<commit_before>""" Revision ID: 0177_add_virus_scan_statuses Revises: 0176_alter_billing_columns Create Date: 2018-02-21 14:05:04.448977 """ from alembic import op revision = '0176_alter_billing_columns' down_revision = '0175_drop_job_statistics_table' def upgrade(): op.execute("INSERT INTO notification_statu...
a7acf05dd308b88fe9de5e04018438e7861e5c93
src/sentry/web/forms/invite_organization_member.py
src/sentry/web/forms/invite_organization_member.py
from __future__ import absolute_import from django import forms from django.db import transaction, IntegrityError from sentry.models import ( AuditLogEntry, AuditLogEntryEvent, OrganizationMember ) class InviteOrganizationMemberForm(forms.ModelForm): class Meta: fields = ('email', 'role') mo...
from __future__ import absolute_import from django import forms from django.db import transaction, IntegrityError from sentry.models import ( AuditLogEntry, AuditLogEntryEvent, OrganizationMember ) class InviteOrganizationMemberForm(forms.ModelForm): # override this to ensure the field is required email...
Enforce requirement of email field on member invite
Enforce requirement of email field on member invite
Python
bsd-3-clause
mitsuhiko/sentry,ifduyue/sentry,fotinakis/sentry,mvaled/sentry,zenefits/sentry,jean/sentry,BuildingLink/sentry,fotinakis/sentry,BuildingLink/sentry,jean/sentry,JamesMura/sentry,BuildingLink/sentry,JamesMura/sentry,JackDanger/sentry,gencer/sentry,mvaled/sentry,daevaorn/sentry,BuildingLink/sentry,zenefits/sentry,daevaorn...
from __future__ import absolute_import from django import forms from django.db import transaction, IntegrityError from sentry.models import ( AuditLogEntry, AuditLogEntryEvent, OrganizationMember ) class InviteOrganizationMemberForm(forms.ModelForm): class Meta: fields = ('email', 'role') mo...
from __future__ import absolute_import from django import forms from django.db import transaction, IntegrityError from sentry.models import ( AuditLogEntry, AuditLogEntryEvent, OrganizationMember ) class InviteOrganizationMemberForm(forms.ModelForm): # override this to ensure the field is required email...
<commit_before>from __future__ import absolute_import from django import forms from django.db import transaction, IntegrityError from sentry.models import ( AuditLogEntry, AuditLogEntryEvent, OrganizationMember ) class InviteOrganizationMemberForm(forms.ModelForm): class Meta: fields = ('email', 'ro...
from __future__ import absolute_import from django import forms from django.db import transaction, IntegrityError from sentry.models import ( AuditLogEntry, AuditLogEntryEvent, OrganizationMember ) class InviteOrganizationMemberForm(forms.ModelForm): # override this to ensure the field is required email...
from __future__ import absolute_import from django import forms from django.db import transaction, IntegrityError from sentry.models import ( AuditLogEntry, AuditLogEntryEvent, OrganizationMember ) class InviteOrganizationMemberForm(forms.ModelForm): class Meta: fields = ('email', 'role') mo...
<commit_before>from __future__ import absolute_import from django import forms from django.db import transaction, IntegrityError from sentry.models import ( AuditLogEntry, AuditLogEntryEvent, OrganizationMember ) class InviteOrganizationMemberForm(forms.ModelForm): class Meta: fields = ('email', 'ro...
c40cb3410944053c18abf8fb2b23a59f4b336015
conversion_calls.py
conversion_calls.py
from settings import CONVERSIONS def get_conversions(index): """ Get the list of conversions to be performed. Defaults to doing all XSL conversions for all the files. """ if 0 <= index and index < len(CONVERSIONS): return [CONVERSIONS[index],] # Default to all conversions. return CONVERSIONS def get_msx...
from settings import CONVERSIONS def get_conversions(index): """ Get the list of conversions to be performed. Defaults to doing all XSL conversions for all the files. Parameters ---------- index : int Index of conversion to be used. Incorrect index will use default (all conversions). Returns -------...
Expand docstring for get conversions.
Expand docstring for get conversions. Add parameter and return value descriptions.
Python
mit
AustralianAntarcticDataCentre/metadata_xml_convert,AustralianAntarcticDataCentre/metadata_xml_convert
from settings import CONVERSIONS def get_conversions(index): """ Get the list of conversions to be performed. Defaults to doing all XSL conversions for all the files. """ if 0 <= index and index < len(CONVERSIONS): return [CONVERSIONS[index],] # Default to all conversions. return CONVERSIONS def get_msx...
from settings import CONVERSIONS def get_conversions(index): """ Get the list of conversions to be performed. Defaults to doing all XSL conversions for all the files. Parameters ---------- index : int Index of conversion to be used. Incorrect index will use default (all conversions). Returns -------...
<commit_before>from settings import CONVERSIONS def get_conversions(index): """ Get the list of conversions to be performed. Defaults to doing all XSL conversions for all the files. """ if 0 <= index and index < len(CONVERSIONS): return [CONVERSIONS[index],] # Default to all conversions. return CONVERSION...
from settings import CONVERSIONS def get_conversions(index): """ Get the list of conversions to be performed. Defaults to doing all XSL conversions for all the files. Parameters ---------- index : int Index of conversion to be used. Incorrect index will use default (all conversions). Returns -------...
from settings import CONVERSIONS def get_conversions(index): """ Get the list of conversions to be performed. Defaults to doing all XSL conversions for all the files. """ if 0 <= index and index < len(CONVERSIONS): return [CONVERSIONS[index],] # Default to all conversions. return CONVERSIONS def get_msx...
<commit_before>from settings import CONVERSIONS def get_conversions(index): """ Get the list of conversions to be performed. Defaults to doing all XSL conversions for all the files. """ if 0 <= index and index < len(CONVERSIONS): return [CONVERSIONS[index],] # Default to all conversions. return CONVERSION...
0f446d166818ec6b218b59751a1dce80842ce677
app/auth/views.py
app/auth/views.py
# Copyright (C) 2016 University of Zurich. All rights reserved. # # This file is part of MSRegistry Backend. # # MSRegistry Backend is free software: you can redistribute it and/or # modify it under the terms of the version 3 of the GNU Affero General # Public License as published by the Free Software Foundation, or a...
# Copyright (C) 2016 University of Zurich. All rights reserved. # # This file is part of MSRegistry Backend. # # MSRegistry Backend is free software: you can redistribute it and/or # modify it under the terms of the version 3 of the GNU Affero General # Public License as published by the Free Software Foundation, or a...
Remove code field from API /auth/test response
Remove code field from API /auth/test response
Python
agpl-3.0
uzh/msregistry
# Copyright (C) 2016 University of Zurich. All rights reserved. # # This file is part of MSRegistry Backend. # # MSRegistry Backend is free software: you can redistribute it and/or # modify it under the terms of the version 3 of the GNU Affero General # Public License as published by the Free Software Foundation, or a...
# Copyright (C) 2016 University of Zurich. All rights reserved. # # This file is part of MSRegistry Backend. # # MSRegistry Backend is free software: you can redistribute it and/or # modify it under the terms of the version 3 of the GNU Affero General # Public License as published by the Free Software Foundation, or a...
<commit_before># Copyright (C) 2016 University of Zurich. All rights reserved. # # This file is part of MSRegistry Backend. # # MSRegistry Backend is free software: you can redistribute it and/or # modify it under the terms of the version 3 of the GNU Affero General # Public License as published by the Free Software F...
# Copyright (C) 2016 University of Zurich. All rights reserved. # # This file is part of MSRegistry Backend. # # MSRegistry Backend is free software: you can redistribute it and/or # modify it under the terms of the version 3 of the GNU Affero General # Public License as published by the Free Software Foundation, or a...
# Copyright (C) 2016 University of Zurich. All rights reserved. # # This file is part of MSRegistry Backend. # # MSRegistry Backend is free software: you can redistribute it and/or # modify it under the terms of the version 3 of the GNU Affero General # Public License as published by the Free Software Foundation, or a...
<commit_before># Copyright (C) 2016 University of Zurich. All rights reserved. # # This file is part of MSRegistry Backend. # # MSRegistry Backend is free software: you can redistribute it and/or # modify it under the terms of the version 3 of the GNU Affero General # Public License as published by the Free Software F...
df9691aecf19d31eab1f52f7d735ed746877ffac
dache/__init__.py
dache/__init__.py
from six.moves.urllib.parse import urlparse from dache.backends.base import CacheKeyWarning # noqa from dache.backends.filebased import FileBasedCache from dache.backends.locmem import LocMemCache from dache.backends.redis import RedisCache from dache.utils.module_loading import import_string __version__ = '0.0.1' ...
import six from six.moves.urllib.parse import urlparse from dache.backends.base import CacheKeyWarning # noqa from dache.backends.filebased import FileBasedCache from dache.backends.locmem import LocMemCache from dache.backends.redis import RedisCache from dache.utils.module_loading import import_string __version_...
Fix Python 3 string type checking
Fix Python 3 string type checking
Python
bsd-3-clause
eliangcs/dache
from six.moves.urllib.parse import urlparse from dache.backends.base import CacheKeyWarning # noqa from dache.backends.filebased import FileBasedCache from dache.backends.locmem import LocMemCache from dache.backends.redis import RedisCache from dache.utils.module_loading import import_string __version__ = '0.0.1' ...
import six from six.moves.urllib.parse import urlparse from dache.backends.base import CacheKeyWarning # noqa from dache.backends.filebased import FileBasedCache from dache.backends.locmem import LocMemCache from dache.backends.redis import RedisCache from dache.utils.module_loading import import_string __version_...
<commit_before>from six.moves.urllib.parse import urlparse from dache.backends.base import CacheKeyWarning # noqa from dache.backends.filebased import FileBasedCache from dache.backends.locmem import LocMemCache from dache.backends.redis import RedisCache from dache.utils.module_loading import import_string __versi...
import six from six.moves.urllib.parse import urlparse from dache.backends.base import CacheKeyWarning # noqa from dache.backends.filebased import FileBasedCache from dache.backends.locmem import LocMemCache from dache.backends.redis import RedisCache from dache.utils.module_loading import import_string __version_...
from six.moves.urllib.parse import urlparse from dache.backends.base import CacheKeyWarning # noqa from dache.backends.filebased import FileBasedCache from dache.backends.locmem import LocMemCache from dache.backends.redis import RedisCache from dache.utils.module_loading import import_string __version__ = '0.0.1' ...
<commit_before>from six.moves.urllib.parse import urlparse from dache.backends.base import CacheKeyWarning # noqa from dache.backends.filebased import FileBasedCache from dache.backends.locmem import LocMemCache from dache.backends.redis import RedisCache from dache.utils.module_loading import import_string __versi...
0bcdde64aeee1ddc7ae40d6aca8729a4070c604a
fabfile.py
fabfile.py
#!/usr/bin/env python import os from fabric.api import * from fab_shared import (test, webpy_deploy as deploy, setup, development, production, localhost, staging, restart_webserver, rollback, lint, enable, disable, maintenancemode, rechef) env.unit = "trinity" env.path = "/var/tornado/%(unit)s" % env e...
#!/usr/bin/env python import os from fabric.api import * from fab_shared import (test, webpy_deploy as deploy, setup, development, production, localhost, staging, restart_webserver, rollback, lint, enable, disable, maintenancemode, rechef) env.unit = "trinity" env.path = "/var/tornado/%(unit)s" % env e...
Add reset method for erasing graph database.
Add reset method for erasing graph database.
Python
mit
peplin/trinity
#!/usr/bin/env python import os from fabric.api import * from fab_shared import (test, webpy_deploy as deploy, setup, development, production, localhost, staging, restart_webserver, rollback, lint, enable, disable, maintenancemode, rechef) env.unit = "trinity" env.path = "/var/tornado/%(unit)s" % env e...
#!/usr/bin/env python import os from fabric.api import * from fab_shared import (test, webpy_deploy as deploy, setup, development, production, localhost, staging, restart_webserver, rollback, lint, enable, disable, maintenancemode, rechef) env.unit = "trinity" env.path = "/var/tornado/%(unit)s" % env e...
<commit_before>#!/usr/bin/env python import os from fabric.api import * from fab_shared import (test, webpy_deploy as deploy, setup, development, production, localhost, staging, restart_webserver, rollback, lint, enable, disable, maintenancemode, rechef) env.unit = "trinity" env.path = "/var/tornado/%(...
#!/usr/bin/env python import os from fabric.api import * from fab_shared import (test, webpy_deploy as deploy, setup, development, production, localhost, staging, restart_webserver, rollback, lint, enable, disable, maintenancemode, rechef) env.unit = "trinity" env.path = "/var/tornado/%(unit)s" % env e...
#!/usr/bin/env python import os from fabric.api import * from fab_shared import (test, webpy_deploy as deploy, setup, development, production, localhost, staging, restart_webserver, rollback, lint, enable, disable, maintenancemode, rechef) env.unit = "trinity" env.path = "/var/tornado/%(unit)s" % env e...
<commit_before>#!/usr/bin/env python import os from fabric.api import * from fab_shared import (test, webpy_deploy as deploy, setup, development, production, localhost, staging, restart_webserver, rollback, lint, enable, disable, maintenancemode, rechef) env.unit = "trinity" env.path = "/var/tornado/%(...
1b36dd94759c41c4af433ce53e131e318d09c14a
tests/storage/dav/test_carddav.py
tests/storage/dav/test_carddav.py
# -*- coding: utf-8 -*- ''' vdirsyncer.tests.storage.test_carddav ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2014 Markus Unterwaditzer :license: MIT, see LICENSE for more details. ''' from vdirsyncer.storage.dav.carddav import CarddavStorage from . import DavStorageTests class TestCardda...
# -*- coding: utf-8 -*- ''' vdirsyncer.tests.storage.test_carddav ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2014 Markus Unterwaditzer :license: MIT, see LICENSE for more details. ''' from vdirsyncer.storage.dav.carddav import CarddavStorage from . import DavStorageTests VCARD_TEMPLATE =...
Move vcard template to real multi-line string
Move vcard template to real multi-line string
Python
mit
tribut/vdirsyncer,untitaker/vdirsyncer,credativUK/vdirsyncer,mathstuf/vdirsyncer,hobarrera/vdirsyncer,hobarrera/vdirsyncer,untitaker/vdirsyncer,untitaker/vdirsyncer,credativUK/vdirsyncer,tribut/vdirsyncer,mathstuf/vdirsyncer
# -*- coding: utf-8 -*- ''' vdirsyncer.tests.storage.test_carddav ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2014 Markus Unterwaditzer :license: MIT, see LICENSE for more details. ''' from vdirsyncer.storage.dav.carddav import CarddavStorage from . import DavStorageTests class TestCardda...
# -*- coding: utf-8 -*- ''' vdirsyncer.tests.storage.test_carddav ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2014 Markus Unterwaditzer :license: MIT, see LICENSE for more details. ''' from vdirsyncer.storage.dav.carddav import CarddavStorage from . import DavStorageTests VCARD_TEMPLATE =...
<commit_before> # -*- coding: utf-8 -*- ''' vdirsyncer.tests.storage.test_carddav ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2014 Markus Unterwaditzer :license: MIT, see LICENSE for more details. ''' from vdirsyncer.storage.dav.carddav import CarddavStorage from . import DavStorageTests c...
# -*- coding: utf-8 -*- ''' vdirsyncer.tests.storage.test_carddav ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2014 Markus Unterwaditzer :license: MIT, see LICENSE for more details. ''' from vdirsyncer.storage.dav.carddav import CarddavStorage from . import DavStorageTests VCARD_TEMPLATE =...
# -*- coding: utf-8 -*- ''' vdirsyncer.tests.storage.test_carddav ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2014 Markus Unterwaditzer :license: MIT, see LICENSE for more details. ''' from vdirsyncer.storage.dav.carddav import CarddavStorage from . import DavStorageTests class TestCardda...
<commit_before> # -*- coding: utf-8 -*- ''' vdirsyncer.tests.storage.test_carddav ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2014 Markus Unterwaditzer :license: MIT, see LICENSE for more details. ''' from vdirsyncer.storage.dav.carddav import CarddavStorage from . import DavStorageTests c...
8ca4babf48425efafb3c6229f5db0cec9715ab97
example/tests/test_views.py
example/tests/test_views.py
from django.core.urlresolvers import reverse from django.test import TestCase import json from myshop.models.polymorphic.product import Product from myshop.models.manufacturer import Manufacturer class ProductSelectViewTest(TestCase): def setUp(self): manufacturer = Manufacturer.objects.create(name="te...
from django.core.urlresolvers import reverse from django.test import TestCase import json from myshop.models.polymorphic.product import Product from myshop.models.manufacturer import Manufacturer class ProductSelectViewTest(TestCase): def setUp(self): manufacturer = Manufacturer.objects.create(name="te...
Fix test for Python 3
Fix test for Python 3
Python
bsd-3-clause
khchine5/django-shop,nimbis/django-shop,nimbis/django-shop,jrief/django-shop,divio/django-shop,khchine5/django-shop,khchine5/django-shop,jrief/django-shop,divio/django-shop,divio/django-shop,khchine5/django-shop,awesto/django-shop,nimbis/django-shop,jrief/django-shop,nimbis/django-shop,awesto/django-shop,awesto/django-...
from django.core.urlresolvers import reverse from django.test import TestCase import json from myshop.models.polymorphic.product import Product from myshop.models.manufacturer import Manufacturer class ProductSelectViewTest(TestCase): def setUp(self): manufacturer = Manufacturer.objects.create(name="te...
from django.core.urlresolvers import reverse from django.test import TestCase import json from myshop.models.polymorphic.product import Product from myshop.models.manufacturer import Manufacturer class ProductSelectViewTest(TestCase): def setUp(self): manufacturer = Manufacturer.objects.create(name="te...
<commit_before>from django.core.urlresolvers import reverse from django.test import TestCase import json from myshop.models.polymorphic.product import Product from myshop.models.manufacturer import Manufacturer class ProductSelectViewTest(TestCase): def setUp(self): manufacturer = Manufacturer.objects....
from django.core.urlresolvers import reverse from django.test import TestCase import json from myshop.models.polymorphic.product import Product from myshop.models.manufacturer import Manufacturer class ProductSelectViewTest(TestCase): def setUp(self): manufacturer = Manufacturer.objects.create(name="te...
from django.core.urlresolvers import reverse from django.test import TestCase import json from myshop.models.polymorphic.product import Product from myshop.models.manufacturer import Manufacturer class ProductSelectViewTest(TestCase): def setUp(self): manufacturer = Manufacturer.objects.create(name="te...
<commit_before>from django.core.urlresolvers import reverse from django.test import TestCase import json from myshop.models.polymorphic.product import Product from myshop.models.manufacturer import Manufacturer class ProductSelectViewTest(TestCase): def setUp(self): manufacturer = Manufacturer.objects....
e72ab305e2a90433c07300f37f7ae6fa2901b9cc
app/auth/views.py
app/auth/views.py
# -*- coding: utf-8 -*- from flask import render_template, redirect, request, url_for, flash from flask.ext.login import login_user, logout_user, login_required, \ current_user from . import auth from .forms import LoginForm, RegistrationForm from .. import db from ..models import User @auth.route('/login', met...
# -*- coding: utf-8 -*- from flask import render_template, redirect, request, url_for, flash from flask.ext.login import login_user, logout_user, login_required, \ current_user from . import auth from .forms import LoginForm, RegistrationForm from ..models import User @auth.route('/login', methods=['GET', 'POST...
Use newly added save on new users.
Use newly added save on new users.
Python
mit
guillaumededrie/flask-todolist,poulp/flask-todolist,guillaumededrie/flask-todolist,rtzll/flask-todolist,0xfoo/flask-todolist,polyfunc/flask-todolist,poulp/flask-todolist,rtzll/flask-todolist,polyfunc/flask-todolist,guillaumededrie/flask-todolist,0xfoo/flask-todolist,poulp/flask-todolist,0xfoo/flask-todolist,polyfunc/fl...
# -*- coding: utf-8 -*- from flask import render_template, redirect, request, url_for, flash from flask.ext.login import login_user, logout_user, login_required, \ current_user from . import auth from .forms import LoginForm, RegistrationForm from .. import db from ..models import User @auth.route('/login', met...
# -*- coding: utf-8 -*- from flask import render_template, redirect, request, url_for, flash from flask.ext.login import login_user, logout_user, login_required, \ current_user from . import auth from .forms import LoginForm, RegistrationForm from ..models import User @auth.route('/login', methods=['GET', 'POST...
<commit_before># -*- coding: utf-8 -*- from flask import render_template, redirect, request, url_for, flash from flask.ext.login import login_user, logout_user, login_required, \ current_user from . import auth from .forms import LoginForm, RegistrationForm from .. import db from ..models import User @auth.rout...
# -*- coding: utf-8 -*- from flask import render_template, redirect, request, url_for, flash from flask.ext.login import login_user, logout_user, login_required, \ current_user from . import auth from .forms import LoginForm, RegistrationForm from ..models import User @auth.route('/login', methods=['GET', 'POST...
# -*- coding: utf-8 -*- from flask import render_template, redirect, request, url_for, flash from flask.ext.login import login_user, logout_user, login_required, \ current_user from . import auth from .forms import LoginForm, RegistrationForm from .. import db from ..models import User @auth.route('/login', met...
<commit_before># -*- coding: utf-8 -*- from flask import render_template, redirect, request, url_for, flash from flask.ext.login import login_user, logout_user, login_required, \ current_user from . import auth from .forms import LoginForm, RegistrationForm from .. import db from ..models import User @auth.rout...
9bf1f19eefc48dbced4b6ea1cc5258518d14bceb
app/utils/http.py
app/utils/http.py
import aiofiles import aiohttp import aiohttp.client_exceptions from aiopath import AsyncPath from sanic.log import logger EXCEPTIONS = ( aiohttp.client_exceptions.ClientConnectionError, aiohttp.client_exceptions.InvalidURL, aiohttp.client_exceptions.TooManyRedirects, AssertionError, UnicodeError, ...
import asyncio import aiofiles import aiohttp import aiohttp.client_exceptions from aiopath import AsyncPath from sanic.log import logger EXCEPTIONS = ( aiohttp.client_exceptions.ClientConnectionError, aiohttp.client_exceptions.InvalidURL, aiohttp.client_exceptions.TooManyRedirects, AssertionError, ...
Add timeout to downloading custom background images
Add timeout to downloading custom background images
Python
mit
jacebrowning/memegen,jacebrowning/memegen
import aiofiles import aiohttp import aiohttp.client_exceptions from aiopath import AsyncPath from sanic.log import logger EXCEPTIONS = ( aiohttp.client_exceptions.ClientConnectionError, aiohttp.client_exceptions.InvalidURL, aiohttp.client_exceptions.TooManyRedirects, AssertionError, UnicodeError, ...
import asyncio import aiofiles import aiohttp import aiohttp.client_exceptions from aiopath import AsyncPath from sanic.log import logger EXCEPTIONS = ( aiohttp.client_exceptions.ClientConnectionError, aiohttp.client_exceptions.InvalidURL, aiohttp.client_exceptions.TooManyRedirects, AssertionError, ...
<commit_before>import aiofiles import aiohttp import aiohttp.client_exceptions from aiopath import AsyncPath from sanic.log import logger EXCEPTIONS = ( aiohttp.client_exceptions.ClientConnectionError, aiohttp.client_exceptions.InvalidURL, aiohttp.client_exceptions.TooManyRedirects, AssertionError, ...
import asyncio import aiofiles import aiohttp import aiohttp.client_exceptions from aiopath import AsyncPath from sanic.log import logger EXCEPTIONS = ( aiohttp.client_exceptions.ClientConnectionError, aiohttp.client_exceptions.InvalidURL, aiohttp.client_exceptions.TooManyRedirects, AssertionError, ...
import aiofiles import aiohttp import aiohttp.client_exceptions from aiopath import AsyncPath from sanic.log import logger EXCEPTIONS = ( aiohttp.client_exceptions.ClientConnectionError, aiohttp.client_exceptions.InvalidURL, aiohttp.client_exceptions.TooManyRedirects, AssertionError, UnicodeError, ...
<commit_before>import aiofiles import aiohttp import aiohttp.client_exceptions from aiopath import AsyncPath from sanic.log import logger EXCEPTIONS = ( aiohttp.client_exceptions.ClientConnectionError, aiohttp.client_exceptions.InvalidURL, aiohttp.client_exceptions.TooManyRedirects, AssertionError, ...
07367ced88bd68666e4460d2734c6c18069573a3
django_field_cryptography/fields.py
django_field_cryptography/fields.py
from django.conf import settings from django.db import models from django.utils.encoding import force_bytes, force_str from django.utils.six import with_metaclass from cryptography.fernet import Fernet, InvalidToken fernet = Fernet(settings.FERNET_KEY) class EncryptedTextField(with_metaclass(models.SubfieldBase, m...
from django.conf import settings from django.db import models from django.utils.encoding import force_bytes, force_str from django.utils.six import with_metaclass from cryptography.fernet import Fernet, InvalidToken fernet = Fernet(settings.FERNET_KEY) class EncryptedTextField(with_metaclass(models.SubfieldBase, m...
Add doctring for `to_python` [ci-skip].
Add doctring for `to_python` [ci-skip]. `to_python` is called when assigning and retrieving a value from the database.
Python
bsd-2-clause
incuna/django-field-cryptography,tombooth/django-field-cryptography
from django.conf import settings from django.db import models from django.utils.encoding import force_bytes, force_str from django.utils.six import with_metaclass from cryptography.fernet import Fernet, InvalidToken fernet = Fernet(settings.FERNET_KEY) class EncryptedTextField(with_metaclass(models.SubfieldBase, m...
from django.conf import settings from django.db import models from django.utils.encoding import force_bytes, force_str from django.utils.six import with_metaclass from cryptography.fernet import Fernet, InvalidToken fernet = Fernet(settings.FERNET_KEY) class EncryptedTextField(with_metaclass(models.SubfieldBase, m...
<commit_before>from django.conf import settings from django.db import models from django.utils.encoding import force_bytes, force_str from django.utils.six import with_metaclass from cryptography.fernet import Fernet, InvalidToken fernet = Fernet(settings.FERNET_KEY) class EncryptedTextField(with_metaclass(models....
from django.conf import settings from django.db import models from django.utils.encoding import force_bytes, force_str from django.utils.six import with_metaclass from cryptography.fernet import Fernet, InvalidToken fernet = Fernet(settings.FERNET_KEY) class EncryptedTextField(with_metaclass(models.SubfieldBase, m...
from django.conf import settings from django.db import models from django.utils.encoding import force_bytes, force_str from django.utils.six import with_metaclass from cryptography.fernet import Fernet, InvalidToken fernet = Fernet(settings.FERNET_KEY) class EncryptedTextField(with_metaclass(models.SubfieldBase, m...
<commit_before>from django.conf import settings from django.db import models from django.utils.encoding import force_bytes, force_str from django.utils.six import with_metaclass from cryptography.fernet import Fernet, InvalidToken fernet = Fernet(settings.FERNET_KEY) class EncryptedTextField(with_metaclass(models....
0f7af860d8df01d1c614b20d687ff6d0393d6938
docker/transport/basehttpadapter.py
docker/transport/basehttpadapter.py
import requests.adapters class BaseHTTPAdapter(requests.adapters.HTTPAdapter): def close(self): self.pools.clear()
import requests.adapters class BaseHTTPAdapter(requests.adapters.HTTPAdapter): def close(self): super(BaseHTTPAdapter, self).close() if hasattr(self, 'pools'): self.pools.clear()
Fix BaseHTTPAdapter for the SSL case
Fix BaseHTTPAdapter for the SSL case Signed-off-by: Ulysses Souza <a0ff1337c6a0e43e9559f5f67fc3acb852912071@docker.com>
Python
apache-2.0
docker/docker-py,funkyfuture/docker-py,docker/docker-py,funkyfuture/docker-py,vdemeester/docker-py,vdemeester/docker-py
import requests.adapters class BaseHTTPAdapter(requests.adapters.HTTPAdapter): def close(self): self.pools.clear() Fix BaseHTTPAdapter for the SSL case Signed-off-by: Ulysses Souza <a0ff1337c6a0e43e9559f5f67fc3acb852912071@docker.com>
import requests.adapters class BaseHTTPAdapter(requests.adapters.HTTPAdapter): def close(self): super(BaseHTTPAdapter, self).close() if hasattr(self, 'pools'): self.pools.clear()
<commit_before>import requests.adapters class BaseHTTPAdapter(requests.adapters.HTTPAdapter): def close(self): self.pools.clear() <commit_msg>Fix BaseHTTPAdapter for the SSL case Signed-off-by: Ulysses Souza <a0ff1337c6a0e43e9559f5f67fc3acb852912071@docker.com><commit_after>
import requests.adapters class BaseHTTPAdapter(requests.adapters.HTTPAdapter): def close(self): super(BaseHTTPAdapter, self).close() if hasattr(self, 'pools'): self.pools.clear()
import requests.adapters class BaseHTTPAdapter(requests.adapters.HTTPAdapter): def close(self): self.pools.clear() Fix BaseHTTPAdapter for the SSL case Signed-off-by: Ulysses Souza <a0ff1337c6a0e43e9559f5f67fc3acb852912071@docker.com>import requests.adapters class BaseHTTPAdapter(requests.adapters.HTTP...
<commit_before>import requests.adapters class BaseHTTPAdapter(requests.adapters.HTTPAdapter): def close(self): self.pools.clear() <commit_msg>Fix BaseHTTPAdapter for the SSL case Signed-off-by: Ulysses Souza <a0ff1337c6a0e43e9559f5f67fc3acb852912071@docker.com><commit_after>import requests.adapters cla...
2cb10055b34972644d705bb07f80a0d40ac85002
vk_channelify/models/channel.py
vk_channelify/models/channel.py
from sqlalchemy import Column, String, Integer from . import Base class Channel(Base): __tablename__ = 'channels' channel_id = Column(String, primary_key=True, nullable=False) vk_group_id = Column(String, nullable=False) last_vk_post_id = Column(Integer, nullable=False, server_default='0') owner...
from sqlalchemy import Column, String, Integer from . import Base class Channel(Base): __tablename__ = 'channels' channel_id = Column(String, primary_key=True, nullable=False) vk_group_id = Column(String, nullable=False) last_vk_post_id = Column(Integer, nullable=False, server_default='0', default=0...
Fix error 'unorderable types: int() > NoneType()'
Fix error 'unorderable types: int() > NoneType()'
Python
mit
reo7sp/vk-channelify,reo7sp/vk-channelify
from sqlalchemy import Column, String, Integer from . import Base class Channel(Base): __tablename__ = 'channels' channel_id = Column(String, primary_key=True, nullable=False) vk_group_id = Column(String, nullable=False) last_vk_post_id = Column(Integer, nullable=False, server_default='0') owner...
from sqlalchemy import Column, String, Integer from . import Base class Channel(Base): __tablename__ = 'channels' channel_id = Column(String, primary_key=True, nullable=False) vk_group_id = Column(String, nullable=False) last_vk_post_id = Column(Integer, nullable=False, server_default='0', default=0...
<commit_before>from sqlalchemy import Column, String, Integer from . import Base class Channel(Base): __tablename__ = 'channels' channel_id = Column(String, primary_key=True, nullable=False) vk_group_id = Column(String, nullable=False) last_vk_post_id = Column(Integer, nullable=False, server_default...
from sqlalchemy import Column, String, Integer from . import Base class Channel(Base): __tablename__ = 'channels' channel_id = Column(String, primary_key=True, nullable=False) vk_group_id = Column(String, nullable=False) last_vk_post_id = Column(Integer, nullable=False, server_default='0', default=0...
from sqlalchemy import Column, String, Integer from . import Base class Channel(Base): __tablename__ = 'channels' channel_id = Column(String, primary_key=True, nullable=False) vk_group_id = Column(String, nullable=False) last_vk_post_id = Column(Integer, nullable=False, server_default='0') owner...
<commit_before>from sqlalchemy import Column, String, Integer from . import Base class Channel(Base): __tablename__ = 'channels' channel_id = Column(String, primary_key=True, nullable=False) vk_group_id = Column(String, nullable=False) last_vk_post_id = Column(Integer, nullable=False, server_default...
eabc792a4ed87900ae1cb6a9404c3f85874cd053
avwx_api/views.py
avwx_api/views.py
""" Michael duPont - michael@mdupont.com avwx_api.views - Routes and views for the flask application """ # pylint: disable=W0702 # library from flask import jsonify # module from avwx_api import app ##-------------------------------------------------------## # Static Web Pages @app.route('/') @app.route('/home') def...
""" Michael duPont - michael@mdupont.com avwx_api.views - Routes and views for the flask application """ # pylint: disable=W0702 # library from flask import jsonify # module from avwx_api import app ##-------------------------------------------------------## # Static Web Pages @app.route('/') @app.route('/home') def...
Return 400 status for incomplete API queries
Return 400 status for incomplete API queries
Python
mit
flyinactor91/AVWX-API,flyinactor91/AVWX-API,flyinactor91/AVWX-API
""" Michael duPont - michael@mdupont.com avwx_api.views - Routes and views for the flask application """ # pylint: disable=W0702 # library from flask import jsonify # module from avwx_api import app ##-------------------------------------------------------## # Static Web Pages @app.route('/') @app.route('/home') def...
""" Michael duPont - michael@mdupont.com avwx_api.views - Routes and views for the flask application """ # pylint: disable=W0702 # library from flask import jsonify # module from avwx_api import app ##-------------------------------------------------------## # Static Web Pages @app.route('/') @app.route('/home') def...
<commit_before>""" Michael duPont - michael@mdupont.com avwx_api.views - Routes and views for the flask application """ # pylint: disable=W0702 # library from flask import jsonify # module from avwx_api import app ##-------------------------------------------------------## # Static Web Pages @app.route('/') @app.rou...
""" Michael duPont - michael@mdupont.com avwx_api.views - Routes and views for the flask application """ # pylint: disable=W0702 # library from flask import jsonify # module from avwx_api import app ##-------------------------------------------------------## # Static Web Pages @app.route('/') @app.route('/home') def...
""" Michael duPont - michael@mdupont.com avwx_api.views - Routes and views for the flask application """ # pylint: disable=W0702 # library from flask import jsonify # module from avwx_api import app ##-------------------------------------------------------## # Static Web Pages @app.route('/') @app.route('/home') def...
<commit_before>""" Michael duPont - michael@mdupont.com avwx_api.views - Routes and views for the flask application """ # pylint: disable=W0702 # library from flask import jsonify # module from avwx_api import app ##-------------------------------------------------------## # Static Web Pages @app.route('/') @app.rou...
16b3c9680f44722cf2544bdab581f9505666aef0
ds_utils/pandas.py
ds_utils/pandas.py
import numpy as np def dataframe_size(df): """Return a dict with the size of DataFrame components in MB. :param df: pandas.DataFrame :return dictionary with index, columns, values and total size """ byte_to_megabyte_factor = 1024 ** 2 size = dict(zip(['index', 'columns', 'values'], ...
import numpy as np import pandas as pd def dataframe_size(df): """Return a dict with the size of DataFrame components in MB. :param df: pandas.DataFrame :return dictionary with index, columns, values and total size """ byte_to_megabyte_factor = 1024 ** 2 size = dict(zip(['index', 'columns', 'v...
Add function for printing full DataFrame
Add function for printing full DataFrame
Python
mit
hgrif/ds-utils
import numpy as np def dataframe_size(df): """Return a dict with the size of DataFrame components in MB. :param df: pandas.DataFrame :return dictionary with index, columns, values and total size """ byte_to_megabyte_factor = 1024 ** 2 size = dict(zip(['index', 'columns', 'values'], ...
import numpy as np import pandas as pd def dataframe_size(df): """Return a dict with the size of DataFrame components in MB. :param df: pandas.DataFrame :return dictionary with index, columns, values and total size """ byte_to_megabyte_factor = 1024 ** 2 size = dict(zip(['index', 'columns', 'v...
<commit_before>import numpy as np def dataframe_size(df): """Return a dict with the size of DataFrame components in MB. :param df: pandas.DataFrame :return dictionary with index, columns, values and total size """ byte_to_megabyte_factor = 1024 ** 2 size = dict(zip(['index', 'columns', 'values...
import numpy as np import pandas as pd def dataframe_size(df): """Return a dict with the size of DataFrame components in MB. :param df: pandas.DataFrame :return dictionary with index, columns, values and total size """ byte_to_megabyte_factor = 1024 ** 2 size = dict(zip(['index', 'columns', 'v...
import numpy as np def dataframe_size(df): """Return a dict with the size of DataFrame components in MB. :param df: pandas.DataFrame :return dictionary with index, columns, values and total size """ byte_to_megabyte_factor = 1024 ** 2 size = dict(zip(['index', 'columns', 'values'], ...
<commit_before>import numpy as np def dataframe_size(df): """Return a dict with the size of DataFrame components in MB. :param df: pandas.DataFrame :return dictionary with index, columns, values and total size """ byte_to_megabyte_factor = 1024 ** 2 size = dict(zip(['index', 'columns', 'values...
75ed1685632471ba6b63c3d9d050933e1c06e3d8
exporters/writers/console_writer.py
exporters/writers/console_writer.py
from exporters.writers.base_writer import BaseWriter, ItemsLimitReached class ConsoleWriter(BaseWriter): """ It is just a writer with testing purposes. It prints every item in console. """ def __init__(self, options): super(ConsoleWriter, self).__init__(options) self.logger.info('Cons...
import json from exporters.writers.base_writer import BaseWriter, ItemsLimitReached class ConsoleWriter(BaseWriter): """ It is just a writer with testing purposes. It prints every item in console. """ def __init__(self, options): super(ConsoleWriter, self).__init__(options) self.logg...
Add 'pretty_print' option to the ConsoleWritter
Add 'pretty_print' option to the ConsoleWritter Simply tries to use the json module to print the item as a formated json.
Python
bsd-3-clause
scrapinghub/exporters
from exporters.writers.base_writer import BaseWriter, ItemsLimitReached class ConsoleWriter(BaseWriter): """ It is just a writer with testing purposes. It prints every item in console. """ def __init__(self, options): super(ConsoleWriter, self).__init__(options) self.logger.info('Cons...
import json from exporters.writers.base_writer import BaseWriter, ItemsLimitReached class ConsoleWriter(BaseWriter): """ It is just a writer with testing purposes. It prints every item in console. """ def __init__(self, options): super(ConsoleWriter, self).__init__(options) self.logg...
<commit_before>from exporters.writers.base_writer import BaseWriter, ItemsLimitReached class ConsoleWriter(BaseWriter): """ It is just a writer with testing purposes. It prints every item in console. """ def __init__(self, options): super(ConsoleWriter, self).__init__(options) self.lo...
import json from exporters.writers.base_writer import BaseWriter, ItemsLimitReached class ConsoleWriter(BaseWriter): """ It is just a writer with testing purposes. It prints every item in console. """ def __init__(self, options): super(ConsoleWriter, self).__init__(options) self.logg...
from exporters.writers.base_writer import BaseWriter, ItemsLimitReached class ConsoleWriter(BaseWriter): """ It is just a writer with testing purposes. It prints every item in console. """ def __init__(self, options): super(ConsoleWriter, self).__init__(options) self.logger.info('Cons...
<commit_before>from exporters.writers.base_writer import BaseWriter, ItemsLimitReached class ConsoleWriter(BaseWriter): """ It is just a writer with testing purposes. It prints every item in console. """ def __init__(self, options): super(ConsoleWriter, self).__init__(options) self.lo...
b21327ab07451dd83eec0a17ee84a6e9d19f16c9
folivora/utils/notifications.py
folivora/utils/notifications.py
# -*- coding: utf-8 -*- """ folivora.utils.notification ~~~~~~~~~~~~~~~~~~~~~~~~~~~ Framework for user/project notifications. """ from django.conf import settings from django.template import loader from django.core.mail import send_mail def route_notifications(*log_entries): for entry in log_entries:...
# -*- coding: utf-8 -*- """ folivora.utils.notification ~~~~~~~~~~~~~~~~~~~~~~~~~~~ Framework for user/project notifications. """ from django.conf import settings from django.template import loader from django.core.mail import send_mail def route_notifications(*log_entries): for entry in log_entries:...
Use project member email if given
Use project member email if given
Python
isc
rocketDuck/folivora,rocketDuck/folivora,rocketDuck/folivora
# -*- coding: utf-8 -*- """ folivora.utils.notification ~~~~~~~~~~~~~~~~~~~~~~~~~~~ Framework for user/project notifications. """ from django.conf import settings from django.template import loader from django.core.mail import send_mail def route_notifications(*log_entries): for entry in log_entries:...
# -*- coding: utf-8 -*- """ folivora.utils.notification ~~~~~~~~~~~~~~~~~~~~~~~~~~~ Framework for user/project notifications. """ from django.conf import settings from django.template import loader from django.core.mail import send_mail def route_notifications(*log_entries): for entry in log_entries:...
<commit_before># -*- coding: utf-8 -*- """ folivora.utils.notification ~~~~~~~~~~~~~~~~~~~~~~~~~~~ Framework for user/project notifications. """ from django.conf import settings from django.template import loader from django.core.mail import send_mail def route_notifications(*log_entries): for entry ...
# -*- coding: utf-8 -*- """ folivora.utils.notification ~~~~~~~~~~~~~~~~~~~~~~~~~~~ Framework for user/project notifications. """ from django.conf import settings from django.template import loader from django.core.mail import send_mail def route_notifications(*log_entries): for entry in log_entries:...
# -*- coding: utf-8 -*- """ folivora.utils.notification ~~~~~~~~~~~~~~~~~~~~~~~~~~~ Framework for user/project notifications. """ from django.conf import settings from django.template import loader from django.core.mail import send_mail def route_notifications(*log_entries): for entry in log_entries:...
<commit_before># -*- coding: utf-8 -*- """ folivora.utils.notification ~~~~~~~~~~~~~~~~~~~~~~~~~~~ Framework for user/project notifications. """ from django.conf import settings from django.template import loader from django.core.mail import send_mail def route_notifications(*log_entries): for entry ...
1b6e3a4b51f0a85e63715984e9b670096d369db7
examples/threads.py
examples/threads.py
import guv guv.monkey_patch() import threading import greenlet greenlet_ids = {} def debug(i): print('{} greenlet_ids: {}'.format(i, greenlet_ids)) def f(): greenlet_ids[1] = greenlet.getcurrent() debug(2) def main(): greenlet_ids[0] = greenlet.getcurrent() debug(1) t = threading.Thread...
import guv guv.monkey_patch() from guv import gyield, sleep import threading import greenlet greenlet_ids = {} def debug(i): print('{} greenlet_ids: {}'.format(i, greenlet_ids)) def f(): greenlet_ids[1] = greenlet.getcurrent() debug(2) print('t: 1') gyield() print('t: 2') gyield() ...
Add calls to gyield() to ensure that we're in the same OS thread
Add calls to gyield() to ensure that we're in the same OS thread
Python
mit
veegee/guv,veegee/guv
import guv guv.monkey_patch() import threading import greenlet greenlet_ids = {} def debug(i): print('{} greenlet_ids: {}'.format(i, greenlet_ids)) def f(): greenlet_ids[1] = greenlet.getcurrent() debug(2) def main(): greenlet_ids[0] = greenlet.getcurrent() debug(1) t = threading.Thread...
import guv guv.monkey_patch() from guv import gyield, sleep import threading import greenlet greenlet_ids = {} def debug(i): print('{} greenlet_ids: {}'.format(i, greenlet_ids)) def f(): greenlet_ids[1] = greenlet.getcurrent() debug(2) print('t: 1') gyield() print('t: 2') gyield() ...
<commit_before>import guv guv.monkey_patch() import threading import greenlet greenlet_ids = {} def debug(i): print('{} greenlet_ids: {}'.format(i, greenlet_ids)) def f(): greenlet_ids[1] = greenlet.getcurrent() debug(2) def main(): greenlet_ids[0] = greenlet.getcurrent() debug(1) t = t...
import guv guv.monkey_patch() from guv import gyield, sleep import threading import greenlet greenlet_ids = {} def debug(i): print('{} greenlet_ids: {}'.format(i, greenlet_ids)) def f(): greenlet_ids[1] = greenlet.getcurrent() debug(2) print('t: 1') gyield() print('t: 2') gyield() ...
import guv guv.monkey_patch() import threading import greenlet greenlet_ids = {} def debug(i): print('{} greenlet_ids: {}'.format(i, greenlet_ids)) def f(): greenlet_ids[1] = greenlet.getcurrent() debug(2) def main(): greenlet_ids[0] = greenlet.getcurrent() debug(1) t = threading.Thread...
<commit_before>import guv guv.monkey_patch() import threading import greenlet greenlet_ids = {} def debug(i): print('{} greenlet_ids: {}'.format(i, greenlet_ids)) def f(): greenlet_ids[1] = greenlet.getcurrent() debug(2) def main(): greenlet_ids[0] = greenlet.getcurrent() debug(1) t = t...
ee00138478726ffb60b0a9d3541bb010b95903d8
cea/interfaces/dashboard/api/__init__.py
cea/interfaces/dashboard/api/__init__.py
from flask import Blueprint from flask_restplus import Api from .tools import api as tools from .project import api as project from .inputs import api as inputs from .dashboard import api as dashboard from .glossary import api as glossary blueprint = Blueprint('api', __name__, url_prefix='/api') api = Api(blueprint) ...
from flask import Blueprint from flask_restplus import Api from .tools import api as tools from .project import api as project from .inputs import api as inputs from .dashboard import api as dashboard from .glossary import api as glossary blueprint = Blueprint('api', __name__, url_prefix='/api') api = Api(blueprint) ...
Add general error handler for unhandled exceptions in api
Add general error handler for unhandled exceptions in api
Python
mit
architecture-building-systems/CityEnergyAnalyst,architecture-building-systems/CityEnergyAnalyst,architecture-building-systems/CityEnergyAnalyst
from flask import Blueprint from flask_restplus import Api from .tools import api as tools from .project import api as project from .inputs import api as inputs from .dashboard import api as dashboard from .glossary import api as glossary blueprint = Blueprint('api', __name__, url_prefix='/api') api = Api(blueprint) ...
from flask import Blueprint from flask_restplus import Api from .tools import api as tools from .project import api as project from .inputs import api as inputs from .dashboard import api as dashboard from .glossary import api as glossary blueprint = Blueprint('api', __name__, url_prefix='/api') api = Api(blueprint) ...
<commit_before>from flask import Blueprint from flask_restplus import Api from .tools import api as tools from .project import api as project from .inputs import api as inputs from .dashboard import api as dashboard from .glossary import api as glossary blueprint = Blueprint('api', __name__, url_prefix='/api') api = ...
from flask import Blueprint from flask_restplus import Api from .tools import api as tools from .project import api as project from .inputs import api as inputs from .dashboard import api as dashboard from .glossary import api as glossary blueprint = Blueprint('api', __name__, url_prefix='/api') api = Api(blueprint) ...
from flask import Blueprint from flask_restplus import Api from .tools import api as tools from .project import api as project from .inputs import api as inputs from .dashboard import api as dashboard from .glossary import api as glossary blueprint = Blueprint('api', __name__, url_prefix='/api') api = Api(blueprint) ...
<commit_before>from flask import Blueprint from flask_restplus import Api from .tools import api as tools from .project import api as project from .inputs import api as inputs from .dashboard import api as dashboard from .glossary import api as glossary blueprint = Blueprint('api', __name__, url_prefix='/api') api = ...
b3f978bef561bb10c7c897f8da2e3abae2612390
grappa/__init__.py
grappa/__init__.py
# -*- coding: utf-8 -* """ `grappa` provides two different testing styles: `should` and `expect`. should ------ Example using ``should`` style:: from grappa import should should('foo').be.equal.to('foo') 'foo' | should.be.equal.to('foo') expect ------ Example using ``expect`` style:: from grappa ...
# -*- coding: utf-8 -* """ `grappa` provides two different testing styles: `should` and `expect`. should ------ Example using ``should`` style:: from grappa import should should('foo').be.equal.to('foo') 'foo' | should.be.equal.to('foo') expect ------ Example using ``expect`` style:: from grappa ...
Bump version: 0.1.9 → 0.1.10
Bump version: 0.1.9 → 0.1.10
Python
mit
grappa-py/grappa
# -*- coding: utf-8 -* """ `grappa` provides two different testing styles: `should` and `expect`. should ------ Example using ``should`` style:: from grappa import should should('foo').be.equal.to('foo') 'foo' | should.be.equal.to('foo') expect ------ Example using ``expect`` style:: from grappa ...
# -*- coding: utf-8 -* """ `grappa` provides two different testing styles: `should` and `expect`. should ------ Example using ``should`` style:: from grappa import should should('foo').be.equal.to('foo') 'foo' | should.be.equal.to('foo') expect ------ Example using ``expect`` style:: from grappa ...
<commit_before># -*- coding: utf-8 -* """ `grappa` provides two different testing styles: `should` and `expect`. should ------ Example using ``should`` style:: from grappa import should should('foo').be.equal.to('foo') 'foo' | should.be.equal.to('foo') expect ------ Example using ``expect`` style:: ...
# -*- coding: utf-8 -* """ `grappa` provides two different testing styles: `should` and `expect`. should ------ Example using ``should`` style:: from grappa import should should('foo').be.equal.to('foo') 'foo' | should.be.equal.to('foo') expect ------ Example using ``expect`` style:: from grappa ...
# -*- coding: utf-8 -* """ `grappa` provides two different testing styles: `should` and `expect`. should ------ Example using ``should`` style:: from grappa import should should('foo').be.equal.to('foo') 'foo' | should.be.equal.to('foo') expect ------ Example using ``expect`` style:: from grappa ...
<commit_before># -*- coding: utf-8 -* """ `grappa` provides two different testing styles: `should` and `expect`. should ------ Example using ``should`` style:: from grappa import should should('foo').be.equal.to('foo') 'foo' | should.be.equal.to('foo') expect ------ Example using ``expect`` style:: ...
e8d5732e94d14a3a72999bd270af1fd3f3a2e09f
fileutil_posix.py
fileutil_posix.py
import sys, os, subprocess def run(args, workdir=None): p = subprocess.Popen(args, close_fds=True, cwd=workdir) return p.wait() if sys.platform == "darwin": shell_open_command = "open" else: shell_open_command = "xdg-open" def shell_open(path, workdir=None): return run([shell_open_command, path],...
import sys, os, subprocess def run(args, workdir=None): p = subprocess.Popen(args, close_fds=True, cwd=workdir) return p.wait() if sys.platform == "darwin": shell_open_command = "open" else: shell_open_command = "xdg-open" def shell_open(path, workdir=None): return run([shell_open_command, path],...
Use XDG_CONFIG_HOME for configuration directory.
Use XDG_CONFIG_HOME for configuration directory.
Python
mit
shaurz/devo
import sys, os, subprocess def run(args, workdir=None): p = subprocess.Popen(args, close_fds=True, cwd=workdir) return p.wait() if sys.platform == "darwin": shell_open_command = "open" else: shell_open_command = "xdg-open" def shell_open(path, workdir=None): return run([shell_open_command, path],...
import sys, os, subprocess def run(args, workdir=None): p = subprocess.Popen(args, close_fds=True, cwd=workdir) return p.wait() if sys.platform == "darwin": shell_open_command = "open" else: shell_open_command = "xdg-open" def shell_open(path, workdir=None): return run([shell_open_command, path],...
<commit_before>import sys, os, subprocess def run(args, workdir=None): p = subprocess.Popen(args, close_fds=True, cwd=workdir) return p.wait() if sys.platform == "darwin": shell_open_command = "open" else: shell_open_command = "xdg-open" def shell_open(path, workdir=None): return run([shell_open_...
import sys, os, subprocess def run(args, workdir=None): p = subprocess.Popen(args, close_fds=True, cwd=workdir) return p.wait() if sys.platform == "darwin": shell_open_command = "open" else: shell_open_command = "xdg-open" def shell_open(path, workdir=None): return run([shell_open_command, path],...
import sys, os, subprocess def run(args, workdir=None): p = subprocess.Popen(args, close_fds=True, cwd=workdir) return p.wait() if sys.platform == "darwin": shell_open_command = "open" else: shell_open_command = "xdg-open" def shell_open(path, workdir=None): return run([shell_open_command, path],...
<commit_before>import sys, os, subprocess def run(args, workdir=None): p = subprocess.Popen(args, close_fds=True, cwd=workdir) return p.wait() if sys.platform == "darwin": shell_open_command = "open" else: shell_open_command = "xdg-open" def shell_open(path, workdir=None): return run([shell_open_...
1f6892876d9f0a02d62de304a37c7a6e8d369a58
dimod/reference/samplers/random_sampler.py
dimod/reference/samplers/random_sampler.py
""" RandomSampler ------------- A random sampler that can be used for unit testing and debugging. """ import numpy as np from dimod.core.sampler import Sampler from dimod.response import Response, SampleView __all__ = ['RandomSampler'] class RandomSampler(Sampler): """Gives random samples. Note that this ...
""" RandomSampler ------------- A random sampler that can be used for unit testing and debugging. """ import numpy as np from dimod.core.sampler import Sampler from dimod.response import Response, SampleView __all__ = ['RandomSampler'] class RandomSampler(Sampler): """Gives random samples. Note that this ...
Update RandomSampler to use the new Sampler abc
Update RandomSampler to use the new Sampler abc
Python
apache-2.0
oneklc/dimod,oneklc/dimod
""" RandomSampler ------------- A random sampler that can be used for unit testing and debugging. """ import numpy as np from dimod.core.sampler import Sampler from dimod.response import Response, SampleView __all__ = ['RandomSampler'] class RandomSampler(Sampler): """Gives random samples. Note that this ...
""" RandomSampler ------------- A random sampler that can be used for unit testing and debugging. """ import numpy as np from dimod.core.sampler import Sampler from dimod.response import Response, SampleView __all__ = ['RandomSampler'] class RandomSampler(Sampler): """Gives random samples. Note that this ...
<commit_before>""" RandomSampler ------------- A random sampler that can be used for unit testing and debugging. """ import numpy as np from dimod.core.sampler import Sampler from dimod.response import Response, SampleView __all__ = ['RandomSampler'] class RandomSampler(Sampler): """Gives random samples. ...
""" RandomSampler ------------- A random sampler that can be used for unit testing and debugging. """ import numpy as np from dimod.core.sampler import Sampler from dimod.response import Response, SampleView __all__ = ['RandomSampler'] class RandomSampler(Sampler): """Gives random samples. Note that this ...
""" RandomSampler ------------- A random sampler that can be used for unit testing and debugging. """ import numpy as np from dimod.core.sampler import Sampler from dimod.response import Response, SampleView __all__ = ['RandomSampler'] class RandomSampler(Sampler): """Gives random samples. Note that this ...
<commit_before>""" RandomSampler ------------- A random sampler that can be used for unit testing and debugging. """ import numpy as np from dimod.core.sampler import Sampler from dimod.response import Response, SampleView __all__ = ['RandomSampler'] class RandomSampler(Sampler): """Gives random samples. ...
e84ca44178e984a356c0d77b6ce76040b74dd520
bin/upload_version.py
bin/upload_version.py
#!python import os import sys import json import requests if __name__ == '__main__': # create release version = sys.argv[1] filename = sys.argv[2] github_token = os.environ['GITHUB_TOKEN'] auth = (github_token, 'x-oauth-basic') commit_sha = os.environ['CIRCLE_SHA1'] params = json.dumps({ 'tag_name':...
#!python import os import sys import json import requests if __name__ == '__main__': version = sys.argv[1] filename = sys.argv[2].split('/')[-1] github_token = os.environ['GITHUB_TOKEN'] auth = (github_token, 'x-oauth-basic') commit_sha = os.environ['CIRCLE_SHA1'] params = json.dumps({ 'tag_name': 'v{...
Use only filename; without path
Use only filename; without path
Python
bsd-2-clause
chriszs/redash,alexanderlz/redash,rockwotj/redash,akariv/redash,useabode/redash,pubnative/redash,amino-data/redash,ninneko/redash,pubnative/redash,denisov-vlad/redash,easytaxibr/redash,moritz9/redash,denisov-vlad/redash,pubnative/redash,jmvasquez/redashtest,easytaxibr/redash,easytaxibr/redash,crowdworks/redash,stefanse...
#!python import os import sys import json import requests if __name__ == '__main__': # create release version = sys.argv[1] filename = sys.argv[2] github_token = os.environ['GITHUB_TOKEN'] auth = (github_token, 'x-oauth-basic') commit_sha = os.environ['CIRCLE_SHA1'] params = json.dumps({ 'tag_name':...
#!python import os import sys import json import requests if __name__ == '__main__': version = sys.argv[1] filename = sys.argv[2].split('/')[-1] github_token = os.environ['GITHUB_TOKEN'] auth = (github_token, 'x-oauth-basic') commit_sha = os.environ['CIRCLE_SHA1'] params = json.dumps({ 'tag_name': 'v{...
<commit_before>#!python import os import sys import json import requests if __name__ == '__main__': # create release version = sys.argv[1] filename = sys.argv[2] github_token = os.environ['GITHUB_TOKEN'] auth = (github_token, 'x-oauth-basic') commit_sha = os.environ['CIRCLE_SHA1'] params = json.dumps({ ...
#!python import os import sys import json import requests if __name__ == '__main__': version = sys.argv[1] filename = sys.argv[2].split('/')[-1] github_token = os.environ['GITHUB_TOKEN'] auth = (github_token, 'x-oauth-basic') commit_sha = os.environ['CIRCLE_SHA1'] params = json.dumps({ 'tag_name': 'v{...
#!python import os import sys import json import requests if __name__ == '__main__': # create release version = sys.argv[1] filename = sys.argv[2] github_token = os.environ['GITHUB_TOKEN'] auth = (github_token, 'x-oauth-basic') commit_sha = os.environ['CIRCLE_SHA1'] params = json.dumps({ 'tag_name':...
<commit_before>#!python import os import sys import json import requests if __name__ == '__main__': # create release version = sys.argv[1] filename = sys.argv[2] github_token = os.environ['GITHUB_TOKEN'] auth = (github_token, 'x-oauth-basic') commit_sha = os.environ['CIRCLE_SHA1'] params = json.dumps({ ...
f28716fba7f3b351b37fdfbb6e6cd1225592da57
example/app/templatetags/sqlformat.py
example/app/templatetags/sqlformat.py
from __future__ import unicode_literals import sqlparse from django import template register = template.Library() @register.filter def sqlformat(sql): return sqlparse.format(str(sql), reindent=True)
from __future__ import unicode_literals import sqlparse from django import template register = template.Library() @register.filter def sqlformat(sql): ''' Format SQL queries. ''' return sqlparse.format(str(sql), reindent=True, wrap_after=120)
Use less vertical space in query formatting
Use less vertical space in query formatting
Python
bsd-3-clause
zostera/django-modeltrans,zostera/django-modeltrans
from __future__ import unicode_literals import sqlparse from django import template register = template.Library() @register.filter def sqlformat(sql): return sqlparse.format(str(sql), reindent=True) Use less vertical space in query formatting
from __future__ import unicode_literals import sqlparse from django import template register = template.Library() @register.filter def sqlformat(sql): ''' Format SQL queries. ''' return sqlparse.format(str(sql), reindent=True, wrap_after=120)
<commit_before>from __future__ import unicode_literals import sqlparse from django import template register = template.Library() @register.filter def sqlformat(sql): return sqlparse.format(str(sql), reindent=True) <commit_msg>Use less vertical space in query formatting<commit_after>
from __future__ import unicode_literals import sqlparse from django import template register = template.Library() @register.filter def sqlformat(sql): ''' Format SQL queries. ''' return sqlparse.format(str(sql), reindent=True, wrap_after=120)
from __future__ import unicode_literals import sqlparse from django import template register = template.Library() @register.filter def sqlformat(sql): return sqlparse.format(str(sql), reindent=True) Use less vertical space in query formattingfrom __future__ import unicode_literals import sqlparse from django i...
<commit_before>from __future__ import unicode_literals import sqlparse from django import template register = template.Library() @register.filter def sqlformat(sql): return sqlparse.format(str(sql), reindent=True) <commit_msg>Use less vertical space in query formatting<commit_after>from __future__ import unicod...
a015eea9dfe94fe10ee44159f92b9ce196c14f2f
hooks/settings/settings_gunicorn.py
hooks/settings/settings_gunicorn.py
# -*- coding: utf-8 -*- """ Related article: https://sebest.github.io/post/protips-using-gunicorn-inside-a-docker-image/ Parameters you might want to override: GUNICORN_BIND="0.0.0.0:8005" """ import os workers = 4 bind = "0.0.0.0:8005" worker_class = "eventlet" worker_connections = 10 # Overwrite some Gunicorns...
# -*- coding: utf-8 -*- """ Related article: https://sebest.github.io/post/protips-using-gunicorn-inside-a-docker-image/ Parameters you might want to override: GUNICORN_BIND="0.0.0.0:8005" """ import os workers = 4 bind = "0.0.0.0:8005" worker_class = "eventlet" worker_connections = 100 # Overwrite some Gunicorn...
Increase Gunicorn worker eventlet connections, 10 -> 100.
Increase Gunicorn worker eventlet connections, 10 -> 100.
Python
mit
business-factory/captain-hook
# -*- coding: utf-8 -*- """ Related article: https://sebest.github.io/post/protips-using-gunicorn-inside-a-docker-image/ Parameters you might want to override: GUNICORN_BIND="0.0.0.0:8005" """ import os workers = 4 bind = "0.0.0.0:8005" worker_class = "eventlet" worker_connections = 10 # Overwrite some Gunicorns...
# -*- coding: utf-8 -*- """ Related article: https://sebest.github.io/post/protips-using-gunicorn-inside-a-docker-image/ Parameters you might want to override: GUNICORN_BIND="0.0.0.0:8005" """ import os workers = 4 bind = "0.0.0.0:8005" worker_class = "eventlet" worker_connections = 100 # Overwrite some Gunicorn...
<commit_before># -*- coding: utf-8 -*- """ Related article: https://sebest.github.io/post/protips-using-gunicorn-inside-a-docker-image/ Parameters you might want to override: GUNICORN_BIND="0.0.0.0:8005" """ import os workers = 4 bind = "0.0.0.0:8005" worker_class = "eventlet" worker_connections = 10 # Overwrite...
# -*- coding: utf-8 -*- """ Related article: https://sebest.github.io/post/protips-using-gunicorn-inside-a-docker-image/ Parameters you might want to override: GUNICORN_BIND="0.0.0.0:8005" """ import os workers = 4 bind = "0.0.0.0:8005" worker_class = "eventlet" worker_connections = 100 # Overwrite some Gunicorn...
# -*- coding: utf-8 -*- """ Related article: https://sebest.github.io/post/protips-using-gunicorn-inside-a-docker-image/ Parameters you might want to override: GUNICORN_BIND="0.0.0.0:8005" """ import os workers = 4 bind = "0.0.0.0:8005" worker_class = "eventlet" worker_connections = 10 # Overwrite some Gunicorns...
<commit_before># -*- coding: utf-8 -*- """ Related article: https://sebest.github.io/post/protips-using-gunicorn-inside-a-docker-image/ Parameters you might want to override: GUNICORN_BIND="0.0.0.0:8005" """ import os workers = 4 bind = "0.0.0.0:8005" worker_class = "eventlet" worker_connections = 10 # Overwrite...
d2676e499cb5fbc5864f5f4583a1d476c6406b36
extruct/jsonld.py
extruct/jsonld.py
# -*- coding: utf-8 -*- """ JSON-LD extractor """ import json import re import lxml.etree from extruct.utils import parse_html HTML_OR_JS_COMMENTLINE = re.compile(r'^\s*(//.*|<!--.*-->)') class JsonLdExtractor(object): _xp_jsonld = lxml.etree.XPath('descendant-or-self::script[@type="application/ld+json"]') ...
# -*- coding: utf-8 -*- """ JSON-LD extractor """ import json import re import lxml.etree from extruct.utils import parse_html HTML_OR_JS_COMMENTLINE = re.compile(r'^\s*(//.*|<!--.*-->)') class JsonLdExtractor(object): _xp_jsonld = lxml.etree.XPath('descendant-or-self::script[@type="application/ld+json"]') ...
Remove an unrelated, unnecessary extra line break
Remove an unrelated, unnecessary extra line break
Python
bsd-3-clause
scrapinghub/extruct
# -*- coding: utf-8 -*- """ JSON-LD extractor """ import json import re import lxml.etree from extruct.utils import parse_html HTML_OR_JS_COMMENTLINE = re.compile(r'^\s*(//.*|<!--.*-->)') class JsonLdExtractor(object): _xp_jsonld = lxml.etree.XPath('descendant-or-self::script[@type="application/ld+json"]') ...
# -*- coding: utf-8 -*- """ JSON-LD extractor """ import json import re import lxml.etree from extruct.utils import parse_html HTML_OR_JS_COMMENTLINE = re.compile(r'^\s*(//.*|<!--.*-->)') class JsonLdExtractor(object): _xp_jsonld = lxml.etree.XPath('descendant-or-self::script[@type="application/ld+json"]') ...
<commit_before># -*- coding: utf-8 -*- """ JSON-LD extractor """ import json import re import lxml.etree from extruct.utils import parse_html HTML_OR_JS_COMMENTLINE = re.compile(r'^\s*(//.*|<!--.*-->)') class JsonLdExtractor(object): _xp_jsonld = lxml.etree.XPath('descendant-or-self::script[@type="applicatio...
# -*- coding: utf-8 -*- """ JSON-LD extractor """ import json import re import lxml.etree from extruct.utils import parse_html HTML_OR_JS_COMMENTLINE = re.compile(r'^\s*(//.*|<!--.*-->)') class JsonLdExtractor(object): _xp_jsonld = lxml.etree.XPath('descendant-or-self::script[@type="application/ld+json"]') ...
# -*- coding: utf-8 -*- """ JSON-LD extractor """ import json import re import lxml.etree from extruct.utils import parse_html HTML_OR_JS_COMMENTLINE = re.compile(r'^\s*(//.*|<!--.*-->)') class JsonLdExtractor(object): _xp_jsonld = lxml.etree.XPath('descendant-or-self::script[@type="application/ld+json"]') ...
<commit_before># -*- coding: utf-8 -*- """ JSON-LD extractor """ import json import re import lxml.etree from extruct.utils import parse_html HTML_OR_JS_COMMENTLINE = re.compile(r'^\s*(//.*|<!--.*-->)') class JsonLdExtractor(object): _xp_jsonld = lxml.etree.XPath('descendant-or-self::script[@type="applicatio...
4ed0272e82c3bdef548643f4b9bce8f6bc510a42
classes.py
classes.py
from collections import namedtuple class User: def __init__(self, id_, first_name, last_name='', username=''): self.id = id_ self.first_name = first_name self.last_name = last_name self.username = username @classmethod def from_database(cls, user): return cls(*user...
from collections import namedtuple class User: def __init__(self, id_, first_name, last_name='', username='', language_code=''): self.id = id_ self.first_name = first_name self.last_name = last_name self.username = username @classmethod def from_database(cls, u...
Update User class to match Telegram API
Update User class to match Telegram API
Python
mit
Doktor/soup-dumpling
from collections import namedtuple class User: def __init__(self, id_, first_name, last_name='', username=''): self.id = id_ self.first_name = first_name self.last_name = last_name self.username = username @classmethod def from_database(cls, user): return cls(*user...
from collections import namedtuple class User: def __init__(self, id_, first_name, last_name='', username='', language_code=''): self.id = id_ self.first_name = first_name self.last_name = last_name self.username = username @classmethod def from_database(cls, u...
<commit_before>from collections import namedtuple class User: def __init__(self, id_, first_name, last_name='', username=''): self.id = id_ self.first_name = first_name self.last_name = last_name self.username = username @classmethod def from_database(cls, user): r...
from collections import namedtuple class User: def __init__(self, id_, first_name, last_name='', username='', language_code=''): self.id = id_ self.first_name = first_name self.last_name = last_name self.username = username @classmethod def from_database(cls, u...
from collections import namedtuple class User: def __init__(self, id_, first_name, last_name='', username=''): self.id = id_ self.first_name = first_name self.last_name = last_name self.username = username @classmethod def from_database(cls, user): return cls(*user...
<commit_before>from collections import namedtuple class User: def __init__(self, id_, first_name, last_name='', username=''): self.id = id_ self.first_name = first_name self.last_name = last_name self.username = username @classmethod def from_database(cls, user): r...
6392a40e5ec1cc1190f5870f6d7c9cc3710dfd46
contrib/fast-import/p4-clean-tags.py
contrib/fast-import/p4-clean-tags.py
#!/usr/bin/python # # p4-debug.py # # Author: Simon Hausmann <hausmann@kde.org> # License: MIT <http://www.opensource.org/licenses/mit-license.php> # # removes unused p4 import tags # import os, string, sys import popen2, getopt branch = "refs/heads/master" try: opts, args = getopt.getopt(sys.argv[1:], "", [ "bra...
#!/usr/bin/python # # p4-debug.py # # Author: Simon Hausmann <hausmann@kde.org> # License: MIT <http://www.opensource.org/licenses/mit-license.php> # # removes unused p4 import tags # import os, string, sys import popen2, getopt branch = "refs/heads/master" try: opts, args = getopt.getopt(sys.argv[1:], "", [ "bra...
Adjust the output parsing of git name-rev to handle the output of the latest git version.
Adjust the output parsing of git name-rev to handle the output of the latest git version. Signed-off-by: Simon Hausmann <0a3c2b6956b68ea9079d8d9063677b62a646d61b@kde.org>
Python
mit
destenson/git,destenson/git,destenson/git,destenson/git,destenson/git,destenson/git,destenson/git,destenson/git
#!/usr/bin/python # # p4-debug.py # # Author: Simon Hausmann <hausmann@kde.org> # License: MIT <http://www.opensource.org/licenses/mit-license.php> # # removes unused p4 import tags # import os, string, sys import popen2, getopt branch = "refs/heads/master" try: opts, args = getopt.getopt(sys.argv[1:], "", [ "bra...
#!/usr/bin/python # # p4-debug.py # # Author: Simon Hausmann <hausmann@kde.org> # License: MIT <http://www.opensource.org/licenses/mit-license.php> # # removes unused p4 import tags # import os, string, sys import popen2, getopt branch = "refs/heads/master" try: opts, args = getopt.getopt(sys.argv[1:], "", [ "bra...
<commit_before>#!/usr/bin/python # # p4-debug.py # # Author: Simon Hausmann <hausmann@kde.org> # License: MIT <http://www.opensource.org/licenses/mit-license.php> # # removes unused p4 import tags # import os, string, sys import popen2, getopt branch = "refs/heads/master" try: opts, args = getopt.getopt(sys.argv[...
#!/usr/bin/python # # p4-debug.py # # Author: Simon Hausmann <hausmann@kde.org> # License: MIT <http://www.opensource.org/licenses/mit-license.php> # # removes unused p4 import tags # import os, string, sys import popen2, getopt branch = "refs/heads/master" try: opts, args = getopt.getopt(sys.argv[1:], "", [ "bra...
#!/usr/bin/python # # p4-debug.py # # Author: Simon Hausmann <hausmann@kde.org> # License: MIT <http://www.opensource.org/licenses/mit-license.php> # # removes unused p4 import tags # import os, string, sys import popen2, getopt branch = "refs/heads/master" try: opts, args = getopt.getopt(sys.argv[1:], "", [ "bra...
<commit_before>#!/usr/bin/python # # p4-debug.py # # Author: Simon Hausmann <hausmann@kde.org> # License: MIT <http://www.opensource.org/licenses/mit-license.php> # # removes unused p4 import tags # import os, string, sys import popen2, getopt branch = "refs/heads/master" try: opts, args = getopt.getopt(sys.argv[...
49fb141da9bf544b73001c1e49ef19e85e88cefb
example.py
example.py
from ui import * import traceback ################################################################################ # example usage status = Text('Tests something | ok: 0 | error: 0 | fail: 0', style='RB') try: aoeu except Exception as e: err = traceback.format_exc()[:-1] exception = TextNoWrap(err) def test(i...
from ui import * import traceback ################################################################################ # example usage status = TextNoWrap('Tests something | ok: 0 | error: 0 | fail: 0', style='RB') try: aoeu except Exception as e: err = traceback.format_exc()[:-1] exception = TextNoWrap(err) def ...
Add extra booger-like properties before transferring
Add extra booger-like properties before transferring
Python
mit
thenoviceoof/booger,thenoviceoof/booger
from ui import * import traceback ################################################################################ # example usage status = Text('Tests something | ok: 0 | error: 0 | fail: 0', style='RB') try: aoeu except Exception as e: err = traceback.format_exc()[:-1] exception = TextNoWrap(err) def test(i...
from ui import * import traceback ################################################################################ # example usage status = TextNoWrap('Tests something | ok: 0 | error: 0 | fail: 0', style='RB') try: aoeu except Exception as e: err = traceback.format_exc()[:-1] exception = TextNoWrap(err) def ...
<commit_before>from ui import * import traceback ################################################################################ # example usage status = Text('Tests something | ok: 0 | error: 0 | fail: 0', style='RB') try: aoeu except Exception as e: err = traceback.format_exc()[:-1] exception = TextNoWrap(...
from ui import * import traceback ################################################################################ # example usage status = TextNoWrap('Tests something | ok: 0 | error: 0 | fail: 0', style='RB') try: aoeu except Exception as e: err = traceback.format_exc()[:-1] exception = TextNoWrap(err) def ...
from ui import * import traceback ################################################################################ # example usage status = Text('Tests something | ok: 0 | error: 0 | fail: 0', style='RB') try: aoeu except Exception as e: err = traceback.format_exc()[:-1] exception = TextNoWrap(err) def test(i...
<commit_before>from ui import * import traceback ################################################################################ # example usage status = Text('Tests something | ok: 0 | error: 0 | fail: 0', style='RB') try: aoeu except Exception as e: err = traceback.format_exc()[:-1] exception = TextNoWrap(...
6506ece45d123bcf615a636245bc12498b5348de
hsdecomp/ptrutil.py
hsdecomp/ptrutil.py
import struct from hsdecomp.types import * def read_half_word(settings, file_offset): return struct.unpack(settings.rt.halfword.struct, settings.binary[file_offset:file_offset+settings.rt.halfword.size])[0] def read_word(settings, file_offset): return struct.unpack(settings.rt.word.struct, settings.binary[fi...
import struct from hsdecomp.types import * def read_half_word(settings, file_offset): return struct.unpack(settings.rt.halfword.struct, settings.binary[file_offset:file_offset+settings.rt.halfword.size])[0] def read_word(settings, file_offset): return struct.unpack(settings.rt.word.struct, settings.binary[fi...
Kill obsolete case in pointer_offset
Kill obsolete case in pointer_offset
Python
mit
gereeter/hsdecomp
import struct from hsdecomp.types import * def read_half_word(settings, file_offset): return struct.unpack(settings.rt.halfword.struct, settings.binary[file_offset:file_offset+settings.rt.halfword.size])[0] def read_word(settings, file_offset): return struct.unpack(settings.rt.word.struct, settings.binary[fi...
import struct from hsdecomp.types import * def read_half_word(settings, file_offset): return struct.unpack(settings.rt.halfword.struct, settings.binary[file_offset:file_offset+settings.rt.halfword.size])[0] def read_word(settings, file_offset): return struct.unpack(settings.rt.word.struct, settings.binary[fi...
<commit_before>import struct from hsdecomp.types import * def read_half_word(settings, file_offset): return struct.unpack(settings.rt.halfword.struct, settings.binary[file_offset:file_offset+settings.rt.halfword.size])[0] def read_word(settings, file_offset): return struct.unpack(settings.rt.word.struct, set...
import struct from hsdecomp.types import * def read_half_word(settings, file_offset): return struct.unpack(settings.rt.halfword.struct, settings.binary[file_offset:file_offset+settings.rt.halfword.size])[0] def read_word(settings, file_offset): return struct.unpack(settings.rt.word.struct, settings.binary[fi...
import struct from hsdecomp.types import * def read_half_word(settings, file_offset): return struct.unpack(settings.rt.halfword.struct, settings.binary[file_offset:file_offset+settings.rt.halfword.size])[0] def read_word(settings, file_offset): return struct.unpack(settings.rt.word.struct, settings.binary[fi...
<commit_before>import struct from hsdecomp.types import * def read_half_word(settings, file_offset): return struct.unpack(settings.rt.halfword.struct, settings.binary[file_offset:file_offset+settings.rt.halfword.size])[0] def read_word(settings, file_offset): return struct.unpack(settings.rt.word.struct, set...
d901af0d908053d11db556c7755dbce32e9d1311
importlib_resources/tests/test_contents.py
importlib_resources/tests/test_contents.py
import unittest import importlib_resources as resources from . import data01 from . import util class ContentsTests: @property def contents(self): return sorted( [el for el in list(resources.contents(self.data)) if el != '__pycache__'] ) class ContentsDiskTests(ContentsTests, un...
import unittest import importlib_resources as resources from . import data01 from . import util class ContentsTests: expected = { '__init__.py', 'binary.file', 'subdirectory', 'utf-16.file', 'utf-8.file', } def test_contents(self): assert self.expected <= ...
Consolidate some behavior and re-use 'set' comparison for less strict unordered comparisons.
Consolidate some behavior and re-use 'set' comparison for less strict unordered comparisons.
Python
apache-2.0
python/importlib_resources
import unittest import importlib_resources as resources from . import data01 from . import util class ContentsTests: @property def contents(self): return sorted( [el for el in list(resources.contents(self.data)) if el != '__pycache__'] ) class ContentsDiskTests(ContentsTests, un...
import unittest import importlib_resources as resources from . import data01 from . import util class ContentsTests: expected = { '__init__.py', 'binary.file', 'subdirectory', 'utf-16.file', 'utf-8.file', } def test_contents(self): assert self.expected <= ...
<commit_before>import unittest import importlib_resources as resources from . import data01 from . import util class ContentsTests: @property def contents(self): return sorted( [el for el in list(resources.contents(self.data)) if el != '__pycache__'] ) class ContentsDiskTests(Co...
import unittest import importlib_resources as resources from . import data01 from . import util class ContentsTests: expected = { '__init__.py', 'binary.file', 'subdirectory', 'utf-16.file', 'utf-8.file', } def test_contents(self): assert self.expected <= ...
import unittest import importlib_resources as resources from . import data01 from . import util class ContentsTests: @property def contents(self): return sorted( [el for el in list(resources.contents(self.data)) if el != '__pycache__'] ) class ContentsDiskTests(ContentsTests, un...
<commit_before>import unittest import importlib_resources as resources from . import data01 from . import util class ContentsTests: @property def contents(self): return sorted( [el for el in list(resources.contents(self.data)) if el != '__pycache__'] ) class ContentsDiskTests(Co...
eab9a90c41d140d2029edba44065a2380ddf1f11
syncplay/__init__.py
syncplay/__init__.py
version = '1.3.0' milestone = 'Chami' release_number = '3' projectURL = 'http://syncplay.pl/'
version = '1.3.0' milestone = 'Chami' release_number = '4' projectURL = 'http://syncplay.pl/'
Increase release number to 4 (1.3.0 Beta 3)
Increase release number to 4 (1.3.0 Beta 3)
Python
apache-2.0
NeverDecaf/syncplay,Syncplay/syncplay,alby128/syncplay,NeverDecaf/syncplay,alby128/syncplay,Syncplay/syncplay
version = '1.3.0' milestone = 'Chami' release_number = '3' projectURL = 'http://syncplay.pl/' Increase release number to 4 (1.3.0 Beta 3)
version = '1.3.0' milestone = 'Chami' release_number = '4' projectURL = 'http://syncplay.pl/'
<commit_before>version = '1.3.0' milestone = 'Chami' release_number = '3' projectURL = 'http://syncplay.pl/' <commit_msg>Increase release number to 4 (1.3.0 Beta 3)<commit_after>
version = '1.3.0' milestone = 'Chami' release_number = '4' projectURL = 'http://syncplay.pl/'
version = '1.3.0' milestone = 'Chami' release_number = '3' projectURL = 'http://syncplay.pl/' Increase release number to 4 (1.3.0 Beta 3)version = '1.3.0' milestone = 'Chami' release_number = '4' projectURL = 'http://syncplay.pl/'
<commit_before>version = '1.3.0' milestone = 'Chami' release_number = '3' projectURL = 'http://syncplay.pl/' <commit_msg>Increase release number to 4 (1.3.0 Beta 3)<commit_after>version = '1.3.0' milestone = 'Chami' release_number = '4' projectURL = 'http://syncplay.pl/'
54b619f75fd07b9843054e1077e908981d5fa89e
crm_compassion/tests/__init__.py
crm_compassion/tests/__init__.py
# -*- encoding: utf-8 -*- ############################################################################## # # Copyright (C) 2015 Compassion CH (http://www.compassion.ch) # Releasing children from poverty in Jesus' name # @author: Albert SHENOUDA <albert.shenouda@efrei.net> # # The licence is in the fi...
# -*- encoding: utf-8 -*- ############################################################################## # # Copyright (C) 2015 Compassion CH (http://www.compassion.ch) # Releasing children from poverty in Jesus' name # @author: Albert SHENOUDA <albert.shenouda@efrei.net> # # The licence is in the fi...
Fix pep8 in init file
Fix pep8 in init file
Python
agpl-3.0
ecino/compassion-modules,CompassionCH/compassion-modules,philippe89/compassion-modules,MickSandoz/compassion-modules,eicher31/compassion-modules,ecino/compassion-modules,Secheron/compassion-modules,CompassionCH/compassion-modules,MickSandoz/compassion-modules,Secheron/compassion-modules,MickSandoz/compassion-modules,nd...
# -*- encoding: utf-8 -*- ############################################################################## # # Copyright (C) 2015 Compassion CH (http://www.compassion.ch) # Releasing children from poverty in Jesus' name # @author: Albert SHENOUDA <albert.shenouda@efrei.net> # # The licence is in the fi...
# -*- encoding: utf-8 -*- ############################################################################## # # Copyright (C) 2015 Compassion CH (http://www.compassion.ch) # Releasing children from poverty in Jesus' name # @author: Albert SHENOUDA <albert.shenouda@efrei.net> # # The licence is in the fi...
<commit_before># -*- encoding: utf-8 -*- ############################################################################## # # Copyright (C) 2015 Compassion CH (http://www.compassion.ch) # Releasing children from poverty in Jesus' name # @author: Albert SHENOUDA <albert.shenouda@efrei.net> # # The licen...
# -*- encoding: utf-8 -*- ############################################################################## # # Copyright (C) 2015 Compassion CH (http://www.compassion.ch) # Releasing children from poverty in Jesus' name # @author: Albert SHENOUDA <albert.shenouda@efrei.net> # # The licence is in the fi...
# -*- encoding: utf-8 -*- ############################################################################## # # Copyright (C) 2015 Compassion CH (http://www.compassion.ch) # Releasing children from poverty in Jesus' name # @author: Albert SHENOUDA <albert.shenouda@efrei.net> # # The licence is in the fi...
<commit_before># -*- encoding: utf-8 -*- ############################################################################## # # Copyright (C) 2015 Compassion CH (http://www.compassion.ch) # Releasing children from poverty in Jesus' name # @author: Albert SHENOUDA <albert.shenouda@efrei.net> # # The licen...
7c12e3d3fc4e09658b0ad7dc7a1fbb80e6ec80b8
generate_table.py
generate_table.py
import json import xml.etree.ElementTree as etree table = etree.Element("table", attrib={ "class": "tablesorter", "cellspacing": "1", "cellpadding": "0", }) thead = etree.SubElement(table, "thead") tbody = etree.SubElement(table, "tbody") tr = etree.SubElement(thead, "tr") for heading in ["Product", ...
import json import xml.etree.ElementTree as etree table = etree.Element("table", attrib={ "id": "apple", "class": "tablesorter", "cellspacing": "1", "cellpadding": "0", }) thead = etree.SubElement(table, "thead") tbody = etree.SubElement(table, "tbody") tr = etree.SubElement(thead, "tr") for head...
Make sure to add the apple id
Make sure to add the apple id
Python
mit
kyleconroy/apple-stock
import json import xml.etree.ElementTree as etree table = etree.Element("table", attrib={ "class": "tablesorter", "cellspacing": "1", "cellpadding": "0", }) thead = etree.SubElement(table, "thead") tbody = etree.SubElement(table, "tbody") tr = etree.SubElement(thead, "tr") for heading in ["Product", ...
import json import xml.etree.ElementTree as etree table = etree.Element("table", attrib={ "id": "apple", "class": "tablesorter", "cellspacing": "1", "cellpadding": "0", }) thead = etree.SubElement(table, "thead") tbody = etree.SubElement(table, "tbody") tr = etree.SubElement(thead, "tr") for head...
<commit_before>import json import xml.etree.ElementTree as etree table = etree.Element("table", attrib={ "class": "tablesorter", "cellspacing": "1", "cellpadding": "0", }) thead = etree.SubElement(table, "thead") tbody = etree.SubElement(table, "tbody") tr = etree.SubElement(thead, "tr") for heading ...
import json import xml.etree.ElementTree as etree table = etree.Element("table", attrib={ "id": "apple", "class": "tablesorter", "cellspacing": "1", "cellpadding": "0", }) thead = etree.SubElement(table, "thead") tbody = etree.SubElement(table, "tbody") tr = etree.SubElement(thead, "tr") for head...
import json import xml.etree.ElementTree as etree table = etree.Element("table", attrib={ "class": "tablesorter", "cellspacing": "1", "cellpadding": "0", }) thead = etree.SubElement(table, "thead") tbody = etree.SubElement(table, "tbody") tr = etree.SubElement(thead, "tr") for heading in ["Product", ...
<commit_before>import json import xml.etree.ElementTree as etree table = etree.Element("table", attrib={ "class": "tablesorter", "cellspacing": "1", "cellpadding": "0", }) thead = etree.SubElement(table, "thead") tbody = etree.SubElement(table, "tbody") tr = etree.SubElement(thead, "tr") for heading ...
21c82cbf238b0a87f8aeebf713b7218a282ae280
pyconca2017/pycon_sponsors/templatetags/presenters.py
pyconca2017/pycon_sponsors/templatetags/presenters.py
from django.template.loader_tags import register from django.template import loader, Context, defaultfilters, TemplateDoesNotExist import markdown presenters = { 'Speaker': 'presenters/speaker_presenter.html' } generic_template = 'presenters/object_presenter.html' @register.simple_tag(takes_context=True) def p...
from django.template.loader_tags import register from django.template import loader, Context, defaultfilters, TemplateDoesNotExist import markdown presenters = { 'Speaker': 'presenters/speaker_presenter.html' } generic_template = 'presenters/object_presenter.html' @register.simple_tag(takes_context=True) def p...
Fix a bug in the template tag.
:bug: Fix a bug in the template tag.
Python
mit
pyconca/2017-web,pyconca/2017-web,pyconca/2017-web,pyconca/2017-web
from django.template.loader_tags import register from django.template import loader, Context, defaultfilters, TemplateDoesNotExist import markdown presenters = { 'Speaker': 'presenters/speaker_presenter.html' } generic_template = 'presenters/object_presenter.html' @register.simple_tag(takes_context=True) def p...
from django.template.loader_tags import register from django.template import loader, Context, defaultfilters, TemplateDoesNotExist import markdown presenters = { 'Speaker': 'presenters/speaker_presenter.html' } generic_template = 'presenters/object_presenter.html' @register.simple_tag(takes_context=True) def p...
<commit_before>from django.template.loader_tags import register from django.template import loader, Context, defaultfilters, TemplateDoesNotExist import markdown presenters = { 'Speaker': 'presenters/speaker_presenter.html' } generic_template = 'presenters/object_presenter.html' @register.simple_tag(takes_cont...
from django.template.loader_tags import register from django.template import loader, Context, defaultfilters, TemplateDoesNotExist import markdown presenters = { 'Speaker': 'presenters/speaker_presenter.html' } generic_template = 'presenters/object_presenter.html' @register.simple_tag(takes_context=True) def p...
from django.template.loader_tags import register from django.template import loader, Context, defaultfilters, TemplateDoesNotExist import markdown presenters = { 'Speaker': 'presenters/speaker_presenter.html' } generic_template = 'presenters/object_presenter.html' @register.simple_tag(takes_context=True) def p...
<commit_before>from django.template.loader_tags import register from django.template import loader, Context, defaultfilters, TemplateDoesNotExist import markdown presenters = { 'Speaker': 'presenters/speaker_presenter.html' } generic_template = 'presenters/object_presenter.html' @register.simple_tag(takes_cont...
26bbb0b8cca1d44548c96726d4b4e8296a482d12
ircstat/defaults.py
ircstat/defaults.py
# Copyright 2013 John Reese # Licensed under the MIT license filename_regex = r'(?:[a-z]+_)#(?P<channel>[a-z]+)_(?P<date>\d{8}).log' channel_regex_group = 1 date_regex_group = 2 date_format = r'%Y%m%d'
# Copyright 2013 John Reese # Licensed under the MIT license # the regex to parse data from irc log filenames. # must contain two named matching groups: # channel: the name of the channel # date: the date of the conversation filename_regex = r'#?(?P<channel>[a-z]+)_(?P<date>\d{8}).log' # the format of the date co...
Clean up and document default config values
Clean up and document default config values
Python
mit
jreese/ircstat,jreese/ircstat
# Copyright 2013 John Reese # Licensed under the MIT license filename_regex = r'(?:[a-z]+_)#(?P<channel>[a-z]+)_(?P<date>\d{8}).log' channel_regex_group = 1 date_regex_group = 2 date_format = r'%Y%m%d' Clean up and document default config values
# Copyright 2013 John Reese # Licensed under the MIT license # the regex to parse data from irc log filenames. # must contain two named matching groups: # channel: the name of the channel # date: the date of the conversation filename_regex = r'#?(?P<channel>[a-z]+)_(?P<date>\d{8}).log' # the format of the date co...
<commit_before># Copyright 2013 John Reese # Licensed under the MIT license filename_regex = r'(?:[a-z]+_)#(?P<channel>[a-z]+)_(?P<date>\d{8}).log' channel_regex_group = 1 date_regex_group = 2 date_format = r'%Y%m%d' <commit_msg>Clean up and document default config values<commit_after>
# Copyright 2013 John Reese # Licensed under the MIT license # the regex to parse data from irc log filenames. # must contain two named matching groups: # channel: the name of the channel # date: the date of the conversation filename_regex = r'#?(?P<channel>[a-z]+)_(?P<date>\d{8}).log' # the format of the date co...
# Copyright 2013 John Reese # Licensed under the MIT license filename_regex = r'(?:[a-z]+_)#(?P<channel>[a-z]+)_(?P<date>\d{8}).log' channel_regex_group = 1 date_regex_group = 2 date_format = r'%Y%m%d' Clean up and document default config values# Copyright 2013 John Reese # Licensed under the MIT license # the regex...
<commit_before># Copyright 2013 John Reese # Licensed under the MIT license filename_regex = r'(?:[a-z]+_)#(?P<channel>[a-z]+)_(?P<date>\d{8}).log' channel_regex_group = 1 date_regex_group = 2 date_format = r'%Y%m%d' <commit_msg>Clean up and document default config values<commit_after># Copyright 2013 John Reese # Li...
9116828db256ecb1a1e303e31049e526ab9ae8eb
mailqueue/urls.py
mailqueue/urls.py
from django.conf.urls import patterns, url urlpatterns = patterns('mailqueue.views', url(r'^clear$', 'clear_sent_messages', name='clear_sent_messages'), url(r'^$', 'run_mail_job', name='run_mail_job'), )
from django.conf.urls import url from . import views urlpatterns = [ url(r'^clear$', views.clear_sent_messages, name='clear_sent_messages'), url(r'^$', views.run_mail_job, name='run_mail_job'), ]
Remove warning "deprecated" in url.py
Remove warning "deprecated" in url.py version django=1.9.6 RemovedInDjango110Warning: django.conf.urls.patterns() is deprecated and will be removed in Django 1.10. Update your urlpatterns to be a list of django.conf.urls.url() instances instead.
Python
mit
dstegelman/django-mail-queue,Goury/django-mail-queue,Goury/django-mail-queue,dstegelman/django-mail-queue
from django.conf.urls import patterns, url urlpatterns = patterns('mailqueue.views', url(r'^clear$', 'clear_sent_messages', name='clear_sent_messages'), url(r'^$', 'run_mail_job', name='run_mail_job'), ) Remove warning "deprecated" in url.py version...
from django.conf.urls import url from . import views urlpatterns = [ url(r'^clear$', views.clear_sent_messages, name='clear_sent_messages'), url(r'^$', views.run_mail_job, name='run_mail_job'), ]
<commit_before>from django.conf.urls import patterns, url urlpatterns = patterns('mailqueue.views', url(r'^clear$', 'clear_sent_messages', name='clear_sent_messages'), url(r'^$', 'run_mail_job', name='run_mail_job'), ) <commit_msg>Remove warning "dep...
from django.conf.urls import url from . import views urlpatterns = [ url(r'^clear$', views.clear_sent_messages, name='clear_sent_messages'), url(r'^$', views.run_mail_job, name='run_mail_job'), ]
from django.conf.urls import patterns, url urlpatterns = patterns('mailqueue.views', url(r'^clear$', 'clear_sent_messages', name='clear_sent_messages'), url(r'^$', 'run_mail_job', name='run_mail_job'), ) Remove warning "deprecated" in url.py version...
<commit_before>from django.conf.urls import patterns, url urlpatterns = patterns('mailqueue.views', url(r'^clear$', 'clear_sent_messages', name='clear_sent_messages'), url(r'^$', 'run_mail_job', name='run_mail_job'), ) <commit_msg>Remove warning "dep...
05fc49863d202b2e12f8ac822c40bab4618aeff1
moocng/peerreview/managers.py
moocng/peerreview/managers.py
# Copyright 2013 Rooter Analysis S.L. # # 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 w...
# Copyright 2013 Rooter Analysis S.L. # # 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 w...
Fix the order of assignments
Fix the order of assignments
Python
apache-2.0
OpenMOOC/moocng,GeographicaGS/moocng,GeographicaGS/moocng,GeographicaGS/moocng,OpenMOOC/moocng,GeographicaGS/moocng
# Copyright 2013 Rooter Analysis S.L. # # 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 w...
# Copyright 2013 Rooter Analysis S.L. # # 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 w...
<commit_before># Copyright 2013 Rooter Analysis S.L. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
# Copyright 2013 Rooter Analysis S.L. # # 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 w...
# Copyright 2013 Rooter Analysis S.L. # # 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 w...
<commit_before># Copyright 2013 Rooter Analysis S.L. # # 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...
68c768634503d359fac23869e20931f0b39897dc
fulfil_client/contrib/mocking.py
fulfil_client/contrib/mocking.py
# -*- coding: utf-8 -*- try: from unittest import mock except ImportError: import mock class MockFulfil(object): """ A Mock object that helps mock away the Fulfil API for testing. """ responses = [] models = {} def __init__(self, target, responses=None): self.target = targ...
# -*- coding: utf-8 -*- try: from unittest import mock except ImportError: import mock class MockFulfil(object): """ A Mock object that helps mock away the Fulfil API for testing. """ responses = [] models = {} context = {} subdomain = 'mock-test' def __init__(self, target...
Add subdomain and context to mock
Add subdomain and context to mock
Python
isc
sharoonthomas/fulfil-python-api,fulfilio/fulfil-python-api
# -*- coding: utf-8 -*- try: from unittest import mock except ImportError: import mock class MockFulfil(object): """ A Mock object that helps mock away the Fulfil API for testing. """ responses = [] models = {} def __init__(self, target, responses=None): self.target = targ...
# -*- coding: utf-8 -*- try: from unittest import mock except ImportError: import mock class MockFulfil(object): """ A Mock object that helps mock away the Fulfil API for testing. """ responses = [] models = {} context = {} subdomain = 'mock-test' def __init__(self, target...
<commit_before># -*- coding: utf-8 -*- try: from unittest import mock except ImportError: import mock class MockFulfil(object): """ A Mock object that helps mock away the Fulfil API for testing. """ responses = [] models = {} def __init__(self, target, responses=None): sel...
# -*- coding: utf-8 -*- try: from unittest import mock except ImportError: import mock class MockFulfil(object): """ A Mock object that helps mock away the Fulfil API for testing. """ responses = [] models = {} context = {} subdomain = 'mock-test' def __init__(self, target...
# -*- coding: utf-8 -*- try: from unittest import mock except ImportError: import mock class MockFulfil(object): """ A Mock object that helps mock away the Fulfil API for testing. """ responses = [] models = {} def __init__(self, target, responses=None): self.target = targ...
<commit_before># -*- coding: utf-8 -*- try: from unittest import mock except ImportError: import mock class MockFulfil(object): """ A Mock object that helps mock away the Fulfil API for testing. """ responses = [] models = {} def __init__(self, target, responses=None): sel...
3a0b5bd923eff1fb143aa73fc54f735e7b330068
examples/plot_sphere_function.py
examples/plot_sphere_function.py
#!/usr/bin/env python3 # coding: utf-8 """ ================================================ Optimization Benchmark: Plot the Sphere Function ================================================ This example show how to plot the *Sphere function*. """ ######################################################################...
#!/usr/bin/env python3 # coding: utf-8 """ ================================================ Optimization Benchmark: Plot the Sphere Function ================================================ This example show how to plot the *Sphere function*. """ ######################################################################...
Switch off the output file generation.
Switch off the output file generation.
Python
mit
jeremiedecock/pyai,jeremiedecock/pyai
#!/usr/bin/env python3 # coding: utf-8 """ ================================================ Optimization Benchmark: Plot the Sphere Function ================================================ This example show how to plot the *Sphere function*. """ ######################################################################...
#!/usr/bin/env python3 # coding: utf-8 """ ================================================ Optimization Benchmark: Plot the Sphere Function ================================================ This example show how to plot the *Sphere function*. """ ######################################################################...
<commit_before>#!/usr/bin/env python3 # coding: utf-8 """ ================================================ Optimization Benchmark: Plot the Sphere Function ================================================ This example show how to plot the *Sphere function*. """ #######################################################...
#!/usr/bin/env python3 # coding: utf-8 """ ================================================ Optimization Benchmark: Plot the Sphere Function ================================================ This example show how to plot the *Sphere function*. """ ######################################################################...
#!/usr/bin/env python3 # coding: utf-8 """ ================================================ Optimization Benchmark: Plot the Sphere Function ================================================ This example show how to plot the *Sphere function*. """ ######################################################################...
<commit_before>#!/usr/bin/env python3 # coding: utf-8 """ ================================================ Optimization Benchmark: Plot the Sphere Function ================================================ This example show how to plot the *Sphere function*. """ #######################################################...
04fcda42222fff1daad780db53190bcfb721d034
polling_stations/apps/data_collection/management/commands/import_mid_sussex.py
polling_stations/apps/data_collection/management/commands/import_mid_sussex.py
""" Imports Mid Sussex """ import sys from django.contrib.gis.geos import Point, GEOSGeometry from data_collection.management.commands import BaseKamlImporter class Command(BaseKamlImporter): """ Imports the Polling Station data from Mid Sussex """ council_id = 'E07000228' districts_name = 'm...
""" Imports Mid Sussex """ import sys from lxml import etree from django.contrib.gis.geos import Point, GEOSGeometry from data_collection.management.commands import BaseKamlImporter class Command(BaseKamlImporter): """ Imports the Polling Station data from Mid Sussex """ council_id = 'E07000228' ...
Fix Mid Sussex Import script
Fix Mid Sussex Import script Set polling_district_id Use mserid as internal_council_id to avoid importing duplicate points
Python
bsd-3-clause
chris48s/UK-Polling-Stations,andylolz/UK-Polling-Stations,DemocracyClub/UK-Polling-Stations,DemocracyClub/UK-Polling-Stations,chris48s/UK-Polling-Stations,andylolz/UK-Polling-Stations,chris48s/UK-Polling-Stations,DemocracyClub/UK-Polling-Stations,andylolz/UK-Polling-Stations
""" Imports Mid Sussex """ import sys from django.contrib.gis.geos import Point, GEOSGeometry from data_collection.management.commands import BaseKamlImporter class Command(BaseKamlImporter): """ Imports the Polling Station data from Mid Sussex """ council_id = 'E07000228' districts_name = 'm...
""" Imports Mid Sussex """ import sys from lxml import etree from django.contrib.gis.geos import Point, GEOSGeometry from data_collection.management.commands import BaseKamlImporter class Command(BaseKamlImporter): """ Imports the Polling Station data from Mid Sussex """ council_id = 'E07000228' ...
<commit_before>""" Imports Mid Sussex """ import sys from django.contrib.gis.geos import Point, GEOSGeometry from data_collection.management.commands import BaseKamlImporter class Command(BaseKamlImporter): """ Imports the Polling Station data from Mid Sussex """ council_id = 'E07000228' dist...
""" Imports Mid Sussex """ import sys from lxml import etree from django.contrib.gis.geos import Point, GEOSGeometry from data_collection.management.commands import BaseKamlImporter class Command(BaseKamlImporter): """ Imports the Polling Station data from Mid Sussex """ council_id = 'E07000228' ...
""" Imports Mid Sussex """ import sys from django.contrib.gis.geos import Point, GEOSGeometry from data_collection.management.commands import BaseKamlImporter class Command(BaseKamlImporter): """ Imports the Polling Station data from Mid Sussex """ council_id = 'E07000228' districts_name = 'm...
<commit_before>""" Imports Mid Sussex """ import sys from django.contrib.gis.geos import Point, GEOSGeometry from data_collection.management.commands import BaseKamlImporter class Command(BaseKamlImporter): """ Imports the Polling Station data from Mid Sussex """ council_id = 'E07000228' dist...
1c3a9f3a19fe2f4296775ae508b92e4208a9687a
content/test/gpu/gpu_tests/pixel_expectations.py
content/test/gpu/gpu_tests/pixel_expectations.py
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from telemetry.page import test_expectations # Valid expectation conditions are: # # Operating systems: # win, xp, vista, win7, mac, leopard, snowleopar...
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from telemetry.page import test_expectations # Valid expectation conditions are: # # Operating systems: # win, xp, vista, win7, mac, leopard, snowleopar...
Remove failing expectations for the pixel tests.
Remove failing expectations for the pixel tests. The expectations were only in temporarily to allow a rebaseline. BUG=416450 Review URL: https://codereview.chromium.org/591213002 Cr-Commit-Position: 972c6d2dc6dd5efdad1377c0d224e03eb8f276f7@{#296061}
Python
bsd-3-clause
M4sse/chromium.src,M4sse/chromium.src,jaruba/chromium.src,dednal/chromium.src,Pluto-tv/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,jaruba/chromium.src,Fireblend/chromium-crosswalk,markYoungH/chromium.src,krieger-od/nwjs_chromium.src,chuan9/chromium-crosswalk,fujunwei/chromium-crosswalk,hgl888/chromium-crosswal...
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from telemetry.page import test_expectations # Valid expectation conditions are: # # Operating systems: # win, xp, vista, win7, mac, leopard, snowleopar...
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from telemetry.page import test_expectations # Valid expectation conditions are: # # Operating systems: # win, xp, vista, win7, mac, leopard, snowleopar...
<commit_before># Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from telemetry.page import test_expectations # Valid expectation conditions are: # # Operating systems: # win, xp, vista, win7, mac, leop...
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from telemetry.page import test_expectations # Valid expectation conditions are: # # Operating systems: # win, xp, vista, win7, mac, leopard, snowleopar...
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from telemetry.page import test_expectations # Valid expectation conditions are: # # Operating systems: # win, xp, vista, win7, mac, leopard, snowleopar...
<commit_before># Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from telemetry.page import test_expectations # Valid expectation conditions are: # # Operating systems: # win, xp, vista, win7, mac, leop...
8225a74078901bf90ae60ace9f5902bbfc1b5526
cla_public/config/docker.py
cla_public/config/docker.py
from cla_public.config.common import * DEBUG = os.environ.get('SET_DEBUG', False) == 'True' SECRET_KEY = os.environ['SECRET_KEY'] SESSION_COOKIE_SECURE = os.environ.get('CLA_ENV', '') in ['prod', 'staging'] HOST_NAME = os.environ.get('HOST_NAME') or os.environ.get('HOSTNAME') BACKEND_BASE_URI = os.environ['BACKEN...
from cla_public.config.common import * DEBUG = os.environ.get('SET_DEBUG', False) == 'True' SECRET_KEY = os.environ['SECRET_KEY'] SESSION_COOKIE_SECURE = os.environ.get('CLA_ENV', '') in ['prod', 'staging'] HOST_NAME = os.environ.get('HOST_NAME') or os.environ.get('HOSTNAME') BACKEND_BASE_URI = os.environ['BACKEN...
Enable logstash formatter for console logs
Enable logstash formatter for console logs
Python
mit
ministryofjustice/cla_public,ministryofjustice/cla_public,ministryofjustice/cla_public,ministryofjustice/cla_public
from cla_public.config.common import * DEBUG = os.environ.get('SET_DEBUG', False) == 'True' SECRET_KEY = os.environ['SECRET_KEY'] SESSION_COOKIE_SECURE = os.environ.get('CLA_ENV', '') in ['prod', 'staging'] HOST_NAME = os.environ.get('HOST_NAME') or os.environ.get('HOSTNAME') BACKEND_BASE_URI = os.environ['BACKEN...
from cla_public.config.common import * DEBUG = os.environ.get('SET_DEBUG', False) == 'True' SECRET_KEY = os.environ['SECRET_KEY'] SESSION_COOKIE_SECURE = os.environ.get('CLA_ENV', '') in ['prod', 'staging'] HOST_NAME = os.environ.get('HOST_NAME') or os.environ.get('HOSTNAME') BACKEND_BASE_URI = os.environ['BACKEN...
<commit_before>from cla_public.config.common import * DEBUG = os.environ.get('SET_DEBUG', False) == 'True' SECRET_KEY = os.environ['SECRET_KEY'] SESSION_COOKIE_SECURE = os.environ.get('CLA_ENV', '') in ['prod', 'staging'] HOST_NAME = os.environ.get('HOST_NAME') or os.environ.get('HOSTNAME') BACKEND_BASE_URI = os....
from cla_public.config.common import * DEBUG = os.environ.get('SET_DEBUG', False) == 'True' SECRET_KEY = os.environ['SECRET_KEY'] SESSION_COOKIE_SECURE = os.environ.get('CLA_ENV', '') in ['prod', 'staging'] HOST_NAME = os.environ.get('HOST_NAME') or os.environ.get('HOSTNAME') BACKEND_BASE_URI = os.environ['BACKEN...
from cla_public.config.common import * DEBUG = os.environ.get('SET_DEBUG', False) == 'True' SECRET_KEY = os.environ['SECRET_KEY'] SESSION_COOKIE_SECURE = os.environ.get('CLA_ENV', '') in ['prod', 'staging'] HOST_NAME = os.environ.get('HOST_NAME') or os.environ.get('HOSTNAME') BACKEND_BASE_URI = os.environ['BACKEN...
<commit_before>from cla_public.config.common import * DEBUG = os.environ.get('SET_DEBUG', False) == 'True' SECRET_KEY = os.environ['SECRET_KEY'] SESSION_COOKIE_SECURE = os.environ.get('CLA_ENV', '') in ['prod', 'staging'] HOST_NAME = os.environ.get('HOST_NAME') or os.environ.get('HOSTNAME') BACKEND_BASE_URI = os....
d36e624acb349b3fd78bb3fb91ba0bcc696719c2
imagekit/utils.py
imagekit/utils.py
import tempfile import types from django.utils.functional import wraps from imagekit.lib import Image def img_to_fobj(img, format, **kwargs): tmp = tempfile.TemporaryFile() # Preserve transparency if the image is in Pallette (P) mode. if img.mode == 'P': kwargs['transparency'] = len(img.split()...
import tempfile import types from django.utils.functional import wraps from imagekit.lib import Image def img_to_fobj(img, format, **kwargs): tmp = tempfile.TemporaryFile() # Preserve transparency if the image is in Pallette (P) mode. transparency_formats = ('PNG', 'GIF', ) if img.mode == 'P' and f...
Fix conversion of PNG "palette" or "P" mode images to JPEG. "P" mode images need to be converted to 'RGB' if target image format is not PNG or GIF.
Fix conversion of PNG "palette" or "P" mode images to JPEG. "P" mode images need to be converted to 'RGB' if target image format is not PNG or GIF.
Python
bsd-3-clause
pcompassion/django-imagekit,tawanda/django-imagekit,tawanda/django-imagekit,FundedByMe/django-imagekit,pcompassion/django-imagekit,pcompassion/django-imagekit,FundedByMe/django-imagekit
import tempfile import types from django.utils.functional import wraps from imagekit.lib import Image def img_to_fobj(img, format, **kwargs): tmp = tempfile.TemporaryFile() # Preserve transparency if the image is in Pallette (P) mode. if img.mode == 'P': kwargs['transparency'] = len(img.split()...
import tempfile import types from django.utils.functional import wraps from imagekit.lib import Image def img_to_fobj(img, format, **kwargs): tmp = tempfile.TemporaryFile() # Preserve transparency if the image is in Pallette (P) mode. transparency_formats = ('PNG', 'GIF', ) if img.mode == 'P' and f...
<commit_before>import tempfile import types from django.utils.functional import wraps from imagekit.lib import Image def img_to_fobj(img, format, **kwargs): tmp = tempfile.TemporaryFile() # Preserve transparency if the image is in Pallette (P) mode. if img.mode == 'P': kwargs['transparency'] = ...
import tempfile import types from django.utils.functional import wraps from imagekit.lib import Image def img_to_fobj(img, format, **kwargs): tmp = tempfile.TemporaryFile() # Preserve transparency if the image is in Pallette (P) mode. transparency_formats = ('PNG', 'GIF', ) if img.mode == 'P' and f...
import tempfile import types from django.utils.functional import wraps from imagekit.lib import Image def img_to_fobj(img, format, **kwargs): tmp = tempfile.TemporaryFile() # Preserve transparency if the image is in Pallette (P) mode. if img.mode == 'P': kwargs['transparency'] = len(img.split()...
<commit_before>import tempfile import types from django.utils.functional import wraps from imagekit.lib import Image def img_to_fobj(img, format, **kwargs): tmp = tempfile.TemporaryFile() # Preserve transparency if the image is in Pallette (P) mode. if img.mode == 'P': kwargs['transparency'] = ...
04ca2afaa43cc4de88020235a7e1bf4d4377c5bc
pearbot.py
pearbot.py
#!/usr/bin/env python3 # vim:fileencoding=utf-8:ts=8:et:sw=4:sts=4:tw=79 """ pearbot.py The PearBot IRC bot entry point. It sets up logging and starts up the IRC client. Copyright (c) 2014 Twisted Pear <pear at twistedpear dot at> See the file LICENSE for copying permission. """ import asyncio import command import...
#!/usr/bin/env python3 # vim:fileencoding=utf-8:ts=8:et:sw=4:sts=4:tw=79 """ pearbot.py The PearBot IRC bot entry point. It sets up logging and starts up the IRC client. Copyright (c) 2014 Twisted Pear <pear at twistedpear dot at> See the file LICENSE for copying permission. """ import asyncio import command import...
Change log format (added PID)
Change log format (added PID)
Python
mit
pyrige/pump19
#!/usr/bin/env python3 # vim:fileencoding=utf-8:ts=8:et:sw=4:sts=4:tw=79 """ pearbot.py The PearBot IRC bot entry point. It sets up logging and starts up the IRC client. Copyright (c) 2014 Twisted Pear <pear at twistedpear dot at> See the file LICENSE for copying permission. """ import asyncio import command import...
#!/usr/bin/env python3 # vim:fileencoding=utf-8:ts=8:et:sw=4:sts=4:tw=79 """ pearbot.py The PearBot IRC bot entry point. It sets up logging and starts up the IRC client. Copyright (c) 2014 Twisted Pear <pear at twistedpear dot at> See the file LICENSE for copying permission. """ import asyncio import command import...
<commit_before>#!/usr/bin/env python3 # vim:fileencoding=utf-8:ts=8:et:sw=4:sts=4:tw=79 """ pearbot.py The PearBot IRC bot entry point. It sets up logging and starts up the IRC client. Copyright (c) 2014 Twisted Pear <pear at twistedpear dot at> See the file LICENSE for copying permission. """ import asyncio import...
#!/usr/bin/env python3 # vim:fileencoding=utf-8:ts=8:et:sw=4:sts=4:tw=79 """ pearbot.py The PearBot IRC bot entry point. It sets up logging and starts up the IRC client. Copyright (c) 2014 Twisted Pear <pear at twistedpear dot at> See the file LICENSE for copying permission. """ import asyncio import command import...
#!/usr/bin/env python3 # vim:fileencoding=utf-8:ts=8:et:sw=4:sts=4:tw=79 """ pearbot.py The PearBot IRC bot entry point. It sets up logging and starts up the IRC client. Copyright (c) 2014 Twisted Pear <pear at twistedpear dot at> See the file LICENSE for copying permission. """ import asyncio import command import...
<commit_before>#!/usr/bin/env python3 # vim:fileencoding=utf-8:ts=8:et:sw=4:sts=4:tw=79 """ pearbot.py The PearBot IRC bot entry point. It sets up logging and starts up the IRC client. Copyright (c) 2014 Twisted Pear <pear at twistedpear dot at> See the file LICENSE for copying permission. """ import asyncio import...
b96ac3debb472dcf3aaac84f43309a4d01a27159
exam/tests/test_dynamic_import.py
exam/tests/test_dynamic_import.py
# -*- coding: utf-8 -*- from django.test import TestCase from should_dsl import should from exam.dynamic_import import create_specific_exam from core.tests import FormatTest from sys import stderr class TestDynamicImport(FormatTest, TestCase): def setUp(self): self.my_type = '[Exam - Dynamic Import]' ...
# -*- coding: utf-8 -*- from django.test import TestCase from should_dsl import should from exam.dynamic_import import create_specific_exam from core.tests import FormatTest from sys import stderr class TestDynamicImport(FormatTest, TestCase): def setUp(self): self.my_type = '[Exam - Dynamic Import]' ...
Update variables names in exam tests
Update variables names in exam tests
Python
mit
msfernandes/anato-hub,msfernandes/anato-hub,msfernandes/anato-hub,msfernandes/anato-hub
# -*- coding: utf-8 -*- from django.test import TestCase from should_dsl import should from exam.dynamic_import import create_specific_exam from core.tests import FormatTest from sys import stderr class TestDynamicImport(FormatTest, TestCase): def setUp(self): self.my_type = '[Exam - Dynamic Import]' ...
# -*- coding: utf-8 -*- from django.test import TestCase from should_dsl import should from exam.dynamic_import import create_specific_exam from core.tests import FormatTest from sys import stderr class TestDynamicImport(FormatTest, TestCase): def setUp(self): self.my_type = '[Exam - Dynamic Import]' ...
<commit_before># -*- coding: utf-8 -*- from django.test import TestCase from should_dsl import should from exam.dynamic_import import create_specific_exam from core.tests import FormatTest from sys import stderr class TestDynamicImport(FormatTest, TestCase): def setUp(self): self.my_type = '[Exam - Dyn...
# -*- coding: utf-8 -*- from django.test import TestCase from should_dsl import should from exam.dynamic_import import create_specific_exam from core.tests import FormatTest from sys import stderr class TestDynamicImport(FormatTest, TestCase): def setUp(self): self.my_type = '[Exam - Dynamic Import]' ...
# -*- coding: utf-8 -*- from django.test import TestCase from should_dsl import should from exam.dynamic_import import create_specific_exam from core.tests import FormatTest from sys import stderr class TestDynamicImport(FormatTest, TestCase): def setUp(self): self.my_type = '[Exam - Dynamic Import]' ...
<commit_before># -*- coding: utf-8 -*- from django.test import TestCase from should_dsl import should from exam.dynamic_import import create_specific_exam from core.tests import FormatTest from sys import stderr class TestDynamicImport(FormatTest, TestCase): def setUp(self): self.my_type = '[Exam - Dyn...
353fe0141267a8e50992f564bd991eba096a3fca
zforce.py
zforce.py
import zipfile def bf_extract(zfile, password): zip = zipfile.ZipFile(zfile) try: zip.setpassword(password) zip.extractall() except: pass finally: zip.close() if __name__ == "__main__": bf_extract("spmv.zip", "ok")
import zipfile import optparse class InvalidZip(Exception): def __init__(self, value): self.value = value def __str__(self): return repr(self.value) def bf_extract(zfile, password): res = True if (zipfile.is_zipfile(zfile)): zip = zipfile.ZipFile(zfile) try: ...
Decompress a zip given a list file
Decompress a zip given a list file
Python
apache-2.0
alexst07/ZipBruteforce
import zipfile def bf_extract(zfile, password): zip = zipfile.ZipFile(zfile) try: zip.setpassword(password) zip.extractall() except: pass finally: zip.close() if __name__ == "__main__": bf_extract("spmv.zip", "ok")Decompress a zip given a list file
import zipfile import optparse class InvalidZip(Exception): def __init__(self, value): self.value = value def __str__(self): return repr(self.value) def bf_extract(zfile, password): res = True if (zipfile.is_zipfile(zfile)): zip = zipfile.ZipFile(zfile) try: ...
<commit_before>import zipfile def bf_extract(zfile, password): zip = zipfile.ZipFile(zfile) try: zip.setpassword(password) zip.extractall() except: pass finally: zip.close() if __name__ == "__main__": bf_extract("spmv.zip", "ok")<commit_msg>Decompress a zip given a ...
import zipfile import optparse class InvalidZip(Exception): def __init__(self, value): self.value = value def __str__(self): return repr(self.value) def bf_extract(zfile, password): res = True if (zipfile.is_zipfile(zfile)): zip = zipfile.ZipFile(zfile) try: ...
import zipfile def bf_extract(zfile, password): zip = zipfile.ZipFile(zfile) try: zip.setpassword(password) zip.extractall() except: pass finally: zip.close() if __name__ == "__main__": bf_extract("spmv.zip", "ok")Decompress a zip given a list fileimport zipfile imp...
<commit_before>import zipfile def bf_extract(zfile, password): zip = zipfile.ZipFile(zfile) try: zip.setpassword(password) zip.extractall() except: pass finally: zip.close() if __name__ == "__main__": bf_extract("spmv.zip", "ok")<commit_msg>Decompress a zip given a ...
1f958dc4439fbe435b1d0381d15860708f1f9745
constance/__init__.py
constance/__init__.py
from .base import Config __version__ = '1.0a1' try: from django.apps import AppConfig # noqa except ImportError: config = Config() else: default_app_config = 'constance.apps.ConstanceConfig'
from .base import Config from django.utils.functional import SimpleLazyObject __version__ = '1.0a1' try: from django.apps import AppConfig # noqa except ImportError: config = SimpleLazyObject(Config) else: default_app_config = 'constance.apps.ConstanceConfig'
Make the config object lazy for old Djangos.
Make the config object lazy for old Djangos. This should prevent import time side effects from instantiating the config object directly there.
Python
bsd-3-clause
gmflanagan/waterboy,vinnyrose/django-constance,jerzyk/django-constance,metalpriest/django-constance,thorgate/django-constance,jmerdich/django-constance,jazzband/django-constance,jonzlin95/django-constance,winzard/django-constance,metalpriest/django-constance,jazzband/django-constance,django-leonardo/django-constance,po...
from .base import Config __version__ = '1.0a1' try: from django.apps import AppConfig # noqa except ImportError: config = Config() else: default_app_config = 'constance.apps.ConstanceConfig' Make the config object lazy for old Djangos. This should prevent import time side effects from instantiating the ...
from .base import Config from django.utils.functional import SimpleLazyObject __version__ = '1.0a1' try: from django.apps import AppConfig # noqa except ImportError: config = SimpleLazyObject(Config) else: default_app_config = 'constance.apps.ConstanceConfig'
<commit_before>from .base import Config __version__ = '1.0a1' try: from django.apps import AppConfig # noqa except ImportError: config = Config() else: default_app_config = 'constance.apps.ConstanceConfig' <commit_msg>Make the config object lazy for old Djangos. This should prevent import time side effe...
from .base import Config from django.utils.functional import SimpleLazyObject __version__ = '1.0a1' try: from django.apps import AppConfig # noqa except ImportError: config = SimpleLazyObject(Config) else: default_app_config = 'constance.apps.ConstanceConfig'
from .base import Config __version__ = '1.0a1' try: from django.apps import AppConfig # noqa except ImportError: config = Config() else: default_app_config = 'constance.apps.ConstanceConfig' Make the config object lazy for old Djangos. This should prevent import time side effects from instantiating the ...
<commit_before>from .base import Config __version__ = '1.0a1' try: from django.apps import AppConfig # noqa except ImportError: config = Config() else: default_app_config = 'constance.apps.ConstanceConfig' <commit_msg>Make the config object lazy for old Djangos. This should prevent import time side effe...
55983918f76066662496a82d321ac482c1668492
profile_bs_xf03id/startup/50-scans.py
profile_bs_xf03id/startup/50-scans.py
# vim: sw=4 ts=4 sts expandtab smarttab # HXN step-scan configuration import hxntools.scans from bluesky.global_state import get_gs gs = get_gs() hxntools.scans.setup() ct = hxntools.scans.count ascan = hxntools.scans.absolute_scan dscan = hxntools.scans.relative_scan fermat = hxntools.scans.relative_fermat spiral =...
# vim: sw=4 ts=4 sts expandtab smarttab # HXN step-scan configuration import hxntools.scans from bluesky.global_state import get_gs gs = get_gs() hxntools.scans.setup() ct = hxntools.scans.count ascan = hxntools.scans.absolute_scan dscan = hxntools.scans.relative_scan fermat = hxntools.scans.relative_fermat spiral =...
Add xspress3 to step-scan detector list
Add xspress3 to step-scan detector list
Python
bsd-2-clause
NSLS-II-HXN/ipython_ophyd,NSLS-II-HXN/ipython_ophyd
# vim: sw=4 ts=4 sts expandtab smarttab # HXN step-scan configuration import hxntools.scans from bluesky.global_state import get_gs gs = get_gs() hxntools.scans.setup() ct = hxntools.scans.count ascan = hxntools.scans.absolute_scan dscan = hxntools.scans.relative_scan fermat = hxntools.scans.relative_fermat spiral =...
# vim: sw=4 ts=4 sts expandtab smarttab # HXN step-scan configuration import hxntools.scans from bluesky.global_state import get_gs gs = get_gs() hxntools.scans.setup() ct = hxntools.scans.count ascan = hxntools.scans.absolute_scan dscan = hxntools.scans.relative_scan fermat = hxntools.scans.relative_fermat spiral =...
<commit_before># vim: sw=4 ts=4 sts expandtab smarttab # HXN step-scan configuration import hxntools.scans from bluesky.global_state import get_gs gs = get_gs() hxntools.scans.setup() ct = hxntools.scans.count ascan = hxntools.scans.absolute_scan dscan = hxntools.scans.relative_scan fermat = hxntools.scans.relative_...
# vim: sw=4 ts=4 sts expandtab smarttab # HXN step-scan configuration import hxntools.scans from bluesky.global_state import get_gs gs = get_gs() hxntools.scans.setup() ct = hxntools.scans.count ascan = hxntools.scans.absolute_scan dscan = hxntools.scans.relative_scan fermat = hxntools.scans.relative_fermat spiral =...
# vim: sw=4 ts=4 sts expandtab smarttab # HXN step-scan configuration import hxntools.scans from bluesky.global_state import get_gs gs = get_gs() hxntools.scans.setup() ct = hxntools.scans.count ascan = hxntools.scans.absolute_scan dscan = hxntools.scans.relative_scan fermat = hxntools.scans.relative_fermat spiral =...
<commit_before># vim: sw=4 ts=4 sts expandtab smarttab # HXN step-scan configuration import hxntools.scans from bluesky.global_state import get_gs gs = get_gs() hxntools.scans.setup() ct = hxntools.scans.count ascan = hxntools.scans.absolute_scan dscan = hxntools.scans.relative_scan fermat = hxntools.scans.relative_...
1cb79216f992ea0f31abb28031a74f6e703582cb
YouKnowShit/DownloadPic.py
YouKnowShit/DownloadPic.py
import requests import bs4 import os import urllib.request import shutil import re base_url = 'http://www.j8vlib.com/cn/vl_searchbyid.php?keyword=' srcDir = 'F:\\utorrent\\WEST' filterWord = "video_jacket_img" filenames = os.listdir(srcDir) for filename in filenames: preFileName = filename.split(".")[0] if (p...
import requests import bs4 import os import urllib.request import shutil import re base_url = 'http://www.jav11b.com/cn/vl_searchbyid.php?keyword=' srcDir = 'H:\\temp' filterWord = "video_jacket_img" filenames = os.listdir(srcDir) for filename in filenames: preFileName = filename.split(".")[0] if (preFileName...
Update the pic download base url.
Update the pic download base url.
Python
mit
jiangtianyu2009/PiSoftCake
import requests import bs4 import os import urllib.request import shutil import re base_url = 'http://www.j8vlib.com/cn/vl_searchbyid.php?keyword=' srcDir = 'F:\\utorrent\\WEST' filterWord = "video_jacket_img" filenames = os.listdir(srcDir) for filename in filenames: preFileName = filename.split(".")[0] if (p...
import requests import bs4 import os import urllib.request import shutil import re base_url = 'http://www.jav11b.com/cn/vl_searchbyid.php?keyword=' srcDir = 'H:\\temp' filterWord = "video_jacket_img" filenames = os.listdir(srcDir) for filename in filenames: preFileName = filename.split(".")[0] if (preFileName...
<commit_before>import requests import bs4 import os import urllib.request import shutil import re base_url = 'http://www.j8vlib.com/cn/vl_searchbyid.php?keyword=' srcDir = 'F:\\utorrent\\WEST' filterWord = "video_jacket_img" filenames = os.listdir(srcDir) for filename in filenames: preFileName = filename.split("....
import requests import bs4 import os import urllib.request import shutil import re base_url = 'http://www.jav11b.com/cn/vl_searchbyid.php?keyword=' srcDir = 'H:\\temp' filterWord = "video_jacket_img" filenames = os.listdir(srcDir) for filename in filenames: preFileName = filename.split(".")[0] if (preFileName...
import requests import bs4 import os import urllib.request import shutil import re base_url = 'http://www.j8vlib.com/cn/vl_searchbyid.php?keyword=' srcDir = 'F:\\utorrent\\WEST' filterWord = "video_jacket_img" filenames = os.listdir(srcDir) for filename in filenames: preFileName = filename.split(".")[0] if (p...
<commit_before>import requests import bs4 import os import urllib.request import shutil import re base_url = 'http://www.j8vlib.com/cn/vl_searchbyid.php?keyword=' srcDir = 'F:\\utorrent\\WEST' filterWord = "video_jacket_img" filenames = os.listdir(srcDir) for filename in filenames: preFileName = filename.split("....