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
6fbe2615770cfccf5b1711bf1a1c51bb14334341
txircd/modules/cmode_s.py
txircd/modules/cmode_s.py
from txircd.modbase import Mode class SecretMode(Mode): def listOutput(self, command, data): if command != "LIST": return data cdata = data["cdata"] if "s" in cdata["channel"].mode and cdata["channel"].name not in data["user"].channels: data["cdata"].clear() # other +s stuff is hiding in other modules. ...
from twisted.words.protocols import irc from txircd.modbase import Mode class SecretMode(Mode): def checkPermission(self, user, cmd, data): if cmd != "NAMES": return data remove = [] for chan in data["targetchan"]: if "p" in chan.mode and chan.name not in user.channels: user.sendMessage(irc.ERR_NOSUCH...
Hide secret channels from /NAMES users
Hide secret channels from /NAMES users
Python
bsd-3-clause
ElementalAlchemist/txircd,DesertBus/txircd,Heufneutje/txircd
from txircd.modbase import Mode class SecretMode(Mode): def listOutput(self, command, data): if command != "LIST": return data cdata = data["cdata"] if "s" in cdata["channel"].mode and cdata["channel"].name not in data["user"].channels: data["cdata"].clear() # other +s stuff is hiding in other modules. ...
from twisted.words.protocols import irc from txircd.modbase import Mode class SecretMode(Mode): def checkPermission(self, user, cmd, data): if cmd != "NAMES": return data remove = [] for chan in data["targetchan"]: if "p" in chan.mode and chan.name not in user.channels: user.sendMessage(irc.ERR_NOSUCH...
<commit_before>from txircd.modbase import Mode class SecretMode(Mode): def listOutput(self, command, data): if command != "LIST": return data cdata = data["cdata"] if "s" in cdata["channel"].mode and cdata["channel"].name not in data["user"].channels: data["cdata"].clear() # other +s stuff is hiding in o...
from twisted.words.protocols import irc from txircd.modbase import Mode class SecretMode(Mode): def checkPermission(self, user, cmd, data): if cmd != "NAMES": return data remove = [] for chan in data["targetchan"]: if "p" in chan.mode and chan.name not in user.channels: user.sendMessage(irc.ERR_NOSUCH...
from txircd.modbase import Mode class SecretMode(Mode): def listOutput(self, command, data): if command != "LIST": return data cdata = data["cdata"] if "s" in cdata["channel"].mode and cdata["channel"].name not in data["user"].channels: data["cdata"].clear() # other +s stuff is hiding in other modules. ...
<commit_before>from txircd.modbase import Mode class SecretMode(Mode): def listOutput(self, command, data): if command != "LIST": return data cdata = data["cdata"] if "s" in cdata["channel"].mode and cdata["channel"].name not in data["user"].channels: data["cdata"].clear() # other +s stuff is hiding in o...
79c9ee6107b841986054915c23f8456c80097c5b
osgtest/tests/test_13_gridftp.py
osgtest/tests/test_13_gridftp.py
import os import osgtest.library.core as core import unittest class TestStartGridFTP(unittest.TestCase): def test_01_start_gridftp(self): core.config['gridftp.pid-file'] = '/var/run/globus-gridftp-server.pid' core.state['gridftp.started-server'] = False if not core.rpm_is_installed('globu...
import os from osgtest.library import core, osgunittest import unittest class TestStartGridFTP(osgunittest.OSGTestCase): def test_01_start_gridftp(self): core.config['gridftp.pid-file'] = '/var/run/globus-gridftp-server.pid' core.state['gridftp.started-server'] = False core.skip_ok_unless...
Update 13_gridftp to use OkSkip functionality
Update 13_gridftp to use OkSkip functionality git-svn-id: 884a03e47e2adb735d896e55bb5ad6bc3421ba19@16527 4e558342-562e-0410-864c-e07659590f8c
Python
apache-2.0
efajardo/osg-test,efajardo/osg-test
import os import osgtest.library.core as core import unittest class TestStartGridFTP(unittest.TestCase): def test_01_start_gridftp(self): core.config['gridftp.pid-file'] = '/var/run/globus-gridftp-server.pid' core.state['gridftp.started-server'] = False if not core.rpm_is_installed('globu...
import os from osgtest.library import core, osgunittest import unittest class TestStartGridFTP(osgunittest.OSGTestCase): def test_01_start_gridftp(self): core.config['gridftp.pid-file'] = '/var/run/globus-gridftp-server.pid' core.state['gridftp.started-server'] = False core.skip_ok_unless...
<commit_before>import os import osgtest.library.core as core import unittest class TestStartGridFTP(unittest.TestCase): def test_01_start_gridftp(self): core.config['gridftp.pid-file'] = '/var/run/globus-gridftp-server.pid' core.state['gridftp.started-server'] = False if not core.rpm_is_i...
import os from osgtest.library import core, osgunittest import unittest class TestStartGridFTP(osgunittest.OSGTestCase): def test_01_start_gridftp(self): core.config['gridftp.pid-file'] = '/var/run/globus-gridftp-server.pid' core.state['gridftp.started-server'] = False core.skip_ok_unless...
import os import osgtest.library.core as core import unittest class TestStartGridFTP(unittest.TestCase): def test_01_start_gridftp(self): core.config['gridftp.pid-file'] = '/var/run/globus-gridftp-server.pid' core.state['gridftp.started-server'] = False if not core.rpm_is_installed('globu...
<commit_before>import os import osgtest.library.core as core import unittest class TestStartGridFTP(unittest.TestCase): def test_01_start_gridftp(self): core.config['gridftp.pid-file'] = '/var/run/globus-gridftp-server.pid' core.state['gridftp.started-server'] = False if not core.rpm_is_i...
6a1f01dd815bf8054a30a85acafa233c8b397c6d
read_DS18B20.py
read_DS18B20.py
import os import glob import time os.system('modprobe w1-gpio') os.system('modprobe w1-therm') base_dir = '/sys/bus/w1/devices/' device_folder = glob.glob(base_dir + '28*')[0] device_file = device_folder + '/w1_slave' def read_temp_raw(): f = open(device_file, 'r') lines = f.readlines() f.close() ret...
import datetime import os import glob import time os.system('modprobe w1-gpio') os.system('modprobe w1-therm') base_dir = '/sys/bus/w1/devices/' device_folders = glob.glob(base_dir + '28-*') devices = map(lambda x: os.path.basename(x), device_folders) device_files = map(lambda x: x + '/w1_slave', device_folders) def...
Augment read to handle multiple connected DS18B20 devices
Augment read to handle multiple connected DS18B20 devices
Python
mit
barecode/iot_temp_sensors,barecode/iot_temp_sensors,barecode/iot_temp_sensors
import os import glob import time os.system('modprobe w1-gpio') os.system('modprobe w1-therm') base_dir = '/sys/bus/w1/devices/' device_folder = glob.glob(base_dir + '28*')[0] device_file = device_folder + '/w1_slave' def read_temp_raw(): f = open(device_file, 'r') lines = f.readlines() f.close() ret...
import datetime import os import glob import time os.system('modprobe w1-gpio') os.system('modprobe w1-therm') base_dir = '/sys/bus/w1/devices/' device_folders = glob.glob(base_dir + '28-*') devices = map(lambda x: os.path.basename(x), device_folders) device_files = map(lambda x: x + '/w1_slave', device_folders) def...
<commit_before>import os import glob import time os.system('modprobe w1-gpio') os.system('modprobe w1-therm') base_dir = '/sys/bus/w1/devices/' device_folder = glob.glob(base_dir + '28*')[0] device_file = device_folder + '/w1_slave' def read_temp_raw(): f = open(device_file, 'r') lines = f.readlines() f....
import datetime import os import glob import time os.system('modprobe w1-gpio') os.system('modprobe w1-therm') base_dir = '/sys/bus/w1/devices/' device_folders = glob.glob(base_dir + '28-*') devices = map(lambda x: os.path.basename(x), device_folders) device_files = map(lambda x: x + '/w1_slave', device_folders) def...
import os import glob import time os.system('modprobe w1-gpio') os.system('modprobe w1-therm') base_dir = '/sys/bus/w1/devices/' device_folder = glob.glob(base_dir + '28*')[0] device_file = device_folder + '/w1_slave' def read_temp_raw(): f = open(device_file, 'r') lines = f.readlines() f.close() ret...
<commit_before>import os import glob import time os.system('modprobe w1-gpio') os.system('modprobe w1-therm') base_dir = '/sys/bus/w1/devices/' device_folder = glob.glob(base_dir + '28*')[0] device_file = device_folder + '/w1_slave' def read_temp_raw(): f = open(device_file, 'r') lines = f.readlines() f....
8f6044c539138d7e44c4046c6c371471b8913090
setup.py
setup.py
from setuptools import setup, Extension setup( name="pyRiffle", version="0.2.1", description="Riffle client libraries for interacting over a fabric", author="Exis", url="http://www.exis.io", license="MIT", packages=["riffle"], include_package_data=True, install_requires=[ ...
from setuptools import setup, Extension setup( name="pyRiffle", version="0.2.2", description="Riffle client libraries for interacting over a fabric", author="Exis", url="http://www.exis.io", license="MIT", packages=["riffle"], include_package_data=True, install_requires=[ ...
Set pyRiffle version to 0.2.2.
Set pyRiffle version to 0.2.2.
Python
mit
exis-io/pyRiffle,exis-io/pyRiffle
from setuptools import setup, Extension setup( name="pyRiffle", version="0.2.1", description="Riffle client libraries for interacting over a fabric", author="Exis", url="http://www.exis.io", license="MIT", packages=["riffle"], include_package_data=True, install_requires=[ ...
from setuptools import setup, Extension setup( name="pyRiffle", version="0.2.2", description="Riffle client libraries for interacting over a fabric", author="Exis", url="http://www.exis.io", license="MIT", packages=["riffle"], include_package_data=True, install_requires=[ ...
<commit_before>from setuptools import setup, Extension setup( name="pyRiffle", version="0.2.1", description="Riffle client libraries for interacting over a fabric", author="Exis", url="http://www.exis.io", license="MIT", packages=["riffle"], include_package_data=True, install_requ...
from setuptools import setup, Extension setup( name="pyRiffle", version="0.2.2", description="Riffle client libraries for interacting over a fabric", author="Exis", url="http://www.exis.io", license="MIT", packages=["riffle"], include_package_data=True, install_requires=[ ...
from setuptools import setup, Extension setup( name="pyRiffle", version="0.2.1", description="Riffle client libraries for interacting over a fabric", author="Exis", url="http://www.exis.io", license="MIT", packages=["riffle"], include_package_data=True, install_requires=[ ...
<commit_before>from setuptools import setup, Extension setup( name="pyRiffle", version="0.2.1", description="Riffle client libraries for interacting over a fabric", author="Exis", url="http://www.exis.io", license="MIT", packages=["riffle"], include_package_data=True, install_requ...
45e38ed249a390c6ca4bc36fdef55b9b05f0bc64
setup.py
setup.py
from setuptools import find_packages, setup from valohai_cli import __version__ setup( name='valohai-cli', version=__version__, entry_points={'console_scripts': ['vh=valohai_cli.cli:cli']}, author='Valohai', author_email='hait@valohai.com', license='MIT', install_requires=[ 'click>...
from setuptools import find_packages, setup from valohai_cli import __version__ setup( name='valohai-cli', version=__version__, entry_points={'console_scripts': ['vh=valohai_cli.cli:cli']}, author='Valohai', author_email='hait@valohai.com', license='MIT', install_requires=[ 'click>...
Drop the [security] descriptor from requests; it's soon deprecated
Drop the [security] descriptor from requests; it's soon deprecated
Python
mit
valohai/valohai-cli
from setuptools import find_packages, setup from valohai_cli import __version__ setup( name='valohai-cli', version=__version__, entry_points={'console_scripts': ['vh=valohai_cli.cli:cli']}, author='Valohai', author_email='hait@valohai.com', license='MIT', install_requires=[ 'click>...
from setuptools import find_packages, setup from valohai_cli import __version__ setup( name='valohai-cli', version=__version__, entry_points={'console_scripts': ['vh=valohai_cli.cli:cli']}, author='Valohai', author_email='hait@valohai.com', license='MIT', install_requires=[ 'click>...
<commit_before>from setuptools import find_packages, setup from valohai_cli import __version__ setup( name='valohai-cli', version=__version__, entry_points={'console_scripts': ['vh=valohai_cli.cli:cli']}, author='Valohai', author_email='hait@valohai.com', license='MIT', install_requires=[ ...
from setuptools import find_packages, setup from valohai_cli import __version__ setup( name='valohai-cli', version=__version__, entry_points={'console_scripts': ['vh=valohai_cli.cli:cli']}, author='Valohai', author_email='hait@valohai.com', license='MIT', install_requires=[ 'click>...
from setuptools import find_packages, setup from valohai_cli import __version__ setup( name='valohai-cli', version=__version__, entry_points={'console_scripts': ['vh=valohai_cli.cli:cli']}, author='Valohai', author_email='hait@valohai.com', license='MIT', install_requires=[ 'click>...
<commit_before>from setuptools import find_packages, setup from valohai_cli import __version__ setup( name='valohai-cli', version=__version__, entry_points={'console_scripts': ['vh=valohai_cli.cli:cli']}, author='Valohai', author_email='hait@valohai.com', license='MIT', install_requires=[ ...
ca254bb6a0b2056c454f9716460758fc5c4dda6d
setup.py
setup.py
from setuptools import find_packages, setup def get_version(): import imp import os with open(os.path.join('furious', '_pkg_meta.py'), 'rb') as f: mod = imp.load_source('_pkg_meta', 'biloba', f) return mod.version setup_args = dict( name='furious', version=get_version(), li...
from setuptools import find_packages, setup def get_version(): import imp import os with open(os.path.join('furious', '_pkg_meta.py'), 'rb') as f: mod = imp.load_source('_pkg_meta', 'biloba', f) return mod.version setup_args = dict( name='furious', version=get_version(), li...
Update Webfilings info to Workiva
Update Webfilings info to Workiva
Python
apache-2.0
beaulyddon-wf/furious,Workiva/furious,Workiva/furious,andreleblanc-wf/furious,mattsanders-wf/furious,beaulyddon-wf/furious,mattsanders-wf/furious,andreleblanc-wf/furious
from setuptools import find_packages, setup def get_version(): import imp import os with open(os.path.join('furious', '_pkg_meta.py'), 'rb') as f: mod = imp.load_source('_pkg_meta', 'biloba', f) return mod.version setup_args = dict( name='furious', version=get_version(), li...
from setuptools import find_packages, setup def get_version(): import imp import os with open(os.path.join('furious', '_pkg_meta.py'), 'rb') as f: mod = imp.load_source('_pkg_meta', 'biloba', f) return mod.version setup_args = dict( name='furious', version=get_version(), li...
<commit_before>from setuptools import find_packages, setup def get_version(): import imp import os with open(os.path.join('furious', '_pkg_meta.py'), 'rb') as f: mod = imp.load_source('_pkg_meta', 'biloba', f) return mod.version setup_args = dict( name='furious', version=get_ve...
from setuptools import find_packages, setup def get_version(): import imp import os with open(os.path.join('furious', '_pkg_meta.py'), 'rb') as f: mod = imp.load_source('_pkg_meta', 'biloba', f) return mod.version setup_args = dict( name='furious', version=get_version(), li...
from setuptools import find_packages, setup def get_version(): import imp import os with open(os.path.join('furious', '_pkg_meta.py'), 'rb') as f: mod = imp.load_source('_pkg_meta', 'biloba', f) return mod.version setup_args = dict( name='furious', version=get_version(), li...
<commit_before>from setuptools import find_packages, setup def get_version(): import imp import os with open(os.path.join('furious', '_pkg_meta.py'), 'rb') as f: mod = imp.load_source('_pkg_meta', 'biloba', f) return mod.version setup_args = dict( name='furious', version=get_ve...
33ff6b1d1311f77c9b1c2f6e5c18534d8f0d4019
setup.py
setup.py
# -*- coding: utf-8 -*- """ pyxform - Python library that converts XLSForms to XForms. """ from setuptools import find_packages, setup REQUIRES = [ "xlrd>=1.1.0", "unicodecsv>=0.14.1", "formencode", "unittest2", 'functools32==3.2.3.post2 ; python_version < "3.2"', ] setup( name="pyxform", ...
# -*- coding: utf-8 -*- """ pyxform - Python library that converts XLSForms to XForms. """ from setuptools import find_packages, setup REQUIRES = [ "xlrd==1.2.0", "unicodecsv==0.14.1", "formencode==1.3.1", "unittest2==1.1.0", 'functools32==3.2.3.post2 ; python_version < "3.2"', ] setup( name="...
Use same versions as requirements.pip to prevent unexpected upgrades of dependencies
Use same versions as requirements.pip to prevent unexpected upgrades of dependencies
Python
bsd-2-clause
XLSForm/pyxform,XLSForm/pyxform
# -*- coding: utf-8 -*- """ pyxform - Python library that converts XLSForms to XForms. """ from setuptools import find_packages, setup REQUIRES = [ "xlrd>=1.1.0", "unicodecsv>=0.14.1", "formencode", "unittest2", 'functools32==3.2.3.post2 ; python_version < "3.2"', ] setup( name="pyxform", ...
# -*- coding: utf-8 -*- """ pyxform - Python library that converts XLSForms to XForms. """ from setuptools import find_packages, setup REQUIRES = [ "xlrd==1.2.0", "unicodecsv==0.14.1", "formencode==1.3.1", "unittest2==1.1.0", 'functools32==3.2.3.post2 ; python_version < "3.2"', ] setup( name="...
<commit_before># -*- coding: utf-8 -*- """ pyxform - Python library that converts XLSForms to XForms. """ from setuptools import find_packages, setup REQUIRES = [ "xlrd>=1.1.0", "unicodecsv>=0.14.1", "formencode", "unittest2", 'functools32==3.2.3.post2 ; python_version < "3.2"', ] setup( name=...
# -*- coding: utf-8 -*- """ pyxform - Python library that converts XLSForms to XForms. """ from setuptools import find_packages, setup REQUIRES = [ "xlrd==1.2.0", "unicodecsv==0.14.1", "formencode==1.3.1", "unittest2==1.1.0", 'functools32==3.2.3.post2 ; python_version < "3.2"', ] setup( name="...
# -*- coding: utf-8 -*- """ pyxform - Python library that converts XLSForms to XForms. """ from setuptools import find_packages, setup REQUIRES = [ "xlrd>=1.1.0", "unicodecsv>=0.14.1", "formencode", "unittest2", 'functools32==3.2.3.post2 ; python_version < "3.2"', ] setup( name="pyxform", ...
<commit_before># -*- coding: utf-8 -*- """ pyxform - Python library that converts XLSForms to XForms. """ from setuptools import find_packages, setup REQUIRES = [ "xlrd>=1.1.0", "unicodecsv>=0.14.1", "formencode", "unittest2", 'functools32==3.2.3.post2 ; python_version < "3.2"', ] setup( name=...
a8f3250bdb3bb2fdb94e930bfe7ffc6409cdde06
setup.py
setup.py
import os from setuptools import setup, find_packages def read_file(filename): """Read a file into a string""" path = os.path.abspath(os.path.dirname(__file__)) filepath = os.path.join(path, filename) try: return open(filepath).read() except IOError: return '' setup( name='dj...
import os from setuptools import setup, find_packages def read_file(filename): """Read a file into a string""" path = os.path.abspath(os.path.dirname(__file__)) filepath = os.path.join(path, filename) try: return open(filepath).read() except IOError: return '' setup( name='dj...
Revert "updated required sentrylogs version"
Revert "updated required sentrylogs version" This reverts commit 86f6fc2fb5a9e3c89088ddc135f66704cff36018.
Python
mit
pulilab/django-sentrylogs
import os from setuptools import setup, find_packages def read_file(filename): """Read a file into a string""" path = os.path.abspath(os.path.dirname(__file__)) filepath = os.path.join(path, filename) try: return open(filepath).read() except IOError: return '' setup( name='dj...
import os from setuptools import setup, find_packages def read_file(filename): """Read a file into a string""" path = os.path.abspath(os.path.dirname(__file__)) filepath = os.path.join(path, filename) try: return open(filepath).read() except IOError: return '' setup( name='dj...
<commit_before>import os from setuptools import setup, find_packages def read_file(filename): """Read a file into a string""" path = os.path.abspath(os.path.dirname(__file__)) filepath = os.path.join(path, filename) try: return open(filepath).read() except IOError: return '' setu...
import os from setuptools import setup, find_packages def read_file(filename): """Read a file into a string""" path = os.path.abspath(os.path.dirname(__file__)) filepath = os.path.join(path, filename) try: return open(filepath).read() except IOError: return '' setup( name='dj...
import os from setuptools import setup, find_packages def read_file(filename): """Read a file into a string""" path = os.path.abspath(os.path.dirname(__file__)) filepath = os.path.join(path, filename) try: return open(filepath).read() except IOError: return '' setup( name='dj...
<commit_before>import os from setuptools import setup, find_packages def read_file(filename): """Read a file into a string""" path = os.path.abspath(os.path.dirname(__file__)) filepath = os.path.join(path, filename) try: return open(filepath).read() except IOError: return '' setu...
9d8fec118b980956e1e04d061bee9b163fc28ae4
setup.py
setup.py
try: from setuptools import setup except ImportError: from distutils.core import setup from azurectl.version import __VERSION__ config = { 'description': 'Manage Azure PubCloud Service', 'author': 'PubCloud Development team', 'url': 'https://github.com/SUSE/azurectl', 'download_url': 'https://...
#!/usr/bin/env python try: from setuptools import setup except ImportError: from distutils.core import setup from azurectl.version import __VERSION__ config = { 'description': 'Manage Azure PubCloud Service', 'author': 'PubCloud Development team', 'url': 'https://github.com/SUSE/azurectl', 'd...
Set x-Bit and add she-bang line
Set x-Bit and add she-bang line
Python
apache-2.0
SUSE/azurectl,SUSE/azurectl,SUSE/azurectl
try: from setuptools import setup except ImportError: from distutils.core import setup from azurectl.version import __VERSION__ config = { 'description': 'Manage Azure PubCloud Service', 'author': 'PubCloud Development team', 'url': 'https://github.com/SUSE/azurectl', 'download_url': 'https://...
#!/usr/bin/env python try: from setuptools import setup except ImportError: from distutils.core import setup from azurectl.version import __VERSION__ config = { 'description': 'Manage Azure PubCloud Service', 'author': 'PubCloud Development team', 'url': 'https://github.com/SUSE/azurectl', 'd...
<commit_before>try: from setuptools import setup except ImportError: from distutils.core import setup from azurectl.version import __VERSION__ config = { 'description': 'Manage Azure PubCloud Service', 'author': 'PubCloud Development team', 'url': 'https://github.com/SUSE/azurectl', 'download_...
#!/usr/bin/env python try: from setuptools import setup except ImportError: from distutils.core import setup from azurectl.version import __VERSION__ config = { 'description': 'Manage Azure PubCloud Service', 'author': 'PubCloud Development team', 'url': 'https://github.com/SUSE/azurectl', 'd...
try: from setuptools import setup except ImportError: from distutils.core import setup from azurectl.version import __VERSION__ config = { 'description': 'Manage Azure PubCloud Service', 'author': 'PubCloud Development team', 'url': 'https://github.com/SUSE/azurectl', 'download_url': 'https://...
<commit_before>try: from setuptools import setup except ImportError: from distutils.core import setup from azurectl.version import __VERSION__ config = { 'description': 'Manage Azure PubCloud Service', 'author': 'PubCloud Development team', 'url': 'https://github.com/SUSE/azurectl', 'download_...
512984cbb8a8e93633ffb7b75b56582e1efeb5bc
setup.py
setup.py
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. import os from setuptools import setup, find_packages requires = ['cornice', 'mozsvc', 'powerhose', 'circus', 'wimms'] ...
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. from setuptools import setup, find_packages requires = ['cornice', 'mozsvc', 'powerhose', 'circus', 'wimms', 'PyVEP'] ...
Add a dependency to PyVEP.
Add a dependency to PyVEP.
Python
mpl-2.0
mozilla-services/tokenserver,mozilla-services/tokenserver,mostlygeek/tokenserver,mostlygeek/tokenserver
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. import os from setuptools import setup, find_packages requires = ['cornice', 'mozsvc', 'powerhose', 'circus', 'wimms'] ...
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. from setuptools import setup, find_packages requires = ['cornice', 'mozsvc', 'powerhose', 'circus', 'wimms', 'PyVEP'] ...
<commit_before># This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. import os from setuptools import setup, find_packages requires = ['cornice', 'mozsvc', 'powerhose', 'cir...
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. from setuptools import setup, find_packages requires = ['cornice', 'mozsvc', 'powerhose', 'circus', 'wimms', 'PyVEP'] ...
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. import os from setuptools import setup, find_packages requires = ['cornice', 'mozsvc', 'powerhose', 'circus', 'wimms'] ...
<commit_before># This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. import os from setuptools import setup, find_packages requires = ['cornice', 'mozsvc', 'powerhose', 'cir...
1704dc7eef9571b6ac2f0066dbdfe3e8e63dcfbb
setup.py
setup.py
#!/usr/bin/env python from distutils.core import setup setup(name='rhq-metrics-python-client', version='0.2.3', description='Python client to communicate with Hawkular Metrics over HTTP', author='Michael Burman', author_email='miburman@redhat.com', url='http://github.com/burmanm/rhq-metr...
#!/usr/bin/env python from distutils.core import setup setup(name='rhq-metrics-python-client', version='0.2.4', description='Python client to communicate with Hawkular Metrics over HTTP', author='Michael Burman', author_email='miburman@redhat.com', url='http://github.com/burmanm/rhq-metr...
Update the version to 0.2.4
Update the version to 0.2.4
Python
apache-2.0
burmanm/rhq-metrics-python-client
#!/usr/bin/env python from distutils.core import setup setup(name='rhq-metrics-python-client', version='0.2.3', description='Python client to communicate with Hawkular Metrics over HTTP', author='Michael Burman', author_email='miburman@redhat.com', url='http://github.com/burmanm/rhq-metr...
#!/usr/bin/env python from distutils.core import setup setup(name='rhq-metrics-python-client', version='0.2.4', description='Python client to communicate with Hawkular Metrics over HTTP', author='Michael Burman', author_email='miburman@redhat.com', url='http://github.com/burmanm/rhq-metr...
<commit_before>#!/usr/bin/env python from distutils.core import setup setup(name='rhq-metrics-python-client', version='0.2.3', description='Python client to communicate with Hawkular Metrics over HTTP', author='Michael Burman', author_email='miburman@redhat.com', url='http://github.com/b...
#!/usr/bin/env python from distutils.core import setup setup(name='rhq-metrics-python-client', version='0.2.4', description='Python client to communicate with Hawkular Metrics over HTTP', author='Michael Burman', author_email='miburman@redhat.com', url='http://github.com/burmanm/rhq-metr...
#!/usr/bin/env python from distutils.core import setup setup(name='rhq-metrics-python-client', version='0.2.3', description='Python client to communicate with Hawkular Metrics over HTTP', author='Michael Burman', author_email='miburman@redhat.com', url='http://github.com/burmanm/rhq-metr...
<commit_before>#!/usr/bin/env python from distutils.core import setup setup(name='rhq-metrics-python-client', version='0.2.3', description='Python client to communicate with Hawkular Metrics over HTTP', author='Michael Burman', author_email='miburman@redhat.com', url='http://github.com/b...
535d148381ba530d28630bf224d5646f898fde42
setup.py
setup.py
from setuptools import setup setup( name = 'PyFVCOM', packages = ['PyFVCOM'], version = '1.3.4', description = ("PyFVCOM is a collection of various tools and utilities which can be used to extract, analyse and plot input and output files from FVCOM."), author = 'Pierre Cazenave', author_email =...
from setuptools import setup setup( name = 'PyFVCOM', packages = ['PyFVCOM'], version = '1.3.4', description = ("PyFVCOM is a collection of various tools and utilities which can be used to extract, analyse and plot input and output files from FVCOM."), author = 'Pierre Cazenave', author_email =...
Fix link to the tagged release.
Fix link to the tagged release.
Python
mit
pwcazenave/PyFVCOM
from setuptools import setup setup( name = 'PyFVCOM', packages = ['PyFVCOM'], version = '1.3.4', description = ("PyFVCOM is a collection of various tools and utilities which can be used to extract, analyse and plot input and output files from FVCOM."), author = 'Pierre Cazenave', author_email =...
from setuptools import setup setup( name = 'PyFVCOM', packages = ['PyFVCOM'], version = '1.3.4', description = ("PyFVCOM is a collection of various tools and utilities which can be used to extract, analyse and plot input and output files from FVCOM."), author = 'Pierre Cazenave', author_email =...
<commit_before>from setuptools import setup setup( name = 'PyFVCOM', packages = ['PyFVCOM'], version = '1.3.4', description = ("PyFVCOM is a collection of various tools and utilities which can be used to extract, analyse and plot input and output files from FVCOM."), author = 'Pierre Cazenave', ...
from setuptools import setup setup( name = 'PyFVCOM', packages = ['PyFVCOM'], version = '1.3.4', description = ("PyFVCOM is a collection of various tools and utilities which can be used to extract, analyse and plot input and output files from FVCOM."), author = 'Pierre Cazenave', author_email =...
from setuptools import setup setup( name = 'PyFVCOM', packages = ['PyFVCOM'], version = '1.3.4', description = ("PyFVCOM is a collection of various tools and utilities which can be used to extract, analyse and plot input and output files from FVCOM."), author = 'Pierre Cazenave', author_email =...
<commit_before>from setuptools import setup setup( name = 'PyFVCOM', packages = ['PyFVCOM'], version = '1.3.4', description = ("PyFVCOM is a collection of various tools and utilities which can be used to extract, analyse and plot input and output files from FVCOM."), author = 'Pierre Cazenave', ...
f84586b3693fdc020681fc2dafa9794efab1d79d
setup.py
setup.py
from setuptools import setup, Extension setup(name='python-pytun', author='montag451', author_email='montag451 at laposte.net', maintainer='montag451', maintainer_email='montag451 at laposte.net', url='https://github.com/montag451/pytun', description='Linux TUN/TAP wrapper for Pytho...
from setuptools import setup, Extension setup(name='python-pytun', author='montag451', author_email='montag451@laposte.net', maintainer='montag451', maintainer_email='montag451@laposte.net', url='https://github.com/montag451/pytun', description='Linux TUN/TAP wrapper for Python', ...
Use real mail address to make PyPi happy
Use real mail address to make PyPi happy
Python
mit
montag451/pytun,montag451/pytun
from setuptools import setup, Extension setup(name='python-pytun', author='montag451', author_email='montag451 at laposte.net', maintainer='montag451', maintainer_email='montag451 at laposte.net', url='https://github.com/montag451/pytun', description='Linux TUN/TAP wrapper for Pytho...
from setuptools import setup, Extension setup(name='python-pytun', author='montag451', author_email='montag451@laposte.net', maintainer='montag451', maintainer_email='montag451@laposte.net', url='https://github.com/montag451/pytun', description='Linux TUN/TAP wrapper for Python', ...
<commit_before>from setuptools import setup, Extension setup(name='python-pytun', author='montag451', author_email='montag451 at laposte.net', maintainer='montag451', maintainer_email='montag451 at laposte.net', url='https://github.com/montag451/pytun', description='Linux TUN/TAP wr...
from setuptools import setup, Extension setup(name='python-pytun', author='montag451', author_email='montag451@laposte.net', maintainer='montag451', maintainer_email='montag451@laposte.net', url='https://github.com/montag451/pytun', description='Linux TUN/TAP wrapper for Python', ...
from setuptools import setup, Extension setup(name='python-pytun', author='montag451', author_email='montag451 at laposte.net', maintainer='montag451', maintainer_email='montag451 at laposte.net', url='https://github.com/montag451/pytun', description='Linux TUN/TAP wrapper for Pytho...
<commit_before>from setuptools import setup, Extension setup(name='python-pytun', author='montag451', author_email='montag451 at laposte.net', maintainer='montag451', maintainer_email='montag451 at laposte.net', url='https://github.com/montag451/pytun', description='Linux TUN/TAP wr...
86cea8ad725aa38465c1dfd14c9dcaa0584d89a9
setup.py
setup.py
#!/usr/bin/env python # coding: utf-8 """A setuptools based setup module. See: https://packaging.python.org/en/latest/distributing.html https://github.com/pypa/sampleproject """ from setuptools import setup, find_packages import keysmith with open('README.rst') as readme_file: README = readme_file.read() setup...
#!/usr/bin/env python # coding: utf-8 """A setuptools based setup module. See: https://packaging.python.org/en/latest/distributing.html https://github.com/pypa/sampleproject """ from setuptools import setup, find_packages import keysmith with open('README.rst') as readme_file: README = readme_file.read() setup...
Add more Python 3 classifiers
Add more Python 3 classifiers
Python
bsd-3-clause
dmtucker/keysmith
#!/usr/bin/env python # coding: utf-8 """A setuptools based setup module. See: https://packaging.python.org/en/latest/distributing.html https://github.com/pypa/sampleproject """ from setuptools import setup, find_packages import keysmith with open('README.rst') as readme_file: README = readme_file.read() setup...
#!/usr/bin/env python # coding: utf-8 """A setuptools based setup module. See: https://packaging.python.org/en/latest/distributing.html https://github.com/pypa/sampleproject """ from setuptools import setup, find_packages import keysmith with open('README.rst') as readme_file: README = readme_file.read() setup...
<commit_before>#!/usr/bin/env python # coding: utf-8 """A setuptools based setup module. See: https://packaging.python.org/en/latest/distributing.html https://github.com/pypa/sampleproject """ from setuptools import setup, find_packages import keysmith with open('README.rst') as readme_file: README = readme_fil...
#!/usr/bin/env python # coding: utf-8 """A setuptools based setup module. See: https://packaging.python.org/en/latest/distributing.html https://github.com/pypa/sampleproject """ from setuptools import setup, find_packages import keysmith with open('README.rst') as readme_file: README = readme_file.read() setup...
#!/usr/bin/env python # coding: utf-8 """A setuptools based setup module. See: https://packaging.python.org/en/latest/distributing.html https://github.com/pypa/sampleproject """ from setuptools import setup, find_packages import keysmith with open('README.rst') as readme_file: README = readme_file.read() setup...
<commit_before>#!/usr/bin/env python # coding: utf-8 """A setuptools based setup module. See: https://packaging.python.org/en/latest/distributing.html https://github.com/pypa/sampleproject """ from setuptools import setup, find_packages import keysmith with open('README.rst') as readme_file: README = readme_fil...
fae955d0e1f1262e086c6ae7e7c69d0961f566e6
setup.py
setup.py
# -*- coding: utf-8 -*- from setuptools import setup from codecs import open from os import path here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.rst'), encoding='utf-8') as f: long_description = f.read() setup( name='tortilla', version='0.4.3', description='A tiny lib...
# -*- coding: utf-8 -*- from setuptools import setup from codecs import open from os import path here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.rst'), encoding='utf-8') as f: long_description = f.read() setup( name='tortilla', version='0.4.3', description='A tiny lib...
Add support mention of Python 3.6
Add support mention of Python 3.6
Python
mit
redodo/tortilla
# -*- coding: utf-8 -*- from setuptools import setup from codecs import open from os import path here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.rst'), encoding='utf-8') as f: long_description = f.read() setup( name='tortilla', version='0.4.3', description='A tiny lib...
# -*- coding: utf-8 -*- from setuptools import setup from codecs import open from os import path here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.rst'), encoding='utf-8') as f: long_description = f.read() setup( name='tortilla', version='0.4.3', description='A tiny lib...
<commit_before># -*- coding: utf-8 -*- from setuptools import setup from codecs import open from os import path here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.rst'), encoding='utf-8') as f: long_description = f.read() setup( name='tortilla', version='0.4.3', descript...
# -*- coding: utf-8 -*- from setuptools import setup from codecs import open from os import path here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.rst'), encoding='utf-8') as f: long_description = f.read() setup( name='tortilla', version='0.4.3', description='A tiny lib...
# -*- coding: utf-8 -*- from setuptools import setup from codecs import open from os import path here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.rst'), encoding='utf-8') as f: long_description = f.read() setup( name='tortilla', version='0.4.3', description='A tiny lib...
<commit_before># -*- coding: utf-8 -*- from setuptools import setup from codecs import open from os import path here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.rst'), encoding='utf-8') as f: long_description = f.read() setup( name='tortilla', version='0.4.3', descript...
df30014188ce06e40425137ee1b46a1bf7a2eb21
setup.py
setup.py
from setuptools import setup, find_packages setup( name = 'PyPokerEngine', version = '1.0.0', author = 'ishikota', author_email = 'ishikota086@gmail.com', description = 'Poker engine for poker AI development in Python ', license = 'MIT', keywords = 'python poker emgine ai', url = 'https...
from setuptools import setup, find_packages setup( name = 'PyPokerEngine', version = '1.0.0', version = '0.2.2', author = 'ishikota', author_email = 'ishikota086@gmail.com', description = 'Poker engine for poker AI development in Python ', license = 'MIT', keywords = 'python poker emgin...
Bump up version to 0.2.2
Bump up version to 0.2.2
Python
mit
ishikota/PyPokerEngine
from setuptools import setup, find_packages setup( name = 'PyPokerEngine', version = '1.0.0', author = 'ishikota', author_email = 'ishikota086@gmail.com', description = 'Poker engine for poker AI development in Python ', license = 'MIT', keywords = 'python poker emgine ai', url = 'https...
from setuptools import setup, find_packages setup( name = 'PyPokerEngine', version = '1.0.0', version = '0.2.2', author = 'ishikota', author_email = 'ishikota086@gmail.com', description = 'Poker engine for poker AI development in Python ', license = 'MIT', keywords = 'python poker emgin...
<commit_before>from setuptools import setup, find_packages setup( name = 'PyPokerEngine', version = '1.0.0', author = 'ishikota', author_email = 'ishikota086@gmail.com', description = 'Poker engine for poker AI development in Python ', license = 'MIT', keywords = 'python poker emgine ai', ...
from setuptools import setup, find_packages setup( name = 'PyPokerEngine', version = '1.0.0', version = '0.2.2', author = 'ishikota', author_email = 'ishikota086@gmail.com', description = 'Poker engine for poker AI development in Python ', license = 'MIT', keywords = 'python poker emgin...
from setuptools import setup, find_packages setup( name = 'PyPokerEngine', version = '1.0.0', author = 'ishikota', author_email = 'ishikota086@gmail.com', description = 'Poker engine for poker AI development in Python ', license = 'MIT', keywords = 'python poker emgine ai', url = 'https...
<commit_before>from setuptools import setup, find_packages setup( name = 'PyPokerEngine', version = '1.0.0', author = 'ishikota', author_email = 'ishikota086@gmail.com', description = 'Poker engine for poker AI development in Python ', license = 'MIT', keywords = 'python poker emgine ai', ...
8665f94ecb2805dcb861e4d7e75629cd975f4a6c
setup.py
setup.py
#!/usr/bin/env python import os import sys from glob import glob sys.path.insert(0, os.path.abspath('lib')) from ansible import __version__, __author__ try: from setuptools import setup, find_packages except ImportError: print "Ansible now needs setuptools in order to build. " \ "Install it using yo...
#!/usr/bin/env python import os import sys from glob import glob sys.path.insert(0, os.path.abspath('lib')) from ansible import __version__, __author__ try: from setuptools import setup, find_packages except ImportError: print "Ansible now needs setuptools in order to build. " \ "Install it using yo...
Make sure Windows modules are installed.
Make sure Windows modules are installed.
Python
mit
thaim/ansible,thaim/ansible
#!/usr/bin/env python import os import sys from glob import glob sys.path.insert(0, os.path.abspath('lib')) from ansible import __version__, __author__ try: from setuptools import setup, find_packages except ImportError: print "Ansible now needs setuptools in order to build. " \ "Install it using yo...
#!/usr/bin/env python import os import sys from glob import glob sys.path.insert(0, os.path.abspath('lib')) from ansible import __version__, __author__ try: from setuptools import setup, find_packages except ImportError: print "Ansible now needs setuptools in order to build. " \ "Install it using yo...
<commit_before>#!/usr/bin/env python import os import sys from glob import glob sys.path.insert(0, os.path.abspath('lib')) from ansible import __version__, __author__ try: from setuptools import setup, find_packages except ImportError: print "Ansible now needs setuptools in order to build. " \ "Inst...
#!/usr/bin/env python import os import sys from glob import glob sys.path.insert(0, os.path.abspath('lib')) from ansible import __version__, __author__ try: from setuptools import setup, find_packages except ImportError: print "Ansible now needs setuptools in order to build. " \ "Install it using yo...
#!/usr/bin/env python import os import sys from glob import glob sys.path.insert(0, os.path.abspath('lib')) from ansible import __version__, __author__ try: from setuptools import setup, find_packages except ImportError: print "Ansible now needs setuptools in order to build. " \ "Install it using yo...
<commit_before>#!/usr/bin/env python import os import sys from glob import glob sys.path.insert(0, os.path.abspath('lib')) from ansible import __version__, __author__ try: from setuptools import setup, find_packages except ImportError: print "Ansible now needs setuptools in order to build. " \ "Inst...
5e502eeb35e4a8f778b4974e4934b2414a2018a5
setup.py
setup.py
#!/usr/bin/env python import os from setuptools import setup def _read(fname): try: return open(os.path.join(os.path.dirname(__file__), fname)).read() except IOError: return '' REQUIREMENTS = [l for l in _read('requirements.txt').split('\n') if l and not l.startswith('#')] VERSION = '1.0.0' s...
#!/usr/bin/env python import os from setuptools import setup def _read(fname): try: return open(os.path.join(os.path.dirname(__file__), fname)).read() except IOError: return '' REQUIREMENTS = [l for l in _read('requirements.txt').split('\n') if l and not l.startswith('#')] VERSION = '1.0.1' s...
Add manifest and bump version
Add manifest and bump version
Python
mit
ampedandwired/bottle-swagger
#!/usr/bin/env python import os from setuptools import setup def _read(fname): try: return open(os.path.join(os.path.dirname(__file__), fname)).read() except IOError: return '' REQUIREMENTS = [l for l in _read('requirements.txt').split('\n') if l and not l.startswith('#')] VERSION = '1.0.0' s...
#!/usr/bin/env python import os from setuptools import setup def _read(fname): try: return open(os.path.join(os.path.dirname(__file__), fname)).read() except IOError: return '' REQUIREMENTS = [l for l in _read('requirements.txt').split('\n') if l and not l.startswith('#')] VERSION = '1.0.1' s...
<commit_before>#!/usr/bin/env python import os from setuptools import setup def _read(fname): try: return open(os.path.join(os.path.dirname(__file__), fname)).read() except IOError: return '' REQUIREMENTS = [l for l in _read('requirements.txt').split('\n') if l and not l.startswith('#')] VERSI...
#!/usr/bin/env python import os from setuptools import setup def _read(fname): try: return open(os.path.join(os.path.dirname(__file__), fname)).read() except IOError: return '' REQUIREMENTS = [l for l in _read('requirements.txt').split('\n') if l and not l.startswith('#')] VERSION = '1.0.1' s...
#!/usr/bin/env python import os from setuptools import setup def _read(fname): try: return open(os.path.join(os.path.dirname(__file__), fname)).read() except IOError: return '' REQUIREMENTS = [l for l in _read('requirements.txt').split('\n') if l and not l.startswith('#')] VERSION = '1.0.0' s...
<commit_before>#!/usr/bin/env python import os from setuptools import setup def _read(fname): try: return open(os.path.join(os.path.dirname(__file__), fname)).read() except IOError: return '' REQUIREMENTS = [l for l in _read('requirements.txt').split('\n') if l and not l.startswith('#')] VERSI...
f2adf811b5f3c2da5388a1d2adff0033b285d840
setup.py
setup.py
#!/usr/bin/env python3 from setuptools import setup, find_packages setup( name='ppp_core', version='0.1', description='Core/router of the PPP framework', url='https://github.com/ProjetPP/PPP-Core', author='Valentin Lorentz', author_email='valentin.lorentz+ppp@ens-lyon.org', license='MIT', ...
#!/usr/bin/env python3 from setuptools import setup, find_packages setup( name='ppp_core', version='0.1', description='Core/router of the PPP framework', url='https://github.com/ProjetPP/PPP-Core', author='Valentin Lorentz', author_email='valentin.lorentz+ppp@ens-lyon.org', license='MIT', ...
Remove dependency_links as it seems to be ignored.
Remove dependency_links as it seems to be ignored. I also added ppp_datamodel to Pypi so it is not needed anymore.
Python
agpl-3.0
ProjetPP/PPP-libmodule-Python,ProjetPP/PPP-Core,ProjetPP/PPP-Core,ProjetPP/PPP-libmodule-Python
#!/usr/bin/env python3 from setuptools import setup, find_packages setup( name='ppp_core', version='0.1', description='Core/router of the PPP framework', url='https://github.com/ProjetPP/PPP-Core', author='Valentin Lorentz', author_email='valentin.lorentz+ppp@ens-lyon.org', license='MIT', ...
#!/usr/bin/env python3 from setuptools import setup, find_packages setup( name='ppp_core', version='0.1', description='Core/router of the PPP framework', url='https://github.com/ProjetPP/PPP-Core', author='Valentin Lorentz', author_email='valentin.lorentz+ppp@ens-lyon.org', license='MIT', ...
<commit_before>#!/usr/bin/env python3 from setuptools import setup, find_packages setup( name='ppp_core', version='0.1', description='Core/router of the PPP framework', url='https://github.com/ProjetPP/PPP-Core', author='Valentin Lorentz', author_email='valentin.lorentz+ppp@ens-lyon.org', ...
#!/usr/bin/env python3 from setuptools import setup, find_packages setup( name='ppp_core', version='0.1', description='Core/router of the PPP framework', url='https://github.com/ProjetPP/PPP-Core', author='Valentin Lorentz', author_email='valentin.lorentz+ppp@ens-lyon.org', license='MIT', ...
#!/usr/bin/env python3 from setuptools import setup, find_packages setup( name='ppp_core', version='0.1', description='Core/router of the PPP framework', url='https://github.com/ProjetPP/PPP-Core', author='Valentin Lorentz', author_email='valentin.lorentz+ppp@ens-lyon.org', license='MIT', ...
<commit_before>#!/usr/bin/env python3 from setuptools import setup, find_packages setup( name='ppp_core', version='0.1', description='Core/router of the PPP framework', url='https://github.com/ProjetPP/PPP-Core', author='Valentin Lorentz', author_email='valentin.lorentz+ppp@ens-lyon.org', ...
5c7466b8b68e064e778197b516bb8b24829605a2
setup.py
setup.py
from setuptools import setup version = '0.1dev' long_description = '\n\n'.join([ open('README.rst').read(), open('CREDITS.rst').read(), open('CHANGES.rst').read(), ]) install_requires = [ 'setuptools', ], tests_require = [ 'mock', ] setup(name='nensbuild', version=version, ...
from setuptools import setup version = '0.1dev' long_description = '\n\n'.join([ open('README.rst').read(), open('CREDITS.rst').read(), open('CHANGES.rst').read(), ]) install_requires = [ 'setuptools', ], tests_require = [ 'mock', ] setup(name='nensbuild', version=version, ...
Add clasifiers and short description.
Add clasifiers and short description.
Python
bsd-2-clause
nens/nensbuild
from setuptools import setup version = '0.1dev' long_description = '\n\n'.join([ open('README.rst').read(), open('CREDITS.rst').read(), open('CHANGES.rst').read(), ]) install_requires = [ 'setuptools', ], tests_require = [ 'mock', ] setup(name='nensbuild', version=version, ...
from setuptools import setup version = '0.1dev' long_description = '\n\n'.join([ open('README.rst').read(), open('CREDITS.rst').read(), open('CHANGES.rst').read(), ]) install_requires = [ 'setuptools', ], tests_require = [ 'mock', ] setup(name='nensbuild', version=version, ...
<commit_before>from setuptools import setup version = '0.1dev' long_description = '\n\n'.join([ open('README.rst').read(), open('CREDITS.rst').read(), open('CHANGES.rst').read(), ]) install_requires = [ 'setuptools', ], tests_require = [ 'mock', ] setup(name='nensbuild', versi...
from setuptools import setup version = '0.1dev' long_description = '\n\n'.join([ open('README.rst').read(), open('CREDITS.rst').read(), open('CHANGES.rst').read(), ]) install_requires = [ 'setuptools', ], tests_require = [ 'mock', ] setup(name='nensbuild', version=version, ...
from setuptools import setup version = '0.1dev' long_description = '\n\n'.join([ open('README.rst').read(), open('CREDITS.rst').read(), open('CHANGES.rst').read(), ]) install_requires = [ 'setuptools', ], tests_require = [ 'mock', ] setup(name='nensbuild', version=version, ...
<commit_before>from setuptools import setup version = '0.1dev' long_description = '\n\n'.join([ open('README.rst').read(), open('CREDITS.rst').read(), open('CHANGES.rst').read(), ]) install_requires = [ 'setuptools', ], tests_require = [ 'mock', ] setup(name='nensbuild', versi...
5a78f5a49f868aa8033bc297b5ebf04825691efd
setup.py
setup.py
#!/usr/bin/env python """ Setup to allow pip installs of pok-eco module """ from setuptools import setup setup( name='pok-eco', version='0.1.0', description='POK-ECO Integrations ', author='METID - Politecnico di Milano', url='http://www.metid.polimi.it', license='AGPL', classifiers=[ ...
#!/usr/bin/env python """ Setup to allow pip installs of pok-eco module """ from setuptools import setup setup( name='pok-eco', version='0.1.0', description='POK-ECO Integrations ', author='METID - Politecnico di Milano', url='http://www.metid.polimi.it', license='AGPL', classifiers=[ ...
Add packages for ecoapi e xapi
Add packages for ecoapi e xapi
Python
agpl-3.0
marcore/pok-eco,marcore/pok-eco
#!/usr/bin/env python """ Setup to allow pip installs of pok-eco module """ from setuptools import setup setup( name='pok-eco', version='0.1.0', description='POK-ECO Integrations ', author='METID - Politecnico di Milano', url='http://www.metid.polimi.it', license='AGPL', classifiers=[ ...
#!/usr/bin/env python """ Setup to allow pip installs of pok-eco module """ from setuptools import setup setup( name='pok-eco', version='0.1.0', description='POK-ECO Integrations ', author='METID - Politecnico di Milano', url='http://www.metid.polimi.it', license='AGPL', classifiers=[ ...
<commit_before>#!/usr/bin/env python """ Setup to allow pip installs of pok-eco module """ from setuptools import setup setup( name='pok-eco', version='0.1.0', description='POK-ECO Integrations ', author='METID - Politecnico di Milano', url='http://www.metid.polimi.it', license='AGPL', cla...
#!/usr/bin/env python """ Setup to allow pip installs of pok-eco module """ from setuptools import setup setup( name='pok-eco', version='0.1.0', description='POK-ECO Integrations ', author='METID - Politecnico di Milano', url='http://www.metid.polimi.it', license='AGPL', classifiers=[ ...
#!/usr/bin/env python """ Setup to allow pip installs of pok-eco module """ from setuptools import setup setup( name='pok-eco', version='0.1.0', description='POK-ECO Integrations ', author='METID - Politecnico di Milano', url='http://www.metid.polimi.it', license='AGPL', classifiers=[ ...
<commit_before>#!/usr/bin/env python """ Setup to allow pip installs of pok-eco module """ from setuptools import setup setup( name='pok-eco', version='0.1.0', description='POK-ECO Integrations ', author='METID - Politecnico di Milano', url='http://www.metid.polimi.it', license='AGPL', cla...
47bac77f72477df041fa8cb26fed8f1ff2458c3d
setup.py
setup.py
from distutils.core import setup from setuptools import setup setup( name = 'spice_api', packages = ['spice_api'], # this must be the same as the name above version = '1.0.4', description = 'spice is a pure Python API that wraps around MALs Official API and makes it much better.', long_description ...
from distutils.core import setup from setuptools import setup setup( name = 'spice_api', packages = ['spice_api'], # this must be the same as the name above version = '1.0.4', description = 'spice is a pure Python API that wraps around MALs Official API and makes it much better.', long_description ...
Add lxml to list of install_requires
Add lxml to list of install_requires This is literally the exact same thing as #19, but for some reason, that fix isn't included
Python
mit
Utagai/spice
from distutils.core import setup from setuptools import setup setup( name = 'spice_api', packages = ['spice_api'], # this must be the same as the name above version = '1.0.4', description = 'spice is a pure Python API that wraps around MALs Official API and makes it much better.', long_description ...
from distutils.core import setup from setuptools import setup setup( name = 'spice_api', packages = ['spice_api'], # this must be the same as the name above version = '1.0.4', description = 'spice is a pure Python API that wraps around MALs Official API and makes it much better.', long_description ...
<commit_before>from distutils.core import setup from setuptools import setup setup( name = 'spice_api', packages = ['spice_api'], # this must be the same as the name above version = '1.0.4', description = 'spice is a pure Python API that wraps around MALs Official API and makes it much better.', lo...
from distutils.core import setup from setuptools import setup setup( name = 'spice_api', packages = ['spice_api'], # this must be the same as the name above version = '1.0.4', description = 'spice is a pure Python API that wraps around MALs Official API and makes it much better.', long_description ...
from distutils.core import setup from setuptools import setup setup( name = 'spice_api', packages = ['spice_api'], # this must be the same as the name above version = '1.0.4', description = 'spice is a pure Python API that wraps around MALs Official API and makes it much better.', long_description ...
<commit_before>from distutils.core import setup from setuptools import setup setup( name = 'spice_api', packages = ['spice_api'], # this must be the same as the name above version = '1.0.4', description = 'spice is a pure Python API that wraps around MALs Official API and makes it much better.', lo...
1e76ed0df800d359d4a137e8a3dc8c79b2b2ef79
setup.py
setup.py
import os import setuptools def readme(): if os.path.isfile('README.md'): try: import requests r = requests.post( url='http://c.docverter.com/convert', data={'from': 'markdown', 'to': 'rst'}, files={'input_files[]': open('README.md', ...
import os import setuptools def readme(): if os.path.isfile('README.md'): try: import requests r = requests.post( url='http://c.docverter.com/convert', data={'from': 'markdown', 'to': 'rst'}, files={'input_files[]': open('README.md', ...
Increment to minor version 1.1.0
Increment to minor version 1.1.0
Python
mit
spgill/bitnigma
import os import setuptools def readme(): if os.path.isfile('README.md'): try: import requests r = requests.post( url='http://c.docverter.com/convert', data={'from': 'markdown', 'to': 'rst'}, files={'input_files[]': open('README.md', ...
import os import setuptools def readme(): if os.path.isfile('README.md'): try: import requests r = requests.post( url='http://c.docverter.com/convert', data={'from': 'markdown', 'to': 'rst'}, files={'input_files[]': open('README.md', ...
<commit_before>import os import setuptools def readme(): if os.path.isfile('README.md'): try: import requests r = requests.post( url='http://c.docverter.com/convert', data={'from': 'markdown', 'to': 'rst'}, files={'input_files[]': ope...
import os import setuptools def readme(): if os.path.isfile('README.md'): try: import requests r = requests.post( url='http://c.docverter.com/convert', data={'from': 'markdown', 'to': 'rst'}, files={'input_files[]': open('README.md', ...
import os import setuptools def readme(): if os.path.isfile('README.md'): try: import requests r = requests.post( url='http://c.docverter.com/convert', data={'from': 'markdown', 'to': 'rst'}, files={'input_files[]': open('README.md', ...
<commit_before>import os import setuptools def readme(): if os.path.isfile('README.md'): try: import requests r = requests.post( url='http://c.docverter.com/convert', data={'from': 'markdown', 'to': 'rst'}, files={'input_files[]': ope...
c72158905c0a684c2faded4cccef789c9ead64e0
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup setup(name='l1', version='0.1', description='L1', author='Bugra Akyildiz', author_email='vbugra@gmail.com', url='bugra.github.io', packages=['l1'], install_requires=['pandas==0.25.3', 'cvxopt==1.2.4', ...
#!/usr/bin/env python from setuptools import setup setup(name='l1', version='0.1', description='L1', author='Bugra Akyildiz', author_email='vbugra@gmail.com', url='bugra.github.io', packages=['l1'], install_requires=['pandas==0.25.3', 'cvxopt==1.2.4', ...
Bump statsmodels from 0.10.2 to 0.11.0
Bump statsmodels from 0.10.2 to 0.11.0 Bumps [statsmodels](https://github.com/statsmodels/statsmodels) from 0.10.2 to 0.11.0. - [Release notes](https://github.com/statsmodels/statsmodels/releases) - [Changelog](https://github.com/statsmodels/statsmodels/blob/master/CHANGES.md) - [Commits](https://github.com/statsmodel...
Python
apache-2.0
bugra/l1
#!/usr/bin/env python from setuptools import setup setup(name='l1', version='0.1', description='L1', author='Bugra Akyildiz', author_email='vbugra@gmail.com', url='bugra.github.io', packages=['l1'], install_requires=['pandas==0.25.3', 'cvxopt==1.2.4', ...
#!/usr/bin/env python from setuptools import setup setup(name='l1', version='0.1', description='L1', author='Bugra Akyildiz', author_email='vbugra@gmail.com', url='bugra.github.io', packages=['l1'], install_requires=['pandas==0.25.3', 'cvxopt==1.2.4', ...
<commit_before>#!/usr/bin/env python from setuptools import setup setup(name='l1', version='0.1', description='L1', author='Bugra Akyildiz', author_email='vbugra@gmail.com', url='bugra.github.io', packages=['l1'], install_requires=['pandas==0.25.3', 'c...
#!/usr/bin/env python from setuptools import setup setup(name='l1', version='0.1', description='L1', author='Bugra Akyildiz', author_email='vbugra@gmail.com', url='bugra.github.io', packages=['l1'], install_requires=['pandas==0.25.3', 'cvxopt==1.2.4', ...
#!/usr/bin/env python from setuptools import setup setup(name='l1', version='0.1', description='L1', author='Bugra Akyildiz', author_email='vbugra@gmail.com', url='bugra.github.io', packages=['l1'], install_requires=['pandas==0.25.3', 'cvxopt==1.2.4', ...
<commit_before>#!/usr/bin/env python from setuptools import setup setup(name='l1', version='0.1', description='L1', author='Bugra Akyildiz', author_email='vbugra@gmail.com', url='bugra.github.io', packages=['l1'], install_requires=['pandas==0.25.3', 'c...
f933b5c989f53654003f10d334115ff57b825a1f
setup.py
setup.py
from distutils.core import setup setup( name='snactor', version='0.1', packages=['snactor'], url='https://github.com/leapp-to/snactor', license='ASL 2.0', author="Vinzenz 'evilissimo' Feenstra", author_email='evilissimo@redhat.com', description='snactor is a python library for actors', ...
from distutils.core import setup from setuptools import find_packages setup( name='snactor', version='0.1', packages=find_packages(exclude=['contrib', 'docs', 'tests']), url='https://github.com/leapp-to/snactor', license='ASL 2.0', author="Vinzenz 'evilissimo' Feenstra", author_email='evili...
Make sure all submodules are installed
Make sure all submodules are installed
Python
apache-2.0
leapp-to/snactor
from distutils.core import setup setup( name='snactor', version='0.1', packages=['snactor'], url='https://github.com/leapp-to/snactor', license='ASL 2.0', author="Vinzenz 'evilissimo' Feenstra", author_email='evilissimo@redhat.com', description='snactor is a python library for actors', ...
from distutils.core import setup from setuptools import find_packages setup( name='snactor', version='0.1', packages=find_packages(exclude=['contrib', 'docs', 'tests']), url='https://github.com/leapp-to/snactor', license='ASL 2.0', author="Vinzenz 'evilissimo' Feenstra", author_email='evili...
<commit_before>from distutils.core import setup setup( name='snactor', version='0.1', packages=['snactor'], url='https://github.com/leapp-to/snactor', license='ASL 2.0', author="Vinzenz 'evilissimo' Feenstra", author_email='evilissimo@redhat.com', description='snactor is a python librar...
from distutils.core import setup from setuptools import find_packages setup( name='snactor', version='0.1', packages=find_packages(exclude=['contrib', 'docs', 'tests']), url='https://github.com/leapp-to/snactor', license='ASL 2.0', author="Vinzenz 'evilissimo' Feenstra", author_email='evili...
from distutils.core import setup setup( name='snactor', version='0.1', packages=['snactor'], url='https://github.com/leapp-to/snactor', license='ASL 2.0', author="Vinzenz 'evilissimo' Feenstra", author_email='evilissimo@redhat.com', description='snactor is a python library for actors', ...
<commit_before>from distutils.core import setup setup( name='snactor', version='0.1', packages=['snactor'], url='https://github.com/leapp-to/snactor', license='ASL 2.0', author="Vinzenz 'evilissimo' Feenstra", author_email='evilissimo@redhat.com', description='snactor is a python librar...
9c99da5b8187f8af8cc3008ba06f2e6ece34010d
setup.py
setup.py
#!/usr/bin/env python import os from setuptools import setup, find_packages # Use the docstring of the __init__ file to be the description short_description = " ".join(__import__("cumulus").__doc__.splitlines()).strip() # Use part of the sphinx docs index for the long description doc_dir = os.path.join(os.path.dirn...
#!/usr/bin/env python import os from setuptools import setup, find_packages # Use the docstring of the __init__ file to be the description short_description = " ".join(__import__("cumulus").__doc__.splitlines()).strip() # Use part of the sphinx docs index for the long description doc_dir = os.path.join(os.path.dirn...
Update pyrax, and make it stop reverting if the version is too new
Update pyrax, and make it stop reverting if the version is too new
Python
bsd-3-clause
SmithsonianEnterprises/django-cumulus,SmithsonianEnterprises/django-cumulus
#!/usr/bin/env python import os from setuptools import setup, find_packages # Use the docstring of the __init__ file to be the description short_description = " ".join(__import__("cumulus").__doc__.splitlines()).strip() # Use part of the sphinx docs index for the long description doc_dir = os.path.join(os.path.dirn...
#!/usr/bin/env python import os from setuptools import setup, find_packages # Use the docstring of the __init__ file to be the description short_description = " ".join(__import__("cumulus").__doc__.splitlines()).strip() # Use part of the sphinx docs index for the long description doc_dir = os.path.join(os.path.dirn...
<commit_before>#!/usr/bin/env python import os from setuptools import setup, find_packages # Use the docstring of the __init__ file to be the description short_description = " ".join(__import__("cumulus").__doc__.splitlines()).strip() # Use part of the sphinx docs index for the long description doc_dir = os.path.jo...
#!/usr/bin/env python import os from setuptools import setup, find_packages # Use the docstring of the __init__ file to be the description short_description = " ".join(__import__("cumulus").__doc__.splitlines()).strip() # Use part of the sphinx docs index for the long description doc_dir = os.path.join(os.path.dirn...
#!/usr/bin/env python import os from setuptools import setup, find_packages # Use the docstring of the __init__ file to be the description short_description = " ".join(__import__("cumulus").__doc__.splitlines()).strip() # Use part of the sphinx docs index for the long description doc_dir = os.path.join(os.path.dirn...
<commit_before>#!/usr/bin/env python import os from setuptools import setup, find_packages # Use the docstring of the __init__ file to be the description short_description = " ".join(__import__("cumulus").__doc__.splitlines()).strip() # Use part of the sphinx docs index for the long description doc_dir = os.path.jo...
fa5547f49691ff46e3cf8301afa5ab61955f0456
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup, find_packages setup( name='django-sentry', version='.'.join(map(str, __import__('sentry').__version__)), author='David Cramer', author_email='dcramer@gmail.com', url='http://github.com/dcramer/django-sentry', description = 'Exception Logging ...
#!/usr/bin/env python from setuptools import setup, find_packages setup( name='django-sentry', version='.'.join(map(str, __import__('sentry').__version__)), author='David Cramer', author_email='dcramer@gmail.com', url='http://github.com/dcramer/django-sentry', description = 'Exception Logging ...
Add pygooglechart to the requirements
Add pygooglechart to the requirements
Python
bsd-3-clause
dirtycoder/opbeat_python,daevaorn/sentry,WoLpH/django-sentry,argonemyth/sentry,nicholasserra/sentry,llonchj/sentry,vperron/sentry,jean/sentry,Goldmund-Wyldebeast-Wunderliebe/raven-python,zenefits/sentry,SilentCircle/sentry,felixbuenemann/sentry,ronaldevers/raven-python,jmagnusson/raven-python,NickPresta/sentry,ewdurbin...
#!/usr/bin/env python from setuptools import setup, find_packages setup( name='django-sentry', version='.'.join(map(str, __import__('sentry').__version__)), author='David Cramer', author_email='dcramer@gmail.com', url='http://github.com/dcramer/django-sentry', description = 'Exception Logging ...
#!/usr/bin/env python from setuptools import setup, find_packages setup( name='django-sentry', version='.'.join(map(str, __import__('sentry').__version__)), author='David Cramer', author_email='dcramer@gmail.com', url='http://github.com/dcramer/django-sentry', description = 'Exception Logging ...
<commit_before>#!/usr/bin/env python from setuptools import setup, find_packages setup( name='django-sentry', version='.'.join(map(str, __import__('sentry').__version__)), author='David Cramer', author_email='dcramer@gmail.com', url='http://github.com/dcramer/django-sentry', description = 'Exc...
#!/usr/bin/env python from setuptools import setup, find_packages setup( name='django-sentry', version='.'.join(map(str, __import__('sentry').__version__)), author='David Cramer', author_email='dcramer@gmail.com', url='http://github.com/dcramer/django-sentry', description = 'Exception Logging ...
#!/usr/bin/env python from setuptools import setup, find_packages setup( name='django-sentry', version='.'.join(map(str, __import__('sentry').__version__)), author='David Cramer', author_email='dcramer@gmail.com', url='http://github.com/dcramer/django-sentry', description = 'Exception Logging ...
<commit_before>#!/usr/bin/env python from setuptools import setup, find_packages setup( name='django-sentry', version='.'.join(map(str, __import__('sentry').__version__)), author='David Cramer', author_email='dcramer@gmail.com', url='http://github.com/dcramer/django-sentry', description = 'Exc...
68135585a907892f339e2ac1af77e92e077b8cb8
setup.py
setup.py
import os from setuptools import setup README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read() INSTALL_REQUIREMENTS = ["Pillow"] TEST_REQUIREMENTS = ["mock"] # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='py...
import os from setuptools import setup README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read() INSTALL_REQUIREMENTS = ["Pillow"] TEST_REQUIREMENTS = ["mock"] # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='py...
Update the classifier to specify support for Python 3 as well.
PYD-5: Update the classifier to specify support for Python 3 as well.
Python
bsd-3-clause
azaghal/pydenticon
import os from setuptools import setup README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read() INSTALL_REQUIREMENTS = ["Pillow"] TEST_REQUIREMENTS = ["mock"] # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='py...
import os from setuptools import setup README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read() INSTALL_REQUIREMENTS = ["Pillow"] TEST_REQUIREMENTS = ["mock"] # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='py...
<commit_before>import os from setuptools import setup README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read() INSTALL_REQUIREMENTS = ["Pillow"] TEST_REQUIREMENTS = ["mock"] # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setu...
import os from setuptools import setup README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read() INSTALL_REQUIREMENTS = ["Pillow"] TEST_REQUIREMENTS = ["mock"] # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='py...
import os from setuptools import setup README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read() INSTALL_REQUIREMENTS = ["Pillow"] TEST_REQUIREMENTS = ["mock"] # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='py...
<commit_before>import os from setuptools import setup README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read() INSTALL_REQUIREMENTS = ["Pillow"] TEST_REQUIREMENTS = ["mock"] # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setu...
ab492f85da0db20edbb883e56f30d07328ec4e4f
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Setup for yasi """ import yasi import sys import setuptools setuptools.setup( name='yasi', version=yasi.__version__, description='A dialect aware s-expression indenter', author='Mathew Ngetich', author_email='kipkoechmathew@gmail.com', downloa...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Setup for yasi """ import yasi import sys import setuptools setuptools.setup( name='yasi', version=yasi.__version__, description='A dialect aware s-expression indenter', author='Mathew Ngetich', author_email='kipkoechmathew@gmail.com', downloa...
Add pip console script entry point
Add pip console script entry point
Python
mit
nkmathew/yasi-sexp-indenter,nkmathew/yasi-sexp-indenter
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Setup for yasi """ import yasi import sys import setuptools setuptools.setup( name='yasi', version=yasi.__version__, description='A dialect aware s-expression indenter', author='Mathew Ngetich', author_email='kipkoechmathew@gmail.com', downloa...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Setup for yasi """ import yasi import sys import setuptools setuptools.setup( name='yasi', version=yasi.__version__, description='A dialect aware s-expression indenter', author='Mathew Ngetich', author_email='kipkoechmathew@gmail.com', downloa...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- """ Setup for yasi """ import yasi import sys import setuptools setuptools.setup( name='yasi', version=yasi.__version__, description='A dialect aware s-expression indenter', author='Mathew Ngetich', author_email='kipkoechmathew@gmail.co...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Setup for yasi """ import yasi import sys import setuptools setuptools.setup( name='yasi', version=yasi.__version__, description='A dialect aware s-expression indenter', author='Mathew Ngetich', author_email='kipkoechmathew@gmail.com', downloa...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Setup for yasi """ import yasi import sys import setuptools setuptools.setup( name='yasi', version=yasi.__version__, description='A dialect aware s-expression indenter', author='Mathew Ngetich', author_email='kipkoechmathew@gmail.com', downloa...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- """ Setup for yasi """ import yasi import sys import setuptools setuptools.setup( name='yasi', version=yasi.__version__, description='A dialect aware s-expression indenter', author='Mathew Ngetich', author_email='kipkoechmathew@gmail.co...
ea4b8dcf478fad8597b9d3ed38e1de4ce7db2f08
setup.py
setup.py
#! /usr/bin/python from distutils.core import setup setup(name = 'myproxy_oauth', version = '0.11', description = 'MyProxy OAuth Delegation Service', author = 'Globus Toolkit', author_email = 'support@globus.org', packages = [ 'myproxy', 'myproxyoauth', 'myproxy...
#! /usr/bin/python from distutils.core import setup setup(name = 'myproxy_oauth', version = '0.12', description = 'MyProxy OAuth Delegation Service', author = 'Globus Toolkit', author_email = 'support@globus.org', packages = [ 'myproxy', 'myproxyoauth', 'myproxy...
Use pysqlite2 when sqlite3 is not available
Use pysqlite2 when sqlite3 is not available
Python
apache-2.0
ellert/globus-toolkit,globus/globus-toolkit,globus/globus-toolkit,ellert/globus-toolkit,ellert/globus-toolkit,globus/globus-toolkit,globus/globus-toolkit,globus/globus-toolkit,ellert/globus-toolkit,gridcf/gct,globus/globus-toolkit,ellert/globus-toolkit,gridcf/gct,globus/globus-toolkit,gridcf/gct,globus/globus-toolkit,e...
#! /usr/bin/python from distutils.core import setup setup(name = 'myproxy_oauth', version = '0.11', description = 'MyProxy OAuth Delegation Service', author = 'Globus Toolkit', author_email = 'support@globus.org', packages = [ 'myproxy', 'myproxyoauth', 'myproxy...
#! /usr/bin/python from distutils.core import setup setup(name = 'myproxy_oauth', version = '0.12', description = 'MyProxy OAuth Delegation Service', author = 'Globus Toolkit', author_email = 'support@globus.org', packages = [ 'myproxy', 'myproxyoauth', 'myproxy...
<commit_before>#! /usr/bin/python from distutils.core import setup setup(name = 'myproxy_oauth', version = '0.11', description = 'MyProxy OAuth Delegation Service', author = 'Globus Toolkit', author_email = 'support@globus.org', packages = [ 'myproxy', 'myproxyoauth', ...
#! /usr/bin/python from distutils.core import setup setup(name = 'myproxy_oauth', version = '0.12', description = 'MyProxy OAuth Delegation Service', author = 'Globus Toolkit', author_email = 'support@globus.org', packages = [ 'myproxy', 'myproxyoauth', 'myproxy...
#! /usr/bin/python from distutils.core import setup setup(name = 'myproxy_oauth', version = '0.11', description = 'MyProxy OAuth Delegation Service', author = 'Globus Toolkit', author_email = 'support@globus.org', packages = [ 'myproxy', 'myproxyoauth', 'myproxy...
<commit_before>#! /usr/bin/python from distutils.core import setup setup(name = 'myproxy_oauth', version = '0.11', description = 'MyProxy OAuth Delegation Service', author = 'Globus Toolkit', author_email = 'support@globus.org', packages = [ 'myproxy', 'myproxyoauth', ...
f1da11279ab22a134166bb006d46204ed6e1f4e4
setup.py
setup.py
from setuptools import setup requires = [ 'redis', 'retask', 'fedmsg', ] setup( name='autocloud', version='0.1', description='', author='', author_email='', url='https://github.com/kushaldas/autocloud', install_requires=requires, packages=['autocloud', 'autocloud.web', 'aut...
from setuptools import setup requires = [ 'redis', 'retask', 'fedmsg', ] setup( name='autocloud', version='0.2', description='', author='', author_email='', url='https://github.com/kushaldas/autocloud', install_requires=requires, packages=['autocloud', 'autocloud.web', 'aut...
Put the release number to 0.2
Put the release number to 0.2
Python
agpl-3.0
kushaldas/autocloud,kushaldas/autocloud,kushaldas/autocloud,kushaldas/autocloud
from setuptools import setup requires = [ 'redis', 'retask', 'fedmsg', ] setup( name='autocloud', version='0.1', description='', author='', author_email='', url='https://github.com/kushaldas/autocloud', install_requires=requires, packages=['autocloud', 'autocloud.web', 'aut...
from setuptools import setup requires = [ 'redis', 'retask', 'fedmsg', ] setup( name='autocloud', version='0.2', description='', author='', author_email='', url='https://github.com/kushaldas/autocloud', install_requires=requires, packages=['autocloud', 'autocloud.web', 'aut...
<commit_before>from setuptools import setup requires = [ 'redis', 'retask', 'fedmsg', ] setup( name='autocloud', version='0.1', description='', author='', author_email='', url='https://github.com/kushaldas/autocloud', install_requires=requires, packages=['autocloud', 'autoc...
from setuptools import setup requires = [ 'redis', 'retask', 'fedmsg', ] setup( name='autocloud', version='0.2', description='', author='', author_email='', url='https://github.com/kushaldas/autocloud', install_requires=requires, packages=['autocloud', 'autocloud.web', 'aut...
from setuptools import setup requires = [ 'redis', 'retask', 'fedmsg', ] setup( name='autocloud', version='0.1', description='', author='', author_email='', url='https://github.com/kushaldas/autocloud', install_requires=requires, packages=['autocloud', 'autocloud.web', 'aut...
<commit_before>from setuptools import setup requires = [ 'redis', 'retask', 'fedmsg', ] setup( name='autocloud', version='0.1', description='', author='', author_email='', url='https://github.com/kushaldas/autocloud', install_requires=requires, packages=['autocloud', 'autoc...
494378256dc5fc6fed290a87afcbcc79b31eb37e
linguine/ops/word_cloud_op.py
linguine/ops/word_cloud_op.py
class WordCloudOp: def run(self, data): terms = { } results = [ ] try: for corpus in data: tokens = corpus.tokenized_contents for token in tokens: if token in terms: terms[token]+=1 e...
class WordCloudOp: def run(self, data): terms = { } results = [ ] try: for corpus in data: tokens = corpus.tokenized_contents for token in tokens: if token in terms: terms[token]+=1 e...
Sort term frequency results by frequency
Sort term frequency results by frequency
Python
mit
rigatoni/linguine-python,Pastafarians/linguine-python
class WordCloudOp: def run(self, data): terms = { } results = [ ] try: for corpus in data: tokens = corpus.tokenized_contents for token in tokens: if token in terms: terms[token]+=1 e...
class WordCloudOp: def run(self, data): terms = { } results = [ ] try: for corpus in data: tokens = corpus.tokenized_contents for token in tokens: if token in terms: terms[token]+=1 e...
<commit_before>class WordCloudOp: def run(self, data): terms = { } results = [ ] try: for corpus in data: tokens = corpus.tokenized_contents for token in tokens: if token in terms: terms[token]+=1 ...
class WordCloudOp: def run(self, data): terms = { } results = [ ] try: for corpus in data: tokens = corpus.tokenized_contents for token in tokens: if token in terms: terms[token]+=1 e...
class WordCloudOp: def run(self, data): terms = { } results = [ ] try: for corpus in data: tokens = corpus.tokenized_contents for token in tokens: if token in terms: terms[token]+=1 e...
<commit_before>class WordCloudOp: def run(self, data): terms = { } results = [ ] try: for corpus in data: tokens = corpus.tokenized_contents for token in tokens: if token in terms: terms[token]+=1 ...
dc934f178c5101e0aad592b55101c36608a2eab9
girder/molecules/molecules/utilities/pagination.py
girder/molecules/molecules/utilities/pagination.py
def default_pagination_params(limit=None, offset=None, sort=None): """Returns default params unless they are set""" if limit is None: limit = 25 if offset is None: offset = 0 if sort is None: sort = [('_id', -1)] return limit, offset, sort def parse_pagination_params(param...
from girder.constants import SortDir def default_pagination_params(limit=None, offset=None, sort=None): """Returns default params unless they are set""" if limit is None: limit = 25 if offset is None: offset = 0 if sort is None: sort = [('_id', SortDir.DESCENDING)] return l...
Use SortDir.DESCENDING for default sort direction
Use SortDir.DESCENDING for default sort direction Signed-off-by: Patrick Avery <743342299f279e7a8c3ff5eb40671fce3e95f13a@kitware.com>
Python
bsd-3-clause
OpenChemistry/mongochemserver
def default_pagination_params(limit=None, offset=None, sort=None): """Returns default params unless they are set""" if limit is None: limit = 25 if offset is None: offset = 0 if sort is None: sort = [('_id', -1)] return limit, offset, sort def parse_pagination_params(param...
from girder.constants import SortDir def default_pagination_params(limit=None, offset=None, sort=None): """Returns default params unless they are set""" if limit is None: limit = 25 if offset is None: offset = 0 if sort is None: sort = [('_id', SortDir.DESCENDING)] return l...
<commit_before> def default_pagination_params(limit=None, offset=None, sort=None): """Returns default params unless they are set""" if limit is None: limit = 25 if offset is None: offset = 0 if sort is None: sort = [('_id', -1)] return limit, offset, sort def parse_paginati...
from girder.constants import SortDir def default_pagination_params(limit=None, offset=None, sort=None): """Returns default params unless they are set""" if limit is None: limit = 25 if offset is None: offset = 0 if sort is None: sort = [('_id', SortDir.DESCENDING)] return l...
def default_pagination_params(limit=None, offset=None, sort=None): """Returns default params unless they are set""" if limit is None: limit = 25 if offset is None: offset = 0 if sort is None: sort = [('_id', -1)] return limit, offset, sort def parse_pagination_params(param...
<commit_before> def default_pagination_params(limit=None, offset=None, sort=None): """Returns default params unless they are set""" if limit is None: limit = 25 if offset is None: offset = 0 if sort is None: sort = [('_id', -1)] return limit, offset, sort def parse_paginati...
579ebfda83f3d9ce6add57ccae60e88c874afc9e
fickle/api.py
fickle/api.py
import flask from flask import request, json def Response(data, status = 200): body = json.dumps(data) return flask.Response(body, status = status, mimetype = 'application/json') def SuccessResponse(dataset_id = None): return Response({ 'success': True, 'id': dataset_id }) def ErrorResponse(status = 400)...
import flask from flask import request, json def Response(data, status = 200): body = json.dumps(data) return flask.Response(body, status = status, mimetype = 'application/json') def SuccessResponse(dataset_id = None): return Response({ 'success': True, 'id': dataset_id }) def ErrorResponse(status = 400)...
Change validate HTTP method to PUT
Change validate HTTP method to PUT
Python
mit
norbert/fickle
import flask from flask import request, json def Response(data, status = 200): body = json.dumps(data) return flask.Response(body, status = status, mimetype = 'application/json') def SuccessResponse(dataset_id = None): return Response({ 'success': True, 'id': dataset_id }) def ErrorResponse(status = 400)...
import flask from flask import request, json def Response(data, status = 200): body = json.dumps(data) return flask.Response(body, status = status, mimetype = 'application/json') def SuccessResponse(dataset_id = None): return Response({ 'success': True, 'id': dataset_id }) def ErrorResponse(status = 400)...
<commit_before>import flask from flask import request, json def Response(data, status = 200): body = json.dumps(data) return flask.Response(body, status = status, mimetype = 'application/json') def SuccessResponse(dataset_id = None): return Response({ 'success': True, 'id': dataset_id }) def ErrorRespons...
import flask from flask import request, json def Response(data, status = 200): body = json.dumps(data) return flask.Response(body, status = status, mimetype = 'application/json') def SuccessResponse(dataset_id = None): return Response({ 'success': True, 'id': dataset_id }) def ErrorResponse(status = 400)...
import flask from flask import request, json def Response(data, status = 200): body = json.dumps(data) return flask.Response(body, status = status, mimetype = 'application/json') def SuccessResponse(dataset_id = None): return Response({ 'success': True, 'id': dataset_id }) def ErrorResponse(status = 400)...
<commit_before>import flask from flask import request, json def Response(data, status = 200): body = json.dumps(data) return flask.Response(body, status = status, mimetype = 'application/json') def SuccessResponse(dataset_id = None): return Response({ 'success': True, 'id': dataset_id }) def ErrorRespons...
e8191f4f4be442ad689918e4cbc0c188e874db6f
pyleus/compat.py
pyleus/compat.py
import sys if sys.version_info.major < 3: from cStringIO import StringIO BytesIO = StringIO else: from io import BytesIO from io import StringIO _ = BytesIO _ = StringIO
import sys if sys.version_info[0] < 3: from cStringIO import StringIO BytesIO = StringIO else: from io import BytesIO from io import StringIO _ = BytesIO _ = StringIO
Fix sys.version_info lookup for python 2
Fix sys.version_info lookup for python 2
Python
apache-2.0
patricklucas/pyleus,dapuck/pyleus,mzbyszynski/pyleus,imcom/pyleus,jirafe/pyleus,imcom/pyleus,Yelp/pyleus,stallman-cui/pyleus,poros/pyleus,mzbyszynski/pyleus,Yelp/pyleus,dapuck/pyleus,patricklucas/pyleus,jirafe/pyleus,poros/pyleus,imcom/pyleus,ecanzonieri/pyleus,stallman-cui/pyleus,ecanzonieri/pyleus
import sys if sys.version_info.major < 3: from cStringIO import StringIO BytesIO = StringIO else: from io import BytesIO from io import StringIO _ = BytesIO _ = StringIO Fix sys.version_info lookup for python 2
import sys if sys.version_info[0] < 3: from cStringIO import StringIO BytesIO = StringIO else: from io import BytesIO from io import StringIO _ = BytesIO _ = StringIO
<commit_before>import sys if sys.version_info.major < 3: from cStringIO import StringIO BytesIO = StringIO else: from io import BytesIO from io import StringIO _ = BytesIO _ = StringIO <commit_msg>Fix sys.version_info lookup for python 2<commit_after>
import sys if sys.version_info[0] < 3: from cStringIO import StringIO BytesIO = StringIO else: from io import BytesIO from io import StringIO _ = BytesIO _ = StringIO
import sys if sys.version_info.major < 3: from cStringIO import StringIO BytesIO = StringIO else: from io import BytesIO from io import StringIO _ = BytesIO _ = StringIO Fix sys.version_info lookup for python 2import sys if sys.version_info[0] < 3: from cStringIO import StringIO BytesIO = Str...
<commit_before>import sys if sys.version_info.major < 3: from cStringIO import StringIO BytesIO = StringIO else: from io import BytesIO from io import StringIO _ = BytesIO _ = StringIO <commit_msg>Fix sys.version_info lookup for python 2<commit_after>import sys if sys.version_info[0] < 3: from cS...
d29c28bb51acb388e3ea855dfa1fcc3c4fc0ff74
assess_model_change_watcher.py
assess_model_change_watcher.py
#!/usr/bin/env python """TODO: add rough description of what is assessed in this module.""" from __future__ import print_function import argparse import logging import sys from deploy_stack import ( BootstrapManager, ) from utility import ( add_basic_testing_arguments, configure_logging, ) __me...
#!/usr/bin/env python """TODO: add rough description of what is assessed in this module.""" from __future__ import print_function import argparse import logging import sys from deploy_stack import ( BootstrapManager, ) from jujucharm import local_charm_path from utility import ( add_basic_testing_argumen...
Use Juju 2 compatible deploy.
Use Juju 2 compatible deploy.
Python
agpl-3.0
mjs/juju,mjs/juju,mjs/juju,mjs/juju,mjs/juju,mjs/juju,mjs/juju
#!/usr/bin/env python """TODO: add rough description of what is assessed in this module.""" from __future__ import print_function import argparse import logging import sys from deploy_stack import ( BootstrapManager, ) from utility import ( add_basic_testing_arguments, configure_logging, ) __me...
#!/usr/bin/env python """TODO: add rough description of what is assessed in this module.""" from __future__ import print_function import argparse import logging import sys from deploy_stack import ( BootstrapManager, ) from jujucharm import local_charm_path from utility import ( add_basic_testing_argumen...
<commit_before>#!/usr/bin/env python """TODO: add rough description of what is assessed in this module.""" from __future__ import print_function import argparse import logging import sys from deploy_stack import ( BootstrapManager, ) from utility import ( add_basic_testing_arguments, configure_loggin...
#!/usr/bin/env python """TODO: add rough description of what is assessed in this module.""" from __future__ import print_function import argparse import logging import sys from deploy_stack import ( BootstrapManager, ) from jujucharm import local_charm_path from utility import ( add_basic_testing_argumen...
#!/usr/bin/env python """TODO: add rough description of what is assessed in this module.""" from __future__ import print_function import argparse import logging import sys from deploy_stack import ( BootstrapManager, ) from utility import ( add_basic_testing_arguments, configure_logging, ) __me...
<commit_before>#!/usr/bin/env python """TODO: add rough description of what is assessed in this module.""" from __future__ import print_function import argparse import logging import sys from deploy_stack import ( BootstrapManager, ) from utility import ( add_basic_testing_arguments, configure_loggin...
169a17849349e91cc1673c573437a9922bd07aa5
massa/domain.py
massa/domain.py
# -*- coding: utf-8 -*- from sqlalchemy import ( Column, Date, Integer, MetaData, Numeric, String, Table, ) def define_tables(metadata): Table('measurement', metadata, Column('id', Integer, primary_key=True), Column('weight', Numeric(4, 1), nullable=False), Col...
# -*- coding: utf-8 -*- from sqlalchemy import ( Column, Date, Integer, MetaData, Numeric, String, Table, ) def define_tables(metadata): Table('measurement', metadata, Column('id', Integer, primary_key=True), Column('weight', Numeric(4, 1), nullable=False), Col...
Add a command to find a measurement by id.
Add a command to find a measurement by id.
Python
mit
jaapverloop/massa
# -*- coding: utf-8 -*- from sqlalchemy import ( Column, Date, Integer, MetaData, Numeric, String, Table, ) def define_tables(metadata): Table('measurement', metadata, Column('id', Integer, primary_key=True), Column('weight', Numeric(4, 1), nullable=False), Col...
# -*- coding: utf-8 -*- from sqlalchemy import ( Column, Date, Integer, MetaData, Numeric, String, Table, ) def define_tables(metadata): Table('measurement', metadata, Column('id', Integer, primary_key=True), Column('weight', Numeric(4, 1), nullable=False), Col...
<commit_before># -*- coding: utf-8 -*- from sqlalchemy import ( Column, Date, Integer, MetaData, Numeric, String, Table, ) def define_tables(metadata): Table('measurement', metadata, Column('id', Integer, primary_key=True), Column('weight', Numeric(4, 1), nullable=Fals...
# -*- coding: utf-8 -*- from sqlalchemy import ( Column, Date, Integer, MetaData, Numeric, String, Table, ) def define_tables(metadata): Table('measurement', metadata, Column('id', Integer, primary_key=True), Column('weight', Numeric(4, 1), nullable=False), Col...
# -*- coding: utf-8 -*- from sqlalchemy import ( Column, Date, Integer, MetaData, Numeric, String, Table, ) def define_tables(metadata): Table('measurement', metadata, Column('id', Integer, primary_key=True), Column('weight', Numeric(4, 1), nullable=False), Col...
<commit_before># -*- coding: utf-8 -*- from sqlalchemy import ( Column, Date, Integer, MetaData, Numeric, String, Table, ) def define_tables(metadata): Table('measurement', metadata, Column('id', Integer, primary_key=True), Column('weight', Numeric(4, 1), nullable=Fals...
fa14a8d4733c32269323878b85ac80590ff7f39e
pyconde/sponsorship/tasks.py
pyconde/sponsorship/tasks.py
from contextlib import closing from django.core import mail from django.template.loader import render_to_string from django.conf import settings from django.contrib.auth.models import User from pyconde.sponsorship.models import JobOffer from pyconde.accounts.models import Profile from pyconde.celery import app @ap...
from contextlib import closing from django.core import mail from django.template.loader import render_to_string from django.conf import settings from django.contrib.auth.models import User from pyconde.sponsorship.models import JobOffer from pyconde.accounts.models import Profile from pyconde.celery import app @ap...
Add comment on mail connection
Add comment on mail connection
Python
bsd-3-clause
EuroPython/djep,pysv/djep,EuroPython/djep,EuroPython/djep,pysv/djep,pysv/djep,pysv/djep,EuroPython/djep,pysv/djep
from contextlib import closing from django.core import mail from django.template.loader import render_to_string from django.conf import settings from django.contrib.auth.models import User from pyconde.sponsorship.models import JobOffer from pyconde.accounts.models import Profile from pyconde.celery import app @ap...
from contextlib import closing from django.core import mail from django.template.loader import render_to_string from django.conf import settings from django.contrib.auth.models import User from pyconde.sponsorship.models import JobOffer from pyconde.accounts.models import Profile from pyconde.celery import app @ap...
<commit_before>from contextlib import closing from django.core import mail from django.template.loader import render_to_string from django.conf import settings from django.contrib.auth.models import User from pyconde.sponsorship.models import JobOffer from pyconde.accounts.models import Profile from pyconde.celery i...
from contextlib import closing from django.core import mail from django.template.loader import render_to_string from django.conf import settings from django.contrib.auth.models import User from pyconde.sponsorship.models import JobOffer from pyconde.accounts.models import Profile from pyconde.celery import app @ap...
from contextlib import closing from django.core import mail from django.template.loader import render_to_string from django.conf import settings from django.contrib.auth.models import User from pyconde.sponsorship.models import JobOffer from pyconde.accounts.models import Profile from pyconde.celery import app @ap...
<commit_before>from contextlib import closing from django.core import mail from django.template.loader import render_to_string from django.conf import settings from django.contrib.auth.models import User from pyconde.sponsorship.models import JobOffer from pyconde.accounts.models import Profile from pyconde.celery i...
916c4235f4e05d943ce26993e0db0db35993b4e4
blinkylib/patterns/gradient.py
blinkylib/patterns/gradient.py
import blinkypattern import blinkylib.blinkycolor class Gradient(blinkypattern.BlinkyPattern): def __init__(self, blinkytape, start_color, end_color): super(Gradient, self).__init__(blinkytape) self._start_color = start_color self._end_color = end_color def setup(self): super(G...
import blinkypattern import blinkylib.blinkycolor class Gradient(blinkypattern.BlinkyPattern): def __init__(self, blinkytape, start_color, end_color): super(Gradient, self).__init__(blinkytape) self._pixels = self._make_rgb_gradient(start_color, end_color) def setup(self): super(Gradie...
Refactor Gradient to clean up loops and redundancy
Refactor Gradient to clean up loops and redundancy
Python
mit
jonspeicher/blinkyfun
import blinkypattern import blinkylib.blinkycolor class Gradient(blinkypattern.BlinkyPattern): def __init__(self, blinkytape, start_color, end_color): super(Gradient, self).__init__(blinkytape) self._start_color = start_color self._end_color = end_color def setup(self): super(G...
import blinkypattern import blinkylib.blinkycolor class Gradient(blinkypattern.BlinkyPattern): def __init__(self, blinkytape, start_color, end_color): super(Gradient, self).__init__(blinkytape) self._pixels = self._make_rgb_gradient(start_color, end_color) def setup(self): super(Gradie...
<commit_before>import blinkypattern import blinkylib.blinkycolor class Gradient(blinkypattern.BlinkyPattern): def __init__(self, blinkytape, start_color, end_color): super(Gradient, self).__init__(blinkytape) self._start_color = start_color self._end_color = end_color def setup(self): ...
import blinkypattern import blinkylib.blinkycolor class Gradient(blinkypattern.BlinkyPattern): def __init__(self, blinkytape, start_color, end_color): super(Gradient, self).__init__(blinkytape) self._pixels = self._make_rgb_gradient(start_color, end_color) def setup(self): super(Gradie...
import blinkypattern import blinkylib.blinkycolor class Gradient(blinkypattern.BlinkyPattern): def __init__(self, blinkytape, start_color, end_color): super(Gradient, self).__init__(blinkytape) self._start_color = start_color self._end_color = end_color def setup(self): super(G...
<commit_before>import blinkypattern import blinkylib.blinkycolor class Gradient(blinkypattern.BlinkyPattern): def __init__(self, blinkytape, start_color, end_color): super(Gradient, self).__init__(blinkytape) self._start_color = start_color self._end_color = end_color def setup(self): ...
1093601daf8d42f0e3745788e51c1b843d29f2d7
git-keeper-robot/gkeeprobot/keywords/ServerSetupKeywords.py
git-keeper-robot/gkeeprobot/keywords/ServerSetupKeywords.py
# Copyright 2018 Nathan Sommer and Ben Coleman # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is dis...
# Copyright 2018 Nathan Sommer and Ben Coleman # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is dis...
Add command to stop gkeepd
Add command to stop gkeepd
Python
agpl-3.0
git-keeper/git-keeper,git-keeper/git-keeper
# Copyright 2018 Nathan Sommer and Ben Coleman # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is dis...
# Copyright 2018 Nathan Sommer and Ben Coleman # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is dis...
<commit_before># Copyright 2018 Nathan Sommer and Ben Coleman # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This...
# Copyright 2018 Nathan Sommer and Ben Coleman # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is dis...
# Copyright 2018 Nathan Sommer and Ben Coleman # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is dis...
<commit_before># Copyright 2018 Nathan Sommer and Ben Coleman # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This...
17206b44148f490b865561d191f88e85b6181613
back_office/tests_models.py
back_office/tests_models.py
from decimal import Decimal from django.db import IntegrityError from django.test import TestCase from .models import ClassType class ClassTypeClassTypeTestCases(TestCase): """ Testing Class Type model """ def setUp(self): self.class_type, created = ClassType.objects.get_or_create(name='Class ...
from decimal import Decimal from django.db import IntegrityError from django.test import TestCase from .models import ClassType class ClassTypeTestCases(TestCase): """ Testing Class Type model """ def setUp(self): self.class_type, created = ClassType.objects.get_or_create(name='Class Type...
Fix the Class Type Test Cases class name, and enhance the create new
Fix the Class Type Test Cases class name, and enhance the create new
Python
mit
EmadMokhtar/halaqat,EmadMokhtar/halaqat,EmadMokhtar/halaqat
from decimal import Decimal from django.db import IntegrityError from django.test import TestCase from .models import ClassType class ClassTypeClassTypeTestCases(TestCase): """ Testing Class Type model """ def setUp(self): self.class_type, created = ClassType.objects.get_or_create(name='Class ...
from decimal import Decimal from django.db import IntegrityError from django.test import TestCase from .models import ClassType class ClassTypeTestCases(TestCase): """ Testing Class Type model """ def setUp(self): self.class_type, created = ClassType.objects.get_or_create(name='Class Type...
<commit_before>from decimal import Decimal from django.db import IntegrityError from django.test import TestCase from .models import ClassType class ClassTypeClassTypeTestCases(TestCase): """ Testing Class Type model """ def setUp(self): self.class_type, created = ClassType.objects.get_or_crea...
from decimal import Decimal from django.db import IntegrityError from django.test import TestCase from .models import ClassType class ClassTypeTestCases(TestCase): """ Testing Class Type model """ def setUp(self): self.class_type, created = ClassType.objects.get_or_create(name='Class Type...
from decimal import Decimal from django.db import IntegrityError from django.test import TestCase from .models import ClassType class ClassTypeClassTypeTestCases(TestCase): """ Testing Class Type model """ def setUp(self): self.class_type, created = ClassType.objects.get_or_create(name='Class ...
<commit_before>from decimal import Decimal from django.db import IntegrityError from django.test import TestCase from .models import ClassType class ClassTypeClassTypeTestCases(TestCase): """ Testing Class Type model """ def setUp(self): self.class_type, created = ClassType.objects.get_or_crea...
3cd9fc540e9989c1842b38d35f9e01bd269a5957
pib/stack.py
pib/stack.py
"""The Pibstack.yaml parsing code.""" import yaml class StackConfig(object): """The configuration for the stack.""" def __init__(self, path_to_repo): self.services = {} # map service name to config dict self.databases = {} # map database name to config dict self.path_to_repo = pat...
"""The Pibstack.yaml parsing code.""" import yaml from .schema import validate class StackConfig(object): """The configuration for the stack.""" def __init__(self, path_to_repo): self.services = {} # map service name to config dict self.databases = {} # map database name to config dict ...
Validate the schema when loading it.
Validate the schema when loading it.
Python
apache-2.0
datawire/pib
"""The Pibstack.yaml parsing code.""" import yaml class StackConfig(object): """The configuration for the stack.""" def __init__(self, path_to_repo): self.services = {} # map service name to config dict self.databases = {} # map database name to config dict self.path_to_repo = pat...
"""The Pibstack.yaml parsing code.""" import yaml from .schema import validate class StackConfig(object): """The configuration for the stack.""" def __init__(self, path_to_repo): self.services = {} # map service name to config dict self.databases = {} # map database name to config dict ...
<commit_before>"""The Pibstack.yaml parsing code.""" import yaml class StackConfig(object): """The configuration for the stack.""" def __init__(self, path_to_repo): self.services = {} # map service name to config dict self.databases = {} # map database name to config dict self.pat...
"""The Pibstack.yaml parsing code.""" import yaml from .schema import validate class StackConfig(object): """The configuration for the stack.""" def __init__(self, path_to_repo): self.services = {} # map service name to config dict self.databases = {} # map database name to config dict ...
"""The Pibstack.yaml parsing code.""" import yaml class StackConfig(object): """The configuration for the stack.""" def __init__(self, path_to_repo): self.services = {} # map service name to config dict self.databases = {} # map database name to config dict self.path_to_repo = pat...
<commit_before>"""The Pibstack.yaml parsing code.""" import yaml class StackConfig(object): """The configuration for the stack.""" def __init__(self, path_to_repo): self.services = {} # map service name to config dict self.databases = {} # map database name to config dict self.pat...
f659b022a942acdeef8adf75d32f1e77ee292b88
apps/domain/src/main/core/manager/request_manager.py
apps/domain/src/main/core/manager/request_manager.py
from typing import Union from typing import List from datetime import datetime from .database_manager import DatabaseManager from ..database.requests.request import Request from .role_manager import RoleManager from ..exceptions import RequestError class RequestManager(DatabaseManager): schema = Request de...
from typing import Union from typing import List from datetime import datetime from .database_manager import DatabaseManager from ..database.requests.request import Request from .role_manager import RoleManager from ..exceptions import RequestError from syft.core.node.domain.service import RequestStatus from syft.core...
Update create_request method / Create status method
Update create_request method / Create status method
Python
apache-2.0
OpenMined/PySyft,OpenMined/PySyft,OpenMined/PySyft,OpenMined/PySyft
from typing import Union from typing import List from datetime import datetime from .database_manager import DatabaseManager from ..database.requests.request import Request from .role_manager import RoleManager from ..exceptions import RequestError class RequestManager(DatabaseManager): schema = Request de...
from typing import Union from typing import List from datetime import datetime from .database_manager import DatabaseManager from ..database.requests.request import Request from .role_manager import RoleManager from ..exceptions import RequestError from syft.core.node.domain.service import RequestStatus from syft.core...
<commit_before>from typing import Union from typing import List from datetime import datetime from .database_manager import DatabaseManager from ..database.requests.request import Request from .role_manager import RoleManager from ..exceptions import RequestError class RequestManager(DatabaseManager): schema = ...
from typing import Union from typing import List from datetime import datetime from .database_manager import DatabaseManager from ..database.requests.request import Request from .role_manager import RoleManager from ..exceptions import RequestError from syft.core.node.domain.service import RequestStatus from syft.core...
from typing import Union from typing import List from datetime import datetime from .database_manager import DatabaseManager from ..database.requests.request import Request from .role_manager import RoleManager from ..exceptions import RequestError class RequestManager(DatabaseManager): schema = Request de...
<commit_before>from typing import Union from typing import List from datetime import datetime from .database_manager import DatabaseManager from ..database.requests.request import Request from .role_manager import RoleManager from ..exceptions import RequestError class RequestManager(DatabaseManager): schema = ...
d7bac21f86d1d9cf13439d0ed33da9fdd1b5a552
src/setup.py
src/setup.py
#! /usr/bin/python import os import setuptools import sys # FIXME explain why this is here sys.path.insert(0, os.path.join( os.path.dirname(__file__), "lib", )) import opensub setuptools.setup( author="Bence Romsics", author_email="rubasov+opensub@gmail.com", description="CL...
#! /usr/bin/python import os import setuptools import sys # FIXME explain why this is here sys.path.insert(0, os.path.join( os.path.dirname(__file__), "lib", )) import opensub setuptools.setup( author="Bence Romsics", author_email="rubasov+opensub@gmail.com", classifiers=[ ...
Add a nice list of classifiers.
Add a nice list of classifiers.
Python
bsd-2-clause
rubasov/opensub-utils,rubasov/opensub-utils
#! /usr/bin/python import os import setuptools import sys # FIXME explain why this is here sys.path.insert(0, os.path.join( os.path.dirname(__file__), "lib", )) import opensub setuptools.setup( author="Bence Romsics", author_email="rubasov+opensub@gmail.com", description="CL...
#! /usr/bin/python import os import setuptools import sys # FIXME explain why this is here sys.path.insert(0, os.path.join( os.path.dirname(__file__), "lib", )) import opensub setuptools.setup( author="Bence Romsics", author_email="rubasov+opensub@gmail.com", classifiers=[ ...
<commit_before>#! /usr/bin/python import os import setuptools import sys # FIXME explain why this is here sys.path.insert(0, os.path.join( os.path.dirname(__file__), "lib", )) import opensub setuptools.setup( author="Bence Romsics", author_email="rubasov+opensub@gmail.com", ...
#! /usr/bin/python import os import setuptools import sys # FIXME explain why this is here sys.path.insert(0, os.path.join( os.path.dirname(__file__), "lib", )) import opensub setuptools.setup( author="Bence Romsics", author_email="rubasov+opensub@gmail.com", classifiers=[ ...
#! /usr/bin/python import os import setuptools import sys # FIXME explain why this is here sys.path.insert(0, os.path.join( os.path.dirname(__file__), "lib", )) import opensub setuptools.setup( author="Bence Romsics", author_email="rubasov+opensub@gmail.com", description="CL...
<commit_before>#! /usr/bin/python import os import setuptools import sys # FIXME explain why this is here sys.path.insert(0, os.path.join( os.path.dirname(__file__), "lib", )) import opensub setuptools.setup( author="Bence Romsics", author_email="rubasov+opensub@gmail.com", ...
e4ef3df9401bde3c2087a7659a54246de8ec95c6
src/api/urls.py
src/api/urls.py
from rest_framework.routers import SimpleRouter # from bingo_server.api import views as bingo_server_views router = SimpleRouter() router.register('games', bingo_server_views.GameViewSet) urlpatterns = router.urls
from rest_framework.routers import DefaultRouter # from bingo_server.api import views as bingo_server_views router = DefaultRouter() router.register('games', bingo_server_views.GameViewSet) urlpatterns = router.urls
Add root view to API
Add root view to API
Python
mit
steakholders-tm/bingo-server
from rest_framework.routers import SimpleRouter # from bingo_server.api import views as bingo_server_views router = SimpleRouter() router.register('games', bingo_server_views.GameViewSet) urlpatterns = router.urls Add root view to API
from rest_framework.routers import DefaultRouter # from bingo_server.api import views as bingo_server_views router = DefaultRouter() router.register('games', bingo_server_views.GameViewSet) urlpatterns = router.urls
<commit_before>from rest_framework.routers import SimpleRouter # from bingo_server.api import views as bingo_server_views router = SimpleRouter() router.register('games', bingo_server_views.GameViewSet) urlpatterns = router.urls <commit_msg>Add root view to API<commit_after>
from rest_framework.routers import DefaultRouter # from bingo_server.api import views as bingo_server_views router = DefaultRouter() router.register('games', bingo_server_views.GameViewSet) urlpatterns = router.urls
from rest_framework.routers import SimpleRouter # from bingo_server.api import views as bingo_server_views router = SimpleRouter() router.register('games', bingo_server_views.GameViewSet) urlpatterns = router.urls Add root view to APIfrom rest_framework.routers import DefaultRouter # from bingo_server.api import v...
<commit_before>from rest_framework.routers import SimpleRouter # from bingo_server.api import views as bingo_server_views router = SimpleRouter() router.register('games', bingo_server_views.GameViewSet) urlpatterns = router.urls <commit_msg>Add root view to API<commit_after>from rest_framework.routers import Defaul...
b59fead0687dd3dbacae703cc1ea0c49305c44eb
shcol/cli.py
shcol/cli.py
from __future__ import print_function import argparse import shcol __all__ = ['main'] def main(cmd_args): parser = argparse.ArgumentParser( description='Generate columnized output for given string items.' ) parser.add_argument('items', nargs='+', help='an item to columnize') parser.add_argume...
from __future__ import print_function import argparse import shcol __all__ = ['main'] def main(cmd_args): parser = argparse.ArgumentParser( description='Generate columnized output for given string items.', version='shcol {}'.format(shcol.__version__) ) parser.add_argument('items', nargs='...
Add command-line option for program version.
Add command-line option for program version.
Python
bsd-2-clause
seblin/shcol
from __future__ import print_function import argparse import shcol __all__ = ['main'] def main(cmd_args): parser = argparse.ArgumentParser( description='Generate columnized output for given string items.' ) parser.add_argument('items', nargs='+', help='an item to columnize') parser.add_argume...
from __future__ import print_function import argparse import shcol __all__ = ['main'] def main(cmd_args): parser = argparse.ArgumentParser( description='Generate columnized output for given string items.', version='shcol {}'.format(shcol.__version__) ) parser.add_argument('items', nargs='...
<commit_before>from __future__ import print_function import argparse import shcol __all__ = ['main'] def main(cmd_args): parser = argparse.ArgumentParser( description='Generate columnized output for given string items.' ) parser.add_argument('items', nargs='+', help='an item to columnize') pa...
from __future__ import print_function import argparse import shcol __all__ = ['main'] def main(cmd_args): parser = argparse.ArgumentParser( description='Generate columnized output for given string items.', version='shcol {}'.format(shcol.__version__) ) parser.add_argument('items', nargs='...
from __future__ import print_function import argparse import shcol __all__ = ['main'] def main(cmd_args): parser = argparse.ArgumentParser( description='Generate columnized output for given string items.' ) parser.add_argument('items', nargs='+', help='an item to columnize') parser.add_argume...
<commit_before>from __future__ import print_function import argparse import shcol __all__ = ['main'] def main(cmd_args): parser = argparse.ArgumentParser( description='Generate columnized output for given string items.' ) parser.add_argument('items', nargs='+', help='an item to columnize') pa...
f0c9acaedd9cc36d91758f383a4c703866cde4c7
idavoll/error.py
idavoll/error.py
# Copyright (c) 2003-2008 Ralph Meijer # See LICENSE for details. class Error(Exception): msg = '' def __str__(self): return self.msg class NodeNotFound(Error): pass class NodeExists(Error): pass class NotSubscribed(Error): """ Entity is not subscribed to this node. """ class S...
# Copyright (c) 2003-2008 Ralph Meijer # See LICENSE for details. class Error(Exception): msg = '' def __str__(self): return self.msg class NodeNotFound(Error): pass class NodeExists(Error): pass class NotSubscribed(Error): """ Entity is not subscribed to this node. """ cla...
Adjust spacing to match Twisted's.
Adjust spacing to match Twisted's. --HG-- extra : convert_revision : svn%3Ae60b0d31-0b1b-0410-851a-a02d0c527677/trunk%40258
Python
mit
ralphm/idavoll
# Copyright (c) 2003-2008 Ralph Meijer # See LICENSE for details. class Error(Exception): msg = '' def __str__(self): return self.msg class NodeNotFound(Error): pass class NodeExists(Error): pass class NotSubscribed(Error): """ Entity is not subscribed to this node. """ class S...
# Copyright (c) 2003-2008 Ralph Meijer # See LICENSE for details. class Error(Exception): msg = '' def __str__(self): return self.msg class NodeNotFound(Error): pass class NodeExists(Error): pass class NotSubscribed(Error): """ Entity is not subscribed to this node. """ cla...
<commit_before># Copyright (c) 2003-2008 Ralph Meijer # See LICENSE for details. class Error(Exception): msg = '' def __str__(self): return self.msg class NodeNotFound(Error): pass class NodeExists(Error): pass class NotSubscribed(Error): """ Entity is not subscribed to this node. ...
# Copyright (c) 2003-2008 Ralph Meijer # See LICENSE for details. class Error(Exception): msg = '' def __str__(self): return self.msg class NodeNotFound(Error): pass class NodeExists(Error): pass class NotSubscribed(Error): """ Entity is not subscribed to this node. """ cla...
# Copyright (c) 2003-2008 Ralph Meijer # See LICENSE for details. class Error(Exception): msg = '' def __str__(self): return self.msg class NodeNotFound(Error): pass class NodeExists(Error): pass class NotSubscribed(Error): """ Entity is not subscribed to this node. """ class S...
<commit_before># Copyright (c) 2003-2008 Ralph Meijer # See LICENSE for details. class Error(Exception): msg = '' def __str__(self): return self.msg class NodeNotFound(Error): pass class NodeExists(Error): pass class NotSubscribed(Error): """ Entity is not subscribed to this node. ...
573cd0271575f933866fe325c31ed54824b3bc3e
structure.py
structure.py
from fractions import Fraction from parser import Parser class LinearProgram: def __init__(self): self.nbVariables = 0 self.nbConstraints = 0 self.objective = None self.tableaux = None self.variableFromIndex = {} self.indexFromVariable = {} def __str__(self): ...
from fractions import Fraction from parser import Parser class LinearProgram: def __init__(self): self.nbVariables = 0 self.nbConstraints = 0 self.objective = None self.tableaux = None self.variableFromIndex = {} self.indexFromVariable = {} def __str__(self): ...
Fix displaying of the matrix.
Fix displaying of the matrix.
Python
mit
Ezibenroc/simplex
from fractions import Fraction from parser import Parser class LinearProgram: def __init__(self): self.nbVariables = 0 self.nbConstraints = 0 self.objective = None self.tableaux = None self.variableFromIndex = {} self.indexFromVariable = {} def __str__(self): ...
from fractions import Fraction from parser import Parser class LinearProgram: def __init__(self): self.nbVariables = 0 self.nbConstraints = 0 self.objective = None self.tableaux = None self.variableFromIndex = {} self.indexFromVariable = {} def __str__(self): ...
<commit_before>from fractions import Fraction from parser import Parser class LinearProgram: def __init__(self): self.nbVariables = 0 self.nbConstraints = 0 self.objective = None self.tableaux = None self.variableFromIndex = {} self.indexFromVariable = {} def _...
from fractions import Fraction from parser import Parser class LinearProgram: def __init__(self): self.nbVariables = 0 self.nbConstraints = 0 self.objective = None self.tableaux = None self.variableFromIndex = {} self.indexFromVariable = {} def __str__(self): ...
from fractions import Fraction from parser import Parser class LinearProgram: def __init__(self): self.nbVariables = 0 self.nbConstraints = 0 self.objective = None self.tableaux = None self.variableFromIndex = {} self.indexFromVariable = {} def __str__(self): ...
<commit_before>from fractions import Fraction from parser import Parser class LinearProgram: def __init__(self): self.nbVariables = 0 self.nbConstraints = 0 self.objective = None self.tableaux = None self.variableFromIndex = {} self.indexFromVariable = {} def _...
ad0a23312b197c2196e96733ce9ca66249c09f06
book/stacks/stack_right.py
book/stacks/stack_right.py
class Stack(object): def __init__(self): self._items = [] def is_empty(self): return not bool(self._items) def push(self, item): self._items.append(item) def pop(self): return self._items.pop() def peek(self): return self._items[-1] def size(self): ...
class Stack: def __init__(self): self._items = [] def is_empty(self): return not bool(self._items) def push(self, item): self._items.append(item) def pop(self): return self._items.pop() def peek(self): return self._items[-1] def size(self): r...
Make the two Stack implementations consistent
Make the two Stack implementations consistent In terms of whether they inherit from `object` (now they both don't).
Python
cc0-1.0
Bradfield/algos,Bradfield/algorithms-and-data-structures,Bradfield/algorithms-and-data-structures,Bradfield/algorithms-and-data-structures,Bradfield/algos,Bradfield/algos,Bradfield/algos,Bradfield/algorithms-and-data-structures
class Stack(object): def __init__(self): self._items = [] def is_empty(self): return not bool(self._items) def push(self, item): self._items.append(item) def pop(self): return self._items.pop() def peek(self): return self._items[-1] def size(self): ...
class Stack: def __init__(self): self._items = [] def is_empty(self): return not bool(self._items) def push(self, item): self._items.append(item) def pop(self): return self._items.pop() def peek(self): return self._items[-1] def size(self): r...
<commit_before>class Stack(object): def __init__(self): self._items = [] def is_empty(self): return not bool(self._items) def push(self, item): self._items.append(item) def pop(self): return self._items.pop() def peek(self): return self._items[-1] de...
class Stack: def __init__(self): self._items = [] def is_empty(self): return not bool(self._items) def push(self, item): self._items.append(item) def pop(self): return self._items.pop() def peek(self): return self._items[-1] def size(self): r...
class Stack(object): def __init__(self): self._items = [] def is_empty(self): return not bool(self._items) def push(self, item): self._items.append(item) def pop(self): return self._items.pop() def peek(self): return self._items[-1] def size(self): ...
<commit_before>class Stack(object): def __init__(self): self._items = [] def is_empty(self): return not bool(self._items) def push(self, item): self._items.append(item) def pop(self): return self._items.pop() def peek(self): return self._items[-1] de...
6b11a3e6fb3f219747eac8cc41c7a8b8b2e34e1d
{{cookiecutter.repo_name}}/tests/test_extension.py
{{cookiecutter.repo_name}}/tests/test_extension.py
import unittest from mopidy_{{ cookiecutter.ext_name }} import Extension, frontend as frontend_lib class ExtensionTest(unittest.TestCase): def test_get_default_config(self): ext = Extension() config = ext.get_default_config() self.assertIn('[{{ cookiecutter.ext_name }}]', config) ...
from __future__ import unicode_literals import unittest from mopidy_{{ cookiecutter.ext_name }} import Extension, frontend as frontend_lib class ExtensionTest(unittest.TestCase): def test_get_default_config(self): ext = Extension() config = ext.get_default_config() self.assertIn('[{{ ...
Add unicode_literals import to test suite
Add unicode_literals import to test suite
Python
apache-2.0
mopidy/cookiecutter-mopidy-ext
import unittest from mopidy_{{ cookiecutter.ext_name }} import Extension, frontend as frontend_lib class ExtensionTest(unittest.TestCase): def test_get_default_config(self): ext = Extension() config = ext.get_default_config() self.assertIn('[{{ cookiecutter.ext_name }}]', config) ...
from __future__ import unicode_literals import unittest from mopidy_{{ cookiecutter.ext_name }} import Extension, frontend as frontend_lib class ExtensionTest(unittest.TestCase): def test_get_default_config(self): ext = Extension() config = ext.get_default_config() self.assertIn('[{{ ...
<commit_before>import unittest from mopidy_{{ cookiecutter.ext_name }} import Extension, frontend as frontend_lib class ExtensionTest(unittest.TestCase): def test_get_default_config(self): ext = Extension() config = ext.get_default_config() self.assertIn('[{{ cookiecutter.ext_name }}]'...
from __future__ import unicode_literals import unittest from mopidy_{{ cookiecutter.ext_name }} import Extension, frontend as frontend_lib class ExtensionTest(unittest.TestCase): def test_get_default_config(self): ext = Extension() config = ext.get_default_config() self.assertIn('[{{ ...
import unittest from mopidy_{{ cookiecutter.ext_name }} import Extension, frontend as frontend_lib class ExtensionTest(unittest.TestCase): def test_get_default_config(self): ext = Extension() config = ext.get_default_config() self.assertIn('[{{ cookiecutter.ext_name }}]', config) ...
<commit_before>import unittest from mopidy_{{ cookiecutter.ext_name }} import Extension, frontend as frontend_lib class ExtensionTest(unittest.TestCase): def test_get_default_config(self): ext = Extension() config = ext.get_default_config() self.assertIn('[{{ cookiecutter.ext_name }}]'...
50d9601ea0fa35a9d5d831353f5a17b33dc7d8bf
panoptes_client/subject_set.py
panoptes_client/subject_set.py
from panoptes_client.panoptes import PanoptesObject, LinkResolver from panoptes_client.subject import Subject class SubjectSet(PanoptesObject): _api_slug = 'subject_sets' _link_slug = 'subject_sets' _edit_attributes = ( 'display_name', { 'links': ( 'project', ...
from panoptes_client.panoptes import PanoptesObject, LinkResolver from panoptes_client.subject import Subject class SubjectSet(PanoptesObject): _api_slug = 'subject_sets' _link_slug = 'subject_sets' _edit_attributes = ( 'display_name', { 'links': ( 'project', ...
Revert "Don't try to save SubjectSet.links.project on exiting objects"
Revert "Don't try to save SubjectSet.links.project on exiting objects" This reverts commit b9a107b45cf2569f9effa1c8836a65255f2f3e64. Superseded by 7d2fecab46f0ede85c00fba8335a8dd74fe16489
Python
apache-2.0
zooniverse/panoptes-python-client
from panoptes_client.panoptes import PanoptesObject, LinkResolver from panoptes_client.subject import Subject class SubjectSet(PanoptesObject): _api_slug = 'subject_sets' _link_slug = 'subject_sets' _edit_attributes = ( 'display_name', { 'links': ( 'project', ...
from panoptes_client.panoptes import PanoptesObject, LinkResolver from panoptes_client.subject import Subject class SubjectSet(PanoptesObject): _api_slug = 'subject_sets' _link_slug = 'subject_sets' _edit_attributes = ( 'display_name', { 'links': ( 'project', ...
<commit_before>from panoptes_client.panoptes import PanoptesObject, LinkResolver from panoptes_client.subject import Subject class SubjectSet(PanoptesObject): _api_slug = 'subject_sets' _link_slug = 'subject_sets' _edit_attributes = ( 'display_name', { 'links': ( ...
from panoptes_client.panoptes import PanoptesObject, LinkResolver from panoptes_client.subject import Subject class SubjectSet(PanoptesObject): _api_slug = 'subject_sets' _link_slug = 'subject_sets' _edit_attributes = ( 'display_name', { 'links': ( 'project', ...
from panoptes_client.panoptes import PanoptesObject, LinkResolver from panoptes_client.subject import Subject class SubjectSet(PanoptesObject): _api_slug = 'subject_sets' _link_slug = 'subject_sets' _edit_attributes = ( 'display_name', { 'links': ( 'project', ...
<commit_before>from panoptes_client.panoptes import PanoptesObject, LinkResolver from panoptes_client.subject import Subject class SubjectSet(PanoptesObject): _api_slug = 'subject_sets' _link_slug = 'subject_sets' _edit_attributes = ( 'display_name', { 'links': ( ...
18a074eac431ba4a556cccb4ebf00aa43647631d
SublimePlumbSend.py
SublimePlumbSend.py
import sublime, sublime_plugin import os from SublimePlumb.Mouse import MouseCommand class SublimePlumbSend(MouseCommand): """ Sends the current selected text to the plumbing """ def run(self, edit): file_name = self.view.file_name() message = { "data": self.view.substr(self.selecti...
import sublime, sublime_plugin import os from SublimePlumb.Mouse import MouseCommand class SublimePlumbSend(MouseCommand): """ Sends the current selected text to the plumbing """ def run(self, edit): file_name = self.view.file_name() message = { "data": self.view.substr(self.selecti...
Move selection clearing to before running the action
Move selection clearing to before running the action This allows actions like "jump" to modify the selection
Python
mit
lionicsheriff/SublimeAcmePlumbing
import sublime, sublime_plugin import os from SublimePlumb.Mouse import MouseCommand class SublimePlumbSend(MouseCommand): """ Sends the current selected text to the plumbing """ def run(self, edit): file_name = self.view.file_name() message = { "data": self.view.substr(self.selecti...
import sublime, sublime_plugin import os from SublimePlumb.Mouse import MouseCommand class SublimePlumbSend(MouseCommand): """ Sends the current selected text to the plumbing """ def run(self, edit): file_name = self.view.file_name() message = { "data": self.view.substr(self.selecti...
<commit_before>import sublime, sublime_plugin import os from SublimePlumb.Mouse import MouseCommand class SublimePlumbSend(MouseCommand): """ Sends the current selected text to the plumbing """ def run(self, edit): file_name = self.view.file_name() message = { "data": self.view.subs...
import sublime, sublime_plugin import os from SublimePlumb.Mouse import MouseCommand class SublimePlumbSend(MouseCommand): """ Sends the current selected text to the plumbing """ def run(self, edit): file_name = self.view.file_name() message = { "data": self.view.substr(self.selecti...
import sublime, sublime_plugin import os from SublimePlumb.Mouse import MouseCommand class SublimePlumbSend(MouseCommand): """ Sends the current selected text to the plumbing """ def run(self, edit): file_name = self.view.file_name() message = { "data": self.view.substr(self.selecti...
<commit_before>import sublime, sublime_plugin import os from SublimePlumb.Mouse import MouseCommand class SublimePlumbSend(MouseCommand): """ Sends the current selected text to the plumbing """ def run(self, edit): file_name = self.view.file_name() message = { "data": self.view.subs...
709b9e57d8ea664715fd9bb89729f99324c3e0c2
libs/utils.py
libs/utils.py
from django.core.cache import cache #get the cache key for storage def cache_get_key(*args, **kwargs): import hashlib serialise = [] for arg in args: serialise.append(str(arg)) for key,arg in kwargs.items(): if key == "clear_cache": continue serialise.append(str(key)...
from django.core.cache import cache def cache_get_key(*args, **kwargs): """Get the cache key for storage""" import hashlib serialise = [] for arg in args: serialise.append(str(arg)) for key,arg in kwargs.items(): if key == "clear_cache": continue serialise.appen...
Delete cache first before setting new value
Delete cache first before setting new value
Python
mit
daigotanaka/kawaraban,daigotanaka/kawaraban,daigotanaka/kawaraban,daigotanaka/kawaraban
from django.core.cache import cache #get the cache key for storage def cache_get_key(*args, **kwargs): import hashlib serialise = [] for arg in args: serialise.append(str(arg)) for key,arg in kwargs.items(): if key == "clear_cache": continue serialise.append(str(key)...
from django.core.cache import cache def cache_get_key(*args, **kwargs): """Get the cache key for storage""" import hashlib serialise = [] for arg in args: serialise.append(str(arg)) for key,arg in kwargs.items(): if key == "clear_cache": continue serialise.appen...
<commit_before>from django.core.cache import cache #get the cache key for storage def cache_get_key(*args, **kwargs): import hashlib serialise = [] for arg in args: serialise.append(str(arg)) for key,arg in kwargs.items(): if key == "clear_cache": continue serialise....
from django.core.cache import cache def cache_get_key(*args, **kwargs): """Get the cache key for storage""" import hashlib serialise = [] for arg in args: serialise.append(str(arg)) for key,arg in kwargs.items(): if key == "clear_cache": continue serialise.appen...
from django.core.cache import cache #get the cache key for storage def cache_get_key(*args, **kwargs): import hashlib serialise = [] for arg in args: serialise.append(str(arg)) for key,arg in kwargs.items(): if key == "clear_cache": continue serialise.append(str(key)...
<commit_before>from django.core.cache import cache #get the cache key for storage def cache_get_key(*args, **kwargs): import hashlib serialise = [] for arg in args: serialise.append(str(arg)) for key,arg in kwargs.items(): if key == "clear_cache": continue serialise....
6b49f7b1948ab94631c79304c91f8d5590d03e40
addons/project/models/project_config_settings.py
addons/project/models/project_config_settings.py
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import api, fields, models class ProjectConfiguration(models.TransientModel): _name = 'project.config.settings' _inherit = 'res.config.settings' company_id = fields.Many2one('res.company', string...
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import api, fields, models class ProjectConfiguration(models.TransientModel): _name = 'project.config.settings' _inherit = 'res.config.settings' company_id = fields.Many2one('res.company', string...
Enable `Timesheets` option if `Time Billing` is enabled
[IMP] project: Enable `Timesheets` option if `Time Billing` is enabled
Python
agpl-3.0
ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import api, fields, models class ProjectConfiguration(models.TransientModel): _name = 'project.config.settings' _inherit = 'res.config.settings' company_id = fields.Many2one('res.company', string...
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import api, fields, models class ProjectConfiguration(models.TransientModel): _name = 'project.config.settings' _inherit = 'res.config.settings' company_id = fields.Many2one('res.company', string...
<commit_before># -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import api, fields, models class ProjectConfiguration(models.TransientModel): _name = 'project.config.settings' _inherit = 'res.config.settings' company_id = fields.Many2one('res.c...
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import api, fields, models class ProjectConfiguration(models.TransientModel): _name = 'project.config.settings' _inherit = 'res.config.settings' company_id = fields.Many2one('res.company', string...
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import api, fields, models class ProjectConfiguration(models.TransientModel): _name = 'project.config.settings' _inherit = 'res.config.settings' company_id = fields.Many2one('res.company', string...
<commit_before># -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import api, fields, models class ProjectConfiguration(models.TransientModel): _name = 'project.config.settings' _inherit = 'res.config.settings' company_id = fields.Many2one('res.c...
ac209811feb25dfe9b5eac8b1488b42a8b5d73ba
kitsune/kbadge/migrations/0002_auto_20181023_1319.py
kitsune/kbadge/migrations/0002_auto_20181023_1319.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('kbadge', '0001_initial'), ] operations = [ migrations.RunSQL( "UPDATE badger_badge SET image = CONCAT('uploads/', image)...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('kbadge', '0001_initial'), ] operations = [ migrations.RunSQL( "UPDATE badger_badge SET image = CONCAT('uploads/', image)...
Update SQL data migration to exclude NULL and blank image values.
Update SQL data migration to exclude NULL and blank image values.
Python
bsd-3-clause
mozilla/kitsune,anushbmx/kitsune,anushbmx/kitsune,mozilla/kitsune,mozilla/kitsune,anushbmx/kitsune,anushbmx/kitsune,mozilla/kitsune
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('kbadge', '0001_initial'), ] operations = [ migrations.RunSQL( "UPDATE badger_badge SET image = CONCAT('uploads/', image)...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('kbadge', '0001_initial'), ] operations = [ migrations.RunSQL( "UPDATE badger_badge SET image = CONCAT('uploads/', image)...
<commit_before># -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('kbadge', '0001_initial'), ] operations = [ migrations.RunSQL( "UPDATE badger_badge SET image = CONCAT('up...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('kbadge', '0001_initial'), ] operations = [ migrations.RunSQL( "UPDATE badger_badge SET image = CONCAT('uploads/', image)...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('kbadge', '0001_initial'), ] operations = [ migrations.RunSQL( "UPDATE badger_badge SET image = CONCAT('uploads/', image)...
<commit_before># -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('kbadge', '0001_initial'), ] operations = [ migrations.RunSQL( "UPDATE badger_badge SET image = CONCAT('up...
db3727fb6cbb8ce9b1e413a618fae621a3d72189
openassets/__init__.py
openassets/__init__.py
# -*- coding: utf-8; -*- # # The MIT License (MIT) # # Copyright (c) 2014 Flavien Charlon # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation t...
# -*- coding: utf-8; -*- # # The MIT License (MIT) # # Copyright (c) 2014 Flavien Charlon # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation t...
Use single quotes for strings
Use single quotes for strings
Python
mit
OpenAssets/openassets
# -*- coding: utf-8; -*- # # The MIT License (MIT) # # Copyright (c) 2014 Flavien Charlon # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation t...
# -*- coding: utf-8; -*- # # The MIT License (MIT) # # Copyright (c) 2014 Flavien Charlon # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation t...
<commit_before># -*- coding: utf-8; -*- # # The MIT License (MIT) # # Copyright (c) 2014 Flavien Charlon # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including witho...
# -*- coding: utf-8; -*- # # The MIT License (MIT) # # Copyright (c) 2014 Flavien Charlon # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation t...
# -*- coding: utf-8; -*- # # The MIT License (MIT) # # Copyright (c) 2014 Flavien Charlon # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation t...
<commit_before># -*- coding: utf-8; -*- # # The MIT License (MIT) # # Copyright (c) 2014 Flavien Charlon # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including witho...
3761217b9d835f862418d580dcf1342734befe45
system.py
system.py
from enum import IntFlag class SystemFlag(IntFlag): controller = 1 movement = 2 graphics = 4 collision = 8 logic = 16 state = 32
from enum import IntFlag class SystemFlag(IntFlag): controller = 1 movement = 2 graphics = 4 collision = 8 logic = 16 state = 32 blood = 64
Fix flags bug hasattr returns True if the attribute is None
Fix flags bug hasattr returns True if the attribute is None Use forward references for type hinting in entity
Python
agpl-3.0
joetsoi/moonstone,joetsoi/moonstone
from enum import IntFlag class SystemFlag(IntFlag): controller = 1 movement = 2 graphics = 4 collision = 8 logic = 16 state = 32 Fix flags bug hasattr returns True if the attribute is None Use forward references for type hinting in entity
from enum import IntFlag class SystemFlag(IntFlag): controller = 1 movement = 2 graphics = 4 collision = 8 logic = 16 state = 32 blood = 64
<commit_before>from enum import IntFlag class SystemFlag(IntFlag): controller = 1 movement = 2 graphics = 4 collision = 8 logic = 16 state = 32 <commit_msg>Fix flags bug hasattr returns True if the attribute is None Use forward references for type hinting in entity<commit_after>
from enum import IntFlag class SystemFlag(IntFlag): controller = 1 movement = 2 graphics = 4 collision = 8 logic = 16 state = 32 blood = 64
from enum import IntFlag class SystemFlag(IntFlag): controller = 1 movement = 2 graphics = 4 collision = 8 logic = 16 state = 32 Fix flags bug hasattr returns True if the attribute is None Use forward references for type hinting in entityfrom enum import IntFlag class SystemFlag(IntFlag): ...
<commit_before>from enum import IntFlag class SystemFlag(IntFlag): controller = 1 movement = 2 graphics = 4 collision = 8 logic = 16 state = 32 <commit_msg>Fix flags bug hasattr returns True if the attribute is None Use forward references for type hinting in entity<commit_after>from enum impo...
4e2f64164b09c481a56920c1b98dd2a38ac02338
scripts/process_realtime_data.py
scripts/process_realtime_data.py
import django django.setup() from busshaming.data_processing import process_realtime_dumps if __name__ == '__main__': process_realtime_dumps.process_next(10)
import django #import cProfile django.setup() from busshaming.data_processing import process_realtime_dumps if __name__ == '__main__': #cProfile.run('process_realtime_dumps.process_next(10)', filename='output.txt') process_realtime_dumps.process_next(10)
Add profiling code (commented) for profiling the realtime processing.
Add profiling code (commented) for profiling the realtime processing.
Python
mit
katharosada/bus-shaming,katharosada/bus-shaming,katharosada/bus-shaming,katharosada/bus-shaming,katharosada/bus-shaming
import django django.setup() from busshaming.data_processing import process_realtime_dumps if __name__ == '__main__': process_realtime_dumps.process_next(10) Add profiling code (commented) for profiling the realtime processing.
import django #import cProfile django.setup() from busshaming.data_processing import process_realtime_dumps if __name__ == '__main__': #cProfile.run('process_realtime_dumps.process_next(10)', filename='output.txt') process_realtime_dumps.process_next(10)
<commit_before>import django django.setup() from busshaming.data_processing import process_realtime_dumps if __name__ == '__main__': process_realtime_dumps.process_next(10) <commit_msg>Add profiling code (commented) for profiling the realtime processing.<commit_after>
import django #import cProfile django.setup() from busshaming.data_processing import process_realtime_dumps if __name__ == '__main__': #cProfile.run('process_realtime_dumps.process_next(10)', filename='output.txt') process_realtime_dumps.process_next(10)
import django django.setup() from busshaming.data_processing import process_realtime_dumps if __name__ == '__main__': process_realtime_dumps.process_next(10) Add profiling code (commented) for profiling the realtime processing.import django #import cProfile django.setup() from busshaming.data_processing impor...
<commit_before>import django django.setup() from busshaming.data_processing import process_realtime_dumps if __name__ == '__main__': process_realtime_dumps.process_next(10) <commit_msg>Add profiling code (commented) for profiling the realtime processing.<commit_after>import django #import cProfile django.setup...
50f8efd7bcbf032fd0295c460b98640d0bf6c1ed
smithers/smithers/conf/server.py
smithers/smithers/conf/server.py
from os import getenv GEOIP_DB_FILE = '/usr/local/share/GeoIP/GeoIP2-City.mmdb' STATSD_HOST = 'graphite1.private.phx1.mozilla.com' STATSD_PORT = 8125 STATSD_PREFIX = 'glow-workers-{}'.format(getenv('DJANGO_SERVER_ENV')) COUNTRY_MIN_SHARE = 500
from os import getenv GEOIP_DB_FILE = '/usr/local/share/GeoIP/GeoIP2-City.mmdb' STATSD_HOST = getenv('STATSD_HOST', 'graphite1.private.phx1.mozilla.com') STATSD_PORT = 8125 STATSD_PREFIX = 'glow-workers-{}'.format(getenv('DJANGO_SERVER_ENV')) COUNTRY_MIN_SHARE = 500
Make statsd host configurable via env.
Make statsd host configurable via env.
Python
mpl-2.0
mozilla/mrburns,mozilla/mrburns,mozilla/mrburns
from os import getenv GEOIP_DB_FILE = '/usr/local/share/GeoIP/GeoIP2-City.mmdb' STATSD_HOST = 'graphite1.private.phx1.mozilla.com' STATSD_PORT = 8125 STATSD_PREFIX = 'glow-workers-{}'.format(getenv('DJANGO_SERVER_ENV')) COUNTRY_MIN_SHARE = 500 Make statsd host configurable via env.
from os import getenv GEOIP_DB_FILE = '/usr/local/share/GeoIP/GeoIP2-City.mmdb' STATSD_HOST = getenv('STATSD_HOST', 'graphite1.private.phx1.mozilla.com') STATSD_PORT = 8125 STATSD_PREFIX = 'glow-workers-{}'.format(getenv('DJANGO_SERVER_ENV')) COUNTRY_MIN_SHARE = 500
<commit_before>from os import getenv GEOIP_DB_FILE = '/usr/local/share/GeoIP/GeoIP2-City.mmdb' STATSD_HOST = 'graphite1.private.phx1.mozilla.com' STATSD_PORT = 8125 STATSD_PREFIX = 'glow-workers-{}'.format(getenv('DJANGO_SERVER_ENV')) COUNTRY_MIN_SHARE = 500 <commit_msg>Make statsd host configurable via env.<commit_...
from os import getenv GEOIP_DB_FILE = '/usr/local/share/GeoIP/GeoIP2-City.mmdb' STATSD_HOST = getenv('STATSD_HOST', 'graphite1.private.phx1.mozilla.com') STATSD_PORT = 8125 STATSD_PREFIX = 'glow-workers-{}'.format(getenv('DJANGO_SERVER_ENV')) COUNTRY_MIN_SHARE = 500
from os import getenv GEOIP_DB_FILE = '/usr/local/share/GeoIP/GeoIP2-City.mmdb' STATSD_HOST = 'graphite1.private.phx1.mozilla.com' STATSD_PORT = 8125 STATSD_PREFIX = 'glow-workers-{}'.format(getenv('DJANGO_SERVER_ENV')) COUNTRY_MIN_SHARE = 500 Make statsd host configurable via env.from os import getenv GEOIP_DB_FIL...
<commit_before>from os import getenv GEOIP_DB_FILE = '/usr/local/share/GeoIP/GeoIP2-City.mmdb' STATSD_HOST = 'graphite1.private.phx1.mozilla.com' STATSD_PORT = 8125 STATSD_PREFIX = 'glow-workers-{}'.format(getenv('DJANGO_SERVER_ENV')) COUNTRY_MIN_SHARE = 500 <commit_msg>Make statsd host configurable via env.<commit_...
ea046e8996c3bbad95578ef3209b62972d88e720
opps/images/widgets.py
opps/images/widgets.py
from django import forms from django.conf import settings from django.template.loader import render_to_string class MultipleUpload(forms.FileInput): def render(self, name, value, attrs=None): _value = "" if value: _value = "{0}{1}".format(settings.MEDIA_URL, value) return rende...
from django import forms from django.conf import settings from django.template.loader import render_to_string class MultipleUpload(forms.FileInput): def render(self, name, value, attrs=None): _value = "" _height = "" _width = "" if value: _value = "{0}{1}".format(settin...
Add _height/_width on widget MultipleUpload
Add _height/_width on widget MultipleUpload
Python
mit
jeanmask/opps,YACOWS/opps,YACOWS/opps,jeanmask/opps,williamroot/opps,opps/opps,opps/opps,williamroot/opps,williamroot/opps,jeanmask/opps,YACOWS/opps,williamroot/opps,jeanmask/opps,opps/opps,YACOWS/opps,opps/opps
from django import forms from django.conf import settings from django.template.loader import render_to_string class MultipleUpload(forms.FileInput): def render(self, name, value, attrs=None): _value = "" if value: _value = "{0}{1}".format(settings.MEDIA_URL, value) return rende...
from django import forms from django.conf import settings from django.template.loader import render_to_string class MultipleUpload(forms.FileInput): def render(self, name, value, attrs=None): _value = "" _height = "" _width = "" if value: _value = "{0}{1}".format(settin...
<commit_before>from django import forms from django.conf import settings from django.template.loader import render_to_string class MultipleUpload(forms.FileInput): def render(self, name, value, attrs=None): _value = "" if value: _value = "{0}{1}".format(settings.MEDIA_URL, value) ...
from django import forms from django.conf import settings from django.template.loader import render_to_string class MultipleUpload(forms.FileInput): def render(self, name, value, attrs=None): _value = "" _height = "" _width = "" if value: _value = "{0}{1}".format(settin...
from django import forms from django.conf import settings from django.template.loader import render_to_string class MultipleUpload(forms.FileInput): def render(self, name, value, attrs=None): _value = "" if value: _value = "{0}{1}".format(settings.MEDIA_URL, value) return rende...
<commit_before>from django import forms from django.conf import settings from django.template.loader import render_to_string class MultipleUpload(forms.FileInput): def render(self, name, value, attrs=None): _value = "" if value: _value = "{0}{1}".format(settings.MEDIA_URL, value) ...
774bf218202e48d0c9d14f79326c1d8847506999
nupic/research/frameworks/dynamic_sparse/__init__.py
nupic/research/frameworks/dynamic_sparse/__init__.py
# Numenta Platform for Intelligent Computing (NuPIC) # Copyright (C) 2019, Numenta, Inc. Unless you have an agreement # with Numenta, Inc., for a separate license for this software code, the # following terms and conditions apply: # # This program is free software: you can redistribute it and/or modify # it unde...
Add license to top of file.
Add license to top of file.
Python
agpl-3.0
mrcslws/nupic.research,mrcslws/nupic.research,subutai/nupic.research,numenta/nupic.research,subutai/nupic.research,numenta/nupic.research
Add license to top of file.
# Numenta Platform for Intelligent Computing (NuPIC) # Copyright (C) 2019, Numenta, Inc. Unless you have an agreement # with Numenta, Inc., for a separate license for this software code, the # following terms and conditions apply: # # This program is free software: you can redistribute it and/or modify # it unde...
<commit_before><commit_msg>Add license to top of file. <commit_after>
# Numenta Platform for Intelligent Computing (NuPIC) # Copyright (C) 2019, Numenta, Inc. Unless you have an agreement # with Numenta, Inc., for a separate license for this software code, the # following terms and conditions apply: # # This program is free software: you can redistribute it and/or modify # it unde...
Add license to top of file. # Numenta Platform for Intelligent Computing (NuPIC) # Copyright (C) 2019, Numenta, Inc. Unless you have an agreement # with Numenta, Inc., for a separate license for this software code, the # following terms and conditions apply: # # This program is free software: you can redistribute...
<commit_before><commit_msg>Add license to top of file. <commit_after># Numenta Platform for Intelligent Computing (NuPIC) # Copyright (C) 2019, Numenta, Inc. Unless you have an agreement # with Numenta, Inc., for a separate license for this software code, the # following terms and conditions apply: # # This progr...
a783c1739a4e6629f428904901d674dedca971f9
l10n_ch_payment_slip/__manifest__.py
l10n_ch_payment_slip/__manifest__.py
# Copyright 2012-2016 Camptocamp SA # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). {'name': 'Switzerland - ISR inpayment slip (PVR/BVR/ESR)', 'summary': 'Print inpayment slip from your invoices', 'version': '10.0.1.1.1', 'author': "Camptocamp,Odoo Community Association (OCA)", 'category': 'Localiza...
# Copyright 2012-2016 Camptocamp SA # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). {'name': 'Switzerland - ISR inpayment slip (PVR/BVR/ESR)', 'summary': 'Print inpayment slip from your invoices', 'version': '10.0.1.1.1', 'author': "Camptocamp,Odoo Community Association (OCA)", 'category': 'Localiza...
Fix dependency to remove std print isr button
Fix dependency to remove std print isr button
Python
agpl-3.0
brain-tec/l10n-switzerland,brain-tec/l10n-switzerland,brain-tec/l10n-switzerland
# Copyright 2012-2016 Camptocamp SA # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). {'name': 'Switzerland - ISR inpayment slip (PVR/BVR/ESR)', 'summary': 'Print inpayment slip from your invoices', 'version': '10.0.1.1.1', 'author': "Camptocamp,Odoo Community Association (OCA)", 'category': 'Localiza...
# Copyright 2012-2016 Camptocamp SA # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). {'name': 'Switzerland - ISR inpayment slip (PVR/BVR/ESR)', 'summary': 'Print inpayment slip from your invoices', 'version': '10.0.1.1.1', 'author': "Camptocamp,Odoo Community Association (OCA)", 'category': 'Localiza...
<commit_before># Copyright 2012-2016 Camptocamp SA # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). {'name': 'Switzerland - ISR inpayment slip (PVR/BVR/ESR)', 'summary': 'Print inpayment slip from your invoices', 'version': '10.0.1.1.1', 'author': "Camptocamp,Odoo Community Association (OCA)", 'categ...
# Copyright 2012-2016 Camptocamp SA # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). {'name': 'Switzerland - ISR inpayment slip (PVR/BVR/ESR)', 'summary': 'Print inpayment slip from your invoices', 'version': '10.0.1.1.1', 'author': "Camptocamp,Odoo Community Association (OCA)", 'category': 'Localiza...
# Copyright 2012-2016 Camptocamp SA # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). {'name': 'Switzerland - ISR inpayment slip (PVR/BVR/ESR)', 'summary': 'Print inpayment slip from your invoices', 'version': '10.0.1.1.1', 'author': "Camptocamp,Odoo Community Association (OCA)", 'category': 'Localiza...
<commit_before># Copyright 2012-2016 Camptocamp SA # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). {'name': 'Switzerland - ISR inpayment slip (PVR/BVR/ESR)', 'summary': 'Print inpayment slip from your invoices', 'version': '10.0.1.1.1', 'author': "Camptocamp,Odoo Community Association (OCA)", 'categ...
a1eaf7bcd40b96d4074202174af3dab5a0d026e1
projects/templatetags/projects_tags.py
projects/templatetags/projects_tags.py
from django.template.base import Library from django.core.urlresolvers import reverse from projects.models import ProjectBuild register = Library() @register.simple_tag() def build_url(build_id): """ Fetches the ProjectBuild for a given build_id, if any. """ try: build = ProjectBuild.object...
from django.template.base import Library from django.core.urlresolvers import reverse from projects.models import ProjectBuild register = Library() @register.simple_tag() def build_url(build_key): """ Fetches the ProjectBuild for a given build_id, if any. """ try: build = ProjectBuild.objec...
Change the project_tags parameter to use build_key which makes it clearer.
Change the project_tags parameter to use build_key which makes it clearer.
Python
mit
caio1982/capomastro,caio1982/capomastro,caio1982/capomastro
from django.template.base import Library from django.core.urlresolvers import reverse from projects.models import ProjectBuild register = Library() @register.simple_tag() def build_url(build_id): """ Fetches the ProjectBuild for a given build_id, if any. """ try: build = ProjectBuild.object...
from django.template.base import Library from django.core.urlresolvers import reverse from projects.models import ProjectBuild register = Library() @register.simple_tag() def build_url(build_key): """ Fetches the ProjectBuild for a given build_id, if any. """ try: build = ProjectBuild.objec...
<commit_before>from django.template.base import Library from django.core.urlresolvers import reverse from projects.models import ProjectBuild register = Library() @register.simple_tag() def build_url(build_id): """ Fetches the ProjectBuild for a given build_id, if any. """ try: build = Proj...
from django.template.base import Library from django.core.urlresolvers import reverse from projects.models import ProjectBuild register = Library() @register.simple_tag() def build_url(build_key): """ Fetches the ProjectBuild for a given build_id, if any. """ try: build = ProjectBuild.objec...
from django.template.base import Library from django.core.urlresolvers import reverse from projects.models import ProjectBuild register = Library() @register.simple_tag() def build_url(build_id): """ Fetches the ProjectBuild for a given build_id, if any. """ try: build = ProjectBuild.object...
<commit_before>from django.template.base import Library from django.core.urlresolvers import reverse from projects.models import ProjectBuild register = Library() @register.simple_tag() def build_url(build_id): """ Fetches the ProjectBuild for a given build_id, if any. """ try: build = Proj...
e0f102d9af8b13da65736eb6dd185de64d3dbafb
susumutakuan.py
susumutakuan.py
import discord import asyncio import os import signal import sys #Set up Client State CLIENT_TOKEN=os.environ['TOKEN'] #Create Discord client client = discord.Client() #Handle shutdown gracefully def sigterm_handler(signum, frame): print('Logging out...', flush=True) raise KeyboardInterrupt sys.exit('Sh...
import discord import asyncio import os import signal import sys import subprocess #Set up Client State CLIENT_TOKEN=os.environ['TOKEN'] #Create Discord client client = discord.Client() #Handle shutdown gracefully def sigterm_handler(signum, frame): print('Logging out...', flush=True) raise KeyboardInterrup...
Add DM support, and first start at self-update
Add DM support, and first start at self-update
Python
mit
gryffon/SusumuTakuan,gryffon/SusumuTakuan
import discord import asyncio import os import signal import sys #Set up Client State CLIENT_TOKEN=os.environ['TOKEN'] #Create Discord client client = discord.Client() #Handle shutdown gracefully def sigterm_handler(signum, frame): print('Logging out...', flush=True) raise KeyboardInterrupt sys.exit('Sh...
import discord import asyncio import os import signal import sys import subprocess #Set up Client State CLIENT_TOKEN=os.environ['TOKEN'] #Create Discord client client = discord.Client() #Handle shutdown gracefully def sigterm_handler(signum, frame): print('Logging out...', flush=True) raise KeyboardInterrup...
<commit_before>import discord import asyncio import os import signal import sys #Set up Client State CLIENT_TOKEN=os.environ['TOKEN'] #Create Discord client client = discord.Client() #Handle shutdown gracefully def sigterm_handler(signum, frame): print('Logging out...', flush=True) raise KeyboardInterrupt ...
import discord import asyncio import os import signal import sys import subprocess #Set up Client State CLIENT_TOKEN=os.environ['TOKEN'] #Create Discord client client = discord.Client() #Handle shutdown gracefully def sigterm_handler(signum, frame): print('Logging out...', flush=True) raise KeyboardInterrup...
import discord import asyncio import os import signal import sys #Set up Client State CLIENT_TOKEN=os.environ['TOKEN'] #Create Discord client client = discord.Client() #Handle shutdown gracefully def sigterm_handler(signum, frame): print('Logging out...', flush=True) raise KeyboardInterrupt sys.exit('Sh...
<commit_before>import discord import asyncio import os import signal import sys #Set up Client State CLIENT_TOKEN=os.environ['TOKEN'] #Create Discord client client = discord.Client() #Handle shutdown gracefully def sigterm_handler(signum, frame): print('Logging out...', flush=True) raise KeyboardInterrupt ...
b990ce64de70f9aec3bc4480b1a7714aa5701a45
aiohttp/__init__.py
aiohttp/__init__.py
# This relies on each of the submodules having an __all__ variable. __version__ = '0.22.0a0' import multidict # noqa from multidict import * # noqa from . import hdrs # noqa from .protocol import * # noqa from .connector import * # noqa from .client import * # noqa from .client_reqrep import * # noqa from .er...
# This relies on each of the submodules having an __all__ variable. __version__ = '0.22.0a0' import multidict # noqa from multidict import * # noqa from . import hdrs # noqa from .protocol import * # noqa from .connector import * # noqa from .client import * # noqa from .client_reqrep import * # noqa from .er...
Add FileSender to top level
Add FileSender to top level
Python
apache-2.0
KeepSafe/aiohttp,jettify/aiohttp,pfreixes/aiohttp,z2v/aiohttp,panda73111/aiohttp,rutsky/aiohttp,mind1master/aiohttp,singulared/aiohttp,z2v/aiohttp,juliatem/aiohttp,KeepSafe/aiohttp,Eyepea/aiohttp,arthurdarcet/aiohttp,jettify/aiohttp,moden-py/aiohttp,arthurdarcet/aiohttp,alex-eri/aiohttp-1,KeepSafe/aiohttp,panda73111/ai...
# This relies on each of the submodules having an __all__ variable. __version__ = '0.22.0a0' import multidict # noqa from multidict import * # noqa from . import hdrs # noqa from .protocol import * # noqa from .connector import * # noqa from .client import * # noqa from .client_reqrep import * # noqa from .er...
# This relies on each of the submodules having an __all__ variable. __version__ = '0.22.0a0' import multidict # noqa from multidict import * # noqa from . import hdrs # noqa from .protocol import * # noqa from .connector import * # noqa from .client import * # noqa from .client_reqrep import * # noqa from .er...
<commit_before># This relies on each of the submodules having an __all__ variable. __version__ = '0.22.0a0' import multidict # noqa from multidict import * # noqa from . import hdrs # noqa from .protocol import * # noqa from .connector import * # noqa from .client import * # noqa from .client_reqrep import * ...
# This relies on each of the submodules having an __all__ variable. __version__ = '0.22.0a0' import multidict # noqa from multidict import * # noqa from . import hdrs # noqa from .protocol import * # noqa from .connector import * # noqa from .client import * # noqa from .client_reqrep import * # noqa from .er...
# This relies on each of the submodules having an __all__ variable. __version__ = '0.22.0a0' import multidict # noqa from multidict import * # noqa from . import hdrs # noqa from .protocol import * # noqa from .connector import * # noqa from .client import * # noqa from .client_reqrep import * # noqa from .er...
<commit_before># This relies on each of the submodules having an __all__ variable. __version__ = '0.22.0a0' import multidict # noqa from multidict import * # noqa from . import hdrs # noqa from .protocol import * # noqa from .connector import * # noqa from .client import * # noqa from .client_reqrep import * ...
122ba850fb9d7c9ca51d66714dd38cb2187134f3
Lib/setup.py
Lib/setup.py
def configuration(parent_package='',top_path=None): from numpy.distutils.misc_util import Configuration config = Configuration('scipy',parent_package,top_path) #config.add_subpackage('cluster') #config.add_subpackage('fftpack') #config.add_subpackage('integrate') #config.add_subpackage('interpo...
def configuration(parent_package='',top_path=None): from numpy.distutils.misc_util import Configuration config = Configuration('scipy',parent_package,top_path) config.add_subpackage('cluster') config.add_subpackage('fftpack') config.add_subpackage('integrate') config.add_subpackage('interpolate...
Fix problem with __all__ variable and update weave docs a bit. Update compiler_cxx too.
Fix problem with __all__ variable and update weave docs a bit. Update compiler_cxx too.
Python
bsd-3-clause
josephcslater/scipy,rmcgibbo/scipy,ndchorley/scipy,lukauskas/scipy,vberaudi/scipy,dch312/scipy,gfyoung/scipy,andyfaff/scipy,chatcannon/scipy,WarrenWeckesser/scipy,mtrbean/scipy,argriffing/scipy,nvoron23/scipy,WillieMaddox/scipy,aarchiba/scipy,anntzer/scipy,lhilt/scipy,nonhermitian/scipy,teoliphant/scipy,minhlongdo/scip...
def configuration(parent_package='',top_path=None): from numpy.distutils.misc_util import Configuration config = Configuration('scipy',parent_package,top_path) #config.add_subpackage('cluster') #config.add_subpackage('fftpack') #config.add_subpackage('integrate') #config.add_subpackage('interpo...
def configuration(parent_package='',top_path=None): from numpy.distutils.misc_util import Configuration config = Configuration('scipy',parent_package,top_path) config.add_subpackage('cluster') config.add_subpackage('fftpack') config.add_subpackage('integrate') config.add_subpackage('interpolate...
<commit_before> def configuration(parent_package='',top_path=None): from numpy.distutils.misc_util import Configuration config = Configuration('scipy',parent_package,top_path) #config.add_subpackage('cluster') #config.add_subpackage('fftpack') #config.add_subpackage('integrate') #config.add_subp...
def configuration(parent_package='',top_path=None): from numpy.distutils.misc_util import Configuration config = Configuration('scipy',parent_package,top_path) config.add_subpackage('cluster') config.add_subpackage('fftpack') config.add_subpackage('integrate') config.add_subpackage('interpolate...
def configuration(parent_package='',top_path=None): from numpy.distutils.misc_util import Configuration config = Configuration('scipy',parent_package,top_path) #config.add_subpackage('cluster') #config.add_subpackage('fftpack') #config.add_subpackage('integrate') #config.add_subpackage('interpo...
<commit_before> def configuration(parent_package='',top_path=None): from numpy.distutils.misc_util import Configuration config = Configuration('scipy',parent_package,top_path) #config.add_subpackage('cluster') #config.add_subpackage('fftpack') #config.add_subpackage('integrate') #config.add_subp...
a6526ada6991d689d5351643c67b57805be59f16
python_recipes/multiprocessing_keyboard_interrupt.py
python_recipes/multiprocessing_keyboard_interrupt.py
import signal import time import multiprocessing def handle_KeyboardInterrupt(): signal.signal(signal.SIGINT, signal.SIG_IGN) def doSomething(number): time.sleep(1) print "received {0}".format(number) class Worker(object): def __init__(self, poolSize): self.pool = multiprocessing.Pool(poolSi...
import signal import time import multiprocessing # See here for detail: # https://noswap.com/blog/python-multiprocessing-keyboardinterrupt def handle_KeyboardInterrupt(): signal.signal(signal.SIGINT, signal.SIG_IGN) def doSomething(number): time.sleep(1) print "received {0}".format(number) class Worker(...
Add the source of this solution
Add the source of this solution
Python
apache-2.0
wangshan/sketch,wangshan/sketch,wangshan/sketch,wangshan/sketch
import signal import time import multiprocessing def handle_KeyboardInterrupt(): signal.signal(signal.SIGINT, signal.SIG_IGN) def doSomething(number): time.sleep(1) print "received {0}".format(number) class Worker(object): def __init__(self, poolSize): self.pool = multiprocessing.Pool(poolSi...
import signal import time import multiprocessing # See here for detail: # https://noswap.com/blog/python-multiprocessing-keyboardinterrupt def handle_KeyboardInterrupt(): signal.signal(signal.SIGINT, signal.SIG_IGN) def doSomething(number): time.sleep(1) print "received {0}".format(number) class Worker(...
<commit_before>import signal import time import multiprocessing def handle_KeyboardInterrupt(): signal.signal(signal.SIGINT, signal.SIG_IGN) def doSomething(number): time.sleep(1) print "received {0}".format(number) class Worker(object): def __init__(self, poolSize): self.pool = multiprocess...
import signal import time import multiprocessing # See here for detail: # https://noswap.com/blog/python-multiprocessing-keyboardinterrupt def handle_KeyboardInterrupt(): signal.signal(signal.SIGINT, signal.SIG_IGN) def doSomething(number): time.sleep(1) print "received {0}".format(number) class Worker(...
import signal import time import multiprocessing def handle_KeyboardInterrupt(): signal.signal(signal.SIGINT, signal.SIG_IGN) def doSomething(number): time.sleep(1) print "received {0}".format(number) class Worker(object): def __init__(self, poolSize): self.pool = multiprocessing.Pool(poolSi...
<commit_before>import signal import time import multiprocessing def handle_KeyboardInterrupt(): signal.signal(signal.SIGINT, signal.SIG_IGN) def doSomething(number): time.sleep(1) print "received {0}".format(number) class Worker(object): def __init__(self, poolSize): self.pool = multiprocess...
67ca9f09cd2cfb5e646b9a09b540c5ff88276201
pydirections/models/models.py
pydirections/models/models.py
from schematics.models import Model from schematics.types import StringType class Step(Model): """ Represents an individual step """ html_instructions = StringType() class Leg(Model): """ Represents an individual leg """ start_address = StringType() end_address = StringType() class Route(Model): """ ...
from schematics.models import Model from schematics.types import StringType, DecimalType from schematics.types.compound import ListType class Distance(Model): """ Represents the duration of a leg/step """ value = DecimalType() text = StringType() class Duration(Model): """ Represents the duration of a leg/st...
Add more details to routes
Add more details to routes
Python
apache-2.0
apranav19/pydirections
from schematics.models import Model from schematics.types import StringType class Step(Model): """ Represents an individual step """ html_instructions = StringType() class Leg(Model): """ Represents an individual leg """ start_address = StringType() end_address = StringType() class Route(Model): """ ...
from schematics.models import Model from schematics.types import StringType, DecimalType from schematics.types.compound import ListType class Distance(Model): """ Represents the duration of a leg/step """ value = DecimalType() text = StringType() class Duration(Model): """ Represents the duration of a leg/st...
<commit_before>from schematics.models import Model from schematics.types import StringType class Step(Model): """ Represents an individual step """ html_instructions = StringType() class Leg(Model): """ Represents an individual leg """ start_address = StringType() end_address = StringType() class Route(...
from schematics.models import Model from schematics.types import StringType, DecimalType from schematics.types.compound import ListType class Distance(Model): """ Represents the duration of a leg/step """ value = DecimalType() text = StringType() class Duration(Model): """ Represents the duration of a leg/st...
from schematics.models import Model from schematics.types import StringType class Step(Model): """ Represents an individual step """ html_instructions = StringType() class Leg(Model): """ Represents an individual leg """ start_address = StringType() end_address = StringType() class Route(Model): """ ...
<commit_before>from schematics.models import Model from schematics.types import StringType class Step(Model): """ Represents an individual step """ html_instructions = StringType() class Leg(Model): """ Represents an individual leg """ start_address = StringType() end_address = StringType() class Route(...
f32621c2c8ad207e152f10279e36f56970f48026
python/ecep/portal/widgets.py
python/ecep/portal/widgets.py
from django.forms import widgets from django.utils.safestring import mark_safe class MapWidget(widgets.HiddenInput): """Custom map widget for displaying interactive google map to geocode addresses of learning centers. This widget displays a readonly input box to store lat+lng data, an empty help div,...
from django.forms import widgets from django.utils.safestring import mark_safe class MapWidget(widgets.HiddenInput): """Custom map widget for displaying interactive google map to geocode addresses of learning centers. This widget displays a readonly input box to store lat+lng data, an empty help div,...
Set optional class on map widget if class attribute passed
Set optional class on map widget if class attribute passed
Python
mit
smartchicago/chicago-early-learning,smartchicago/chicago-early-learning,smartchicago/chicago-early-learning,smartchicago/chicago-early-learning
from django.forms import widgets from django.utils.safestring import mark_safe class MapWidget(widgets.HiddenInput): """Custom map widget for displaying interactive google map to geocode addresses of learning centers. This widget displays a readonly input box to store lat+lng data, an empty help div,...
from django.forms import widgets from django.utils.safestring import mark_safe class MapWidget(widgets.HiddenInput): """Custom map widget for displaying interactive google map to geocode addresses of learning centers. This widget displays a readonly input box to store lat+lng data, an empty help div,...
<commit_before>from django.forms import widgets from django.utils.safestring import mark_safe class MapWidget(widgets.HiddenInput): """Custom map widget for displaying interactive google map to geocode addresses of learning centers. This widget displays a readonly input box to store lat+lng data, an empt...
from django.forms import widgets from django.utils.safestring import mark_safe class MapWidget(widgets.HiddenInput): """Custom map widget for displaying interactive google map to geocode addresses of learning centers. This widget displays a readonly input box to store lat+lng data, an empty help div,...
from django.forms import widgets from django.utils.safestring import mark_safe class MapWidget(widgets.HiddenInput): """Custom map widget for displaying interactive google map to geocode addresses of learning centers. This widget displays a readonly input box to store lat+lng data, an empty help div,...
<commit_before>from django.forms import widgets from django.utils.safestring import mark_safe class MapWidget(widgets.HiddenInput): """Custom map widget for displaying interactive google map to geocode addresses of learning centers. This widget displays a readonly input box to store lat+lng data, an empt...
b26dc2f572fdd8f90a8241c3588870603d763d4d
examples/voice_list_webhook.py
examples/voice_list_webhook.py
#!/usr/bin/env python import argparse import messagebird from messagebird.voice_webhook import VoiceCreateWebhookRequest parser = argparse.ArgumentParser() parser.add_argument('--accessKey', help='access key for MessageBird API', type=str, required=True) args = vars(parser.parse_args()) try: client = messagebird...
#!/usr/bin/env python import argparse import messagebird from messagebird.voice_webhook import VoiceCreateWebhookRequest parser = argparse.ArgumentParser() parser.add_argument('--accessKey', help='access key for MessageBird API', type=str, required=True) args = vars(parser.parse_args()) try: client = messagebird...
Exit in voice webhook deletion example, if result is empty
Exit in voice webhook deletion example, if result is empty
Python
bsd-2-clause
messagebird/python-rest-api
#!/usr/bin/env python import argparse import messagebird from messagebird.voice_webhook import VoiceCreateWebhookRequest parser = argparse.ArgumentParser() parser.add_argument('--accessKey', help='access key for MessageBird API', type=str, required=True) args = vars(parser.parse_args()) try: client = messagebird...
#!/usr/bin/env python import argparse import messagebird from messagebird.voice_webhook import VoiceCreateWebhookRequest parser = argparse.ArgumentParser() parser.add_argument('--accessKey', help='access key for MessageBird API', type=str, required=True) args = vars(parser.parse_args()) try: client = messagebird...
<commit_before>#!/usr/bin/env python import argparse import messagebird from messagebird.voice_webhook import VoiceCreateWebhookRequest parser = argparse.ArgumentParser() parser.add_argument('--accessKey', help='access key for MessageBird API', type=str, required=True) args = vars(parser.parse_args()) try: clien...
#!/usr/bin/env python import argparse import messagebird from messagebird.voice_webhook import VoiceCreateWebhookRequest parser = argparse.ArgumentParser() parser.add_argument('--accessKey', help='access key for MessageBird API', type=str, required=True) args = vars(parser.parse_args()) try: client = messagebird...
#!/usr/bin/env python import argparse import messagebird from messagebird.voice_webhook import VoiceCreateWebhookRequest parser = argparse.ArgumentParser() parser.add_argument('--accessKey', help='access key for MessageBird API', type=str, required=True) args = vars(parser.parse_args()) try: client = messagebird...
<commit_before>#!/usr/bin/env python import argparse import messagebird from messagebird.voice_webhook import VoiceCreateWebhookRequest parser = argparse.ArgumentParser() parser.add_argument('--accessKey', help='access key for MessageBird API', type=str, required=True) args = vars(parser.parse_args()) try: clien...
2c43a04e5027a5f8cc2739ea93ab24057a07838f
tests/common.py
tests/common.py
#!/usr/bin/env python # Copyright (C) 2015 Dmitry Rodionov # This file is part of my GSoC'15 project for Cuckoo Sandbox: # http://www.cuckoosandbox.org # This software may be modified and distributed under the terms # of the MIT license. See the LICENSE file for details. import os import unittest import subprocess TE...
#!/usr/bin/env python # Copyright (C) 2015 Dmitry Rodionov # This file is part of my GSoC'15 project for Cuckoo Sandbox: # http://www.cuckoosandbox.org # This software may be modified and distributed under the terms # of the MIT license. See the LICENSE file for details. import os import unittest import platform impor...
Raise an exception when DtraceTestCase (and subclasses) is used on non-darwin machines
Raise an exception when DtraceTestCase (and subclasses) is used on non-darwin machines
Python
mit
cuckoobox/cuckoo,rodionovd/cuckoo-osx-analyzer,cuckoobox/cuckoo,cuckoobox/cuckoo,cuckoobox/cuckoo,rodionovd/cuckoo-osx-analyzer,cuckoobox/cuckoo,rodionovd/cuckoo-osx-analyzer
#!/usr/bin/env python # Copyright (C) 2015 Dmitry Rodionov # This file is part of my GSoC'15 project for Cuckoo Sandbox: # http://www.cuckoosandbox.org # This software may be modified and distributed under the terms # of the MIT license. See the LICENSE file for details. import os import unittest import subprocess TE...
#!/usr/bin/env python # Copyright (C) 2015 Dmitry Rodionov # This file is part of my GSoC'15 project for Cuckoo Sandbox: # http://www.cuckoosandbox.org # This software may be modified and distributed under the terms # of the MIT license. See the LICENSE file for details. import os import unittest import platform impor...
<commit_before>#!/usr/bin/env python # Copyright (C) 2015 Dmitry Rodionov # This file is part of my GSoC'15 project for Cuckoo Sandbox: # http://www.cuckoosandbox.org # This software may be modified and distributed under the terms # of the MIT license. See the LICENSE file for details. import os import unittest import...
#!/usr/bin/env python # Copyright (C) 2015 Dmitry Rodionov # This file is part of my GSoC'15 project for Cuckoo Sandbox: # http://www.cuckoosandbox.org # This software may be modified and distributed under the terms # of the MIT license. See the LICENSE file for details. import os import unittest import platform impor...
#!/usr/bin/env python # Copyright (C) 2015 Dmitry Rodionov # This file is part of my GSoC'15 project for Cuckoo Sandbox: # http://www.cuckoosandbox.org # This software may be modified and distributed under the terms # of the MIT license. See the LICENSE file for details. import os import unittest import subprocess TE...
<commit_before>#!/usr/bin/env python # Copyright (C) 2015 Dmitry Rodionov # This file is part of my GSoC'15 project for Cuckoo Sandbox: # http://www.cuckoosandbox.org # This software may be modified and distributed under the terms # of the MIT license. See the LICENSE file for details. import os import unittest import...
2b63977524d8c00c7cecebf5f055488a447346f1
api.py
api.py
import webapp2 from google.appengine.api import channel from google.appengine.api import users class Channel(webapp2.RequestHandler): def get(self): user = users.get_current_user() if not user: self.response.write({"token": ""}) return token = channel.create_channel...
import webapp2 from google.appengine.api import channel from google.appengine.api import users class Channel(webapp2.RequestHandler): def get(self): user = users.get_current_user() if not user: self.response.write({"token": ""}) return token = channel.create_channel...
Send a message back to client
Send a message back to client
Python
mit
misterwilliam/gae-channels-sample,misterwilliam/gae-channels-sample,misterwilliam/gae-channels-sample
import webapp2 from google.appengine.api import channel from google.appengine.api import users class Channel(webapp2.RequestHandler): def get(self): user = users.get_current_user() if not user: self.response.write({"token": ""}) return token = channel.create_channel...
import webapp2 from google.appengine.api import channel from google.appengine.api import users class Channel(webapp2.RequestHandler): def get(self): user = users.get_current_user() if not user: self.response.write({"token": ""}) return token = channel.create_channel...
<commit_before>import webapp2 from google.appengine.api import channel from google.appengine.api import users class Channel(webapp2.RequestHandler): def get(self): user = users.get_current_user() if not user: self.response.write({"token": ""}) return token = channel...
import webapp2 from google.appengine.api import channel from google.appengine.api import users class Channel(webapp2.RequestHandler): def get(self): user = users.get_current_user() if not user: self.response.write({"token": ""}) return token = channel.create_channel...
import webapp2 from google.appengine.api import channel from google.appengine.api import users class Channel(webapp2.RequestHandler): def get(self): user = users.get_current_user() if not user: self.response.write({"token": ""}) return token = channel.create_channel...
<commit_before>import webapp2 from google.appengine.api import channel from google.appengine.api import users class Channel(webapp2.RequestHandler): def get(self): user = users.get_current_user() if not user: self.response.write({"token": ""}) return token = channel...
315da880c81e02e8c576f51266dffaf19abf8e13
commen5/templatetags/commen5_tags.py
commen5/templatetags/commen5_tags.py
from django import template from django.template.defaulttags import CommentNode register = template.Library() def commen5(parser, token): """ Ignores everything between ``{% commen5 %}`` and ``{% endcommen5 %}``. """ parser.skip_past('endcommen5') return CommentNode() commen5 = register.tag(comme...
from django import template from django.template.defaulttags import CommentNode register = template.Library() @register.tag def commen5(parser, token): """ Ignores everything between ``{% commen5 %}`` and ``{% endcommen5 %}``. """ parser.skip_past('endcommen5') return CommentNode()
Use the sexy, new decorator style syntax.
Use the sexy, new decorator style syntax.
Python
mit
bradmontgomery/django-commen5
from django import template from django.template.defaulttags import CommentNode register = template.Library() def commen5(parser, token): """ Ignores everything between ``{% commen5 %}`` and ``{% endcommen5 %}``. """ parser.skip_past('endcommen5') return CommentNode() commen5 = register.tag(comme...
from django import template from django.template.defaulttags import CommentNode register = template.Library() @register.tag def commen5(parser, token): """ Ignores everything between ``{% commen5 %}`` and ``{% endcommen5 %}``. """ parser.skip_past('endcommen5') return CommentNode()
<commit_before>from django import template from django.template.defaulttags import CommentNode register = template.Library() def commen5(parser, token): """ Ignores everything between ``{% commen5 %}`` and ``{% endcommen5 %}``. """ parser.skip_past('endcommen5') return CommentNode() commen5 = reg...
from django import template from django.template.defaulttags import CommentNode register = template.Library() @register.tag def commen5(parser, token): """ Ignores everything between ``{% commen5 %}`` and ``{% endcommen5 %}``. """ parser.skip_past('endcommen5') return CommentNode()
from django import template from django.template.defaulttags import CommentNode register = template.Library() def commen5(parser, token): """ Ignores everything between ``{% commen5 %}`` and ``{% endcommen5 %}``. """ parser.skip_past('endcommen5') return CommentNode() commen5 = register.tag(comme...
<commit_before>from django import template from django.template.defaulttags import CommentNode register = template.Library() def commen5(parser, token): """ Ignores everything between ``{% commen5 %}`` and ``{% endcommen5 %}``. """ parser.skip_past('endcommen5') return CommentNode() commen5 = reg...
ad66203ccf2a76dde790c582e8915399fd4e3148
Code/Python/Kamaelia/Kamaelia/Visualisation/__init__.py
Code/Python/Kamaelia/Kamaelia/Visualisation/__init__.py
#!/usr/bin/env python # Copyright (C) 2004 British Broadcasting Corporation and Kamaelia Contributors(1) # All Rights Reserved. # # You may only modify and redistribute this under the terms of any of the # following licenses(2): Mozilla Public License, V1.1, GNU General # Public License, V2.0, GNU Lesser General P...
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2010 British Broadcasting Corporation and Kamaelia Contributors(1) # # (1) Kamaelia Contributors are listed in the AUTHORS file and at # http://www.kamaelia.org/AUTHORS - please extend this file, # not this notice. # # Licensed under the Apache License,...
Change license to Apache 2
Change license to Apache 2
Python
apache-2.0
sparkslabs/kamaelia,sparkslabs/kamaelia,sparkslabs/kamaelia,sparkslabs/kamaelia,sparkslabs/kamaelia,sparkslabs/kamaelia,sparkslabs/kamaelia,sparkslabs/kamaelia,sparkslabs/kamaelia,sparkslabs/kamaelia
#!/usr/bin/env python # Copyright (C) 2004 British Broadcasting Corporation and Kamaelia Contributors(1) # All Rights Reserved. # # You may only modify and redistribute this under the terms of any of the # following licenses(2): Mozilla Public License, V1.1, GNU General # Public License, V2.0, GNU Lesser General P...
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2010 British Broadcasting Corporation and Kamaelia Contributors(1) # # (1) Kamaelia Contributors are listed in the AUTHORS file and at # http://www.kamaelia.org/AUTHORS - please extend this file, # not this notice. # # Licensed under the Apache License,...
<commit_before>#!/usr/bin/env python # Copyright (C) 2004 British Broadcasting Corporation and Kamaelia Contributors(1) # All Rights Reserved. # # You may only modify and redistribute this under the terms of any of the # following licenses(2): Mozilla Public License, V1.1, GNU General # Public License, V2.0, GNU L...
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2010 British Broadcasting Corporation and Kamaelia Contributors(1) # # (1) Kamaelia Contributors are listed in the AUTHORS file and at # http://www.kamaelia.org/AUTHORS - please extend this file, # not this notice. # # Licensed under the Apache License,...
#!/usr/bin/env python # Copyright (C) 2004 British Broadcasting Corporation and Kamaelia Contributors(1) # All Rights Reserved. # # You may only modify and redistribute this under the terms of any of the # following licenses(2): Mozilla Public License, V1.1, GNU General # Public License, V2.0, GNU Lesser General P...
<commit_before>#!/usr/bin/env python # Copyright (C) 2004 British Broadcasting Corporation and Kamaelia Contributors(1) # All Rights Reserved. # # You may only modify and redistribute this under the terms of any of the # following licenses(2): Mozilla Public License, V1.1, GNU General # Public License, V2.0, GNU L...
1e010e940390ae5b650224363e4acecd816b2611
settings_dev.py
settings_dev.py
import sublime_plugin from .sublime_lib.path import root_at_packages, get_package_name PLUGIN_NAME = get_package_name() SETTINGS_SYNTAX = ("Packages/%s/Package/Sublime Text Settings/Sublime Settings.tmLanguage" % PLUGIN_NAME) TPL = "{\n\t$0\n}" class NewSettingsCommand(sublime_plugin.WindowComm...
import sublime_plugin from .sublime_lib.path import root_at_packages, get_package_name PLUGIN_NAME = get_package_name() SETTINGS_SYNTAX = ("Packages/%s/Package/Sublime Text Settings/Sublime Text Settings.sublime-syntax" % PLUGIN_NAME) TPL = '''\ { "$1": $0 }'''.replace(" " * 4, "\t") class ...
Update syntax path for new settings file command
Update syntax path for new settings file command
Python
mit
SublimeText/AAAPackageDev,SublimeText/AAAPackageDev,SublimeText/PackageDev
import sublime_plugin from .sublime_lib.path import root_at_packages, get_package_name PLUGIN_NAME = get_package_name() SETTINGS_SYNTAX = ("Packages/%s/Package/Sublime Text Settings/Sublime Settings.tmLanguage" % PLUGIN_NAME) TPL = "{\n\t$0\n}" class NewSettingsCommand(sublime_plugin.WindowComm...
import sublime_plugin from .sublime_lib.path import root_at_packages, get_package_name PLUGIN_NAME = get_package_name() SETTINGS_SYNTAX = ("Packages/%s/Package/Sublime Text Settings/Sublime Text Settings.sublime-syntax" % PLUGIN_NAME) TPL = '''\ { "$1": $0 }'''.replace(" " * 4, "\t") class ...
<commit_before>import sublime_plugin from .sublime_lib.path import root_at_packages, get_package_name PLUGIN_NAME = get_package_name() SETTINGS_SYNTAX = ("Packages/%s/Package/Sublime Text Settings/Sublime Settings.tmLanguage" % PLUGIN_NAME) TPL = "{\n\t$0\n}" class NewSettingsCommand(sublime_pl...
import sublime_plugin from .sublime_lib.path import root_at_packages, get_package_name PLUGIN_NAME = get_package_name() SETTINGS_SYNTAX = ("Packages/%s/Package/Sublime Text Settings/Sublime Text Settings.sublime-syntax" % PLUGIN_NAME) TPL = '''\ { "$1": $0 }'''.replace(" " * 4, "\t") class ...
import sublime_plugin from .sublime_lib.path import root_at_packages, get_package_name PLUGIN_NAME = get_package_name() SETTINGS_SYNTAX = ("Packages/%s/Package/Sublime Text Settings/Sublime Settings.tmLanguage" % PLUGIN_NAME) TPL = "{\n\t$0\n}" class NewSettingsCommand(sublime_plugin.WindowComm...
<commit_before>import sublime_plugin from .sublime_lib.path import root_at_packages, get_package_name PLUGIN_NAME = get_package_name() SETTINGS_SYNTAX = ("Packages/%s/Package/Sublime Text Settings/Sublime Settings.tmLanguage" % PLUGIN_NAME) TPL = "{\n\t$0\n}" class NewSettingsCommand(sublime_pl...
cc1e5bc1ae3b91973d9fa30ab8e0f9cb3c147a9e
ddt.py
ddt.py
from functools import wraps __version__ = '0.1.1' MAGIC = '%values' # this value cannot conflict with any real python attribute def data(*values): """ Method decorator to add to your test methods. Should be added to methods of instances of ``unittest.TestCase``. """ def wrapper(func): ...
from functools import wraps __version__ = '0.1.1' MAGIC = '%values' # this value cannot conflict with any real python attribute def data(*values): """ Method decorator to add to your test methods. Should be added to methods of instances of ``unittest.TestCase``. """ def wrapper(func): ...
Use __name__ from data object to set the test method name, if available.
Use __name__ from data object to set the test method name, if available. Allows to provide user-friendly names for the user instead of the default raw data formatting.
Python
mit
domidimi/ddt,edx/ddt,domidimi/ddt,datadriventests/ddt,edx/ddt,datadriventests/ddt
from functools import wraps __version__ = '0.1.1' MAGIC = '%values' # this value cannot conflict with any real python attribute def data(*values): """ Method decorator to add to your test methods. Should be added to methods of instances of ``unittest.TestCase``. """ def wrapper(func): ...
from functools import wraps __version__ = '0.1.1' MAGIC = '%values' # this value cannot conflict with any real python attribute def data(*values): """ Method decorator to add to your test methods. Should be added to methods of instances of ``unittest.TestCase``. """ def wrapper(func): ...
<commit_before>from functools import wraps __version__ = '0.1.1' MAGIC = '%values' # this value cannot conflict with any real python attribute def data(*values): """ Method decorator to add to your test methods. Should be added to methods of instances of ``unittest.TestCase``. """ def wrapper(...
from functools import wraps __version__ = '0.1.1' MAGIC = '%values' # this value cannot conflict with any real python attribute def data(*values): """ Method decorator to add to your test methods. Should be added to methods of instances of ``unittest.TestCase``. """ def wrapper(func): ...
from functools import wraps __version__ = '0.1.1' MAGIC = '%values' # this value cannot conflict with any real python attribute def data(*values): """ Method decorator to add to your test methods. Should be added to methods of instances of ``unittest.TestCase``. """ def wrapper(func): ...
<commit_before>from functools import wraps __version__ = '0.1.1' MAGIC = '%values' # this value cannot conflict with any real python attribute def data(*values): """ Method decorator to add to your test methods. Should be added to methods of instances of ``unittest.TestCase``. """ def wrapper(...
b419e78a42e7b8f073bc5d9502dffc97c5d627fb
apps/chats/forms.py
apps/chats/forms.py
from django import forms from django.contrib.auth.models import User from chats.models import Chat from profiles.models import FriendGroup class PublicChatForm(forms.ModelForm): """Public-facing Chat form used in the web-interface for users.""" class Meta: fields = ('text',) model = Chat...
from django import forms from django.contrib.auth.models import User from chats.models import Chat from profiles.models import FriendGroup class PublicChatForm(forms.ModelForm): """Public-facing Chat form used in the web-interface for users.""" class Meta: fields = ( 'friend_groups',...
Add friend_groups to the ChatForm
Add friend_groups to the ChatForm
Python
mit
tofumatt/quotes,tofumatt/quotes
from django import forms from django.contrib.auth.models import User from chats.models import Chat from profiles.models import FriendGroup class PublicChatForm(forms.ModelForm): """Public-facing Chat form used in the web-interface for users.""" class Meta: fields = ('text',) model = Chat...
from django import forms from django.contrib.auth.models import User from chats.models import Chat from profiles.models import FriendGroup class PublicChatForm(forms.ModelForm): """Public-facing Chat form used in the web-interface for users.""" class Meta: fields = ( 'friend_groups',...
<commit_before>from django import forms from django.contrib.auth.models import User from chats.models import Chat from profiles.models import FriendGroup class PublicChatForm(forms.ModelForm): """Public-facing Chat form used in the web-interface for users.""" class Meta: fields = ('text',) ...
from django import forms from django.contrib.auth.models import User from chats.models import Chat from profiles.models import FriendGroup class PublicChatForm(forms.ModelForm): """Public-facing Chat form used in the web-interface for users.""" class Meta: fields = ( 'friend_groups',...
from django import forms from django.contrib.auth.models import User from chats.models import Chat from profiles.models import FriendGroup class PublicChatForm(forms.ModelForm): """Public-facing Chat form used in the web-interface for users.""" class Meta: fields = ('text',) model = Chat...
<commit_before>from django import forms from django.contrib.auth.models import User from chats.models import Chat from profiles.models import FriendGroup class PublicChatForm(forms.ModelForm): """Public-facing Chat form used in the web-interface for users.""" class Meta: fields = ('text',) ...
db52a15b190db1d560959d5bc382b5aa8d7f5a57
mpld3/test_plots/test_axis.py
mpld3/test_plots/test_axis.py
"""Plot to test ticker.FixedFormatter""" import matplotlib.pyplot as plt import numpy as np import mpld3 def create_plot(): positions, labels = [0, 1, 10], ['A','B','C'] plt.xticks(positions, labels) return plt.gcf() def test_axis(): fig = create_plot() html = mpld3.fig_to_html(fig) plt.clo...
"""Plot to test ticker.FixedFormatter""" import matplotlib.pyplot as plt import numpy as np import mpld3 def create_plot(): positions, labels = [0, 1, 10], ['A','B','C'] plt.yticks(positions) plt.xticks(positions, labels) return plt.gcf() def test_axis(): fig = create_plot() html = mpld3.fi...
Add test for custom tick locations, no labels
Add test for custom tick locations, no labels
Python
bsd-3-clause
kdheepak89/mpld3,kdheepak89/mpld3,aflaxman/mpld3,jakevdp/mpld3,mpld3/mpld3,e-koch/mpld3,jakevdp/mpld3,etgalloway/mpld3,mpld3/mpld3,aflaxman/mpld3,etgalloway/mpld3,e-koch/mpld3
"""Plot to test ticker.FixedFormatter""" import matplotlib.pyplot as plt import numpy as np import mpld3 def create_plot(): positions, labels = [0, 1, 10], ['A','B','C'] plt.xticks(positions, labels) return plt.gcf() def test_axis(): fig = create_plot() html = mpld3.fig_to_html(fig) plt.clo...
"""Plot to test ticker.FixedFormatter""" import matplotlib.pyplot as plt import numpy as np import mpld3 def create_plot(): positions, labels = [0, 1, 10], ['A','B','C'] plt.yticks(positions) plt.xticks(positions, labels) return plt.gcf() def test_axis(): fig = create_plot() html = mpld3.fi...
<commit_before>"""Plot to test ticker.FixedFormatter""" import matplotlib.pyplot as plt import numpy as np import mpld3 def create_plot(): positions, labels = [0, 1, 10], ['A','B','C'] plt.xticks(positions, labels) return plt.gcf() def test_axis(): fig = create_plot() html = mpld3.fig_to_html(f...
"""Plot to test ticker.FixedFormatter""" import matplotlib.pyplot as plt import numpy as np import mpld3 def create_plot(): positions, labels = [0, 1, 10], ['A','B','C'] plt.yticks(positions) plt.xticks(positions, labels) return plt.gcf() def test_axis(): fig = create_plot() html = mpld3.fi...
"""Plot to test ticker.FixedFormatter""" import matplotlib.pyplot as plt import numpy as np import mpld3 def create_plot(): positions, labels = [0, 1, 10], ['A','B','C'] plt.xticks(positions, labels) return plt.gcf() def test_axis(): fig = create_plot() html = mpld3.fig_to_html(fig) plt.clo...
<commit_before>"""Plot to test ticker.FixedFormatter""" import matplotlib.pyplot as plt import numpy as np import mpld3 def create_plot(): positions, labels = [0, 1, 10], ['A','B','C'] plt.xticks(positions, labels) return plt.gcf() def test_axis(): fig = create_plot() html = mpld3.fig_to_html(f...
1a785ac4f272ff24c1dc94789699ab299ad782b9
alg_dijkstra_shortest_path.py
alg_dijkstra_shortest_path.py
from __future__ import absolute_import from __future__ import print_function from __future__ import division from ds_binary_heap_tuple import BinaryHeap def dijkstra(weighted_graph_d, start_vertex): inf = float('inf') vertex_distances_d = { vertex: inf for vertex in weighted_graph_d } vertex_...
from __future__ import absolute_import from __future__ import print_function from __future__ import division from ds_binary_heap_tuple import BinaryHeap def dijkstra(weighted_graph_d, start_vertex): inf = float('inf') shortest_path_d = { vertex: inf for vertex in weighted_graph_d } shortest_p...
Revise output vertex_distances_d to shortest_path_d
Revise output vertex_distances_d to shortest_path_d
Python
bsd-2-clause
bowen0701/algorithms_data_structures
from __future__ import absolute_import from __future__ import print_function from __future__ import division from ds_binary_heap_tuple import BinaryHeap def dijkstra(weighted_graph_d, start_vertex): inf = float('inf') vertex_distances_d = { vertex: inf for vertex in weighted_graph_d } vertex_...
from __future__ import absolute_import from __future__ import print_function from __future__ import division from ds_binary_heap_tuple import BinaryHeap def dijkstra(weighted_graph_d, start_vertex): inf = float('inf') shortest_path_d = { vertex: inf for vertex in weighted_graph_d } shortest_p...
<commit_before>from __future__ import absolute_import from __future__ import print_function from __future__ import division from ds_binary_heap_tuple import BinaryHeap def dijkstra(weighted_graph_d, start_vertex): inf = float('inf') vertex_distances_d = { vertex: inf for vertex in weighted_graph_d ...
from __future__ import absolute_import from __future__ import print_function from __future__ import division from ds_binary_heap_tuple import BinaryHeap def dijkstra(weighted_graph_d, start_vertex): inf = float('inf') shortest_path_d = { vertex: inf for vertex in weighted_graph_d } shortest_p...
from __future__ import absolute_import from __future__ import print_function from __future__ import division from ds_binary_heap_tuple import BinaryHeap def dijkstra(weighted_graph_d, start_vertex): inf = float('inf') vertex_distances_d = { vertex: inf for vertex in weighted_graph_d } vertex_...
<commit_before>from __future__ import absolute_import from __future__ import print_function from __future__ import division from ds_binary_heap_tuple import BinaryHeap def dijkstra(weighted_graph_d, start_vertex): inf = float('inf') vertex_distances_d = { vertex: inf for vertex in weighted_graph_d ...
f59f94cae98030172024013faccabaddc031b845
frontends/etiquette_flask/etiquette_flask/decorators.py
frontends/etiquette_flask/etiquette_flask/decorators.py
import flask from flask import request import functools from etiquette import jsonify def required_fields(fields, forbid_whitespace=False): ''' Declare that the endpoint requires certain POST body fields. Without them, we respond with 400 and a message. forbid_whitespace: If True, then provi...
import flask from flask import request import functools from . import jsonify def required_fields(fields, forbid_whitespace=False): ''' Declare that the endpoint requires certain POST body fields. Without them, we respond with 400 and a message. forbid_whitespace: If True, then providing the...
Fix required_fields looking at wrong jsonify file.
Fix required_fields looking at wrong jsonify file.
Python
bsd-3-clause
voussoir/etiquette,voussoir/etiquette,voussoir/etiquette
import flask from flask import request import functools from etiquette import jsonify def required_fields(fields, forbid_whitespace=False): ''' Declare that the endpoint requires certain POST body fields. Without them, we respond with 400 and a message. forbid_whitespace: If True, then provi...
import flask from flask import request import functools from . import jsonify def required_fields(fields, forbid_whitespace=False): ''' Declare that the endpoint requires certain POST body fields. Without them, we respond with 400 and a message. forbid_whitespace: If True, then providing the...
<commit_before>import flask from flask import request import functools from etiquette import jsonify def required_fields(fields, forbid_whitespace=False): ''' Declare that the endpoint requires certain POST body fields. Without them, we respond with 400 and a message. forbid_whitespace: If T...
import flask from flask import request import functools from . import jsonify def required_fields(fields, forbid_whitespace=False): ''' Declare that the endpoint requires certain POST body fields. Without them, we respond with 400 and a message. forbid_whitespace: If True, then providing the...
import flask from flask import request import functools from etiquette import jsonify def required_fields(fields, forbid_whitespace=False): ''' Declare that the endpoint requires certain POST body fields. Without them, we respond with 400 and a message. forbid_whitespace: If True, then provi...
<commit_before>import flask from flask import request import functools from etiquette import jsonify def required_fields(fields, forbid_whitespace=False): ''' Declare that the endpoint requires certain POST body fields. Without them, we respond with 400 and a message. forbid_whitespace: If T...
2f860583a99b88324b19b1118b4aea29a28ae90d
polling_stations/apps/data_collection/management/commands/import_portsmouth.py
polling_stations/apps/data_collection/management/commands/import_portsmouth.py
from django.contrib.gis.geos import Point from data_collection.management.commands import BaseXpressDemocracyClubCsvImporter class Command(BaseXpressDemocracyClubCsvImporter): council_id = "E06000044" addresses_name = "local.2018-05-03/Version 1/Democracy_Club__03May2018.tsv" stations_name = "local.2018-0...
from django.contrib.gis.geos import Point from data_collection.management.commands import BaseXpressDemocracyClubCsvImporter class Command(BaseXpressDemocracyClubCsvImporter): council_id = "E06000044" addresses_name = ( "local.2019-05-02/Version 1/Democracy_Club__02May2019Portsmouth.tsv" ) sta...
Add import script for Portsmouth
Add import script for Portsmouth Closes #1502
Python
bsd-3-clause
DemocracyClub/UK-Polling-Stations,DemocracyClub/UK-Polling-Stations,DemocracyClub/UK-Polling-Stations
from django.contrib.gis.geos import Point from data_collection.management.commands import BaseXpressDemocracyClubCsvImporter class Command(BaseXpressDemocracyClubCsvImporter): council_id = "E06000044" addresses_name = "local.2018-05-03/Version 1/Democracy_Club__03May2018.tsv" stations_name = "local.2018-0...
from django.contrib.gis.geos import Point from data_collection.management.commands import BaseXpressDemocracyClubCsvImporter class Command(BaseXpressDemocracyClubCsvImporter): council_id = "E06000044" addresses_name = ( "local.2019-05-02/Version 1/Democracy_Club__02May2019Portsmouth.tsv" ) sta...
<commit_before>from django.contrib.gis.geos import Point from data_collection.management.commands import BaseXpressDemocracyClubCsvImporter class Command(BaseXpressDemocracyClubCsvImporter): council_id = "E06000044" addresses_name = "local.2018-05-03/Version 1/Democracy_Club__03May2018.tsv" stations_name ...
from django.contrib.gis.geos import Point from data_collection.management.commands import BaseXpressDemocracyClubCsvImporter class Command(BaseXpressDemocracyClubCsvImporter): council_id = "E06000044" addresses_name = ( "local.2019-05-02/Version 1/Democracy_Club__02May2019Portsmouth.tsv" ) sta...
from django.contrib.gis.geos import Point from data_collection.management.commands import BaseXpressDemocracyClubCsvImporter class Command(BaseXpressDemocracyClubCsvImporter): council_id = "E06000044" addresses_name = "local.2018-05-03/Version 1/Democracy_Club__03May2018.tsv" stations_name = "local.2018-0...
<commit_before>from django.contrib.gis.geos import Point from data_collection.management.commands import BaseXpressDemocracyClubCsvImporter class Command(BaseXpressDemocracyClubCsvImporter): council_id = "E06000044" addresses_name = "local.2018-05-03/Version 1/Democracy_Club__03May2018.tsv" stations_name ...
61398045cb6bb5a0849fd203ebbe85bfa305ea60
favicon/templatetags/favtags.py
favicon/templatetags/favtags.py
from django import template from django.utils.safestring import mark_safe from favicon.models import Favicon, config register = template.Library() @register.simple_tag(takes_context=True) def placeFavicon(context): """ Gets Favicon-URL for the Model. Template Syntax: {% placeFavicon %} ""...
from django import template from django.utils.safestring import mark_safe from favicon.models import Favicon, config register = template.Library() @register.simple_tag(takes_context=True) def placeFavicon(context): """ Gets Favicon-URL for the Model. Template Syntax: {% placeFavicon %} ""...
Mark comment as safe. Otherwise it is displayed.
Mark comment as safe. Otherwise it is displayed.
Python
mit
arteria/django-favicon-plus
from django import template from django.utils.safestring import mark_safe from favicon.models import Favicon, config register = template.Library() @register.simple_tag(takes_context=True) def placeFavicon(context): """ Gets Favicon-URL for the Model. Template Syntax: {% placeFavicon %} ""...
from django import template from django.utils.safestring import mark_safe from favicon.models import Favicon, config register = template.Library() @register.simple_tag(takes_context=True) def placeFavicon(context): """ Gets Favicon-URL for the Model. Template Syntax: {% placeFavicon %} ""...
<commit_before>from django import template from django.utils.safestring import mark_safe from favicon.models import Favicon, config register = template.Library() @register.simple_tag(takes_context=True) def placeFavicon(context): """ Gets Favicon-URL for the Model. Template Syntax: {% placeFav...
from django import template from django.utils.safestring import mark_safe from favicon.models import Favicon, config register = template.Library() @register.simple_tag(takes_context=True) def placeFavicon(context): """ Gets Favicon-URL for the Model. Template Syntax: {% placeFavicon %} ""...
from django import template from django.utils.safestring import mark_safe from favicon.models import Favicon, config register = template.Library() @register.simple_tag(takes_context=True) def placeFavicon(context): """ Gets Favicon-URL for the Model. Template Syntax: {% placeFavicon %} ""...
<commit_before>from django import template from django.utils.safestring import mark_safe from favicon.models import Favicon, config register = template.Library() @register.simple_tag(takes_context=True) def placeFavicon(context): """ Gets Favicon-URL for the Model. Template Syntax: {% placeFav...
986b79024d4e40598d41bb363a09524a9e3f00fc
profile_xf11id/startup/00-startup.py
profile_xf11id/startup/00-startup.py
import logging session_mgr._logger.setLevel(logging.CRITICAL) from ophyd.userapi import *
import logging session_mgr._logger.setLevel(logging.INFO) from ophyd.userapi import *
Set logging level to be noisier, from CRITICAL to INFO.
ENH: Set logging level to be noisier, from CRITICAL to INFO.
Python
bsd-2-clause
NSLS-II-CHX/ipython_ophyd,NSLS-II-CHX/ipython_ophyd
import logging session_mgr._logger.setLevel(logging.CRITICAL) from ophyd.userapi import * ENH: Set logging level to be noisier, from CRITICAL to INFO.
import logging session_mgr._logger.setLevel(logging.INFO) from ophyd.userapi import *
<commit_before>import logging session_mgr._logger.setLevel(logging.CRITICAL) from ophyd.userapi import * <commit_msg>ENH: Set logging level to be noisier, from CRITICAL to INFO.<commit_after>
import logging session_mgr._logger.setLevel(logging.INFO) from ophyd.userapi import *
import logging session_mgr._logger.setLevel(logging.CRITICAL) from ophyd.userapi import * ENH: Set logging level to be noisier, from CRITICAL to INFO.import logging session_mgr._logger.setLevel(logging.INFO) from ophyd.userapi import *
<commit_before>import logging session_mgr._logger.setLevel(logging.CRITICAL) from ophyd.userapi import * <commit_msg>ENH: Set logging level to be noisier, from CRITICAL to INFO.<commit_after>import logging session_mgr._logger.setLevel(logging.INFO) from ophyd.userapi import *
708afd692f7c12a0a1564b688e0c83dd22709b09
mtglib/__init__.py
mtglib/__init__.py
__version__ = '1.3.3' __author__ = 'Cameron Higby-Naquin'
__version__ = '1.4.0' __author__ = 'Cameron Higby-Naquin'
Increment minor version for release.
Increment minor version for release.
Python
mit
chigby/mtg,chigby/mtg
__version__ = '1.3.3' __author__ = 'Cameron Higby-Naquin' Increment minor version for release.
__version__ = '1.4.0' __author__ = 'Cameron Higby-Naquin'
<commit_before>__version__ = '1.3.3' __author__ = 'Cameron Higby-Naquin' <commit_msg>Increment minor version for release.<commit_after>
__version__ = '1.4.0' __author__ = 'Cameron Higby-Naquin'
__version__ = '1.3.3' __author__ = 'Cameron Higby-Naquin' Increment minor version for release.__version__ = '1.4.0' __author__ = 'Cameron Higby-Naquin'
<commit_before>__version__ = '1.3.3' __author__ = 'Cameron Higby-Naquin' <commit_msg>Increment minor version for release.<commit_after>__version__ = '1.4.0' __author__ = 'Cameron Higby-Naquin'
b858b2640b8e509c1262644eda02afb05d90ff18
project/slacksync/management/commands/sync_slack_users.py
project/slacksync/management/commands/sync_slack_users.py
# -*- coding: utf-8 -*- from django.core.management.base import BaseCommand, CommandError from slacksync.membersync import SlackMemberSync from slacksync.utils import api_configured class Command(BaseCommand): help = 'Make sure all members are in Slack and optionally kick non-members' def add_arguments(self,...
# -*- coding: utf-8 -*- from django.core.management.base import BaseCommand, CommandError from slacksync.membersync import SlackMemberSync from slacksync.utils import api_configured class Command(BaseCommand): help = 'Make sure all members are in Slack and optionally kick non-members' def add_arguments(self,...
Fix autoremove in wrong place
Fix autoremove in wrong place
Python
mit
HelsinkiHacklab/asylum,HelsinkiHacklab/asylum,HelsinkiHacklab/asylum,HelsinkiHacklab/asylum
# -*- coding: utf-8 -*- from django.core.management.base import BaseCommand, CommandError from slacksync.membersync import SlackMemberSync from slacksync.utils import api_configured class Command(BaseCommand): help = 'Make sure all members are in Slack and optionally kick non-members' def add_arguments(self,...
# -*- coding: utf-8 -*- from django.core.management.base import BaseCommand, CommandError from slacksync.membersync import SlackMemberSync from slacksync.utils import api_configured class Command(BaseCommand): help = 'Make sure all members are in Slack and optionally kick non-members' def add_arguments(self,...
<commit_before># -*- coding: utf-8 -*- from django.core.management.base import BaseCommand, CommandError from slacksync.membersync import SlackMemberSync from slacksync.utils import api_configured class Command(BaseCommand): help = 'Make sure all members are in Slack and optionally kick non-members' def add_...
# -*- coding: utf-8 -*- from django.core.management.base import BaseCommand, CommandError from slacksync.membersync import SlackMemberSync from slacksync.utils import api_configured class Command(BaseCommand): help = 'Make sure all members are in Slack and optionally kick non-members' def add_arguments(self,...
# -*- coding: utf-8 -*- from django.core.management.base import BaseCommand, CommandError from slacksync.membersync import SlackMemberSync from slacksync.utils import api_configured class Command(BaseCommand): help = 'Make sure all members are in Slack and optionally kick non-members' def add_arguments(self,...
<commit_before># -*- coding: utf-8 -*- from django.core.management.base import BaseCommand, CommandError from slacksync.membersync import SlackMemberSync from slacksync.utils import api_configured class Command(BaseCommand): help = 'Make sure all members are in Slack and optionally kick non-members' def add_...
7c13c15c3c1791a7ed545db562fb01e890658bdd
shared/management/__init__.py
shared/management/__init__.py
from django.db.models.signals import post_syncdb from django.conf import settings from django.core import management import os import re FIXTURE_RE = re.compile(r'^[^.]*.json$') def load_data(sender, **kwargs): """ Loads fixture data after loading the last installed app """ if kwargs['app'].__name__ ...
from django.db.models.signals import post_syncdb from django.conf import settings from django.core import management import os import re FIXTURE_RE = re.compile(r'^[^.]*.json$') def load_data(sender, **kwargs): """ Loads fixture data after loading the last installed app """ if kwargs['app'].__name__...
Update syncdb to also regenerate the index.
Update syncdb to also regenerate the index.
Python
mit
Saevon/webdnd,Saevon/webdnd,Saevon/webdnd
from django.db.models.signals import post_syncdb from django.conf import settings from django.core import management import os import re FIXTURE_RE = re.compile(r'^[^.]*.json$') def load_data(sender, **kwargs): """ Loads fixture data after loading the last installed app """ if kwargs['app'].__name__ ...
from django.db.models.signals import post_syncdb from django.conf import settings from django.core import management import os import re FIXTURE_RE = re.compile(r'^[^.]*.json$') def load_data(sender, **kwargs): """ Loads fixture data after loading the last installed app """ if kwargs['app'].__name__...
<commit_before>from django.db.models.signals import post_syncdb from django.conf import settings from django.core import management import os import re FIXTURE_RE = re.compile(r'^[^.]*.json$') def load_data(sender, **kwargs): """ Loads fixture data after loading the last installed app """ if kwargs['...
from django.db.models.signals import post_syncdb from django.conf import settings from django.core import management import os import re FIXTURE_RE = re.compile(r'^[^.]*.json$') def load_data(sender, **kwargs): """ Loads fixture data after loading the last installed app """ if kwargs['app'].__name__...
from django.db.models.signals import post_syncdb from django.conf import settings from django.core import management import os import re FIXTURE_RE = re.compile(r'^[^.]*.json$') def load_data(sender, **kwargs): """ Loads fixture data after loading the last installed app """ if kwargs['app'].__name__ ...
<commit_before>from django.db.models.signals import post_syncdb from django.conf import settings from django.core import management import os import re FIXTURE_RE = re.compile(r'^[^.]*.json$') def load_data(sender, **kwargs): """ Loads fixture data after loading the last installed app """ if kwargs['...
a5d295b850cfad1d1f5655c96b4bb496b6b9e181
run.py
run.py
#!/usr/bin/env python import os os.environ['APP_SETTINGS'] = 'config.DevelopmentConfig' from pskb_website import app # Uncomment to see the config you're running with #for key, value in app.config.iteritems(): #print key, value app.run()
#!/usr/bin/env python import os os.environ['APP_SETTINGS'] = 'config.DevelopmentConfig' #os.environ['APP_SETTINGS'] = 'config.DebugProductionConfig' from pskb_website import app # Uncomment to see the config you're running with #for key, value in app.config.iteritems(): #print key, value app.run()
Add line to easily uncomment and switch back and forth to production settings locally
Add line to easily uncomment and switch back and forth to production settings locally
Python
agpl-3.0
paulocheque/guides-cms,pluralsight/guides-cms,paulocheque/guides-cms,paulocheque/guides-cms,pluralsight/guides-cms,pluralsight/guides-cms
#!/usr/bin/env python import os os.environ['APP_SETTINGS'] = 'config.DevelopmentConfig' from pskb_website import app # Uncomment to see the config you're running with #for key, value in app.config.iteritems(): #print key, value app.run() Add line to easily uncomment and switch back and forth to production sett...
#!/usr/bin/env python import os os.environ['APP_SETTINGS'] = 'config.DevelopmentConfig' #os.environ['APP_SETTINGS'] = 'config.DebugProductionConfig' from pskb_website import app # Uncomment to see the config you're running with #for key, value in app.config.iteritems(): #print key, value app.run()
<commit_before>#!/usr/bin/env python import os os.environ['APP_SETTINGS'] = 'config.DevelopmentConfig' from pskb_website import app # Uncomment to see the config you're running with #for key, value in app.config.iteritems(): #print key, value app.run() <commit_msg>Add line to easily uncomment and switch back a...
#!/usr/bin/env python import os os.environ['APP_SETTINGS'] = 'config.DevelopmentConfig' #os.environ['APP_SETTINGS'] = 'config.DebugProductionConfig' from pskb_website import app # Uncomment to see the config you're running with #for key, value in app.config.iteritems(): #print key, value app.run()
#!/usr/bin/env python import os os.environ['APP_SETTINGS'] = 'config.DevelopmentConfig' from pskb_website import app # Uncomment to see the config you're running with #for key, value in app.config.iteritems(): #print key, value app.run() Add line to easily uncomment and switch back and forth to production sett...
<commit_before>#!/usr/bin/env python import os os.environ['APP_SETTINGS'] = 'config.DevelopmentConfig' from pskb_website import app # Uncomment to see the config you're running with #for key, value in app.config.iteritems(): #print key, value app.run() <commit_msg>Add line to easily uncomment and switch back a...
a3e78915cfacd6c7da667b563785521d5cd883a8
openmc/__init__.py
openmc/__init__.py
from openmc.arithmetic import * from openmc.cell import * from openmc.checkvalue import * from openmc.mesh import * from openmc.element import * from openmc.geometry import * from openmc.nuclide import * from openmc.macroscopic import * from openmc.material import * from openmc.plots import * from openmc.region import ...
from openmc.arithmetic import * from openmc.cell import * from openmc.checkvalue import * from openmc.mesh import * from openmc.element import * from openmc.geometry import * from openmc.nuclide import * from openmc.macroscopic import * from openmc.material import * from openmc.plots import * from openmc.region import ...
Fix __version__ in Python API
Fix __version__ in Python API
Python
mit
amandalund/openmc,smharper/openmc,walshjon/openmc,shikhar413/openmc,paulromano/openmc,walshjon/openmc,mit-crpg/openmc,amandalund/openmc,amandalund/openmc,paulromano/openmc,amandalund/openmc,paulromano/openmc,shikhar413/openmc,smharper/openmc,mit-crpg/openmc,walshjon/openmc,liangjg/openmc,liangjg/openmc,smharper/openmc,...
from openmc.arithmetic import * from openmc.cell import * from openmc.checkvalue import * from openmc.mesh import * from openmc.element import * from openmc.geometry import * from openmc.nuclide import * from openmc.macroscopic import * from openmc.material import * from openmc.plots import * from openmc.region import ...
from openmc.arithmetic import * from openmc.cell import * from openmc.checkvalue import * from openmc.mesh import * from openmc.element import * from openmc.geometry import * from openmc.nuclide import * from openmc.macroscopic import * from openmc.material import * from openmc.plots import * from openmc.region import ...
<commit_before>from openmc.arithmetic import * from openmc.cell import * from openmc.checkvalue import * from openmc.mesh import * from openmc.element import * from openmc.geometry import * from openmc.nuclide import * from openmc.macroscopic import * from openmc.material import * from openmc.plots import * from openmc...
from openmc.arithmetic import * from openmc.cell import * from openmc.checkvalue import * from openmc.mesh import * from openmc.element import * from openmc.geometry import * from openmc.nuclide import * from openmc.macroscopic import * from openmc.material import * from openmc.plots import * from openmc.region import ...
from openmc.arithmetic import * from openmc.cell import * from openmc.checkvalue import * from openmc.mesh import * from openmc.element import * from openmc.geometry import * from openmc.nuclide import * from openmc.macroscopic import * from openmc.material import * from openmc.plots import * from openmc.region import ...
<commit_before>from openmc.arithmetic import * from openmc.cell import * from openmc.checkvalue import * from openmc.mesh import * from openmc.element import * from openmc.geometry import * from openmc.nuclide import * from openmc.macroscopic import * from openmc.material import * from openmc.plots import * from openmc...
c5e265143540f29a3bb97e8413b1bb3cffbd35c4
push/utils.py
push/utils.py
import os import random def get_random_word(config): file_size = os.path.getsize(config.paths.wordlist) word = "" with open(config.paths.wordlist, "r") as wordlist: while not word.isalpha() or not word.islower() or len(word) < 5: position = random.randint(1, file_size) wor...
import hashlib import os import random def get_random_word(config): file_size = os.path.getsize(config.paths.wordlist) word = "" with open(config.paths.wordlist, "r") as wordlist: while not word.isalpha() or not word.islower() or len(word) < 5: position = random.randint(1, file_size) ...
Make shuffle handle the host list size changing.
Make shuffle handle the host list size changing.
Python
bsd-3-clause
reddit/push
import os import random def get_random_word(config): file_size = os.path.getsize(config.paths.wordlist) word = "" with open(config.paths.wordlist, "r") as wordlist: while not word.isalpha() or not word.islower() or len(word) < 5: position = random.randint(1, file_size) wor...
import hashlib import os import random def get_random_word(config): file_size = os.path.getsize(config.paths.wordlist) word = "" with open(config.paths.wordlist, "r") as wordlist: while not word.isalpha() or not word.islower() or len(word) < 5: position = random.randint(1, file_size) ...
<commit_before>import os import random def get_random_word(config): file_size = os.path.getsize(config.paths.wordlist) word = "" with open(config.paths.wordlist, "r") as wordlist: while not word.isalpha() or not word.islower() or len(word) < 5: position = random.randint(1, file_size) ...
import hashlib import os import random def get_random_word(config): file_size = os.path.getsize(config.paths.wordlist) word = "" with open(config.paths.wordlist, "r") as wordlist: while not word.isalpha() or not word.islower() or len(word) < 5: position = random.randint(1, file_size) ...
import os import random def get_random_word(config): file_size = os.path.getsize(config.paths.wordlist) word = "" with open(config.paths.wordlist, "r") as wordlist: while not word.isalpha() or not word.islower() or len(word) < 5: position = random.randint(1, file_size) wor...
<commit_before>import os import random def get_random_word(config): file_size = os.path.getsize(config.paths.wordlist) word = "" with open(config.paths.wordlist, "r") as wordlist: while not word.isalpha() or not word.islower() or len(word) < 5: position = random.randint(1, file_size) ...
5f6e525f11b12de98dfadfc721176caa193541e3
slackclient/_slackrequest.py
slackclient/_slackrequest.py
import requests class SlackRequest(object): @staticmethod def do(token, request="?", post_data=None, domain="slack.com"): post_data = post_data or {} return requests.post( 'https://{0}/api/{1}'.format(domain, request), data=dict(post_data, token=token), )
import json import requests class SlackRequest(object): @staticmethod def do(token, request="?", post_data=None, domain="slack.com"): post_data = post_data or {} for k, v in post_data.items(): if not isinstance(v, (str, unicode)): post_data[k] = json.dumps(v) ...
Add support for nested structure, e.g. attachments.
Add support for nested structure, e.g. attachments. > The optional attachments argument should contain a JSON-encoded array of > attachments. > > https://api.slack.com/methods/chat.postMessage This enables simpler calls like this: sc.api_call('chat.postMessage', {'attachments': [{'title': 'hello'}]})
Python
mit
slackapi/python-slackclient,slackapi/python-slackclient,slackhq/python-slackclient,slackapi/python-slackclient
import requests class SlackRequest(object): @staticmethod def do(token, request="?", post_data=None, domain="slack.com"): post_data = post_data or {} return requests.post( 'https://{0}/api/{1}'.format(domain, request), data=dict(post_data, token=token), ) Add s...
import json import requests class SlackRequest(object): @staticmethod def do(token, request="?", post_data=None, domain="slack.com"): post_data = post_data or {} for k, v in post_data.items(): if not isinstance(v, (str, unicode)): post_data[k] = json.dumps(v) ...
<commit_before>import requests class SlackRequest(object): @staticmethod def do(token, request="?", post_data=None, domain="slack.com"): post_data = post_data or {} return requests.post( 'https://{0}/api/{1}'.format(domain, request), data=dict(post_data, token=token), ...
import json import requests class SlackRequest(object): @staticmethod def do(token, request="?", post_data=None, domain="slack.com"): post_data = post_data or {} for k, v in post_data.items(): if not isinstance(v, (str, unicode)): post_data[k] = json.dumps(v) ...
import requests class SlackRequest(object): @staticmethod def do(token, request="?", post_data=None, domain="slack.com"): post_data = post_data or {} return requests.post( 'https://{0}/api/{1}'.format(domain, request), data=dict(post_data, token=token), ) Add s...
<commit_before>import requests class SlackRequest(object): @staticmethod def do(token, request="?", post_data=None, domain="slack.com"): post_data = post_data or {} return requests.post( 'https://{0}/api/{1}'.format(domain, request), data=dict(post_data, token=token), ...
0d3737aa2d9ecc435bc110cb6c0045d815b57cad
pygelf/tls.py
pygelf/tls.py
from __future__ import print_function from pygelf.tcp import GelfTcpHandler import ssl import socket import sys class GelfTlsHandler(GelfTcpHandler): def __init__(self, cert=None, **kwargs): super(GelfTlsHandler, self).__init__(**kwargs) self.cert = cert def makeSocket(self, timeout=1): ...
from __future__ import print_function from pygelf.tcp import GelfTcpHandler import ssl import socket import sys class GelfTlsHandler(GelfTcpHandler): def __init__(self, validate=False, ca_certs=None, **kwargs): super(GelfTlsHandler, self).__init__(**kwargs) if validate and ca_certs is None: ...
Add parameter 'validate' to TLS handler
Add parameter 'validate' to TLS handler
Python
mit
keeprocking/pygelf,keeprocking/pygelf
from __future__ import print_function from pygelf.tcp import GelfTcpHandler import ssl import socket import sys class GelfTlsHandler(GelfTcpHandler): def __init__(self, cert=None, **kwargs): super(GelfTlsHandler, self).__init__(**kwargs) self.cert = cert def makeSocket(self, timeout=1): ...
from __future__ import print_function from pygelf.tcp import GelfTcpHandler import ssl import socket import sys class GelfTlsHandler(GelfTcpHandler): def __init__(self, validate=False, ca_certs=None, **kwargs): super(GelfTlsHandler, self).__init__(**kwargs) if validate and ca_certs is None: ...
<commit_before>from __future__ import print_function from pygelf.tcp import GelfTcpHandler import ssl import socket import sys class GelfTlsHandler(GelfTcpHandler): def __init__(self, cert=None, **kwargs): super(GelfTlsHandler, self).__init__(**kwargs) self.cert = cert def makeSocket(self, t...
from __future__ import print_function from pygelf.tcp import GelfTcpHandler import ssl import socket import sys class GelfTlsHandler(GelfTcpHandler): def __init__(self, validate=False, ca_certs=None, **kwargs): super(GelfTlsHandler, self).__init__(**kwargs) if validate and ca_certs is None: ...
from __future__ import print_function from pygelf.tcp import GelfTcpHandler import ssl import socket import sys class GelfTlsHandler(GelfTcpHandler): def __init__(self, cert=None, **kwargs): super(GelfTlsHandler, self).__init__(**kwargs) self.cert = cert def makeSocket(self, timeout=1): ...
<commit_before>from __future__ import print_function from pygelf.tcp import GelfTcpHandler import ssl import socket import sys class GelfTlsHandler(GelfTcpHandler): def __init__(self, cert=None, **kwargs): super(GelfTlsHandler, self).__init__(**kwargs) self.cert = cert def makeSocket(self, t...
70672da6b94ae0f272bd875e4aede28fab7aeb6f
pyluos/io/ws.py
pyluos/io/ws.py
import os import socket import websocket from . import IOHandler def resolve_hostname(hostname, port): # We do our own mDNS resolution # to enforce we only search for IPV4 address # and avoid a 5s timeout in the websocket on the ESP # See https://github.com/esp8266/Arduino/issues/2110 addrinfo =...
import os import socket import websocket from . import IOHandler def resolve_hostname(hostname, port): # We do our own mDNS resolution # to enforce we only search for IPV4 address # and avoid a 5s timeout in the websocket on the ESP # See https://github.com/esp8266/Arduino/issues/2110 addrinfo =...
Add \r at the end of Web socket
Add \r at the end of Web socket
Python
mit
pollen/pyrobus
import os import socket import websocket from . import IOHandler def resolve_hostname(hostname, port): # We do our own mDNS resolution # to enforce we only search for IPV4 address # and avoid a 5s timeout in the websocket on the ESP # See https://github.com/esp8266/Arduino/issues/2110 addrinfo =...
import os import socket import websocket from . import IOHandler def resolve_hostname(hostname, port): # We do our own mDNS resolution # to enforce we only search for IPV4 address # and avoid a 5s timeout in the websocket on the ESP # See https://github.com/esp8266/Arduino/issues/2110 addrinfo =...
<commit_before>import os import socket import websocket from . import IOHandler def resolve_hostname(hostname, port): # We do our own mDNS resolution # to enforce we only search for IPV4 address # and avoid a 5s timeout in the websocket on the ESP # See https://github.com/esp8266/Arduino/issues/2110 ...
import os import socket import websocket from . import IOHandler def resolve_hostname(hostname, port): # We do our own mDNS resolution # to enforce we only search for IPV4 address # and avoid a 5s timeout in the websocket on the ESP # See https://github.com/esp8266/Arduino/issues/2110 addrinfo =...
import os import socket import websocket from . import IOHandler def resolve_hostname(hostname, port): # We do our own mDNS resolution # to enforce we only search for IPV4 address # and avoid a 5s timeout in the websocket on the ESP # See https://github.com/esp8266/Arduino/issues/2110 addrinfo =...
<commit_before>import os import socket import websocket from . import IOHandler def resolve_hostname(hostname, port): # We do our own mDNS resolution # to enforce we only search for IPV4 address # and avoid a 5s timeout in the websocket on the ESP # See https://github.com/esp8266/Arduino/issues/2110 ...
ab2b3bda76a39e34c0d4a172d3ede7ed9e77b774
base/ajax.py
base/ajax.py
import json from django.contrib.auth import get_user_model from dajaxice.decorators import dajaxice_register @dajaxice_register(method="GET") def getuser(request, query): User = get_user_model() qs = User.objects.filter(username__icontains=query) |\ User.objects.filter(first_name__icontains=query) |\...
import json from django.contrib.auth import get_user_model from dajaxice.decorators import dajaxice_register @dajaxice_register(method="GET") def getuser(request, query): User = get_user_model() qs = User.objects.filter(username__icontains=query) |\ User.objects.filter(first_name__icontains=query) |\...
Add filters to message recipient autocomplete.
Add filters to message recipient autocomplete.
Python
bsd-3-clause
ugoertz/django-familio,ugoertz/django-familio,ugoertz/django-familio,ugoertz/django-familio
import json from django.contrib.auth import get_user_model from dajaxice.decorators import dajaxice_register @dajaxice_register(method="GET") def getuser(request, query): User = get_user_model() qs = User.objects.filter(username__icontains=query) |\ User.objects.filter(first_name__icontains=query) |\...
import json from django.contrib.auth import get_user_model from dajaxice.decorators import dajaxice_register @dajaxice_register(method="GET") def getuser(request, query): User = get_user_model() qs = User.objects.filter(username__icontains=query) |\ User.objects.filter(first_name__icontains=query) |\...
<commit_before>import json from django.contrib.auth import get_user_model from dajaxice.decorators import dajaxice_register @dajaxice_register(method="GET") def getuser(request, query): User = get_user_model() qs = User.objects.filter(username__icontains=query) |\ User.objects.filter(first_name__icon...
import json from django.contrib.auth import get_user_model from dajaxice.decorators import dajaxice_register @dajaxice_register(method="GET") def getuser(request, query): User = get_user_model() qs = User.objects.filter(username__icontains=query) |\ User.objects.filter(first_name__icontains=query) |\...
import json from django.contrib.auth import get_user_model from dajaxice.decorators import dajaxice_register @dajaxice_register(method="GET") def getuser(request, query): User = get_user_model() qs = User.objects.filter(username__icontains=query) |\ User.objects.filter(first_name__icontains=query) |\...
<commit_before>import json from django.contrib.auth import get_user_model from dajaxice.decorators import dajaxice_register @dajaxice_register(method="GET") def getuser(request, query): User = get_user_model() qs = User.objects.filter(username__icontains=query) |\ User.objects.filter(first_name__icon...
2da4a8113e9f35444a9b44d6b1717b38d9e88f82
parsl/data_provider/scheme.py
parsl/data_provider/scheme.py
from parsl.utils import RepresentationMixin class GlobusScheme(RepresentationMixin): """Specification for accessing data on a remote executor via Globus. Parameters ---------- endpoint_uuid : str Universally unique identifier of the Globus endpoint at which the data can be accessed. T...
import typeguard from typing import Optional from parsl.utils import RepresentationMixin class GlobusScheme(RepresentationMixin): """Specification for accessing data on a remote executor via Globus. Parameters ---------- endpoint_uuid : str Universally unique identifier of the Globus endpoin...
Add type annotations for globus
Add type annotations for globus
Python
apache-2.0
Parsl/parsl,Parsl/parsl,Parsl/parsl,Parsl/parsl
from parsl.utils import RepresentationMixin class GlobusScheme(RepresentationMixin): """Specification for accessing data on a remote executor via Globus. Parameters ---------- endpoint_uuid : str Universally unique identifier of the Globus endpoint at which the data can be accessed. T...
import typeguard from typing import Optional from parsl.utils import RepresentationMixin class GlobusScheme(RepresentationMixin): """Specification for accessing data on a remote executor via Globus. Parameters ---------- endpoint_uuid : str Universally unique identifier of the Globus endpoin...
<commit_before>from parsl.utils import RepresentationMixin class GlobusScheme(RepresentationMixin): """Specification for accessing data on a remote executor via Globus. Parameters ---------- endpoint_uuid : str Universally unique identifier of the Globus endpoint at which the data can be acce...
import typeguard from typing import Optional from parsl.utils import RepresentationMixin class GlobusScheme(RepresentationMixin): """Specification for accessing data on a remote executor via Globus. Parameters ---------- endpoint_uuid : str Universally unique identifier of the Globus endpoin...
from parsl.utils import RepresentationMixin class GlobusScheme(RepresentationMixin): """Specification for accessing data on a remote executor via Globus. Parameters ---------- endpoint_uuid : str Universally unique identifier of the Globus endpoint at which the data can be accessed. T...
<commit_before>from parsl.utils import RepresentationMixin class GlobusScheme(RepresentationMixin): """Specification for accessing data on a remote executor via Globus. Parameters ---------- endpoint_uuid : str Universally unique identifier of the Globus endpoint at which the data can be acce...
774fff656463eb44fb10813f8668e37ed2d459fc
ktbs_bench/utils/decorators.py
ktbs_bench/utils/decorators.py
from functools import wraps from inspect import getcallargs from timer import Timer def bench(f): """Times a function given specific arguments.""" timer = Timer(tick_now=False) @wraps(f) def wrapped(*args, **kwargs): timer.start() f(*args, **kwargs) timer.stop() res...
from functools import wraps from inspect import getcallargs from timer import Timer def bench(f): """Times a function given specific arguments.""" @wraps(f) def wrapped(*args, **kwargs): timer = Timer(tick_now=False) timer.start() f(*args, **kwargs) timer.stop() ...
Fix timer in @bench to be reset for each benched function call
Fix timer in @bench to be reset for each benched function call
Python
mit
ktbs/ktbs-bench,ktbs/ktbs-bench
from functools import wraps from inspect import getcallargs from timer import Timer def bench(f): """Times a function given specific arguments.""" timer = Timer(tick_now=False) @wraps(f) def wrapped(*args, **kwargs): timer.start() f(*args, **kwargs) timer.stop() res...
from functools import wraps from inspect import getcallargs from timer import Timer def bench(f): """Times a function given specific arguments.""" @wraps(f) def wrapped(*args, **kwargs): timer = Timer(tick_now=False) timer.start() f(*args, **kwargs) timer.stop() ...
<commit_before>from functools import wraps from inspect import getcallargs from timer import Timer def bench(f): """Times a function given specific arguments.""" timer = Timer(tick_now=False) @wraps(f) def wrapped(*args, **kwargs): timer.start() f(*args, **kwargs) timer.stop...
from functools import wraps from inspect import getcallargs from timer import Timer def bench(f): """Times a function given specific arguments.""" @wraps(f) def wrapped(*args, **kwargs): timer = Timer(tick_now=False) timer.start() f(*args, **kwargs) timer.stop() ...
from functools import wraps from inspect import getcallargs from timer import Timer def bench(f): """Times a function given specific arguments.""" timer = Timer(tick_now=False) @wraps(f) def wrapped(*args, **kwargs): timer.start() f(*args, **kwargs) timer.stop() res...
<commit_before>from functools import wraps from inspect import getcallargs from timer import Timer def bench(f): """Times a function given specific arguments.""" timer = Timer(tick_now=False) @wraps(f) def wrapped(*args, **kwargs): timer.start() f(*args, **kwargs) timer.stop...
582bb1f7a2de8756bcb72d79d61aab84c09ef503
beetle_sass/__init__.py
beetle_sass/__init__.py
import sass def render_sass(raw_content): return sass.compile(string=raw_content) def register(context, plugin_config): sass_extensions = ['sass', 'scss'] context.content_renderer.add_renderer(sass_extensions, render_sass)
from os import path import sass def render_sass(raw_content): return sass.compile(string=raw_content) def includer_handler(content, suggested_path): content = render_sass(content.decode('utf-8')) file_path, _ = path.splitext(suggested_path) return '{}.css'.format(file_path), content.encode('utf-8')...
Add includer handler as well as content renderer
Add includer handler as well as content renderer
Python
mit
Tenzer/beetle-sass
import sass def render_sass(raw_content): return sass.compile(string=raw_content) def register(context, plugin_config): sass_extensions = ['sass', 'scss'] context.content_renderer.add_renderer(sass_extensions, render_sass) Add includer handler as well as content renderer
from os import path import sass def render_sass(raw_content): return sass.compile(string=raw_content) def includer_handler(content, suggested_path): content = render_sass(content.decode('utf-8')) file_path, _ = path.splitext(suggested_path) return '{}.css'.format(file_path), content.encode('utf-8')...
<commit_before>import sass def render_sass(raw_content): return sass.compile(string=raw_content) def register(context, plugin_config): sass_extensions = ['sass', 'scss'] context.content_renderer.add_renderer(sass_extensions, render_sass) <commit_msg>Add includer handler as well as content renderer<commi...
from os import path import sass def render_sass(raw_content): return sass.compile(string=raw_content) def includer_handler(content, suggested_path): content = render_sass(content.decode('utf-8')) file_path, _ = path.splitext(suggested_path) return '{}.css'.format(file_path), content.encode('utf-8')...
import sass def render_sass(raw_content): return sass.compile(string=raw_content) def register(context, plugin_config): sass_extensions = ['sass', 'scss'] context.content_renderer.add_renderer(sass_extensions, render_sass) Add includer handler as well as content rendererfrom os import path import sass ...
<commit_before>import sass def render_sass(raw_content): return sass.compile(string=raw_content) def register(context, plugin_config): sass_extensions = ['sass', 'scss'] context.content_renderer.add_renderer(sass_extensions, render_sass) <commit_msg>Add includer handler as well as content renderer<commi...
1d09a1c92f813af26abfea60846345b3757e356a
blog/views.py
blog/views.py
import os from django.views.generic import TemplateView class ArticleView(TemplateView): def get_template_names(self): article_name = self.kwargs.get('article_name', 'notfound') return [os.path.join('blog', 'blog', article_name, 'index.html')]
import os from django.views.generic import TemplateView from django.template.base import TemplateDoesNotExist from django.http import Http404 from django.template.loader import get_template class ArticleView(TemplateView): def get_template_names(self): article_name = self.kwargs.get('article_name', 'not...
Make sure that missing blog pages don't 500
Make sure that missing blog pages don't 500
Python
mit
stackmachine/bearweb,stackmachine/bearweb,stackmachine/bearweb,stackmachine/bearweb,stackmachine/bearweb,stackmachine/bearweb
import os from django.views.generic import TemplateView class ArticleView(TemplateView): def get_template_names(self): article_name = self.kwargs.get('article_name', 'notfound') return [os.path.join('blog', 'blog', article_name, 'index.html')] Make sure that missing blog pages don't 500
import os from django.views.generic import TemplateView from django.template.base import TemplateDoesNotExist from django.http import Http404 from django.template.loader import get_template class ArticleView(TemplateView): def get_template_names(self): article_name = self.kwargs.get('article_name', 'not...
<commit_before>import os from django.views.generic import TemplateView class ArticleView(TemplateView): def get_template_names(self): article_name = self.kwargs.get('article_name', 'notfound') return [os.path.join('blog', 'blog', article_name, 'index.html')] <commit_msg>Make sure that missing bl...
import os from django.views.generic import TemplateView from django.template.base import TemplateDoesNotExist from django.http import Http404 from django.template.loader import get_template class ArticleView(TemplateView): def get_template_names(self): article_name = self.kwargs.get('article_name', 'not...
import os from django.views.generic import TemplateView class ArticleView(TemplateView): def get_template_names(self): article_name = self.kwargs.get('article_name', 'notfound') return [os.path.join('blog', 'blog', article_name, 'index.html')] Make sure that missing blog pages don't 500import os...
<commit_before>import os from django.views.generic import TemplateView class ArticleView(TemplateView): def get_template_names(self): article_name = self.kwargs.get('article_name', 'notfound') return [os.path.join('blog', 'blog', article_name, 'index.html')] <commit_msg>Make sure that missing bl...
e34258c5c05bfeddfb25c4090c4a5f34376f597c
climatecontrol/__init__.py
climatecontrol/__init__.py
#!/usr/bin/env python """ CLIMATECONTROL controls your apps configuration environment. It is a Python library for loading app configurations from files and/or namespaced environment variables. :licence: MIT, see LICENSE file for more details. """ from settings_parser import Settings # noqa: F401
Add Settings class to top level package namespace
Add Settings class to top level package namespace
Python
mit
daviskirk/climatecontrol
Add Settings class to top level package namespace
#!/usr/bin/env python """ CLIMATECONTROL controls your apps configuration environment. It is a Python library for loading app configurations from files and/or namespaced environment variables. :licence: MIT, see LICENSE file for more details. """ from settings_parser import Settings # noqa: F401
<commit_before> <commit_msg>Add Settings class to top level package namespace<commit_after>
#!/usr/bin/env python """ CLIMATECONTROL controls your apps configuration environment. It is a Python library for loading app configurations from files and/or namespaced environment variables. :licence: MIT, see LICENSE file for more details. """ from settings_parser import Settings # noqa: F401
Add Settings class to top level package namespace#!/usr/bin/env python """ CLIMATECONTROL controls your apps configuration environment. It is a Python library for loading app configurations from files and/or namespaced environment variables. :licence: MIT, see LICENSE file for more details. """ from settings_parse...
<commit_before> <commit_msg>Add Settings class to top level package namespace<commit_after>#!/usr/bin/env python """ CLIMATECONTROL controls your apps configuration environment. It is a Python library for loading app configurations from files and/or namespaced environment variables. :licence: MIT, see LICENSE file fo...
b8eb16ac78c081711236d73e5c099ed734f897ac
pyscriptic/refs.py
pyscriptic/refs.py
from pyscriptic.containers import CONTAINERS from pyscriptic.storage import STORAGE_LOCATIONS class Reference(object): """ Contains the information to either create or link a given container to a reference through a protocol via an intermediate name. Attributes ---------- container_id : str ...
from pyscriptic.containers import CONTAINERS, list_containers from pyscriptic.storage import STORAGE_LOCATIONS _AVAILABLE_CONTAINERS_IDS = None def _available_container_ids(): """ This helper function fetchs a list of all containers available to the currently active organization. It then stores the conta...
Check container IDs when making new References
Check container IDs when making new References
Python
bsd-2-clause
naderm/pytranscriptic,naderm/pytranscriptic
from pyscriptic.containers import CONTAINERS from pyscriptic.storage import STORAGE_LOCATIONS class Reference(object): """ Contains the information to either create or link a given container to a reference through a protocol via an intermediate name. Attributes ---------- container_id : str ...
from pyscriptic.containers import CONTAINERS, list_containers from pyscriptic.storage import STORAGE_LOCATIONS _AVAILABLE_CONTAINERS_IDS = None def _available_container_ids(): """ This helper function fetchs a list of all containers available to the currently active organization. It then stores the conta...
<commit_before> from pyscriptic.containers import CONTAINERS from pyscriptic.storage import STORAGE_LOCATIONS class Reference(object): """ Contains the information to either create or link a given container to a reference through a protocol via an intermediate name. Attributes ---------- conta...
from pyscriptic.containers import CONTAINERS, list_containers from pyscriptic.storage import STORAGE_LOCATIONS _AVAILABLE_CONTAINERS_IDS = None def _available_container_ids(): """ This helper function fetchs a list of all containers available to the currently active organization. It then stores the conta...
from pyscriptic.containers import CONTAINERS from pyscriptic.storage import STORAGE_LOCATIONS class Reference(object): """ Contains the information to either create or link a given container to a reference through a protocol via an intermediate name. Attributes ---------- container_id : str ...
<commit_before> from pyscriptic.containers import CONTAINERS from pyscriptic.storage import STORAGE_LOCATIONS class Reference(object): """ Contains the information to either create or link a given container to a reference through a protocol via an intermediate name. Attributes ---------- conta...
393d06be7c5056985d16c039b8181fc05f40f9e0
ci/testsettings.py
ci/testsettings.py
# This file is exec'd from settings.py, so it has access to and can # modify all the variables in settings.py. # If this file is changed in development, the development server will # have to be manually restarted because changes will not be noticed # immediately. DEBUG = False # include database settings to use Mari...
# This file is exec'd from settings.py, so it has access to and can # modify all the variables in settings.py. # If this file is changed in development, the development server will # have to be manually restarted because changes will not be noticed # immediately. DEBUG = False # include database settings to use Mari...
Tweak travis-ci settings for haystack setup and test
Tweak travis-ci settings for haystack setup and test
Python
apache-2.0
Princeton-CDH/derrida-django,Princeton-CDH/derrida-django,Princeton-CDH/derrida-django,Princeton-CDH/derrida-django
# This file is exec'd from settings.py, so it has access to and can # modify all the variables in settings.py. # If this file is changed in development, the development server will # have to be manually restarted because changes will not be noticed # immediately. DEBUG = False # include database settings to use Mari...
# This file is exec'd from settings.py, so it has access to and can # modify all the variables in settings.py. # If this file is changed in development, the development server will # have to be manually restarted because changes will not be noticed # immediately. DEBUG = False # include database settings to use Mari...
<commit_before># This file is exec'd from settings.py, so it has access to and can # modify all the variables in settings.py. # If this file is changed in development, the development server will # have to be manually restarted because changes will not be noticed # immediately. DEBUG = False # include database setti...
# This file is exec'd from settings.py, so it has access to and can # modify all the variables in settings.py. # If this file is changed in development, the development server will # have to be manually restarted because changes will not be noticed # immediately. DEBUG = False # include database settings to use Mari...
# This file is exec'd from settings.py, so it has access to and can # modify all the variables in settings.py. # If this file is changed in development, the development server will # have to be manually restarted because changes will not be noticed # immediately. DEBUG = False # include database settings to use Mari...
<commit_before># This file is exec'd from settings.py, so it has access to and can # modify all the variables in settings.py. # If this file is changed in development, the development server will # have to be manually restarted because changes will not be noticed # immediately. DEBUG = False # include database setti...