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
d18703237300f0e6b7d2a1ca88fbfa884e77c1b5
partner_event/models/res_partner.py
partner_event/models/res_partner.py
# -*- encoding: utf-8 -*- ############################################################################## # For copyright and license notices, see __openerp__.py file in root directory ############################################################################## from openerp import models, fields, api class ResPartn...
# -*- encoding: utf-8 -*- ############################################################################## # For copyright and license notices, see __openerp__.py file in root directory ############################################################################## from openerp import models, fields, api class ResPartn...
Use only one method to recalculate event counters
Use only one method to recalculate event counters
Python
agpl-3.0
open-synergy/event,Endika/event,Antiun/event,open-synergy/event
# -*- encoding: utf-8 -*- ############################################################################## # For copyright and license notices, see __openerp__.py file in root directory ############################################################################## from openerp import models, fields, api class ResPartn...
# -*- encoding: utf-8 -*- ############################################################################## # For copyright and license notices, see __openerp__.py file in root directory ############################################################################## from openerp import models, fields, api class ResPartn...
<commit_before># -*- encoding: utf-8 -*- ############################################################################## # For copyright and license notices, see __openerp__.py file in root directory ############################################################################## from openerp import models, fields, api ...
# -*- encoding: utf-8 -*- ############################################################################## # For copyright and license notices, see __openerp__.py file in root directory ############################################################################## from openerp import models, fields, api class ResPartn...
# -*- encoding: utf-8 -*- ############################################################################## # For copyright and license notices, see __openerp__.py file in root directory ############################################################################## from openerp import models, fields, api class ResPartn...
<commit_before># -*- encoding: utf-8 -*- ############################################################################## # For copyright and license notices, see __openerp__.py file in root directory ############################################################################## from openerp import models, fields, api ...
586259997aba2a18439ccf3b038ca6d49dd0a7dc
setup.py
setup.py
#! /usr/bin/env python import os from setuptools import setup, find_packages def read(filename): with open(os.path.join(os.path.dirname(__file__), filename)) as file: return file.read().strip() setup( name='django-armet', version='0.2.0-pre', description='Clean and modern framewo...
#! /usr/bin/env python import os from setuptools import setup, find_packages def read(filename): with open(os.path.join(os.path.dirname(__file__), filename)) as file: return file.read().strip() setup( name='django-armet', version='0.2.0-pre', description='Clean and modern framewo...
Add messagepack to the list of dependencies, since runtime wont run without it.
Add messagepack to the list of dependencies, since runtime wont run without it.
Python
mit
armet/python-armet
#! /usr/bin/env python import os from setuptools import setup, find_packages def read(filename): with open(os.path.join(os.path.dirname(__file__), filename)) as file: return file.read().strip() setup( name='django-armet', version='0.2.0-pre', description='Clean and modern framewo...
#! /usr/bin/env python import os from setuptools import setup, find_packages def read(filename): with open(os.path.join(os.path.dirname(__file__), filename)) as file: return file.read().strip() setup( name='django-armet', version='0.2.0-pre', description='Clean and modern framewo...
<commit_before>#! /usr/bin/env python import os from setuptools import setup, find_packages def read(filename): with open(os.path.join(os.path.dirname(__file__), filename)) as file: return file.read().strip() setup( name='django-armet', version='0.2.0-pre', description='Clean and...
#! /usr/bin/env python import os from setuptools import setup, find_packages def read(filename): with open(os.path.join(os.path.dirname(__file__), filename)) as file: return file.read().strip() setup( name='django-armet', version='0.2.0-pre', description='Clean and modern framewo...
#! /usr/bin/env python import os from setuptools import setup, find_packages def read(filename): with open(os.path.join(os.path.dirname(__file__), filename)) as file: return file.read().strip() setup( name='django-armet', version='0.2.0-pre', description='Clean and modern framewo...
<commit_before>#! /usr/bin/env python import os from setuptools import setup, find_packages def read(filename): with open(os.path.join(os.path.dirname(__file__), filename)) as file: return file.read().strip() setup( name='django-armet', version='0.2.0-pre', description='Clean and...
30f8be511a35b5951258ffba917a52d657c1e1ed
setup.py
setup.py
import setuptools setuptools.setup( name="nbresuse", version='0.1.0', url="https://github.com/yuvipanda/nbresuse", author="Yuvi Panda", description="Simple Jupyter extension to show how much resources (RAM) your notebook is using", packages=setuptools.find_packages(), install_requires=[ ...
import setuptools from glob import glob setuptools.setup( name="nbresuse", version='0.1.0', url="https://github.com/yuvipanda/nbresuse", author="Yuvi Panda", description="Simple Jupyter extension to show how much resources (RAM) your notebook is using", packages=setuptools.find_packages(), ...
Add static files to data_files
Add static files to data_files
Python
bsd-2-clause
yuvipanda/nbresuse,allanlwu/allangdrive,yuvipanda/nbresuse,allanlwu/allangdrive
import setuptools setuptools.setup( name="nbresuse", version='0.1.0', url="https://github.com/yuvipanda/nbresuse", author="Yuvi Panda", description="Simple Jupyter extension to show how much resources (RAM) your notebook is using", packages=setuptools.find_packages(), install_requires=[ ...
import setuptools from glob import glob setuptools.setup( name="nbresuse", version='0.1.0', url="https://github.com/yuvipanda/nbresuse", author="Yuvi Panda", description="Simple Jupyter extension to show how much resources (RAM) your notebook is using", packages=setuptools.find_packages(), ...
<commit_before>import setuptools setuptools.setup( name="nbresuse", version='0.1.0', url="https://github.com/yuvipanda/nbresuse", author="Yuvi Panda", description="Simple Jupyter extension to show how much resources (RAM) your notebook is using", packages=setuptools.find_packages(), install...
import setuptools from glob import glob setuptools.setup( name="nbresuse", version='0.1.0', url="https://github.com/yuvipanda/nbresuse", author="Yuvi Panda", description="Simple Jupyter extension to show how much resources (RAM) your notebook is using", packages=setuptools.find_packages(), ...
import setuptools setuptools.setup( name="nbresuse", version='0.1.0', url="https://github.com/yuvipanda/nbresuse", author="Yuvi Panda", description="Simple Jupyter extension to show how much resources (RAM) your notebook is using", packages=setuptools.find_packages(), install_requires=[ ...
<commit_before>import setuptools setuptools.setup( name="nbresuse", version='0.1.0', url="https://github.com/yuvipanda/nbresuse", author="Yuvi Panda", description="Simple Jupyter extension to show how much resources (RAM) your notebook is using", packages=setuptools.find_packages(), install...
8b873e2bd6e4fbbf0464380cd799c9513b26386c
setup.py
setup.py
from setuptools import find_packages, setup from channels import __version__ setup( name='channels', version=__version__, url='http://github.com/django/channels', author='Django Software Foundation', author_email='[email protected]', description="Brings event-driven capabilities to D...
from setuptools import find_packages, setup from channels import __version__ setup( name='channels', version=__version__, url='http://github.com/django/channels', author='Django Software Foundation', author_email='[email protected]', description="Brings event-driven capabilities to D...
Use correct environment markers syntax in the extras_require section.
Use correct environment markers syntax in the extras_require section. See https://github.com/pypa/setuptools/issues/1087
Python
bsd-3-clause
andrewgodwin/channels,django/channels,andrewgodwin/django-channels
from setuptools import find_packages, setup from channels import __version__ setup( name='channels', version=__version__, url='http://github.com/django/channels', author='Django Software Foundation', author_email='[email protected]', description="Brings event-driven capabilities to D...
from setuptools import find_packages, setup from channels import __version__ setup( name='channels', version=__version__, url='http://github.com/django/channels', author='Django Software Foundation', author_email='[email protected]', description="Brings event-driven capabilities to D...
<commit_before>from setuptools import find_packages, setup from channels import __version__ setup( name='channels', version=__version__, url='http://github.com/django/channels', author='Django Software Foundation', author_email='[email protected]', description="Brings event-driven ca...
from setuptools import find_packages, setup from channels import __version__ setup( name='channels', version=__version__, url='http://github.com/django/channels', author='Django Software Foundation', author_email='[email protected]', description="Brings event-driven capabilities to D...
from setuptools import find_packages, setup from channels import __version__ setup( name='channels', version=__version__, url='http://github.com/django/channels', author='Django Software Foundation', author_email='[email protected]', description="Brings event-driven capabilities to D...
<commit_before>from setuptools import find_packages, setup from channels import __version__ setup( name='channels', version=__version__, url='http://github.com/django/channels', author='Django Software Foundation', author_email='[email protected]', description="Brings event-driven ca...
0447f10754467babb3096ed10dbfc81f8b67d66e
setup.py
setup.py
from distutils.core import setup setup(name='sspps', version='0.1.1', description='Super Simple Python Plugin Sytem', author='Gregory Haynes', author_email='[email protected]', url='http://github.com/greghaynes/SSPPS', license='MIT', packages=['sspps'], )
from distutils.core import setup setup(name='sspps', version='0.1.2', description='Super Simple Python Plugin Sytem', author='Gregory Haynes', author_email='[email protected]', url='http://github.com/greghaynes/SSPPS', license='MIT', packages=['sspps'], )
Bump version to push homepage fix and readme comments
Bump version to push homepage fix and readme comments
Python
mit
greghaynes/SSPPS
from distutils.core import setup setup(name='sspps', version='0.1.1', description='Super Simple Python Plugin Sytem', author='Gregory Haynes', author_email='[email protected]', url='http://github.com/greghaynes/SSPPS', license='MIT', packages=['sspps'], ) Bump version to push homepage...
from distutils.core import setup setup(name='sspps', version='0.1.2', description='Super Simple Python Plugin Sytem', author='Gregory Haynes', author_email='[email protected]', url='http://github.com/greghaynes/SSPPS', license='MIT', packages=['sspps'], )
<commit_before>from distutils.core import setup setup(name='sspps', version='0.1.1', description='Super Simple Python Plugin Sytem', author='Gregory Haynes', author_email='[email protected]', url='http://github.com/greghaynes/SSPPS', license='MIT', packages=['sspps'], ) <commit_msg>Bu...
from distutils.core import setup setup(name='sspps', version='0.1.2', description='Super Simple Python Plugin Sytem', author='Gregory Haynes', author_email='[email protected]', url='http://github.com/greghaynes/SSPPS', license='MIT', packages=['sspps'], )
from distutils.core import setup setup(name='sspps', version='0.1.1', description='Super Simple Python Plugin Sytem', author='Gregory Haynes', author_email='[email protected]', url='http://github.com/greghaynes/SSPPS', license='MIT', packages=['sspps'], ) Bump version to push homepage...
<commit_before>from distutils.core import setup setup(name='sspps', version='0.1.1', description='Super Simple Python Plugin Sytem', author='Gregory Haynes', author_email='[email protected]', url='http://github.com/greghaynes/SSPPS', license='MIT', packages=['sspps'], ) <commit_msg>Bu...
f23e4751a4ec4fef6ee5a1a313239fe3788d8a4b
setup.py
setup.py
#!/usr/bin/env python2 import os import sys try: from setuptools import setup except ImportError: from distutils.core import setup if sys.argv[-1] == 'publish': os.system('python setup.py sdist upload') sys.exit() os.environ['PYTHONDONTWRITEBYTECODE'] = '1' packages = [ 'connman_dispatcher'...
#!/usr/bin/env python2 import os import sys try: from setuptools import setup except ImportError: from distutils.core import setup if sys.argv[-1] == 'publish': os.system('python setup.py sdist upload') sys.exit() os.environ['PYTHONDONTWRITEBYTECODE'] = '1' packages = [ 'connman_dispatcher'...
Add logbook 0.6.0 as a dependency
Add logbook 0.6.0 as a dependency
Python
isc
a-sk/connman-dispatcher
#!/usr/bin/env python2 import os import sys try: from setuptools import setup except ImportError: from distutils.core import setup if sys.argv[-1] == 'publish': os.system('python setup.py sdist upload') sys.exit() os.environ['PYTHONDONTWRITEBYTECODE'] = '1' packages = [ 'connman_dispatcher'...
#!/usr/bin/env python2 import os import sys try: from setuptools import setup except ImportError: from distutils.core import setup if sys.argv[-1] == 'publish': os.system('python setup.py sdist upload') sys.exit() os.environ['PYTHONDONTWRITEBYTECODE'] = '1' packages = [ 'connman_dispatcher'...
<commit_before>#!/usr/bin/env python2 import os import sys try: from setuptools import setup except ImportError: from distutils.core import setup if sys.argv[-1] == 'publish': os.system('python setup.py sdist upload') sys.exit() os.environ['PYTHONDONTWRITEBYTECODE'] = '1' packages = [ 'conn...
#!/usr/bin/env python2 import os import sys try: from setuptools import setup except ImportError: from distutils.core import setup if sys.argv[-1] == 'publish': os.system('python setup.py sdist upload') sys.exit() os.environ['PYTHONDONTWRITEBYTECODE'] = '1' packages = [ 'connman_dispatcher'...
#!/usr/bin/env python2 import os import sys try: from setuptools import setup except ImportError: from distutils.core import setup if sys.argv[-1] == 'publish': os.system('python setup.py sdist upload') sys.exit() os.environ['PYTHONDONTWRITEBYTECODE'] = '1' packages = [ 'connman_dispatcher'...
<commit_before>#!/usr/bin/env python2 import os import sys try: from setuptools import setup except ImportError: from distutils.core import setup if sys.argv[-1] == 'publish': os.system('python setup.py sdist upload') sys.exit() os.environ['PYTHONDONTWRITEBYTECODE'] = '1' packages = [ 'conn...
53948f31d9054a747853e62cbe63ce91e4fe6e22
setup.py
setup.py
import os from setuptools import setup setup( name = "prometheus_client", version = "0.0.9", author = "Brian Brazil", author_email = "[email protected]", description = ("Python client for the Prometheus monitoring system."), long_description = ("See https://github.com/prometheus/client_pyt...
import os from setuptools import setup setup( name = "prometheus_client", version = "0.0.9", author = "Brian Brazil", author_email = "[email protected]", description = ("Python client for the Prometheus monitoring system."), long_description = ("See https://github.com/prometheus/client_pyt...
Split __init__.py into separate files.
Split __init__.py into separate files.
Python
apache-2.0
prometheus/client_python,justyns/client_python,arturhoo/client_python,alexander-95/client_python,thomaso-mirodin/client_python,korfuri/client_python,machinelady/client_python
import os from setuptools import setup setup( name = "prometheus_client", version = "0.0.9", author = "Brian Brazil", author_email = "[email protected]", description = ("Python client for the Prometheus monitoring system."), long_description = ("See https://github.com/prometheus/client_pyt...
import os from setuptools import setup setup( name = "prometheus_client", version = "0.0.9", author = "Brian Brazil", author_email = "[email protected]", description = ("Python client for the Prometheus monitoring system."), long_description = ("See https://github.com/prometheus/client_pyt...
<commit_before>import os from setuptools import setup setup( name = "prometheus_client", version = "0.0.9", author = "Brian Brazil", author_email = "[email protected]", description = ("Python client for the Prometheus monitoring system."), long_description = ("See https://github.com/promet...
import os from setuptools import setup setup( name = "prometheus_client", version = "0.0.9", author = "Brian Brazil", author_email = "[email protected]", description = ("Python client for the Prometheus monitoring system."), long_description = ("See https://github.com/prometheus/client_pyt...
import os from setuptools import setup setup( name = "prometheus_client", version = "0.0.9", author = "Brian Brazil", author_email = "[email protected]", description = ("Python client for the Prometheus monitoring system."), long_description = ("See https://github.com/prometheus/client_pyt...
<commit_before>import os from setuptools import setup setup( name = "prometheus_client", version = "0.0.9", author = "Brian Brazil", author_email = "[email protected]", description = ("Python client for the Prometheus monitoring system."), long_description = ("See https://github.com/promet...
116a590c8273cc6f048f5970bc4a0f4f5bfff074
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf8 -*- from setuptools import setup setup(name='pynxc', version='0.1.7', description='A Python to NXC Converter for programming ' 'LEGO MINDSTORMS Robots', author='Brian Blais', author_email='[email protected]', maintainer='Marek Šuppa', ...
#!/usr/bin/env python # -*- coding: utf8 -*- from setuptools import setup setup(name='pynxc', version='0.1.7', description='A Python to NXC Converter for programming ' 'LEGO MINDSTORMS Robots', author='Brian Blais', author_email='[email protected]', maintainer='Marek Šuppa', ...
Remove old method of adding datafiles.
Remove old method of adding datafiles.
Python
bsd-3-clause
xlcteam/pynxc,xlcteam/pynxc,xlcteam/pynxc
#!/usr/bin/env python # -*- coding: utf8 -*- from setuptools import setup setup(name='pynxc', version='0.1.7', description='A Python to NXC Converter for programming ' 'LEGO MINDSTORMS Robots', author='Brian Blais', author_email='[email protected]', maintainer='Marek Šuppa', ...
#!/usr/bin/env python # -*- coding: utf8 -*- from setuptools import setup setup(name='pynxc', version='0.1.7', description='A Python to NXC Converter for programming ' 'LEGO MINDSTORMS Robots', author='Brian Blais', author_email='[email protected]', maintainer='Marek Šuppa', ...
<commit_before>#!/usr/bin/env python # -*- coding: utf8 -*- from setuptools import setup setup(name='pynxc', version='0.1.7', description='A Python to NXC Converter for programming ' 'LEGO MINDSTORMS Robots', author='Brian Blais', author_email='[email protected]', maintainer='Mar...
#!/usr/bin/env python # -*- coding: utf8 -*- from setuptools import setup setup(name='pynxc', version='0.1.7', description='A Python to NXC Converter for programming ' 'LEGO MINDSTORMS Robots', author='Brian Blais', author_email='[email protected]', maintainer='Marek Šuppa', ...
#!/usr/bin/env python # -*- coding: utf8 -*- from setuptools import setup setup(name='pynxc', version='0.1.7', description='A Python to NXC Converter for programming ' 'LEGO MINDSTORMS Robots', author='Brian Blais', author_email='[email protected]', maintainer='Marek Šuppa', ...
<commit_before>#!/usr/bin/env python # -*- coding: utf8 -*- from setuptools import setup setup(name='pynxc', version='0.1.7', description='A Python to NXC Converter for programming ' 'LEGO MINDSTORMS Robots', author='Brian Blais', author_email='[email protected]', maintainer='Mar...
834b7ff81d6e2777d3952bb588a53f12f5ace5f5
setup.py
setup.py
# # This is the regobj setuptools script. # Originally developed by Ryan Kelly, 2009. # # This script is placed in the public domain. # from distutils.core import setup # If we did a straight `import regobj` here we wouldn't be able # to build on non-win32 machines. regobj = {} try: execfile("regobj.py",rego...
# # This is the regobj setuptools script. # Originally developed by Ryan Kelly, 2009. # # This script is placed in the public domain. # from distutils.core import setup # If we did a straight `import regobj` here we wouldn't be able # to build on non-win32 machines. regobj = {} try: execfile("regobj.py",rego...
Add a Python 3 classifier recommended by community
Add a Python 3 classifier recommended by community
Python
mit
rfk/regobj
# # This is the regobj setuptools script. # Originally developed by Ryan Kelly, 2009. # # This script is placed in the public domain. # from distutils.core import setup # If we did a straight `import regobj` here we wouldn't be able # to build on non-win32 machines. regobj = {} try: execfile("regobj.py",rego...
# # This is the regobj setuptools script. # Originally developed by Ryan Kelly, 2009. # # This script is placed in the public domain. # from distutils.core import setup # If we did a straight `import regobj` here we wouldn't be able # to build on non-win32 machines. regobj = {} try: execfile("regobj.py",rego...
<commit_before># # This is the regobj setuptools script. # Originally developed by Ryan Kelly, 2009. # # This script is placed in the public domain. # from distutils.core import setup # If we did a straight `import regobj` here we wouldn't be able # to build on non-win32 machines. regobj = {} try: execfile("...
# # This is the regobj setuptools script. # Originally developed by Ryan Kelly, 2009. # # This script is placed in the public domain. # from distutils.core import setup # If we did a straight `import regobj` here we wouldn't be able # to build on non-win32 machines. regobj = {} try: execfile("regobj.py",rego...
# # This is the regobj setuptools script. # Originally developed by Ryan Kelly, 2009. # # This script is placed in the public domain. # from distutils.core import setup # If we did a straight `import regobj` here we wouldn't be able # to build on non-win32 machines. regobj = {} try: execfile("regobj.py",rego...
<commit_before># # This is the regobj setuptools script. # Originally developed by Ryan Kelly, 2009. # # This script is placed in the public domain. # from distutils.core import setup # If we did a straight `import regobj` here we wouldn't be able # to build on non-win32 machines. regobj = {} try: execfile("...
2d63c7890e84ee6512095ce960d6d6b5e2187163
setup.py
setup.py
#!/usr/bin/env python from distribute_setup import use_setuptools use_setuptools() from setuptools import setup classifiers = [ 'Development Status :: 4 - Beta' , 'Environment :: Console' , 'Environment :: Console :: Curses' , 'Intended Audience :: Developers' , 'License :: BSD' , 'Natural Language :: ...
#!/usr/bin/env python from distribute_setup import use_setuptools use_setuptools() from setuptools import setup classifiers = [ 'Development Status :: 4 - Beta' , 'Environment :: Console' , 'Environment :: Console :: Curses' , 'Intended Audience :: Developers' , 'License :: OSI Approved :: BSD License' ...
Change trove classifier; 'BSD' was invalid
Change trove classifier; 'BSD' was invalid List of available is here: https://pypi.python.org/pypi?:action=list_classifiers
Python
bsd-2-clause
whit537/assertEquals
#!/usr/bin/env python from distribute_setup import use_setuptools use_setuptools() from setuptools import setup classifiers = [ 'Development Status :: 4 - Beta' , 'Environment :: Console' , 'Environment :: Console :: Curses' , 'Intended Audience :: Developers' , 'License :: BSD' , 'Natural Language :: ...
#!/usr/bin/env python from distribute_setup import use_setuptools use_setuptools() from setuptools import setup classifiers = [ 'Development Status :: 4 - Beta' , 'Environment :: Console' , 'Environment :: Console :: Curses' , 'Intended Audience :: Developers' , 'License :: OSI Approved :: BSD License' ...
<commit_before>#!/usr/bin/env python from distribute_setup import use_setuptools use_setuptools() from setuptools import setup classifiers = [ 'Development Status :: 4 - Beta' , 'Environment :: Console' , 'Environment :: Console :: Curses' , 'Intended Audience :: Developers' , 'License :: BSD' , 'Natur...
#!/usr/bin/env python from distribute_setup import use_setuptools use_setuptools() from setuptools import setup classifiers = [ 'Development Status :: 4 - Beta' , 'Environment :: Console' , 'Environment :: Console :: Curses' , 'Intended Audience :: Developers' , 'License :: OSI Approved :: BSD License' ...
#!/usr/bin/env python from distribute_setup import use_setuptools use_setuptools() from setuptools import setup classifiers = [ 'Development Status :: 4 - Beta' , 'Environment :: Console' , 'Environment :: Console :: Curses' , 'Intended Audience :: Developers' , 'License :: BSD' , 'Natural Language :: ...
<commit_before>#!/usr/bin/env python from distribute_setup import use_setuptools use_setuptools() from setuptools import setup classifiers = [ 'Development Status :: 4 - Beta' , 'Environment :: Console' , 'Environment :: Console :: Curses' , 'Intended Audience :: Developers' , 'License :: BSD' , 'Natur...
7170a78d7aeb004689143d72d7f243b1e98dafb3
setup.py
setup.py
from setuptools import setup setup( name='gethazel', version='0.1.0', description='A balanced life is a good life.', author='Reilly Tucker Siemens', author_email='[email protected]', license='MIT', classifiers=[ 'Development Status :: 3 - Alpha', 'License :: OSI Appr...
from setuptools import setup setup( name='gethazel', version='0.1.0', description='A balanced life is a good life.', author='Reilly Tucker Siemens', author_email='[email protected]', license='MIT', classifiers=[ 'Development Status :: 3 - Alpha', 'License :: OSI Appr...
Remove beautifulsoup4 and lxml as dependencies.
Remove beautifulsoup4 and lxml as dependencies.
Python
mit
reillysiemens/gethazel
from setuptools import setup setup( name='gethazel', version='0.1.0', description='A balanced life is a good life.', author='Reilly Tucker Siemens', author_email='[email protected]', license='MIT', classifiers=[ 'Development Status :: 3 - Alpha', 'License :: OSI Appr...
from setuptools import setup setup( name='gethazel', version='0.1.0', description='A balanced life is a good life.', author='Reilly Tucker Siemens', author_email='[email protected]', license='MIT', classifiers=[ 'Development Status :: 3 - Alpha', 'License :: OSI Appr...
<commit_before>from setuptools import setup setup( name='gethazel', version='0.1.0', description='A balanced life is a good life.', author='Reilly Tucker Siemens', author_email='[email protected]', license='MIT', classifiers=[ 'Development Status :: 3 - Alpha', 'Lice...
from setuptools import setup setup( name='gethazel', version='0.1.0', description='A balanced life is a good life.', author='Reilly Tucker Siemens', author_email='[email protected]', license='MIT', classifiers=[ 'Development Status :: 3 - Alpha', 'License :: OSI Appr...
from setuptools import setup setup( name='gethazel', version='0.1.0', description='A balanced life is a good life.', author='Reilly Tucker Siemens', author_email='[email protected]', license='MIT', classifiers=[ 'Development Status :: 3 - Alpha', 'License :: OSI Appr...
<commit_before>from setuptools import setup setup( name='gethazel', version='0.1.0', description='A balanced life is a good life.', author='Reilly Tucker Siemens', author_email='[email protected]', license='MIT', classifiers=[ 'Development Status :: 3 - Alpha', 'Lice...
024d797eda5ceeaf954c1ea41df7fb43fb40130c
setup.py
setup.py
"""Setup data for aib2ofx.""" from setuptools import setup setup( name='aib2ofx', description='Download data from aib.ie in OFX format', version='0.6', author='Jakub Turski', author_email='[email protected]', url='http://github.com/yacoob/aib2ofx', packages=['aib2ofx'], entry_points={ ...
"""Setup data for aib2ofx.""" from setuptools import setup setup( name='aib2ofx', description='Download data from aib.ie in OFX format', version='0.6', author='Jakub Turski', author_email='[email protected]', url='http://github.com/yacoob/aib2ofx', packages=['aib2ofx'], entry_points={ ...
Add a dependency that got dropped.
Add a dependency that got dropped.
Python
bsd-3-clause
yacoob/aib2ofx
"""Setup data for aib2ofx.""" from setuptools import setup setup( name='aib2ofx', description='Download data from aib.ie in OFX format', version='0.6', author='Jakub Turski', author_email='[email protected]', url='http://github.com/yacoob/aib2ofx', packages=['aib2ofx'], entry_points={ ...
"""Setup data for aib2ofx.""" from setuptools import setup setup( name='aib2ofx', description='Download data from aib.ie in OFX format', version='0.6', author='Jakub Turski', author_email='[email protected]', url='http://github.com/yacoob/aib2ofx', packages=['aib2ofx'], entry_points={ ...
<commit_before>"""Setup data for aib2ofx.""" from setuptools import setup setup( name='aib2ofx', description='Download data from aib.ie in OFX format', version='0.6', author='Jakub Turski', author_email='[email protected]', url='http://github.com/yacoob/aib2ofx', packages=['aib2ofx'], e...
"""Setup data for aib2ofx.""" from setuptools import setup setup( name='aib2ofx', description='Download data from aib.ie in OFX format', version='0.6', author='Jakub Turski', author_email='[email protected]', url='http://github.com/yacoob/aib2ofx', packages=['aib2ofx'], entry_points={ ...
"""Setup data for aib2ofx.""" from setuptools import setup setup( name='aib2ofx', description='Download data from aib.ie in OFX format', version='0.6', author='Jakub Turski', author_email='[email protected]', url='http://github.com/yacoob/aib2ofx', packages=['aib2ofx'], entry_points={ ...
<commit_before>"""Setup data for aib2ofx.""" from setuptools import setup setup( name='aib2ofx', description='Download data from aib.ie in OFX format', version='0.6', author='Jakub Turski', author_email='[email protected]', url='http://github.com/yacoob/aib2ofx', packages=['aib2ofx'], e...
3c2e19c99afbb6f0fc1eace6c29adea0cab7ebdc
irclogview/views.py
irclogview/views.py
from django.http import HttpResponse def index(request): return HttpResponse('index') def channel(request, name): return HttpResponse('channel: %s' % name) def show(request, name, year, month, day): return HttpResponse('show: %s - %s/%s/%s' % (name, year, month, day))
from datetime import datetime from django.http import HttpResponse from django.shortcuts import get_object_or_404 from annoying.decorators import render_to from .models import Channel, Log def index(request): return HttpResponse('index') def channel_index(request, name): channel = get_object_or_404(Channel...
Add view to show log of a channel on a day
Add view to show log of a channel on a day
Python
agpl-3.0
fajran/irclogview,BlankOn/irclogview,fajran/irclogview,BlankOn/irclogview
from django.http import HttpResponse def index(request): return HttpResponse('index') def channel(request, name): return HttpResponse('channel: %s' % name) def show(request, name, year, month, day): return HttpResponse('show: %s - %s/%s/%s' % (name, year, month, day)) Add view to show log of a channel o...
from datetime import datetime from django.http import HttpResponse from django.shortcuts import get_object_or_404 from annoying.decorators import render_to from .models import Channel, Log def index(request): return HttpResponse('index') def channel_index(request, name): channel = get_object_or_404(Channel...
<commit_before>from django.http import HttpResponse def index(request): return HttpResponse('index') def channel(request, name): return HttpResponse('channel: %s' % name) def show(request, name, year, month, day): return HttpResponse('show: %s - %s/%s/%s' % (name, year, month, day)) <commit_msg>Add view...
from datetime import datetime from django.http import HttpResponse from django.shortcuts import get_object_or_404 from annoying.decorators import render_to from .models import Channel, Log def index(request): return HttpResponse('index') def channel_index(request, name): channel = get_object_or_404(Channel...
from django.http import HttpResponse def index(request): return HttpResponse('index') def channel(request, name): return HttpResponse('channel: %s' % name) def show(request, name, year, month, day): return HttpResponse('show: %s - %s/%s/%s' % (name, year, month, day)) Add view to show log of a channel o...
<commit_before>from django.http import HttpResponse def index(request): return HttpResponse('index') def channel(request, name): return HttpResponse('channel: %s' % name) def show(request, name, year, month, day): return HttpResponse('show: %s - %s/%s/%s' % (name, year, month, day)) <commit_msg>Add view...
c3e5f19c4148eeb2b32e6ef30585f9355fa31812
kolibri/__init__.py
kolibri/__init__.py
""" CAUTION! Keep everything here at at minimum. Do not import stuff. This module is imported in setup.py, so you cannot for instance import a dependency. """ from __future__ import absolute_import from __future__ import print_function from __future__ import unicode_literals from .utils import env from .utils.version ...
""" CAUTION! Keep everything here at at minimum. Do not import stuff. This module is imported in setup.py, so you cannot for instance import a dependency. """ from __future__ import absolute_import from __future__ import print_function from __future__ import unicode_literals from .utils import env from .utils.version ...
Upgrade VERSION to 0.12.9 final
Upgrade VERSION to 0.12.9 final
Python
mit
indirectlylit/kolibri,learningequality/kolibri,learningequality/kolibri,mrpau/kolibri,indirectlylit/kolibri,indirectlylit/kolibri,mrpau/kolibri,indirectlylit/kolibri,mrpau/kolibri,learningequality/kolibri,learningequality/kolibri,mrpau/kolibri
""" CAUTION! Keep everything here at at minimum. Do not import stuff. This module is imported in setup.py, so you cannot for instance import a dependency. """ from __future__ import absolute_import from __future__ import print_function from __future__ import unicode_literals from .utils import env from .utils.version ...
""" CAUTION! Keep everything here at at minimum. Do not import stuff. This module is imported in setup.py, so you cannot for instance import a dependency. """ from __future__ import absolute_import from __future__ import print_function from __future__ import unicode_literals from .utils import env from .utils.version ...
<commit_before>""" CAUTION! Keep everything here at at minimum. Do not import stuff. This module is imported in setup.py, so you cannot for instance import a dependency. """ from __future__ import absolute_import from __future__ import print_function from __future__ import unicode_literals from .utils import env from ...
""" CAUTION! Keep everything here at at minimum. Do not import stuff. This module is imported in setup.py, so you cannot for instance import a dependency. """ from __future__ import absolute_import from __future__ import print_function from __future__ import unicode_literals from .utils import env from .utils.version ...
""" CAUTION! Keep everything here at at minimum. Do not import stuff. This module is imported in setup.py, so you cannot for instance import a dependency. """ from __future__ import absolute_import from __future__ import print_function from __future__ import unicode_literals from .utils import env from .utils.version ...
<commit_before>""" CAUTION! Keep everything here at at minimum. Do not import stuff. This module is imported in setup.py, so you cannot for instance import a dependency. """ from __future__ import absolute_import from __future__ import print_function from __future__ import unicode_literals from .utils import env from ...
cab360d14a6b02cc1cf4649823acd2e2c683d240
utils/swift_build_support/swift_build_support/products/swift.py
utils/swift_build_support/swift_build_support/products/swift.py
# swift_build_support/products/swift.py -------------------------*- python -*- # # This source file is part of the Swift.org open source project # # Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors # Licensed under Apache License v2.0 with Runtime Library Exception # # See http://swift.org/LICENSE.txt...
# swift_build_support/products/swift.py -------------------------*- python -*- # # This source file is part of the Swift.org open source project # # Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors # Licensed under Apache License v2.0 with Runtime Library Exception # # See http://swift.org/LICENSE.txt...
Change method _compute_runtime_use_sanitizer => property _runtime_sanitizer_flags. NFC.
[vacation-gardening] Change method _compute_runtime_use_sanitizer => property _runtime_sanitizer_flags. NFC.
Python
apache-2.0
parkera/swift,huonw/swift,CodaFi/swift,parkera/swift,codestergit/swift,austinzheng/swift,bitjammer/swift,glessard/swift,djwbrown/swift,bitjammer/swift,gottesmm/swift,lorentey/swift,tkremenek/swift,OscarSwanros/swift,milseman/swift,airspeedswift/swift,arvedviehweger/swift,CodaFi/swift,IngmarStein/swift,JaSpa/swift,atric...
# swift_build_support/products/swift.py -------------------------*- python -*- # # This source file is part of the Swift.org open source project # # Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors # Licensed under Apache License v2.0 with Runtime Library Exception # # See http://swift.org/LICENSE.txt...
# swift_build_support/products/swift.py -------------------------*- python -*- # # This source file is part of the Swift.org open source project # # Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors # Licensed under Apache License v2.0 with Runtime Library Exception # # See http://swift.org/LICENSE.txt...
<commit_before># swift_build_support/products/swift.py -------------------------*- python -*- # # This source file is part of the Swift.org open source project # # Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors # Licensed under Apache License v2.0 with Runtime Library Exception # # See http://swift....
# swift_build_support/products/swift.py -------------------------*- python -*- # # This source file is part of the Swift.org open source project # # Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors # Licensed under Apache License v2.0 with Runtime Library Exception # # See http://swift.org/LICENSE.txt...
# swift_build_support/products/swift.py -------------------------*- python -*- # # This source file is part of the Swift.org open source project # # Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors # Licensed under Apache License v2.0 with Runtime Library Exception # # See http://swift.org/LICENSE.txt...
<commit_before># swift_build_support/products/swift.py -------------------------*- python -*- # # This source file is part of the Swift.org open source project # # Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors # Licensed under Apache License v2.0 with Runtime Library Exception # # See http://swift....
d4c7648b5f77531f821b0a2a728098ae352ce0cb
saleor/product/management/commands/populatedb.py
saleor/product/management/commands/populatedb.py
from django.core.management.base import BaseCommand from utils.create_random_data import create_items, create_users, create_orders from saleor.userprofile.models import User class Command(BaseCommand): help = 'Populate database with test objects' placeholders_dir = r'saleor/static/placeholders/' def ad...
from django.core.management.base import BaseCommand from utils.create_random_data import create_items, create_users, create_orders from saleor.userprofile.models import User class Command(BaseCommand): help = 'Populate database with test objects' placeholders_dir = r'saleor/static/placeholders/' def ad...
Check existence of the user with appropriate email address
Check existence of the user with appropriate email address
Python
bsd-3-clause
laosunhust/saleor,KenMutemi/saleor,rchav/vinerack,maferelo/saleor,UITools/saleor,HyperManTT/ECommerceSaleor,laosunhust/saleor,spartonia/saleor,car3oon/saleor,spartonia/saleor,car3oon/saleor,tfroehlich82/saleor,UITools/saleor,spartonia/saleor,tfroehlich82/saleor,car3oon/saleor,rodrigozn/CW-Shop,jreigel/saleor,itbabu/sal...
from django.core.management.base import BaseCommand from utils.create_random_data import create_items, create_users, create_orders from saleor.userprofile.models import User class Command(BaseCommand): help = 'Populate database with test objects' placeholders_dir = r'saleor/static/placeholders/' def ad...
from django.core.management.base import BaseCommand from utils.create_random_data import create_items, create_users, create_orders from saleor.userprofile.models import User class Command(BaseCommand): help = 'Populate database with test objects' placeholders_dir = r'saleor/static/placeholders/' def ad...
<commit_before>from django.core.management.base import BaseCommand from utils.create_random_data import create_items, create_users, create_orders from saleor.userprofile.models import User class Command(BaseCommand): help = 'Populate database with test objects' placeholders_dir = r'saleor/static/placeholder...
from django.core.management.base import BaseCommand from utils.create_random_data import create_items, create_users, create_orders from saleor.userprofile.models import User class Command(BaseCommand): help = 'Populate database with test objects' placeholders_dir = r'saleor/static/placeholders/' def ad...
from django.core.management.base import BaseCommand from utils.create_random_data import create_items, create_users, create_orders from saleor.userprofile.models import User class Command(BaseCommand): help = 'Populate database with test objects' placeholders_dir = r'saleor/static/placeholders/' def ad...
<commit_before>from django.core.management.base import BaseCommand from utils.create_random_data import create_items, create_users, create_orders from saleor.userprofile.models import User class Command(BaseCommand): help = 'Populate database with test objects' placeholders_dir = r'saleor/static/placeholder...
9c25a37d4d2bc7459835dab923ad5610470c3e5a
lbrynet/__init__.py
lbrynet/__init__.py
import logging __version__ = "0.20.0rc8" version = tuple(__version__.split('.')) logging.getLogger(__name__).addHandler(logging.NullHandler())
import logging __version__ = "0.20.0rc9" version = tuple(__version__.split('.')) logging.getLogger(__name__).addHandler(logging.NullHandler())
Bump version 0.20.0rc8 --> 0.20.0rc9
Bump version 0.20.0rc8 --> 0.20.0rc9 Signed-off-by: Jack Robison <[email protected]>
Python
mit
lbryio/lbry,lbryio/lbry,lbryio/lbry
import logging __version__ = "0.20.0rc8" version = tuple(__version__.split('.')) logging.getLogger(__name__).addHandler(logging.NullHandler()) Bump version 0.20.0rc8 --> 0.20.0rc9 Signed-off-by: Jack Robison <[email protected]>
import logging __version__ = "0.20.0rc9" version = tuple(__version__.split('.')) logging.getLogger(__name__).addHandler(logging.NullHandler())
<commit_before>import logging __version__ = "0.20.0rc8" version = tuple(__version__.split('.')) logging.getLogger(__name__).addHandler(logging.NullHandler()) <commit_msg>Bump version 0.20.0rc8 --> 0.20.0rc9 Signed-off-by: Jack Robison <[email protected]><commit_after>
import logging __version__ = "0.20.0rc9" version = tuple(__version__.split('.')) logging.getLogger(__name__).addHandler(logging.NullHandler())
import logging __version__ = "0.20.0rc8" version = tuple(__version__.split('.')) logging.getLogger(__name__).addHandler(logging.NullHandler()) Bump version 0.20.0rc8 --> 0.20.0rc9 Signed-off-by: Jack Robison <[email protected]>import logging __version__ = "0.20.0rc9" version = tuple(_...
<commit_before>import logging __version__ = "0.20.0rc8" version = tuple(__version__.split('.')) logging.getLogger(__name__).addHandler(logging.NullHandler()) <commit_msg>Bump version 0.20.0rc8 --> 0.20.0rc9 Signed-off-by: Jack Robison <[email protected]><commit_after>import logging __...
d2fffc5e206a3305f98c0c9a4f2527b868e93eb3
lexicon/__init__.py
lexicon/__init__.py
from attribute_dict import AttributeDict from alias_dict import AliasDict __version__ = "0.1.0" class Lexicon(AttributeDict, AliasDict): def __init__(self, *args, **kwargs): # Need to avoid combining AliasDict's initial attribute write on # self.aliases, with AttributeDict's __setattr__. Doing s...
from attribute_dict import AttributeDict from alias_dict import AliasDict __version__ = "0.1.0" class Lexicon(AttributeDict, AliasDict): def __init__(self, *args, **kwargs): # Need to avoid combining AliasDict's initial attribute write on # self.aliases, with AttributeDict's __setattr__. Doing s...
Fix problems using Lexicons in deepcopy'd objects.
Fix problems using Lexicons in deepcopy'd objects. Said problems actually only manifest as 'ignored' RuntimeErrors, but those are really annoying and hard to hide. This seems to be the right fix.
Python
bsd-2-clause
mindw/lexicon,bitprophet/lexicon
from attribute_dict import AttributeDict from alias_dict import AliasDict __version__ = "0.1.0" class Lexicon(AttributeDict, AliasDict): def __init__(self, *args, **kwargs): # Need to avoid combining AliasDict's initial attribute write on # self.aliases, with AttributeDict's __setattr__. Doing s...
from attribute_dict import AttributeDict from alias_dict import AliasDict __version__ = "0.1.0" class Lexicon(AttributeDict, AliasDict): def __init__(self, *args, **kwargs): # Need to avoid combining AliasDict's initial attribute write on # self.aliases, with AttributeDict's __setattr__. Doing s...
<commit_before>from attribute_dict import AttributeDict from alias_dict import AliasDict __version__ = "0.1.0" class Lexicon(AttributeDict, AliasDict): def __init__(self, *args, **kwargs): # Need to avoid combining AliasDict's initial attribute write on # self.aliases, with AttributeDict's __set...
from attribute_dict import AttributeDict from alias_dict import AliasDict __version__ = "0.1.0" class Lexicon(AttributeDict, AliasDict): def __init__(self, *args, **kwargs): # Need to avoid combining AliasDict's initial attribute write on # self.aliases, with AttributeDict's __setattr__. Doing s...
from attribute_dict import AttributeDict from alias_dict import AliasDict __version__ = "0.1.0" class Lexicon(AttributeDict, AliasDict): def __init__(self, *args, **kwargs): # Need to avoid combining AliasDict's initial attribute write on # self.aliases, with AttributeDict's __setattr__. Doing s...
<commit_before>from attribute_dict import AttributeDict from alias_dict import AliasDict __version__ = "0.1.0" class Lexicon(AttributeDict, AliasDict): def __init__(self, *args, **kwargs): # Need to avoid combining AliasDict's initial attribute write on # self.aliases, with AttributeDict's __set...
aa8fb3c94dbbb7cae9b13d4441c59a7607b84583
cloudshell/networking/networking_resource_driver_interface.py
cloudshell/networking/networking_resource_driver_interface.py
from abc import ABCMeta from abc import abstractmethod class NetworkingResourceDriverInterface(object): __metaclass__ = ABCMeta @abstractmethod def ApplyConnectivityChanges(self, context, request): pass @abstractmethod def run_custom_command(self, context, custom_command): pass ...
from abc import ABCMeta from abc import abstractmethod class NetworkingResourceDriverInterface(object): __metaclass__ = ABCMeta @abstractmethod def ApplyConnectivityChanges(self, context, request): pass @abstractmethod def run_custom_command(self, context, custom_command): pass ...
Modify networking resource driver interface according to the latest networking standard
Modify networking resource driver interface according to the latest networking standard
Python
apache-2.0
QualiSystems/cloudshell-networking,QualiSystems/CloudShell-Networking-Core
from abc import ABCMeta from abc import abstractmethod class NetworkingResourceDriverInterface(object): __metaclass__ = ABCMeta @abstractmethod def ApplyConnectivityChanges(self, context, request): pass @abstractmethod def run_custom_command(self, context, custom_command): pass ...
from abc import ABCMeta from abc import abstractmethod class NetworkingResourceDriverInterface(object): __metaclass__ = ABCMeta @abstractmethod def ApplyConnectivityChanges(self, context, request): pass @abstractmethod def run_custom_command(self, context, custom_command): pass ...
<commit_before>from abc import ABCMeta from abc import abstractmethod class NetworkingResourceDriverInterface(object): __metaclass__ = ABCMeta @abstractmethod def ApplyConnectivityChanges(self, context, request): pass @abstractmethod def run_custom_command(self, context, custom_command):...
from abc import ABCMeta from abc import abstractmethod class NetworkingResourceDriverInterface(object): __metaclass__ = ABCMeta @abstractmethod def ApplyConnectivityChanges(self, context, request): pass @abstractmethod def run_custom_command(self, context, custom_command): pass ...
from abc import ABCMeta from abc import abstractmethod class NetworkingResourceDriverInterface(object): __metaclass__ = ABCMeta @abstractmethod def ApplyConnectivityChanges(self, context, request): pass @abstractmethod def run_custom_command(self, context, custom_command): pass ...
<commit_before>from abc import ABCMeta from abc import abstractmethod class NetworkingResourceDriverInterface(object): __metaclass__ = ABCMeta @abstractmethod def ApplyConnectivityChanges(self, context, request): pass @abstractmethod def run_custom_command(self, context, custom_command):...
1ea27e8989657bb35dd37b6ee2e038e1358fbc96
social_core/backends/globus.py
social_core/backends/globus.py
""" Globus Auth OpenID Connect backend, docs at: https://docs.globus.org/api/auth http://globus-integration-examples.readthedocs.io """ from social_core.backends.open_id_connect import OpenIdConnectAuth class GlobusOpenIdConnect(OpenIdConnectAuth): name = 'globus' OIDC_ENDPOINT = 'https://auth.globus...
""" Globus Auth OpenID Connect backend, docs at: https://docs.globus.org/api/auth http://globus-integration-examples.readthedocs.io """ from social_core.backends.open_id_connect import OpenIdConnectAuth class GlobusOpenIdConnect(OpenIdConnectAuth): name = 'globus' OIDC_ENDPOINT = 'https://auth.globus...
Set a JWT signature algorithm for the Globus backend to RS512
Set a JWT signature algorithm for the Globus backend to RS512
Python
bsd-3-clause
python-social-auth/social-core,python-social-auth/social-core
""" Globus Auth OpenID Connect backend, docs at: https://docs.globus.org/api/auth http://globus-integration-examples.readthedocs.io """ from social_core.backends.open_id_connect import OpenIdConnectAuth class GlobusOpenIdConnect(OpenIdConnectAuth): name = 'globus' OIDC_ENDPOINT = 'https://auth.globus...
""" Globus Auth OpenID Connect backend, docs at: https://docs.globus.org/api/auth http://globus-integration-examples.readthedocs.io """ from social_core.backends.open_id_connect import OpenIdConnectAuth class GlobusOpenIdConnect(OpenIdConnectAuth): name = 'globus' OIDC_ENDPOINT = 'https://auth.globus...
<commit_before>""" Globus Auth OpenID Connect backend, docs at: https://docs.globus.org/api/auth http://globus-integration-examples.readthedocs.io """ from social_core.backends.open_id_connect import OpenIdConnectAuth class GlobusOpenIdConnect(OpenIdConnectAuth): name = 'globus' OIDC_ENDPOINT = 'http...
""" Globus Auth OpenID Connect backend, docs at: https://docs.globus.org/api/auth http://globus-integration-examples.readthedocs.io """ from social_core.backends.open_id_connect import OpenIdConnectAuth class GlobusOpenIdConnect(OpenIdConnectAuth): name = 'globus' OIDC_ENDPOINT = 'https://auth.globus...
""" Globus Auth OpenID Connect backend, docs at: https://docs.globus.org/api/auth http://globus-integration-examples.readthedocs.io """ from social_core.backends.open_id_connect import OpenIdConnectAuth class GlobusOpenIdConnect(OpenIdConnectAuth): name = 'globus' OIDC_ENDPOINT = 'https://auth.globus...
<commit_before>""" Globus Auth OpenID Connect backend, docs at: https://docs.globus.org/api/auth http://globus-integration-examples.readthedocs.io """ from social_core.backends.open_id_connect import OpenIdConnectAuth class GlobusOpenIdConnect(OpenIdConnectAuth): name = 'globus' OIDC_ENDPOINT = 'http...
1ba67d0288fbe2800e5aed685580bdc37383a61c
knowledge_repo/postprocessors/format_checks.py
knowledge_repo/postprocessors/format_checks.py
from ..constants import FORMAT_CHECKS from ..post import HEADER_OPTIONAL_FIELD_TYPES, HEADER_REQUIRED_FIELD_TYPES from ..postprocessor import KnowledgePostProcessor class FormatChecks(KnowledgePostProcessor): _registry_keys = [FORMAT_CHECKS] def process(self, kp): headers = kp.headers for fie...
from ..constants import FORMAT_CHECKS from ..post import HEADER_OPTIONAL_FIELD_TYPES, HEADER_REQUIRED_FIELD_TYPES from ..postprocessor import KnowledgePostProcessor class FormatChecks(KnowledgePostProcessor): _registry_keys = [FORMAT_CHECKS] def process(self, kp): headers = kp.headers for fie...
Revert the latest changes due to CI build failure
Revert the latest changes due to CI build failure
Python
apache-2.0
airbnb/knowledge-repo,airbnb/knowledge-repo,airbnb/knowledge-repo,airbnb/knowledge-repo,airbnb/knowledge-repo
from ..constants import FORMAT_CHECKS from ..post import HEADER_OPTIONAL_FIELD_TYPES, HEADER_REQUIRED_FIELD_TYPES from ..postprocessor import KnowledgePostProcessor class FormatChecks(KnowledgePostProcessor): _registry_keys = [FORMAT_CHECKS] def process(self, kp): headers = kp.headers for fie...
from ..constants import FORMAT_CHECKS from ..post import HEADER_OPTIONAL_FIELD_TYPES, HEADER_REQUIRED_FIELD_TYPES from ..postprocessor import KnowledgePostProcessor class FormatChecks(KnowledgePostProcessor): _registry_keys = [FORMAT_CHECKS] def process(self, kp): headers = kp.headers for fie...
<commit_before>from ..constants import FORMAT_CHECKS from ..post import HEADER_OPTIONAL_FIELD_TYPES, HEADER_REQUIRED_FIELD_TYPES from ..postprocessor import KnowledgePostProcessor class FormatChecks(KnowledgePostProcessor): _registry_keys = [FORMAT_CHECKS] def process(self, kp): headers = kp.headers ...
from ..constants import FORMAT_CHECKS from ..post import HEADER_OPTIONAL_FIELD_TYPES, HEADER_REQUIRED_FIELD_TYPES from ..postprocessor import KnowledgePostProcessor class FormatChecks(KnowledgePostProcessor): _registry_keys = [FORMAT_CHECKS] def process(self, kp): headers = kp.headers for fie...
from ..constants import FORMAT_CHECKS from ..post import HEADER_OPTIONAL_FIELD_TYPES, HEADER_REQUIRED_FIELD_TYPES from ..postprocessor import KnowledgePostProcessor class FormatChecks(KnowledgePostProcessor): _registry_keys = [FORMAT_CHECKS] def process(self, kp): headers = kp.headers for fie...
<commit_before>from ..constants import FORMAT_CHECKS from ..post import HEADER_OPTIONAL_FIELD_TYPES, HEADER_REQUIRED_FIELD_TYPES from ..postprocessor import KnowledgePostProcessor class FormatChecks(KnowledgePostProcessor): _registry_keys = [FORMAT_CHECKS] def process(self, kp): headers = kp.headers ...
0c1caf49a18bcd862247cdca7a4efe2f6fc02d93
wafer/management/commands/wafer_talk_video_reviewers.py
wafer/management/commands/wafer_talk_video_reviewers.py
import sys import csv from django.core.management.base import BaseCommand from django.contrib.auth import get_user_model from wafer.talks.models import Talk, ACCEPTED, PROVISIONAL class Command(BaseCommand): help = ("List talks and the associated video_reviewer emails." " Only reviewers for accepted...
import sys import csv from django.core.management.base import BaseCommand from django.contrib.auth import get_user_model from wafer.talks.models import Talk, ACCEPTED, PROVISIONAL class Command(BaseCommand): help = ("List talks and the associated video_reviewer emails." " Only reviewers for accepted...
Drop python2-era manual encode dance
Drop python2-era manual encode dance
Python
isc
CTPUG/wafer,CTPUG/wafer,CTPUG/wafer,CTPUG/wafer
import sys import csv from django.core.management.base import BaseCommand from django.contrib.auth import get_user_model from wafer.talks.models import Talk, ACCEPTED, PROVISIONAL class Command(BaseCommand): help = ("List talks and the associated video_reviewer emails." " Only reviewers for accepted...
import sys import csv from django.core.management.base import BaseCommand from django.contrib.auth import get_user_model from wafer.talks.models import Talk, ACCEPTED, PROVISIONAL class Command(BaseCommand): help = ("List talks and the associated video_reviewer emails." " Only reviewers for accepted...
<commit_before>import sys import csv from django.core.management.base import BaseCommand from django.contrib.auth import get_user_model from wafer.talks.models import Talk, ACCEPTED, PROVISIONAL class Command(BaseCommand): help = ("List talks and the associated video_reviewer emails." " Only reviewe...
import sys import csv from django.core.management.base import BaseCommand from django.contrib.auth import get_user_model from wafer.talks.models import Talk, ACCEPTED, PROVISIONAL class Command(BaseCommand): help = ("List talks and the associated video_reviewer emails." " Only reviewers for accepted...
import sys import csv from django.core.management.base import BaseCommand from django.contrib.auth import get_user_model from wafer.talks.models import Talk, ACCEPTED, PROVISIONAL class Command(BaseCommand): help = ("List talks and the associated video_reviewer emails." " Only reviewers for accepted...
<commit_before>import sys import csv from django.core.management.base import BaseCommand from django.contrib.auth import get_user_model from wafer.talks.models import Talk, ACCEPTED, PROVISIONAL class Command(BaseCommand): help = ("List talks and the associated video_reviewer emails." " Only reviewe...
3b105973a6aad7885fd56182ad32e2731de9a432
django_evolution/compat/patches/sqlite_legacy_alter_table.py
django_evolution/compat/patches/sqlite_legacy_alter_table.py
"""Patch to enable SQLite Legacy Alter Table support.""" from __future__ import unicode_literals import sqlite3 import django from django.db.backends.sqlite3.base import DatabaseWrapper def needs_patch(): """Return whether the SQLite backend needs patching. It will need patching if using Django 1.11 throu...
"""Patch to enable SQLite Legacy Alter Table support.""" from __future__ import unicode_literals import sqlite3 import django def needs_patch(): """Return whether the SQLite backend needs patching. It will need patching if using Django 1.11 through 2.1.4 while using SQLite3 v2.26. Returns: ...
Fix a premature import when patching SQLite compatibility.
Fix a premature import when patching SQLite compatibility. We provide a compatibility patch that fixes certain versions of SQLite with Django prior to 2.1.5. This patch made the assumption that it could import the Django SQLite backend at the module level, since SQLite is built into Python. However, on modern version...
Python
bsd-3-clause
beanbaginc/django-evolution
"""Patch to enable SQLite Legacy Alter Table support.""" from __future__ import unicode_literals import sqlite3 import django from django.db.backends.sqlite3.base import DatabaseWrapper def needs_patch(): """Return whether the SQLite backend needs patching. It will need patching if using Django 1.11 throu...
"""Patch to enable SQLite Legacy Alter Table support.""" from __future__ import unicode_literals import sqlite3 import django def needs_patch(): """Return whether the SQLite backend needs patching. It will need patching if using Django 1.11 through 2.1.4 while using SQLite3 v2.26. Returns: ...
<commit_before>"""Patch to enable SQLite Legacy Alter Table support.""" from __future__ import unicode_literals import sqlite3 import django from django.db.backends.sqlite3.base import DatabaseWrapper def needs_patch(): """Return whether the SQLite backend needs patching. It will need patching if using Dj...
"""Patch to enable SQLite Legacy Alter Table support.""" from __future__ import unicode_literals import sqlite3 import django def needs_patch(): """Return whether the SQLite backend needs patching. It will need patching if using Django 1.11 through 2.1.4 while using SQLite3 v2.26. Returns: ...
"""Patch to enable SQLite Legacy Alter Table support.""" from __future__ import unicode_literals import sqlite3 import django from django.db.backends.sqlite3.base import DatabaseWrapper def needs_patch(): """Return whether the SQLite backend needs patching. It will need patching if using Django 1.11 throu...
<commit_before>"""Patch to enable SQLite Legacy Alter Table support.""" from __future__ import unicode_literals import sqlite3 import django from django.db.backends.sqlite3.base import DatabaseWrapper def needs_patch(): """Return whether the SQLite backend needs patching. It will need patching if using Dj...
a4b20f88eeafa3667cc47c92736241069f278e9e
plata/product/producer/models.py
plata/product/producer/models.py
from datetime import datetime from django.db import models from django.db.models import Sum, signals from django.utils.translation import ugettext_lazy as _ from plata.product.modules.options.models import Product class ProducerManager(models.Manager): def active(self): return self.filter(is_active=True...
from datetime import datetime from django.db import models from django.db.models import Sum, signals from django.utils.translation import ugettext_lazy as _ from plata.product.modules.options.models import Product # FIXME class ProducerManager(models.Manager): def active(self): return self.filter(is_act...
Add FIXME in product import in producer module
Add FIXME in product import in producer module
Python
bsd-3-clause
armicron/plata,armicron/plata,armicron/plata,stefanklug/plata,allink/plata
from datetime import datetime from django.db import models from django.db.models import Sum, signals from django.utils.translation import ugettext_lazy as _ from plata.product.modules.options.models import Product class ProducerManager(models.Manager): def active(self): return self.filter(is_active=True...
from datetime import datetime from django.db import models from django.db.models import Sum, signals from django.utils.translation import ugettext_lazy as _ from plata.product.modules.options.models import Product # FIXME class ProducerManager(models.Manager): def active(self): return self.filter(is_act...
<commit_before>from datetime import datetime from django.db import models from django.db.models import Sum, signals from django.utils.translation import ugettext_lazy as _ from plata.product.modules.options.models import Product class ProducerManager(models.Manager): def active(self): return self.filter...
from datetime import datetime from django.db import models from django.db.models import Sum, signals from django.utils.translation import ugettext_lazy as _ from plata.product.modules.options.models import Product # FIXME class ProducerManager(models.Manager): def active(self): return self.filter(is_act...
from datetime import datetime from django.db import models from django.db.models import Sum, signals from django.utils.translation import ugettext_lazy as _ from plata.product.modules.options.models import Product class ProducerManager(models.Manager): def active(self): return self.filter(is_active=True...
<commit_before>from datetime import datetime from django.db import models from django.db.models import Sum, signals from django.utils.translation import ugettext_lazy as _ from plata.product.modules.options.models import Product class ProducerManager(models.Manager): def active(self): return self.filter...
81e9e9f17c903b1e762df4e9dfab4edceaaeacd4
python_apps/pypo/pypo/timeout.py
python_apps/pypo/pypo/timeout.py
import threading from . import pypofetch def __timeout(func, timeout_duration, default, args, kwargs): class InterruptableThread(threading.Thread): def __init__(self): threading.Thread.__init__(self) self.result = default def run(self): self.result = func(*arg...
import threading from . import pypofetch def __timeout(func, timeout_duration, default, args, kwargs): class InterruptableThread(threading.Thread): def __init__(self): threading.Thread.__init__(self) self.result = default def run(self): self.result = func(*arg...
Rename isAlive method to is_alive
Rename isAlive method to is_alive Python 3.9 compatibility fix
Python
agpl-3.0
LibreTime/libretime,LibreTime/libretime,LibreTime/libretime,LibreTime/libretime,LibreTime/libretime,LibreTime/libretime
import threading from . import pypofetch def __timeout(func, timeout_duration, default, args, kwargs): class InterruptableThread(threading.Thread): def __init__(self): threading.Thread.__init__(self) self.result = default def run(self): self.result = func(*arg...
import threading from . import pypofetch def __timeout(func, timeout_duration, default, args, kwargs): class InterruptableThread(threading.Thread): def __init__(self): threading.Thread.__init__(self) self.result = default def run(self): self.result = func(*arg...
<commit_before>import threading from . import pypofetch def __timeout(func, timeout_duration, default, args, kwargs): class InterruptableThread(threading.Thread): def __init__(self): threading.Thread.__init__(self) self.result = default def run(self): self.res...
import threading from . import pypofetch def __timeout(func, timeout_duration, default, args, kwargs): class InterruptableThread(threading.Thread): def __init__(self): threading.Thread.__init__(self) self.result = default def run(self): self.result = func(*arg...
import threading from . import pypofetch def __timeout(func, timeout_duration, default, args, kwargs): class InterruptableThread(threading.Thread): def __init__(self): threading.Thread.__init__(self) self.result = default def run(self): self.result = func(*arg...
<commit_before>import threading from . import pypofetch def __timeout(func, timeout_duration, default, args, kwargs): class InterruptableThread(threading.Thread): def __init__(self): threading.Thread.__init__(self) self.result = default def run(self): self.res...
8b125544a49b6ea0c4e54d934f390a96e1efe105
pywaw/misc/context_processors.py
pywaw/misc/context_processors.py
import functools import subprocess import django import platform from django.conf import settings from django.contrib.sites.models import get_current_site def system_info(request): return { 'system': { 'django': django.get_version(), 'python': platform.python_version(), ...
import functools import subprocess import django import platform from django.conf import settings from django.contrib.sites.models import get_current_site def system_info(request): return { 'system': { 'django': django.get_version(), 'python': platform.python_version(), ...
Change from hg to git.
Change from hg to git.
Python
mit
PyWaw/pywaw.org,PyWaw/pywaw.org,PyWaw/pywaw.org
import functools import subprocess import django import platform from django.conf import settings from django.contrib.sites.models import get_current_site def system_info(request): return { 'system': { 'django': django.get_version(), 'python': platform.python_version(), ...
import functools import subprocess import django import platform from django.conf import settings from django.contrib.sites.models import get_current_site def system_info(request): return { 'system': { 'django': django.get_version(), 'python': platform.python_version(), ...
<commit_before>import functools import subprocess import django import platform from django.conf import settings from django.contrib.sites.models import get_current_site def system_info(request): return { 'system': { 'django': django.get_version(), 'python': platform.python_version...
import functools import subprocess import django import platform from django.conf import settings from django.contrib.sites.models import get_current_site def system_info(request): return { 'system': { 'django': django.get_version(), 'python': platform.python_version(), ...
import functools import subprocess import django import platform from django.conf import settings from django.contrib.sites.models import get_current_site def system_info(request): return { 'system': { 'django': django.get_version(), 'python': platform.python_version(), ...
<commit_before>import functools import subprocess import django import platform from django.conf import settings from django.contrib.sites.models import get_current_site def system_info(request): return { 'system': { 'django': django.get_version(), 'python': platform.python_version...
e9df5070abcea31907479630810a64a007ff1f06
quotes_page/urls.py
quotes_page/urls.py
from django.conf.urls.defaults import patterns, include, url urlpatterns = patterns('', # Examples: # url(r'^$', 'qi.views.home', name='home'), # url(r'^qi/', include('qi.foo.urls')), # Uncomment the admin/doc line below to enable admin documentation: # url(r'^admin/doc/', include('django.contrib....
from django.conf.urls.defaults import patterns, include, url urlpatterns = patterns('', # Examples: # url(r'^$', 'qi.views.home', name='home'), # url(r'^qi/', include('qi.foo.urls')), # Uncomment the admin/doc line below to enable admin documentation: # url(r'^admin/doc/', include('django.contrib....
Disable init view for now, add extra url for specific quotes page
Disable init view for now, add extra url for specific quotes page
Python
mit
kirberich/qicrawler,kirberich/qicrawler
from django.conf.urls.defaults import patterns, include, url urlpatterns = patterns('', # Examples: # url(r'^$', 'qi.views.home', name='home'), # url(r'^qi/', include('qi.foo.urls')), # Uncomment the admin/doc line below to enable admin documentation: # url(r'^admin/doc/', include('django.contrib....
from django.conf.urls.defaults import patterns, include, url urlpatterns = patterns('', # Examples: # url(r'^$', 'qi.views.home', name='home'), # url(r'^qi/', include('qi.foo.urls')), # Uncomment the admin/doc line below to enable admin documentation: # url(r'^admin/doc/', include('django.contrib....
<commit_before>from django.conf.urls.defaults import patterns, include, url urlpatterns = patterns('', # Examples: # url(r'^$', 'qi.views.home', name='home'), # url(r'^qi/', include('qi.foo.urls')), # Uncomment the admin/doc line below to enable admin documentation: # url(r'^admin/doc/', include('...
from django.conf.urls.defaults import patterns, include, url urlpatterns = patterns('', # Examples: # url(r'^$', 'qi.views.home', name='home'), # url(r'^qi/', include('qi.foo.urls')), # Uncomment the admin/doc line below to enable admin documentation: # url(r'^admin/doc/', include('django.contrib....
from django.conf.urls.defaults import patterns, include, url urlpatterns = patterns('', # Examples: # url(r'^$', 'qi.views.home', name='home'), # url(r'^qi/', include('qi.foo.urls')), # Uncomment the admin/doc line below to enable admin documentation: # url(r'^admin/doc/', include('django.contrib....
<commit_before>from django.conf.urls.defaults import patterns, include, url urlpatterns = patterns('', # Examples: # url(r'^$', 'qi.views.home', name='home'), # url(r'^qi/', include('qi.foo.urls')), # Uncomment the admin/doc line below to enable admin documentation: # url(r'^admin/doc/', include('...
fbbf141331c27dfe88d5877cbd1b5bbd54356e0b
pidman/pid/migrations/0002_pid_sequence_initial_value.py
pidman/pid/migrations/0002_pid_sequence_initial_value.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models from pidman.pid.noid import decode_noid from pidman.pid import models as pid_models def pid_sequence_lastvalue(apps, schema_editor): # if the database has existing pids, update the sequence last value # s...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models from pidman.pid.noid import decode_noid, encode_noid from pidman.pid import models as pid_models def pid_sequence_lastvalue(apps, schema_editor): # if the database has existing pids, update the sequence last ...
Update 1.0 release with latest version of pid sequence migration
Update 1.0 release with latest version of pid sequence migration
Python
apache-2.0
emory-libraries/pidman,emory-libraries/pidman
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models from pidman.pid.noid import decode_noid from pidman.pid import models as pid_models def pid_sequence_lastvalue(apps, schema_editor): # if the database has existing pids, update the sequence last value # s...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models from pidman.pid.noid import decode_noid, encode_noid from pidman.pid import models as pid_models def pid_sequence_lastvalue(apps, schema_editor): # if the database has existing pids, update the sequence last ...
<commit_before># -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models from pidman.pid.noid import decode_noid from pidman.pid import models as pid_models def pid_sequence_lastvalue(apps, schema_editor): # if the database has existing pids, update the sequence las...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models from pidman.pid.noid import decode_noid, encode_noid from pidman.pid import models as pid_models def pid_sequence_lastvalue(apps, schema_editor): # if the database has existing pids, update the sequence last ...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models from pidman.pid.noid import decode_noid from pidman.pid import models as pid_models def pid_sequence_lastvalue(apps, schema_editor): # if the database has existing pids, update the sequence last value # s...
<commit_before># -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models from pidman.pid.noid import decode_noid from pidman.pid import models as pid_models def pid_sequence_lastvalue(apps, schema_editor): # if the database has existing pids, update the sequence las...
eede9136f4a605100674cf981ca9e30782d3bf7f
temba/msgs/migrations/0038_broadcast_purged.py
temba/msgs/migrations/0038_broadcast_purged.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('msgs', '0037_backfill_recipient_counts'), ] operations = [ migrations.AddField( model_name='broadcast', ...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('msgs', '0037_backfill_recipient_counts'), ] operations = [ migrations.AddField( model_name='broadcast', ...
Tweak migration to apply quickly
Tweak migration to apply quickly
Python
agpl-3.0
pulilab/rapidpro,pulilab/rapidpro,pulilab/rapidpro,pulilab/rapidpro,ewheeler/rapidpro,ewheeler/rapidpro,tsotetsi/textily-web,tsotetsi/textily-web,ewheeler/rapidpro,reyrodrigues/EU-SMS,reyrodrigues/EU-SMS,ewheeler/rapidpro,tsotetsi/textily-web,reyrodrigues/EU-SMS,pulilab/rapidpro,tsotetsi/textily-web,tsotetsi/textily-we...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('msgs', '0037_backfill_recipient_counts'), ] operations = [ migrations.AddField( model_name='broadcast', ...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('msgs', '0037_backfill_recipient_counts'), ] operations = [ migrations.AddField( model_name='broadcast', ...
<commit_before># -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('msgs', '0037_backfill_recipient_counts'), ] operations = [ migrations.AddField( model_name='broad...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('msgs', '0037_backfill_recipient_counts'), ] operations = [ migrations.AddField( model_name='broadcast', ...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('msgs', '0037_backfill_recipient_counts'), ] operations = [ migrations.AddField( model_name='broadcast', ...
<commit_before># -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('msgs', '0037_backfill_recipient_counts'), ] operations = [ migrations.AddField( model_name='broad...
609fcedf1aa90e0022c72121865452b3cbdd0ba3
icekit/plugins/content_listing/forms.py
icekit/plugins/content_listing/forms.py
from fluent_contents.forms import ContentItemForm #from icekit.content_collections.abstract_models import AbstractCollectedContent from .models import ContentListingItem class ContentListingAdminForm(ContentItemForm): class Meta: model = ContentListingItem fields = '__all__' # def __init__...
from django.forms import ModelChoiceField from django.contrib.contenttypes.models import ContentType from fluent_contents.forms import ContentItemForm from .models import ContentListingItem class ContentTypeModelChoiceField(ModelChoiceField): def label_from_instance(self, content_type): return u".".joi...
Improve content listing plugin's admin form
Improve content listing plugin's admin form - show natural key of content types in select field to disambiguate the SELECT field listing in the admin - add `filter_content_types` method to form to simplify filtering the selectable content types in derived plugins.
Python
mit
ic-labs/django-icekit,ic-labs/django-icekit,ic-labs/django-icekit,ic-labs/django-icekit
from fluent_contents.forms import ContentItemForm #from icekit.content_collections.abstract_models import AbstractCollectedContent from .models import ContentListingItem class ContentListingAdminForm(ContentItemForm): class Meta: model = ContentListingItem fields = '__all__' # def __init__...
from django.forms import ModelChoiceField from django.contrib.contenttypes.models import ContentType from fluent_contents.forms import ContentItemForm from .models import ContentListingItem class ContentTypeModelChoiceField(ModelChoiceField): def label_from_instance(self, content_type): return u".".joi...
<commit_before>from fluent_contents.forms import ContentItemForm #from icekit.content_collections.abstract_models import AbstractCollectedContent from .models import ContentListingItem class ContentListingAdminForm(ContentItemForm): class Meta: model = ContentListingItem fields = '__all__' ...
from django.forms import ModelChoiceField from django.contrib.contenttypes.models import ContentType from fluent_contents.forms import ContentItemForm from .models import ContentListingItem class ContentTypeModelChoiceField(ModelChoiceField): def label_from_instance(self, content_type): return u".".joi...
from fluent_contents.forms import ContentItemForm #from icekit.content_collections.abstract_models import AbstractCollectedContent from .models import ContentListingItem class ContentListingAdminForm(ContentItemForm): class Meta: model = ContentListingItem fields = '__all__' # def __init__...
<commit_before>from fluent_contents.forms import ContentItemForm #from icekit.content_collections.abstract_models import AbstractCollectedContent from .models import ContentListingItem class ContentListingAdminForm(ContentItemForm): class Meta: model = ContentListingItem fields = '__all__' ...
b1bfd9630ef049070b0cd6ae215470d3d1facd40
django/contrib/messages/views.py
django/contrib/messages/views.py
from django.views.generic.edit import FormMixin from django.contrib import messages class SuccessMessageMixin(FormMixin): """ Adds a success message on successful form submission. """ success_message = '' def form_valid(self, form): response = super(SuccessMessageMixin, self).form_valid(f...
from django.contrib import messages class SuccessMessageMixin(object): """ Adds a success message on successful form submission. """ success_message = '' def form_valid(self, form): response = super(SuccessMessageMixin, self).form_valid(form) success_message = self.get_success_mes...
Remove unnecessary and problematic parent class from SuccessMessageMixin
Remove unnecessary and problematic parent class from SuccessMessageMixin refs #16319, thanks to bmispelon for the catch
Python
bsd-3-clause
xadahiya/django,anant-dev/django,AltSchool/django,huang4fstudio/django,ryanahall/django,gunchleoc/django,andreif/django,vmarkovtsev/django,avneesh91/django,makinacorpus/django,ArnossArnossi/django,mitchelljkotler/django,avanov/django,sdcooke/django,denis-pitul/django,chyeh727/django,jhoos/django,ataylor32/django,piquad...
from django.views.generic.edit import FormMixin from django.contrib import messages class SuccessMessageMixin(FormMixin): """ Adds a success message on successful form submission. """ success_message = '' def form_valid(self, form): response = super(SuccessMessageMixin, self).form_valid(f...
from django.contrib import messages class SuccessMessageMixin(object): """ Adds a success message on successful form submission. """ success_message = '' def form_valid(self, form): response = super(SuccessMessageMixin, self).form_valid(form) success_message = self.get_success_mes...
<commit_before>from django.views.generic.edit import FormMixin from django.contrib import messages class SuccessMessageMixin(FormMixin): """ Adds a success message on successful form submission. """ success_message = '' def form_valid(self, form): response = super(SuccessMessageMixin, sel...
from django.contrib import messages class SuccessMessageMixin(object): """ Adds a success message on successful form submission. """ success_message = '' def form_valid(self, form): response = super(SuccessMessageMixin, self).form_valid(form) success_message = self.get_success_mes...
from django.views.generic.edit import FormMixin from django.contrib import messages class SuccessMessageMixin(FormMixin): """ Adds a success message on successful form submission. """ success_message = '' def form_valid(self, form): response = super(SuccessMessageMixin, self).form_valid(f...
<commit_before>from django.views.generic.edit import FormMixin from django.contrib import messages class SuccessMessageMixin(FormMixin): """ Adds a success message on successful form submission. """ success_message = '' def form_valid(self, form): response = super(SuccessMessageMixin, sel...
efb98ffae0a92d9a0facc76cd43bb51dca3b2820
nibble_aes/find_dist/find_ids.py
nibble_aes/find_dist/find_ids.py
""" Derive a list of impossible differentials. """ import ast import sys def parse(line): return ast.literal_eval(line) def main(): if len(sys.argv) != 3: print("usage: ./find_ids.py [forward differentials file] [backward differentials file]", file=sys.stderr) sys.exit(1) forward_diffs =...
""" Derive a list of impossible differentials. """ import ast import sys def parse(line): i, rounds, xss = ast.literal_eval(line) yss = [set(xs) for xs in xss] return (i, rounds, yss) def main(): if len(sys.argv) != 3: print("usage: ./find_ids.py [forward differentials file] [backward differe...
Revert "Trade memory for time."
Revert "Trade memory for time." This reverts commit f4c13756eef0dc6b7231e37d5f5d9029dea1fb62.
Python
mit
wei2912/aes-idc,wei2912/idc,wei2912/idc,wei2912/idc,wei2912/idc,wei2912/aes-idc
""" Derive a list of impossible differentials. """ import ast import sys def parse(line): return ast.literal_eval(line) def main(): if len(sys.argv) != 3: print("usage: ./find_ids.py [forward differentials file] [backward differentials file]", file=sys.stderr) sys.exit(1) forward_diffs =...
""" Derive a list of impossible differentials. """ import ast import sys def parse(line): i, rounds, xss = ast.literal_eval(line) yss = [set(xs) for xs in xss] return (i, rounds, yss) def main(): if len(sys.argv) != 3: print("usage: ./find_ids.py [forward differentials file] [backward differe...
<commit_before>""" Derive a list of impossible differentials. """ import ast import sys def parse(line): return ast.literal_eval(line) def main(): if len(sys.argv) != 3: print("usage: ./find_ids.py [forward differentials file] [backward differentials file]", file=sys.stderr) sys.exit(1) ...
""" Derive a list of impossible differentials. """ import ast import sys def parse(line): i, rounds, xss = ast.literal_eval(line) yss = [set(xs) for xs in xss] return (i, rounds, yss) def main(): if len(sys.argv) != 3: print("usage: ./find_ids.py [forward differentials file] [backward differe...
""" Derive a list of impossible differentials. """ import ast import sys def parse(line): return ast.literal_eval(line) def main(): if len(sys.argv) != 3: print("usage: ./find_ids.py [forward differentials file] [backward differentials file]", file=sys.stderr) sys.exit(1) forward_diffs =...
<commit_before>""" Derive a list of impossible differentials. """ import ast import sys def parse(line): return ast.literal_eval(line) def main(): if len(sys.argv) != 3: print("usage: ./find_ids.py [forward differentials file] [backward differentials file]", file=sys.stderr) sys.exit(1) ...
6cffdd1df7a3bc1d5abded0610a8d4a7f7cb8159
en-2014-03-23-restarting-a-python-script-within-itself/daemon.py
en-2014-03-23-restarting-a-python-script-within-itself/daemon.py
#!/usr/bin/env python import os import sys from os.path import getmtime # Parse script arguments and configuration files. # ... WATCHED_FILES = [__file__] WATCHED_FILES_MTIMES = [(f, getmtime(f)) for f in WATCHED_FILES] while True: # Wait for inputs and act on them. # ... # Check whether a watched file...
#!/usr/bin/env python import os import sys from os.path import getmtime # Parse script arguments and configuration files. # ... WATCHED_FILES = [__file__] WATCHED_FILES_MTIMES = [(f, getmtime(f)) for f in WATCHED_FILES] while True: # Wait for inputs and act on them. # ... # Check whether a watched file...
Use '!=' instead of '>' when checking for mtime changes.
blog/en-2014-03-23: Use '!=' instead of '>' when checking for mtime changes. The use of '!=' ensures that the reloading works even when the new mtime is lower than the current mtime (e.g. when we use a backed-up version of a file). Thanks to Ronald for pointing this out (http://blog.petrzemek.net/2014/03/23/restartin...
Python
bsd-3-clause
s3rvac/blog,s3rvac/blog,s3rvac/blog,s3rvac/blog
#!/usr/bin/env python import os import sys from os.path import getmtime # Parse script arguments and configuration files. # ... WATCHED_FILES = [__file__] WATCHED_FILES_MTIMES = [(f, getmtime(f)) for f in WATCHED_FILES] while True: # Wait for inputs and act on them. # ... # Check whether a watched file...
#!/usr/bin/env python import os import sys from os.path import getmtime # Parse script arguments and configuration files. # ... WATCHED_FILES = [__file__] WATCHED_FILES_MTIMES = [(f, getmtime(f)) for f in WATCHED_FILES] while True: # Wait for inputs and act on them. # ... # Check whether a watched file...
<commit_before>#!/usr/bin/env python import os import sys from os.path import getmtime # Parse script arguments and configuration files. # ... WATCHED_FILES = [__file__] WATCHED_FILES_MTIMES = [(f, getmtime(f)) for f in WATCHED_FILES] while True: # Wait for inputs and act on them. # ... # Check whether...
#!/usr/bin/env python import os import sys from os.path import getmtime # Parse script arguments and configuration files. # ... WATCHED_FILES = [__file__] WATCHED_FILES_MTIMES = [(f, getmtime(f)) for f in WATCHED_FILES] while True: # Wait for inputs and act on them. # ... # Check whether a watched file...
#!/usr/bin/env python import os import sys from os.path import getmtime # Parse script arguments and configuration files. # ... WATCHED_FILES = [__file__] WATCHED_FILES_MTIMES = [(f, getmtime(f)) for f in WATCHED_FILES] while True: # Wait for inputs and act on them. # ... # Check whether a watched file...
<commit_before>#!/usr/bin/env python import os import sys from os.path import getmtime # Parse script arguments and configuration files. # ... WATCHED_FILES = [__file__] WATCHED_FILES_MTIMES = [(f, getmtime(f)) for f in WATCHED_FILES] while True: # Wait for inputs and act on them. # ... # Check whether...
10bfa701f352e0f916b1edd9913bee788f09568f
oscar/apps/catalogue/managers.py
oscar/apps/catalogue/managers.py
from django.db import models class ProductManager(models.Manager): def base_queryset(self): """ Return ``QuerySet`` with related content pre-loaded. """ return self.get_query_set().select_related('product_class')\ .prefetch_related('variants', ...
from django.db import models class ProductQuerySet(models.query.QuerySet): def base_queryset(self): """ Applies select_related and prefetch_related for commonly related models to save on queries """ return self.select_related('product_class')\ .prefetch_related...
Allow chaining of Product's custom querysets
Allow chaining of Product's custom querysets This aligns the implementation of Oscar specific QuerySet Methods with the implementation in current django core[1]. While this is not DRY, it does deliver on chainability and can be seen as preparation to take advantage of the improvements coming to this part of django in ...
Python
bsd-3-clause
thechampanurag/django-oscar,mexeniz/django-oscar,jinnykoo/wuyisj,monikasulik/django-oscar,dongguangming/django-oscar,QLGu/django-oscar,WadeYuChen/django-oscar,josesanch/django-oscar,vovanbo/django-oscar,sonofatailor/django-oscar,ahmetdaglarbas/e-commerce,itbabu/django-oscar,WadeYuChen/django-oscar,anentropic/django-osc...
from django.db import models class ProductManager(models.Manager): def base_queryset(self): """ Return ``QuerySet`` with related content pre-loaded. """ return self.get_query_set().select_related('product_class')\ .prefetch_related('variants', ...
from django.db import models class ProductQuerySet(models.query.QuerySet): def base_queryset(self): """ Applies select_related and prefetch_related for commonly related models to save on queries """ return self.select_related('product_class')\ .prefetch_related...
<commit_before>from django.db import models class ProductManager(models.Manager): def base_queryset(self): """ Return ``QuerySet`` with related content pre-loaded. """ return self.get_query_set().select_related('product_class')\ .prefetch_related('variants', ...
from django.db import models class ProductQuerySet(models.query.QuerySet): def base_queryset(self): """ Applies select_related and prefetch_related for commonly related models to save on queries """ return self.select_related('product_class')\ .prefetch_related...
from django.db import models class ProductManager(models.Manager): def base_queryset(self): """ Return ``QuerySet`` with related content pre-loaded. """ return self.get_query_set().select_related('product_class')\ .prefetch_related('variants', ...
<commit_before>from django.db import models class ProductManager(models.Manager): def base_queryset(self): """ Return ``QuerySet`` with related content pre-loaded. """ return self.get_query_set().select_related('product_class')\ .prefetch_related('variants', ...
03db6c12584652230fe0cd1f982f2a70a7c1630b
test/test_ticket.py
test/test_ticket.py
import unittest from mock import Mock import sys import os from pytrac import Ticket class TestTicket(unittest.TestCase): def setUp(self): server = Mock() self.ticket = Ticket(server) def testSearchWithAllParams(self): self.ticket.search(summary='test_summary', owner='someowner', st...
import unittest from mock import Mock import sys import os import datetime from pytrac import Ticket class TestTicket(unittest.TestCase): def setUp(self): server = Mock() self.ticket = Ticket(server) def testSearchWithAllParams(self): self.ticket.search(summary='test_summary', owner...
Add test for comment api
Add test for comment api
Python
apache-2.0
Jimdo/pytrac,Jimdo/pytrac
import unittest from mock import Mock import sys import os from pytrac import Ticket class TestTicket(unittest.TestCase): def setUp(self): server = Mock() self.ticket = Ticket(server) def testSearchWithAllParams(self): self.ticket.search(summary='test_summary', owner='someowner', st...
import unittest from mock import Mock import sys import os import datetime from pytrac import Ticket class TestTicket(unittest.TestCase): def setUp(self): server = Mock() self.ticket = Ticket(server) def testSearchWithAllParams(self): self.ticket.search(summary='test_summary', owner...
<commit_before>import unittest from mock import Mock import sys import os from pytrac import Ticket class TestTicket(unittest.TestCase): def setUp(self): server = Mock() self.ticket = Ticket(server) def testSearchWithAllParams(self): self.ticket.search(summary='test_summary', owner=...
import unittest from mock import Mock import sys import os import datetime from pytrac import Ticket class TestTicket(unittest.TestCase): def setUp(self): server = Mock() self.ticket = Ticket(server) def testSearchWithAllParams(self): self.ticket.search(summary='test_summary', owner...
import unittest from mock import Mock import sys import os from pytrac import Ticket class TestTicket(unittest.TestCase): def setUp(self): server = Mock() self.ticket = Ticket(server) def testSearchWithAllParams(self): self.ticket.search(summary='test_summary', owner='someowner', st...
<commit_before>import unittest from mock import Mock import sys import os from pytrac import Ticket class TestTicket(unittest.TestCase): def setUp(self): server = Mock() self.ticket = Ticket(server) def testSearchWithAllParams(self): self.ticket.search(summary='test_summary', owner=...
900ab180a8e255cc46e0583d251c5a71fc27f5d6
src/waldur_mastermind/marketplace_rancher/processors.py
src/waldur_mastermind/marketplace_rancher/processors.py
from waldur_mastermind.marketplace import processors from waldur_rancher import views as rancher_views class RancherCreateProcessor(processors.BaseCreateResourceProcessor): viewset = rancher_views.ClusterViewSet fields = ( 'name', 'description', 'nodes', 'tenant_settings', ...
from waldur_mastermind.marketplace import processors from waldur_rancher import views as rancher_views class RancherCreateProcessor(processors.BaseCreateResourceProcessor): viewset = rancher_views.ClusterViewSet fields = ( 'name', 'description', 'nodes', 'tenant_settings', ...
Add new field to Processor
Add new field to Processor
Python
mit
opennode/waldur-mastermind,opennode/waldur-mastermind,opennode/nodeconductor-assembly-waldur,opennode/waldur-mastermind,opennode/waldur-mastermind,opennode/nodeconductor-assembly-waldur,opennode/nodeconductor-assembly-waldur
from waldur_mastermind.marketplace import processors from waldur_rancher import views as rancher_views class RancherCreateProcessor(processors.BaseCreateResourceProcessor): viewset = rancher_views.ClusterViewSet fields = ( 'name', 'description', 'nodes', 'tenant_settings', ...
from waldur_mastermind.marketplace import processors from waldur_rancher import views as rancher_views class RancherCreateProcessor(processors.BaseCreateResourceProcessor): viewset = rancher_views.ClusterViewSet fields = ( 'name', 'description', 'nodes', 'tenant_settings', ...
<commit_before>from waldur_mastermind.marketplace import processors from waldur_rancher import views as rancher_views class RancherCreateProcessor(processors.BaseCreateResourceProcessor): viewset = rancher_views.ClusterViewSet fields = ( 'name', 'description', 'nodes', 'tenant_...
from waldur_mastermind.marketplace import processors from waldur_rancher import views as rancher_views class RancherCreateProcessor(processors.BaseCreateResourceProcessor): viewset = rancher_views.ClusterViewSet fields = ( 'name', 'description', 'nodes', 'tenant_settings', ...
from waldur_mastermind.marketplace import processors from waldur_rancher import views as rancher_views class RancherCreateProcessor(processors.BaseCreateResourceProcessor): viewset = rancher_views.ClusterViewSet fields = ( 'name', 'description', 'nodes', 'tenant_settings', ...
<commit_before>from waldur_mastermind.marketplace import processors from waldur_rancher import views as rancher_views class RancherCreateProcessor(processors.BaseCreateResourceProcessor): viewset = rancher_views.ClusterViewSet fields = ( 'name', 'description', 'nodes', 'tenant_...
987b45af9ec719ce2ded8615bb7177979e688184
tests/functional/test_warning.py
tests/functional/test_warning.py
import textwrap def test_environ(script, tmpdir): """$PYTHONWARNINGS was added in python2.7""" demo = tmpdir.joinpath('warnings_demo.py') demo.write_text(textwrap.dedent(''' from logging import basicConfig from pip._internal.utils import deprecation deprecation.install_warning_log...
import textwrap def test_environ(script, tmpdir): demo = tmpdir.joinpath('warnings_demo.py') demo.write_text(textwrap.dedent(''' from logging import basicConfig from pip._internal.utils import deprecation deprecation.install_warning_logger() basicConfig() deprecation....
Move docstring to appropriately placed comment
Move docstring to appropriately placed comment
Python
mit
pfmoore/pip,pradyunsg/pip,xavfernandez/pip,rouge8/pip,pfmoore/pip,rouge8/pip,pradyunsg/pip,xavfernandez/pip,pypa/pip,sbidoul/pip,sbidoul/pip,xavfernandez/pip,pypa/pip,rouge8/pip
import textwrap def test_environ(script, tmpdir): """$PYTHONWARNINGS was added in python2.7""" demo = tmpdir.joinpath('warnings_demo.py') demo.write_text(textwrap.dedent(''' from logging import basicConfig from pip._internal.utils import deprecation deprecation.install_warning_log...
import textwrap def test_environ(script, tmpdir): demo = tmpdir.joinpath('warnings_demo.py') demo.write_text(textwrap.dedent(''' from logging import basicConfig from pip._internal.utils import deprecation deprecation.install_warning_logger() basicConfig() deprecation....
<commit_before>import textwrap def test_environ(script, tmpdir): """$PYTHONWARNINGS was added in python2.7""" demo = tmpdir.joinpath('warnings_demo.py') demo.write_text(textwrap.dedent(''' from logging import basicConfig from pip._internal.utils import deprecation deprecation.inst...
import textwrap def test_environ(script, tmpdir): demo = tmpdir.joinpath('warnings_demo.py') demo.write_text(textwrap.dedent(''' from logging import basicConfig from pip._internal.utils import deprecation deprecation.install_warning_logger() basicConfig() deprecation....
import textwrap def test_environ(script, tmpdir): """$PYTHONWARNINGS was added in python2.7""" demo = tmpdir.joinpath('warnings_demo.py') demo.write_text(textwrap.dedent(''' from logging import basicConfig from pip._internal.utils import deprecation deprecation.install_warning_log...
<commit_before>import textwrap def test_environ(script, tmpdir): """$PYTHONWARNINGS was added in python2.7""" demo = tmpdir.joinpath('warnings_demo.py') demo.write_text(textwrap.dedent(''' from logging import basicConfig from pip._internal.utils import deprecation deprecation.inst...
1e8b52b19bb6ff8ce3b635302e032349b0280379
tensorflow_zero_out/python/ops/zero_out_ops_test.py
tensorflow_zero_out/python/ops/zero_out_ops_test.py
# Copyright 2018 The Sonnet Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
# Copyright 2018 The Sonnet Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
Fix zero_out test for 2.0
Fix zero_out test for 2.0
Python
apache-2.0
tensorflow/custom-op,tensorflow/custom-op,tensorflow/custom-op
# Copyright 2018 The Sonnet Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
# Copyright 2018 The Sonnet Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
<commit_before># Copyright 2018 The Sonnet Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required ...
# Copyright 2018 The Sonnet Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
# Copyright 2018 The Sonnet Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
<commit_before># Copyright 2018 The Sonnet Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required ...
41f244171011a1bbb4a2a77e779979ba8cc9ecb5
zeus/api/resources/auth_index.py
zeus/api/resources/auth_index.py
import json from zeus import auth from zeus.api import client from zeus.exceptions import ApiError from zeus.models import Email, Identity from .base import Resource from ..schemas import EmailSchema, IdentitySchema, UserSchema emails_schema = EmailSchema(many=True, strict=True) identities_schema = IdentitySchema(ma...
import json from zeus import auth from zeus.api import client from zeus.exceptions import ApiError from zeus.models import Email, Identity from .base import Resource from ..schemas import EmailSchema, IdentitySchema, UserSchema emails_schema = EmailSchema(many=True, strict=True) identities_schema = IdentitySchema(ma...
Fix auth API usage (this is why we wait for CI)
Fix auth API usage (this is why we wait for CI)
Python
apache-2.0
getsentry/zeus,getsentry/zeus,getsentry/zeus,getsentry/zeus
import json from zeus import auth from zeus.api import client from zeus.exceptions import ApiError from zeus.models import Email, Identity from .base import Resource from ..schemas import EmailSchema, IdentitySchema, UserSchema emails_schema = EmailSchema(many=True, strict=True) identities_schema = IdentitySchema(ma...
import json from zeus import auth from zeus.api import client from zeus.exceptions import ApiError from zeus.models import Email, Identity from .base import Resource from ..schemas import EmailSchema, IdentitySchema, UserSchema emails_schema = EmailSchema(many=True, strict=True) identities_schema = IdentitySchema(ma...
<commit_before>import json from zeus import auth from zeus.api import client from zeus.exceptions import ApiError from zeus.models import Email, Identity from .base import Resource from ..schemas import EmailSchema, IdentitySchema, UserSchema emails_schema = EmailSchema(many=True, strict=True) identities_schema = Id...
import json from zeus import auth from zeus.api import client from zeus.exceptions import ApiError from zeus.models import Email, Identity from .base import Resource from ..schemas import EmailSchema, IdentitySchema, UserSchema emails_schema = EmailSchema(many=True, strict=True) identities_schema = IdentitySchema(ma...
import json from zeus import auth from zeus.api import client from zeus.exceptions import ApiError from zeus.models import Email, Identity from .base import Resource from ..schemas import EmailSchema, IdentitySchema, UserSchema emails_schema = EmailSchema(many=True, strict=True) identities_schema = IdentitySchema(ma...
<commit_before>import json from zeus import auth from zeus.api import client from zeus.exceptions import ApiError from zeus.models import Email, Identity from .base import Resource from ..schemas import EmailSchema, IdentitySchema, UserSchema emails_schema = EmailSchema(many=True, strict=True) identities_schema = Id...
218595e30388d88b649118bb20888c980ce67139
urwid/tests/util.py
urwid/tests/util.py
import urwid class SelectableText(urwid.Text): def selectable(self): return 1 def keypress(self, size, key): return key
import urwid class SelectableText(urwid.Text): def selectable(self): return True def keypress(self, size, key): return key
Use True instead of 1
Use True instead of 1
Python
lgpl-2.1
wardi/urwid,wardi/urwid,inducer/urwid,inducer/urwid,wardi/urwid,urwid/urwid,urwid/urwid,urwid/urwid,inducer/urwid
import urwid class SelectableText(urwid.Text): def selectable(self): return 1 def keypress(self, size, key): return key Use True instead of 1
import urwid class SelectableText(urwid.Text): def selectable(self): return True def keypress(self, size, key): return key
<commit_before>import urwid class SelectableText(urwid.Text): def selectable(self): return 1 def keypress(self, size, key): return key <commit_msg>Use True instead of 1<commit_after>
import urwid class SelectableText(urwid.Text): def selectable(self): return True def keypress(self, size, key): return key
import urwid class SelectableText(urwid.Text): def selectable(self): return 1 def keypress(self, size, key): return key Use True instead of 1import urwid class SelectableText(urwid.Text): def selectable(self): return True def keypress(self, size, key): return key
<commit_before>import urwid class SelectableText(urwid.Text): def selectable(self): return 1 def keypress(self, size, key): return key <commit_msg>Use True instead of 1<commit_after>import urwid class SelectableText(urwid.Text): def selectable(self): return True def keypress(...
de9c5235d379fcebbfc801fb23c3b9aa2f1fe4e8
benchmark/datasets/musicbrainz/extract-random-queries.py
benchmark/datasets/musicbrainz/extract-random-queries.py
#!/usr/bin/env python """ Script to extract and then generate random queries for fuzzy searching. Usage: ./extract-random-queries.py <infile> <outfile> """ import os from random import choice, randint, random import string from subprocess import call import sys from tempfile import mkstemp __author__ = "Uwe L. K...
#!/usr/bin/env python """ Script to extract and then generate random queries for fuzzy searching. Usage: ./extract-random-queries.py <infile> <outfile> """ import codecs import os from random import choice, randint, random import string from subprocess import call import sys from tempfile import mkstemp __author...
Fix query extractor UTF-8 handling
Fix query extractor UTF-8 handling
Python
mit
xhochy/libfuzzymatch,xhochy/libfuzzymatch
#!/usr/bin/env python """ Script to extract and then generate random queries for fuzzy searching. Usage: ./extract-random-queries.py <infile> <outfile> """ import os from random import choice, randint, random import string from subprocess import call import sys from tempfile import mkstemp __author__ = "Uwe L. K...
#!/usr/bin/env python """ Script to extract and then generate random queries for fuzzy searching. Usage: ./extract-random-queries.py <infile> <outfile> """ import codecs import os from random import choice, randint, random import string from subprocess import call import sys from tempfile import mkstemp __author...
<commit_before>#!/usr/bin/env python """ Script to extract and then generate random queries for fuzzy searching. Usage: ./extract-random-queries.py <infile> <outfile> """ import os from random import choice, randint, random import string from subprocess import call import sys from tempfile import mkstemp __autho...
#!/usr/bin/env python """ Script to extract and then generate random queries for fuzzy searching. Usage: ./extract-random-queries.py <infile> <outfile> """ import codecs import os from random import choice, randint, random import string from subprocess import call import sys from tempfile import mkstemp __author...
#!/usr/bin/env python """ Script to extract and then generate random queries for fuzzy searching. Usage: ./extract-random-queries.py <infile> <outfile> """ import os from random import choice, randint, random import string from subprocess import call import sys from tempfile import mkstemp __author__ = "Uwe L. K...
<commit_before>#!/usr/bin/env python """ Script to extract and then generate random queries for fuzzy searching. Usage: ./extract-random-queries.py <infile> <outfile> """ import os from random import choice, randint, random import string from subprocess import call import sys from tempfile import mkstemp __autho...
7d50ca9b29a71a9cda2a5b78a0cb392108b217d5
roche/scripts/xml-server-load.py
roche/scripts/xml-server-load.py
# coding=utf-8 # # Must be called in roche root dir # import os from os import walk from eulexistdb.db import ExistDB # # Timeout higher? # xmldb = ExistDB('http://54.220.97.75:8080/exist') xmldb.createCollection('docker', True) xmldb.createCollection('docker/texts', True) os.chdir('../dublin-store') for (dirpa...
# coding=utf-8 # # Must be called in roche root dir # import os from os import walk from eulexistdb.db import ExistDB # # Timeout higher? # # # http://username:[email protected]:8080/exist # xmldb = ExistDB('http://54.220.97.75:8080/exist') xmldb.createCollection('docker', True) xmldb.createCollection('docke...
Add comment for full url with non guest user
Add comment for full url with non guest user
Python
mit
beijingren/roche-website,beijingren/roche-website,beijingren/roche-website,beijingren/roche-website
# coding=utf-8 # # Must be called in roche root dir # import os from os import walk from eulexistdb.db import ExistDB # # Timeout higher? # xmldb = ExistDB('http://54.220.97.75:8080/exist') xmldb.createCollection('docker', True) xmldb.createCollection('docker/texts', True) os.chdir('../dublin-store') for (dirpa...
# coding=utf-8 # # Must be called in roche root dir # import os from os import walk from eulexistdb.db import ExistDB # # Timeout higher? # # # http://username:[email protected]:8080/exist # xmldb = ExistDB('http://54.220.97.75:8080/exist') xmldb.createCollection('docker', True) xmldb.createCollection('docke...
<commit_before># coding=utf-8 # # Must be called in roche root dir # import os from os import walk from eulexistdb.db import ExistDB # # Timeout higher? # xmldb = ExistDB('http://54.220.97.75:8080/exist') xmldb.createCollection('docker', True) xmldb.createCollection('docker/texts', True) os.chdir('../dublin-stor...
# coding=utf-8 # # Must be called in roche root dir # import os from os import walk from eulexistdb.db import ExistDB # # Timeout higher? # # # http://username:[email protected]:8080/exist # xmldb = ExistDB('http://54.220.97.75:8080/exist') xmldb.createCollection('docker', True) xmldb.createCollection('docke...
# coding=utf-8 # # Must be called in roche root dir # import os from os import walk from eulexistdb.db import ExistDB # # Timeout higher? # xmldb = ExistDB('http://54.220.97.75:8080/exist') xmldb.createCollection('docker', True) xmldb.createCollection('docker/texts', True) os.chdir('../dublin-store') for (dirpa...
<commit_before># coding=utf-8 # # Must be called in roche root dir # import os from os import walk from eulexistdb.db import ExistDB # # Timeout higher? # xmldb = ExistDB('http://54.220.97.75:8080/exist') xmldb.createCollection('docker', True) xmldb.createCollection('docker/texts', True) os.chdir('../dublin-stor...
12352c1f7c9751727b8bd98ece576f9d690b520e
corehq/apps/export/migrations/0008_auto_20190906_2008.py
corehq/apps/export/migrations/0008_auto_20190906_2008.py
# -*- coding: utf-8 -*- # Generated by Django 1.11.23 on 2019-09-06 20:08 from __future__ import unicode_literals from django.db import migrations from corehq.apps.es.aggregations import ( AggregationTerm, NestedTermAggregationsHelper, ) from corehq.apps.es.ledgers import LedgerES from corehq.apps.export.mode...
# -*- coding: utf-8 -*- # Generated by Django 1.11.23 on 2019-09-06 20:08 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): """ This migration used to contain some initialization for LedgerSectionEntry. At the time it was run, this model was ...
Remove data migration from migration file
Remove data migration from migration file
Python
bsd-3-clause
dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq
# -*- coding: utf-8 -*- # Generated by Django 1.11.23 on 2019-09-06 20:08 from __future__ import unicode_literals from django.db import migrations from corehq.apps.es.aggregations import ( AggregationTerm, NestedTermAggregationsHelper, ) from corehq.apps.es.ledgers import LedgerES from corehq.apps.export.mode...
# -*- coding: utf-8 -*- # Generated by Django 1.11.23 on 2019-09-06 20:08 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): """ This migration used to contain some initialization for LedgerSectionEntry. At the time it was run, this model was ...
<commit_before># -*- coding: utf-8 -*- # Generated by Django 1.11.23 on 2019-09-06 20:08 from __future__ import unicode_literals from django.db import migrations from corehq.apps.es.aggregations import ( AggregationTerm, NestedTermAggregationsHelper, ) from corehq.apps.es.ledgers import LedgerES from corehq.a...
# -*- coding: utf-8 -*- # Generated by Django 1.11.23 on 2019-09-06 20:08 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): """ This migration used to contain some initialization for LedgerSectionEntry. At the time it was run, this model was ...
# -*- coding: utf-8 -*- # Generated by Django 1.11.23 on 2019-09-06 20:08 from __future__ import unicode_literals from django.db import migrations from corehq.apps.es.aggregations import ( AggregationTerm, NestedTermAggregationsHelper, ) from corehq.apps.es.ledgers import LedgerES from corehq.apps.export.mode...
<commit_before># -*- coding: utf-8 -*- # Generated by Django 1.11.23 on 2019-09-06 20:08 from __future__ import unicode_literals from django.db import migrations from corehq.apps.es.aggregations import ( AggregationTerm, NestedTermAggregationsHelper, ) from corehq.apps.es.ledgers import LedgerES from corehq.a...
281e686d9599b06b718f2bf653921d51750fc00f
purchase_supplier_minimum_order/models/__init__.py
purchase_supplier_minimum_order/models/__init__.py
# -*- coding: utf-8 -*- ############################################################################## # # Set minimum order on suppliers # Copyright (C) 2016 OpusVL (<http://opusvl.com/>) # # 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 -*- ############################################################################## # # Set minimum order on suppliers # Copyright (C) 2016 OpusVL (<http://opusvl.com/>) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public Lic...
Add mode switch to res.company
Add mode switch to res.company
Python
agpl-3.0
OpusVL/odoo-purchase-min-order
# -*- coding: utf-8 -*- ############################################################################## # # Set minimum order on suppliers # Copyright (C) 2016 OpusVL (<http://opusvl.com/>) # # 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 -*- ############################################################################## # # Set minimum order on suppliers # Copyright (C) 2016 OpusVL (<http://opusvl.com/>) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public Lic...
<commit_before># -*- coding: utf-8 -*- ############################################################################## # # Set minimum order on suppliers # Copyright (C) 2016 OpusVL (<http://opusvl.com/>) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero Gen...
# -*- coding: utf-8 -*- ############################################################################## # # Set minimum order on suppliers # Copyright (C) 2016 OpusVL (<http://opusvl.com/>) # # 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 -*- ############################################################################## # # Set minimum order on suppliers # Copyright (C) 2016 OpusVL (<http://opusvl.com/>) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public Lic...
<commit_before># -*- coding: utf-8 -*- ############################################################################## # # Set minimum order on suppliers # Copyright (C) 2016 OpusVL (<http://opusvl.com/>) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero Gen...
41eff3cfcbf6e7615353e0e5126b729f956a89aa
pajbot/migration_revisions/db/0002_create_index_on_user_points.py
pajbot/migration_revisions/db/0002_create_index_on_user_points.py
def up(cursor, context): cursor.execute("CREATE INDEX ON \"user\"(points)")
def up(cursor, context): # the index on user(points) caches/indexes the table, ordered by points # so queries like the top 30 point farmers can skip sorting the entire # user table by points, and just instead use the sorting given by the # user(points) index. # e.g. compare (before and after creati...
Comment on the create index revision
Comment on the create index revision
Python
mit
pajlada/tyggbot,pajlada/tyggbot,pajlada/pajbot,pajlada/pajbot,pajlada/tyggbot,pajlada/pajbot,pajlada/pajbot,pajlada/tyggbot
def up(cursor, context): cursor.execute("CREATE INDEX ON \"user\"(points)") Comment on the create index revision
def up(cursor, context): # the index on user(points) caches/indexes the table, ordered by points # so queries like the top 30 point farmers can skip sorting the entire # user table by points, and just instead use the sorting given by the # user(points) index. # e.g. compare (before and after creati...
<commit_before>def up(cursor, context): cursor.execute("CREATE INDEX ON \"user\"(points)") <commit_msg>Comment on the create index revision<commit_after>
def up(cursor, context): # the index on user(points) caches/indexes the table, ordered by points # so queries like the top 30 point farmers can skip sorting the entire # user table by points, and just instead use the sorting given by the # user(points) index. # e.g. compare (before and after creati...
def up(cursor, context): cursor.execute("CREATE INDEX ON \"user\"(points)") Comment on the create index revisiondef up(cursor, context): # the index on user(points) caches/indexes the table, ordered by points # so queries like the top 30 point farmers can skip sorting the entire # user table by points, ...
<commit_before>def up(cursor, context): cursor.execute("CREATE INDEX ON \"user\"(points)") <commit_msg>Comment on the create index revision<commit_after>def up(cursor, context): # the index on user(points) caches/indexes the table, ordered by points # so queries like the top 30 point farmers can skip sortin...
aa473aed5ef3fdf200623e39ae0526e437a85575
pun.py
pun.py
#!/usr/bin/python # imports from pprint import pprint import urllib2 import socket import sys #import re from bs4 import BeautifulSoup from pymongo import MongoClient # read the html content of the random pun page into a string try: html_content = urllib2.urlopen('http://www.punoftheday.com/cgi-bin/randompun.pl', t...
#!/usr/bin/python # imports from pprint import pprint import urllib2 import socket import sys #import re from bs4 import BeautifulSoup from pymongo import MongoClient # read the html content of the random pun page into a string try: html_content = urllib2.urlopen('http://www.punoftheday.com/cgi-bin/randompun.pl', t...
Disable mongo server for now
Disable mongo server for now
Python
mit
andrewmacheret/pun-server,andrewmacheret/pun-server,andrewmacheret/pun-server
#!/usr/bin/python # imports from pprint import pprint import urllib2 import socket import sys #import re from bs4 import BeautifulSoup from pymongo import MongoClient # read the html content of the random pun page into a string try: html_content = urllib2.urlopen('http://www.punoftheday.com/cgi-bin/randompun.pl', t...
#!/usr/bin/python # imports from pprint import pprint import urllib2 import socket import sys #import re from bs4 import BeautifulSoup from pymongo import MongoClient # read the html content of the random pun page into a string try: html_content = urllib2.urlopen('http://www.punoftheday.com/cgi-bin/randompun.pl', t...
<commit_before>#!/usr/bin/python # imports from pprint import pprint import urllib2 import socket import sys #import re from bs4 import BeautifulSoup from pymongo import MongoClient # read the html content of the random pun page into a string try: html_content = urllib2.urlopen('http://www.punoftheday.com/cgi-bin/r...
#!/usr/bin/python # imports from pprint import pprint import urllib2 import socket import sys #import re from bs4 import BeautifulSoup from pymongo import MongoClient # read the html content of the random pun page into a string try: html_content = urllib2.urlopen('http://www.punoftheday.com/cgi-bin/randompun.pl', t...
#!/usr/bin/python # imports from pprint import pprint import urllib2 import socket import sys #import re from bs4 import BeautifulSoup from pymongo import MongoClient # read the html content of the random pun page into a string try: html_content = urllib2.urlopen('http://www.punoftheday.com/cgi-bin/randompun.pl', t...
<commit_before>#!/usr/bin/python # imports from pprint import pprint import urllib2 import socket import sys #import re from bs4 import BeautifulSoup from pymongo import MongoClient # read the html content of the random pun page into a string try: html_content = urllib2.urlopen('http://www.punoftheday.com/cgi-bin/r...
0683e4fb0431563758d93b39d102d1c634a4535b
run.py
run.py
#!/usr/bin/env python import importlib import mongoengine from eve import Eve from eve_mongoengine import EveMongoengine from qiprofile_rest import models # The application. app = Eve() # The MongoEngine ORM extension. ext = EveMongoengine(app) # Register the model non-embedded documdent classes. ext.add_model(mode...
#!/usr/bin/env python import importlib import mongoengine from eve import Eve from eve_mongoengine import EveMongoengine from qiprofile_rest import models # The application. app = Eve() # The MongoEngine ORM extension. ext = EveMongoengine(app) # Register the model non-embedded documdent classes. ext.add_model(mode...
Change the subject url from /quip/subjects to /quip/subject.
Change the subject url from /quip/subjects to /quip/subject.
Python
bsd-2-clause
ohsu-qin/qiprofile-rest,ohsu-qin/qirest
#!/usr/bin/env python import importlib import mongoengine from eve import Eve from eve_mongoengine import EveMongoengine from qiprofile_rest import models # The application. app = Eve() # The MongoEngine ORM extension. ext = EveMongoengine(app) # Register the model non-embedded documdent classes. ext.add_model(mode...
#!/usr/bin/env python import importlib import mongoengine from eve import Eve from eve_mongoengine import EveMongoengine from qiprofile_rest import models # The application. app = Eve() # The MongoEngine ORM extension. ext = EveMongoengine(app) # Register the model non-embedded documdent classes. ext.add_model(mode...
<commit_before>#!/usr/bin/env python import importlib import mongoengine from eve import Eve from eve_mongoengine import EveMongoengine from qiprofile_rest import models # The application. app = Eve() # The MongoEngine ORM extension. ext = EveMongoengine(app) # Register the model non-embedded documdent classes. ext...
#!/usr/bin/env python import importlib import mongoengine from eve import Eve from eve_mongoengine import EveMongoengine from qiprofile_rest import models # The application. app = Eve() # The MongoEngine ORM extension. ext = EveMongoengine(app) # Register the model non-embedded documdent classes. ext.add_model(mode...
#!/usr/bin/env python import importlib import mongoengine from eve import Eve from eve_mongoengine import EveMongoengine from qiprofile_rest import models # The application. app = Eve() # The MongoEngine ORM extension. ext = EveMongoengine(app) # Register the model non-embedded documdent classes. ext.add_model(mode...
<commit_before>#!/usr/bin/env python import importlib import mongoengine from eve import Eve from eve_mongoengine import EveMongoengine from qiprofile_rest import models # The application. app = Eve() # The MongoEngine ORM extension. ext = EveMongoengine(app) # Register the model non-embedded documdent classes. ext...
11fde526c9d25c0fb9ef678d4264a52e4845a518
pidman/pid/migrations/0002_pid_sequence_initial_value.py
pidman/pid/migrations/0002_pid_sequence_initial_value.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models from pidman.pid.noid import decode_noid from pidman.pid import models as pid_models def pid_sequence_lastvalue(apps, schema_editor): # if the database has existing pids, update the sequence last value # s...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models from pidman.pid.noid import decode_noid from pidman.pid import models as pid_models def pid_sequence_lastvalue(apps, schema_editor): # if the database has existing pids, update the sequence last value # s...
Update pid sequence so it will work even if sequence already exists
Update pid sequence so it will work even if sequence already exists
Python
apache-2.0
emory-libraries/pidman,emory-libraries/pidman
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models from pidman.pid.noid import decode_noid from pidman.pid import models as pid_models def pid_sequence_lastvalue(apps, schema_editor): # if the database has existing pids, update the sequence last value # s...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models from pidman.pid.noid import decode_noid from pidman.pid import models as pid_models def pid_sequence_lastvalue(apps, schema_editor): # if the database has existing pids, update the sequence last value # s...
<commit_before># -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models from pidman.pid.noid import decode_noid from pidman.pid import models as pid_models def pid_sequence_lastvalue(apps, schema_editor): # if the database has existing pids, update the sequence las...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models from pidman.pid.noid import decode_noid from pidman.pid import models as pid_models def pid_sequence_lastvalue(apps, schema_editor): # if the database has existing pids, update the sequence last value # s...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models from pidman.pid.noid import decode_noid from pidman.pid import models as pid_models def pid_sequence_lastvalue(apps, schema_editor): # if the database has existing pids, update the sequence last value # s...
<commit_before># -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models from pidman.pid.noid import decode_noid from pidman.pid import models as pid_models def pid_sequence_lastvalue(apps, schema_editor): # if the database has existing pids, update the sequence las...
abe6f3430efb7291054d96a51cc4a290e0bd7a59
osf/migrations/0224_population_registration_subscription_notifications.py
osf/migrations/0224_population_registration_subscription_notifications.py
# -*- coding: utf-8 -*- # Generated by Django 1.11.28 on 2020-10-26 18:43 from __future__ import unicode_literals from django.db import migrations, models from osf.management.commands.add_notification_subscription import add_reviews_notification_setting from osf.management.commands.populate_registration_provider_noti...
# -*- coding: utf-8 -*- # Generated by Django 1.11.28 on 2020-10-26 18:43 from __future__ import unicode_literals from django.db import migrations, models from osf.management.commands.add_notification_subscription import add_reviews_notification_setting from osf.management.commands.populate_registration_provider_noti...
Remove call to run management commands that we didn't use during migration
Remove call to run management commands that we didn't use during migration
Python
apache-2.0
brianjgeiger/osf.io,mfraezz/osf.io,baylee-d/osf.io,brianjgeiger/osf.io,adlius/osf.io,CenterForOpenScience/osf.io,cslzchen/osf.io,Johnetordoff/osf.io,baylee-d/osf.io,mfraezz/osf.io,Johnetordoff/osf.io,mfraezz/osf.io,mfraezz/osf.io,adlius/osf.io,felliott/osf.io,adlius/osf.io,brianjgeiger/osf.io,brianjgeiger/osf.io,fellio...
# -*- coding: utf-8 -*- # Generated by Django 1.11.28 on 2020-10-26 18:43 from __future__ import unicode_literals from django.db import migrations, models from osf.management.commands.add_notification_subscription import add_reviews_notification_setting from osf.management.commands.populate_registration_provider_noti...
# -*- coding: utf-8 -*- # Generated by Django 1.11.28 on 2020-10-26 18:43 from __future__ import unicode_literals from django.db import migrations, models from osf.management.commands.add_notification_subscription import add_reviews_notification_setting from osf.management.commands.populate_registration_provider_noti...
<commit_before># -*- coding: utf-8 -*- # Generated by Django 1.11.28 on 2020-10-26 18:43 from __future__ import unicode_literals from django.db import migrations, models from osf.management.commands.add_notification_subscription import add_reviews_notification_setting from osf.management.commands.populate_registratio...
# -*- coding: utf-8 -*- # Generated by Django 1.11.28 on 2020-10-26 18:43 from __future__ import unicode_literals from django.db import migrations, models from osf.management.commands.add_notification_subscription import add_reviews_notification_setting from osf.management.commands.populate_registration_provider_noti...
# -*- coding: utf-8 -*- # Generated by Django 1.11.28 on 2020-10-26 18:43 from __future__ import unicode_literals from django.db import migrations, models from osf.management.commands.add_notification_subscription import add_reviews_notification_setting from osf.management.commands.populate_registration_provider_noti...
<commit_before># -*- coding: utf-8 -*- # Generated by Django 1.11.28 on 2020-10-26 18:43 from __future__ import unicode_literals from django.db import migrations, models from osf.management.commands.add_notification_subscription import add_reviews_notification_setting from osf.management.commands.populate_registratio...
78f049ce9713dabd3eec544494dadcab7ff93d4c
sui_hei/templatetags/markdown.py
sui_hei/templatetags/markdown.py
import re from bs4 import BeautifulSoup from django import template from django.template.defaultfilters import stringfilter from markdown import markdown as md register = template.Library() @stringfilter @register.filter(is_safe=True) def text2md(value): ''' convert markdown-like text to html. strip hea...
import re from bs4 import BeautifulSoup from django import template from django.template.defaultfilters import stringfilter from markdown import markdown as md from markdown.extensions.headerid import HeaderIdExtension register = template.Library() @stringfilter @register.filter(is_safe=True) def text2md(value): ...
Add header id extension for github preferences
Add header id extension for github preferences
Python
mit
heyrict/cindy,heyrict/cindy,heyrict/cindy
import re from bs4 import BeautifulSoup from django import template from django.template.defaultfilters import stringfilter from markdown import markdown as md register = template.Library() @stringfilter @register.filter(is_safe=True) def text2md(value): ''' convert markdown-like text to html. strip hea...
import re from bs4 import BeautifulSoup from django import template from django.template.defaultfilters import stringfilter from markdown import markdown as md from markdown.extensions.headerid import HeaderIdExtension register = template.Library() @stringfilter @register.filter(is_safe=True) def text2md(value): ...
<commit_before>import re from bs4 import BeautifulSoup from django import template from django.template.defaultfilters import stringfilter from markdown import markdown as md register = template.Library() @stringfilter @register.filter(is_safe=True) def text2md(value): ''' convert markdown-like text to html...
import re from bs4 import BeautifulSoup from django import template from django.template.defaultfilters import stringfilter from markdown import markdown as md from markdown.extensions.headerid import HeaderIdExtension register = template.Library() @stringfilter @register.filter(is_safe=True) def text2md(value): ...
import re from bs4 import BeautifulSoup from django import template from django.template.defaultfilters import stringfilter from markdown import markdown as md register = template.Library() @stringfilter @register.filter(is_safe=True) def text2md(value): ''' convert markdown-like text to html. strip hea...
<commit_before>import re from bs4 import BeautifulSoup from django import template from django.template.defaultfilters import stringfilter from markdown import markdown as md register = template.Library() @stringfilter @register.filter(is_safe=True) def text2md(value): ''' convert markdown-like text to html...
c258b1995bdb870b3818a3dca402b86f2bb85fe9
chmvh_website/gallery/management/commands/generatethumbnails.py
chmvh_website/gallery/management/commands/generatethumbnails.py
from django.core.management.base import BaseCommand from gallery import models from gallery.tasks import create_thumbnail class Command(BaseCommand): help = 'Generates thumbnails for the gallery images' def handle(self, *args, **kwargs): patients = models.Patient.objects.filter(thumbnail=None) ...
from django.core.management.base import BaseCommand from gallery import models from gallery.tasks import create_thumbnail class Command(BaseCommand): help = 'Generates thumbnails for gallery images without thumbnails' def add_arguments(self, parser): parser.add_argument( '--overwrite', ...
Add option to overwrite existing thumbnails.
Add option to overwrite existing thumbnails.
Python
mit
cdriehuys/chmvh-website,cdriehuys/chmvh-website,cdriehuys/chmvh-website
from django.core.management.base import BaseCommand from gallery import models from gallery.tasks import create_thumbnail class Command(BaseCommand): help = 'Generates thumbnails for the gallery images' def handle(self, *args, **kwargs): patients = models.Patient.objects.filter(thumbnail=None) ...
from django.core.management.base import BaseCommand from gallery import models from gallery.tasks import create_thumbnail class Command(BaseCommand): help = 'Generates thumbnails for gallery images without thumbnails' def add_arguments(self, parser): parser.add_argument( '--overwrite', ...
<commit_before>from django.core.management.base import BaseCommand from gallery import models from gallery.tasks import create_thumbnail class Command(BaseCommand): help = 'Generates thumbnails for the gallery images' def handle(self, *args, **kwargs): patients = models.Patient.objects.filter(thumbn...
from django.core.management.base import BaseCommand from gallery import models from gallery.tasks import create_thumbnail class Command(BaseCommand): help = 'Generates thumbnails for gallery images without thumbnails' def add_arguments(self, parser): parser.add_argument( '--overwrite', ...
from django.core.management.base import BaseCommand from gallery import models from gallery.tasks import create_thumbnail class Command(BaseCommand): help = 'Generates thumbnails for the gallery images' def handle(self, *args, **kwargs): patients = models.Patient.objects.filter(thumbnail=None) ...
<commit_before>from django.core.management.base import BaseCommand from gallery import models from gallery.tasks import create_thumbnail class Command(BaseCommand): help = 'Generates thumbnails for the gallery images' def handle(self, *args, **kwargs): patients = models.Patient.objects.filter(thumbn...
4c88da91221899c22cfe9030f40cbb4e0b3e904d
{{project.repo_name}}/tests/test_{{project.repo_name}}.py
{{project.repo_name}}/tests/test_{{project.repo_name}}.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ test_{{ project.repo_name }} ------------ Tests for `{{ project.repo_name }}` module. """ import os import shutil import unittest from {{ project.repo_name }} import {{ project.repo_name }} class TestComplexity(unittest.TestCase): def setUp(self): pas...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ test_{{ project.repo_name }} ------------ Tests for `{{ project.repo_name }}` module. """ import os import shutil import unittest from {{ project.repo_name }} import {{ project.repo_name }} class Test{{ project.repo_name|capitalize }}(unittest.TestCase): def ...
Remove hardcoded name of TestCase.
Remove hardcoded name of TestCase.
Python
bsd-2-clause
rockymeza/cookiecutter-djangoapp,aeroaks/cookiecutter-pyqt4,rockymeza/cookiecutter-djangoapp
#!/usr/bin/env python # -*- coding: utf-8 -*- """ test_{{ project.repo_name }} ------------ Tests for `{{ project.repo_name }}` module. """ import os import shutil import unittest from {{ project.repo_name }} import {{ project.repo_name }} class TestComplexity(unittest.TestCase): def setUp(self): pas...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ test_{{ project.repo_name }} ------------ Tests for `{{ project.repo_name }}` module. """ import os import shutil import unittest from {{ project.repo_name }} import {{ project.repo_name }} class Test{{ project.repo_name|capitalize }}(unittest.TestCase): def ...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- """ test_{{ project.repo_name }} ------------ Tests for `{{ project.repo_name }}` module. """ import os import shutil import unittest from {{ project.repo_name }} import {{ project.repo_name }} class TestComplexity(unittest.TestCase): def setUp(sel...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ test_{{ project.repo_name }} ------------ Tests for `{{ project.repo_name }}` module. """ import os import shutil import unittest from {{ project.repo_name }} import {{ project.repo_name }} class Test{{ project.repo_name|capitalize }}(unittest.TestCase): def ...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ test_{{ project.repo_name }} ------------ Tests for `{{ project.repo_name }}` module. """ import os import shutil import unittest from {{ project.repo_name }} import {{ project.repo_name }} class TestComplexity(unittest.TestCase): def setUp(self): pas...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- """ test_{{ project.repo_name }} ------------ Tests for `{{ project.repo_name }}` module. """ import os import shutil import unittest from {{ project.repo_name }} import {{ project.repo_name }} class TestComplexity(unittest.TestCase): def setUp(sel...
404f300b9e8ce33149324888a42ce22fb5c00dc0
api/bioguide/management/commands/import_bioguide.py
api/bioguide/management/commands/import_bioguide.py
import csv import sys from django.core.management.base import BaseCommand, CommandError from bioguide.models import Legislator import name_tools class Command(BaseCommand): def handle(self, *args, **options): fields = ['bioguide_id', 'name', 'birth_death', 'position', 'party', 'state', 'congress', ] ...
import csv import sys import urllib2 from django.core.management.base import BaseCommand, CommandError from bioguide.models import Legislator import name_tools from lxml.html import document_fromstring class Command(BaseCommand): def handle(self, *args, **options): fields = ['bioguide_id', 'name', 'bir...
Update bioguide importer to scrape data from bioguide.congress.gov
Update bioguide importer to scrape data from bioguide.congress.gov
Python
bsd-3-clause
sunlightlabs/Capitol-Words,sunlightlabs/Capitol-Words,sunlightlabs/Capitol-Words,sunlightlabs/Capitol-Words,propublica/Capitol-Words,sunlightlabs/Capitol-Words,propublica/Capitol-Words,sunlightlabs/Capitol-Words,propublica/Capitol-Words,sunlightlabs/Capitol-Words,propublica/Capitol-Words
import csv import sys from django.core.management.base import BaseCommand, CommandError from bioguide.models import Legislator import name_tools class Command(BaseCommand): def handle(self, *args, **options): fields = ['bioguide_id', 'name', 'birth_death', 'position', 'party', 'state', 'congress', ] ...
import csv import sys import urllib2 from django.core.management.base import BaseCommand, CommandError from bioguide.models import Legislator import name_tools from lxml.html import document_fromstring class Command(BaseCommand): def handle(self, *args, **options): fields = ['bioguide_id', 'name', 'bir...
<commit_before>import csv import sys from django.core.management.base import BaseCommand, CommandError from bioguide.models import Legislator import name_tools class Command(BaseCommand): def handle(self, *args, **options): fields = ['bioguide_id', 'name', 'birth_death', 'position', 'party', 'state', 'c...
import csv import sys import urllib2 from django.core.management.base import BaseCommand, CommandError from bioguide.models import Legislator import name_tools from lxml.html import document_fromstring class Command(BaseCommand): def handle(self, *args, **options): fields = ['bioguide_id', 'name', 'bir...
import csv import sys from django.core.management.base import BaseCommand, CommandError from bioguide.models import Legislator import name_tools class Command(BaseCommand): def handle(self, *args, **options): fields = ['bioguide_id', 'name', 'birth_death', 'position', 'party', 'state', 'congress', ] ...
<commit_before>import csv import sys from django.core.management.base import BaseCommand, CommandError from bioguide.models import Legislator import name_tools class Command(BaseCommand): def handle(self, *args, **options): fields = ['bioguide_id', 'name', 'birth_death', 'position', 'party', 'state', 'c...
c23c70dd10797a162efb137a53eec53c6ce554c7
deflect/management/commands/checkurls.py
deflect/management/commands/checkurls.py
from django.core.management.base import NoArgsCommand from django.core.urlresolvers import reverse import requests from deflect.models import ShortURL class Command(NoArgsCommand): help = "Validate short URL redirect targets" def handle_noargs(self, *args, **options): for url in ShortURL.objects.al...
from django.contrib.sites.models import Site from django.core.management.base import NoArgsCommand from django.core.urlresolvers import reverse import requests from deflect.models import ShortURL class Command(NoArgsCommand): help = "Validate short URL redirect targets" def handle_noargs(self, *args, **opt...
Print full URL for admin edit link
Print full URL for admin edit link
Python
bsd-3-clause
jbittel/django-deflect
from django.core.management.base import NoArgsCommand from django.core.urlresolvers import reverse import requests from deflect.models import ShortURL class Command(NoArgsCommand): help = "Validate short URL redirect targets" def handle_noargs(self, *args, **options): for url in ShortURL.objects.al...
from django.contrib.sites.models import Site from django.core.management.base import NoArgsCommand from django.core.urlresolvers import reverse import requests from deflect.models import ShortURL class Command(NoArgsCommand): help = "Validate short URL redirect targets" def handle_noargs(self, *args, **opt...
<commit_before>from django.core.management.base import NoArgsCommand from django.core.urlresolvers import reverse import requests from deflect.models import ShortURL class Command(NoArgsCommand): help = "Validate short URL redirect targets" def handle_noargs(self, *args, **options): for url in Shor...
from django.contrib.sites.models import Site from django.core.management.base import NoArgsCommand from django.core.urlresolvers import reverse import requests from deflect.models import ShortURL class Command(NoArgsCommand): help = "Validate short URL redirect targets" def handle_noargs(self, *args, **opt...
from django.core.management.base import NoArgsCommand from django.core.urlresolvers import reverse import requests from deflect.models import ShortURL class Command(NoArgsCommand): help = "Validate short URL redirect targets" def handle_noargs(self, *args, **options): for url in ShortURL.objects.al...
<commit_before>from django.core.management.base import NoArgsCommand from django.core.urlresolvers import reverse import requests from deflect.models import ShortURL class Command(NoArgsCommand): help = "Validate short URL redirect targets" def handle_noargs(self, *args, **options): for url in Shor...
d58fa915665c3a2c99588bb19bfaf14e6728371f
channels/__init__.py
channels/__init__.py
import django __version__ = "2.4.0" if django.VERSION < (3, 2): default_app_config = "channels.apps.ChannelsConfig" DEFAULT_CHANNEL_LAYER = "default"
__version__ = "2.4.0" try: import django if django.VERSION < (3, 2): default_app_config = "channels.apps.ChannelsConfig" except ModuleNotFoundError: pass DEFAULT_CHANNEL_LAYER = "default"
Fix RTD build for missing Django dependency.
Fix RTD build for missing Django dependency.
Python
bsd-3-clause
andrewgodwin/channels,django/channels,andrewgodwin/django-channels
import django __version__ = "2.4.0" if django.VERSION < (3, 2): default_app_config = "channels.apps.ChannelsConfig" DEFAULT_CHANNEL_LAYER = "default" Fix RTD build for missing Django dependency.
__version__ = "2.4.0" try: import django if django.VERSION < (3, 2): default_app_config = "channels.apps.ChannelsConfig" except ModuleNotFoundError: pass DEFAULT_CHANNEL_LAYER = "default"
<commit_before>import django __version__ = "2.4.0" if django.VERSION < (3, 2): default_app_config = "channels.apps.ChannelsConfig" DEFAULT_CHANNEL_LAYER = "default" <commit_msg>Fix RTD build for missing Django dependency.<commit_after>
__version__ = "2.4.0" try: import django if django.VERSION < (3, 2): default_app_config = "channels.apps.ChannelsConfig" except ModuleNotFoundError: pass DEFAULT_CHANNEL_LAYER = "default"
import django __version__ = "2.4.0" if django.VERSION < (3, 2): default_app_config = "channels.apps.ChannelsConfig" DEFAULT_CHANNEL_LAYER = "default" Fix RTD build for missing Django dependency.__version__ = "2.4.0" try: import django if django.VERSION < (3, 2): default_app_config = "channels.ap...
<commit_before>import django __version__ = "2.4.0" if django.VERSION < (3, 2): default_app_config = "channels.apps.ChannelsConfig" DEFAULT_CHANNEL_LAYER = "default" <commit_msg>Fix RTD build for missing Django dependency.<commit_after>__version__ = "2.4.0" try: import django if django.VERSION < (3, 2): ...
d10b6cca0b0925b4ab6670b375f30df4938767a7
app.py
app.py
import flask import config app = flask.Flask(__name__) @app.route('/') def index(): return flask.render_template('dashboard.html') @app.route('/new') def new(): return flask.render_template('new_procedure.html') @app.route('/sms', methods=['POST']) def receive_sms(): print(str.format("Received SMS: \...
import flask import config app = flask.Flask(__name__) @app.route('/') @app.route('/dashboard') def render_dashboard(): return flask.render_template('dashboard.html') @app.route('/new') def render_new_procedure_form(): return flask.render_template('new_procedure.html') # Endpoint for new opportunity form...
Add simple endpoint for form submission
Add simple endpoint for form submission
Python
mit
nhshd-slot/SLOT,bsharif/SLOT,nhshd-slot/SLOT,nhshd-slot/SLOT,bsharif/SLOT,bsharif/SLOT
import flask import config app = flask.Flask(__name__) @app.route('/') def index(): return flask.render_template('dashboard.html') @app.route('/new') def new(): return flask.render_template('new_procedure.html') @app.route('/sms', methods=['POST']) def receive_sms(): print(str.format("Received SMS: \...
import flask import config app = flask.Flask(__name__) @app.route('/') @app.route('/dashboard') def render_dashboard(): return flask.render_template('dashboard.html') @app.route('/new') def render_new_procedure_form(): return flask.render_template('new_procedure.html') # Endpoint for new opportunity form...
<commit_before>import flask import config app = flask.Flask(__name__) @app.route('/') def index(): return flask.render_template('dashboard.html') @app.route('/new') def new(): return flask.render_template('new_procedure.html') @app.route('/sms', methods=['POST']) def receive_sms(): print(str.format("...
import flask import config app = flask.Flask(__name__) @app.route('/') @app.route('/dashboard') def render_dashboard(): return flask.render_template('dashboard.html') @app.route('/new') def render_new_procedure_form(): return flask.render_template('new_procedure.html') # Endpoint for new opportunity form...
import flask import config app = flask.Flask(__name__) @app.route('/') def index(): return flask.render_template('dashboard.html') @app.route('/new') def new(): return flask.render_template('new_procedure.html') @app.route('/sms', methods=['POST']) def receive_sms(): print(str.format("Received SMS: \...
<commit_before>import flask import config app = flask.Flask(__name__) @app.route('/') def index(): return flask.render_template('dashboard.html') @app.route('/new') def new(): return flask.render_template('new_procedure.html') @app.route('/sms', methods=['POST']) def receive_sms(): print(str.format("...
dbc526d43b6a69c0bd120f3a0abb519f8bf353a8
dbimport/csv_util.py
dbimport/csv_util.py
import csv import re def read_csv(path): with open(path, 'rU') as data: reader = csv.DictReader(data) for row in reader: yield row def remove_commas_and_apostrophes(value): """Remove commas and single quotes from all values in row. Sqlite can't handle them.""" return re....
import csv import re def read_csv(path): with open(path, 'rU') as data: reader = csv.DictReader(data) for row in reader: yield row def remove_commas_and_apostrophes(value): """Remove commas and single quotes from all values in row. Sqlite can't handle them.""" return re....
Add scrub_row() to pre-process all fields in incoming csv row
Add scrub_row() to pre-process all fields in incoming csv row
Python
mit
KatrinaE/importlite
import csv import re def read_csv(path): with open(path, 'rU') as data: reader = csv.DictReader(data) for row in reader: yield row def remove_commas_and_apostrophes(value): """Remove commas and single quotes from all values in row. Sqlite can't handle them.""" return re....
import csv import re def read_csv(path): with open(path, 'rU') as data: reader = csv.DictReader(data) for row in reader: yield row def remove_commas_and_apostrophes(value): """Remove commas and single quotes from all values in row. Sqlite can't handle them.""" return re....
<commit_before>import csv import re def read_csv(path): with open(path, 'rU') as data: reader = csv.DictReader(data) for row in reader: yield row def remove_commas_and_apostrophes(value): """Remove commas and single quotes from all values in row. Sqlite can't handle them."""...
import csv import re def read_csv(path): with open(path, 'rU') as data: reader = csv.DictReader(data) for row in reader: yield row def remove_commas_and_apostrophes(value): """Remove commas and single quotes from all values in row. Sqlite can't handle them.""" return re....
import csv import re def read_csv(path): with open(path, 'rU') as data: reader = csv.DictReader(data) for row in reader: yield row def remove_commas_and_apostrophes(value): """Remove commas and single quotes from all values in row. Sqlite can't handle them.""" return re....
<commit_before>import csv import re def read_csv(path): with open(path, 'rU') as data: reader = csv.DictReader(data) for row in reader: yield row def remove_commas_and_apostrophes(value): """Remove commas and single quotes from all values in row. Sqlite can't handle them."""...
2ce3b7bb5207fcdbedd731bb9cbc928393654507
functional_tests/test_homepage.py
functional_tests/test_homepage.py
import unittest from selenium import webdriver class HomePageRecipeTests(unittest.TestCase): def setUp(self): self.browser = webdriver.Firefox() def tearDown(self): self.browser.close() def test_django_working(self): self.browser.get('http://localhost:8000') self.assertIn(...
import unittest from selenium import webdriver class HomePageRecipeTests(unittest.TestCase): def setUp(self): self.browser = webdriver.Firefox() def tearDown(self): self.browser.close() def test_can_see_todays_recipe(self): # Alice goes to our website self.browser.get('htt...
Add functional test to test the home page
Add functional test to test the home page
Python
agpl-3.0
XeryusTC/rotd,XeryusTC/rotd,XeryusTC/rotd
import unittest from selenium import webdriver class HomePageRecipeTests(unittest.TestCase): def setUp(self): self.browser = webdriver.Firefox() def tearDown(self): self.browser.close() def test_django_working(self): self.browser.get('http://localhost:8000') self.assertIn(...
import unittest from selenium import webdriver class HomePageRecipeTests(unittest.TestCase): def setUp(self): self.browser = webdriver.Firefox() def tearDown(self): self.browser.close() def test_can_see_todays_recipe(self): # Alice goes to our website self.browser.get('htt...
<commit_before>import unittest from selenium import webdriver class HomePageRecipeTests(unittest.TestCase): def setUp(self): self.browser = webdriver.Firefox() def tearDown(self): self.browser.close() def test_django_working(self): self.browser.get('http://localhost:8000') ...
import unittest from selenium import webdriver class HomePageRecipeTests(unittest.TestCase): def setUp(self): self.browser = webdriver.Firefox() def tearDown(self): self.browser.close() def test_can_see_todays_recipe(self): # Alice goes to our website self.browser.get('htt...
import unittest from selenium import webdriver class HomePageRecipeTests(unittest.TestCase): def setUp(self): self.browser = webdriver.Firefox() def tearDown(self): self.browser.close() def test_django_working(self): self.browser.get('http://localhost:8000') self.assertIn(...
<commit_before>import unittest from selenium import webdriver class HomePageRecipeTests(unittest.TestCase): def setUp(self): self.browser = webdriver.Firefox() def tearDown(self): self.browser.close() def test_django_working(self): self.browser.get('http://localhost:8000') ...
bad64ce546a98d06497063d6ab55c311fd5ac555
src/sentry/web/frontend/project_plugin_configure.py
src/sentry/web/frontend/project_plugin_configure.py
from __future__ import absolute_import from django.core.urlresolvers import reverse from django.http import HttpResponse from sentry.plugins import plugins from sentry.web.frontend.base import ProjectView class ProjectPluginConfigureView(ProjectView): required_scope = 'project:write' def handle(self, reque...
from __future__ import absolute_import from django.core.urlresolvers import reverse from django.http import HttpResponse from sentry.plugins import plugins from sentry.web.frontend.base import ProjectView class ProjectPluginConfigureView(ProjectView): required_scope = 'project:write' def handle(self, reque...
Use kwargs to fix Plugin2 BS configure ordering
Use kwargs to fix Plugin2 BS configure ordering
Python
bsd-3-clause
zenefits/sentry,zenefits/sentry,zenefits/sentry,zenefits/sentry,zenefits/sentry
from __future__ import absolute_import from django.core.urlresolvers import reverse from django.http import HttpResponse from sentry.plugins import plugins from sentry.web.frontend.base import ProjectView class ProjectPluginConfigureView(ProjectView): required_scope = 'project:write' def handle(self, reque...
from __future__ import absolute_import from django.core.urlresolvers import reverse from django.http import HttpResponse from sentry.plugins import plugins from sentry.web.frontend.base import ProjectView class ProjectPluginConfigureView(ProjectView): required_scope = 'project:write' def handle(self, reque...
<commit_before>from __future__ import absolute_import from django.core.urlresolvers import reverse from django.http import HttpResponse from sentry.plugins import plugins from sentry.web.frontend.base import ProjectView class ProjectPluginConfigureView(ProjectView): required_scope = 'project:write' def han...
from __future__ import absolute_import from django.core.urlresolvers import reverse from django.http import HttpResponse from sentry.plugins import plugins from sentry.web.frontend.base import ProjectView class ProjectPluginConfigureView(ProjectView): required_scope = 'project:write' def handle(self, reque...
from __future__ import absolute_import from django.core.urlresolvers import reverse from django.http import HttpResponse from sentry.plugins import plugins from sentry.web.frontend.base import ProjectView class ProjectPluginConfigureView(ProjectView): required_scope = 'project:write' def handle(self, reque...
<commit_before>from __future__ import absolute_import from django.core.urlresolvers import reverse from django.http import HttpResponse from sentry.plugins import plugins from sentry.web.frontend.base import ProjectView class ProjectPluginConfigureView(ProjectView): required_scope = 'project:write' def han...
66379ee0118446759fa9709f45406f607245deb2
honeybadger/utils.py
honeybadger/utils.py
import json class StringReprJSONEncoder(json.JSONEncoder): def default(self, o): try: return repr(o) except: return '[unserializable]' def filter_dict(data, filter_keys): # filter_keys = set(data.keys()) for key in filter_keys: if data.has_key(key): ...
import json class StringReprJSONEncoder(json.JSONEncoder): def default(self, o): try: return repr(o) except: return '[unserializable]' def filter_dict(data, filter_keys): # filter_keys = set(data.keys()) for key in filter_keys: if key in data: d...
Remove has_key to ensure python3 compatibility
Remove has_key to ensure python3 compatibility
Python
mit
honeybadger-io/honeybadger-python,honeybadger-io/honeybadger-python
import json class StringReprJSONEncoder(json.JSONEncoder): def default(self, o): try: return repr(o) except: return '[unserializable]' def filter_dict(data, filter_keys): # filter_keys = set(data.keys()) for key in filter_keys: if data.has_key(key): ...
import json class StringReprJSONEncoder(json.JSONEncoder): def default(self, o): try: return repr(o) except: return '[unserializable]' def filter_dict(data, filter_keys): # filter_keys = set(data.keys()) for key in filter_keys: if key in data: d...
<commit_before>import json class StringReprJSONEncoder(json.JSONEncoder): def default(self, o): try: return repr(o) except: return '[unserializable]' def filter_dict(data, filter_keys): # filter_keys = set(data.keys()) for key in filter_keys: if data.has_ke...
import json class StringReprJSONEncoder(json.JSONEncoder): def default(self, o): try: return repr(o) except: return '[unserializable]' def filter_dict(data, filter_keys): # filter_keys = set(data.keys()) for key in filter_keys: if key in data: d...
import json class StringReprJSONEncoder(json.JSONEncoder): def default(self, o): try: return repr(o) except: return '[unserializable]' def filter_dict(data, filter_keys): # filter_keys = set(data.keys()) for key in filter_keys: if data.has_key(key): ...
<commit_before>import json class StringReprJSONEncoder(json.JSONEncoder): def default(self, o): try: return repr(o) except: return '[unserializable]' def filter_dict(data, filter_keys): # filter_keys = set(data.keys()) for key in filter_keys: if data.has_ke...
4298cb6ccaac055a4a8db250dc6143b37870edd6
openacademy/model/openacademy_session.py
openacademy/model/openacademy_session.py
from openerp import fields, models class Session(models.Model): _name = 'openacademy.session' name = fields.Char(required=True) start_date = fields.Date() duration = fields.Float(digits=(6, 2), help="Duration in days") seats = fields.Integer(string="Number of seats") instructor_id = fields.Ma...
from openerp import fields, models class Session(models.Model): _name = 'openacademy.session' name = fields.Char(required=True) start_date = fields.Date() duration = fields.Float(digits=(6, 2), help="Duration in days") seats = fields.Integer(string="Number of seats") instructor_id = fiel...
Add domain or and ilike
[REF] openacademy: Add domain or and ilike
Python
apache-2.0
Hiregui92/openacademy-project
from openerp import fields, models class Session(models.Model): _name = 'openacademy.session' name = fields.Char(required=True) start_date = fields.Date() duration = fields.Float(digits=(6, 2), help="Duration in days") seats = fields.Integer(string="Number of seats") instructor_id = fields.Ma...
from openerp import fields, models class Session(models.Model): _name = 'openacademy.session' name = fields.Char(required=True) start_date = fields.Date() duration = fields.Float(digits=(6, 2), help="Duration in days") seats = fields.Integer(string="Number of seats") instructor_id = fiel...
<commit_before>from openerp import fields, models class Session(models.Model): _name = 'openacademy.session' name = fields.Char(required=True) start_date = fields.Date() duration = fields.Float(digits=(6, 2), help="Duration in days") seats = fields.Integer(string="Number of seats") instructor...
from openerp import fields, models class Session(models.Model): _name = 'openacademy.session' name = fields.Char(required=True) start_date = fields.Date() duration = fields.Float(digits=(6, 2), help="Duration in days") seats = fields.Integer(string="Number of seats") instructor_id = fiel...
from openerp import fields, models class Session(models.Model): _name = 'openacademy.session' name = fields.Char(required=True) start_date = fields.Date() duration = fields.Float(digits=(6, 2), help="Duration in days") seats = fields.Integer(string="Number of seats") instructor_id = fields.Ma...
<commit_before>from openerp import fields, models class Session(models.Model): _name = 'openacademy.session' name = fields.Char(required=True) start_date = fields.Date() duration = fields.Float(digits=(6, 2), help="Duration in days") seats = fields.Integer(string="Number of seats") instructor...
e68cb906810a26d93e0d15e0357a75a2b49d8784
boundary/plugin_get_components.py
boundary/plugin_get_components.py
# # Copyright 2014-2015 Boundary, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
# # Copyright 2014-2015 Boundary, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
Reformat code to PEP-8 standards
Reformat code to PEP-8 standards
Python
apache-2.0
jdgwartney/boundary-api-cli,boundary/pulse-api-cli,wcainboundary/boundary-api-cli,jdgwartney/pulse-api-cli,jdgwartney/boundary-api-cli,boundary/boundary-api-cli,boundary/pulse-api-cli,boundary/boundary-api-cli,wcainboundary/boundary-api-cli,jdgwartney/pulse-api-cli
# # Copyright 2014-2015 Boundary, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
# # Copyright 2014-2015 Boundary, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
<commit_before># # Copyright 2014-2015 Boundary, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
# # Copyright 2014-2015 Boundary, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
# # Copyright 2014-2015 Boundary, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
<commit_before># # Copyright 2014-2015 Boundary, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
e907ec909b6dc3eecc83b634a48a04b53f1740a7
nhlstats/__init__.py
nhlstats/__init__.py
import logging from version import __version__ logger = logging.getLogger(__name__) logger.debug('Loading %s ver %s' % (__name__, __version__)) # Actions represents the available textual items that can be passed to main # to drive dispatch. These should be all lower case, no spaces or underscores. actions = [ ...
import logging from version import __version__ logger = logging.getLogger(__name__) logger.debug('Loading %s ver %s' % (__name__, __version__)) # Actions represents the available textual items that can be passed to main # to drive dispatch. These should be all lower case, no spaces or underscores. actions = [ ...
Add beginning and end args to GetGames
Add beginning and end args to GetGames
Python
mit
fancystats/nhlstats
import logging from version import __version__ logger = logging.getLogger(__name__) logger.debug('Loading %s ver %s' % (__name__, __version__)) # Actions represents the available textual items that can be passed to main # to drive dispatch. These should be all lower case, no spaces or underscores. actions = [ ...
import logging from version import __version__ logger = logging.getLogger(__name__) logger.debug('Loading %s ver %s' % (__name__, __version__)) # Actions represents the available textual items that can be passed to main # to drive dispatch. These should be all lower case, no spaces or underscores. actions = [ ...
<commit_before> import logging from version import __version__ logger = logging.getLogger(__name__) logger.debug('Loading %s ver %s' % (__name__, __version__)) # Actions represents the available textual items that can be passed to main # to drive dispatch. These should be all lower case, no spaces or underscores. a...
import logging from version import __version__ logger = logging.getLogger(__name__) logger.debug('Loading %s ver %s' % (__name__, __version__)) # Actions represents the available textual items that can be passed to main # to drive dispatch. These should be all lower case, no spaces or underscores. actions = [ ...
import logging from version import __version__ logger = logging.getLogger(__name__) logger.debug('Loading %s ver %s' % (__name__, __version__)) # Actions represents the available textual items that can be passed to main # to drive dispatch. These should be all lower case, no spaces or underscores. actions = [ ...
<commit_before> import logging from version import __version__ logger = logging.getLogger(__name__) logger.debug('Loading %s ver %s' % (__name__, __version__)) # Actions represents the available textual items that can be passed to main # to drive dispatch. These should be all lower case, no spaces or underscores. a...
f7341acf0717d238073a688c6047e18b524efab1
qmpy/configuration/resources/__init__.py
qmpy/configuration/resources/__init__.py
import yaml import os, os.path loc = os.path.dirname(os.path.abspath(__file__)) hosts = yaml.load(open(loc+'/hosts.yml')) projects = yaml.load(open(loc+'/projects.yml')) allocations = yaml.load(open(loc+'/allocations.yml')) users = yaml.load(open(loc+'/users.yml'))
import yaml import os loc = os.path.dirname(os.path.abspath(__file__)) with open(os.path.join(loc, 'hosts.yml'), 'r') as fr: hosts = yaml.load(fr) with open(os.path.join(loc, 'projects.yml'), 'r') as fr: projects = yaml.load(fr) with open(os.path.join(loc, 'allocations.yml'), 'r') as fr: allocations = ya...
Use OS-agnostic path joining operations
Use OS-agnostic path joining operations
Python
mit
wolverton-research-group/qmpy,wolverton-research-group/qmpy,wolverton-research-group/qmpy,wolverton-research-group/qmpy,wolverton-research-group/qmpy
import yaml import os, os.path loc = os.path.dirname(os.path.abspath(__file__)) hosts = yaml.load(open(loc+'/hosts.yml')) projects = yaml.load(open(loc+'/projects.yml')) allocations = yaml.load(open(loc+'/allocations.yml')) users = yaml.load(open(loc+'/users.yml')) Use OS-agnostic path joining operations
import yaml import os loc = os.path.dirname(os.path.abspath(__file__)) with open(os.path.join(loc, 'hosts.yml'), 'r') as fr: hosts = yaml.load(fr) with open(os.path.join(loc, 'projects.yml'), 'r') as fr: projects = yaml.load(fr) with open(os.path.join(loc, 'allocations.yml'), 'r') as fr: allocations = ya...
<commit_before>import yaml import os, os.path loc = os.path.dirname(os.path.abspath(__file__)) hosts = yaml.load(open(loc+'/hosts.yml')) projects = yaml.load(open(loc+'/projects.yml')) allocations = yaml.load(open(loc+'/allocations.yml')) users = yaml.load(open(loc+'/users.yml')) <commit_msg>Use OS-agnostic path joini...
import yaml import os loc = os.path.dirname(os.path.abspath(__file__)) with open(os.path.join(loc, 'hosts.yml'), 'r') as fr: hosts = yaml.load(fr) with open(os.path.join(loc, 'projects.yml'), 'r') as fr: projects = yaml.load(fr) with open(os.path.join(loc, 'allocations.yml'), 'r') as fr: allocations = ya...
import yaml import os, os.path loc = os.path.dirname(os.path.abspath(__file__)) hosts = yaml.load(open(loc+'/hosts.yml')) projects = yaml.load(open(loc+'/projects.yml')) allocations = yaml.load(open(loc+'/allocations.yml')) users = yaml.load(open(loc+'/users.yml')) Use OS-agnostic path joining operationsimport yaml im...
<commit_before>import yaml import os, os.path loc = os.path.dirname(os.path.abspath(__file__)) hosts = yaml.load(open(loc+'/hosts.yml')) projects = yaml.load(open(loc+'/projects.yml')) allocations = yaml.load(open(loc+'/allocations.yml')) users = yaml.load(open(loc+'/users.yml')) <commit_msg>Use OS-agnostic path joini...
6ca50d8b5c208a2063910832df5d9a07301b6893
homeassistant/components/device_tracker/owntracks.py
homeassistant/components/device_tracker/owntracks.py
""" homeassistant.components.device_tracker.owntracks ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OwnTracks platform for the device tracker. device_tracker: platform: owntracks """ import json import logging import homeassistant.components.mqtt as mqtt DEPENDENCIES = ['mqtt'] LOCATION_TOPIC = 'owntracks/+/...
""" homeassistant.components.device_tracker.owntracks ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OwnTracks platform for the device tracker. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/device_tracker.owntracks.html """ import json import logging...
Move configuration details to docs
Move configuration details to docs
Python
mit
MungoRae/home-assistant,varunr047/homefile,LinuxChristian/home-assistant,srcLurker/home-assistant,molobrakos/home-assistant,sffjunkie/home-assistant,sfam/home-assistant,Zac-HD/home-assistant,tboyce021/home-assistant,aoakeson/home-assistant,caiuspb/home-assistant,Zyell/home-assistant,bdfoster/blumate,nnic/home-assistant...
""" homeassistant.components.device_tracker.owntracks ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OwnTracks platform for the device tracker. device_tracker: platform: owntracks """ import json import logging import homeassistant.components.mqtt as mqtt DEPENDENCIES = ['mqtt'] LOCATION_TOPIC = 'owntracks/+/...
""" homeassistant.components.device_tracker.owntracks ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OwnTracks platform for the device tracker. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/device_tracker.owntracks.html """ import json import logging...
<commit_before>""" homeassistant.components.device_tracker.owntracks ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OwnTracks platform for the device tracker. device_tracker: platform: owntracks """ import json import logging import homeassistant.components.mqtt as mqtt DEPENDENCIES = ['mqtt'] LOCATION_TOPIC ...
""" homeassistant.components.device_tracker.owntracks ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OwnTracks platform for the device tracker. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/device_tracker.owntracks.html """ import json import logging...
""" homeassistant.components.device_tracker.owntracks ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OwnTracks platform for the device tracker. device_tracker: platform: owntracks """ import json import logging import homeassistant.components.mqtt as mqtt DEPENDENCIES = ['mqtt'] LOCATION_TOPIC = 'owntracks/+/...
<commit_before>""" homeassistant.components.device_tracker.owntracks ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ OwnTracks platform for the device tracker. device_tracker: platform: owntracks """ import json import logging import homeassistant.components.mqtt as mqtt DEPENDENCIES = ['mqtt'] LOCATION_TOPIC ...
19783c164910cec1d0d9e68a3ce62cb8874fa605
salt/ext/__init__.py
salt/ext/__init__.py
# coding: utf-8 -*-
# coding: utf-8 -*- ''' This directory contains external modules shipping with Salt. They are governed under their respective licenses. See the COPYING file included with this distribution for more information. '''
Add a note explaining salt/ext
Add a note explaining salt/ext
Python
apache-2.0
saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt
# coding: utf-8 -*- Add a note explaining salt/ext
# coding: utf-8 -*- ''' This directory contains external modules shipping with Salt. They are governed under their respective licenses. See the COPYING file included with this distribution for more information. '''
<commit_before># coding: utf-8 -*- <commit_msg>Add a note explaining salt/ext<commit_after>
# coding: utf-8 -*- ''' This directory contains external modules shipping with Salt. They are governed under their respective licenses. See the COPYING file included with this distribution for more information. '''
# coding: utf-8 -*- Add a note explaining salt/ext# coding: utf-8 -*- ''' This directory contains external modules shipping with Salt. They are governed under their respective licenses. See the COPYING file included with this distribution for more information. '''
<commit_before># coding: utf-8 -*- <commit_msg>Add a note explaining salt/ext<commit_after># coding: utf-8 -*- ''' This directory contains external modules shipping with Salt. They are governed under their respective licenses. See the COPYING file included with this distribution for more information. '''
3cc2dd83b44979c2dee3946e3d01ca236d3339ff
src/trusted/service_runtime/linux/nacl_bootstrap_munge_phdr.py
src/trusted/service_runtime/linux/nacl_bootstrap_munge_phdr.py
#!/usr/bin/python # Copyright (c) 2011 The Native Client Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # # This takes three command-line arguments: # MUNGE-PHDR-PROGRAM file name of program built from # ...
#!/usr/bin/env python # Copyright (c) 2011 The Native Client Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """This takes three command-line arguments: MUNGE-PHDR-PROGRAM file name of program built from ...
Move over tweaks to munge-phdr script from chromium repo
Move over tweaks to munge-phdr script from chromium repo Some cosmetic changes were made on the chromium side since we copied it. Catch up to those, still preparing to remove the chromium copy ASAP. BUG= none TEST= trybots [email protected] Review URL: http://codereview.chromium.org/8728008 git-svn-id: 721b910...
Python
bsd-3-clause
nacl-webkit/native_client,sbc100/native_client,sbc100/native_client,nacl-webkit/native_client,nacl-webkit/native_client,sbc100/native_client,sbc100/native_client,sbc100/native_client,nacl-webkit/native_client,sbc100/native_client,nacl-webkit/native_client
#!/usr/bin/python # Copyright (c) 2011 The Native Client Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # # This takes three command-line arguments: # MUNGE-PHDR-PROGRAM file name of program built from # ...
#!/usr/bin/env python # Copyright (c) 2011 The Native Client Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """This takes three command-line arguments: MUNGE-PHDR-PROGRAM file name of program built from ...
<commit_before>#!/usr/bin/python # Copyright (c) 2011 The Native Client Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # # This takes three command-line arguments: # MUNGE-PHDR-PROGRAM file name of program built from # ...
#!/usr/bin/env python # Copyright (c) 2011 The Native Client Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """This takes three command-line arguments: MUNGE-PHDR-PROGRAM file name of program built from ...
#!/usr/bin/python # Copyright (c) 2011 The Native Client Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # # This takes three command-line arguments: # MUNGE-PHDR-PROGRAM file name of program built from # ...
<commit_before>#!/usr/bin/python # Copyright (c) 2011 The Native Client Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # # This takes three command-line arguments: # MUNGE-PHDR-PROGRAM file name of program built from # ...
eb9d9196155e90c4949380c66ff8876f41bccc01
tomviz/python/tomviz/io/formats/numpy.py
tomviz/python/tomviz/io/formats/numpy.py
# -*- coding: utf-8 -*- ############################################################################### # This source file is part of the Tomviz project, https://tomviz.org/. # It is released under the 3-Clause BSD License, see "LICENSE". ############################################################################### ...
# -*- coding: utf-8 -*- ############################################################################### # This source file is part of the Tomviz project, https://tomviz.org/. # It is released under the 3-Clause BSD License, see "LICENSE". ############################################################################### ...
Use C ordering for npy format
Use C ordering for npy format This appears to save and and load files correctly, but when loading, it prints this message: Warning, array does not have Fortran order, making deep copy and fixing... ...done. I'm looking into this... Signed-off-by: Patrick Avery <[email protected]>
Python
bsd-3-clause
OpenChemistry/tomviz,OpenChemistry/tomviz,OpenChemistry/tomviz,OpenChemistry/tomviz
# -*- coding: utf-8 -*- ############################################################################### # This source file is part of the Tomviz project, https://tomviz.org/. # It is released under the 3-Clause BSD License, see "LICENSE". ############################################################################### ...
# -*- coding: utf-8 -*- ############################################################################### # This source file is part of the Tomviz project, https://tomviz.org/. # It is released under the 3-Clause BSD License, see "LICENSE". ############################################################################### ...
<commit_before># -*- coding: utf-8 -*- ############################################################################### # This source file is part of the Tomviz project, https://tomviz.org/. # It is released under the 3-Clause BSD License, see "LICENSE". #################################################################...
# -*- coding: utf-8 -*- ############################################################################### # This source file is part of the Tomviz project, https://tomviz.org/. # It is released under the 3-Clause BSD License, see "LICENSE". ############################################################################### ...
# -*- coding: utf-8 -*- ############################################################################### # This source file is part of the Tomviz project, https://tomviz.org/. # It is released under the 3-Clause BSD License, see "LICENSE". ############################################################################### ...
<commit_before># -*- coding: utf-8 -*- ############################################################################### # This source file is part of the Tomviz project, https://tomviz.org/. # It is released under the 3-Clause BSD License, see "LICENSE". #################################################################...
4647526dd416a7e9e3b3d6b2b0b1876e86266743
django_hosts/tests/urls/simple.py
django_hosts/tests/urls/simple.py
from django.conf.urls.defaults import patterns, url urlpatterns = patterns('django.views.generic.simple', url(r'^simple/$', 'direct_to_template', name='simple-direct'), )
from django.conf.urls.defaults import patterns, url from django.views.generic import TemplateView urlpatterns = patterns('django.views.generic.simple', url(r'^simple/$', TemplateView.as_view(), name='simple-direct'), )
Change direct_to_template view to TemplateView.as_view()
Change direct_to_template view to TemplateView.as_view() Required for Django 1.5 compatibility during tests
Python
bsd-3-clause
jezdez/django-hosts
from django.conf.urls.defaults import patterns, url urlpatterns = patterns('django.views.generic.simple', url(r'^simple/$', 'direct_to_template', name='simple-direct'), ) Change direct_to_template view to TemplateView.as_view() Required for Django 1.5 compatibility during tests
from django.conf.urls.defaults import patterns, url from django.views.generic import TemplateView urlpatterns = patterns('django.views.generic.simple', url(r'^simple/$', TemplateView.as_view(), name='simple-direct'), )
<commit_before>from django.conf.urls.defaults import patterns, url urlpatterns = patterns('django.views.generic.simple', url(r'^simple/$', 'direct_to_template', name='simple-direct'), ) <commit_msg>Change direct_to_template view to TemplateView.as_view() Required for Django 1.5 compatibility during tests<commit_a...
from django.conf.urls.defaults import patterns, url from django.views.generic import TemplateView urlpatterns = patterns('django.views.generic.simple', url(r'^simple/$', TemplateView.as_view(), name='simple-direct'), )
from django.conf.urls.defaults import patterns, url urlpatterns = patterns('django.views.generic.simple', url(r'^simple/$', 'direct_to_template', name='simple-direct'), ) Change direct_to_template view to TemplateView.as_view() Required for Django 1.5 compatibility during testsfrom django.conf.urls.defaults impor...
<commit_before>from django.conf.urls.defaults import patterns, url urlpatterns = patterns('django.views.generic.simple', url(r'^simple/$', 'direct_to_template', name='simple-direct'), ) <commit_msg>Change direct_to_template view to TemplateView.as_view() Required for Django 1.5 compatibility during tests<commit_a...
73c616cc9e3d5351e0f4e41d60ff03bd58b85967
scrapi/harvesters/scholarsbank.py
scrapi/harvesters/scholarsbank.py
""" Harvester for Scholars Bank University of Oregon for the SHARE project Example API call: http://scholarsbank.uoregon.edu/oai/request?verb=ListRecords&metadataPrefix=oai_dc """ from __future__ import unicode_literals from scrapi.base import OAIHarvester from scrapi.base.helpers import updated_schema class Scho...
""" Harvester for Scholars Bank University of Oregon for the SHARE project Example API call: http://scholarsbank.uoregon.edu/oai/request?verb=ListRecords&metadataPrefix=oai_dc """ from __future__ import unicode_literals from scrapi.base import OAIHarvester from scrapi.base.schemas import OAISCHEMA from scrapi.base....
Update schoalrsbank to grab second description if there are two
Update schoalrsbank to grab second description if there are two
Python
apache-2.0
fabianvf/scrapi,jeffreyliu3230/scrapi,erinspace/scrapi,felliott/scrapi,CenterForOpenScience/scrapi,icereval/scrapi,alexgarciac/scrapi,CenterForOpenScience/scrapi,ostwald/scrapi,felliott/scrapi,mehanig/scrapi,erinspace/scrapi,mehanig/scrapi,fabianvf/scrapi
""" Harvester for Scholars Bank University of Oregon for the SHARE project Example API call: http://scholarsbank.uoregon.edu/oai/request?verb=ListRecords&metadataPrefix=oai_dc """ from __future__ import unicode_literals from scrapi.base import OAIHarvester from scrapi.base.helpers import updated_schema class Scho...
""" Harvester for Scholars Bank University of Oregon for the SHARE project Example API call: http://scholarsbank.uoregon.edu/oai/request?verb=ListRecords&metadataPrefix=oai_dc """ from __future__ import unicode_literals from scrapi.base import OAIHarvester from scrapi.base.schemas import OAISCHEMA from scrapi.base....
<commit_before>""" Harvester for Scholars Bank University of Oregon for the SHARE project Example API call: http://scholarsbank.uoregon.edu/oai/request?verb=ListRecords&metadataPrefix=oai_dc """ from __future__ import unicode_literals from scrapi.base import OAIHarvester from scrapi.base.helpers import updated_sche...
""" Harvester for Scholars Bank University of Oregon for the SHARE project Example API call: http://scholarsbank.uoregon.edu/oai/request?verb=ListRecords&metadataPrefix=oai_dc """ from __future__ import unicode_literals from scrapi.base import OAIHarvester from scrapi.base.schemas import OAISCHEMA from scrapi.base....
""" Harvester for Scholars Bank University of Oregon for the SHARE project Example API call: http://scholarsbank.uoregon.edu/oai/request?verb=ListRecords&metadataPrefix=oai_dc """ from __future__ import unicode_literals from scrapi.base import OAIHarvester from scrapi.base.helpers import updated_schema class Scho...
<commit_before>""" Harvester for Scholars Bank University of Oregon for the SHARE project Example API call: http://scholarsbank.uoregon.edu/oai/request?verb=ListRecords&metadataPrefix=oai_dc """ from __future__ import unicode_literals from scrapi.base import OAIHarvester from scrapi.base.helpers import updated_sche...
150aa84158bab89e3700114038fab78504bed960
zou/app/blueprints/export/csv/persons.py
zou/app/blueprints/export/csv/persons.py
from zou.app.blueprints.export.csv.base import BaseCsvExport from zou.app.models.person import Person class PersonsCsvExport(BaseCsvExport): def __init__(self): BaseCsvExport.__init__(self, Person) self.file_name = "people_export" def build_headers(self): return ["Last Name", "First ...
from zou.app.blueprints.export.csv.base import BaseCsvExport from zou.app.models.person import Person class PersonsCsvExport(BaseCsvExport): def __init__(self): BaseCsvExport.__init__(self, Person) self.file_name = "people_export" def build_headers(self): return ["Last Name", "First ...
Add active column to person csv export
Add active column to person csv export
Python
agpl-3.0
cgwire/zou
from zou.app.blueprints.export.csv.base import BaseCsvExport from zou.app.models.person import Person class PersonsCsvExport(BaseCsvExport): def __init__(self): BaseCsvExport.__init__(self, Person) self.file_name = "people_export" def build_headers(self): return ["Last Name", "First ...
from zou.app.blueprints.export.csv.base import BaseCsvExport from zou.app.models.person import Person class PersonsCsvExport(BaseCsvExport): def __init__(self): BaseCsvExport.__init__(self, Person) self.file_name = "people_export" def build_headers(self): return ["Last Name", "First ...
<commit_before>from zou.app.blueprints.export.csv.base import BaseCsvExport from zou.app.models.person import Person class PersonsCsvExport(BaseCsvExport): def __init__(self): BaseCsvExport.__init__(self, Person) self.file_name = "people_export" def build_headers(self): return ["Last...
from zou.app.blueprints.export.csv.base import BaseCsvExport from zou.app.models.person import Person class PersonsCsvExport(BaseCsvExport): def __init__(self): BaseCsvExport.__init__(self, Person) self.file_name = "people_export" def build_headers(self): return ["Last Name", "First ...
from zou.app.blueprints.export.csv.base import BaseCsvExport from zou.app.models.person import Person class PersonsCsvExport(BaseCsvExport): def __init__(self): BaseCsvExport.__init__(self, Person) self.file_name = "people_export" def build_headers(self): return ["Last Name", "First ...
<commit_before>from zou.app.blueprints.export.csv.base import BaseCsvExport from zou.app.models.person import Person class PersonsCsvExport(BaseCsvExport): def __init__(self): BaseCsvExport.__init__(self, Person) self.file_name = "people_export" def build_headers(self): return ["Last...
69d15ec69330828da7eb96591ca674b06c6f9017
fiware-region-sanity-tests/tests/regions/test_waterford.py
fiware-region-sanity-tests/tests/regions/test_waterford.py
# -*- coding: utf-8 -*- # Copyright 2015 Telefónica Investigación y Desarrollo, S.A.U # # This file is part of FIWARE project. # # 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://w...
# -*- coding: utf-8 -*- # Copyright 2015 Telefónica Investigación y Desarrollo, S.A.U # # This file is part of FIWARE project. # # 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://w...
Disable the Object Storage tests in Waterford
Disable the Object Storage tests in Waterford
Python
apache-2.0
Fiware/ops.Health,telefonicaid/fiware-health,Fiware/ops.Health,telefonicaid/fiware-health,telefonicaid/fiware-health,telefonicaid/fiware-health,Fiware/ops.Health,telefonicaid/fiware-health,Fiware/ops.Health,Fiware/ops.Health
# -*- coding: utf-8 -*- # Copyright 2015 Telefónica Investigación y Desarrollo, S.A.U # # This file is part of FIWARE project. # # 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://w...
# -*- coding: utf-8 -*- # Copyright 2015 Telefónica Investigación y Desarrollo, S.A.U # # This file is part of FIWARE project. # # 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://w...
<commit_before># -*- coding: utf-8 -*- # Copyright 2015 Telefónica Investigación y Desarrollo, S.A.U # # This file is part of FIWARE project. # # 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 a...
# -*- coding: utf-8 -*- # Copyright 2015 Telefónica Investigación y Desarrollo, S.A.U # # This file is part of FIWARE project. # # 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://w...
# -*- coding: utf-8 -*- # Copyright 2015 Telefónica Investigación y Desarrollo, S.A.U # # This file is part of FIWARE project. # # 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://w...
<commit_before># -*- coding: utf-8 -*- # Copyright 2015 Telefónica Investigación y Desarrollo, S.A.U # # This file is part of FIWARE project. # # 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 a...
a11598e46ec882b74d5ce4c8694e1db86691a24f
accelerator/tests/factories/program_family_factory.py
accelerator/tests/factories/program_family_factory.py
# MIT License # Copyright (c) 2017 MassChallenge, Inc. from __future__ import unicode_literals import swapper from factory import ( DjangoModelFactory, Sequence, ) from accelerator.apps import AcceleratorConfig ProgramFamily = swapper.load_model(AcceleratorConfig.name, 'ProgramFamily') class ProgramFamily...
# MIT License # Copyright (c) 2017 MassChallenge, Inc. from __future__ import unicode_literals import swapper from factory import ( DjangoModelFactory, Sequence, ) from accelerator.apps import AcceleratorConfig ProgramFamily = swapper.load_model(AcceleratorConfig.name, 'ProgramFamily') class ProgramFamily...
Remove physical_address from factory, not sure why this helps
[AC-6976] Remove physical_address from factory, not sure why this helps
Python
mit
masschallenge/django-accelerator,masschallenge/django-accelerator
# MIT License # Copyright (c) 2017 MassChallenge, Inc. from __future__ import unicode_literals import swapper from factory import ( DjangoModelFactory, Sequence, ) from accelerator.apps import AcceleratorConfig ProgramFamily = swapper.load_model(AcceleratorConfig.name, 'ProgramFamily') class ProgramFamily...
# MIT License # Copyright (c) 2017 MassChallenge, Inc. from __future__ import unicode_literals import swapper from factory import ( DjangoModelFactory, Sequence, ) from accelerator.apps import AcceleratorConfig ProgramFamily = swapper.load_model(AcceleratorConfig.name, 'ProgramFamily') class ProgramFamily...
<commit_before># MIT License # Copyright (c) 2017 MassChallenge, Inc. from __future__ import unicode_literals import swapper from factory import ( DjangoModelFactory, Sequence, ) from accelerator.apps import AcceleratorConfig ProgramFamily = swapper.load_model(AcceleratorConfig.name, 'ProgramFamily') clas...
# MIT License # Copyright (c) 2017 MassChallenge, Inc. from __future__ import unicode_literals import swapper from factory import ( DjangoModelFactory, Sequence, ) from accelerator.apps import AcceleratorConfig ProgramFamily = swapper.load_model(AcceleratorConfig.name, 'ProgramFamily') class ProgramFamily...
# MIT License # Copyright (c) 2017 MassChallenge, Inc. from __future__ import unicode_literals import swapper from factory import ( DjangoModelFactory, Sequence, ) from accelerator.apps import AcceleratorConfig ProgramFamily = swapper.load_model(AcceleratorConfig.name, 'ProgramFamily') class ProgramFamily...
<commit_before># MIT License # Copyright (c) 2017 MassChallenge, Inc. from __future__ import unicode_literals import swapper from factory import ( DjangoModelFactory, Sequence, ) from accelerator.apps import AcceleratorConfig ProgramFamily = swapper.load_model(AcceleratorConfig.name, 'ProgramFamily') clas...
72f23c104a28fe4c91d5d36d3f939e110c6f16e3
exercises/chapter_04/exercise_04_01/exercise_04_01.py
exercises/chapter_04/exercise_04_01/exercise_04_01.py
# 4-1. Pizzas favorite_pizzas = ["Columpus", "Marco Polo", "Amerikana"] for pizza in favorite_pizzas: print("I like " + pizza + " pizza.")
# 4-1. Pizzas favorite_pizzas = ["Columpus", "Marco Polo", "Amerikana"] for pizza in favorite_pizzas: print("I like " + pizza + " pizza.") print("I really like pizza!")
Add final version of exercise 4.1.
Add final version of exercise 4.1.
Python
mit
HenrikSamuelsson/python-crash-course
# 4-1. Pizzas favorite_pizzas = ["Columpus", "Marco Polo", "Amerikana"] for pizza in favorite_pizzas: print("I like " + pizza + " pizza.") Add final version of exercise 4.1.
# 4-1. Pizzas favorite_pizzas = ["Columpus", "Marco Polo", "Amerikana"] for pizza in favorite_pizzas: print("I like " + pizza + " pizza.") print("I really like pizza!")
<commit_before># 4-1. Pizzas favorite_pizzas = ["Columpus", "Marco Polo", "Amerikana"] for pizza in favorite_pizzas: print("I like " + pizza + " pizza.") <commit_msg>Add final version of exercise 4.1.<commit_after>
# 4-1. Pizzas favorite_pizzas = ["Columpus", "Marco Polo", "Amerikana"] for pizza in favorite_pizzas: print("I like " + pizza + " pizza.") print("I really like pizza!")
# 4-1. Pizzas favorite_pizzas = ["Columpus", "Marco Polo", "Amerikana"] for pizza in favorite_pizzas: print("I like " + pizza + " pizza.") Add final version of exercise 4.1.# 4-1. Pizzas favorite_pizzas = ["Columpus", "Marco Polo", "Amerikana"] for pizza in favorite_pizzas: print("I like " + pizza + " pizza.") pr...
<commit_before># 4-1. Pizzas favorite_pizzas = ["Columpus", "Marco Polo", "Amerikana"] for pizza in favorite_pizzas: print("I like " + pizza + " pizza.") <commit_msg>Add final version of exercise 4.1.<commit_after># 4-1. Pizzas favorite_pizzas = ["Columpus", "Marco Polo", "Amerikana"] for pizza in favorite_pizzas:...
1af3cc43ae482549ee058e801b4f65e2af78653c
grow/testing/testdata/pod/extensions/preprocessors.py
grow/testing/testdata/pod/extensions/preprocessors.py
from grow import Preprocessor from protorpc import messages class CustomPreprocessor(Preprocessor): KIND = 'custom_preprocessor' class Config(messages.Message): value = messages.StringField(1) def run(self, **kwargs): # To allow the test to check the result self.pod._custom_prepr...
import grow from protorpc import messages class CustomPreprocessor(grow.Preprocessor): KIND = 'custom_preprocessor' class Config(messages.Message): value = messages.StringField(1) def run(self, **kwargs): # To allow the test to check the result self.pod._custom_preprocessor_value...
Update preprocessor testdata to use grow.Preprocessor.
Update preprocessor testdata to use grow.Preprocessor.
Python
mit
grow/pygrow,denmojo/pygrow,grow/grow,grow/grow,grow/pygrow,denmojo/pygrow,denmojo/pygrow,grow/grow,denmojo/pygrow,grow/grow,grow/pygrow
from grow import Preprocessor from protorpc import messages class CustomPreprocessor(Preprocessor): KIND = 'custom_preprocessor' class Config(messages.Message): value = messages.StringField(1) def run(self, **kwargs): # To allow the test to check the result self.pod._custom_prepr...
import grow from protorpc import messages class CustomPreprocessor(grow.Preprocessor): KIND = 'custom_preprocessor' class Config(messages.Message): value = messages.StringField(1) def run(self, **kwargs): # To allow the test to check the result self.pod._custom_preprocessor_value...
<commit_before>from grow import Preprocessor from protorpc import messages class CustomPreprocessor(Preprocessor): KIND = 'custom_preprocessor' class Config(messages.Message): value = messages.StringField(1) def run(self, **kwargs): # To allow the test to check the result self.po...
import grow from protorpc import messages class CustomPreprocessor(grow.Preprocessor): KIND = 'custom_preprocessor' class Config(messages.Message): value = messages.StringField(1) def run(self, **kwargs): # To allow the test to check the result self.pod._custom_preprocessor_value...
from grow import Preprocessor from protorpc import messages class CustomPreprocessor(Preprocessor): KIND = 'custom_preprocessor' class Config(messages.Message): value = messages.StringField(1) def run(self, **kwargs): # To allow the test to check the result self.pod._custom_prepr...
<commit_before>from grow import Preprocessor from protorpc import messages class CustomPreprocessor(Preprocessor): KIND = 'custom_preprocessor' class Config(messages.Message): value = messages.StringField(1) def run(self, **kwargs): # To allow the test to check the result self.po...
0bb9c99d50662001237f0fc55228a9aa68fc211c
neutron/services/qos/constants.py
neutron/services/qos/constants.py
# # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
# # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
Fix gate for neutron-lib v2.14
Fix gate for neutron-lib v2.14 A patch [1] that updates upper-constraints.txt for neutron-lib 2.14 fails to pass check pipeline. Due to development sequence it's necessary to append a new rule type to VALID_RULE_TYPES in Neutron first, and then move it to neutron-lib. Because of this process, there's a risk that the ...
Python
apache-2.0
openstack/neutron,openstack/neutron,mahak/neutron,openstack/neutron,mahak/neutron,mahak/neutron
# # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
# # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
<commit_before># # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # dist...
# # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
# # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
<commit_before># # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # dist...
666622968cddc5f9f62e044da8a4f1b779c1532b
gn/find_msvc.py
gn/find_msvc.py
#!/usr/bin/env python # Copyright 2019 Google Inc. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import os import sys import subprocess ''' Look for the first match in the format C:\\Program Files (x86)\\Microsoft Visual Studio\\${RELEASE}\\${VERSION}\\VC ''...
#!/usr/bin/env python # Copyright 2019 Google Inc. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import os import sys import subprocess ''' Look for the first match in the format C:\\Program Files (x86)\\Microsoft Visual Studio\\${RELEASE}\\${VERSION}\\VC ''...
Add Preview to list of possible MSVC versions.
Add Preview to list of possible MSVC versions. Needed to test a Preview version of MSVC and adding it to the list here makes it a bit easier and the list more complete. Change-Id: I419636722303816f0cd961408229fcef0773e8e0 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/286496 Reviewed-by: Mike Klein <14574...
Python
bsd-3-clause
google/skia,google/skia,google/skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,google/skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,google/skia,google/skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,goo...
#!/usr/bin/env python # Copyright 2019 Google Inc. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import os import sys import subprocess ''' Look for the first match in the format C:\\Program Files (x86)\\Microsoft Visual Studio\\${RELEASE}\\${VERSION}\\VC ''...
#!/usr/bin/env python # Copyright 2019 Google Inc. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import os import sys import subprocess ''' Look for the first match in the format C:\\Program Files (x86)\\Microsoft Visual Studio\\${RELEASE}\\${VERSION}\\VC ''...
<commit_before>#!/usr/bin/env python # Copyright 2019 Google Inc. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import os import sys import subprocess ''' Look for the first match in the format C:\\Program Files (x86)\\Microsoft Visual Studio\\${RELEASE}\\${...
#!/usr/bin/env python # Copyright 2019 Google Inc. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import os import sys import subprocess ''' Look for the first match in the format C:\\Program Files (x86)\\Microsoft Visual Studio\\${RELEASE}\\${VERSION}\\VC ''...
#!/usr/bin/env python # Copyright 2019 Google Inc. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import os import sys import subprocess ''' Look for the first match in the format C:\\Program Files (x86)\\Microsoft Visual Studio\\${RELEASE}\\${VERSION}\\VC ''...
<commit_before>#!/usr/bin/env python # Copyright 2019 Google Inc. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import os import sys import subprocess ''' Look for the first match in the format C:\\Program Files (x86)\\Microsoft Visual Studio\\${RELEASE}\\${...
7f8455c9687e8c7750fe1cfcbfdf4fd720888012
iis/__init__.py
iis/__init__.py
import logging.config from flask import Flask from flask_sqlalchemy import SQLAlchemy from flask_migrate import Migrate from flask_mail import Mail from flask_user import UserManager, SQLAlchemyAdapter from flask_bootstrap import Bootstrap def create_app(config: object) -> Flask: """Create the flask app. Can be ...
import logging.config from flask import Flask from flask_sqlalchemy import SQLAlchemy from flask_migrate import Migrate from flask_mail import Mail from flask_user import UserManager, SQLAlchemyAdapter from flask_bootstrap import Bootstrap import iis.jobs def create_app(config: object) -> Flask: """Create the f...
Use '"' for string delimeter
Use '"' for string delimeter
Python
agpl-3.0
interactomix/iis,interactomix/iis
import logging.config from flask import Flask from flask_sqlalchemy import SQLAlchemy from flask_migrate import Migrate from flask_mail import Mail from flask_user import UserManager, SQLAlchemyAdapter from flask_bootstrap import Bootstrap def create_app(config: object) -> Flask: """Create the flask app. Can be ...
import logging.config from flask import Flask from flask_sqlalchemy import SQLAlchemy from flask_migrate import Migrate from flask_mail import Mail from flask_user import UserManager, SQLAlchemyAdapter from flask_bootstrap import Bootstrap import iis.jobs def create_app(config: object) -> Flask: """Create the f...
<commit_before>import logging.config from flask import Flask from flask_sqlalchemy import SQLAlchemy from flask_migrate import Migrate from flask_mail import Mail from flask_user import UserManager, SQLAlchemyAdapter from flask_bootstrap import Bootstrap def create_app(config: object) -> Flask: """Create the fla...
import logging.config from flask import Flask from flask_sqlalchemy import SQLAlchemy from flask_migrate import Migrate from flask_mail import Mail from flask_user import UserManager, SQLAlchemyAdapter from flask_bootstrap import Bootstrap import iis.jobs def create_app(config: object) -> Flask: """Create the f...
import logging.config from flask import Flask from flask_sqlalchemy import SQLAlchemy from flask_migrate import Migrate from flask_mail import Mail from flask_user import UserManager, SQLAlchemyAdapter from flask_bootstrap import Bootstrap def create_app(config: object) -> Flask: """Create the flask app. Can be ...
<commit_before>import logging.config from flask import Flask from flask_sqlalchemy import SQLAlchemy from flask_migrate import Migrate from flask_mail import Mail from flask_user import UserManager, SQLAlchemyAdapter from flask_bootstrap import Bootstrap def create_app(config: object) -> Flask: """Create the fla...
7594a1dc0573576e92cfbe8bdcaeab4d5732b3c3
jpa/eclipselink.jpa.test/resource/weblogic/wls_start.py
jpa/eclipselink.jpa.test/resource/weblogic/wls_start.py
############################################################################ # Generic script applicable on any Operating Environments (Unix, Windows) # ScriptName : wls_start.py # Properties : weblogic.properties # Author : Kevin Yuan #############################################################...
############################################################################ # Generic script applicable on any Operating Environments (Unix, Windows) # ScriptName : wls_start.py # Properties : weblogic.properties # Author : Kevin Yuan #############################################################...
Change start-weblogic-server using jdk as default.
Change start-weblogic-server using jdk as default. Code reviewed by Edwin Tang Former-commit-id: 6e2cbb2da770d73e12dfae7d36fd6f1ef00c4ed7
Python
epl-1.0
bfg-repo-cleaner-demos/eclipselink.runtime-bfg-strip-big-blobs,bfg-repo-cleaner-demos/eclipselink.runtime-bfg-strip-big-blobs,bfg-repo-cleaner-demos/eclipselink.runtime-bfg-strip-big-blobs
############################################################################ # Generic script applicable on any Operating Environments (Unix, Windows) # ScriptName : wls_start.py # Properties : weblogic.properties # Author : Kevin Yuan #############################################################...
############################################################################ # Generic script applicable on any Operating Environments (Unix, Windows) # ScriptName : wls_start.py # Properties : weblogic.properties # Author : Kevin Yuan #############################################################...
<commit_before>############################################################################ # Generic script applicable on any Operating Environments (Unix, Windows) # ScriptName : wls_start.py # Properties : weblogic.properties # Author : Kevin Yuan ##############################################...
############################################################################ # Generic script applicable on any Operating Environments (Unix, Windows) # ScriptName : wls_start.py # Properties : weblogic.properties # Author : Kevin Yuan #############################################################...
############################################################################ # Generic script applicable on any Operating Environments (Unix, Windows) # ScriptName : wls_start.py # Properties : weblogic.properties # Author : Kevin Yuan #############################################################...
<commit_before>############################################################################ # Generic script applicable on any Operating Environments (Unix, Windows) # ScriptName : wls_start.py # Properties : weblogic.properties # Author : Kevin Yuan ##############################################...
bbfdbc4b5b6a35105a65910a878be85040cf5263
VMEncryption/main/oscrypto/encryptstates/OSEncryptionState.py
VMEncryption/main/oscrypto/encryptstates/OSEncryptionState.py
#!/usr/bin/env python # # VM Backup extension # # Copyright 2015 Microsoft Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
#!/usr/bin/env python # # VM Backup extension # # Copyright 2015 Microsoft Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
Remove var declaration from abstract base class
Remove var declaration from abstract base class
Python
apache-2.0
soumyanishan/azure-linux-extensions,bpramod/azure-linux-extensions,Azure/azure-linux-extensions,Azure/azure-linux-extensions,vityagi/azure-linux-extensions,Azure/azure-linux-extensions,Azure/azure-linux-extensions,andyliuliming/azure-linux-extensions,andyliuliming/azure-linux-extensions,jasonzio/azure-linux-extensions,...
#!/usr/bin/env python # # VM Backup extension # # Copyright 2015 Microsoft Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
#!/usr/bin/env python # # VM Backup extension # # Copyright 2015 Microsoft Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
<commit_before>#!/usr/bin/env python # # VM Backup extension # # Copyright 2015 Microsoft Corporation # # 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/LI...
#!/usr/bin/env python # # VM Backup extension # # Copyright 2015 Microsoft Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
#!/usr/bin/env python # # VM Backup extension # # Copyright 2015 Microsoft Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
<commit_before>#!/usr/bin/env python # # VM Backup extension # # Copyright 2015 Microsoft Corporation # # 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/LI...
a248ac96a04cccc31f881496e45db3212ad46118
core/components/security/factor.py
core/components/security/factor.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import json from u2flib_server.u2f import (begin_registration, begin_authentication, complete_registration, complete_authentication) from components.eternity import config facet...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import json from u2flib_server.u2f import (begin_registration, begin_authentication, complete_registration, complete_authentication) from components.eternity import config facet...
Fix server error when login with u2f
Fix server error when login with u2f
Python
mit
chiaki64/Windless,chiaki64/Windless
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import json from u2flib_server.u2f import (begin_registration, begin_authentication, complete_registration, complete_authentication) from components.eternity import config facet...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import json from u2flib_server.u2f import (begin_registration, begin_authentication, complete_registration, complete_authentication) from components.eternity import config facet...
<commit_before>#!/usr/bin/env python3 # -*- coding: utf-8 -*- import json from u2flib_server.u2f import (begin_registration, begin_authentication, complete_registration, complete_authentication) from components.eternity import...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import json from u2flib_server.u2f import (begin_registration, begin_authentication, complete_registration, complete_authentication) from components.eternity import config facet...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import json from u2flib_server.u2f import (begin_registration, begin_authentication, complete_registration, complete_authentication) from components.eternity import config facet...
<commit_before>#!/usr/bin/env python3 # -*- coding: utf-8 -*- import json from u2flib_server.u2f import (begin_registration, begin_authentication, complete_registration, complete_authentication) from components.eternity import...
cc27883cd84794f29d9fddab174bb41fc305cdb7
test_fallback.py
test_fallback.py
import platform import sys platform.python_implementation = lambda:'PyPy' def unimport(): del sys.modules['pylibscrypt'] sys.modules.pop('pylibscrypt.common', None) sys.modules.pop('pylibscrypt.mcf', None) sys.modules['pylibscrypt.pylibscrypt'] = None import pylibscrypt unimport() sys.modules['pylibscr...
import platform import sys platform.python_implementation = lambda:'PyPy' def unimport(): del sys.modules['pylibscrypt'] sys.modules.pop('pylibscrypt.common', None) sys.modules.pop('pylibscrypt.mcf', None) sys.modules['pylibscrypt.pylibscrypt'] = None import pylibscrypt unimport() sys.modules['pylibscr...
Test both branches of pylibsodium_salsa choice
Test both branches of pylibsodium_salsa choice
Python
isc
jvarho/pylibscrypt,jvarho/pylibscrypt
import platform import sys platform.python_implementation = lambda:'PyPy' def unimport(): del sys.modules['pylibscrypt'] sys.modules.pop('pylibscrypt.common', None) sys.modules.pop('pylibscrypt.mcf', None) sys.modules['pylibscrypt.pylibscrypt'] = None import pylibscrypt unimport() sys.modules['pylibscr...
import platform import sys platform.python_implementation = lambda:'PyPy' def unimport(): del sys.modules['pylibscrypt'] sys.modules.pop('pylibscrypt.common', None) sys.modules.pop('pylibscrypt.mcf', None) sys.modules['pylibscrypt.pylibscrypt'] = None import pylibscrypt unimport() sys.modules['pylibscr...
<commit_before> import platform import sys platform.python_implementation = lambda:'PyPy' def unimport(): del sys.modules['pylibscrypt'] sys.modules.pop('pylibscrypt.common', None) sys.modules.pop('pylibscrypt.mcf', None) sys.modules['pylibscrypt.pylibscrypt'] = None import pylibscrypt unimport() sys.mo...
import platform import sys platform.python_implementation = lambda:'PyPy' def unimport(): del sys.modules['pylibscrypt'] sys.modules.pop('pylibscrypt.common', None) sys.modules.pop('pylibscrypt.mcf', None) sys.modules['pylibscrypt.pylibscrypt'] = None import pylibscrypt unimport() sys.modules['pylibscr...
import platform import sys platform.python_implementation = lambda:'PyPy' def unimport(): del sys.modules['pylibscrypt'] sys.modules.pop('pylibscrypt.common', None) sys.modules.pop('pylibscrypt.mcf', None) sys.modules['pylibscrypt.pylibscrypt'] = None import pylibscrypt unimport() sys.modules['pylibscr...
<commit_before> import platform import sys platform.python_implementation = lambda:'PyPy' def unimport(): del sys.modules['pylibscrypt'] sys.modules.pop('pylibscrypt.common', None) sys.modules.pop('pylibscrypt.mcf', None) sys.modules['pylibscrypt.pylibscrypt'] = None import pylibscrypt unimport() sys.mo...
94a981693b6a89aa2035aae5ed039a5108196151
test_utils/crawler/plugins/time_plugin.py
test_utils/crawler/plugins/time_plugin.py
import time import logging from base import Plugin LOG = logging.getLogger('crawler') class Time(Plugin): """ Follow the time it takes to run requests. """ def __init__(self): super(Time, self).__init__() self.timed_urls = self.data['timed_urls'] = {} def pre_request(self, sende...
import time import logging import csv import os from base import Plugin LOG = logging.getLogger('crawler') class Time(Plugin): """ Follow the time it takes to run requests. """ csv_writer = None def __init__(self): super(Time, self).__init__() self.timed_urls = self.data['timed_u...
Write out request times to a csv of output_dir is specified
Write out request times to a csv of output_dir is specified
Python
mit
ericholscher/django-test-utils,ericholscher/django-test-utils
import time import logging from base import Plugin LOG = logging.getLogger('crawler') class Time(Plugin): """ Follow the time it takes to run requests. """ def __init__(self): super(Time, self).__init__() self.timed_urls = self.data['timed_urls'] = {} def pre_request(self, sende...
import time import logging import csv import os from base import Plugin LOG = logging.getLogger('crawler') class Time(Plugin): """ Follow the time it takes to run requests. """ csv_writer = None def __init__(self): super(Time, self).__init__() self.timed_urls = self.data['timed_u...
<commit_before>import time import logging from base import Plugin LOG = logging.getLogger('crawler') class Time(Plugin): """ Follow the time it takes to run requests. """ def __init__(self): super(Time, self).__init__() self.timed_urls = self.data['timed_urls'] = {} def pre_requ...
import time import logging import csv import os from base import Plugin LOG = logging.getLogger('crawler') class Time(Plugin): """ Follow the time it takes to run requests. """ csv_writer = None def __init__(self): super(Time, self).__init__() self.timed_urls = self.data['timed_u...
import time import logging from base import Plugin LOG = logging.getLogger('crawler') class Time(Plugin): """ Follow the time it takes to run requests. """ def __init__(self): super(Time, self).__init__() self.timed_urls = self.data['timed_urls'] = {} def pre_request(self, sende...
<commit_before>import time import logging from base import Plugin LOG = logging.getLogger('crawler') class Time(Plugin): """ Follow the time it takes to run requests. """ def __init__(self): super(Time, self).__init__() self.timed_urls = self.data['timed_urls'] = {} def pre_requ...
480525b10dcac543a34a09b00051bd3dca1609f0
src/ggrc/migrations/versions/20151204135707_504f541411a5_comment_assignee_type.py
src/ggrc/migrations/versions/20151204135707_504f541411a5_comment_assignee_type.py
"""Comment assignee type Revision ID: 504f541411a5 Revises: 18cbdd3a7fd9 Create Date: 2015-12-04 13:57:07.047217 """ # revision identifiers, used by Alembic. revision = '504f541411a5' down_revision = '18cbdd3a7fd9' from alembic import op import sqlalchemy as sa def upgrade(): op.add_column( "comments", ...
# Copyright (C) 2015 Google Inc., authors, and contributors <see AUTHORS file> # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> # Created By: [email protected] # Maintained By: [email protected] """Comment assignee type Revision ID: 504f541411a5 Revises: 18cbdd3a7fd9 Create...
Add licence header to migration
Add licence header to migration
Python
apache-2.0
jmakov/ggrc-core,kr41/ggrc-core,andrei-karalionak/ggrc-core,selahssea/ggrc-core,andrei-karalionak/ggrc-core,NejcZupec/ggrc-core,NejcZupec/ggrc-core,selahssea/ggrc-core,NejcZupec/ggrc-core,selahssea/ggrc-core,andrei-karalionak/ggrc-core,josthkko/ggrc-core,edofic/ggrc-core,andrei-karalionak/ggrc-core,prasannav7/ggrc-core...
"""Comment assignee type Revision ID: 504f541411a5 Revises: 18cbdd3a7fd9 Create Date: 2015-12-04 13:57:07.047217 """ # revision identifiers, used by Alembic. revision = '504f541411a5' down_revision = '18cbdd3a7fd9' from alembic import op import sqlalchemy as sa def upgrade(): op.add_column( "comments", ...
# Copyright (C) 2015 Google Inc., authors, and contributors <see AUTHORS file> # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> # Created By: [email protected] # Maintained By: [email protected] """Comment assignee type Revision ID: 504f541411a5 Revises: 18cbdd3a7fd9 Create...
<commit_before> """Comment assignee type Revision ID: 504f541411a5 Revises: 18cbdd3a7fd9 Create Date: 2015-12-04 13:57:07.047217 """ # revision identifiers, used by Alembic. revision = '504f541411a5' down_revision = '18cbdd3a7fd9' from alembic import op import sqlalchemy as sa def upgrade(): op.add_column( ...
# Copyright (C) 2015 Google Inc., authors, and contributors <see AUTHORS file> # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> # Created By: [email protected] # Maintained By: [email protected] """Comment assignee type Revision ID: 504f541411a5 Revises: 18cbdd3a7fd9 Create...
"""Comment assignee type Revision ID: 504f541411a5 Revises: 18cbdd3a7fd9 Create Date: 2015-12-04 13:57:07.047217 """ # revision identifiers, used by Alembic. revision = '504f541411a5' down_revision = '18cbdd3a7fd9' from alembic import op import sqlalchemy as sa def upgrade(): op.add_column( "comments", ...
<commit_before> """Comment assignee type Revision ID: 504f541411a5 Revises: 18cbdd3a7fd9 Create Date: 2015-12-04 13:57:07.047217 """ # revision identifiers, used by Alembic. revision = '504f541411a5' down_revision = '18cbdd3a7fd9' from alembic import op import sqlalchemy as sa def upgrade(): op.add_column( ...
e692ea935713b21dbaefb8cf270831413b5f7bd2
mzalendo/core/management/commands/core_fix_ward_names.py
mzalendo/core/management/commands/core_fix_ward_names.py
import re from django.core.management.base import NoArgsCommand, CommandError from django.template.defaultfilters import slugify from optparse import make_option from core.models import PlaceKind, Place class Command(NoArgsCommand): help = 'Standardize the form of ward names with regard to / and - separators' ...
import re from django.core.management.base import NoArgsCommand, CommandError from django.template.defaultfilters import slugify from optparse import make_option from core.models import PlaceKind, Place def slugify_place_name(place_name): return 'ward-' + slugify(place_name) class Command(NoArgsCommand): ...
Update ward names even if just the slug would have changed
Update ward names even if just the slug would have changed
Python
agpl-3.0
mysociety/pombola,geoffkilpin/pombola,geoffkilpin/pombola,patricmutwiri/pombola,ken-muturi/pombola,geoffkilpin/pombola,patricmutwiri/pombola,ken-muturi/pombola,mysociety/pombola,patricmutwiri/pombola,hzj123/56th,patricmutwiri/pombola,mysociety/pombola,patricmutwiri/pombola,hzj123/56th,ken-muturi/pombola,geoffkilpin/pom...
import re from django.core.management.base import NoArgsCommand, CommandError from django.template.defaultfilters import slugify from optparse import make_option from core.models import PlaceKind, Place class Command(NoArgsCommand): help = 'Standardize the form of ward names with regard to / and - separators' ...
import re from django.core.management.base import NoArgsCommand, CommandError from django.template.defaultfilters import slugify from optparse import make_option from core.models import PlaceKind, Place def slugify_place_name(place_name): return 'ward-' + slugify(place_name) class Command(NoArgsCommand): ...
<commit_before>import re from django.core.management.base import NoArgsCommand, CommandError from django.template.defaultfilters import slugify from optparse import make_option from core.models import PlaceKind, Place class Command(NoArgsCommand): help = 'Standardize the form of ward names with regard to / and...
import re from django.core.management.base import NoArgsCommand, CommandError from django.template.defaultfilters import slugify from optparse import make_option from core.models import PlaceKind, Place def slugify_place_name(place_name): return 'ward-' + slugify(place_name) class Command(NoArgsCommand): ...
import re from django.core.management.base import NoArgsCommand, CommandError from django.template.defaultfilters import slugify from optparse import make_option from core.models import PlaceKind, Place class Command(NoArgsCommand): help = 'Standardize the form of ward names with regard to / and - separators' ...
<commit_before>import re from django.core.management.base import NoArgsCommand, CommandError from django.template.defaultfilters import slugify from optparse import make_option from core.models import PlaceKind, Place class Command(NoArgsCommand): help = 'Standardize the form of ward names with regard to / and...
d144e30d557ea2f4b03a2f0b7fb68f1cee54a602
cla_backend/apps/legalaid/migrations/0023_migrate_contact_for_research_via_field.py
cla_backend/apps/legalaid/migrations/0023_migrate_contact_for_research_via_field.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations from django.db.models import Q def migrate_contact_for_research_via_field_data(apps, schema_editor): ContactResearchMethod = apps.get_model("legalaid", "ContactResearchMethod") research_methods = {method.method: ...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations def migrate_contact_for_research_via_field_data(apps, schema_editor): ContactResearchMethod = apps.get_model("legalaid", "ContactResearchMethod") PersonalDetails = apps.get_model("legalaid", "PersonalDetails") ...
Simplify data migration and make it safe to rerun
Simplify data migration and make it safe to rerun
Python
mit
ministryofjustice/cla_backend,ministryofjustice/cla_backend,ministryofjustice/cla_backend,ministryofjustice/cla_backend
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations from django.db.models import Q def migrate_contact_for_research_via_field_data(apps, schema_editor): ContactResearchMethod = apps.get_model("legalaid", "ContactResearchMethod") research_methods = {method.method: ...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations def migrate_contact_for_research_via_field_data(apps, schema_editor): ContactResearchMethod = apps.get_model("legalaid", "ContactResearchMethod") PersonalDetails = apps.get_model("legalaid", "PersonalDetails") ...
<commit_before># -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations from django.db.models import Q def migrate_contact_for_research_via_field_data(apps, schema_editor): ContactResearchMethod = apps.get_model("legalaid", "ContactResearchMethod") research_methods = {...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations def migrate_contact_for_research_via_field_data(apps, schema_editor): ContactResearchMethod = apps.get_model("legalaid", "ContactResearchMethod") PersonalDetails = apps.get_model("legalaid", "PersonalDetails") ...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations from django.db.models import Q def migrate_contact_for_research_via_field_data(apps, schema_editor): ContactResearchMethod = apps.get_model("legalaid", "ContactResearchMethod") research_methods = {method.method: ...
<commit_before># -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations from django.db.models import Q def migrate_contact_for_research_via_field_data(apps, schema_editor): ContactResearchMethod = apps.get_model("legalaid", "ContactResearchMethod") research_methods = {...
7d993541b9097062d922bdd8030f7ef1bcbb0129
apps/package/handlers/launchpad.py
apps/package/handlers/launchpad.py
import os from django.conf import settings from launchpadlib.launchpad import Launchpad def pull(package): cachedir = getattr(settings, 'LAUNCHPAD_CACHE_DIR', os.path.join(settings.PROJECT_ROOT, 'lp-cache')) launchpad = Launchpad.login_anonymously('djangopackages.com', 'production', cachedir) repo_...
import os from django.conf import settings from launchpadlib.launchpad import Launchpad from package.handlers.base_handler import BaseHandler class LaunchpadHandler(BaseHandler): title = 'Launchpad' url = 'https://code.launchpad.net' user_url = 'https://launchpad.net/~%s' repo_regex = r'https://code...
Refactor Launchpad handler to use BaseHandler.
Refactor Launchpad handler to use BaseHandler.
Python
mit
QLGu/djangopackages,pydanny/djangopackages,audreyr/opencomparison,nanuxbe/djangopackages,QLGu/djangopackages,miketheman/opencomparison,audreyr/opencomparison,QLGu/djangopackages,pydanny/djangopackages,cartwheelweb/packaginator,benracine/opencomparison,cartwheelweb/packaginator,nanuxbe/djangopackages,nanuxbe/djangopacka...
import os from django.conf import settings from launchpadlib.launchpad import Launchpad def pull(package): cachedir = getattr(settings, 'LAUNCHPAD_CACHE_DIR', os.path.join(settings.PROJECT_ROOT, 'lp-cache')) launchpad = Launchpad.login_anonymously('djangopackages.com', 'production', cachedir) repo_...
import os from django.conf import settings from launchpadlib.launchpad import Launchpad from package.handlers.base_handler import BaseHandler class LaunchpadHandler(BaseHandler): title = 'Launchpad' url = 'https://code.launchpad.net' user_url = 'https://launchpad.net/~%s' repo_regex = r'https://code...
<commit_before>import os from django.conf import settings from launchpadlib.launchpad import Launchpad def pull(package): cachedir = getattr(settings, 'LAUNCHPAD_CACHE_DIR', os.path.join(settings.PROJECT_ROOT, 'lp-cache')) launchpad = Launchpad.login_anonymously('djangopackages.com', 'production', cach...
import os from django.conf import settings from launchpadlib.launchpad import Launchpad from package.handlers.base_handler import BaseHandler class LaunchpadHandler(BaseHandler): title = 'Launchpad' url = 'https://code.launchpad.net' user_url = 'https://launchpad.net/~%s' repo_regex = r'https://code...
import os from django.conf import settings from launchpadlib.launchpad import Launchpad def pull(package): cachedir = getattr(settings, 'LAUNCHPAD_CACHE_DIR', os.path.join(settings.PROJECT_ROOT, 'lp-cache')) launchpad = Launchpad.login_anonymously('djangopackages.com', 'production', cachedir) repo_...
<commit_before>import os from django.conf import settings from launchpadlib.launchpad import Launchpad def pull(package): cachedir = getattr(settings, 'LAUNCHPAD_CACHE_DIR', os.path.join(settings.PROJECT_ROOT, 'lp-cache')) launchpad = Launchpad.login_anonymously('djangopackages.com', 'production', cach...
c80424ca0dd8d748f7da167a588582ee94986da0
polling_stations/apps/data_importers/management/commands/import_highland.py
polling_stations/apps/data_importers/management/commands/import_highland.py
from data_importers.management.commands import BaseDemocracyCountsCsvImporter class Command(BaseDemocracyCountsCsvImporter): council_id = "HLD" addresses_name = ( "2022-05-05/2022-03-24T15:19:09.669660/H Democracy Club - Polling Districts.csv" ) stations_name = ( "2022-05-05/2022-03-24...
from data_importers.management.commands import BaseDemocracyCountsCsvImporter class Command(BaseDemocracyCountsCsvImporter): council_id = "HLD" addresses_name = ( "2022-05-05/2022-03-24T15:19:09.669660/H Democracy Club - Polling Districts.csv" ) stations_name = ( "2022-05-05/2022-03-24...
Set don't use station coords for geocoding
Set don't use station coords for geocoding
Python
bsd-3-clause
DemocracyClub/UK-Polling-Stations,DemocracyClub/UK-Polling-Stations,DemocracyClub/UK-Polling-Stations
from data_importers.management.commands import BaseDemocracyCountsCsvImporter class Command(BaseDemocracyCountsCsvImporter): council_id = "HLD" addresses_name = ( "2022-05-05/2022-03-24T15:19:09.669660/H Democracy Club - Polling Districts.csv" ) stations_name = ( "2022-05-05/2022-03-24...
from data_importers.management.commands import BaseDemocracyCountsCsvImporter class Command(BaseDemocracyCountsCsvImporter): council_id = "HLD" addresses_name = ( "2022-05-05/2022-03-24T15:19:09.669660/H Democracy Club - Polling Districts.csv" ) stations_name = ( "2022-05-05/2022-03-24...
<commit_before>from data_importers.management.commands import BaseDemocracyCountsCsvImporter class Command(BaseDemocracyCountsCsvImporter): council_id = "HLD" addresses_name = ( "2022-05-05/2022-03-24T15:19:09.669660/H Democracy Club - Polling Districts.csv" ) stations_name = ( "2022-0...
from data_importers.management.commands import BaseDemocracyCountsCsvImporter class Command(BaseDemocracyCountsCsvImporter): council_id = "HLD" addresses_name = ( "2022-05-05/2022-03-24T15:19:09.669660/H Democracy Club - Polling Districts.csv" ) stations_name = ( "2022-05-05/2022-03-24...
from data_importers.management.commands import BaseDemocracyCountsCsvImporter class Command(BaseDemocracyCountsCsvImporter): council_id = "HLD" addresses_name = ( "2022-05-05/2022-03-24T15:19:09.669660/H Democracy Club - Polling Districts.csv" ) stations_name = ( "2022-05-05/2022-03-24...
<commit_before>from data_importers.management.commands import BaseDemocracyCountsCsvImporter class Command(BaseDemocracyCountsCsvImporter): council_id = "HLD" addresses_name = ( "2022-05-05/2022-03-24T15:19:09.669660/H Democracy Club - Polling Districts.csv" ) stations_name = ( "2022-0...
9ef92435a94d01d963b25e10bfb681daf04df193
dbaas/integrations/iaas/manager.py
dbaas/integrations/iaas/manager.py
from dbaas_cloudstack.provider import CloudStackProvider from pre_provisioned.pre_provisioned_provider import PreProvisionedProvider from integrations.monitoring.manager import MonitoringManager import logging LOG = logging.getLogger(__name__) class IaaSManager(): @classmethod def destroy_instance(cls, ...
from dbaas_cloudstack.provider import CloudStackProvider from pre_provisioned.pre_provisioned_provider import PreProvisionedProvider from integrations.monitoring.manager import MonitoringManager import logging LOG = logging.getLogger(__name__) class IaaSManager(): @classmethod def destroy_instance(cls, ...
Remove monitoring only after database quarantine
Remove monitoring only after database quarantine
Python
bsd-3-clause
globocom/database-as-a-service,globocom/database-as-a-service,globocom/database-as-a-service,globocom/database-as-a-service
from dbaas_cloudstack.provider import CloudStackProvider from pre_provisioned.pre_provisioned_provider import PreProvisionedProvider from integrations.monitoring.manager import MonitoringManager import logging LOG = logging.getLogger(__name__) class IaaSManager(): @classmethod def destroy_instance(cls, ...
from dbaas_cloudstack.provider import CloudStackProvider from pre_provisioned.pre_provisioned_provider import PreProvisionedProvider from integrations.monitoring.manager import MonitoringManager import logging LOG = logging.getLogger(__name__) class IaaSManager(): @classmethod def destroy_instance(cls, ...
<commit_before>from dbaas_cloudstack.provider import CloudStackProvider from pre_provisioned.pre_provisioned_provider import PreProvisionedProvider from integrations.monitoring.manager import MonitoringManager import logging LOG = logging.getLogger(__name__) class IaaSManager(): @classmethod def destroy...
from dbaas_cloudstack.provider import CloudStackProvider from pre_provisioned.pre_provisioned_provider import PreProvisionedProvider from integrations.monitoring.manager import MonitoringManager import logging LOG = logging.getLogger(__name__) class IaaSManager(): @classmethod def destroy_instance(cls, ...
from dbaas_cloudstack.provider import CloudStackProvider from pre_provisioned.pre_provisioned_provider import PreProvisionedProvider from integrations.monitoring.manager import MonitoringManager import logging LOG = logging.getLogger(__name__) class IaaSManager(): @classmethod def destroy_instance(cls, ...
<commit_before>from dbaas_cloudstack.provider import CloudStackProvider from pre_provisioned.pre_provisioned_provider import PreProvisionedProvider from integrations.monitoring.manager import MonitoringManager import logging LOG = logging.getLogger(__name__) class IaaSManager(): @classmethod def destroy...
5e1e85c3de2183c3bf0d497a161356044e1e36c1
admin.py
admin.py
# -*- coding: utf-8 -*- from django.contrib import admin from .models import Announcement class AnnouncementAdmin(admin.ModelAdmin): search_fields = ('message', 'extra_tags') list_display = ('message', 'extra_tags', 'level', 'is_active', 'crdate', 'tstamp') list_filt...
# -*- coding: utf-8 -*- from django.contrib import admin from .models import Announcement class AnnouncementAdmin(admin.ModelAdmin): search_fields = ('message', 'extra_tags') list_display = ('message', 'extra_tags', 'level', 'is_active', 'crdate', 'tstamp') list_filt...
Disable date_hierarchy for now since it requires tzinfo in MySQL
Disable date_hierarchy for now since it requires tzinfo in MySQL
Python
mit
mback2k/django-app-announcements
# -*- coding: utf-8 -*- from django.contrib import admin from .models import Announcement class AnnouncementAdmin(admin.ModelAdmin): search_fields = ('message', 'extra_tags') list_display = ('message', 'extra_tags', 'level', 'is_active', 'crdate', 'tstamp') list_filt...
# -*- coding: utf-8 -*- from django.contrib import admin from .models import Announcement class AnnouncementAdmin(admin.ModelAdmin): search_fields = ('message', 'extra_tags') list_display = ('message', 'extra_tags', 'level', 'is_active', 'crdate', 'tstamp') list_filt...
<commit_before># -*- coding: utf-8 -*- from django.contrib import admin from .models import Announcement class AnnouncementAdmin(admin.ModelAdmin): search_fields = ('message', 'extra_tags') list_display = ('message', 'extra_tags', 'level', 'is_active', 'crdate', 'tstamp'...
# -*- coding: utf-8 -*- from django.contrib import admin from .models import Announcement class AnnouncementAdmin(admin.ModelAdmin): search_fields = ('message', 'extra_tags') list_display = ('message', 'extra_tags', 'level', 'is_active', 'crdate', 'tstamp') list_filt...
# -*- coding: utf-8 -*- from django.contrib import admin from .models import Announcement class AnnouncementAdmin(admin.ModelAdmin): search_fields = ('message', 'extra_tags') list_display = ('message', 'extra_tags', 'level', 'is_active', 'crdate', 'tstamp') list_filt...
<commit_before># -*- coding: utf-8 -*- from django.contrib import admin from .models import Announcement class AnnouncementAdmin(admin.ModelAdmin): search_fields = ('message', 'extra_tags') list_display = ('message', 'extra_tags', 'level', 'is_active', 'crdate', 'tstamp'...
9c4ecf0b72d86ae113fa13f210c543120635b73e
board.py
board.py
import numpy """ Board represents a four in a row game board. Author: Isaac Arvestad """ class Board: """ Initializes the game with a certain number of rows and columns. """ def __init(self, rows, columns): self.rows = rows self.columns = columns self.boardMatrix = numpy.ze...
import numpy """ Board represents a four in a row game board. Author: Isaac Arvestad """ class Board: """ Initializes the game with a certain number of rows and columns. """ def __init__(self, rows, columns): self.rows = rows self.columns = columns self.boardMatrix = numpy....
Fix init method, self.rows and capital booleans.
Fix init method, self.rows and capital booleans.
Python
mit
isaacarvestad/four-in-a-row
import numpy """ Board represents a four in a row game board. Author: Isaac Arvestad """ class Board: """ Initializes the game with a certain number of rows and columns. """ def __init(self, rows, columns): self.rows = rows self.columns = columns self.boardMatrix = numpy.ze...
import numpy """ Board represents a four in a row game board. Author: Isaac Arvestad """ class Board: """ Initializes the game with a certain number of rows and columns. """ def __init__(self, rows, columns): self.rows = rows self.columns = columns self.boardMatrix = numpy....
<commit_before>import numpy """ Board represents a four in a row game board. Author: Isaac Arvestad """ class Board: """ Initializes the game with a certain number of rows and columns. """ def __init(self, rows, columns): self.rows = rows self.columns = columns self.boardMa...
import numpy """ Board represents a four in a row game board. Author: Isaac Arvestad """ class Board: """ Initializes the game with a certain number of rows and columns. """ def __init__(self, rows, columns): self.rows = rows self.columns = columns self.boardMatrix = numpy....
import numpy """ Board represents a four in a row game board. Author: Isaac Arvestad """ class Board: """ Initializes the game with a certain number of rows and columns. """ def __init(self, rows, columns): self.rows = rows self.columns = columns self.boardMatrix = numpy.ze...
<commit_before>import numpy """ Board represents a four in a row game board. Author: Isaac Arvestad """ class Board: """ Initializes the game with a certain number of rows and columns. """ def __init(self, rows, columns): self.rows = rows self.columns = columns self.boardMa...
73f7f64ff5a29d5fa007ad44f2d68c6dc2ae65d7
sql/src/test/BugTracker/Tests/connect_crash.SF-1436626.py
sql/src/test/BugTracker/Tests/connect_crash.SF-1436626.py
import os, time def main(): srvcmd = '%s --dbname "%s" --dbinit "include sql;"' % (os.getenv('MSERVER'),os.getenv('TSTDB')) srv = os.popen(srvcmd, 'w') time.sleep(10) # give server time to start cltcmd = os.getenv('SQL_CLIENT') clt = os.popen(cltcmd, 'w') clt.write('select ...
import subprocess, os, time def main(): srvcmd = '%s --dbname "%s" --dbinit "include sql;"' % (os.getenv('MSERVER'),os.getenv('TSTDB')) srv = subprocess.Popen(srvcmd, shell = True, stdin = subprocess.PIPE) time.sleep(10) # give server time to start cltcmd = os.getenv('SQL_CLIENT') ...
Use the subprocess module to start processes with pipes. This seems to fix the lack of output on Windows.
Use the subprocess module to start processes with pipes. This seems to fix the lack of output on Windows.
Python
mpl-2.0
zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb
import os, time def main(): srvcmd = '%s --dbname "%s" --dbinit "include sql;"' % (os.getenv('MSERVER'),os.getenv('TSTDB')) srv = os.popen(srvcmd, 'w') time.sleep(10) # give server time to start cltcmd = os.getenv('SQL_CLIENT') clt = os.popen(cltcmd, 'w') clt.write('select ...
import subprocess, os, time def main(): srvcmd = '%s --dbname "%s" --dbinit "include sql;"' % (os.getenv('MSERVER'),os.getenv('TSTDB')) srv = subprocess.Popen(srvcmd, shell = True, stdin = subprocess.PIPE) time.sleep(10) # give server time to start cltcmd = os.getenv('SQL_CLIENT') ...
<commit_before>import os, time def main(): srvcmd = '%s --dbname "%s" --dbinit "include sql;"' % (os.getenv('MSERVER'),os.getenv('TSTDB')) srv = os.popen(srvcmd, 'w') time.sleep(10) # give server time to start cltcmd = os.getenv('SQL_CLIENT') clt = os.popen(cltcmd, 'w') clt...
import subprocess, os, time def main(): srvcmd = '%s --dbname "%s" --dbinit "include sql;"' % (os.getenv('MSERVER'),os.getenv('TSTDB')) srv = subprocess.Popen(srvcmd, shell = True, stdin = subprocess.PIPE) time.sleep(10) # give server time to start cltcmd = os.getenv('SQL_CLIENT') ...
import os, time def main(): srvcmd = '%s --dbname "%s" --dbinit "include sql;"' % (os.getenv('MSERVER'),os.getenv('TSTDB')) srv = os.popen(srvcmd, 'w') time.sleep(10) # give server time to start cltcmd = os.getenv('SQL_CLIENT') clt = os.popen(cltcmd, 'w') clt.write('select ...
<commit_before>import os, time def main(): srvcmd = '%s --dbname "%s" --dbinit "include sql;"' % (os.getenv('MSERVER'),os.getenv('TSTDB')) srv = os.popen(srvcmd, 'w') time.sleep(10) # give server time to start cltcmd = os.getenv('SQL_CLIENT') clt = os.popen(cltcmd, 'w') clt...
20541c6c22f08c24ee0b984b34d66acf03f3a529
src/pythonModules/fourgp_cannon/fourgp_cannon/__init__.py
src/pythonModules/fourgp_cannon/fourgp_cannon/__init__.py
#!/usr/bin/env python2.7 # -*- coding: utf-8 -*- import logging from numpy import RankWarning from warnings import simplefilter from .cannon_instance import \ CannonInstance, \ CannonInstanceWithContinuumNormalisation, \ CannonInstanceWithRunningMeanNormalisation from .cannon_instance_release_2018_01_09_...
#!/usr/bin/env python2.7 # -*- coding: utf-8 -*- import logging from numpy import RankWarning from warnings import simplefilter #from .cannon_instance import \ # CannonInstance, \ # CannonInstanceWithContinuumNormalisation, \ # CannonInstanceWithRunningMeanNormalisation CannonInstance = CannonInstanceWithCo...
Tweak to remove dependency on new Cannon
Tweak to remove dependency on new Cannon
Python
mit
dcf21/4most-4gp,dcf21/4most-4gp,dcf21/4most-4gp
#!/usr/bin/env python2.7 # -*- coding: utf-8 -*- import logging from numpy import RankWarning from warnings import simplefilter from .cannon_instance import \ CannonInstance, \ CannonInstanceWithContinuumNormalisation, \ CannonInstanceWithRunningMeanNormalisation from .cannon_instance_release_2018_01_09_...
#!/usr/bin/env python2.7 # -*- coding: utf-8 -*- import logging from numpy import RankWarning from warnings import simplefilter #from .cannon_instance import \ # CannonInstance, \ # CannonInstanceWithContinuumNormalisation, \ # CannonInstanceWithRunningMeanNormalisation CannonInstance = CannonInstanceWithCo...
<commit_before>#!/usr/bin/env python2.7 # -*- coding: utf-8 -*- import logging from numpy import RankWarning from warnings import simplefilter from .cannon_instance import \ CannonInstance, \ CannonInstanceWithContinuumNormalisation, \ CannonInstanceWithRunningMeanNormalisation from .cannon_instance_rele...
#!/usr/bin/env python2.7 # -*- coding: utf-8 -*- import logging from numpy import RankWarning from warnings import simplefilter #from .cannon_instance import \ # CannonInstance, \ # CannonInstanceWithContinuumNormalisation, \ # CannonInstanceWithRunningMeanNormalisation CannonInstance = CannonInstanceWithCo...
#!/usr/bin/env python2.7 # -*- coding: utf-8 -*- import logging from numpy import RankWarning from warnings import simplefilter from .cannon_instance import \ CannonInstance, \ CannonInstanceWithContinuumNormalisation, \ CannonInstanceWithRunningMeanNormalisation from .cannon_instance_release_2018_01_09_...
<commit_before>#!/usr/bin/env python2.7 # -*- coding: utf-8 -*- import logging from numpy import RankWarning from warnings import simplefilter from .cannon_instance import \ CannonInstance, \ CannonInstanceWithContinuumNormalisation, \ CannonInstanceWithRunningMeanNormalisation from .cannon_instance_rele...
db0921e0242d478d29115179b9da2ffcd3fa35fb
micromanager/resources/__init__.py
micromanager/resources/__init__.py
from .base import ResourceBase # noqa F401 from .bucket import Bucket # noqa F401 from .sql import SQLInstance # noqa F401 from .bigquery import BQDataset # noqa F401 class Resource(): @staticmethod def factory(resource_data): resource_kind_map = { 'storage#bucket': Bucket, ...
from .base import ResourceBase # noqa F401 from .bucket import Bucket # noqa F401 from .sql import SQLInstance # noqa F401 from .bigquery import BQDataset # noqa F401 class Resource(): @staticmethod def factory(resource_data, **kargs): resource_kind_map = { 'storage#bucket': ...
Allow kargs in resource factory
Allow kargs in resource factory
Python
apache-2.0
forseti-security/resource-policy-evaluation-library
from .base import ResourceBase # noqa F401 from .bucket import Bucket # noqa F401 from .sql import SQLInstance # noqa F401 from .bigquery import BQDataset # noqa F401 class Resource(): @staticmethod def factory(resource_data): resource_kind_map = { 'storage#bucket': Bucket, ...
from .base import ResourceBase # noqa F401 from .bucket import Bucket # noqa F401 from .sql import SQLInstance # noqa F401 from .bigquery import BQDataset # noqa F401 class Resource(): @staticmethod def factory(resource_data, **kargs): resource_kind_map = { 'storage#bucket': ...
<commit_before>from .base import ResourceBase # noqa F401 from .bucket import Bucket # noqa F401 from .sql import SQLInstance # noqa F401 from .bigquery import BQDataset # noqa F401 class Resource(): @staticmethod def factory(resource_data): resource_kind_map = { 'storage#buc...
from .base import ResourceBase # noqa F401 from .bucket import Bucket # noqa F401 from .sql import SQLInstance # noqa F401 from .bigquery import BQDataset # noqa F401 class Resource(): @staticmethod def factory(resource_data, **kargs): resource_kind_map = { 'storage#bucket': ...
from .base import ResourceBase # noqa F401 from .bucket import Bucket # noqa F401 from .sql import SQLInstance # noqa F401 from .bigquery import BQDataset # noqa F401 class Resource(): @staticmethod def factory(resource_data): resource_kind_map = { 'storage#bucket': Bucket, ...
<commit_before>from .base import ResourceBase # noqa F401 from .bucket import Bucket # noqa F401 from .sql import SQLInstance # noqa F401 from .bigquery import BQDataset # noqa F401 class Resource(): @staticmethod def factory(resource_data): resource_kind_map = { 'storage#buc...
6e40897f935f504bb0bf3e60fbf9d1ef54786d2e
smoked/test/url.py
smoked/test/url.py
# coding: utf-8 from __future__ import unicode_literals from django.utils.six.moves.urllib.request import urlopen def url_available(url=None, expected_code=200): """ Check availability (HTTP response code) of single resource """ assert urlopen(url).getcode() == expected_code
# coding: utf-8 from __future__ import unicode_literals from django.utils.six.moves.urllib.request import urlopen from django.utils.six.moves.urllib.error import HTTPError def url_available(url=None, expected_code=200): """ Check availability (HTTP response code) of single resource """ try: assert ur...
Fix for testing error pages
Fix for testing error pages calling url_available(url='http://doesnotexist.com', expected_code=404) # raise exception
Python
mit
djentlemen/django-smoked
# coding: utf-8 from __future__ import unicode_literals from django.utils.six.moves.urllib.request import urlopen def url_available(url=None, expected_code=200): """ Check availability (HTTP response code) of single resource """ assert urlopen(url).getcode() == expected_code Fix for testing error pages call...
# coding: utf-8 from __future__ import unicode_literals from django.utils.six.moves.urllib.request import urlopen from django.utils.six.moves.urllib.error import HTTPError def url_available(url=None, expected_code=200): """ Check availability (HTTP response code) of single resource """ try: assert ur...
<commit_before># coding: utf-8 from __future__ import unicode_literals from django.utils.six.moves.urllib.request import urlopen def url_available(url=None, expected_code=200): """ Check availability (HTTP response code) of single resource """ assert urlopen(url).getcode() == expected_code <commit_msg>Fix fo...
# coding: utf-8 from __future__ import unicode_literals from django.utils.six.moves.urllib.request import urlopen from django.utils.six.moves.urllib.error import HTTPError def url_available(url=None, expected_code=200): """ Check availability (HTTP response code) of single resource """ try: assert ur...
# coding: utf-8 from __future__ import unicode_literals from django.utils.six.moves.urllib.request import urlopen def url_available(url=None, expected_code=200): """ Check availability (HTTP response code) of single resource """ assert urlopen(url).getcode() == expected_code Fix for testing error pages call...
<commit_before># coding: utf-8 from __future__ import unicode_literals from django.utils.six.moves.urllib.request import urlopen def url_available(url=None, expected_code=200): """ Check availability (HTTP response code) of single resource """ assert urlopen(url).getcode() == expected_code <commit_msg>Fix fo...
29a737c8d964ee54583e1e7f86a1c2cb6d09abb6
speciesexplorer.py
speciesexplorer.py
import webapp2 class MainPage(webapp2.RequestHandler): def get(self): self.response.write(file('index.html').read()) application = webapp2.WSGIApplication([ ('/', MainPage), ], debug=True)
import webapp2 class MainPage(webapp2.RequestHandler): def get(self): self.response.write(file('index.html').read()) class GoogleWebmasterVerifier(webapp2.RequestHandler): def get(self): self.response.write(file('google7e0693b4ccda33f7.html').read()) application = webapp2.WSGIApplication([ ...
Add Google Webmaster verification handler.
Add Google Webmaster verification handler.
Python
apache-2.0
harokb/SpeciesTree,harokb/SpeciesTree
import webapp2 class MainPage(webapp2.RequestHandler): def get(self): self.response.write(file('index.html').read()) application = webapp2.WSGIApplication([ ('/', MainPage), ], debug=True) Add Google Webmaster verification handler.
import webapp2 class MainPage(webapp2.RequestHandler): def get(self): self.response.write(file('index.html').read()) class GoogleWebmasterVerifier(webapp2.RequestHandler): def get(self): self.response.write(file('google7e0693b4ccda33f7.html').read()) application = webapp2.WSGIApplication([ ...
<commit_before>import webapp2 class MainPage(webapp2.RequestHandler): def get(self): self.response.write(file('index.html').read()) application = webapp2.WSGIApplication([ ('/', MainPage), ], debug=True) <commit_msg>Add Google Webmaster verification handler.<commit_after>
import webapp2 class MainPage(webapp2.RequestHandler): def get(self): self.response.write(file('index.html').read()) class GoogleWebmasterVerifier(webapp2.RequestHandler): def get(self): self.response.write(file('google7e0693b4ccda33f7.html').read()) application = webapp2.WSGIApplication([ ...
import webapp2 class MainPage(webapp2.RequestHandler): def get(self): self.response.write(file('index.html').read()) application = webapp2.WSGIApplication([ ('/', MainPage), ], debug=True) Add Google Webmaster verification handler.import webapp2 class MainPage(webapp2.RequestHandler): def get(sel...
<commit_before>import webapp2 class MainPage(webapp2.RequestHandler): def get(self): self.response.write(file('index.html').read()) application = webapp2.WSGIApplication([ ('/', MainPage), ], debug=True) <commit_msg>Add Google Webmaster verification handler.<commit_after>import webapp2 class MainPage...
f36a46766b3111d9acb3a11f30e170629989913e
OnlineParticipationDataset/spiders/Bonn2011Spider.py
OnlineParticipationDataset/spiders/Bonn2011Spider.py
import scrapy class Bonn2011Spider(scrapy.Spider): name = "bonn2011" start_urls = ['http://bonn-packts-an-2011.de/www.bonn-packts-an.de/dito/forumc0d2.html'] def parse(self, response): for thread in response.css('div.vorschlag.buergervorschlag'): yield scrapy.Request(thread,callback=se...
import scrapy class Bonn2011Spider(scrapy.Spider): name = "bonn2011" start_urls = ['http://bonn-packts-an-2011.de/www.bonn-packts-an.de/dito/forumc0d2.html'] def parse(self, response): for thread in response.css('div.vorschlag.buergervorschlag'): thread_url = thread.xpath('//div[@class...
Correct call of second parse method
Correct call of second parse method
Python
mit
Liebeck/OnlineParticipationDatasets
import scrapy class Bonn2011Spider(scrapy.Spider): name = "bonn2011" start_urls = ['http://bonn-packts-an-2011.de/www.bonn-packts-an.de/dito/forumc0d2.html'] def parse(self, response): for thread in response.css('div.vorschlag.buergervorschlag'): yield scrapy.Request(thread,callback=se...
import scrapy class Bonn2011Spider(scrapy.Spider): name = "bonn2011" start_urls = ['http://bonn-packts-an-2011.de/www.bonn-packts-an.de/dito/forumc0d2.html'] def parse(self, response): for thread in response.css('div.vorschlag.buergervorschlag'): thread_url = thread.xpath('//div[@class...
<commit_before>import scrapy class Bonn2011Spider(scrapy.Spider): name = "bonn2011" start_urls = ['http://bonn-packts-an-2011.de/www.bonn-packts-an.de/dito/forumc0d2.html'] def parse(self, response): for thread in response.css('div.vorschlag.buergervorschlag'): yield scrapy.Request(thr...
import scrapy class Bonn2011Spider(scrapy.Spider): name = "bonn2011" start_urls = ['http://bonn-packts-an-2011.de/www.bonn-packts-an.de/dito/forumc0d2.html'] def parse(self, response): for thread in response.css('div.vorschlag.buergervorschlag'): thread_url = thread.xpath('//div[@class...
import scrapy class Bonn2011Spider(scrapy.Spider): name = "bonn2011" start_urls = ['http://bonn-packts-an-2011.de/www.bonn-packts-an.de/dito/forumc0d2.html'] def parse(self, response): for thread in response.css('div.vorschlag.buergervorschlag'): yield scrapy.Request(thread,callback=se...
<commit_before>import scrapy class Bonn2011Spider(scrapy.Spider): name = "bonn2011" start_urls = ['http://bonn-packts-an-2011.de/www.bonn-packts-an.de/dito/forumc0d2.html'] def parse(self, response): for thread in response.css('div.vorschlag.buergervorschlag'): yield scrapy.Request(thr...
120a93a867fcad7228a4befbf16a371f2210a852
djangoautoconf/cmd_handler_base/database_connection_maintainer.py
djangoautoconf/cmd_handler_base/database_connection_maintainer.py
import thread import time from django.db import close_old_connections class DatabaseConnectionMaintainer(object): DB_TIMEOUT_SECONDS = 60*60 def __init__(self, db_timeout=None): self.clients = set() # self.device_to_protocol = {} self.is_recent_db_change_occurred = False if d...
import thread import time from datetime import datetime # from django.db import close_old_connections from django.db import connection class DatabaseConnectionMaintainer(object): DB_TIMEOUT_SECONDS = 60*60 def __init__(self, db_timeout=None): self.clients = set() # self.device_to_protocol =...
Use connection.close to close database connections.
Use connection.close to close database connections.
Python
bsd-3-clause
weijia/djangoautoconf,weijia/djangoautoconf
import thread import time from django.db import close_old_connections class DatabaseConnectionMaintainer(object): DB_TIMEOUT_SECONDS = 60*60 def __init__(self, db_timeout=None): self.clients = set() # self.device_to_protocol = {} self.is_recent_db_change_occurred = False if d...
import thread import time from datetime import datetime # from django.db import close_old_connections from django.db import connection class DatabaseConnectionMaintainer(object): DB_TIMEOUT_SECONDS = 60*60 def __init__(self, db_timeout=None): self.clients = set() # self.device_to_protocol =...
<commit_before>import thread import time from django.db import close_old_connections class DatabaseConnectionMaintainer(object): DB_TIMEOUT_SECONDS = 60*60 def __init__(self, db_timeout=None): self.clients = set() # self.device_to_protocol = {} self.is_recent_db_change_occurred = Fal...
import thread import time from datetime import datetime # from django.db import close_old_connections from django.db import connection class DatabaseConnectionMaintainer(object): DB_TIMEOUT_SECONDS = 60*60 def __init__(self, db_timeout=None): self.clients = set() # self.device_to_protocol =...
import thread import time from django.db import close_old_connections class DatabaseConnectionMaintainer(object): DB_TIMEOUT_SECONDS = 60*60 def __init__(self, db_timeout=None): self.clients = set() # self.device_to_protocol = {} self.is_recent_db_change_occurred = False if d...
<commit_before>import thread import time from django.db import close_old_connections class DatabaseConnectionMaintainer(object): DB_TIMEOUT_SECONDS = 60*60 def __init__(self, db_timeout=None): self.clients = set() # self.device_to_protocol = {} self.is_recent_db_change_occurred = Fal...
23f2be0d47c5bf8de48e614be6927dcbb5df06fc
cmsplugin_filer_file/cms_plugins.py
cmsplugin_filer_file/cms_plugins.py
from cms.plugin_base import CMSPluginBase from cms.plugin_pool import plugin_pool from django.utils.translation import ugettext_lazy as _ import models class FilerFilePlugin(CMSPluginBase): module = 'Filer' model = models.FilerFile name = _("File") render_template = "cmsplugin_filer_file/file.html" ...
from cms.plugin_pool import plugin_pool from cms.plugin_base import CMSPluginBase from django.utils.translation import ugettext_lazy as _ import models from django.conf import settings class FilerFilePlugin(CMSPluginBase): module = 'Filer' model = models.FilerFile name = _("File") render_template = "cm...
Revert "FilerFilePlugin.icon_src is also obsolete"
Revert "FilerFilePlugin.icon_src is also obsolete" This reverts commit 6f9609a350fcac101eb28c08f8499f11d753f292.
Python
bsd-3-clause
pbs/cmsplugin-filer,skirsdeda/cmsplugin-filer,wlanslovenija/cmsplugin-filer,divio/cmsplugin-filer,isotoma/cmsplugin-filer,eliasp/cmsplugin-filer,brightinteractive/cmsplugin-filer,brightinteractive/cmsplugin-filer,grigoryk/cmsplugin-filer,pbs/cmsplugin-filer,skirsdeda/cmsplugin-filer,dreipol/cmsplugin-filer,dreipol/cmsp...
from cms.plugin_base import CMSPluginBase from cms.plugin_pool import plugin_pool from django.utils.translation import ugettext_lazy as _ import models class FilerFilePlugin(CMSPluginBase): module = 'Filer' model = models.FilerFile name = _("File") render_template = "cmsplugin_filer_file/file.html" ...
from cms.plugin_pool import plugin_pool from cms.plugin_base import CMSPluginBase from django.utils.translation import ugettext_lazy as _ import models from django.conf import settings class FilerFilePlugin(CMSPluginBase): module = 'Filer' model = models.FilerFile name = _("File") render_template = "cm...
<commit_before>from cms.plugin_base import CMSPluginBase from cms.plugin_pool import plugin_pool from django.utils.translation import ugettext_lazy as _ import models class FilerFilePlugin(CMSPluginBase): module = 'Filer' model = models.FilerFile name = _("File") render_template = "cmsplugin_filer_fi...
from cms.plugin_pool import plugin_pool from cms.plugin_base import CMSPluginBase from django.utils.translation import ugettext_lazy as _ import models from django.conf import settings class FilerFilePlugin(CMSPluginBase): module = 'Filer' model = models.FilerFile name = _("File") render_template = "cm...
from cms.plugin_base import CMSPluginBase from cms.plugin_pool import plugin_pool from django.utils.translation import ugettext_lazy as _ import models class FilerFilePlugin(CMSPluginBase): module = 'Filer' model = models.FilerFile name = _("File") render_template = "cmsplugin_filer_file/file.html" ...
<commit_before>from cms.plugin_base import CMSPluginBase from cms.plugin_pool import plugin_pool from django.utils.translation import ugettext_lazy as _ import models class FilerFilePlugin(CMSPluginBase): module = 'Filer' model = models.FilerFile name = _("File") render_template = "cmsplugin_filer_fi...
29c20b0a55b0f003a5a5dd83d5d0f177eca6a5c6
valuenetwork/valueaccounting/migrations/0013_auto_20180530_2053.py
valuenetwork/valueaccounting/migrations/0013_auto_20180530_2053.py
# -*- coding: utf-8 -*- # Generated by Django 1.11.6 on 2018-05-30 20:53 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('valueaccounting', '0012_auto_20170717_1841'), ] op...
# -*- coding: utf-8 -*- # Generated by Django 1.11.6 on 2018-05-30 20:53 # and then modified by fosterlynn to remove the migration that duplicates a previous migration, and change the dependency to that migration from __future__ import unicode_literals from django.db import migrations, models import django.db.models.d...
Fix to migration dependency issue because of missing a migration in the api-extensions branch. Removed duplicate change and changed the dependency.
Fix to migration dependency issue because of missing a migration in the api-extensions branch. Removed duplicate change and changed the dependency.
Python
agpl-3.0
FreedomCoop/valuenetwork,FreedomCoop/valuenetwork,FreedomCoop/valuenetwork,FreedomCoop/valuenetwork
# -*- coding: utf-8 -*- # Generated by Django 1.11.6 on 2018-05-30 20:53 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('valueaccounting', '0012_auto_20170717_1841'), ] op...
# -*- coding: utf-8 -*- # Generated by Django 1.11.6 on 2018-05-30 20:53 # and then modified by fosterlynn to remove the migration that duplicates a previous migration, and change the dependency to that migration from __future__ import unicode_literals from django.db import migrations, models import django.db.models.d...
<commit_before># -*- coding: utf-8 -*- # Generated by Django 1.11.6 on 2018-05-30 20:53 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('valueaccounting', '0012_auto_20170717_1841')...
# -*- coding: utf-8 -*- # Generated by Django 1.11.6 on 2018-05-30 20:53 # and then modified by fosterlynn to remove the migration that duplicates a previous migration, and change the dependency to that migration from __future__ import unicode_literals from django.db import migrations, models import django.db.models.d...
# -*- coding: utf-8 -*- # Generated by Django 1.11.6 on 2018-05-30 20:53 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('valueaccounting', '0012_auto_20170717_1841'), ] op...
<commit_before># -*- coding: utf-8 -*- # Generated by Django 1.11.6 on 2018-05-30 20:53 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('valueaccounting', '0012_auto_20170717_1841')...