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
94124a65b5aa540f9f997dfcdbd856207d011555
wafer/conf_registration/models.py
wafer/conf_registration/models.py
from django.contrib.auth.models import User from django.db import models class ConferenceOptionGroup(models.Model): """Used to manage relationships""" name = models.CharField(max_length=255) class ConferenceOption(models.Model): name = models.CharField(max_length=255) price = models.DecimalField(ma...
from django.contrib.auth.models import User from django.db import models class ConferenceOptionGroup(models.Model): """Used to manage relationships""" name = models.CharField(max_length=255) def __unicode__(self): return u'%s' % self.name class ConferenceOption(models.Model): name = models...
Make requirements optional. Add help text and fix display in admin form
Make requirements optional. Add help text and fix display in admin form
Python
isc
CarlFK/wafer,CarlFK/wafer,CTPUG/wafer,CarlFK/wafer,CTPUG/wafer,CTPUG/wafer,CarlFK/wafer,CTPUG/wafer
from django.contrib.auth.models import User from django.db import models class ConferenceOptionGroup(models.Model): """Used to manage relationships""" name = models.CharField(max_length=255) class ConferenceOption(models.Model): name = models.CharField(max_length=255) price = models.DecimalField(ma...
from django.contrib.auth.models import User from django.db import models class ConferenceOptionGroup(models.Model): """Used to manage relationships""" name = models.CharField(max_length=255) def __unicode__(self): return u'%s' % self.name class ConferenceOption(models.Model): name = models...
<commit_before>from django.contrib.auth.models import User from django.db import models class ConferenceOptionGroup(models.Model): """Used to manage relationships""" name = models.CharField(max_length=255) class ConferenceOption(models.Model): name = models.CharField(max_length=255) price = models....
from django.contrib.auth.models import User from django.db import models class ConferenceOptionGroup(models.Model): """Used to manage relationships""" name = models.CharField(max_length=255) def __unicode__(self): return u'%s' % self.name class ConferenceOption(models.Model): name = models...
from django.contrib.auth.models import User from django.db import models class ConferenceOptionGroup(models.Model): """Used to manage relationships""" name = models.CharField(max_length=255) class ConferenceOption(models.Model): name = models.CharField(max_length=255) price = models.DecimalField(ma...
<commit_before>from django.contrib.auth.models import User from django.db import models class ConferenceOptionGroup(models.Model): """Used to manage relationships""" name = models.CharField(max_length=255) class ConferenceOption(models.Model): name = models.CharField(max_length=255) price = models....
4e67491bda3204d449c540fa80cbbb8ab73921dd
wagtail/wagtailadmin/edit_bird.py
wagtail/wagtailadmin/edit_bird.py
from django.core.urlresolvers import reverse from django.template import RequestContext from django.template.loader import render_to_string class BaseItem(object): template = 'wagtailadmin/edit_bird/base_item.html' def render(self, request): return render_to_string(self.template, dict(self=self, requ...
from django.core.urlresolvers import reverse from django.template import RequestContext from django.template.loader import render_to_string class BaseItem(object): template = 'wagtailadmin/edit_bird/base_item.html' def render(self, request): return render_to_string(self.template, dict(self=self, requ...
Edit bird now checks if the user has permission to access admin and edit the page before displaying edit page option
Edit bird now checks if the user has permission to access admin and edit the page before displaying edit page option
Python
bsd-3-clause
rjsproxy/wagtail,jnns/wagtail,taedori81/wagtail,thenewguy/wagtail,willcodefortea/wagtail,serzans/wagtail,inonit/wagtail,tangentlabs/wagtail,rsalmaso/wagtail,chimeno/wagtail,Toshakins/wagtail,jorge-marques/wagtail,wagtail/wagtail,quru/wagtail,kurtw/wagtail,rv816/wagtail,mayapurmedia/wagtail,darith27/wagtail,marctc/wagta...
from django.core.urlresolvers import reverse from django.template import RequestContext from django.template.loader import render_to_string class BaseItem(object): template = 'wagtailadmin/edit_bird/base_item.html' def render(self, request): return render_to_string(self.template, dict(self=self, requ...
from django.core.urlresolvers import reverse from django.template import RequestContext from django.template.loader import render_to_string class BaseItem(object): template = 'wagtailadmin/edit_bird/base_item.html' def render(self, request): return render_to_string(self.template, dict(self=self, requ...
<commit_before>from django.core.urlresolvers import reverse from django.template import RequestContext from django.template.loader import render_to_string class BaseItem(object): template = 'wagtailadmin/edit_bird/base_item.html' def render(self, request): return render_to_string(self.template, dict(...
from django.core.urlresolvers import reverse from django.template import RequestContext from django.template.loader import render_to_string class BaseItem(object): template = 'wagtailadmin/edit_bird/base_item.html' def render(self, request): return render_to_string(self.template, dict(self=self, requ...
from django.core.urlresolvers import reverse from django.template import RequestContext from django.template.loader import render_to_string class BaseItem(object): template = 'wagtailadmin/edit_bird/base_item.html' def render(self, request): return render_to_string(self.template, dict(self=self, requ...
<commit_before>from django.core.urlresolvers import reverse from django.template import RequestContext from django.template.loader import render_to_string class BaseItem(object): template = 'wagtailadmin/edit_bird/base_item.html' def render(self, request): return render_to_string(self.template, dict(...
e58416edc8ef86abbdebc4711f3afa2b4e90cc1f
tests/test_virtualbox.py
tests/test_virtualbox.py
# This code assumes vboxapi.py from VirtualBox distribution # being in PYTHONPATH, or installed system-wide import unittest import logging import time import virtualbox log = logging.getLogger() log_handler = logging.StreamHandler() log_handler.setLevel(logging.DEBUG) log.addHandler(log_handler) log.setLevel(logging....
# This code assumes vboxapi.py from VirtualBox distribution # being in PYTHONPATH, or installed system-wide import unittest import logging from tests.helpers import VirtualboxTestCase import virtualbox log = logging.getLogger() log_handler = logging.StreamHandler() log_handler.setLevel(logging.DEBUG) log.addHandler(l...
Improve tests Test VM creation, destruction and cloning
Improve tests Test VM creation, destruction and cloning
Python
apache-2.0
saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt,LoveIsGrief/saltcloud-virtualbox-provider
# This code assumes vboxapi.py from VirtualBox distribution # being in PYTHONPATH, or installed system-wide import unittest import logging import time import virtualbox log = logging.getLogger() log_handler = logging.StreamHandler() log_handler.setLevel(logging.DEBUG) log.addHandler(log_handler) log.setLevel(logging....
# This code assumes vboxapi.py from VirtualBox distribution # being in PYTHONPATH, or installed system-wide import unittest import logging from tests.helpers import VirtualboxTestCase import virtualbox log = logging.getLogger() log_handler = logging.StreamHandler() log_handler.setLevel(logging.DEBUG) log.addHandler(l...
<commit_before># This code assumes vboxapi.py from VirtualBox distribution # being in PYTHONPATH, or installed system-wide import unittest import logging import time import virtualbox log = logging.getLogger() log_handler = logging.StreamHandler() log_handler.setLevel(logging.DEBUG) log.addHandler(log_handler) log.se...
# This code assumes vboxapi.py from VirtualBox distribution # being in PYTHONPATH, or installed system-wide import unittest import logging from tests.helpers import VirtualboxTestCase import virtualbox log = logging.getLogger() log_handler = logging.StreamHandler() log_handler.setLevel(logging.DEBUG) log.addHandler(l...
# This code assumes vboxapi.py from VirtualBox distribution # being in PYTHONPATH, or installed system-wide import unittest import logging import time import virtualbox log = logging.getLogger() log_handler = logging.StreamHandler() log_handler.setLevel(logging.DEBUG) log.addHandler(log_handler) log.setLevel(logging....
<commit_before># This code assumes vboxapi.py from VirtualBox distribution # being in PYTHONPATH, or installed system-wide import unittest import logging import time import virtualbox log = logging.getLogger() log_handler = logging.StreamHandler() log_handler.setLevel(logging.DEBUG) log.addHandler(log_handler) log.se...
e4dd679f20a066c86a87a42199f66b288a314fcf
scons-tools/gmcs.py
scons-tools/gmcs.py
import os.path import SCons.Builder import SCons.Node.FS import SCons.Util csccom = "$CSC $CSCFLAGS $_CSCLIBPATH -r:$_CSCLIBS -out:${TARGET.abspath} $SOURCES" csclibcom = "$CSC -t:library $CSCLIBFLAGS $_CSCLIBPATH $_CSCLIBS -out:${TARGET.abspath} $SOURCES" McsBuilder = SCons.Builder.Builder(action = '$CSCCOM', ...
import os.path import SCons.Builder import SCons.Node.FS import SCons.Util csccom = "$CSC $CSCFLAGS $_CSCLIBPATH -r:$_CSCLIBS -out:${TARGET.abspath} $SOURCES" csclibcom = "$CSC -t:library $CSCLIBFLAGS $_CSCLIBPATH $_CSCLIBS -out:${TARGET.abspath} $SOURCES" McsBuilder = SCons.Builder.Builder(action = '$CSCCOM', ...
Use -platform:anycpu while compiling .NET assemblies
Use -platform:anycpu while compiling .NET assemblies
Python
lgpl-2.1
eyecreate/tapcfg,juhovh/tapcfg,zhanleewo/tapcfg,eyecreate/tapcfg,zhanleewo/tapcfg,juhovh/tapcfg,juhovh/tapcfg,zhanleewo/tapcfg,eyecreate/tapcfg,zhanleewo/tapcfg,juhovh/tapcfg,zhanleewo/tapcfg,juhovh/tapcfg,eyecreate/tapcfg,eyecreate/tapcfg,juhovh/tapcfg
import os.path import SCons.Builder import SCons.Node.FS import SCons.Util csccom = "$CSC $CSCFLAGS $_CSCLIBPATH -r:$_CSCLIBS -out:${TARGET.abspath} $SOURCES" csclibcom = "$CSC -t:library $CSCLIBFLAGS $_CSCLIBPATH $_CSCLIBS -out:${TARGET.abspath} $SOURCES" McsBuilder = SCons.Builder.Builder(action = '$CSCCOM', ...
import os.path import SCons.Builder import SCons.Node.FS import SCons.Util csccom = "$CSC $CSCFLAGS $_CSCLIBPATH -r:$_CSCLIBS -out:${TARGET.abspath} $SOURCES" csclibcom = "$CSC -t:library $CSCLIBFLAGS $_CSCLIBPATH $_CSCLIBS -out:${TARGET.abspath} $SOURCES" McsBuilder = SCons.Builder.Builder(action = '$CSCCOM', ...
<commit_before>import os.path import SCons.Builder import SCons.Node.FS import SCons.Util csccom = "$CSC $CSCFLAGS $_CSCLIBPATH -r:$_CSCLIBS -out:${TARGET.abspath} $SOURCES" csclibcom = "$CSC -t:library $CSCLIBFLAGS $_CSCLIBPATH $_CSCLIBS -out:${TARGET.abspath} $SOURCES" McsBuilder = SCons.Builder.Builder(action = '...
import os.path import SCons.Builder import SCons.Node.FS import SCons.Util csccom = "$CSC $CSCFLAGS $_CSCLIBPATH -r:$_CSCLIBS -out:${TARGET.abspath} $SOURCES" csclibcom = "$CSC -t:library $CSCLIBFLAGS $_CSCLIBPATH $_CSCLIBS -out:${TARGET.abspath} $SOURCES" McsBuilder = SCons.Builder.Builder(action = '$CSCCOM', ...
import os.path import SCons.Builder import SCons.Node.FS import SCons.Util csccom = "$CSC $CSCFLAGS $_CSCLIBPATH -r:$_CSCLIBS -out:${TARGET.abspath} $SOURCES" csclibcom = "$CSC -t:library $CSCLIBFLAGS $_CSCLIBPATH $_CSCLIBS -out:${TARGET.abspath} $SOURCES" McsBuilder = SCons.Builder.Builder(action = '$CSCCOM', ...
<commit_before>import os.path import SCons.Builder import SCons.Node.FS import SCons.Util csccom = "$CSC $CSCFLAGS $_CSCLIBPATH -r:$_CSCLIBS -out:${TARGET.abspath} $SOURCES" csclibcom = "$CSC -t:library $CSCLIBFLAGS $_CSCLIBPATH $_CSCLIBS -out:${TARGET.abspath} $SOURCES" McsBuilder = SCons.Builder.Builder(action = '...
17ac329783bce0cb88d92659cf58a3ea476c66ef
scripts/sound_output_test.py
scripts/sound_output_test.py
import pyaudio import wave import time import sys import numpy as np if len(sys.argv) < 2: print("Plays a wave file.\n\nUsage: %s filename.wav" % sys.argv[0]) sys.exit(-1) wf = wave.open(sys.argv[1], 'rb') p = pyaudio.PyAudio() DEVICE_ID=2 def callback(in_data, frame_count, time_info, status): data = w...
import pyaudio import wave import time import sys import numpy as np if len(sys.argv) < 2: print("Plays a wave file.\n\nUsage: %s filename.wav" % sys.argv[0]) sys.exit(-1) wf = wave.open(sys.argv[1], 'rb') p = pyaudio.PyAudio() n_bytes_to_test = 1024 * 2 * 6 DEVICE_ID=2 def callback(in_data, frame_count, ...
Add support for looping sample
Add support for looping sample
Python
bsd-2-clause
mfergie/human-hive
import pyaudio import wave import time import sys import numpy as np if len(sys.argv) < 2: print("Plays a wave file.\n\nUsage: %s filename.wav" % sys.argv[0]) sys.exit(-1) wf = wave.open(sys.argv[1], 'rb') p = pyaudio.PyAudio() DEVICE_ID=2 def callback(in_data, frame_count, time_info, status): data = w...
import pyaudio import wave import time import sys import numpy as np if len(sys.argv) < 2: print("Plays a wave file.\n\nUsage: %s filename.wav" % sys.argv[0]) sys.exit(-1) wf = wave.open(sys.argv[1], 'rb') p = pyaudio.PyAudio() n_bytes_to_test = 1024 * 2 * 6 DEVICE_ID=2 def callback(in_data, frame_count, ...
<commit_before>import pyaudio import wave import time import sys import numpy as np if len(sys.argv) < 2: print("Plays a wave file.\n\nUsage: %s filename.wav" % sys.argv[0]) sys.exit(-1) wf = wave.open(sys.argv[1], 'rb') p = pyaudio.PyAudio() DEVICE_ID=2 def callback(in_data, frame_count, time_info, status...
import pyaudio import wave import time import sys import numpy as np if len(sys.argv) < 2: print("Plays a wave file.\n\nUsage: %s filename.wav" % sys.argv[0]) sys.exit(-1) wf = wave.open(sys.argv[1], 'rb') p = pyaudio.PyAudio() n_bytes_to_test = 1024 * 2 * 6 DEVICE_ID=2 def callback(in_data, frame_count, ...
import pyaudio import wave import time import sys import numpy as np if len(sys.argv) < 2: print("Plays a wave file.\n\nUsage: %s filename.wav" % sys.argv[0]) sys.exit(-1) wf = wave.open(sys.argv[1], 'rb') p = pyaudio.PyAudio() DEVICE_ID=2 def callback(in_data, frame_count, time_info, status): data = w...
<commit_before>import pyaudio import wave import time import sys import numpy as np if len(sys.argv) < 2: print("Plays a wave file.\n\nUsage: %s filename.wav" % sys.argv[0]) sys.exit(-1) wf = wave.open(sys.argv[1], 'rb') p = pyaudio.PyAudio() DEVICE_ID=2 def callback(in_data, frame_count, time_info, status...
0e9d93b7e0998df6f5299bb7666adbcdedb5de28
sfblog_project/settings/prod.py
sfblog_project/settings/prod.py
from .base import * # NOQA from os import environ environ.setdefault('SFBLOG_CONFIG_PATH', '/etc/sfblog') DEBUG = False DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'sfblog', 'USER': 'sfblog', 'PASSWORD...
from .base import * # NOQA from os import environ environ.setdefault('SFBLOG_CONFIG_PATH', '/etc/sfblog') ALLOWED_HOSTS = [ "blog.starship-factory.ch", "blog.starship-factory.com", "blog.starship-factory.de", "blog.starship-factory.eu", "blog.starship-factory.org", "blog.starshipfactory.ch", "blog.star...
Whitelist the official names for the starship factory blog.
Whitelist the official names for the starship factory blog.
Python
bsd-3-clause
starshipfactory/sfblog,starshipfactory/sfblog,starshipfactory/sfblog,starshipfactory/sfblog
from .base import * # NOQA from os import environ environ.setdefault('SFBLOG_CONFIG_PATH', '/etc/sfblog') DEBUG = False DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'sfblog', 'USER': 'sfblog', 'PASSWORD...
from .base import * # NOQA from os import environ environ.setdefault('SFBLOG_CONFIG_PATH', '/etc/sfblog') ALLOWED_HOSTS = [ "blog.starship-factory.ch", "blog.starship-factory.com", "blog.starship-factory.de", "blog.starship-factory.eu", "blog.starship-factory.org", "blog.starshipfactory.ch", "blog.star...
<commit_before>from .base import * # NOQA from os import environ environ.setdefault('SFBLOG_CONFIG_PATH', '/etc/sfblog') DEBUG = False DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'sfblog', 'USER': 'sfblog', ...
from .base import * # NOQA from os import environ environ.setdefault('SFBLOG_CONFIG_PATH', '/etc/sfblog') ALLOWED_HOSTS = [ "blog.starship-factory.ch", "blog.starship-factory.com", "blog.starship-factory.de", "blog.starship-factory.eu", "blog.starship-factory.org", "blog.starshipfactory.ch", "blog.star...
from .base import * # NOQA from os import environ environ.setdefault('SFBLOG_CONFIG_PATH', '/etc/sfblog') DEBUG = False DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'sfblog', 'USER': 'sfblog', 'PASSWORD...
<commit_before>from .base import * # NOQA from os import environ environ.setdefault('SFBLOG_CONFIG_PATH', '/etc/sfblog') DEBUG = False DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'sfblog', 'USER': 'sfblog', ...
ab47a14acff93f52f3f995e1b8a0b9e1e742f3fe
overseer/urls.py
overseer/urls.py
from django.conf.urls.defaults import * import os.path urlpatterns = patterns('', url(r'^media/(?P<path>.+)?$', 'django.views.static.serve', { 'document_root': os.path.join(os.path.dirname(__file__), 'media'), 'show_indexes': True }, name='media'), url(r'^$', 'overseer.views.index', name=...
from django.conf.urls.defaults import * import os.path urlpatterns = patterns('', url(r'^media/(?P<path>.+)?$', 'django.views.static.serve', { 'document_root': os.path.join(os.path.dirname(__file__), 'media'), 'show_indexes': True }, name='media'), url(r'^$', 'overseer.views.index', name=...
Format number as string or it errors in some webservers
Format number as string or it errors in some webservers
Python
apache-2.0
disqus/overseer
from django.conf.urls.defaults import * import os.path urlpatterns = patterns('', url(r'^media/(?P<path>.+)?$', 'django.views.static.serve', { 'document_root': os.path.join(os.path.dirname(__file__), 'media'), 'show_indexes': True }, name='media'), url(r'^$', 'overseer.views.index', name=...
from django.conf.urls.defaults import * import os.path urlpatterns = patterns('', url(r'^media/(?P<path>.+)?$', 'django.views.static.serve', { 'document_root': os.path.join(os.path.dirname(__file__), 'media'), 'show_indexes': True }, name='media'), url(r'^$', 'overseer.views.index', name=...
<commit_before>from django.conf.urls.defaults import * import os.path urlpatterns = patterns('', url(r'^media/(?P<path>.+)?$', 'django.views.static.serve', { 'document_root': os.path.join(os.path.dirname(__file__), 'media'), 'show_indexes': True }, name='media'), url(r'^$', 'overseer.view...
from django.conf.urls.defaults import * import os.path urlpatterns = patterns('', url(r'^media/(?P<path>.+)?$', 'django.views.static.serve', { 'document_root': os.path.join(os.path.dirname(__file__), 'media'), 'show_indexes': True }, name='media'), url(r'^$', 'overseer.views.index', name=...
from django.conf.urls.defaults import * import os.path urlpatterns = patterns('', url(r'^media/(?P<path>.+)?$', 'django.views.static.serve', { 'document_root': os.path.join(os.path.dirname(__file__), 'media'), 'show_indexes': True }, name='media'), url(r'^$', 'overseer.views.index', name=...
<commit_before>from django.conf.urls.defaults import * import os.path urlpatterns = patterns('', url(r'^media/(?P<path>.+)?$', 'django.views.static.serve', { 'document_root': os.path.join(os.path.dirname(__file__), 'media'), 'show_indexes': True }, name='media'), url(r'^$', 'overseer.view...
32f1ce16ce9df1f4615a0403ed56bf6fd7dbbef4
slackbotpry/event.py
slackbotpry/event.py
class Event: def __init__(self, bot, data): self.bot = bot self.data = data def post_message(self, text, channel=None): if channel is None: channel = self.data['channel'] self.bot.post_message(text, channel) def add_reaction(self, emoji, channel=None, timestamp=No...
class Event: def __init__(self, bot, data): self.bot = bot self.data = data def post_message(self, text, channel=None): if channel is None: channel = self.data['channel'] return self.bot.post_message(text, channel) def add_reaction(self, emoji, channel=None, times...
Add missing return of Event methods
Add missing return of Event methods
Python
mit
rokurosatp/slackbotpry
class Event: def __init__(self, bot, data): self.bot = bot self.data = data def post_message(self, text, channel=None): if channel is None: channel = self.data['channel'] self.bot.post_message(text, channel) def add_reaction(self, emoji, channel=None, timestamp=No...
class Event: def __init__(self, bot, data): self.bot = bot self.data = data def post_message(self, text, channel=None): if channel is None: channel = self.data['channel'] return self.bot.post_message(text, channel) def add_reaction(self, emoji, channel=None, times...
<commit_before>class Event: def __init__(self, bot, data): self.bot = bot self.data = data def post_message(self, text, channel=None): if channel is None: channel = self.data['channel'] self.bot.post_message(text, channel) def add_reaction(self, emoji, channel=Non...
class Event: def __init__(self, bot, data): self.bot = bot self.data = data def post_message(self, text, channel=None): if channel is None: channel = self.data['channel'] return self.bot.post_message(text, channel) def add_reaction(self, emoji, channel=None, times...
class Event: def __init__(self, bot, data): self.bot = bot self.data = data def post_message(self, text, channel=None): if channel is None: channel = self.data['channel'] self.bot.post_message(text, channel) def add_reaction(self, emoji, channel=None, timestamp=No...
<commit_before>class Event: def __init__(self, bot, data): self.bot = bot self.data = data def post_message(self, text, channel=None): if channel is None: channel = self.data['channel'] self.bot.post_message(text, channel) def add_reaction(self, emoji, channel=Non...
9bb7dc9c8f7b5208c332017df8b1501315e2601f
py/gaarf/utils.py
py/gaarf/utils.py
# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
Fix incorrect signature for get_customer_ids function
Fix incorrect signature for get_customer_ids function Change-Id: Ib44af3ac6437ad9fa4cbfd9fda9b055b7eff4547
Python
apache-2.0
google/ads-api-report-fetcher,google/ads-api-report-fetcher,google/ads-api-report-fetcher,google/ads-api-report-fetcher
# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
<commit_before># Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
<commit_before># Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
8a7b6962a26de7035d64dce23285960c78678a2a
server/resources.py
server/resources.py
from flask import request from flask_restful import Resource, Api, abort, reqparse from .models import db, Comment, Lecture api = Api() class CommentListResource(Resource): def get(self, lecture_id): db_lecture = Lecture.query.filter(Lecture.id == lecture_id).first() if not db_lecture: ...
from flask import request from flask_restful import Resource, Api, abort, reqparse from .models import db, Comment, Lecture api = Api() class CommentListResource(Resource): def get(self, lecture_id): db_lecture = Lecture.query.filter(Lecture.id == lecture_id).first() if not db_lecture: ...
Use double quotes on help string
Use double quotes on help string
Python
mit
MACSIFS/IFS,MACSIFS/IFS,MACSIFS/IFS,MACSIFS/IFS
from flask import request from flask_restful import Resource, Api, abort, reqparse from .models import db, Comment, Lecture api = Api() class CommentListResource(Resource): def get(self, lecture_id): db_lecture = Lecture.query.filter(Lecture.id == lecture_id).first() if not db_lecture: ...
from flask import request from flask_restful import Resource, Api, abort, reqparse from .models import db, Comment, Lecture api = Api() class CommentListResource(Resource): def get(self, lecture_id): db_lecture = Lecture.query.filter(Lecture.id == lecture_id).first() if not db_lecture: ...
<commit_before>from flask import request from flask_restful import Resource, Api, abort, reqparse from .models import db, Comment, Lecture api = Api() class CommentListResource(Resource): def get(self, lecture_id): db_lecture = Lecture.query.filter(Lecture.id == lecture_id).first() if not db_lec...
from flask import request from flask_restful import Resource, Api, abort, reqparse from .models import db, Comment, Lecture api = Api() class CommentListResource(Resource): def get(self, lecture_id): db_lecture = Lecture.query.filter(Lecture.id == lecture_id).first() if not db_lecture: ...
from flask import request from flask_restful import Resource, Api, abort, reqparse from .models import db, Comment, Lecture api = Api() class CommentListResource(Resource): def get(self, lecture_id): db_lecture = Lecture.query.filter(Lecture.id == lecture_id).first() if not db_lecture: ...
<commit_before>from flask import request from flask_restful import Resource, Api, abort, reqparse from .models import db, Comment, Lecture api = Api() class CommentListResource(Resource): def get(self, lecture_id): db_lecture = Lecture.query.filter(Lecture.id == lecture_id).first() if not db_lec...
e457f09f280bc86bc7b5cdcfb4fa3ebf093402ec
services/dropbox.py
services/dropbox.py
import foauth.providers from oauthlib.oauth1.rfc5849 import SIGNATURE_PLAINTEXT class Dropbox(foauth.providers.OAuth1): # General info about the provider provider_url = 'https://www.dropbox.com/' docs_url = 'https://www.dropbox.com/developers/reference/api' favicon_url = 'https://cf.dropboxstatic.com/...
import foauth.providers class Dropbox(foauth.providers.OAuth2): # General info about the provider provider_url = 'https://www.dropbox.com/' docs_url = 'https://www.dropbox.com/developers/reference/api' favicon_url = 'https://cf.dropboxstatic.com/static/images/favicon-vflk5FiAC.ico' category = 'Fil...
Upgrade Dropbox to OAuth 2
Upgrade Dropbox to OAuth 2
Python
bsd-3-clause
foauth/foauth.org,foauth/foauth.org,foauth/foauth.org
import foauth.providers from oauthlib.oauth1.rfc5849 import SIGNATURE_PLAINTEXT class Dropbox(foauth.providers.OAuth1): # General info about the provider provider_url = 'https://www.dropbox.com/' docs_url = 'https://www.dropbox.com/developers/reference/api' favicon_url = 'https://cf.dropboxstatic.com/...
import foauth.providers class Dropbox(foauth.providers.OAuth2): # General info about the provider provider_url = 'https://www.dropbox.com/' docs_url = 'https://www.dropbox.com/developers/reference/api' favicon_url = 'https://cf.dropboxstatic.com/static/images/favicon-vflk5FiAC.ico' category = 'Fil...
<commit_before>import foauth.providers from oauthlib.oauth1.rfc5849 import SIGNATURE_PLAINTEXT class Dropbox(foauth.providers.OAuth1): # General info about the provider provider_url = 'https://www.dropbox.com/' docs_url = 'https://www.dropbox.com/developers/reference/api' favicon_url = 'https://cf.dro...
import foauth.providers class Dropbox(foauth.providers.OAuth2): # General info about the provider provider_url = 'https://www.dropbox.com/' docs_url = 'https://www.dropbox.com/developers/reference/api' favicon_url = 'https://cf.dropboxstatic.com/static/images/favicon-vflk5FiAC.ico' category = 'Fil...
import foauth.providers from oauthlib.oauth1.rfc5849 import SIGNATURE_PLAINTEXT class Dropbox(foauth.providers.OAuth1): # General info about the provider provider_url = 'https://www.dropbox.com/' docs_url = 'https://www.dropbox.com/developers/reference/api' favicon_url = 'https://cf.dropboxstatic.com/...
<commit_before>import foauth.providers from oauthlib.oauth1.rfc5849 import SIGNATURE_PLAINTEXT class Dropbox(foauth.providers.OAuth1): # General info about the provider provider_url = 'https://www.dropbox.com/' docs_url = 'https://www.dropbox.com/developers/reference/api' favicon_url = 'https://cf.dro...
b39dcbd12164cdd682aea2d39e298fe968dcf38e
pkg_resources/py31compat.py
pkg_resources/py31compat.py
import os import errno import sys def _makedirs_31(path, exist_ok=False): try: os.makedirs(path) except OSError as exc: if not exist_ok or exc.errno != errno.EEXIST: raise # rely on compatibility behavior until mode considerations # and exists_ok considerations are disentangled....
import os import errno import sys def _makedirs_31(path, exist_ok=False): try: os.makedirs(path) except OSError as exc: if not exist_ok or exc.errno != errno.EEXIST: raise # rely on compatibility behavior until mode considerations # and exists_ok considerations are disentangled....
Correct bounds and boolean selector.
Correct bounds and boolean selector.
Python
mit
pypa/setuptools,pypa/setuptools,pypa/setuptools
import os import errno import sys def _makedirs_31(path, exist_ok=False): try: os.makedirs(path) except OSError as exc: if not exist_ok or exc.errno != errno.EEXIST: raise # rely on compatibility behavior until mode considerations # and exists_ok considerations are disentangled....
import os import errno import sys def _makedirs_31(path, exist_ok=False): try: os.makedirs(path) except OSError as exc: if not exist_ok or exc.errno != errno.EEXIST: raise # rely on compatibility behavior until mode considerations # and exists_ok considerations are disentangled....
<commit_before>import os import errno import sys def _makedirs_31(path, exist_ok=False): try: os.makedirs(path) except OSError as exc: if not exist_ok or exc.errno != errno.EEXIST: raise # rely on compatibility behavior until mode considerations # and exists_ok considerations ar...
import os import errno import sys def _makedirs_31(path, exist_ok=False): try: os.makedirs(path) except OSError as exc: if not exist_ok or exc.errno != errno.EEXIST: raise # rely on compatibility behavior until mode considerations # and exists_ok considerations are disentangled....
import os import errno import sys def _makedirs_31(path, exist_ok=False): try: os.makedirs(path) except OSError as exc: if not exist_ok or exc.errno != errno.EEXIST: raise # rely on compatibility behavior until mode considerations # and exists_ok considerations are disentangled....
<commit_before>import os import errno import sys def _makedirs_31(path, exist_ok=False): try: os.makedirs(path) except OSError as exc: if not exist_ok or exc.errno != errno.EEXIST: raise # rely on compatibility behavior until mode considerations # and exists_ok considerations ar...
0ee2b337b61155044a66ae1f6f173492a51c1150
dipsim/fluorophore.py
dipsim/fluorophore.py
import numpy as np class Fluorophore: """A single fluorophore is specified by its 3D position, (unit) absorption dipole moment (theta, phi), and (unit) emission dipole moment (theta, phi). """ def __init__(self, position=np.array([0, 0, 0]), mu_abs=np.array([0, 0]), mu...
import numpy as np class Fluorophore: """A fluorophore is specified by its orientation (in theta and phi spherical coordinates), it distribution (using a kappa watson distribution), and a constant (c) proportional to the fluorohphore's brightness. """ def __init__(self, theta=np.pi/2, phi=0, kappa=...
Modify Fluorophore for more convenient coordinates.
Modify Fluorophore for more convenient coordinates.
Python
mit
talonchandler/dipsim,talonchandler/dipsim
import numpy as np class Fluorophore: """A single fluorophore is specified by its 3D position, (unit) absorption dipole moment (theta, phi), and (unit) emission dipole moment (theta, phi). """ def __init__(self, position=np.array([0, 0, 0]), mu_abs=np.array([0, 0]), mu...
import numpy as np class Fluorophore: """A fluorophore is specified by its orientation (in theta and phi spherical coordinates), it distribution (using a kappa watson distribution), and a constant (c) proportional to the fluorohphore's brightness. """ def __init__(self, theta=np.pi/2, phi=0, kappa=...
<commit_before>import numpy as np class Fluorophore: """A single fluorophore is specified by its 3D position, (unit) absorption dipole moment (theta, phi), and (unit) emission dipole moment (theta, phi). """ def __init__(self, position=np.array([0, 0, 0]), mu_abs=np.array([0, 0]), ...
import numpy as np class Fluorophore: """A fluorophore is specified by its orientation (in theta and phi spherical coordinates), it distribution (using a kappa watson distribution), and a constant (c) proportional to the fluorohphore's brightness. """ def __init__(self, theta=np.pi/2, phi=0, kappa=...
import numpy as np class Fluorophore: """A single fluorophore is specified by its 3D position, (unit) absorption dipole moment (theta, phi), and (unit) emission dipole moment (theta, phi). """ def __init__(self, position=np.array([0, 0, 0]), mu_abs=np.array([0, 0]), mu...
<commit_before>import numpy as np class Fluorophore: """A single fluorophore is specified by its 3D position, (unit) absorption dipole moment (theta, phi), and (unit) emission dipole moment (theta, phi). """ def __init__(self, position=np.array([0, 0, 0]), mu_abs=np.array([0, 0]), ...
79e5cab2908c26ff80ae5c5e4b37ced9765a952c
dbaas/physical/forms/database_infra.py
dbaas/physical/forms/database_infra.py
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals import logging from django import forms from .. import models log = logging.getLogger(__name__) class DatabaseInfraForm(forms.ModelForm): class Meta: model = models.DatabaseInfra def __init__(self, *args, **kwargs): ...
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals import logging from django import forms from .. import models log = logging.getLogger(__name__) class DatabaseInfraForm(forms.ModelForm): class Meta: model = models.DatabaseInfra def __init__(self, *args, **kwargs): ...
Fix database infra save method
Fix database infra save method
Python
bsd-3-clause
globocom/database-as-a-service,globocom/database-as-a-service,globocom/database-as-a-service,globocom/database-as-a-service
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals import logging from django import forms from .. import models log = logging.getLogger(__name__) class DatabaseInfraForm(forms.ModelForm): class Meta: model = models.DatabaseInfra def __init__(self, *args, **kwargs): ...
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals import logging from django import forms from .. import models log = logging.getLogger(__name__) class DatabaseInfraForm(forms.ModelForm): class Meta: model = models.DatabaseInfra def __init__(self, *args, **kwargs): ...
<commit_before># -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals import logging from django import forms from .. import models log = logging.getLogger(__name__) class DatabaseInfraForm(forms.ModelForm): class Meta: model = models.DatabaseInfra def __init__(self, *args...
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals import logging from django import forms from .. import models log = logging.getLogger(__name__) class DatabaseInfraForm(forms.ModelForm): class Meta: model = models.DatabaseInfra def __init__(self, *args, **kwargs): ...
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals import logging from django import forms from .. import models log = logging.getLogger(__name__) class DatabaseInfraForm(forms.ModelForm): class Meta: model = models.DatabaseInfra def __init__(self, *args, **kwargs): ...
<commit_before># -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals import logging from django import forms from .. import models log = logging.getLogger(__name__) class DatabaseInfraForm(forms.ModelForm): class Meta: model = models.DatabaseInfra def __init__(self, *args...
1e264b61d82b009778780926ca730b5dc990a635
scikits/image/analysis/__init__.py
scikits/image/analysis/__init__.py
from spath import shortest_path
try: from spath import shortest_path except ImportError: print """*** The shortest path extension has not been compiled. Run python setup.py build_ext -i in the source directory to build in-place. Please refer to INSTALL.txt for further detail."""
Allow importing even when not compiled.
spath: Allow importing even when not compiled.
Python
bsd-3-clause
youprofit/scikit-image,bsipocz/scikit-image,bennlich/scikit-image,WarrenWeckesser/scikits-image,ajaybhat/scikit-image,bennlich/scikit-image,paalge/scikit-image,chintak/scikit-image,rjeli/scikit-image,ofgulban/scikit-image,almarklein/scikit-image,pratapvardhan/scikit-image,rjeli/scikit-image,newville/scikit-image,vighne...
from spath import shortest_path spath: Allow importing even when not compiled.
try: from spath import shortest_path except ImportError: print """*** The shortest path extension has not been compiled. Run python setup.py build_ext -i in the source directory to build in-place. Please refer to INSTALL.txt for further detail."""
<commit_before>from spath import shortest_path <commit_msg>spath: Allow importing even when not compiled.<commit_after>
try: from spath import shortest_path except ImportError: print """*** The shortest path extension has not been compiled. Run python setup.py build_ext -i in the source directory to build in-place. Please refer to INSTALL.txt for further detail."""
from spath import shortest_path spath: Allow importing even when not compiled.try: from spath import shortest_path except ImportError: print """*** The shortest path extension has not been compiled. Run python setup.py build_ext -i in the source directory to build in-place. Please refer to INSTALL.txt for f...
<commit_before>from spath import shortest_path <commit_msg>spath: Allow importing even when not compiled.<commit_after>try: from spath import shortest_path except ImportError: print """*** The shortest path extension has not been compiled. Run python setup.py build_ext -i in the source directory to build in-...
ab20fb46cf1afb4b59d40a7bd8aba6a29cdebb64
eris/pydoc_color.py
eris/pydoc_color.py
#!/usr/bin/env python3.7 # Copyright (C) 2019 Andrew Hamilton. All rights reserved. # Licensed under the Artistic License 2.0. import pydoc import sys import eris.termstr class TermDoc(pydoc.TextDoc): def bold(self, text): return str(eris.termstr.TermStr(text).bold()) def main(): path = sys.arg...
#!/usr/bin/env python3.7 # Copyright (C) 2019 Andrew Hamilton. All rights reserved. # Licensed under the Artistic License 2.0. import pydoc import sys import eris.termstr class TermDoc(pydoc.TextDoc): def bold(self, text): return str(eris.termstr.TermStr(text).bold()) def main(): path = sys.arg...
Make pydoc quieter on error.
tools: Make pydoc quieter on error.
Python
artistic-2.0
ahamilton/vigil,ahamilton/vigil,ahamilton/vigil,ahamilton/vigil,ahamilton/vigil,ahamilton/vigil,ahamilton/vigil,ahamilton/vigil,ahamilton/vigil
#!/usr/bin/env python3.7 # Copyright (C) 2019 Andrew Hamilton. All rights reserved. # Licensed under the Artistic License 2.0. import pydoc import sys import eris.termstr class TermDoc(pydoc.TextDoc): def bold(self, text): return str(eris.termstr.TermStr(text).bold()) def main(): path = sys.arg...
#!/usr/bin/env python3.7 # Copyright (C) 2019 Andrew Hamilton. All rights reserved. # Licensed under the Artistic License 2.0. import pydoc import sys import eris.termstr class TermDoc(pydoc.TextDoc): def bold(self, text): return str(eris.termstr.TermStr(text).bold()) def main(): path = sys.arg...
<commit_before>#!/usr/bin/env python3.7 # Copyright (C) 2019 Andrew Hamilton. All rights reserved. # Licensed under the Artistic License 2.0. import pydoc import sys import eris.termstr class TermDoc(pydoc.TextDoc): def bold(self, text): return str(eris.termstr.TermStr(text).bold()) def main(): ...
#!/usr/bin/env python3.7 # Copyright (C) 2019 Andrew Hamilton. All rights reserved. # Licensed under the Artistic License 2.0. import pydoc import sys import eris.termstr class TermDoc(pydoc.TextDoc): def bold(self, text): return str(eris.termstr.TermStr(text).bold()) def main(): path = sys.arg...
#!/usr/bin/env python3.7 # Copyright (C) 2019 Andrew Hamilton. All rights reserved. # Licensed under the Artistic License 2.0. import pydoc import sys import eris.termstr class TermDoc(pydoc.TextDoc): def bold(self, text): return str(eris.termstr.TermStr(text).bold()) def main(): path = sys.arg...
<commit_before>#!/usr/bin/env python3.7 # Copyright (C) 2019 Andrew Hamilton. All rights reserved. # Licensed under the Artistic License 2.0. import pydoc import sys import eris.termstr class TermDoc(pydoc.TextDoc): def bold(self, text): return str(eris.termstr.TermStr(text).bold()) def main(): ...
3144fac7e9bc938f9eabc3f90fac6acdbaa89ab1
pollirio/reactors/markov.py
pollirio/reactors/markov.py
# -*- coding: utf-8 -*- from pollirio.reactors import expose from pollirio import conf, choose_dest import random def create_chains(lines): markov_chain = {} hasPrev = False for line in lines: for curword in line.split(): if curword != '': curword = curword.lower() ...
# -*- coding: utf-8 -*- from pollirio.reactors import expose from pollirio import conf, choose_dest import random def create_chains(lines): markov_chain = {} has_prev = False for line in lines: for cur_word in line.split(): if cur_word != '': cur_word = cur_word.lower(...
Fix bug in chain creation
Fix bug in chain creation
Python
mit
dpaleino/pollirio,dpaleino/pollirio
# -*- coding: utf-8 -*- from pollirio.reactors import expose from pollirio import conf, choose_dest import random def create_chains(lines): markov_chain = {} hasPrev = False for line in lines: for curword in line.split(): if curword != '': curword = curword.lower() ...
# -*- coding: utf-8 -*- from pollirio.reactors import expose from pollirio import conf, choose_dest import random def create_chains(lines): markov_chain = {} has_prev = False for line in lines: for cur_word in line.split(): if cur_word != '': cur_word = cur_word.lower(...
<commit_before># -*- coding: utf-8 -*- from pollirio.reactors import expose from pollirio import conf, choose_dest import random def create_chains(lines): markov_chain = {} hasPrev = False for line in lines: for curword in line.split(): if curword != '': curword = curw...
# -*- coding: utf-8 -*- from pollirio.reactors import expose from pollirio import conf, choose_dest import random def create_chains(lines): markov_chain = {} has_prev = False for line in lines: for cur_word in line.split(): if cur_word != '': cur_word = cur_word.lower(...
# -*- coding: utf-8 -*- from pollirio.reactors import expose from pollirio import conf, choose_dest import random def create_chains(lines): markov_chain = {} hasPrev = False for line in lines: for curword in line.split(): if curword != '': curword = curword.lower() ...
<commit_before># -*- coding: utf-8 -*- from pollirio.reactors import expose from pollirio import conf, choose_dest import random def create_chains(lines): markov_chain = {} hasPrev = False for line in lines: for curword in line.split(): if curword != '': curword = curw...
e9bfe96cb3463fe99f08305aab44bd3d7556825a
api/radar_api/serializers/group_users.py
api/radar_api/serializers/group_users.py
from radar_api.serializers.groups import GroupReferenceField from radar_api.serializers.meta import MetaSerializerMixin from radar_api.serializers.user_mixins import UserSerializerMixin from radar.models.groups import GroupUser from radar.roles import ROLE, ROLE_NAMES from radar.serializers.fields import ListField, Str...
from radar_api.serializers.groups import GroupReferenceField from radar_api.serializers.meta import MetaSerializerMixin from radar_api.serializers.user_mixins import UserSerializerMixin from radar.models.groups import GroupUser from radar.roles import ROLE, ROLE_NAMES from radar.serializers.fields import ListField, Str...
Add managed roles to serializer
Add managed roles to serializer
Python
agpl-3.0
renalreg/radar,renalreg/radar,renalreg/radar,renalreg/radar
from radar_api.serializers.groups import GroupReferenceField from radar_api.serializers.meta import MetaSerializerMixin from radar_api.serializers.user_mixins import UserSerializerMixin from radar.models.groups import GroupUser from radar.roles import ROLE, ROLE_NAMES from radar.serializers.fields import ListField, Str...
from radar_api.serializers.groups import GroupReferenceField from radar_api.serializers.meta import MetaSerializerMixin from radar_api.serializers.user_mixins import UserSerializerMixin from radar.models.groups import GroupUser from radar.roles import ROLE, ROLE_NAMES from radar.serializers.fields import ListField, Str...
<commit_before>from radar_api.serializers.groups import GroupReferenceField from radar_api.serializers.meta import MetaSerializerMixin from radar_api.serializers.user_mixins import UserSerializerMixin from radar.models.groups import GroupUser from radar.roles import ROLE, ROLE_NAMES from radar.serializers.fields import...
from radar_api.serializers.groups import GroupReferenceField from radar_api.serializers.meta import MetaSerializerMixin from radar_api.serializers.user_mixins import UserSerializerMixin from radar.models.groups import GroupUser from radar.roles import ROLE, ROLE_NAMES from radar.serializers.fields import ListField, Str...
from radar_api.serializers.groups import GroupReferenceField from radar_api.serializers.meta import MetaSerializerMixin from radar_api.serializers.user_mixins import UserSerializerMixin from radar.models.groups import GroupUser from radar.roles import ROLE, ROLE_NAMES from radar.serializers.fields import ListField, Str...
<commit_before>from radar_api.serializers.groups import GroupReferenceField from radar_api.serializers.meta import MetaSerializerMixin from radar_api.serializers.user_mixins import UserSerializerMixin from radar.models.groups import GroupUser from radar.roles import ROLE, ROLE_NAMES from radar.serializers.fields import...
8145f922aa5569f667252453c8509d9e116745f6
flake8diff/utils.py
flake8diff/utils.py
from __future__ import unicode_literals, print_function import logging import subprocess logger = logging.getLogger(__name__) def _execute(cmd, strict=False): """ Make executing a command locally a little less painful """ logger.debug("executing {0}".format(cmd)) process = subprocess.Popen(cmd, ...
from __future__ import unicode_literals, print_function import logging import subprocess logger = logging.getLogger(__name__) def _execute(cmd, strict=False, log_errors=True): """ Make executing a command locally a little less painful """ logger.debug("executing {0}".format(cmd)) process = subpr...
Add log_errors flag to _execute
Add log_errors flag to _execute
Python
mit
miki725/flake8-diff,dealertrack/flake8-diff
from __future__ import unicode_literals, print_function import logging import subprocess logger = logging.getLogger(__name__) def _execute(cmd, strict=False): """ Make executing a command locally a little less painful """ logger.debug("executing {0}".format(cmd)) process = subprocess.Popen(cmd, ...
from __future__ import unicode_literals, print_function import logging import subprocess logger = logging.getLogger(__name__) def _execute(cmd, strict=False, log_errors=True): """ Make executing a command locally a little less painful """ logger.debug("executing {0}".format(cmd)) process = subpr...
<commit_before>from __future__ import unicode_literals, print_function import logging import subprocess logger = logging.getLogger(__name__) def _execute(cmd, strict=False): """ Make executing a command locally a little less painful """ logger.debug("executing {0}".format(cmd)) process = subproc...
from __future__ import unicode_literals, print_function import logging import subprocess logger = logging.getLogger(__name__) def _execute(cmd, strict=False, log_errors=True): """ Make executing a command locally a little less painful """ logger.debug("executing {0}".format(cmd)) process = subpr...
from __future__ import unicode_literals, print_function import logging import subprocess logger = logging.getLogger(__name__) def _execute(cmd, strict=False): """ Make executing a command locally a little less painful """ logger.debug("executing {0}".format(cmd)) process = subprocess.Popen(cmd, ...
<commit_before>from __future__ import unicode_literals, print_function import logging import subprocess logger = logging.getLogger(__name__) def _execute(cmd, strict=False): """ Make executing a command locally a little less painful """ logger.debug("executing {0}".format(cmd)) process = subproc...
f01841e5b3fb9fe6a4f30b15dbf12146971d1b6f
flask_aggregator.py
flask_aggregator.py
import json from flask import request as current_request, Response from werkzeug.exceptions import BadRequest class Aggregator(object): def __init__(self, app=None, endpoint=None): self.url_map = {} self.endpoint = endpoint or "/aggregator" if app: self.init_app(app) def...
import json from flask import request, Request, Response from werkzeug.exceptions import BadRequest from werkzeug.test import EnvironBuilder class Aggregator(object): def __init__(self, app=None, endpoint=None): self.url_map = {} self.endpoint = endpoint or "/aggregator" if app: ...
Use app request context directly rather than hacking with a test client
Use app request context directly rather than hacking with a test client
Python
mit
ramnes/flask-aggregator
import json from flask import request as current_request, Response from werkzeug.exceptions import BadRequest class Aggregator(object): def __init__(self, app=None, endpoint=None): self.url_map = {} self.endpoint = endpoint or "/aggregator" if app: self.init_app(app) def...
import json from flask import request, Request, Response from werkzeug.exceptions import BadRequest from werkzeug.test import EnvironBuilder class Aggregator(object): def __init__(self, app=None, endpoint=None): self.url_map = {} self.endpoint = endpoint or "/aggregator" if app: ...
<commit_before>import json from flask import request as current_request, Response from werkzeug.exceptions import BadRequest class Aggregator(object): def __init__(self, app=None, endpoint=None): self.url_map = {} self.endpoint = endpoint or "/aggregator" if app: self.init_ap...
import json from flask import request, Request, Response from werkzeug.exceptions import BadRequest from werkzeug.test import EnvironBuilder class Aggregator(object): def __init__(self, app=None, endpoint=None): self.url_map = {} self.endpoint = endpoint or "/aggregator" if app: ...
import json from flask import request as current_request, Response from werkzeug.exceptions import BadRequest class Aggregator(object): def __init__(self, app=None, endpoint=None): self.url_map = {} self.endpoint = endpoint or "/aggregator" if app: self.init_app(app) def...
<commit_before>import json from flask import request as current_request, Response from werkzeug.exceptions import BadRequest class Aggregator(object): def __init__(self, app=None, endpoint=None): self.url_map = {} self.endpoint = endpoint or "/aggregator" if app: self.init_ap...
69baf68b436255eca71ec63578a2fdef4bc03165
books.py
books.py
import falcon class BooksResource: def on_get(self, req, resp): resp.status = falcon.HTTP_200 resp.body = open('/home/sanchopanca/Documents/thunder.txt').read() app = falcon.API() books = BooksResource() app.add_route('/books', books)
import falcon def get_paragraphs(pathname): result = [] with open(pathname) as f: for line in f.readlines(): if line != '\n': result.append(line[:-1]) return result class BooksResource: def on_get(self, req, resp): resp.status = falcon.HTTP_200 res...
Add function which divide text to paragraphs
Add function which divide text to paragraphs
Python
agpl-3.0
sanchopanca/reader,sanchopanca/reader
import falcon class BooksResource: def on_get(self, req, resp): resp.status = falcon.HTTP_200 resp.body = open('/home/sanchopanca/Documents/thunder.txt').read() app = falcon.API() books = BooksResource() app.add_route('/books', books) Add function which divide text to paragraphs
import falcon def get_paragraphs(pathname): result = [] with open(pathname) as f: for line in f.readlines(): if line != '\n': result.append(line[:-1]) return result class BooksResource: def on_get(self, req, resp): resp.status = falcon.HTTP_200 res...
<commit_before>import falcon class BooksResource: def on_get(self, req, resp): resp.status = falcon.HTTP_200 resp.body = open('/home/sanchopanca/Documents/thunder.txt').read() app = falcon.API() books = BooksResource() app.add_route('/books', books) <commit_msg>Add function which divide text t...
import falcon def get_paragraphs(pathname): result = [] with open(pathname) as f: for line in f.readlines(): if line != '\n': result.append(line[:-1]) return result class BooksResource: def on_get(self, req, resp): resp.status = falcon.HTTP_200 res...
import falcon class BooksResource: def on_get(self, req, resp): resp.status = falcon.HTTP_200 resp.body = open('/home/sanchopanca/Documents/thunder.txt').read() app = falcon.API() books = BooksResource() app.add_route('/books', books) Add function which divide text to paragraphsimport falcon ...
<commit_before>import falcon class BooksResource: def on_get(self, req, resp): resp.status = falcon.HTTP_200 resp.body = open('/home/sanchopanca/Documents/thunder.txt').read() app = falcon.API() books = BooksResource() app.add_route('/books', books) <commit_msg>Add function which divide text t...
5c8780c1f4ba914f20f0dc022cc26becb381f2f1
markymark/fields.py
markymark/fields.py
from django import forms from django.db import models from .widgets import MarkdownTextarea class MarkdownFormField(forms.fields.CharField): def __init__(self, *args, **kwargs): kwargs['widget'] = kwargs.pop('widget', MarkdownTextarea) super(MarkdownFormField, self).__init__(*args, **kwargs) cl...
from django import forms from django.db import models from .widgets import MarkdownTextarea class MarkdownFormField(forms.fields.CharField): def __init__(self, *args, **kwargs): kwargs['widget'] = MarkdownTextarea super(MarkdownFormField, self).__init__(*args, **kwargs) class MarkdownField(mode...
Revert "Allow widget overwriting on form field"
Revert "Allow widget overwriting on form field" This reverts commit 23a9aaae78cc4d9228f8d0705647fbcadcaf7975.
Python
mit
moccu/django-markymark,moccu/django-markymark,moccu/django-markymark
from django import forms from django.db import models from .widgets import MarkdownTextarea class MarkdownFormField(forms.fields.CharField): def __init__(self, *args, **kwargs): kwargs['widget'] = kwargs.pop('widget', MarkdownTextarea) super(MarkdownFormField, self).__init__(*args, **kwargs) cl...
from django import forms from django.db import models from .widgets import MarkdownTextarea class MarkdownFormField(forms.fields.CharField): def __init__(self, *args, **kwargs): kwargs['widget'] = MarkdownTextarea super(MarkdownFormField, self).__init__(*args, **kwargs) class MarkdownField(mode...
<commit_before>from django import forms from django.db import models from .widgets import MarkdownTextarea class MarkdownFormField(forms.fields.CharField): def __init__(self, *args, **kwargs): kwargs['widget'] = kwargs.pop('widget', MarkdownTextarea) super(MarkdownFormField, self).__init__(*args,...
from django import forms from django.db import models from .widgets import MarkdownTextarea class MarkdownFormField(forms.fields.CharField): def __init__(self, *args, **kwargs): kwargs['widget'] = MarkdownTextarea super(MarkdownFormField, self).__init__(*args, **kwargs) class MarkdownField(mode...
from django import forms from django.db import models from .widgets import MarkdownTextarea class MarkdownFormField(forms.fields.CharField): def __init__(self, *args, **kwargs): kwargs['widget'] = kwargs.pop('widget', MarkdownTextarea) super(MarkdownFormField, self).__init__(*args, **kwargs) cl...
<commit_before>from django import forms from django.db import models from .widgets import MarkdownTextarea class MarkdownFormField(forms.fields.CharField): def __init__(self, *args, **kwargs): kwargs['widget'] = kwargs.pop('widget', MarkdownTextarea) super(MarkdownFormField, self).__init__(*args,...
3330678d6474a876e2d18edce995bd82ba027472
gittools.py
gittools.py
import os import sha def gitsha(path): h = sha.sha() data = file(path).read() h.update("blob %d\0" % len(data)) h.update(data) return h.hexdigest() def git_info(): commithash = file('.git/HEAD').read().strip() if os.getuid() == os.stat(".git/index").st_uid: os.system('git-update-in...
import os import sha def gitsha(path): h = sha.sha() data = file(path).read() h.update("blob %d\0" % len(data)) h.update(data) return h.hexdigest() def git_info(): commithash = file('.git/HEAD').read().strip() if commithash.startswith("ref: "): commithash = file(commithash[5:]).rea...
Handle symbolic refs in .git/HEAD
OTHER: Handle symbolic refs in .git/HEAD
Python
lgpl-2.1
xmms2/xmms2-stable,dreamerc/xmms2,oneman/xmms2-oneman,xmms2/xmms2-stable,chrippa/xmms2,theefer/xmms2,oneman/xmms2-oneman-old,six600110/xmms2,mantaraya36/xmms2-mantaraya36,mantaraya36/xmms2-mantaraya36,mantaraya36/xmms2-mantaraya36,chrippa/xmms2,theeternalsw0rd/xmms2,krad-radio/xmms2-krad,theeternalsw0rd/xmms2,oneman/xm...
import os import sha def gitsha(path): h = sha.sha() data = file(path).read() h.update("blob %d\0" % len(data)) h.update(data) return h.hexdigest() def git_info(): commithash = file('.git/HEAD').read().strip() if os.getuid() == os.stat(".git/index").st_uid: os.system('git-update-in...
import os import sha def gitsha(path): h = sha.sha() data = file(path).read() h.update("blob %d\0" % len(data)) h.update(data) return h.hexdigest() def git_info(): commithash = file('.git/HEAD').read().strip() if commithash.startswith("ref: "): commithash = file(commithash[5:]).rea...
<commit_before>import os import sha def gitsha(path): h = sha.sha() data = file(path).read() h.update("blob %d\0" % len(data)) h.update(data) return h.hexdigest() def git_info(): commithash = file('.git/HEAD').read().strip() if os.getuid() == os.stat(".git/index").st_uid: os.system...
import os import sha def gitsha(path): h = sha.sha() data = file(path).read() h.update("blob %d\0" % len(data)) h.update(data) return h.hexdigest() def git_info(): commithash = file('.git/HEAD').read().strip() if commithash.startswith("ref: "): commithash = file(commithash[5:]).rea...
import os import sha def gitsha(path): h = sha.sha() data = file(path).read() h.update("blob %d\0" % len(data)) h.update(data) return h.hexdigest() def git_info(): commithash = file('.git/HEAD').read().strip() if os.getuid() == os.stat(".git/index").st_uid: os.system('git-update-in...
<commit_before>import os import sha def gitsha(path): h = sha.sha() data = file(path).read() h.update("blob %d\0" % len(data)) h.update(data) return h.hexdigest() def git_info(): commithash = file('.git/HEAD').read().strip() if os.getuid() == os.stat(".git/index").st_uid: os.system...
03671a01cb5ea359c22e954a8381bbfd30bce094
lc560_subarray_sum_equals_k.py
lc560_subarray_sum_equals_k.py
"""560. Subarray Sum Equals K Medium Given an array of integers and an integer k, you need to find the total number of continuous subarrays whose sum equals to k. Example 1: Input: nums = [1,1,1], k = 2 Output: 2 Note: The length of the array is in range [1, 20,000]. The range of numbers in the array is [-1000, 100...
"""560. Subarray Sum Equals K Medium Given an array of integers and an integer k, you need to find the total number of continuous subarrays whose sum equals to k. Example 1: Input: nums = [1,1,1], k = 2 Output: 2 Note: The length of the array is in range [1, 20,000]. The range of numbers in the array is [-1000, 100...
Complete naive solution by nested for loops
Complete naive solution by nested for loops
Python
bsd-2-clause
bowen0701/algorithms_data_structures
"""560. Subarray Sum Equals K Medium Given an array of integers and an integer k, you need to find the total number of continuous subarrays whose sum equals to k. Example 1: Input: nums = [1,1,1], k = 2 Output: 2 Note: The length of the array is in range [1, 20,000]. The range of numbers in the array is [-1000, 100...
"""560. Subarray Sum Equals K Medium Given an array of integers and an integer k, you need to find the total number of continuous subarrays whose sum equals to k. Example 1: Input: nums = [1,1,1], k = 2 Output: 2 Note: The length of the array is in range [1, 20,000]. The range of numbers in the array is [-1000, 100...
<commit_before>"""560. Subarray Sum Equals K Medium Given an array of integers and an integer k, you need to find the total number of continuous subarrays whose sum equals to k. Example 1: Input: nums = [1,1,1], k = 2 Output: 2 Note: The length of the array is in range [1, 20,000]. The range of numbers in the array...
"""560. Subarray Sum Equals K Medium Given an array of integers and an integer k, you need to find the total number of continuous subarrays whose sum equals to k. Example 1: Input: nums = [1,1,1], k = 2 Output: 2 Note: The length of the array is in range [1, 20,000]. The range of numbers in the array is [-1000, 100...
"""560. Subarray Sum Equals K Medium Given an array of integers and an integer k, you need to find the total number of continuous subarrays whose sum equals to k. Example 1: Input: nums = [1,1,1], k = 2 Output: 2 Note: The length of the array is in range [1, 20,000]. The range of numbers in the array is [-1000, 100...
<commit_before>"""560. Subarray Sum Equals K Medium Given an array of integers and an integer k, you need to find the total number of continuous subarrays whose sum equals to k. Example 1: Input: nums = [1,1,1], k = 2 Output: 2 Note: The length of the array is in range [1, 20,000]. The range of numbers in the array...
7bcd595429c18a38dfcb81e39cbf793dc969136f
mongoforms/utils.py
mongoforms/utils.py
from django import forms from mongoengine.base import ValidationError from bson.objectid import ObjectId def mongoengine_validate_wrapper(old_clean, new_clean): """ A wrapper function to validate formdata against mongoengine-field validator and raise a proper django.forms ValidationError if there are ...
from django import forms from mongoengine.base import ValidationError from bson.objectid import ObjectId def mongoengine_validate_wrapper(old_clean, new_clean): """ A wrapper function to validate formdata against mongoengine-field validator and raise a proper django.forms ValidationError if there are ...
Order MongoForm fields according to the Document
Order MongoForm fields according to the Document
Python
bsd-3-clause
pimentech/django-mongoforms,pimentech/django-mongoforms
from django import forms from mongoengine.base import ValidationError from bson.objectid import ObjectId def mongoengine_validate_wrapper(old_clean, new_clean): """ A wrapper function to validate formdata against mongoengine-field validator and raise a proper django.forms ValidationError if there are ...
from django import forms from mongoengine.base import ValidationError from bson.objectid import ObjectId def mongoengine_validate_wrapper(old_clean, new_clean): """ A wrapper function to validate formdata against mongoengine-field validator and raise a proper django.forms ValidationError if there are ...
<commit_before>from django import forms from mongoengine.base import ValidationError from bson.objectid import ObjectId def mongoengine_validate_wrapper(old_clean, new_clean): """ A wrapper function to validate formdata against mongoengine-field validator and raise a proper django.forms ValidationError if...
from django import forms from mongoengine.base import ValidationError from bson.objectid import ObjectId def mongoengine_validate_wrapper(old_clean, new_clean): """ A wrapper function to validate formdata against mongoengine-field validator and raise a proper django.forms ValidationError if there are ...
from django import forms from mongoengine.base import ValidationError from bson.objectid import ObjectId def mongoengine_validate_wrapper(old_clean, new_clean): """ A wrapper function to validate formdata against mongoengine-field validator and raise a proper django.forms ValidationError if there are ...
<commit_before>from django import forms from mongoengine.base import ValidationError from bson.objectid import ObjectId def mongoengine_validate_wrapper(old_clean, new_clean): """ A wrapper function to validate formdata against mongoengine-field validator and raise a proper django.forms ValidationError if...
8ae391d738e3982c9d52b970a653f0b67724dce5
integration/main.py
integration/main.py
from spec import skip, Spec, ok_ from fabric.connection import Connection class Main(Spec): def connection_open_generates_real_connection(self): c = Connection('localhost') c.open() ok_(c.client.get_transport().active) def simple_command_on_host(self): """ Run command...
from spec import skip, Spec, ok_ from fabric.connection import Connection class Main(Spec): def connection_open_generates_real_connection(self): c = Connection('localhost') c.open() ok_(c.client.get_transport().active) def simple_command_on_host(self): """ Run command...
Tweak old integration test docstring
Tweak old integration test docstring
Python
bsd-2-clause
fabric/fabric
from spec import skip, Spec, ok_ from fabric.connection import Connection class Main(Spec): def connection_open_generates_real_connection(self): c = Connection('localhost') c.open() ok_(c.client.get_transport().active) def simple_command_on_host(self): """ Run command...
from spec import skip, Spec, ok_ from fabric.connection import Connection class Main(Spec): def connection_open_generates_real_connection(self): c = Connection('localhost') c.open() ok_(c.client.get_transport().active) def simple_command_on_host(self): """ Run command...
<commit_before>from spec import skip, Spec, ok_ from fabric.connection import Connection class Main(Spec): def connection_open_generates_real_connection(self): c = Connection('localhost') c.open() ok_(c.client.get_transport().active) def simple_command_on_host(self): """ ...
from spec import skip, Spec, ok_ from fabric.connection import Connection class Main(Spec): def connection_open_generates_real_connection(self): c = Connection('localhost') c.open() ok_(c.client.get_transport().active) def simple_command_on_host(self): """ Run command...
from spec import skip, Spec, ok_ from fabric.connection import Connection class Main(Spec): def connection_open_generates_real_connection(self): c = Connection('localhost') c.open() ok_(c.client.get_transport().active) def simple_command_on_host(self): """ Run command...
<commit_before>from spec import skip, Spec, ok_ from fabric.connection import Connection class Main(Spec): def connection_open_generates_real_connection(self): c = Connection('localhost') c.open() ok_(c.client.get_transport().active) def simple_command_on_host(self): """ ...
434f6e7b920d50d08d2cd139b479d5017184a44a
packages/Python/lldbsuite/test/lang/swift/foundation_value_types/data/TestSwiftFoundationTypeData.py
packages/Python/lldbsuite/test/lang/swift/foundation_value_types/data/TestSwiftFoundationTypeData.py
# TestSwiftFoundationValueTypes.py # # This source file is part of the Swift.org open source project # # Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors # Licensed under Apache License v2.0 with Runtime Library Exception # # See https://swift.org/LICENSE.txt for license information # See https://swif...
# TestSwiftFoundationValueTypes.py # # This source file is part of the Swift.org open source project # # Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors # Licensed under Apache License v2.0 with Runtime Library Exception # # See https://swift.org/LICENSE.txt for license information # See https://swif...
Revert "Skip an x-failed test due to an unexpected assert"
Revert "Skip an x-failed test due to an unexpected assert" This reverts commit b04c3edb7a8bcb5265a1ea4265714dcb8d1b185a. (cherry picked from commit 76be04b7474d9a12d45256c3f31719e3b2ac425d)
Python
apache-2.0
apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb
# TestSwiftFoundationValueTypes.py # # This source file is part of the Swift.org open source project # # Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors # Licensed under Apache License v2.0 with Runtime Library Exception # # See https://swift.org/LICENSE.txt for license information # See https://swif...
# TestSwiftFoundationValueTypes.py # # This source file is part of the Swift.org open source project # # Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors # Licensed under Apache License v2.0 with Runtime Library Exception # # See https://swift.org/LICENSE.txt for license information # See https://swif...
<commit_before># TestSwiftFoundationValueTypes.py # # This source file is part of the Swift.org open source project # # Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors # Licensed under Apache License v2.0 with Runtime Library Exception # # See https://swift.org/LICENSE.txt for license information # S...
# TestSwiftFoundationValueTypes.py # # This source file is part of the Swift.org open source project # # Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors # Licensed under Apache License v2.0 with Runtime Library Exception # # See https://swift.org/LICENSE.txt for license information # See https://swif...
# TestSwiftFoundationValueTypes.py # # This source file is part of the Swift.org open source project # # Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors # Licensed under Apache License v2.0 with Runtime Library Exception # # See https://swift.org/LICENSE.txt for license information # See https://swif...
<commit_before># TestSwiftFoundationValueTypes.py # # This source file is part of the Swift.org open source project # # Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors # Licensed under Apache License v2.0 with Runtime Library Exception # # See https://swift.org/LICENSE.txt for license information # S...
1510bc44b8017771e60618d617cfefd4eaf32cde
addie/initialization/init_step1.py
addie/initialization/init_step1.py
from PyQt4 import QtGui from addie.step1_handler.step1_gui_handler import Step1GuiHandler class InitStep1(object): def __init__(self, parent=None): self.parent = parent self.parent.ui.diamond.setFocus(True) self.set_statusBar() self.set_title() def set_title(self...
from qtpy.QtWidgets import (QLabel) from addie.step1_handler.step1_gui_handler import Step1GuiHandler class InitStep1(object): def __init__(self, parent=None): self.parent = parent self.parent.ui.diamond.setFocus(True) self.set_statusBar() self.set_title() def set_title(self...
Convert from pyqt4 to qtpy
Convert from pyqt4 to qtpy
Python
mit
neutrons/FastGR,neutrons/FastGR,neutrons/FastGR
from PyQt4 import QtGui from addie.step1_handler.step1_gui_handler import Step1GuiHandler class InitStep1(object): def __init__(self, parent=None): self.parent = parent self.parent.ui.diamond.setFocus(True) self.set_statusBar() self.set_title() def set_title(self...
from qtpy.QtWidgets import (QLabel) from addie.step1_handler.step1_gui_handler import Step1GuiHandler class InitStep1(object): def __init__(self, parent=None): self.parent = parent self.parent.ui.diamond.setFocus(True) self.set_statusBar() self.set_title() def set_title(self...
<commit_before>from PyQt4 import QtGui from addie.step1_handler.step1_gui_handler import Step1GuiHandler class InitStep1(object): def __init__(self, parent=None): self.parent = parent self.parent.ui.diamond.setFocus(True) self.set_statusBar() self.set_title() def...
from qtpy.QtWidgets import (QLabel) from addie.step1_handler.step1_gui_handler import Step1GuiHandler class InitStep1(object): def __init__(self, parent=None): self.parent = parent self.parent.ui.diamond.setFocus(True) self.set_statusBar() self.set_title() def set_title(self...
from PyQt4 import QtGui from addie.step1_handler.step1_gui_handler import Step1GuiHandler class InitStep1(object): def __init__(self, parent=None): self.parent = parent self.parent.ui.diamond.setFocus(True) self.set_statusBar() self.set_title() def set_title(self...
<commit_before>from PyQt4 import QtGui from addie.step1_handler.step1_gui_handler import Step1GuiHandler class InitStep1(object): def __init__(self, parent=None): self.parent = parent self.parent.ui.diamond.setFocus(True) self.set_statusBar() self.set_title() def...
eef348f74a13f42780713aa9dfca9cc617fa52c8
neutron/callbacks/resources.py
neutron/callbacks/resources.py
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
Make the value of FLOATING_IP match with api resource
callbacks: Make the value of FLOATING_IP match with api resource Note: BEFORE_RESPONSE code assumes they match. Nova notifier uses FLOATING_IP/BEFORE_RESPONSE. Closes-Bug: #1642918 Change-Id: If834ca1ee52d538cae4a5d164e0e0343c7019546
Python
apache-2.0
openstack/neutron,mahak/neutron,huntxu/neutron,noironetworks/neutron,cloudbase/neutron,eayunstack/neutron,openstack/neutron,mahak/neutron,openstack/neutron,eayunstack/neutron,huntxu/neutron,mahak/neutron,noironetworks/neutron,cloudbase/neutron
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
<commit_before># Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
<commit_before># Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
a373234ad9ce2c0e5b2c9917e50a2b9d97293674
dsub/_dsub_version.py
dsub/_dsub_version.py
# Copyright 2017 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
# Copyright 2017 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
Update dsub version to 0.3.11.dev0
Update dsub version to 0.3.11.dev0 PiperOrigin-RevId: 324910070
Python
apache-2.0
DataBiosphere/dsub,DataBiosphere/dsub
# Copyright 2017 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
# Copyright 2017 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
<commit_before># Copyright 2017 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
# Copyright 2017 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
# Copyright 2017 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
<commit_before># Copyright 2017 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
2aa41403436a1629d3d0f8c83b51f685f7b0f421
main/remote_exe.py
main/remote_exe.py
#!/usr/bin/python import shlex, os from subprocess import Popen, PIPE #from time import sleep import threading def exe_cmd(log_name, command_line): args = shlex.split(command_line) log_dir=os.path.join(os.getcwd(),"..", "log") if not os.path.isdir(log_dir): os.mkdir(log_dir) file_name= os.path....
#!/usr/bin/python import shlex, os from subprocess import Popen, PIPE #from time import sleep import threading def exe_cmd(log_name, command_line): args = shlex.split(command_line) log_dir=os.path.join(os.path.dirname(__file__),"..", "log") if not os.path.isdir(log_dir): os.mkdir(log_dir) file_...
Fix bug: log dir path: set it thru file location, not current working path
Fix bug: log dir path: set it thru file location, not current working path
Python
mit
trelay/multi-executor
#!/usr/bin/python import shlex, os from subprocess import Popen, PIPE #from time import sleep import threading def exe_cmd(log_name, command_line): args = shlex.split(command_line) log_dir=os.path.join(os.getcwd(),"..", "log") if not os.path.isdir(log_dir): os.mkdir(log_dir) file_name= os.path....
#!/usr/bin/python import shlex, os from subprocess import Popen, PIPE #from time import sleep import threading def exe_cmd(log_name, command_line): args = shlex.split(command_line) log_dir=os.path.join(os.path.dirname(__file__),"..", "log") if not os.path.isdir(log_dir): os.mkdir(log_dir) file_...
<commit_before>#!/usr/bin/python import shlex, os from subprocess import Popen, PIPE #from time import sleep import threading def exe_cmd(log_name, command_line): args = shlex.split(command_line) log_dir=os.path.join(os.getcwd(),"..", "log") if not os.path.isdir(log_dir): os.mkdir(log_dir) file...
#!/usr/bin/python import shlex, os from subprocess import Popen, PIPE #from time import sleep import threading def exe_cmd(log_name, command_line): args = shlex.split(command_line) log_dir=os.path.join(os.path.dirname(__file__),"..", "log") if not os.path.isdir(log_dir): os.mkdir(log_dir) file_...
#!/usr/bin/python import shlex, os from subprocess import Popen, PIPE #from time import sleep import threading def exe_cmd(log_name, command_line): args = shlex.split(command_line) log_dir=os.path.join(os.getcwd(),"..", "log") if not os.path.isdir(log_dir): os.mkdir(log_dir) file_name= os.path....
<commit_before>#!/usr/bin/python import shlex, os from subprocess import Popen, PIPE #from time import sleep import threading def exe_cmd(log_name, command_line): args = shlex.split(command_line) log_dir=os.path.join(os.getcwd(),"..", "log") if not os.path.isdir(log_dir): os.mkdir(log_dir) file...
02454937b500afe1dc9b7387e63f9b3327be6a16
contrail_provisioning/config/templates/contrail_discovery_conf.py
contrail_provisioning/config/templates/contrail_discovery_conf.py
import string template = string.Template(""" [DEFAULTS] zk_server_ip=$__contrail_zk_server_ip__ zk_server_port=$__contrail_zk_server_port__ listen_ip_addr=$__contrail_listen_ip_addr__ listen_port=$__contrail_listen_port__ log_local=$__contrail_log_local__ log_file=$__contrail_log_file__ cassandra_server_list=$__contra...
import string template = string.Template(""" [DEFAULTS] zk_server_ip=$__contrail_zk_server_ip__ zk_server_port=$__contrail_zk_server_port__ listen_ip_addr=$__contrail_listen_ip_addr__ listen_port=$__contrail_listen_port__ log_local=$__contrail_log_local__ log_file=$__contrail_log_file__ cassandra_server_list=$__contra...
Enable consistent-hashing policy for Collector
Enable consistent-hashing policy for Collector Change-Id: I7ed6747b6c3ef95d8fed0c62e786c7039fb510a6 Fixes-Bug: #1600368
Python
apache-2.0
Juniper/contrail-provisioning,Juniper/contrail-provisioning
import string template = string.Template(""" [DEFAULTS] zk_server_ip=$__contrail_zk_server_ip__ zk_server_port=$__contrail_zk_server_port__ listen_ip_addr=$__contrail_listen_ip_addr__ listen_port=$__contrail_listen_port__ log_local=$__contrail_log_local__ log_file=$__contrail_log_file__ cassandra_server_list=$__contra...
import string template = string.Template(""" [DEFAULTS] zk_server_ip=$__contrail_zk_server_ip__ zk_server_port=$__contrail_zk_server_port__ listen_ip_addr=$__contrail_listen_ip_addr__ listen_port=$__contrail_listen_port__ log_local=$__contrail_log_local__ log_file=$__contrail_log_file__ cassandra_server_list=$__contra...
<commit_before>import string template = string.Template(""" [DEFAULTS] zk_server_ip=$__contrail_zk_server_ip__ zk_server_port=$__contrail_zk_server_port__ listen_ip_addr=$__contrail_listen_ip_addr__ listen_port=$__contrail_listen_port__ log_local=$__contrail_log_local__ log_file=$__contrail_log_file__ cassandra_server...
import string template = string.Template(""" [DEFAULTS] zk_server_ip=$__contrail_zk_server_ip__ zk_server_port=$__contrail_zk_server_port__ listen_ip_addr=$__contrail_listen_ip_addr__ listen_port=$__contrail_listen_port__ log_local=$__contrail_log_local__ log_file=$__contrail_log_file__ cassandra_server_list=$__contra...
import string template = string.Template(""" [DEFAULTS] zk_server_ip=$__contrail_zk_server_ip__ zk_server_port=$__contrail_zk_server_port__ listen_ip_addr=$__contrail_listen_ip_addr__ listen_port=$__contrail_listen_port__ log_local=$__contrail_log_local__ log_file=$__contrail_log_file__ cassandra_server_list=$__contra...
<commit_before>import string template = string.Template(""" [DEFAULTS] zk_server_ip=$__contrail_zk_server_ip__ zk_server_port=$__contrail_zk_server_port__ listen_ip_addr=$__contrail_listen_ip_addr__ listen_port=$__contrail_listen_port__ log_local=$__contrail_log_local__ log_file=$__contrail_log_file__ cassandra_server...
93dd1ad89d030e626c5692954c38526c9b851fd8
salt/matchers/list_match.py
salt/matchers/list_match.py
# -*- coding: utf-8 -*- ''' This is the default list matcher. ''' from __future__ import absolute_import, print_function, unicode_literals import logging log = logging.getLogger(__name__) def match(tgt): ''' Determines if this host is on the list ''' try: if ',' + __opts__['id'] + ',' in tgt ...
# -*- coding: utf-8 -*- ''' This is the default list matcher. ''' from __future__ import absolute_import, print_function, unicode_literals import logging log = logging.getLogger(__name__) def match(tgt): ''' Determines if this host is on the list ''' try: if ',' + __opts__['id'] + ',' in tgt ...
Add target to the warning log message
Add target to the warning log message
Python
apache-2.0
saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt
# -*- coding: utf-8 -*- ''' This is the default list matcher. ''' from __future__ import absolute_import, print_function, unicode_literals import logging log = logging.getLogger(__name__) def match(tgt): ''' Determines if this host is on the list ''' try: if ',' + __opts__['id'] + ',' in tgt ...
# -*- coding: utf-8 -*- ''' This is the default list matcher. ''' from __future__ import absolute_import, print_function, unicode_literals import logging log = logging.getLogger(__name__) def match(tgt): ''' Determines if this host is on the list ''' try: if ',' + __opts__['id'] + ',' in tgt ...
<commit_before># -*- coding: utf-8 -*- ''' This is the default list matcher. ''' from __future__ import absolute_import, print_function, unicode_literals import logging log = logging.getLogger(__name__) def match(tgt): ''' Determines if this host is on the list ''' try: if ',' + __opts__['id'...
# -*- coding: utf-8 -*- ''' This is the default list matcher. ''' from __future__ import absolute_import, print_function, unicode_literals import logging log = logging.getLogger(__name__) def match(tgt): ''' Determines if this host is on the list ''' try: if ',' + __opts__['id'] + ',' in tgt ...
# -*- coding: utf-8 -*- ''' This is the default list matcher. ''' from __future__ import absolute_import, print_function, unicode_literals import logging log = logging.getLogger(__name__) def match(tgt): ''' Determines if this host is on the list ''' try: if ',' + __opts__['id'] + ',' in tgt ...
<commit_before># -*- coding: utf-8 -*- ''' This is the default list matcher. ''' from __future__ import absolute_import, print_function, unicode_literals import logging log = logging.getLogger(__name__) def match(tgt): ''' Determines if this host is on the list ''' try: if ',' + __opts__['id'...
32c40710a562b194385f2340bf882cb3709b74e3
masquerade/urls.py
masquerade/urls.py
from django.conf.urls import patterns, url urlpatterns = patterns('', url(r'^mask/$', 'masquerade.views.mask'), url(r'^unmask/$', 'masquerade.views.unmask'), )
from django.conf.urls import patterns, url from masquerade.views import mask from masquerade.views import unmask urlpatterns = [ url(r'^mask/$', mask), url(r'^unmask/$', unmask), ]
Fix Django 1.10 deprecation warning
Fix Django 1.10 deprecation warning
Python
apache-2.0
erikcw/django-masquerade,erikcw/django-masquerade,erikcw/django-masquerade
from django.conf.urls import patterns, url urlpatterns = patterns('', url(r'^mask/$', 'masquerade.views.mask'), url(r'^unmask/$', 'masquerade.views.unmask'), ) Fix Django 1.10 deprecation warning
from django.conf.urls import patterns, url from masquerade.views import mask from masquerade.views import unmask urlpatterns = [ url(r'^mask/$', mask), url(r'^unmask/$', unmask), ]
<commit_before>from django.conf.urls import patterns, url urlpatterns = patterns('', url(r'^mask/$', 'masquerade.views.mask'), url(r'^unmask/$', 'masquerade.views.unmask'), ) <commit_msg>Fix Django 1.10 deprecation warning<commit_after>
from django.conf.urls import patterns, url from masquerade.views import mask from masquerade.views import unmask urlpatterns = [ url(r'^mask/$', mask), url(r'^unmask/$', unmask), ]
from django.conf.urls import patterns, url urlpatterns = patterns('', url(r'^mask/$', 'masquerade.views.mask'), url(r'^unmask/$', 'masquerade.views.unmask'), ) Fix Django 1.10 deprecation warningfrom django.conf.urls import patterns, url from masquerade.views import mask from masquerade.views import unmask ...
<commit_before>from django.conf.urls import patterns, url urlpatterns = patterns('', url(r'^mask/$', 'masquerade.views.mask'), url(r'^unmask/$', 'masquerade.views.unmask'), ) <commit_msg>Fix Django 1.10 deprecation warning<commit_after>from django.conf.urls import patterns, url from masquerade.views import ma...
69304be6df25ba2db53985b3d1e2e66954b7d655
genes/lib/traits.py
genes/lib/traits.py
from functools import wraps def if_any(*conds): def wrapper(func): @wraps def run_if_any(*args, **kwargs): if any(conds): return func(*args, **kwargs) return run_if_any return wrapper def if_all(*conds): def wrapper(func): @wraps de...
from functools import wraps def if_any(*conds): def wrapper(func): @wraps(func) def run_if_any(*args, **kwargs): if any(conds): return func(*args, **kwargs) return run_if_any return wrapper def if_all(*conds): def wrapper(func): @wraps(func...
Add argument to @wraps decorator
Add argument to @wraps decorator
Python
mit
hatchery/Genepool2,hatchery/genepool
from functools import wraps def if_any(*conds): def wrapper(func): @wraps def run_if_any(*args, **kwargs): if any(conds): return func(*args, **kwargs) return run_if_any return wrapper def if_all(*conds): def wrapper(func): @wraps de...
from functools import wraps def if_any(*conds): def wrapper(func): @wraps(func) def run_if_any(*args, **kwargs): if any(conds): return func(*args, **kwargs) return run_if_any return wrapper def if_all(*conds): def wrapper(func): @wraps(func...
<commit_before>from functools import wraps def if_any(*conds): def wrapper(func): @wraps def run_if_any(*args, **kwargs): if any(conds): return func(*args, **kwargs) return run_if_any return wrapper def if_all(*conds): def wrapper(func): @w...
from functools import wraps def if_any(*conds): def wrapper(func): @wraps(func) def run_if_any(*args, **kwargs): if any(conds): return func(*args, **kwargs) return run_if_any return wrapper def if_all(*conds): def wrapper(func): @wraps(func...
from functools import wraps def if_any(*conds): def wrapper(func): @wraps def run_if_any(*args, **kwargs): if any(conds): return func(*args, **kwargs) return run_if_any return wrapper def if_all(*conds): def wrapper(func): @wraps de...
<commit_before>from functools import wraps def if_any(*conds): def wrapper(func): @wraps def run_if_any(*args, **kwargs): if any(conds): return func(*args, **kwargs) return run_if_any return wrapper def if_all(*conds): def wrapper(func): @w...
76244d9a9750d1e095884b3a453caffa6d1ef3c4
main/views/views.py
main/views/views.py
from django.shortcuts import render from main.models import UserProfile, Transaction, Task, Service from django.db.models import Avg def index(request): users = UserProfile.objects.all() return render(request, 'main/index.html', { 'users_top_spend': sorted(users, key=lambda a: a.spend(), reverse=True)...
from django.shortcuts import render from main.models import UserProfile, Transaction, Task, Service from django.db.models import Avg from voting.models import Vote def index(request): users = UserProfile.objects.all() tasks_last = Task.objects.filter(status=True).order_by('-timestamp_create')[:10] votes ...
Hide last task and services with negative score from main page
Hide last task and services with negative score from main page
Python
agpl-3.0
Davidyuk/witcoin,Davidyuk/witcoin
from django.shortcuts import render from main.models import UserProfile, Transaction, Task, Service from django.db.models import Avg def index(request): users = UserProfile.objects.all() return render(request, 'main/index.html', { 'users_top_spend': sorted(users, key=lambda a: a.spend(), reverse=True)...
from django.shortcuts import render from main.models import UserProfile, Transaction, Task, Service from django.db.models import Avg from voting.models import Vote def index(request): users = UserProfile.objects.all() tasks_last = Task.objects.filter(status=True).order_by('-timestamp_create')[:10] votes ...
<commit_before>from django.shortcuts import render from main.models import UserProfile, Transaction, Task, Service from django.db.models import Avg def index(request): users = UserProfile.objects.all() return render(request, 'main/index.html', { 'users_top_spend': sorted(users, key=lambda a: a.spend()...
from django.shortcuts import render from main.models import UserProfile, Transaction, Task, Service from django.db.models import Avg from voting.models import Vote def index(request): users = UserProfile.objects.all() tasks_last = Task.objects.filter(status=True).order_by('-timestamp_create')[:10] votes ...
from django.shortcuts import render from main.models import UserProfile, Transaction, Task, Service from django.db.models import Avg def index(request): users = UserProfile.objects.all() return render(request, 'main/index.html', { 'users_top_spend': sorted(users, key=lambda a: a.spend(), reverse=True)...
<commit_before>from django.shortcuts import render from main.models import UserProfile, Transaction, Task, Service from django.db.models import Avg def index(request): users = UserProfile.objects.all() return render(request, 'main/index.html', { 'users_top_spend': sorted(users, key=lambda a: a.spend()...
cb3312419f20b10d92cff4ec06606a2b7ee91950
metaopt/__init__.py
metaopt/__init__.py
# -*- coding:utf-8 -*- """ Root package of MetaOpt. """ __author__ = 'Renke Grunwald, Bengt Lüers, Jendrik Poloczek' __author_email__ = '[email protected]' __license__ = '3-Clause BSD' #__maintainer__ = "first last" #__maintainer_email__ = "[email protected]" __url__ = 'http://organic-es.tumblr.com/' __version__ = ...
# -*- coding:utf-8 -*- """ Root package of MetaOpt. """ __author__ = 'Renke Grunwald, Bengt Lüers, Jendrik Poloczek, Justin Heinermann' __author_email__ = '[email protected]' __license__ = '3-Clause BSD' # __maintainer__ = "first last" # __maintainer_email__ = "[email protected]" __url__ = 'http://organic-es.tumblr...
Add Justin to authors, fix comments
Add Justin to authors, fix comments
Python
bsd-3-clause
cigroup-ol/metaopt,cigroup-ol/metaopt,cigroup-ol/metaopt
# -*- coding:utf-8 -*- """ Root package of MetaOpt. """ __author__ = 'Renke Grunwald, Bengt Lüers, Jendrik Poloczek' __author_email__ = '[email protected]' __license__ = '3-Clause BSD' #__maintainer__ = "first last" #__maintainer_email__ = "[email protected]" __url__ = 'http://organic-es.tumblr.com/' __version__ = ...
# -*- coding:utf-8 -*- """ Root package of MetaOpt. """ __author__ = 'Renke Grunwald, Bengt Lüers, Jendrik Poloczek, Justin Heinermann' __author_email__ = '[email protected]' __license__ = '3-Clause BSD' # __maintainer__ = "first last" # __maintainer_email__ = "[email protected]" __url__ = 'http://organic-es.tumblr...
<commit_before># -*- coding:utf-8 -*- """ Root package of MetaOpt. """ __author__ = 'Renke Grunwald, Bengt Lüers, Jendrik Poloczek' __author_email__ = '[email protected]' __license__ = '3-Clause BSD' #__maintainer__ = "first last" #__maintainer_email__ = "[email protected]" __url__ = 'http://organic-es.tumblr.com/'...
# -*- coding:utf-8 -*- """ Root package of MetaOpt. """ __author__ = 'Renke Grunwald, Bengt Lüers, Jendrik Poloczek, Justin Heinermann' __author_email__ = '[email protected]' __license__ = '3-Clause BSD' # __maintainer__ = "first last" # __maintainer_email__ = "[email protected]" __url__ = 'http://organic-es.tumblr...
# -*- coding:utf-8 -*- """ Root package of MetaOpt. """ __author__ = 'Renke Grunwald, Bengt Lüers, Jendrik Poloczek' __author_email__ = '[email protected]' __license__ = '3-Clause BSD' #__maintainer__ = "first last" #__maintainer_email__ = "[email protected]" __url__ = 'http://organic-es.tumblr.com/' __version__ = ...
<commit_before># -*- coding:utf-8 -*- """ Root package of MetaOpt. """ __author__ = 'Renke Grunwald, Bengt Lüers, Jendrik Poloczek' __author_email__ = '[email protected]' __license__ = '3-Clause BSD' #__maintainer__ = "first last" #__maintainer_email__ = "[email protected]" __url__ = 'http://organic-es.tumblr.com/'...
a09cf17583ca558d3e4c77a1682ed01c223f182d
ceph_deploy/util/arg_validators.py
ceph_deploy/util/arg_validators.py
import socket import argparse import re class RegexMatch(object): """ Performs regular expression match on value. If the regular expression pattern matches it will it will return an error message that will work with argparse. """ def __init__(self, pattern, statement=None): self.strin...
import socket import argparse import re class RegexMatch(object): """ Performs regular expression match on value. If the regular expression pattern matches it will it will return an error message that will work with argparse. """ def __init__(self, pattern, statement=None): self.strin...
Support hostname that resolve to IPv6-only address
Support hostname that resolve to IPv6-only address The current hostname validation does not cope with IPv6-only hostnames. Use getaddrinfo instead of gethostbyname to fix this. getaddrinfo raises the same exceptions and should work like a drop-in-replacement in this scenario. We should also address the IPv4-only ch...
Python
mit
rtulke/ceph-deploy,ceph/ceph-deploy,codenrhoden/ceph-deploy,imzhulei/ceph-deploy,codenrhoden/ceph-deploy,isyippee/ceph-deploy,alfredodeza/ceph-deploy,ktdreyer/ceph-deploy,branto1/ceph-deploy,SUSE/ceph-deploy,zhouyuan/ceph-deploy,Vicente-Cheng/ceph-deploy,trhoden/ceph-deploy,ceph/ceph-deploy,branto1/ceph-deploy,zhouyuan...
import socket import argparse import re class RegexMatch(object): """ Performs regular expression match on value. If the regular expression pattern matches it will it will return an error message that will work with argparse. """ def __init__(self, pattern, statement=None): self.strin...
import socket import argparse import re class RegexMatch(object): """ Performs regular expression match on value. If the regular expression pattern matches it will it will return an error message that will work with argparse. """ def __init__(self, pattern, statement=None): self.strin...
<commit_before>import socket import argparse import re class RegexMatch(object): """ Performs regular expression match on value. If the regular expression pattern matches it will it will return an error message that will work with argparse. """ def __init__(self, pattern, statement=None): ...
import socket import argparse import re class RegexMatch(object): """ Performs regular expression match on value. If the regular expression pattern matches it will it will return an error message that will work with argparse. """ def __init__(self, pattern, statement=None): self.strin...
import socket import argparse import re class RegexMatch(object): """ Performs regular expression match on value. If the regular expression pattern matches it will it will return an error message that will work with argparse. """ def __init__(self, pattern, statement=None): self.strin...
<commit_before>import socket import argparse import re class RegexMatch(object): """ Performs regular expression match on value. If the regular expression pattern matches it will it will return an error message that will work with argparse. """ def __init__(self, pattern, statement=None): ...
c082edf34a51fd0e587a8fbc7bcf4cf18838462d
modules/libmagic.py
modules/libmagic.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/. from __future__ import division, absolute_import, with_statement, print_function, unicode_literals try: import m...
# 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 __future__ import division, absolute_import, with_statement, print_function, unicode_literals try: import m...
Fix for python 2.6 support
Fix for python 2.6 support
Python
mpl-2.0
jmlong1027/multiscanner,jmlong1027/multiscanner,jmlong1027/multiscanner,mitre/multiscanner,MITRECND/multiscanner,MITRECND/multiscanner,awest1339/multiscanner,mitre/multiscanner,awest1339/multiscanner,jmlong1027/multiscanner,awest1339/multiscanner,mitre/multiscanner,awest1339/multiscanner
# 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 __future__ import division, absolute_import, with_statement, print_function, unicode_literals try: import m...
# 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 __future__ import division, absolute_import, with_statement, print_function, unicode_literals try: import m...
<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/. from __future__ import division, absolute_import, with_statement, print_function, unicode_literals try...
# 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 __future__ import division, absolute_import, with_statement, print_function, unicode_literals try: import m...
# 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 __future__ import division, absolute_import, with_statement, print_function, unicode_literals try: import m...
<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/. from __future__ import division, absolute_import, with_statement, print_function, unicode_literals try...
5afd5ee8a7ff1b0a6720b57605140ec279da123f
delivercute/production_settings.py
delivercute/production_settings.py
"""Overwrite and add settings specifically for production deployed instance.""" from delivercute.settings import * # DEBUG = False ALLOWED_HOSTS.append('.us-west-2.compute.amazonaws.com') STATIC_ROOT = os.path.join(BASE_DIR, 'static') STATICFILES_DIRS = ()
"""Overwrite and add settings specifically for production deployed instance.""" from delivercute.settings import * DEBUG = False ALLOWED_HOSTS.append('.us-west-2.compute.amazonaws.com') STATIC_ROOT = os.path.join(BASE_DIR, 'static') STATICFILES_DIRS = ()
Debug off for production settings.
Debug off for production settings.
Python
mit
WillWeatherford/deliver-cute,WillWeatherford/deliver-cute
"""Overwrite and add settings specifically for production deployed instance.""" from delivercute.settings import * # DEBUG = False ALLOWED_HOSTS.append('.us-west-2.compute.amazonaws.com') STATIC_ROOT = os.path.join(BASE_DIR, 'static') STATICFILES_DIRS = () Debug off for production settings.
"""Overwrite and add settings specifically for production deployed instance.""" from delivercute.settings import * DEBUG = False ALLOWED_HOSTS.append('.us-west-2.compute.amazonaws.com') STATIC_ROOT = os.path.join(BASE_DIR, 'static') STATICFILES_DIRS = ()
<commit_before>"""Overwrite and add settings specifically for production deployed instance.""" from delivercute.settings import * # DEBUG = False ALLOWED_HOSTS.append('.us-west-2.compute.amazonaws.com') STATIC_ROOT = os.path.join(BASE_DIR, 'static') STATICFILES_DIRS = () <commit_msg>Debug off for production settings.<...
"""Overwrite and add settings specifically for production deployed instance.""" from delivercute.settings import * DEBUG = False ALLOWED_HOSTS.append('.us-west-2.compute.amazonaws.com') STATIC_ROOT = os.path.join(BASE_DIR, 'static') STATICFILES_DIRS = ()
"""Overwrite and add settings specifically for production deployed instance.""" from delivercute.settings import * # DEBUG = False ALLOWED_HOSTS.append('.us-west-2.compute.amazonaws.com') STATIC_ROOT = os.path.join(BASE_DIR, 'static') STATICFILES_DIRS = () Debug off for production settings."""Overwrite and add setting...
<commit_before>"""Overwrite and add settings specifically for production deployed instance.""" from delivercute.settings import * # DEBUG = False ALLOWED_HOSTS.append('.us-west-2.compute.amazonaws.com') STATIC_ROOT = os.path.join(BASE_DIR, 'static') STATICFILES_DIRS = () <commit_msg>Debug off for production settings.<...
d9cf7b736416f942a7bb9c164d99fdb3b4de1b08
leapday/templatetags/leapday_extras.py
leapday/templatetags/leapday_extras.py
''' James D. Zoll 4/15/2013 Purpose: Defines template tags for the Leapday Recipedia application. License: This is a public work. ''' from django import template register = template.Library() @register.filter() def good_css_name(value): ''' Returns the lower-case hyphen-replaced display name, which us...
''' James D. Zoll 4/15/2013 Purpose: Defines template tags for the Leapday Recipedia application. License: This is a public work. ''' from django import template register = template.Library() @register.filter() def good_css_name(value): ''' Returns the lower-case hyphen-replaced display name, which us...
Fix reordering due to removal of Other
Fix reordering due to removal of Other
Python
mit
Zerack/zoll.me,Zerack/zoll.me
''' James D. Zoll 4/15/2013 Purpose: Defines template tags for the Leapday Recipedia application. License: This is a public work. ''' from django import template register = template.Library() @register.filter() def good_css_name(value): ''' Returns the lower-case hyphen-replaced display name, which us...
''' James D. Zoll 4/15/2013 Purpose: Defines template tags for the Leapday Recipedia application. License: This is a public work. ''' from django import template register = template.Library() @register.filter() def good_css_name(value): ''' Returns the lower-case hyphen-replaced display name, which us...
<commit_before>''' James D. Zoll 4/15/2013 Purpose: Defines template tags for the Leapday Recipedia application. License: This is a public work. ''' from django import template register = template.Library() @register.filter() def good_css_name(value): ''' Returns the lower-case hyphen-replaced display nam...
''' James D. Zoll 4/15/2013 Purpose: Defines template tags for the Leapday Recipedia application. License: This is a public work. ''' from django import template register = template.Library() @register.filter() def good_css_name(value): ''' Returns the lower-case hyphen-replaced display name, which us...
''' James D. Zoll 4/15/2013 Purpose: Defines template tags for the Leapday Recipedia application. License: This is a public work. ''' from django import template register = template.Library() @register.filter() def good_css_name(value): ''' Returns the lower-case hyphen-replaced display name, which us...
<commit_before>''' James D. Zoll 4/15/2013 Purpose: Defines template tags for the Leapday Recipedia application. License: This is a public work. ''' from django import template register = template.Library() @register.filter() def good_css_name(value): ''' Returns the lower-case hyphen-replaced display nam...
bc50210afc3cfb43441fe431e34e04db612f87c7
importkit/yaml/schema.py
importkit/yaml/schema.py
import subprocess class YamlValidationError(Exception): pass class Base(object): schema_file = '' @classmethod def validate(cls, filename): kwalify = subprocess.Popen(['kwalify', '-lf', cls.schema_file, filename], stdout=subprocess.PIPE, ...
import subprocess class YamlValidationError(Exception): pass class Base(object): schema_file = '' @classmethod def validate(cls, meta): if 'marshalled' in meta and meta['marshalled']: return cls.validatefile(meta['filename']) @classmethod def validatefile(cls, filenam...
Implement YAML file compilation into 'bytecode'
import: Implement YAML file compilation into 'bytecode' Store serialized Python structures resulted from loading YAML source in the .ymlc files, a-la .pyc
Python
mit
sprymix/importkit
import subprocess class YamlValidationError(Exception): pass class Base(object): schema_file = '' @classmethod def validate(cls, filename): kwalify = subprocess.Popen(['kwalify', '-lf', cls.schema_file, filename], stdout=subprocess.PIPE, ...
import subprocess class YamlValidationError(Exception): pass class Base(object): schema_file = '' @classmethod def validate(cls, meta): if 'marshalled' in meta and meta['marshalled']: return cls.validatefile(meta['filename']) @classmethod def validatefile(cls, filenam...
<commit_before>import subprocess class YamlValidationError(Exception): pass class Base(object): schema_file = '' @classmethod def validate(cls, filename): kwalify = subprocess.Popen(['kwalify', '-lf', cls.schema_file, filename], stdout=subprocess.PIPE, ...
import subprocess class YamlValidationError(Exception): pass class Base(object): schema_file = '' @classmethod def validate(cls, meta): if 'marshalled' in meta and meta['marshalled']: return cls.validatefile(meta['filename']) @classmethod def validatefile(cls, filenam...
import subprocess class YamlValidationError(Exception): pass class Base(object): schema_file = '' @classmethod def validate(cls, filename): kwalify = subprocess.Popen(['kwalify', '-lf', cls.schema_file, filename], stdout=subprocess.PIPE, ...
<commit_before>import subprocess class YamlValidationError(Exception): pass class Base(object): schema_file = '' @classmethod def validate(cls, filename): kwalify = subprocess.Popen(['kwalify', '-lf', cls.schema_file, filename], stdout=subprocess.PIPE, ...
a12076e0fd8dfd0e4d35802684bbd837ed2246b0
erpnext/hub_node/data_migration_mapping/item_to_hub_item/__init__.py
erpnext/hub_node/data_migration_mapping/item_to_hub_item/__init__.py
import io, base64, urllib, os def pre_process(doc): file_path = doc.image file_name = os.path.basename(file_path) if file_path.startswith('http'): url = file_path file_path = os.path.join('/tmp', file_name) urllib.urlretrieve(url, file_path) with io.open(file_path, 'rb') as f: doc.image = base64.b64enco...
Convert image to base64 before sending Item to sync
Convert image to base64 before sending Item to sync
Python
agpl-3.0
gsnbng/erpnext,gsnbng/erpnext,gsnbng/erpnext,gsnbng/erpnext
Convert image to base64 before sending Item to sync
import io, base64, urllib, os def pre_process(doc): file_path = doc.image file_name = os.path.basename(file_path) if file_path.startswith('http'): url = file_path file_path = os.path.join('/tmp', file_name) urllib.urlretrieve(url, file_path) with io.open(file_path, 'rb') as f: doc.image = base64.b64enco...
<commit_before><commit_msg>Convert image to base64 before sending Item to sync<commit_after>
import io, base64, urllib, os def pre_process(doc): file_path = doc.image file_name = os.path.basename(file_path) if file_path.startswith('http'): url = file_path file_path = os.path.join('/tmp', file_name) urllib.urlretrieve(url, file_path) with io.open(file_path, 'rb') as f: doc.image = base64.b64enco...
Convert image to base64 before sending Item to syncimport io, base64, urllib, os def pre_process(doc): file_path = doc.image file_name = os.path.basename(file_path) if file_path.startswith('http'): url = file_path file_path = os.path.join('/tmp', file_name) urllib.urlretrieve(url, file_path) with io.open(...
<commit_before><commit_msg>Convert image to base64 before sending Item to sync<commit_after>import io, base64, urllib, os def pre_process(doc): file_path = doc.image file_name = os.path.basename(file_path) if file_path.startswith('http'): url = file_path file_path = os.path.join('/tmp', file_name) urllib.ur...
e0109cdb52f02f1e8963849adeb42311cef2aa6c
gratipay/renderers/jinja2_htmlescaped.py
gratipay/renderers/jinja2_htmlescaped.py
import aspen_jinja2_renderer as base from markupsafe import escape as htmlescape class HTMLRenderer(base.Renderer): def render_content(self, context): # Extend to inject an HTML-escaping function. Since autoescape is on, # template authors shouldn't normally need to use this function, but ...
import aspen_jinja2_renderer as base from markupsafe import escape as htmlescape class HTMLRenderer(base.Renderer): def render_content(self, context): # Extend to inject an HTML-escaping function. Since autoescape is on, # template authors shouldn't normally need to use this function, but ...
Make htmlescape function available in templates
Make htmlescape function available in templates For when we explicitly call it.
Python
mit
gratipay/gratipay.com,gratipay/gratipay.com,gratipay/gratipay.com,mccolgst/www.gittip.com,studio666/gratipay.com,eXcomm/gratipay.com,eXcomm/gratipay.com,mccolgst/www.gittip.com,mccolgst/www.gittip.com,studio666/gratipay.com,studio666/gratipay.com,eXcomm/gratipay.com,gratipay/gratipay.com,studio666/gratipay.com,eXcomm/g...
import aspen_jinja2_renderer as base from markupsafe import escape as htmlescape class HTMLRenderer(base.Renderer): def render_content(self, context): # Extend to inject an HTML-escaping function. Since autoescape is on, # template authors shouldn't normally need to use this function, but ...
import aspen_jinja2_renderer as base from markupsafe import escape as htmlescape class HTMLRenderer(base.Renderer): def render_content(self, context): # Extend to inject an HTML-escaping function. Since autoescape is on, # template authors shouldn't normally need to use this function, but ...
<commit_before>import aspen_jinja2_renderer as base from markupsafe import escape as htmlescape class HTMLRenderer(base.Renderer): def render_content(self, context): # Extend to inject an HTML-escaping function. Since autoescape is on, # template authors shouldn't normally need to use this funct...
import aspen_jinja2_renderer as base from markupsafe import escape as htmlescape class HTMLRenderer(base.Renderer): def render_content(self, context): # Extend to inject an HTML-escaping function. Since autoescape is on, # template authors shouldn't normally need to use this function, but ...
import aspen_jinja2_renderer as base from markupsafe import escape as htmlescape class HTMLRenderer(base.Renderer): def render_content(self, context): # Extend to inject an HTML-escaping function. Since autoescape is on, # template authors shouldn't normally need to use this function, but ...
<commit_before>import aspen_jinja2_renderer as base from markupsafe import escape as htmlescape class HTMLRenderer(base.Renderer): def render_content(self, context): # Extend to inject an HTML-escaping function. Since autoescape is on, # template authors shouldn't normally need to use this funct...
1da4245cbc25a609b006254714ae273b6a6824e0
retools/__init__.py
retools/__init__.py
#
"""retools This module holds a default Redis instance, which can be configured process-wide:: from retools import Connection Connection.set_default(host='127.0.0.1', db=0, **kwargs) """ from redis import Redis from retools.redconn import Connection __all__ = ['Connection'] class Connection(objec...
Update global lock, default connection
Update global lock, default connection
Python
mit
mozilla-services/retools,bbangert/retools,0x1997/retools
# Update global lock, default connection
"""retools This module holds a default Redis instance, which can be configured process-wide:: from retools import Connection Connection.set_default(host='127.0.0.1', db=0, **kwargs) """ from redis import Redis from retools.redconn import Connection __all__ = ['Connection'] class Connection(objec...
<commit_before># <commit_msg>Update global lock, default connection<commit_after>
"""retools This module holds a default Redis instance, which can be configured process-wide:: from retools import Connection Connection.set_default(host='127.0.0.1', db=0, **kwargs) """ from redis import Redis from retools.redconn import Connection __all__ = ['Connection'] class Connection(objec...
# Update global lock, default connection"""retools This module holds a default Redis instance, which can be configured process-wide:: from retools import Connection Connection.set_default(host='127.0.0.1', db=0, **kwargs) """ from redis import Redis from retools.redconn import Connection __all__ =...
<commit_before># <commit_msg>Update global lock, default connection<commit_after>"""retools This module holds a default Redis instance, which can be configured process-wide:: from retools import Connection Connection.set_default(host='127.0.0.1', db=0, **kwargs) """ from redis import Redis from ret...
7d9690b974263ba499d026eabee504b5bd6cb8ac
InvenTree/plugin/views.py
InvenTree/plugin/views.py
import sys import traceback from django.conf import settings from django.views.debug import ExceptionReporter from error_report.models import Error from plugin.registry import registry class InvenTreePluginViewMixin: """ Custom view mixin which adds context data to the view, based on loaded plugins. ...
import logging import sys import traceback from django.conf import settings from django.views.debug import ExceptionReporter from error_report.models import Error from plugin.registry import registry logger = logging.getLogger('inventree') class InvenTreePluginViewMixin: """ Custom view mixin which adds ...
Add logging message when plugin fails to render custom panels
Add logging message when plugin fails to render custom panels
Python
mit
inventree/InvenTree,SchrodingersGat/InvenTree,SchrodingersGat/InvenTree,SchrodingersGat/InvenTree,SchrodingersGat/InvenTree,inventree/InvenTree,inventree/InvenTree,inventree/InvenTree
import sys import traceback from django.conf import settings from django.views.debug import ExceptionReporter from error_report.models import Error from plugin.registry import registry class InvenTreePluginViewMixin: """ Custom view mixin which adds context data to the view, based on loaded plugins. ...
import logging import sys import traceback from django.conf import settings from django.views.debug import ExceptionReporter from error_report.models import Error from plugin.registry import registry logger = logging.getLogger('inventree') class InvenTreePluginViewMixin: """ Custom view mixin which adds ...
<commit_before>import sys import traceback from django.conf import settings from django.views.debug import ExceptionReporter from error_report.models import Error from plugin.registry import registry class InvenTreePluginViewMixin: """ Custom view mixin which adds context data to the view, based on loa...
import logging import sys import traceback from django.conf import settings from django.views.debug import ExceptionReporter from error_report.models import Error from plugin.registry import registry logger = logging.getLogger('inventree') class InvenTreePluginViewMixin: """ Custom view mixin which adds ...
import sys import traceback from django.conf import settings from django.views.debug import ExceptionReporter from error_report.models import Error from plugin.registry import registry class InvenTreePluginViewMixin: """ Custom view mixin which adds context data to the view, based on loaded plugins. ...
<commit_before>import sys import traceback from django.conf import settings from django.views.debug import ExceptionReporter from error_report.models import Error from plugin.registry import registry class InvenTreePluginViewMixin: """ Custom view mixin which adds context data to the view, based on loa...
7c255cf7b8ac7d79b63c2c91cf2ae3a233cc14f8
genomic_neuralnet/analyses/optimize_ols_prediction.py
genomic_neuralnet/analyses/optimize_ols_prediction.py
from __future__ import print_function from genomic_neuralnet.methods import get_lr_prediction from genomic_neuralnet.analyses import run_optimization def main(): params = {} run_optimization(get_lr_prediction, params, 'optimal_en.shelf', 'OLS') if __name__ == '__main__': main()
from __future__ import print_function from genomic_neuralnet.methods import get_lr_prediction from genomic_neuralnet.analyses import run_optimization def main(): params = {} run_optimization(get_lr_prediction, params, 'optimal_lr.shelf', 'OLS') if __name__ == '__main__': main()
Write OLS results to correct shelf
Write OLS results to correct shelf
Python
mit
rileymcdowell/genomic-neuralnet,rileymcdowell/genomic-neuralnet,rileymcdowell/genomic-neuralnet
from __future__ import print_function from genomic_neuralnet.methods import get_lr_prediction from genomic_neuralnet.analyses import run_optimization def main(): params = {} run_optimization(get_lr_prediction, params, 'optimal_en.shelf', 'OLS') if __name__ == '__main__': main() Write OLS results to co...
from __future__ import print_function from genomic_neuralnet.methods import get_lr_prediction from genomic_neuralnet.analyses import run_optimization def main(): params = {} run_optimization(get_lr_prediction, params, 'optimal_lr.shelf', 'OLS') if __name__ == '__main__': main()
<commit_before>from __future__ import print_function from genomic_neuralnet.methods import get_lr_prediction from genomic_neuralnet.analyses import run_optimization def main(): params = {} run_optimization(get_lr_prediction, params, 'optimal_en.shelf', 'OLS') if __name__ == '__main__': main() <commit_...
from __future__ import print_function from genomic_neuralnet.methods import get_lr_prediction from genomic_neuralnet.analyses import run_optimization def main(): params = {} run_optimization(get_lr_prediction, params, 'optimal_lr.shelf', 'OLS') if __name__ == '__main__': main()
from __future__ import print_function from genomic_neuralnet.methods import get_lr_prediction from genomic_neuralnet.analyses import run_optimization def main(): params = {} run_optimization(get_lr_prediction, params, 'optimal_en.shelf', 'OLS') if __name__ == '__main__': main() Write OLS results to co...
<commit_before>from __future__ import print_function from genomic_neuralnet.methods import get_lr_prediction from genomic_neuralnet.analyses import run_optimization def main(): params = {} run_optimization(get_lr_prediction, params, 'optimal_en.shelf', 'OLS') if __name__ == '__main__': main() <commit_...
0b89da2ea93051ffdd47498bc047cc07885c2957
opps/boxes/models.py
opps/boxes/models.py
#!/usr/bin/env python # -*- coding: utf-8 -*- #from django.conf import settings #from django.utils.importlib import import_module from django.db import models from django.utils.translation import ugettext_lazy as _ from opps.core.models import Publishable, BaseBox try: OPPS_APPS = tuple([(u"{0}.{1}".format( ...
#!/usr/bin/env python # -*- coding: utf-8 -*- #from django.conf import settings #from django.utils.importlib import import_module from django.db import models from django.utils.translation import ugettext_lazy as _ from opps.core.models import Publishable, BaseBox try: OPPS_APPS = tuple([(u"{0}.{1}".format( ...
Add field channel on QuerySet boxes
Add field channel on QuerySet boxes
Python
mit
YACOWS/opps,jeanmask/opps,opps/opps,williamroot/opps,jeanmask/opps,YACOWS/opps,opps/opps,YACOWS/opps,opps/opps,jeanmask/opps,williamroot/opps,YACOWS/opps,opps/opps,williamroot/opps,williamroot/opps,jeanmask/opps
#!/usr/bin/env python # -*- coding: utf-8 -*- #from django.conf import settings #from django.utils.importlib import import_module from django.db import models from django.utils.translation import ugettext_lazy as _ from opps.core.models import Publishable, BaseBox try: OPPS_APPS = tuple([(u"{0}.{1}".format( ...
#!/usr/bin/env python # -*- coding: utf-8 -*- #from django.conf import settings #from django.utils.importlib import import_module from django.db import models from django.utils.translation import ugettext_lazy as _ from opps.core.models import Publishable, BaseBox try: OPPS_APPS = tuple([(u"{0}.{1}".format( ...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- #from django.conf import settings #from django.utils.importlib import import_module from django.db import models from django.utils.translation import ugettext_lazy as _ from opps.core.models import Publishable, BaseBox try: OPPS_APPS = tuple([(u"{0}.{1...
#!/usr/bin/env python # -*- coding: utf-8 -*- #from django.conf import settings #from django.utils.importlib import import_module from django.db import models from django.utils.translation import ugettext_lazy as _ from opps.core.models import Publishable, BaseBox try: OPPS_APPS = tuple([(u"{0}.{1}".format( ...
#!/usr/bin/env python # -*- coding: utf-8 -*- #from django.conf import settings #from django.utils.importlib import import_module from django.db import models from django.utils.translation import ugettext_lazy as _ from opps.core.models import Publishable, BaseBox try: OPPS_APPS = tuple([(u"{0}.{1}".format( ...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- #from django.conf import settings #from django.utils.importlib import import_module from django.db import models from django.utils.translation import ugettext_lazy as _ from opps.core.models import Publishable, BaseBox try: OPPS_APPS = tuple([(u"{0}.{1...
66604e749349e37eb1e59168d00f52ed7da23029
dragonflow/db/neutron/models.py
dragonflow/db/neutron/models.py
# Copyright (c) 2015 OpenStack Foundation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
# Copyright (c) 2015 OpenStack Foundation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
Implement utc_timeout for PGSQL and MSSQL
Implement utc_timeout for PGSQL and MSSQL UTC_TIMESTAMP is a MySQL specific function. Use SQLAlchemy to implement it also in MSSQL and PGSQL. Change-Id: If8673b543da2a89a2bad87daff2429cb09c735aa Closes-Bug: #1700873
Python
apache-2.0
openstack/dragonflow,openstack/dragonflow,openstack/dragonflow
# Copyright (c) 2015 OpenStack Foundation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
# Copyright (c) 2015 OpenStack Foundation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
<commit_before># Copyright (c) 2015 OpenStack Foundation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0...
# Copyright (c) 2015 OpenStack Foundation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
# Copyright (c) 2015 OpenStack Foundation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
<commit_before># Copyright (c) 2015 OpenStack Foundation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0...
d2971af14f57e925e1500da9ede42adb34d0dc62
tastycrust/authentication.py
tastycrust/authentication.py
#!/usr/bin/env python # -*- coding: utf-8 class AnonymousAuthentication(object): anonymous_allowed_methods = ['GET'] def __init__(self, allowed=None): if allowed is not None: self.anonymous_allowed_methods = allowed def is_authenticated(self, request, **kwargs): allowed_metho...
#!/usr/bin/env python # -*- coding: utf-8 class AnonymousAuthentication(object): allowed_methods = ['GET'] def __init__(self, allowed=None): if allowed is not None: self.allowed_methods = allowed def is_authenticated(self, request, **kwargs): return (request.method in [s.uppe...
Change some naming in AnonymousAuthentication
Change some naming in AnonymousAuthentication
Python
bsd-3-clause
uranusjr/django-tastypie-crust
#!/usr/bin/env python # -*- coding: utf-8 class AnonymousAuthentication(object): anonymous_allowed_methods = ['GET'] def __init__(self, allowed=None): if allowed is not None: self.anonymous_allowed_methods = allowed def is_authenticated(self, request, **kwargs): allowed_metho...
#!/usr/bin/env python # -*- coding: utf-8 class AnonymousAuthentication(object): allowed_methods = ['GET'] def __init__(self, allowed=None): if allowed is not None: self.allowed_methods = allowed def is_authenticated(self, request, **kwargs): return (request.method in [s.uppe...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 class AnonymousAuthentication(object): anonymous_allowed_methods = ['GET'] def __init__(self, allowed=None): if allowed is not None: self.anonymous_allowed_methods = allowed def is_authenticated(self, request, **kwargs): ...
#!/usr/bin/env python # -*- coding: utf-8 class AnonymousAuthentication(object): allowed_methods = ['GET'] def __init__(self, allowed=None): if allowed is not None: self.allowed_methods = allowed def is_authenticated(self, request, **kwargs): return (request.method in [s.uppe...
#!/usr/bin/env python # -*- coding: utf-8 class AnonymousAuthentication(object): anonymous_allowed_methods = ['GET'] def __init__(self, allowed=None): if allowed is not None: self.anonymous_allowed_methods = allowed def is_authenticated(self, request, **kwargs): allowed_metho...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 class AnonymousAuthentication(object): anonymous_allowed_methods = ['GET'] def __init__(self, allowed=None): if allowed is not None: self.anonymous_allowed_methods = allowed def is_authenticated(self, request, **kwargs): ...
fa885b929f8323c88228dbc4d40ca286d49ee286
test_project/blog/api.py
test_project/blog/api.py
from tastypie.resources import ModelResource from tastypie.api import Api from tastypie import fields from models import Entry, Comment class EntryResource(ModelResource): class Meta: queryset = Entry.objects.all() class CommentResource(ModelResource): entry = fields.ForeignKey("blog.api.EntryReso...
from tastypie.resources import ModelResource from tastypie.api import Api from tastypie import fields from models import Entry, Comment, SmartTag class EntryResource(ModelResource): class Meta: queryset = Entry.objects.all() class CommentResource(ModelResource): entry = fields.ForeignKey("blog.api...
Create corresponding SmartTag resource with explicitly defined 'resource_name' attribute that will be used for its TastyFactory key.
Create corresponding SmartTag resource with explicitly defined 'resource_name' attribute that will be used for its TastyFactory key.
Python
bsd-3-clause
juanique/django-chocolate,juanique/django-chocolate,juanique/django-chocolate
from tastypie.resources import ModelResource from tastypie.api import Api from tastypie import fields from models import Entry, Comment class EntryResource(ModelResource): class Meta: queryset = Entry.objects.all() class CommentResource(ModelResource): entry = fields.ForeignKey("blog.api.EntryReso...
from tastypie.resources import ModelResource from tastypie.api import Api from tastypie import fields from models import Entry, Comment, SmartTag class EntryResource(ModelResource): class Meta: queryset = Entry.objects.all() class CommentResource(ModelResource): entry = fields.ForeignKey("blog.api...
<commit_before>from tastypie.resources import ModelResource from tastypie.api import Api from tastypie import fields from models import Entry, Comment class EntryResource(ModelResource): class Meta: queryset = Entry.objects.all() class CommentResource(ModelResource): entry = fields.ForeignKey("blo...
from tastypie.resources import ModelResource from tastypie.api import Api from tastypie import fields from models import Entry, Comment, SmartTag class EntryResource(ModelResource): class Meta: queryset = Entry.objects.all() class CommentResource(ModelResource): entry = fields.ForeignKey("blog.api...
from tastypie.resources import ModelResource from tastypie.api import Api from tastypie import fields from models import Entry, Comment class EntryResource(ModelResource): class Meta: queryset = Entry.objects.all() class CommentResource(ModelResource): entry = fields.ForeignKey("blog.api.EntryReso...
<commit_before>from tastypie.resources import ModelResource from tastypie.api import Api from tastypie import fields from models import Entry, Comment class EntryResource(ModelResource): class Meta: queryset = Entry.objects.all() class CommentResource(ModelResource): entry = fields.ForeignKey("blo...
185dcb9db26bd3dc5f76faebb4d56c7abb87f87f
test/parseJaguar.py
test/parseJaguar.py
import os from cclib.parser import Jaguar os.chdir(os.path.join("..","data","Jaguar","basicJaguar")) os.chdir("eg01") for file in ["dvb_gopt.out"]: t = Jaguar(file) t.parse() print t.moenergies[0,:] print t.homos[0] print t.moenergies[0,t.homos[0]]
import os from cclib.parser import Jaguar os.chdir(os.path.join("..","data","Jaguar","basicJaguar")) files = [ ["eg01","dvb_gopt.out"], ["eg02","dvb_sp.out"], ["eg03","dvb_ir.out"], ["eg06","dvb_un_sp.out"] ] for f in files: t = Jaguar(os.path.join(f[0],f[1])) t.pars...
Test the parsing of all of the uploaded Jaguar files
Test the parsing of all of the uploaded Jaguar files git-svn-id: d468cea6ffe92bc1eb1f3bde47ad7e70b065426a@75 5acbf244-8a03-4a8b-a19b-0d601add4d27
Python
lgpl-2.1
Clyde-fare/cclib_bak,Clyde-fare/cclib_bak
import os from cclib.parser import Jaguar os.chdir(os.path.join("..","data","Jaguar","basicJaguar")) os.chdir("eg01") for file in ["dvb_gopt.out"]: t = Jaguar(file) t.parse() print t.moenergies[0,:] print t.homos[0] print t.moenergies[0,t.homos[0]] Test the parsing of all of the uploaded Jaguar file...
import os from cclib.parser import Jaguar os.chdir(os.path.join("..","data","Jaguar","basicJaguar")) files = [ ["eg01","dvb_gopt.out"], ["eg02","dvb_sp.out"], ["eg03","dvb_ir.out"], ["eg06","dvb_un_sp.out"] ] for f in files: t = Jaguar(os.path.join(f[0],f[1])) t.pars...
<commit_before>import os from cclib.parser import Jaguar os.chdir(os.path.join("..","data","Jaguar","basicJaguar")) os.chdir("eg01") for file in ["dvb_gopt.out"]: t = Jaguar(file) t.parse() print t.moenergies[0,:] print t.homos[0] print t.moenergies[0,t.homos[0]] <commit_msg>Test the parsing of all ...
import os from cclib.parser import Jaguar os.chdir(os.path.join("..","data","Jaguar","basicJaguar")) files = [ ["eg01","dvb_gopt.out"], ["eg02","dvb_sp.out"], ["eg03","dvb_ir.out"], ["eg06","dvb_un_sp.out"] ] for f in files: t = Jaguar(os.path.join(f[0],f[1])) t.pars...
import os from cclib.parser import Jaguar os.chdir(os.path.join("..","data","Jaguar","basicJaguar")) os.chdir("eg01") for file in ["dvb_gopt.out"]: t = Jaguar(file) t.parse() print t.moenergies[0,:] print t.homos[0] print t.moenergies[0,t.homos[0]] Test the parsing of all of the uploaded Jaguar file...
<commit_before>import os from cclib.parser import Jaguar os.chdir(os.path.join("..","data","Jaguar","basicJaguar")) os.chdir("eg01") for file in ["dvb_gopt.out"]: t = Jaguar(file) t.parse() print t.moenergies[0,:] print t.homos[0] print t.moenergies[0,t.homos[0]] <commit_msg>Test the parsing of all ...
f5d87a37ece8708735591f0d26213a6b7fd1a191
etc/ci/check_dynamic_symbols.py
etc/ci/check_dynamic_symbols.py
# Copyright 2013 The Servo Project Developers. See the COPYRIGHT # file at the top-level directory of this distribution. # # Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or # http://www.apache.org/licenses/LICENSE-2.0> or the MIT license # <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your #...
# Copyright 2013 The Servo Project Developers. See the COPYRIGHT # file at the top-level directory of this distribution. # # Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or # http://www.apache.org/licenses/LICENSE-2.0> or the MIT license # <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your #...
Put each unexpected dynamic symbols on its own line
Put each unexpected dynamic symbols on its own line
Python
mpl-2.0
thiagopnts/servo,DominoTree/servo,peterjoel/servo,anthgur/servo,larsbergstrom/servo,nnethercote/servo,thiagopnts/servo,szeged/servo,paulrouget/servo,thiagopnts/servo,pyfisch/servo,pyfisch/servo,KiChjang/servo,CJ8664/servo,thiagopnts/servo,pyfisch/servo,fiji-flo/servo,notriddle/servo,ConnorGBrewster/servo,sadmansk/servo...
# Copyright 2013 The Servo Project Developers. See the COPYRIGHT # file at the top-level directory of this distribution. # # Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or # http://www.apache.org/licenses/LICENSE-2.0> or the MIT license # <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your #...
# Copyright 2013 The Servo Project Developers. See the COPYRIGHT # file at the top-level directory of this distribution. # # Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or # http://www.apache.org/licenses/LICENSE-2.0> or the MIT license # <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your #...
<commit_before># Copyright 2013 The Servo Project Developers. See the COPYRIGHT # file at the top-level directory of this distribution. # # Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or # http://www.apache.org/licenses/LICENSE-2.0> or the MIT license # <LICENSE-MIT or http://opensource.org/licenses/...
# Copyright 2013 The Servo Project Developers. See the COPYRIGHT # file at the top-level directory of this distribution. # # Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or # http://www.apache.org/licenses/LICENSE-2.0> or the MIT license # <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your #...
# Copyright 2013 The Servo Project Developers. See the COPYRIGHT # file at the top-level directory of this distribution. # # Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or # http://www.apache.org/licenses/LICENSE-2.0> or the MIT license # <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your #...
<commit_before># Copyright 2013 The Servo Project Developers. See the COPYRIGHT # file at the top-level directory of this distribution. # # Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or # http://www.apache.org/licenses/LICENSE-2.0> or the MIT license # <LICENSE-MIT or http://opensource.org/licenses/...
bad670aebbdeeb029a40762aae80eec1100268a2
data_log/management/commands/generate_report_fixture.py
data_log/management/commands/generate_report_fixture.py
from django.core.management.base import BaseCommand from django.core import serializers from data_log import models import json class Command(BaseCommand): help = 'Create Data Log Report fixtures' def handle(self, *args, **kwargs): self.stdout.write(self.style.HTTP_INFO('Creating fixtures for Data L...
from django.core.management.base import BaseCommand from django.core import serializers from data_log import models import json class Command(BaseCommand): help = 'Create Data Log Report fixtures' def handle(self, *args, **kwargs): self.stdout.write(self.style.HTTP_INFO('Creating fixtures for Data L...
Fix data log fixture foreign keys
Fix data log fixture foreign keys
Python
apache-2.0
porksmash/swarfarm,porksmash/swarfarm,porksmash/swarfarm,porksmash/swarfarm
from django.core.management.base import BaseCommand from django.core import serializers from data_log import models import json class Command(BaseCommand): help = 'Create Data Log Report fixtures' def handle(self, *args, **kwargs): self.stdout.write(self.style.HTTP_INFO('Creating fixtures for Data L...
from django.core.management.base import BaseCommand from django.core import serializers from data_log import models import json class Command(BaseCommand): help = 'Create Data Log Report fixtures' def handle(self, *args, **kwargs): self.stdout.write(self.style.HTTP_INFO('Creating fixtures for Data L...
<commit_before>from django.core.management.base import BaseCommand from django.core import serializers from data_log import models import json class Command(BaseCommand): help = 'Create Data Log Report fixtures' def handle(self, *args, **kwargs): self.stdout.write(self.style.HTTP_INFO('Creating fixt...
from django.core.management.base import BaseCommand from django.core import serializers from data_log import models import json class Command(BaseCommand): help = 'Create Data Log Report fixtures' def handle(self, *args, **kwargs): self.stdout.write(self.style.HTTP_INFO('Creating fixtures for Data L...
from django.core.management.base import BaseCommand from django.core import serializers from data_log import models import json class Command(BaseCommand): help = 'Create Data Log Report fixtures' def handle(self, *args, **kwargs): self.stdout.write(self.style.HTTP_INFO('Creating fixtures for Data L...
<commit_before>from django.core.management.base import BaseCommand from django.core import serializers from data_log import models import json class Command(BaseCommand): help = 'Create Data Log Report fixtures' def handle(self, *args, **kwargs): self.stdout.write(self.style.HTTP_INFO('Creating fixt...
6309031090a135856e6e2b3f8381202d6d17b72f
test_app/signals.py
test_app/signals.py
# # -*- coding: utf-8 -*- import logging from django.conf import settings from django.dispatch import receiver from trello_webhooks.signals import callback_received from test_app.hipchat import send_to_hipchat logger = logging.getLogger(__name__) @receiver(callback_received, dispatch_uid="callback_received") def ...
# # -*- coding: utf-8 -*- import logging from django.conf import settings from django.dispatch import receiver from trello_webhooks.signals import callback_received from test_app.hipchat import send_to_hipchat logger = logging.getLogger(__name__) @receiver(callback_received, dispatch_uid="callback_received") def ...
Send unknown events to HipChat in red
Send unknown events to HipChat in red If an event comes in to the test_app and has no matching template, then send it to HipChat in red, not yellow, making it easier to manage.
Python
mit
yunojuno/django-trello-webhooks,yunojuno/django-trello-webhooks
# # -*- coding: utf-8 -*- import logging from django.conf import settings from django.dispatch import receiver from trello_webhooks.signals import callback_received from test_app.hipchat import send_to_hipchat logger = logging.getLogger(__name__) @receiver(callback_received, dispatch_uid="callback_received") def ...
# # -*- coding: utf-8 -*- import logging from django.conf import settings from django.dispatch import receiver from trello_webhooks.signals import callback_received from test_app.hipchat import send_to_hipchat logger = logging.getLogger(__name__) @receiver(callback_received, dispatch_uid="callback_received") def ...
<commit_before># # -*- coding: utf-8 -*- import logging from django.conf import settings from django.dispatch import receiver from trello_webhooks.signals import callback_received from test_app.hipchat import send_to_hipchat logger = logging.getLogger(__name__) @receiver(callback_received, dispatch_uid="callback_...
# # -*- coding: utf-8 -*- import logging from django.conf import settings from django.dispatch import receiver from trello_webhooks.signals import callback_received from test_app.hipchat import send_to_hipchat logger = logging.getLogger(__name__) @receiver(callback_received, dispatch_uid="callback_received") def ...
# # -*- coding: utf-8 -*- import logging from django.conf import settings from django.dispatch import receiver from trello_webhooks.signals import callback_received from test_app.hipchat import send_to_hipchat logger = logging.getLogger(__name__) @receiver(callback_received, dispatch_uid="callback_received") def ...
<commit_before># # -*- coding: utf-8 -*- import logging from django.conf import settings from django.dispatch import receiver from trello_webhooks.signals import callback_received from test_app.hipchat import send_to_hipchat logger = logging.getLogger(__name__) @receiver(callback_received, dispatch_uid="callback_...
40f140682a902957d5875c8afc88e16bc327367f
tests/test_cat2cohort.py
tests/test_cat2cohort.py
"""Unit tests for cat2cohort.""" import unittest from wm_metrics.cat2cohort import api_url, _make_CSV_line, _userlist_to_CSV_cohort class TestCat2Cohort(unittest.TestCase): """Test methods from Cat2Cohort.""" def test_api_url(self): """Test api_url.""" values = [ ('fr', 'https:/...
"""Unit tests for cat2cohort.""" import unittest from wm_metrics.cat2cohort import api_url, _make_CSV_line, _userlist_to_CSV_cohort class TestCat2Cohort(unittest.TestCase): """Test methods from Cat2Cohort.""" def setUp(self): """Set up the tests.""" self.userlist = [('Toto', 'fr'), ('Titi',...
Move unit tests data in setUp
Move unit tests data in setUp When unit testing the various methods of cat2cohort, we need some example data (input and expected output). It makes sense to share it among testing methods through the setUp method mechanism.
Python
mit
danmichaelo/wm_metrics,Commonists/wm_metrics,Commonists/wm_metrics,danmichaelo/wm_metrics,Commonists/wm_metrics,danmichaelo/wm_metrics,Commonists/wm_metrics,danmichaelo/wm_metrics
"""Unit tests for cat2cohort.""" import unittest from wm_metrics.cat2cohort import api_url, _make_CSV_line, _userlist_to_CSV_cohort class TestCat2Cohort(unittest.TestCase): """Test methods from Cat2Cohort.""" def test_api_url(self): """Test api_url.""" values = [ ('fr', 'https:/...
"""Unit tests for cat2cohort.""" import unittest from wm_metrics.cat2cohort import api_url, _make_CSV_line, _userlist_to_CSV_cohort class TestCat2Cohort(unittest.TestCase): """Test methods from Cat2Cohort.""" def setUp(self): """Set up the tests.""" self.userlist = [('Toto', 'fr'), ('Titi',...
<commit_before>"""Unit tests for cat2cohort.""" import unittest from wm_metrics.cat2cohort import api_url, _make_CSV_line, _userlist_to_CSV_cohort class TestCat2Cohort(unittest.TestCase): """Test methods from Cat2Cohort.""" def test_api_url(self): """Test api_url.""" values = [ ...
"""Unit tests for cat2cohort.""" import unittest from wm_metrics.cat2cohort import api_url, _make_CSV_line, _userlist_to_CSV_cohort class TestCat2Cohort(unittest.TestCase): """Test methods from Cat2Cohort.""" def setUp(self): """Set up the tests.""" self.userlist = [('Toto', 'fr'), ('Titi',...
"""Unit tests for cat2cohort.""" import unittest from wm_metrics.cat2cohort import api_url, _make_CSV_line, _userlist_to_CSV_cohort class TestCat2Cohort(unittest.TestCase): """Test methods from Cat2Cohort.""" def test_api_url(self): """Test api_url.""" values = [ ('fr', 'https:/...
<commit_before>"""Unit tests for cat2cohort.""" import unittest from wm_metrics.cat2cohort import api_url, _make_CSV_line, _userlist_to_CSV_cohort class TestCat2Cohort(unittest.TestCase): """Test methods from Cat2Cohort.""" def test_api_url(self): """Test api_url.""" values = [ ...
b52f0e9fe2c9e41205a8d703985ac39ab3524a8a
tests/blueprints/test_entity.py
tests/blueprints/test_entity.py
from json import loads from tests import AppTestCase, main from tentd import db from tentd.models.entity import Entity class EntityBlueprintTest (AppTestCase): def setUp (self): super(EntityBlueprintTest, self).setUp() self.user = Entity(name="testuser") db.session.add(self.user) db.session.commit() def t...
from json import loads from tests import AppTestCase, main from tentd import db from tentd.models.entity import Entity class EntityBlueprintTest (AppTestCase): def setUp (self): super(EntityBlueprintTest, self).setUp() self.name = 'testuser' self.user = Entity(name=self.name) db.session.add(self.user) db....
Test that the api 404's when a user does not exist
Test that the api 404's when a user does not exist
Python
apache-2.0
pytent/pytentd
from json import loads from tests import AppTestCase, main from tentd import db from tentd.models.entity import Entity class EntityBlueprintTest (AppTestCase): def setUp (self): super(EntityBlueprintTest, self).setUp() self.user = Entity(name="testuser") db.session.add(self.user) db.session.commit() def t...
from json import loads from tests import AppTestCase, main from tentd import db from tentd.models.entity import Entity class EntityBlueprintTest (AppTestCase): def setUp (self): super(EntityBlueprintTest, self).setUp() self.name = 'testuser' self.user = Entity(name=self.name) db.session.add(self.user) db....
<commit_before>from json import loads from tests import AppTestCase, main from tentd import db from tentd.models.entity import Entity class EntityBlueprintTest (AppTestCase): def setUp (self): super(EntityBlueprintTest, self).setUp() self.user = Entity(name="testuser") db.session.add(self.user) db.session.c...
from json import loads from tests import AppTestCase, main from tentd import db from tentd.models.entity import Entity class EntityBlueprintTest (AppTestCase): def setUp (self): super(EntityBlueprintTest, self).setUp() self.name = 'testuser' self.user = Entity(name=self.name) db.session.add(self.user) db....
from json import loads from tests import AppTestCase, main from tentd import db from tentd.models.entity import Entity class EntityBlueprintTest (AppTestCase): def setUp (self): super(EntityBlueprintTest, self).setUp() self.user = Entity(name="testuser") db.session.add(self.user) db.session.commit() def t...
<commit_before>from json import loads from tests import AppTestCase, main from tentd import db from tentd.models.entity import Entity class EntityBlueprintTest (AppTestCase): def setUp (self): super(EntityBlueprintTest, self).setUp() self.user = Entity(name="testuser") db.session.add(self.user) db.session.c...
8b0dcf1bfda26ab9463d2c5a892b7ffd3fa015d9
packs/github/actions/lib/formatters.py
packs/github/actions/lib/formatters.py
__all__ = [ 'issue_to_dict' ] def issue_to_dict(issue): result = {} if issue.closed_by: closed_by = issue.closed_by.name else: closed_by = None result['id'] = issue.id result['repository'] = issue.repository.name result['title'] = issue.title result['body'] = issue.bo...
__all__ = [ 'issue_to_dict', 'label_to_dict' ] def issue_to_dict(issue): result = {} if issue.closed_by: closed_by = issue.closed_by.name else: closed_by = None result['id'] = issue.id result['repository'] = issue.repository.name result['title'] = issue.title resu...
Make sure we flatten the labels attribute to a serializable simple type.
Make sure we flatten the labels attribute to a serializable simple type.
Python
apache-2.0
pearsontechnology/st2contrib,pidah/st2contrib,pidah/st2contrib,pearsontechnology/st2contrib,armab/st2contrib,tonybaloney/st2contrib,pearsontechnology/st2contrib,StackStorm/st2contrib,psychopenguin/st2contrib,tonybaloney/st2contrib,StackStorm/st2contrib,tonybaloney/st2contrib,psychopenguin/st2contrib,pidah/st2contrib,ar...
__all__ = [ 'issue_to_dict' ] def issue_to_dict(issue): result = {} if issue.closed_by: closed_by = issue.closed_by.name else: closed_by = None result['id'] = issue.id result['repository'] = issue.repository.name result['title'] = issue.title result['body'] = issue.bo...
__all__ = [ 'issue_to_dict', 'label_to_dict' ] def issue_to_dict(issue): result = {} if issue.closed_by: closed_by = issue.closed_by.name else: closed_by = None result['id'] = issue.id result['repository'] = issue.repository.name result['title'] = issue.title resu...
<commit_before>__all__ = [ 'issue_to_dict' ] def issue_to_dict(issue): result = {} if issue.closed_by: closed_by = issue.closed_by.name else: closed_by = None result['id'] = issue.id result['repository'] = issue.repository.name result['title'] = issue.title result['bo...
__all__ = [ 'issue_to_dict', 'label_to_dict' ] def issue_to_dict(issue): result = {} if issue.closed_by: closed_by = issue.closed_by.name else: closed_by = None result['id'] = issue.id result['repository'] = issue.repository.name result['title'] = issue.title resu...
__all__ = [ 'issue_to_dict' ] def issue_to_dict(issue): result = {} if issue.closed_by: closed_by = issue.closed_by.name else: closed_by = None result['id'] = issue.id result['repository'] = issue.repository.name result['title'] = issue.title result['body'] = issue.bo...
<commit_before>__all__ = [ 'issue_to_dict' ] def issue_to_dict(issue): result = {} if issue.closed_by: closed_by = issue.closed_by.name else: closed_by = None result['id'] = issue.id result['repository'] = issue.repository.name result['title'] = issue.title result['bo...
2d841bd7dcd7a7b564d8749b7faa9c9634f0dc55
tests/lib/yaml/exceptions.py
tests/lib/yaml/exceptions.py
class YAMLException(Exception): """Base for the exception hierarchy of this module """
class YAMLException(Exception): """Base for the exception hierarchy of this module """ def __str__(self): # Format a reason if not self.args: message = "unknown" elif len(self.args) == 1: message = self.args[0] else: try: m...
Format Error message in the exception
Format Error message in the exception
Python
mit
pradyunsg/zazo,pradyunsg/zazo
class YAMLException(Exception): """Base for the exception hierarchy of this module """ Format Error message in the exception
class YAMLException(Exception): """Base for the exception hierarchy of this module """ def __str__(self): # Format a reason if not self.args: message = "unknown" elif len(self.args) == 1: message = self.args[0] else: try: m...
<commit_before>class YAMLException(Exception): """Base for the exception hierarchy of this module """ <commit_msg>Format Error message in the exception<commit_after>
class YAMLException(Exception): """Base for the exception hierarchy of this module """ def __str__(self): # Format a reason if not self.args: message = "unknown" elif len(self.args) == 1: message = self.args[0] else: try: m...
class YAMLException(Exception): """Base for the exception hierarchy of this module """ Format Error message in the exceptionclass YAMLException(Exception): """Base for the exception hierarchy of this module """ def __str__(self): # Format a reason if not self.args: messa...
<commit_before>class YAMLException(Exception): """Base for the exception hierarchy of this module """ <commit_msg>Format Error message in the exception<commit_after>class YAMLException(Exception): """Base for the exception hierarchy of this module """ def __str__(self): # Format a reason ...
2421212be1072db1428e7c832c0818a3928c1153
tests/test_collection_crs.py
tests/test_collection_crs.py
import os import re import fiona import fiona.crs from .conftest import WGS84PATTERN def test_collection_crs_wkt(path_coutwildrnp_shp): with fiona.open(path_coutwildrnp_shp) as src: assert re.match(WGS84PATTERN, src.crs_wkt) def test_collection_no_crs_wkt(tmpdir, path_coutwildrnp_shp): """crs membe...
import os import re import fiona import fiona.crs from .conftest import WGS84PATTERN def test_collection_crs_wkt(path_coutwildrnp_shp): with fiona.open(path_coutwildrnp_shp) as src: assert re.match(WGS84PATTERN, src.crs_wkt) def test_collection_no_crs_wkt(tmpdir, path_coutwildrnp_shp): """crs memb...
Add test for collection creation with crs_wkt
Add test for collection creation with crs_wkt
Python
bsd-3-clause
Toblerity/Fiona,Toblerity/Fiona,rbuffat/Fiona,rbuffat/Fiona
import os import re import fiona import fiona.crs from .conftest import WGS84PATTERN def test_collection_crs_wkt(path_coutwildrnp_shp): with fiona.open(path_coutwildrnp_shp) as src: assert re.match(WGS84PATTERN, src.crs_wkt) def test_collection_no_crs_wkt(tmpdir, path_coutwildrnp_shp): """crs membe...
import os import re import fiona import fiona.crs from .conftest import WGS84PATTERN def test_collection_crs_wkt(path_coutwildrnp_shp): with fiona.open(path_coutwildrnp_shp) as src: assert re.match(WGS84PATTERN, src.crs_wkt) def test_collection_no_crs_wkt(tmpdir, path_coutwildrnp_shp): """crs memb...
<commit_before>import os import re import fiona import fiona.crs from .conftest import WGS84PATTERN def test_collection_crs_wkt(path_coutwildrnp_shp): with fiona.open(path_coutwildrnp_shp) as src: assert re.match(WGS84PATTERN, src.crs_wkt) def test_collection_no_crs_wkt(tmpdir, path_coutwildrnp_shp): ...
import os import re import fiona import fiona.crs from .conftest import WGS84PATTERN def test_collection_crs_wkt(path_coutwildrnp_shp): with fiona.open(path_coutwildrnp_shp) as src: assert re.match(WGS84PATTERN, src.crs_wkt) def test_collection_no_crs_wkt(tmpdir, path_coutwildrnp_shp): """crs memb...
import os import re import fiona import fiona.crs from .conftest import WGS84PATTERN def test_collection_crs_wkt(path_coutwildrnp_shp): with fiona.open(path_coutwildrnp_shp) as src: assert re.match(WGS84PATTERN, src.crs_wkt) def test_collection_no_crs_wkt(tmpdir, path_coutwildrnp_shp): """crs membe...
<commit_before>import os import re import fiona import fiona.crs from .conftest import WGS84PATTERN def test_collection_crs_wkt(path_coutwildrnp_shp): with fiona.open(path_coutwildrnp_shp) as src: assert re.match(WGS84PATTERN, src.crs_wkt) def test_collection_no_crs_wkt(tmpdir, path_coutwildrnp_shp): ...
86a8034101c27ffd9daf15b6cd884c6b511feecc
python/protein-translation/protein_translation.py
python/protein-translation/protein_translation.py
# Codon | Protein # :--- | :--- # AUG | Methionine # UUU, UUC | Phenylalanine # UUA, UUG | Leucine # UCU, UCC, UCA, UCG | Serine # UAU, UAC | Tyrosine # UGU, UGC | Cysteine # UGG | Tryptophan # UA...
# Codon | Protein # :--- | :--- # AUG | Methionine # UUU, UUC | Phenylalanine # UUA, UUG | Leucine # UCU, UCC, UCA, UCG | Serine # UAU, UAC | Tyrosine # UGU, UGC | Cysteine # UGG | Tryptophan # UA...
Fix mapping for codon keys for Tyrosine
Fix mapping for codon keys for Tyrosine
Python
mit
rootulp/exercism,rootulp/exercism,rootulp/exercism,rootulp/exercism,rootulp/exercism,rootulp/exercism,rootulp/exercism,rootulp/exercism
# Codon | Protein # :--- | :--- # AUG | Methionine # UUU, UUC | Phenylalanine # UUA, UUG | Leucine # UCU, UCC, UCA, UCG | Serine # UAU, UAC | Tyrosine # UGU, UGC | Cysteine # UGG | Tryptophan # UA...
# Codon | Protein # :--- | :--- # AUG | Methionine # UUU, UUC | Phenylalanine # UUA, UUG | Leucine # UCU, UCC, UCA, UCG | Serine # UAU, UAC | Tyrosine # UGU, UGC | Cysteine # UGG | Tryptophan # UA...
<commit_before># Codon | Protein # :--- | :--- # AUG | Methionine # UUU, UUC | Phenylalanine # UUA, UUG | Leucine # UCU, UCC, UCA, UCG | Serine # UAU, UAC | Tyrosine # UGU, UGC | Cysteine # UGG | ...
# Codon | Protein # :--- | :--- # AUG | Methionine # UUU, UUC | Phenylalanine # UUA, UUG | Leucine # UCU, UCC, UCA, UCG | Serine # UAU, UAC | Tyrosine # UGU, UGC | Cysteine # UGG | Tryptophan # UA...
# Codon | Protein # :--- | :--- # AUG | Methionine # UUU, UUC | Phenylalanine # UUA, UUG | Leucine # UCU, UCC, UCA, UCG | Serine # UAU, UAC | Tyrosine # UGU, UGC | Cysteine # UGG | Tryptophan # UA...
<commit_before># Codon | Protein # :--- | :--- # AUG | Methionine # UUU, UUC | Phenylalanine # UUA, UUG | Leucine # UCU, UCC, UCA, UCG | Serine # UAU, UAC | Tyrosine # UGU, UGC | Cysteine # UGG | ...
2e07218fe864104d31c5c5df285e3a97f2dbfe4f
randomizer/tests.py
randomizer/tests.py
from django.test import TestCase from randomizer.models import Restaurant class RandomizerTest(TestCase): """tests for the randomizer""" def test_homepage(self): """tests the homepage""" restaurant1 = Restaurant.objects.create(name='1') restaurant2 = Restaurant.objects.create(name='2'...
from django.test import TestCase from randomizer.models import Restaurant class RandomizerTest(TestCase): """tests for the randomizer""" def test_homepage(self): """tests the homepage""" restaurant1 = Restaurant.objects.create(name='1') restaurant2 = Restaurant.objects.create(name='2'...
Add a test for the bug occuring when no restaurants exist
Add a test for the bug occuring when no restaurants exist
Python
isc
PyJAX/foodie,PyJAX/foodie
from django.test import TestCase from randomizer.models import Restaurant class RandomizerTest(TestCase): """tests for the randomizer""" def test_homepage(self): """tests the homepage""" restaurant1 = Restaurant.objects.create(name='1') restaurant2 = Restaurant.objects.create(name='2'...
from django.test import TestCase from randomizer.models import Restaurant class RandomizerTest(TestCase): """tests for the randomizer""" def test_homepage(self): """tests the homepage""" restaurant1 = Restaurant.objects.create(name='1') restaurant2 = Restaurant.objects.create(name='2'...
<commit_before>from django.test import TestCase from randomizer.models import Restaurant class RandomizerTest(TestCase): """tests for the randomizer""" def test_homepage(self): """tests the homepage""" restaurant1 = Restaurant.objects.create(name='1') restaurant2 = Restaurant.objects....
from django.test import TestCase from randomizer.models import Restaurant class RandomizerTest(TestCase): """tests for the randomizer""" def test_homepage(self): """tests the homepage""" restaurant1 = Restaurant.objects.create(name='1') restaurant2 = Restaurant.objects.create(name='2'...
from django.test import TestCase from randomizer.models import Restaurant class RandomizerTest(TestCase): """tests for the randomizer""" def test_homepage(self): """tests the homepage""" restaurant1 = Restaurant.objects.create(name='1') restaurant2 = Restaurant.objects.create(name='2'...
<commit_before>from django.test import TestCase from randomizer.models import Restaurant class RandomizerTest(TestCase): """tests for the randomizer""" def test_homepage(self): """tests the homepage""" restaurant1 = Restaurant.objects.create(name='1') restaurant2 = Restaurant.objects....
1fe53ccce2aa9227bcb2b8f8cdfa576924d81fbd
range_hits_board.py
range_hits_board.py
from convenience_hole import all_hands_in_range from convenience import pr from deuces.deuces import Card, Evaluator e = Evaluator() board = [Card.new('Qs'), Card.new('Jd'), Card.new('2c')] range_list = ['AA', 'KK', 'QQ', 'AK', 'AKs'] ## tricky ones highlighted: ## 1 2 3 4 5 6 7 8...
from convenience_hole import all_hands_in_range from convenience import pr from deuces.deuces import Card, Evaluator e = Evaluator() basic_keys = [] rc_counts = {} for i in range(1,10): s = e.class_to_string(i) basic_keys.append(s) rc_counts[s] = 0 ## Two input vars: board = [Card.new('Qs'), Card.new('Jd...
Change rc_counts to a dict instead of list.
Change rc_counts to a dict instead of list.
Python
mit
zimolzak/poker-experiments,zimolzak/poker-experiments,zimolzak/poker-experiments
from convenience_hole import all_hands_in_range from convenience import pr from deuces.deuces import Card, Evaluator e = Evaluator() board = [Card.new('Qs'), Card.new('Jd'), Card.new('2c')] range_list = ['AA', 'KK', 'QQ', 'AK', 'AKs'] ## tricky ones highlighted: ## 1 2 3 4 5 6 7 8...
from convenience_hole import all_hands_in_range from convenience import pr from deuces.deuces import Card, Evaluator e = Evaluator() basic_keys = [] rc_counts = {} for i in range(1,10): s = e.class_to_string(i) basic_keys.append(s) rc_counts[s] = 0 ## Two input vars: board = [Card.new('Qs'), Card.new('Jd...
<commit_before>from convenience_hole import all_hands_in_range from convenience import pr from deuces.deuces import Card, Evaluator e = Evaluator() board = [Card.new('Qs'), Card.new('Jd'), Card.new('2c')] range_list = ['AA', 'KK', 'QQ', 'AK', 'AKs'] ## tricky ones highlighted: ## 1 2 3 4 5 6 ...
from convenience_hole import all_hands_in_range from convenience import pr from deuces.deuces import Card, Evaluator e = Evaluator() basic_keys = [] rc_counts = {} for i in range(1,10): s = e.class_to_string(i) basic_keys.append(s) rc_counts[s] = 0 ## Two input vars: board = [Card.new('Qs'), Card.new('Jd...
from convenience_hole import all_hands_in_range from convenience import pr from deuces.deuces import Card, Evaluator e = Evaluator() board = [Card.new('Qs'), Card.new('Jd'), Card.new('2c')] range_list = ['AA', 'KK', 'QQ', 'AK', 'AKs'] ## tricky ones highlighted: ## 1 2 3 4 5 6 7 8...
<commit_before>from convenience_hole import all_hands_in_range from convenience import pr from deuces.deuces import Card, Evaluator e = Evaluator() board = [Card.new('Qs'), Card.new('Jd'), Card.new('2c')] range_list = ['AA', 'KK', 'QQ', 'AK', 'AKs'] ## tricky ones highlighted: ## 1 2 3 4 5 6 ...
aee872021119686f9efa08b1a2933027da3ae3c0
setup.py
setup.py
"""voting setuptools information.""" import setuptools setuptools.setup( name="voting", version="0.0.1", description="UKVoting web systems", author="Jon Ribbens", author_email="[email protected]", url="https://github.com/jribbens/voting", license="MIT", py_modules=["voting"], ...
"""voting setuptools information.""" import setuptools setuptools.setup( name="voting", version="0.0.1", description="UKVoting web systems", author="Jon Ribbens", author_email="[email protected]", url="https://github.com/jribbens/voting", license="MIT", py_modules=["voting"], ...
Update development status to "beta"
Update development status to "beta" It's live on the website so it can't really be called "pre-alpha" anymore!
Python
mit
jribbens/voting,jribbens/voting
"""voting setuptools information.""" import setuptools setuptools.setup( name="voting", version="0.0.1", description="UKVoting web systems", author="Jon Ribbens", author_email="[email protected]", url="https://github.com/jribbens/voting", license="MIT", py_modules=["voting"], ...
"""voting setuptools information.""" import setuptools setuptools.setup( name="voting", version="0.0.1", description="UKVoting web systems", author="Jon Ribbens", author_email="[email protected]", url="https://github.com/jribbens/voting", license="MIT", py_modules=["voting"], ...
<commit_before>"""voting setuptools information.""" import setuptools setuptools.setup( name="voting", version="0.0.1", description="UKVoting web systems", author="Jon Ribbens", author_email="[email protected]", url="https://github.com/jribbens/voting", license="MIT", py_modul...
"""voting setuptools information.""" import setuptools setuptools.setup( name="voting", version="0.0.1", description="UKVoting web systems", author="Jon Ribbens", author_email="[email protected]", url="https://github.com/jribbens/voting", license="MIT", py_modules=["voting"], ...
"""voting setuptools information.""" import setuptools setuptools.setup( name="voting", version="0.0.1", description="UKVoting web systems", author="Jon Ribbens", author_email="[email protected]", url="https://github.com/jribbens/voting", license="MIT", py_modules=["voting"], ...
<commit_before>"""voting setuptools information.""" import setuptools setuptools.setup( name="voting", version="0.0.1", description="UKVoting web systems", author="Jon Ribbens", author_email="[email protected]", url="https://github.com/jribbens/voting", license="MIT", py_modul...
d1ffc7a842fbe216bc4ef180ada54a016801caab
setup.py
setup.py
# -*- coding: utf-8 -*- try: from setuptools import setup except ImportError: from distutils.core import setup from setuptools import find_packages setup( name='django-password-reset', version=__import__('password_reset').__version__, author='Bruno Renie', author_email='[email protected]', p...
# -*- coding: utf-8 -*- try: from setuptools import setup except ImportError: from distutils.core import setup from setuptools import find_packages setup( name='django-password-reset', version=__import__('password_reset').__version__, author='Bruno Renie', author_email='[email protected]', p...
Add Django version trove classifiers
Add Django version trove classifiers
Python
bsd-3-clause
brutasse/django-password-reset,brutasse/django-password-reset
# -*- coding: utf-8 -*- try: from setuptools import setup except ImportError: from distutils.core import setup from setuptools import find_packages setup( name='django-password-reset', version=__import__('password_reset').__version__, author='Bruno Renie', author_email='[email protected]', p...
# -*- coding: utf-8 -*- try: from setuptools import setup except ImportError: from distutils.core import setup from setuptools import find_packages setup( name='django-password-reset', version=__import__('password_reset').__version__, author='Bruno Renie', author_email='[email protected]', p...
<commit_before># -*- coding: utf-8 -*- try: from setuptools import setup except ImportError: from distutils.core import setup from setuptools import find_packages setup( name='django-password-reset', version=__import__('password_reset').__version__, author='Bruno Renie', author_email='bruno@r...
# -*- coding: utf-8 -*- try: from setuptools import setup except ImportError: from distutils.core import setup from setuptools import find_packages setup( name='django-password-reset', version=__import__('password_reset').__version__, author='Bruno Renie', author_email='[email protected]', p...
# -*- coding: utf-8 -*- try: from setuptools import setup except ImportError: from distutils.core import setup from setuptools import find_packages setup( name='django-password-reset', version=__import__('password_reset').__version__, author='Bruno Renie', author_email='[email protected]', p...
<commit_before># -*- coding: utf-8 -*- try: from setuptools import setup except ImportError: from distutils.core import setup from setuptools import find_packages setup( name='django-password-reset', version=__import__('password_reset').__version__, author='Bruno Renie', author_email='bruno@r...
ec5545c81369497304382a132b1143ac21a18b01
setup.py
setup.py
try: from setuptools import setup except ImportError: from distutils.core import setup setup(name = "clrsvsim", version = "0.0.2", description = "Color Genomics Structural Variant Simulator", author = "Color Genomics", author_email = "[email protected]", url = "https://github.com/Col...
try: from setuptools import setup except ImportError: from distutils.core import setup setup(name = "clrsvsim", version = "0.0.2", description = "Color Genomics Structural Variant Simulator", author = "Color Genomics", author_email = "[email protected]", url = "https://github.com/Col...
Drop `mock` and `nose` as package dependencies
Drop `mock` and `nose` as package dependencies That `nose` is used as a test runner (and `mock` is used in those tests) has nothing to do with the package itself. Rather, these are just dependencies needed in order to *run tests.* Note that we're still pinning to very precise version numbers, for no particularly comp...
Python
apache-2.0
color/clrsvsim
try: from setuptools import setup except ImportError: from distutils.core import setup setup(name = "clrsvsim", version = "0.0.2", description = "Color Genomics Structural Variant Simulator", author = "Color Genomics", author_email = "[email protected]", url = "https://github.com/Col...
try: from setuptools import setup except ImportError: from distutils.core import setup setup(name = "clrsvsim", version = "0.0.2", description = "Color Genomics Structural Variant Simulator", author = "Color Genomics", author_email = "[email protected]", url = "https://github.com/Col...
<commit_before>try: from setuptools import setup except ImportError: from distutils.core import setup setup(name = "clrsvsim", version = "0.0.2", description = "Color Genomics Structural Variant Simulator", author = "Color Genomics", author_email = "[email protected]", url = "https:/...
try: from setuptools import setup except ImportError: from distutils.core import setup setup(name = "clrsvsim", version = "0.0.2", description = "Color Genomics Structural Variant Simulator", author = "Color Genomics", author_email = "[email protected]", url = "https://github.com/Col...
try: from setuptools import setup except ImportError: from distutils.core import setup setup(name = "clrsvsim", version = "0.0.2", description = "Color Genomics Structural Variant Simulator", author = "Color Genomics", author_email = "[email protected]", url = "https://github.com/Col...
<commit_before>try: from setuptools import setup except ImportError: from distutils.core import setup setup(name = "clrsvsim", version = "0.0.2", description = "Color Genomics Structural Variant Simulator", author = "Color Genomics", author_email = "[email protected]", url = "https:/...
4301049ac2ad9d0c79b5f50fea2055ec2d567019
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup setup( name = "blynk-library-python", version = "0.1.0", #blynk.lib.__version__ description = "Blynk library", platforms = "any", url = "http://www.blynk.cc", license = "MIT", author = "Volodymyr Shyman...
#!/usr/bin/env python from setuptools import setup setup( name = "blynk-library-python", version = "0.1.0", #blynk.lib.__version__ description = "Blynk library", platforms = "any", url = "http://www.blynk.cc", license = "MIT", author = "Volodymyr Shyman...
Move to Development Status :: 4 - Beta
Move to Development Status :: 4 - Beta
Python
mit
vshymanskyy/blynk-library-python
#!/usr/bin/env python from setuptools import setup setup( name = "blynk-library-python", version = "0.1.0", #blynk.lib.__version__ description = "Blynk library", platforms = "any", url = "http://www.blynk.cc", license = "MIT", author = "Volodymyr Shyman...
#!/usr/bin/env python from setuptools import setup setup( name = "blynk-library-python", version = "0.1.0", #blynk.lib.__version__ description = "Blynk library", platforms = "any", url = "http://www.blynk.cc", license = "MIT", author = "Volodymyr Shyman...
<commit_before>#!/usr/bin/env python from setuptools import setup setup( name = "blynk-library-python", version = "0.1.0", #blynk.lib.__version__ description = "Blynk library", platforms = "any", url = "http://www.blynk.cc", license = "MIT", author = "V...
#!/usr/bin/env python from setuptools import setup setup( name = "blynk-library-python", version = "0.1.0", #blynk.lib.__version__ description = "Blynk library", platforms = "any", url = "http://www.blynk.cc", license = "MIT", author = "Volodymyr Shyman...
#!/usr/bin/env python from setuptools import setup setup( name = "blynk-library-python", version = "0.1.0", #blynk.lib.__version__ description = "Blynk library", platforms = "any", url = "http://www.blynk.cc", license = "MIT", author = "Volodymyr Shyman...
<commit_before>#!/usr/bin/env python from setuptools import setup setup( name = "blynk-library-python", version = "0.1.0", #blynk.lib.__version__ description = "Blynk library", platforms = "any", url = "http://www.blynk.cc", license = "MIT", author = "V...
1b953be2592d2e9fc68da9e6c5a683ea8dee6b10
setup.py
setup.py
#!/usr/bin/env python from distutils.core import setup from distutils.file_utl import copy_file import platform version = "0.1.0" setup(name="riemann-sumd", version=version, description="Python agent for scheduling event generating processes and sending the results to Riemann", author="Brian Hatfiel...
#!/usr/bin/env python from distutils.core import setup from distutils.file_util import copy_file import platform version = "0.1.0" setup(name="riemann-sumd", version=version, description="Python agent for scheduling event generating processes and sending the results to Riemann", author="Brian Hatfie...
Fix typo in file_util import
Fix typo in file_util import
Python
mit
crashlytics/riemann-sumd
#!/usr/bin/env python from distutils.core import setup from distutils.file_utl import copy_file import platform version = "0.1.0" setup(name="riemann-sumd", version=version, description="Python agent for scheduling event generating processes and sending the results to Riemann", author="Brian Hatfiel...
#!/usr/bin/env python from distutils.core import setup from distutils.file_util import copy_file import platform version = "0.1.0" setup(name="riemann-sumd", version=version, description="Python agent for scheduling event generating processes and sending the results to Riemann", author="Brian Hatfie...
<commit_before>#!/usr/bin/env python from distutils.core import setup from distutils.file_utl import copy_file import platform version = "0.1.0" setup(name="riemann-sumd", version=version, description="Python agent for scheduling event generating processes and sending the results to Riemann", author...
#!/usr/bin/env python from distutils.core import setup from distutils.file_util import copy_file import platform version = "0.1.0" setup(name="riemann-sumd", version=version, description="Python agent for scheduling event generating processes and sending the results to Riemann", author="Brian Hatfie...
#!/usr/bin/env python from distutils.core import setup from distutils.file_utl import copy_file import platform version = "0.1.0" setup(name="riemann-sumd", version=version, description="Python agent for scheduling event generating processes and sending the results to Riemann", author="Brian Hatfiel...
<commit_before>#!/usr/bin/env python from distutils.core import setup from distutils.file_utl import copy_file import platform version = "0.1.0" setup(name="riemann-sumd", version=version, description="Python agent for scheduling event generating processes and sending the results to Riemann", author...
3ed984c402a74d3b3411f3410d932d12b164737b
setup.py
setup.py
from setuptools import setup setup( name='jsonate', version='0.3.2', author='James Robert', author_email='[email protected]', description=('Django library that can make ANYTHING into json'), long_description=open('README.markdown').read(), license='MIT', keywords='django j...
from setuptools import setup setup( name='jsonate', version='0.4.0', author='James Robert', author_email='[email protected]', description=('Django library that can make ANYTHING into json'), long_description=open('README.markdown').read(), license='MIT', keywords='django j...
Increment version for django 1.9 support
Increment version for django 1.9 support
Python
mit
Rootbuzz/JSONate
from setuptools import setup setup( name='jsonate', version='0.3.2', author='James Robert', author_email='[email protected]', description=('Django library that can make ANYTHING into json'), long_description=open('README.markdown').read(), license='MIT', keywords='django j...
from setuptools import setup setup( name='jsonate', version='0.4.0', author='James Robert', author_email='[email protected]', description=('Django library that can make ANYTHING into json'), long_description=open('README.markdown').read(), license='MIT', keywords='django j...
<commit_before>from setuptools import setup setup( name='jsonate', version='0.3.2', author='James Robert', author_email='[email protected]', description=('Django library that can make ANYTHING into json'), long_description=open('README.markdown').read(), license='MIT', key...
from setuptools import setup setup( name='jsonate', version='0.4.0', author='James Robert', author_email='[email protected]', description=('Django library that can make ANYTHING into json'), long_description=open('README.markdown').read(), license='MIT', keywords='django j...
from setuptools import setup setup( name='jsonate', version='0.3.2', author='James Robert', author_email='[email protected]', description=('Django library that can make ANYTHING into json'), long_description=open('README.markdown').read(), license='MIT', keywords='django j...
<commit_before>from setuptools import setup setup( name='jsonate', version='0.3.2', author='James Robert', author_email='[email protected]', description=('Django library that can make ANYTHING into json'), long_description=open('README.markdown').read(), license='MIT', key...
ecc2a444294bffd8295f7cfe92f9b6612205019d
setup.py
setup.py
#!/usr/bin/env python # Copyright (c) 2013 AT&T. All right reserved. from setuptools import setup, find_packages # move version string out of setup so it is readily available to others from inception import __version__ setup( name='inception', version=__version__, description="Inception: Towards a Nested...
#!/usr/bin/env python # Copyright (c) 2013 AT&T. All right reserved. from setuptools import find_packages from setuptools import setup # move version string out of setup so it is readily available to others from inception import __version__ setup( name='inception', version=__version__, description="Incep...
Break multiple imports to multiple lines
Break multiple imports to multiple lines Change-Id: I62ba21f4447fada5bf1b86c261d0f7a65681ba76
Python
apache-2.0
stackforge/inception,stackforge/inception
#!/usr/bin/env python # Copyright (c) 2013 AT&T. All right reserved. from setuptools import setup, find_packages # move version string out of setup so it is readily available to others from inception import __version__ setup( name='inception', version=__version__, description="Inception: Towards a Nested...
#!/usr/bin/env python # Copyright (c) 2013 AT&T. All right reserved. from setuptools import find_packages from setuptools import setup # move version string out of setup so it is readily available to others from inception import __version__ setup( name='inception', version=__version__, description="Incep...
<commit_before>#!/usr/bin/env python # Copyright (c) 2013 AT&T. All right reserved. from setuptools import setup, find_packages # move version string out of setup so it is readily available to others from inception import __version__ setup( name='inception', version=__version__, description="Inception: T...
#!/usr/bin/env python # Copyright (c) 2013 AT&T. All right reserved. from setuptools import find_packages from setuptools import setup # move version string out of setup so it is readily available to others from inception import __version__ setup( name='inception', version=__version__, description="Incep...
#!/usr/bin/env python # Copyright (c) 2013 AT&T. All right reserved. from setuptools import setup, find_packages # move version string out of setup so it is readily available to others from inception import __version__ setup( name='inception', version=__version__, description="Inception: Towards a Nested...
<commit_before>#!/usr/bin/env python # Copyright (c) 2013 AT&T. All right reserved. from setuptools import setup, find_packages # move version string out of setup so it is readily available to others from inception import __version__ setup( name='inception', version=__version__, description="Inception: T...
c6f36b517c294d368a7bc75dc359ab32b5917228
setup.py
setup.py
from setuptools import setup setup( name='django-waffle', version='0.7', description='A feature flipper for Django.', long_description=open('README.rst').read(), author='James Socol', author_email='[email protected]', url='http://github.com/jsocol/django-waffle', license='BSD', ...
from setuptools import setup, find_packages setup( name='django-waffle', version='0.7.1', description='A feature flipper for Django.', long_description=open('README.rst').read(), author='James Socol', author_email='[email protected]', url='http://github.com/jsocol/django-waffle', li...
Switch to find_packages. Bump for PyPI.
Switch to find_packages. Bump for PyPI.
Python
bsd-3-clause
ilanbm/django-waffle,JeLoueMonCampingCar/django-waffle,ilanbm/django-waffle,isotoma/django-waffle,ilanbm/django-waffle,groovecoder/django-waffle,rsalmaso/django-waffle,mark-adams/django-waffle,JeLoueMonCampingCar/django-waffle,rodgomes/django-waffle,TwigWorld/django-waffle,webus/django-waffle,paulcwatts/django-waffle,e...
from setuptools import setup setup( name='django-waffle', version='0.7', description='A feature flipper for Django.', long_description=open('README.rst').read(), author='James Socol', author_email='[email protected]', url='http://github.com/jsocol/django-waffle', license='BSD', ...
from setuptools import setup, find_packages setup( name='django-waffle', version='0.7.1', description='A feature flipper for Django.', long_description=open('README.rst').read(), author='James Socol', author_email='[email protected]', url='http://github.com/jsocol/django-waffle', li...
<commit_before>from setuptools import setup setup( name='django-waffle', version='0.7', description='A feature flipper for Django.', long_description=open('README.rst').read(), author='James Socol', author_email='[email protected]', url='http://github.com/jsocol/django-waffle', lice...
from setuptools import setup, find_packages setup( name='django-waffle', version='0.7.1', description='A feature flipper for Django.', long_description=open('README.rst').read(), author='James Socol', author_email='[email protected]', url='http://github.com/jsocol/django-waffle', li...
from setuptools import setup setup( name='django-waffle', version='0.7', description='A feature flipper for Django.', long_description=open('README.rst').read(), author='James Socol', author_email='[email protected]', url='http://github.com/jsocol/django-waffle', license='BSD', ...
<commit_before>from setuptools import setup setup( name='django-waffle', version='0.7', description='A feature flipper for Django.', long_description=open('README.rst').read(), author='James Socol', author_email='[email protected]', url='http://github.com/jsocol/django-waffle', lice...
72ab88b892209249f731242e85603dab691180c2
setup.py
setup.py
import os from setuptools import setup, find_packages setup( name='docstash', version='0.2.2', description="Store a set of documents and metadata in an organized way", long_description="", classifiers=[ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "O...
from setuptools import setup, find_packages setup( name='barn', version='0.0.1', description="Store a set of files and metadata in an organized way", long_description="", classifiers=[ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "Operating System ::...
Rename the python package to barn.
Rename the python package to barn.
Python
mit
pudo/archivekit
import os from setuptools import setup, find_packages setup( name='docstash', version='0.2.2', description="Store a set of documents and metadata in an organized way", long_description="", classifiers=[ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "O...
from setuptools import setup, find_packages setup( name='barn', version='0.0.1', description="Store a set of files and metadata in an organized way", long_description="", classifiers=[ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "Operating System ::...
<commit_before>import os from setuptools import setup, find_packages setup( name='docstash', version='0.2.2', description="Store a set of documents and metadata in an organized way", long_description="", classifiers=[ "Development Status :: 3 - Alpha", "Intended Audience :: Develope...
from setuptools import setup, find_packages setup( name='barn', version='0.0.1', description="Store a set of files and metadata in an organized way", long_description="", classifiers=[ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "Operating System ::...
import os from setuptools import setup, find_packages setup( name='docstash', version='0.2.2', description="Store a set of documents and metadata in an organized way", long_description="", classifiers=[ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "O...
<commit_before>import os from setuptools import setup, find_packages setup( name='docstash', version='0.2.2', description="Store a set of documents and metadata in an organized way", long_description="", classifiers=[ "Development Status :: 3 - Alpha", "Intended Audience :: Develope...
f93362273afc341ba4b5c458adc5946d8019a992
setup.py
setup.py
import os.path from setuptools import setup, find_packages import stun def main(): src = os.path.realpath(os.path.dirname(__file__)) README = open(os.path.join(src, 'README.rst')).read() setup( name='pystun', version=stun.__version__, packages=find_packages(), scripts=['b...
import os.path from setuptools import setup, find_packages import stun def main(): src = os.path.realpath(os.path.dirname(__file__)) README = open(os.path.join(src, 'README.rst')).read() setup( name='pystun', version=stun.__version__, packages=find_packages(), scripts=['b...
Add a few PyPI classifiers.
Add a few PyPI classifiers.
Python
mit
jtriley/pystun,b1naryth1ef/pystun
import os.path from setuptools import setup, find_packages import stun def main(): src = os.path.realpath(os.path.dirname(__file__)) README = open(os.path.join(src, 'README.rst')).read() setup( name='pystun', version=stun.__version__, packages=find_packages(), scripts=['b...
import os.path from setuptools import setup, find_packages import stun def main(): src = os.path.realpath(os.path.dirname(__file__)) README = open(os.path.join(src, 'README.rst')).read() setup( name='pystun', version=stun.__version__, packages=find_packages(), scripts=['b...
<commit_before>import os.path from setuptools import setup, find_packages import stun def main(): src = os.path.realpath(os.path.dirname(__file__)) README = open(os.path.join(src, 'README.rst')).read() setup( name='pystun', version=stun.__version__, packages=find_packages(), ...
import os.path from setuptools import setup, find_packages import stun def main(): src = os.path.realpath(os.path.dirname(__file__)) README = open(os.path.join(src, 'README.rst')).read() setup( name='pystun', version=stun.__version__, packages=find_packages(), scripts=['b...
import os.path from setuptools import setup, find_packages import stun def main(): src = os.path.realpath(os.path.dirname(__file__)) README = open(os.path.join(src, 'README.rst')).read() setup( name='pystun', version=stun.__version__, packages=find_packages(), scripts=['b...
<commit_before>import os.path from setuptools import setup, find_packages import stun def main(): src = os.path.realpath(os.path.dirname(__file__)) README = open(os.path.join(src, 'README.rst')).read() setup( name='pystun', version=stun.__version__, packages=find_packages(), ...
475170acd3119cfa35112f6e470a33dc1f47e5ef
setup.py
setup.py
from setuptools import setup, find_packages import os def read(fn): """ Read the contents of the provided filename. Args: fn: The filename to read in. Returns: The contents of the file. """ abs_fn = os.path.join(os.path.dirname(__file__), fn) f = open(abs_fn) contents = f.read...
from setuptools import setup import os def read(fn): """ Read the contents of the provided filename. Args: fn: The filename to read in. Returns: The contents of the file. """ abs_fn = os.path.join(os.path.dirname(__file__), fn) f = open(abs_fn) contents = f.read() f.close(...
Update to not include test packages.
Update to not include test packages.
Python
mit
pyconll/pyconll,pyconll/pyconll
from setuptools import setup, find_packages import os def read(fn): """ Read the contents of the provided filename. Args: fn: The filename to read in. Returns: The contents of the file. """ abs_fn = os.path.join(os.path.dirname(__file__), fn) f = open(abs_fn) contents = f.read...
from setuptools import setup import os def read(fn): """ Read the contents of the provided filename. Args: fn: The filename to read in. Returns: The contents of the file. """ abs_fn = os.path.join(os.path.dirname(__file__), fn) f = open(abs_fn) contents = f.read() f.close(...
<commit_before>from setuptools import setup, find_packages import os def read(fn): """ Read the contents of the provided filename. Args: fn: The filename to read in. Returns: The contents of the file. """ abs_fn = os.path.join(os.path.dirname(__file__), fn) f = open(abs_fn) co...
from setuptools import setup import os def read(fn): """ Read the contents of the provided filename. Args: fn: The filename to read in. Returns: The contents of the file. """ abs_fn = os.path.join(os.path.dirname(__file__), fn) f = open(abs_fn) contents = f.read() f.close(...
from setuptools import setup, find_packages import os def read(fn): """ Read the contents of the provided filename. Args: fn: The filename to read in. Returns: The contents of the file. """ abs_fn = os.path.join(os.path.dirname(__file__), fn) f = open(abs_fn) contents = f.read...
<commit_before>from setuptools import setup, find_packages import os def read(fn): """ Read the contents of the provided filename. Args: fn: The filename to read in. Returns: The contents of the file. """ abs_fn = os.path.join(os.path.dirname(__file__), fn) f = open(abs_fn) co...
f36db59a863c3208955a3f64ccd2c98d8a450f9b
setup.py
setup.py
from setuptools import setup setup( name='docker-ipsec', version='2.0.3', description='Scripts to start/stop ipsec VPN tunnels while adding/removing iptables rules for docker networking.', author='Christopher Brichford', author_email='[email protected]', license='Apache License ...
from setuptools import setup setup( name='docker-ipsec', version='3.0.0', description='Scripts to start/stop ipsec VPN tunnels while adding/removing iptables rules for docker networking.', author='Christopher Brichford', author_email='[email protected]', license='Apache License ...
Upgrade all dependencies to latest version.
Upgrade all dependencies to latest version.
Python
apache-2.0
cbrichford/docker-ipsec
from setuptools import setup setup( name='docker-ipsec', version='2.0.3', description='Scripts to start/stop ipsec VPN tunnels while adding/removing iptables rules for docker networking.', author='Christopher Brichford', author_email='[email protected]', license='Apache License ...
from setuptools import setup setup( name='docker-ipsec', version='3.0.0', description='Scripts to start/stop ipsec VPN tunnels while adding/removing iptables rules for docker networking.', author='Christopher Brichford', author_email='[email protected]', license='Apache License ...
<commit_before>from setuptools import setup setup( name='docker-ipsec', version='2.0.3', description='Scripts to start/stop ipsec VPN tunnels while adding/removing iptables rules for docker networking.', author='Christopher Brichford', author_email='[email protected]', license='...
from setuptools import setup setup( name='docker-ipsec', version='3.0.0', description='Scripts to start/stop ipsec VPN tunnels while adding/removing iptables rules for docker networking.', author='Christopher Brichford', author_email='[email protected]', license='Apache License ...
from setuptools import setup setup( name='docker-ipsec', version='2.0.3', description='Scripts to start/stop ipsec VPN tunnels while adding/removing iptables rules for docker networking.', author='Christopher Brichford', author_email='[email protected]', license='Apache License ...
<commit_before>from setuptools import setup setup( name='docker-ipsec', version='2.0.3', description='Scripts to start/stop ipsec VPN tunnels while adding/removing iptables rules for docker networking.', author='Christopher Brichford', author_email='[email protected]', license='...
4121ce6f097894c666eadddcc8405b13eb6ba56a
setup.py
setup.py
from setuptools import setup setup( name='pygelf', version='0.2.8', packages=['pygelf'], description='Logging handlers with GELF support', keywords='logging udp tcp ssl tls graylog2 graylog gelf', author='Ivan Mukhin', author_email='[email protected]', url='https://github.com/keepro...
from setuptools import setup setup( name='pygelf', version='0.2.8', packages=['pygelf'], description='Logging handlers with GELF support', keywords='logging udp tcp ssl tls graylog2 graylog gelf', author='Ivan Mukhin', author_email='[email protected]', url='https://github.com/keepro...
Add PyPi trove classifiers to document Python 3 support. Add other applicable classifiers while we're here.
Add PyPi trove classifiers to document Python 3 support. Add other applicable classifiers while we're here.
Python
mit
keeprocking/pygelf,keeprocking/pygelf
from setuptools import setup setup( name='pygelf', version='0.2.8', packages=['pygelf'], description='Logging handlers with GELF support', keywords='logging udp tcp ssl tls graylog2 graylog gelf', author='Ivan Mukhin', author_email='[email protected]', url='https://github.com/keepro...
from setuptools import setup setup( name='pygelf', version='0.2.8', packages=['pygelf'], description='Logging handlers with GELF support', keywords='logging udp tcp ssl tls graylog2 graylog gelf', author='Ivan Mukhin', author_email='[email protected]', url='https://github.com/keepro...
<commit_before>from setuptools import setup setup( name='pygelf', version='0.2.8', packages=['pygelf'], description='Logging handlers with GELF support', keywords='logging udp tcp ssl tls graylog2 graylog gelf', author='Ivan Mukhin', author_email='[email protected]', url='https://gi...
from setuptools import setup setup( name='pygelf', version='0.2.8', packages=['pygelf'], description='Logging handlers with GELF support', keywords='logging udp tcp ssl tls graylog2 graylog gelf', author='Ivan Mukhin', author_email='[email protected]', url='https://github.com/keepro...
from setuptools import setup setup( name='pygelf', version='0.2.8', packages=['pygelf'], description='Logging handlers with GELF support', keywords='logging udp tcp ssl tls graylog2 graylog gelf', author='Ivan Mukhin', author_email='[email protected]', url='https://github.com/keepro...
<commit_before>from setuptools import setup setup( name='pygelf', version='0.2.8', packages=['pygelf'], description='Logging handlers with GELF support', keywords='logging udp tcp ssl tls graylog2 graylog gelf', author='Ivan Mukhin', author_email='[email protected]', url='https://gi...
c0a5d8143b87126f78e2c836f9edb5480cb6d317
setup.py
setup.py
#/usr/bin/env python import os from setuptools import setup, find_packages ROOT_DIR = os.path.dirname(__file__) SOURCE_DIR = os.path.join(ROOT_DIR) # Dynamically calculate the version based on photologue.VERSION version_tuple = __import__('photologue').VERSION if len(version_tuple) == 3: version = "%d.%d_%s" % ve...
#/usr/bin/env python import os from setuptools import setup, find_packages ROOT_DIR = os.path.dirname(__file__) SOURCE_DIR = os.path.join(ROOT_DIR) # Dynamically calculate the version based on photologue.VERSION version_tuple = __import__('photologue').VERSION if len(version_tuple) == 3: version = "%d.%d_%s" % ve...
Add dependency on Django 1.3.
Add dependency on Django 1.3.
Python
bsd-3-clause
rmaceissoft/django-photologue,jlemaes/django-photologue,seedwithroot/django-photologue-clone,rmaceissoft/django-photologue,rmaceissoft/django-photologue,MathieuDuponchelle/my_patched_photologue,RossLYoung/django-photologue,jlemaes/django-photologue,seedwithroot/django-photologue-clone,jlemaes/django-photologue,MathieuD...
#/usr/bin/env python import os from setuptools import setup, find_packages ROOT_DIR = os.path.dirname(__file__) SOURCE_DIR = os.path.join(ROOT_DIR) # Dynamically calculate the version based on photologue.VERSION version_tuple = __import__('photologue').VERSION if len(version_tuple) == 3: version = "%d.%d_%s" % ve...
#/usr/bin/env python import os from setuptools import setup, find_packages ROOT_DIR = os.path.dirname(__file__) SOURCE_DIR = os.path.join(ROOT_DIR) # Dynamically calculate the version based on photologue.VERSION version_tuple = __import__('photologue').VERSION if len(version_tuple) == 3: version = "%d.%d_%s" % ve...
<commit_before>#/usr/bin/env python import os from setuptools import setup, find_packages ROOT_DIR = os.path.dirname(__file__) SOURCE_DIR = os.path.join(ROOT_DIR) # Dynamically calculate the version based on photologue.VERSION version_tuple = __import__('photologue').VERSION if len(version_tuple) == 3: version = ...
#/usr/bin/env python import os from setuptools import setup, find_packages ROOT_DIR = os.path.dirname(__file__) SOURCE_DIR = os.path.join(ROOT_DIR) # Dynamically calculate the version based on photologue.VERSION version_tuple = __import__('photologue').VERSION if len(version_tuple) == 3: version = "%d.%d_%s" % ve...
#/usr/bin/env python import os from setuptools import setup, find_packages ROOT_DIR = os.path.dirname(__file__) SOURCE_DIR = os.path.join(ROOT_DIR) # Dynamically calculate the version based on photologue.VERSION version_tuple = __import__('photologue').VERSION if len(version_tuple) == 3: version = "%d.%d_%s" % ve...
<commit_before>#/usr/bin/env python import os from setuptools import setup, find_packages ROOT_DIR = os.path.dirname(__file__) SOURCE_DIR = os.path.join(ROOT_DIR) # Dynamically calculate the version based on photologue.VERSION version_tuple = __import__('photologue').VERSION if len(version_tuple) == 3: version = ...
142655a4703aab92619c335e370de1da2af47ff8
setup.py
setup.py
from setuptools import setup, find_packages, Command version = __import__('eemeter').get_version() long_description = "Standard methods for calculating energy efficiency savings." class PyTest(Command): user_options = [] def initialize_options(self): pass def finalize_options(self): pass...
from setuptools import setup, find_packages, Command version = __import__('eemeter').get_version() long_description = "Standard methods for calculating energy efficiency savings." class PyTest(Command): user_options = [] def initialize_options(self): pass def finalize_options(self): pass...
Add whitespace to trigger travis
Add whitespace to trigger travis
Python
apache-2.0
impactlab/eemeter,openeemeter/eemeter,openeemeter/eemeter
from setuptools import setup, find_packages, Command version = __import__('eemeter').get_version() long_description = "Standard methods for calculating energy efficiency savings." class PyTest(Command): user_options = [] def initialize_options(self): pass def finalize_options(self): pass...
from setuptools import setup, find_packages, Command version = __import__('eemeter').get_version() long_description = "Standard methods for calculating energy efficiency savings." class PyTest(Command): user_options = [] def initialize_options(self): pass def finalize_options(self): pass...
<commit_before>from setuptools import setup, find_packages, Command version = __import__('eemeter').get_version() long_description = "Standard methods for calculating energy efficiency savings." class PyTest(Command): user_options = [] def initialize_options(self): pass def finalize_options(self...
from setuptools import setup, find_packages, Command version = __import__('eemeter').get_version() long_description = "Standard methods for calculating energy efficiency savings." class PyTest(Command): user_options = [] def initialize_options(self): pass def finalize_options(self): pass...
from setuptools import setup, find_packages, Command version = __import__('eemeter').get_version() long_description = "Standard methods for calculating energy efficiency savings." class PyTest(Command): user_options = [] def initialize_options(self): pass def finalize_options(self): pass...
<commit_before>from setuptools import setup, find_packages, Command version = __import__('eemeter').get_version() long_description = "Standard methods for calculating energy efficiency savings." class PyTest(Command): user_options = [] def initialize_options(self): pass def finalize_options(self...
e493ed3aef03768ba48d0bc5a149af55166e611c
setup.py
setup.py
# vim:fileencoding=utf-8 # Copyright (c) gocept gmbh & co. kg # See also LICENSE.txt import os.path from setuptools import setup, find_packages setup( name='pycountry', version='1.12.dev0', author='Christian Theune', author_email='[email protected]', description='ISO country, subdivision, language, c...
# vim:fileencoding=utf-8 # Copyright -2014 (c) gocept gmbh & co. kg # Copyright 2015- (c) Flying Circus Internet Operations GmbH # See also LICENSE.txt from setuptools import setup, find_packages setup( name='pycountry', version='1.12.dev0', author='Christian Theune', author_email='[email protected]...
Update my contacts and the copyright.
Update my contacts and the copyright.
Python
lgpl-2.1
flyingcircusio/pycountry
# vim:fileencoding=utf-8 # Copyright (c) gocept gmbh & co. kg # See also LICENSE.txt import os.path from setuptools import setup, find_packages setup( name='pycountry', version='1.12.dev0', author='Christian Theune', author_email='[email protected]', description='ISO country, subdivision, language, c...
# vim:fileencoding=utf-8 # Copyright -2014 (c) gocept gmbh & co. kg # Copyright 2015- (c) Flying Circus Internet Operations GmbH # See also LICENSE.txt from setuptools import setup, find_packages setup( name='pycountry', version='1.12.dev0', author='Christian Theune', author_email='[email protected]...
<commit_before># vim:fileencoding=utf-8 # Copyright (c) gocept gmbh & co. kg # See also LICENSE.txt import os.path from setuptools import setup, find_packages setup( name='pycountry', version='1.12.dev0', author='Christian Theune', author_email='[email protected]', description='ISO country, subdivisi...
# vim:fileencoding=utf-8 # Copyright -2014 (c) gocept gmbh & co. kg # Copyright 2015- (c) Flying Circus Internet Operations GmbH # See also LICENSE.txt from setuptools import setup, find_packages setup( name='pycountry', version='1.12.dev0', author='Christian Theune', author_email='[email protected]...
# vim:fileencoding=utf-8 # Copyright (c) gocept gmbh & co. kg # See also LICENSE.txt import os.path from setuptools import setup, find_packages setup( name='pycountry', version='1.12.dev0', author='Christian Theune', author_email='[email protected]', description='ISO country, subdivision, language, c...
<commit_before># vim:fileencoding=utf-8 # Copyright (c) gocept gmbh & co. kg # See also LICENSE.txt import os.path from setuptools import setup, find_packages setup( name='pycountry', version='1.12.dev0', author='Christian Theune', author_email='[email protected]', description='ISO country, subdivisi...
88d405cb9ccea8b591fd282d89e1b47f13a12d7c
setup.py
setup.py
#!/usr/bin/env python # -*- encoding: utf-8 -*- """ Install the wakeonlan module. """ from setuptools import setup with open('README.rst') as f: readme = f.read() setup( name='wakeonlan', description='A small python module for wake on lan.', url='https://github.com/remcohaszing/pywakeonlan', aut...
#!/usr/bin/env python # -*- encoding: utf-8 -*- """ Install the wakeonlan module. """ from setuptools import setup with open('README.rst') as f: readme = f.read() setup( name='wakeonlan', description='A small python module for wake on lan.', project_urls={ 'Documentation': 'http://pywakeonla...
Replace url with multiple project urls
Replace url with multiple project urls
Python
mit
remcohaszing/pywakeonlan
#!/usr/bin/env python # -*- encoding: utf-8 -*- """ Install the wakeonlan module. """ from setuptools import setup with open('README.rst') as f: readme = f.read() setup( name='wakeonlan', description='A small python module for wake on lan.', url='https://github.com/remcohaszing/pywakeonlan', aut...
#!/usr/bin/env python # -*- encoding: utf-8 -*- """ Install the wakeonlan module. """ from setuptools import setup with open('README.rst') as f: readme = f.read() setup( name='wakeonlan', description='A small python module for wake on lan.', project_urls={ 'Documentation': 'http://pywakeonla...
<commit_before>#!/usr/bin/env python # -*- encoding: utf-8 -*- """ Install the wakeonlan module. """ from setuptools import setup with open('README.rst') as f: readme = f.read() setup( name='wakeonlan', description='A small python module for wake on lan.', url='https://github.com/remcohaszing/pywake...
#!/usr/bin/env python # -*- encoding: utf-8 -*- """ Install the wakeonlan module. """ from setuptools import setup with open('README.rst') as f: readme = f.read() setup( name='wakeonlan', description='A small python module for wake on lan.', project_urls={ 'Documentation': 'http://pywakeonla...
#!/usr/bin/env python # -*- encoding: utf-8 -*- """ Install the wakeonlan module. """ from setuptools import setup with open('README.rst') as f: readme = f.read() setup( name='wakeonlan', description='A small python module for wake on lan.', url='https://github.com/remcohaszing/pywakeonlan', aut...
<commit_before>#!/usr/bin/env python # -*- encoding: utf-8 -*- """ Install the wakeonlan module. """ from setuptools import setup with open('README.rst') as f: readme = f.read() setup( name='wakeonlan', description='A small python module for wake on lan.', url='https://github.com/remcohaszing/pywake...
9a935bf1a82742f223442fa3174db04fad075a6a
hoomd/tuner/sorter.py
hoomd/tuner/sorter.py
from hoomd.operation import _Tuner from hoomd.parameterdicts import ParameterDict from hoomd.typeconverter import OnlyType from hoomd.trigger import Trigger from hoomd import _hoomd from math import log2, ceil def to_power_of_two(value): return int(2. ** ceil(log2(value))) def natural_number(value): try: ...
from hoomd.operation import _Tuner from hoomd.parameterdicts import ParameterDict from hoomd.typeconverter import OnlyType from hoomd.trigger import Trigger from hoomd import _hoomd from math import log2, ceil def to_power_of_two(value): return int(2. ** ceil(log2(value))) def natural_number(value): try: ...
Fix bug in ParticleSorter initialization
Fix bug in ParticleSorter initialization
Python
bsd-3-clause
joaander/hoomd-blue,joaander/hoomd-blue,joaander/hoomd-blue,joaander/hoomd-blue,joaander/hoomd-blue,joaander/hoomd-blue
from hoomd.operation import _Tuner from hoomd.parameterdicts import ParameterDict from hoomd.typeconverter import OnlyType from hoomd.trigger import Trigger from hoomd import _hoomd from math import log2, ceil def to_power_of_two(value): return int(2. ** ceil(log2(value))) def natural_number(value): try: ...
from hoomd.operation import _Tuner from hoomd.parameterdicts import ParameterDict from hoomd.typeconverter import OnlyType from hoomd.trigger import Trigger from hoomd import _hoomd from math import log2, ceil def to_power_of_two(value): return int(2. ** ceil(log2(value))) def natural_number(value): try: ...
<commit_before>from hoomd.operation import _Tuner from hoomd.parameterdicts import ParameterDict from hoomd.typeconverter import OnlyType from hoomd.trigger import Trigger from hoomd import _hoomd from math import log2, ceil def to_power_of_two(value): return int(2. ** ceil(log2(value))) def natural_number(valu...
from hoomd.operation import _Tuner from hoomd.parameterdicts import ParameterDict from hoomd.typeconverter import OnlyType from hoomd.trigger import Trigger from hoomd import _hoomd from math import log2, ceil def to_power_of_two(value): return int(2. ** ceil(log2(value))) def natural_number(value): try: ...
from hoomd.operation import _Tuner from hoomd.parameterdicts import ParameterDict from hoomd.typeconverter import OnlyType from hoomd.trigger import Trigger from hoomd import _hoomd from math import log2, ceil def to_power_of_two(value): return int(2. ** ceil(log2(value))) def natural_number(value): try: ...
<commit_before>from hoomd.operation import _Tuner from hoomd.parameterdicts import ParameterDict from hoomd.typeconverter import OnlyType from hoomd.trigger import Trigger from hoomd import _hoomd from math import log2, ceil def to_power_of_two(value): return int(2. ** ceil(log2(value))) def natural_number(valu...
e42db2036118752df609d13c6487686a07b0b6b3
setup.py
setup.py
from setuptools import setup setup( name = 'fastqp', provides = 'fastqp', version = "0.1.5", author = 'Matthew Shirley', author_email = '[email protected]', url = 'http://mattshirley.com', description = 'Simple NGS read quality assessment using Python', l...
from setuptools import setup setup( name = 'fastqp', provides = 'fastqp', version = "0.1.6", author = 'Matthew Shirley', author_email = '[email protected]', url = 'http://mattshirley.com', description = 'Simple NGS read quality assessment using Python', l...
Remove dependency links for pybloom.
Remove dependency links for pybloom.
Python
mit
mdshw5/fastqp
from setuptools import setup setup( name = 'fastqp', provides = 'fastqp', version = "0.1.5", author = 'Matthew Shirley', author_email = '[email protected]', url = 'http://mattshirley.com', description = 'Simple NGS read quality assessment using Python', l...
from setuptools import setup setup( name = 'fastqp', provides = 'fastqp', version = "0.1.6", author = 'Matthew Shirley', author_email = '[email protected]', url = 'http://mattshirley.com', description = 'Simple NGS read quality assessment using Python', l...
<commit_before>from setuptools import setup setup( name = 'fastqp', provides = 'fastqp', version = "0.1.5", author = 'Matthew Shirley', author_email = '[email protected]', url = 'http://mattshirley.com', description = 'Simple NGS read quality assessment using Pyt...
from setuptools import setup setup( name = 'fastqp', provides = 'fastqp', version = "0.1.6", author = 'Matthew Shirley', author_email = '[email protected]', url = 'http://mattshirley.com', description = 'Simple NGS read quality assessment using Python', l...
from setuptools import setup setup( name = 'fastqp', provides = 'fastqp', version = "0.1.5", author = 'Matthew Shirley', author_email = '[email protected]', url = 'http://mattshirley.com', description = 'Simple NGS read quality assessment using Python', l...
<commit_before>from setuptools import setup setup( name = 'fastqp', provides = 'fastqp', version = "0.1.5", author = 'Matthew Shirley', author_email = '[email protected]', url = 'http://mattshirley.com', description = 'Simple NGS read quality assessment using Pyt...
1c8862832a5b4cbb037ee0e76cf3694bcbf52511
setup.py
setup.py
from setuptools import setup, find_packages version = '0.1' setup(name='mamba', version=version, description="", long_description=open('README.md').read(), classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers keywords='', author='', author...
from setuptools import setup, find_packages version = '0.1' setup(name='mamba', version=version, description="", long_description=open('README.md').read(), classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers keywords='', author='', author...
Use the same packages for installing with pip and distutils
Use the same packages for installing with pip and distutils
Python
mit
dex4er/mamba,eferro/mamba,markng/mamba,jaimegildesagredo/mamba,alejandrodob/mamba,angelsanz/mamba,nestorsalceda/mamba
from setuptools import setup, find_packages version = '0.1' setup(name='mamba', version=version, description="", long_description=open('README.md').read(), classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers keywords='', author='', author...
from setuptools import setup, find_packages version = '0.1' setup(name='mamba', version=version, description="", long_description=open('README.md').read(), classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers keywords='', author='', author...
<commit_before>from setuptools import setup, find_packages version = '0.1' setup(name='mamba', version=version, description="", long_description=open('README.md').read(), classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers keywords='', author='...
from setuptools import setup, find_packages version = '0.1' setup(name='mamba', version=version, description="", long_description=open('README.md').read(), classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers keywords='', author='', author...
from setuptools import setup, find_packages version = '0.1' setup(name='mamba', version=version, description="", long_description=open('README.md').read(), classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers keywords='', author='', author...
<commit_before>from setuptools import setup, find_packages version = '0.1' setup(name='mamba', version=version, description="", long_description=open('README.md').read(), classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers keywords='', author='...
266d268f4463f2ffeb6c0d79d9dd29b409c5510e
setup.py
setup.py
#!/usr/bin/env python from distribute_setup import use_setuptools use_setuptools() from setuptools import setup import re main_py = open('morfessor.py').read() metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", main_py)) requires = [ 'progressbar', ] setup(name='Morfessor', version=metadata['version'...
#!/usr/bin/env python from distribute_setup import use_setuptools use_setuptools() from setuptools import setup import re main_py = open('morfessor.py').read() metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", main_py)) requires = [ # 'progressbar', ] setup(name='Morfessor', version=metadata['version...
Remove progressbar as a requirement
Remove progressbar as a requirement
Python
bsd-2-clause
aalto-speech/morfessor,aalto-speech/flatcat
#!/usr/bin/env python from distribute_setup import use_setuptools use_setuptools() from setuptools import setup import re main_py = open('morfessor.py').read() metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", main_py)) requires = [ 'progressbar', ] setup(name='Morfessor', version=metadata['version'...
#!/usr/bin/env python from distribute_setup import use_setuptools use_setuptools() from setuptools import setup import re main_py = open('morfessor.py').read() metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", main_py)) requires = [ # 'progressbar', ] setup(name='Morfessor', version=metadata['version...
<commit_before>#!/usr/bin/env python from distribute_setup import use_setuptools use_setuptools() from setuptools import setup import re main_py = open('morfessor.py').read() metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", main_py)) requires = [ 'progressbar', ] setup(name='Morfessor', version=met...
#!/usr/bin/env python from distribute_setup import use_setuptools use_setuptools() from setuptools import setup import re main_py = open('morfessor.py').read() metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", main_py)) requires = [ # 'progressbar', ] setup(name='Morfessor', version=metadata['version...
#!/usr/bin/env python from distribute_setup import use_setuptools use_setuptools() from setuptools import setup import re main_py = open('morfessor.py').read() metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", main_py)) requires = [ 'progressbar', ] setup(name='Morfessor', version=metadata['version'...
<commit_before>#!/usr/bin/env python from distribute_setup import use_setuptools use_setuptools() from setuptools import setup import re main_py = open('morfessor.py').read() metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", main_py)) requires = [ 'progressbar', ] setup(name='Morfessor', version=met...
5306d5cdbeaa6e01ebc3de765ae9684ae5d69dbb
setup.py
setup.py
import os from setuptools import setup with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme: README = readme.read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='pybbm-private-messages', version='0...
import os from setuptools import setup with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme: README = readme.read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='pybbm-private-messages', version='0...
Add migrations to package. Bump version.
Add migrations to package. Bump version.
Python
mit
skolsuper/pybbm_private_messages,skolsuper/pybbm_private_messages,skolsuper/pybbm_private_messages
import os from setuptools import setup with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme: README = readme.read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='pybbm-private-messages', version='0...
import os from setuptools import setup with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme: README = readme.read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='pybbm-private-messages', version='0...
<commit_before>import os from setuptools import setup with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme: README = readme.read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='pybbm-private-messages',...
import os from setuptools import setup with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme: README = readme.read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='pybbm-private-messages', version='0...
import os from setuptools import setup with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme: README = readme.read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='pybbm-private-messages', version='0...
<commit_before>import os from setuptools import setup with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme: README = readme.read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='pybbm-private-messages',...
fe2bd7cf8b0139e1c7c1037d89929dd7c4093458
setup.py
setup.py
import os from setuptools import setup, find_packages import glob VERSION = "0.6.3" src_dir = os.path.dirname(__file__) install_requires = [ "troposphere>=1.2.2", "boto3>=1.3.1", "botocore>=1.4.38", "PyYAML>=3.11", "awacs>=0.5.3", "colorama==0.3.7", ] tests_require = [ "nose>=1.0", "...
import os from setuptools import setup, find_packages import glob VERSION = "0.6.3" src_dir = os.path.dirname(__file__) install_requires = [ "troposphere>=1.8.0", "boto3>=1.3.1", "botocore>=1.4.38", "PyYAML>=3.11", "awacs>=0.6.0", "colorama==0.3.7", ] tests_require = [ "nose>=1.0", "...
Update troposphere & awacs to latest releases
Update troposphere & awacs to latest releases
Python
bsd-2-clause
mhahn/stacker,mhahn/stacker,remind101/stacker,remind101/stacker
import os from setuptools import setup, find_packages import glob VERSION = "0.6.3" src_dir = os.path.dirname(__file__) install_requires = [ "troposphere>=1.2.2", "boto3>=1.3.1", "botocore>=1.4.38", "PyYAML>=3.11", "awacs>=0.5.3", "colorama==0.3.7", ] tests_require = [ "nose>=1.0", "...
import os from setuptools import setup, find_packages import glob VERSION = "0.6.3" src_dir = os.path.dirname(__file__) install_requires = [ "troposphere>=1.8.0", "boto3>=1.3.1", "botocore>=1.4.38", "PyYAML>=3.11", "awacs>=0.6.0", "colorama==0.3.7", ] tests_require = [ "nose>=1.0", "...
<commit_before>import os from setuptools import setup, find_packages import glob VERSION = "0.6.3" src_dir = os.path.dirname(__file__) install_requires = [ "troposphere>=1.2.2", "boto3>=1.3.1", "botocore>=1.4.38", "PyYAML>=3.11", "awacs>=0.5.3", "colorama==0.3.7", ] tests_require = [ "no...
import os from setuptools import setup, find_packages import glob VERSION = "0.6.3" src_dir = os.path.dirname(__file__) install_requires = [ "troposphere>=1.8.0", "boto3>=1.3.1", "botocore>=1.4.38", "PyYAML>=3.11", "awacs>=0.6.0", "colorama==0.3.7", ] tests_require = [ "nose>=1.0", "...
import os from setuptools import setup, find_packages import glob VERSION = "0.6.3" src_dir = os.path.dirname(__file__) install_requires = [ "troposphere>=1.2.2", "boto3>=1.3.1", "botocore>=1.4.38", "PyYAML>=3.11", "awacs>=0.5.3", "colorama==0.3.7", ] tests_require = [ "nose>=1.0", "...
<commit_before>import os from setuptools import setup, find_packages import glob VERSION = "0.6.3" src_dir = os.path.dirname(__file__) install_requires = [ "troposphere>=1.2.2", "boto3>=1.3.1", "botocore>=1.4.38", "PyYAML>=3.11", "awacs>=0.5.3", "colorama==0.3.7", ] tests_require = [ "no...
7e72c8df528c918325afe5eb31422b0f3f6b55e8
setup.py
setup.py
from setuptools import setup version = '0.2.dev0' long_description = '\n\n'.join([ open('README.rst').read(), open('CREDITS.rst').read(), open('CHANGES.rst').read(), ]) install_requires = [ 'Django', 'django-extensions', 'django-nose', 'lizard-ui >= 4.0b5', 'cassandralib', 'js...
from setuptools import setup version = '0.2.dev0' long_description = '\n\n'.join([ open('README.rst').read(), open('CREDITS.rst').read(), open('CHANGES.rst').read(), ]) install_requires = [ 'Django', 'django-extensions', 'django-nose', 'lizard-ui >= 4.0b5', 'cassandralib', 'js...
Add missing dependency on pandas
Add missing dependency on pandas
Python
mit
ddsc/ddsc-core,ddsc/ddsc-core
from setuptools import setup version = '0.2.dev0' long_description = '\n\n'.join([ open('README.rst').read(), open('CREDITS.rst').read(), open('CHANGES.rst').read(), ]) install_requires = [ 'Django', 'django-extensions', 'django-nose', 'lizard-ui >= 4.0b5', 'cassandralib', 'js...
from setuptools import setup version = '0.2.dev0' long_description = '\n\n'.join([ open('README.rst').read(), open('CREDITS.rst').read(), open('CHANGES.rst').read(), ]) install_requires = [ 'Django', 'django-extensions', 'django-nose', 'lizard-ui >= 4.0b5', 'cassandralib', 'js...
<commit_before>from setuptools import setup version = '0.2.dev0' long_description = '\n\n'.join([ open('README.rst').read(), open('CREDITS.rst').read(), open('CHANGES.rst').read(), ]) install_requires = [ 'Django', 'django-extensions', 'django-nose', 'lizard-ui >= 4.0b5', 'cassand...
from setuptools import setup version = '0.2.dev0' long_description = '\n\n'.join([ open('README.rst').read(), open('CREDITS.rst').read(), open('CHANGES.rst').read(), ]) install_requires = [ 'Django', 'django-extensions', 'django-nose', 'lizard-ui >= 4.0b5', 'cassandralib', 'js...
from setuptools import setup version = '0.2.dev0' long_description = '\n\n'.join([ open('README.rst').read(), open('CREDITS.rst').read(), open('CHANGES.rst').read(), ]) install_requires = [ 'Django', 'django-extensions', 'django-nose', 'lizard-ui >= 4.0b5', 'cassandralib', 'js...
<commit_before>from setuptools import setup version = '0.2.dev0' long_description = '\n\n'.join([ open('README.rst').read(), open('CREDITS.rst').read(), open('CHANGES.rst').read(), ]) install_requires = [ 'Django', 'django-extensions', 'django-nose', 'lizard-ui >= 4.0b5', 'cassand...
f92e5d6e15ca7aa0447f8a05903212409e545bce
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup setup( name='Lobster', version='1.0', description='Opportunistic HEP computing tool', author='Anna Woodard, Matthias Wolf', url='https://github.com/matz-e/lobster', packages=['lobster', 'lobster.cmssw'], package_data={'lobster': [ ...
#!/usr/bin/env python from setuptools import setup setup( name='Lobster', version='1.0', description='Opportunistic HEP computing tool', author='Anna Woodard, Matthias Wolf', url='https://github.com/matz-e/lobster', packages=['lobster', 'lobster.cmssw'], package_data={'lobster': [ ...
Install the plotting template, too.
Install the plotting template, too.
Python
mit
matz-e/lobster,matz-e/lobster,matz-e/lobster
#!/usr/bin/env python from setuptools import setup setup( name='Lobster', version='1.0', description='Opportunistic HEP computing tool', author='Anna Woodard, Matthias Wolf', url='https://github.com/matz-e/lobster', packages=['lobster', 'lobster.cmssw'], package_data={'lobster': [ ...
#!/usr/bin/env python from setuptools import setup setup( name='Lobster', version='1.0', description='Opportunistic HEP computing tool', author='Anna Woodard, Matthias Wolf', url='https://github.com/matz-e/lobster', packages=['lobster', 'lobster.cmssw'], package_data={'lobster': [ ...
<commit_before>#!/usr/bin/env python from setuptools import setup setup( name='Lobster', version='1.0', description='Opportunistic HEP computing tool', author='Anna Woodard, Matthias Wolf', url='https://github.com/matz-e/lobster', packages=['lobster', 'lobster.cmssw'], package_data={'lobst...
#!/usr/bin/env python from setuptools import setup setup( name='Lobster', version='1.0', description='Opportunistic HEP computing tool', author='Anna Woodard, Matthias Wolf', url='https://github.com/matz-e/lobster', packages=['lobster', 'lobster.cmssw'], package_data={'lobster': [ ...
#!/usr/bin/env python from setuptools import setup setup( name='Lobster', version='1.0', description='Opportunistic HEP computing tool', author='Anna Woodard, Matthias Wolf', url='https://github.com/matz-e/lobster', packages=['lobster', 'lobster.cmssw'], package_data={'lobster': [ ...
<commit_before>#!/usr/bin/env python from setuptools import setup setup( name='Lobster', version='1.0', description='Opportunistic HEP computing tool', author='Anna Woodard, Matthias Wolf', url='https://github.com/matz-e/lobster', packages=['lobster', 'lobster.cmssw'], package_data={'lobst...
c9e4c7335e2753ec58713f1158fdb9e8ce0d3c06
setup.py
setup.py
#!/usr/bin/env python3 from setuptools import setup setup( name='pyroaring', version='0.0.2', description='Fast and lightweight set for unsigned 32 bits integers.', url='https://github.com/Ezibenroc/PyRoaringBitMap', author='Tom Cornebize', author_email='[email protected]', license='...
#!/usr/bin/env python3 from setuptools import setup setup( name='pyroaring', version='0.0.3', description='Fast and lightweight set for unsigned 32 bits integers.', url='https://github.com/Ezibenroc/PyRoaringBitMap', author='Tom Cornebize', author_email='[email protected]', license='...
Add classifiers for pypi, update version number.
Add classifiers for pypi, update version number.
Python
mit
Ezibenroc/PyRoaringBitMap,Ezibenroc/PyRoaringBitMap
#!/usr/bin/env python3 from setuptools import setup setup( name='pyroaring', version='0.0.2', description='Fast and lightweight set for unsigned 32 bits integers.', url='https://github.com/Ezibenroc/PyRoaringBitMap', author='Tom Cornebize', author_email='[email protected]', license='...
#!/usr/bin/env python3 from setuptools import setup setup( name='pyroaring', version='0.0.3', description='Fast and lightweight set for unsigned 32 bits integers.', url='https://github.com/Ezibenroc/PyRoaringBitMap', author='Tom Cornebize', author_email='[email protected]', license='...
<commit_before>#!/usr/bin/env python3 from setuptools import setup setup( name='pyroaring', version='0.0.2', description='Fast and lightweight set for unsigned 32 bits integers.', url='https://github.com/Ezibenroc/PyRoaringBitMap', author='Tom Cornebize', author_email='[email protected]'...
#!/usr/bin/env python3 from setuptools import setup setup( name='pyroaring', version='0.0.3', description='Fast and lightweight set for unsigned 32 bits integers.', url='https://github.com/Ezibenroc/PyRoaringBitMap', author='Tom Cornebize', author_email='[email protected]', license='...
#!/usr/bin/env python3 from setuptools import setup setup( name='pyroaring', version='0.0.2', description='Fast and lightweight set for unsigned 32 bits integers.', url='https://github.com/Ezibenroc/PyRoaringBitMap', author='Tom Cornebize', author_email='[email protected]', license='...
<commit_before>#!/usr/bin/env python3 from setuptools import setup setup( name='pyroaring', version='0.0.2', description='Fast and lightweight set for unsigned 32 bits integers.', url='https://github.com/Ezibenroc/PyRoaringBitMap', author='Tom Cornebize', author_email='[email protected]'...
2778096c6683257d672760908f4c07b0e6a1cedc
setup.py
setup.py
import os from distutils.core import setup def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() packages = [] package_dir = "dbbackup" for dirpath, dirnames, filenames in os.walk(package_dir): # ignore dirnames that start with '.' for i, dirname in enumerate(dirnames): ...
import os from distutils.core import setup def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() packages = [] package_dir = "dbbackup" for dirpath, dirnames, filenames in os.walk(package_dir): # ignore dirnames that start with '.' for i, dirname in enumerate(dirnames): ...
Remove dropbox and boto as dependencies because they are optional and boto is not py3 compat
Remove dropbox and boto as dependencies because they are optional and boto is not py3 compat
Python
bsd-3-clause
bahoo/django-dbbackup,bahoo/django-dbbackup
import os from distutils.core import setup def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() packages = [] package_dir = "dbbackup" for dirpath, dirnames, filenames in os.walk(package_dir): # ignore dirnames that start with '.' for i, dirname in enumerate(dirnames): ...
import os from distutils.core import setup def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() packages = [] package_dir = "dbbackup" for dirpath, dirnames, filenames in os.walk(package_dir): # ignore dirnames that start with '.' for i, dirname in enumerate(dirnames): ...
<commit_before>import os from distutils.core import setup def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() packages = [] package_dir = "dbbackup" for dirpath, dirnames, filenames in os.walk(package_dir): # ignore dirnames that start with '.' for i, dirname in enumerate...
import os from distutils.core import setup def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() packages = [] package_dir = "dbbackup" for dirpath, dirnames, filenames in os.walk(package_dir): # ignore dirnames that start with '.' for i, dirname in enumerate(dirnames): ...
import os from distutils.core import setup def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() packages = [] package_dir = "dbbackup" for dirpath, dirnames, filenames in os.walk(package_dir): # ignore dirnames that start with '.' for i, dirname in enumerate(dirnames): ...
<commit_before>import os from distutils.core import setup def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() packages = [] package_dir = "dbbackup" for dirpath, dirnames, filenames in os.walk(package_dir): # ignore dirnames that start with '.' for i, dirname in enumerate...
f14b9f954ac63fefeca2ad658b2ab5053fe42699
setup.py
setup.py
from setuptools import setup setup( name='ChannelWorm', packages=[ 'channelworm', 'channelworm.ion_channel', 'channelworm.digitizer', 'channelworm.web_app', 'channelworm.fitter' ], long_description=open('README.md').read(), install_requires=[ 'Django<...
from setuptools import setup setup( name='ChannelWorm', packages=[ 'channelworm', 'channelworm.ion_channel', 'channelworm.digitizer', 'channelworm.web_app', 'channelworm.fitter' ], long_description=open('README.md').read(), install_requires=[ 'Django<...
Add egg suffix for pyopenworm install dependency
Add egg suffix for pyopenworm install dependency
Python
mit
cheelee/ChannelWorm,cheelee/ChannelWorm,VahidGh/ChannelWorm,VahidGh/ChannelWorm,VahidGh/ChannelWorm,openworm/ChannelWorm,gsarma/ChannelWorm,cheelee/ChannelWorm,gsarma/ChannelWorm,gsarma/ChannelWorm,gsarma/ChannelWorm,cheelee/ChannelWorm,openworm/ChannelWorm,VahidGh/ChannelWorm,openworm/ChannelWorm,openworm/ChannelWorm
from setuptools import setup setup( name='ChannelWorm', packages=[ 'channelworm', 'channelworm.ion_channel', 'channelworm.digitizer', 'channelworm.web_app', 'channelworm.fitter' ], long_description=open('README.md').read(), install_requires=[ 'Django<...
from setuptools import setup setup( name='ChannelWorm', packages=[ 'channelworm', 'channelworm.ion_channel', 'channelworm.digitizer', 'channelworm.web_app', 'channelworm.fitter' ], long_description=open('README.md').read(), install_requires=[ 'Django<...
<commit_before>from setuptools import setup setup( name='ChannelWorm', packages=[ 'channelworm', 'channelworm.ion_channel', 'channelworm.digitizer', 'channelworm.web_app', 'channelworm.fitter' ], long_description=open('README.md').read(), install_requires=[ ...
from setuptools import setup setup( name='ChannelWorm', packages=[ 'channelworm', 'channelworm.ion_channel', 'channelworm.digitizer', 'channelworm.web_app', 'channelworm.fitter' ], long_description=open('README.md').read(), install_requires=[ 'Django<...
from setuptools import setup setup( name='ChannelWorm', packages=[ 'channelworm', 'channelworm.ion_channel', 'channelworm.digitizer', 'channelworm.web_app', 'channelworm.fitter' ], long_description=open('README.md').read(), install_requires=[ 'Django<...
<commit_before>from setuptools import setup setup( name='ChannelWorm', packages=[ 'channelworm', 'channelworm.ion_channel', 'channelworm.digitizer', 'channelworm.web_app', 'channelworm.fitter' ], long_description=open('README.md').read(), install_requires=[ ...
8b66202f62e04226c46445f12c5edd5ec4b12ad0
setup.py
setup.py
from setuptools import setup setup( name='tangled', version='0.1a7.dev0', description='Tangled namespace and utilities', long_description=open('README.rst').read(), url='http://tangledframework.org/', download_url='https://github.com/TangledWeb/tangled/tags', author='Wyatt Baldwin', au...
from setuptools import setup setup( name='tangled', version='0.1a7.dev0', description='Tangled namespace and utilities', long_description=open('README.rst').read(), url='http://tangledframework.org/', download_url='https://github.com/TangledWeb/tangled/tags', author='Wyatt Baldwin', au...
Upgrade deps to latest point releases
Upgrade deps to latest point releases - nose 1.3.0 to 1.3.1 - Sphinx 1.2.1 to 1.2.2
Python
mit
TangledWeb/tangled
from setuptools import setup setup( name='tangled', version='0.1a7.dev0', description='Tangled namespace and utilities', long_description=open('README.rst').read(), url='http://tangledframework.org/', download_url='https://github.com/TangledWeb/tangled/tags', author='Wyatt Baldwin', au...
from setuptools import setup setup( name='tangled', version='0.1a7.dev0', description='Tangled namespace and utilities', long_description=open('README.rst').read(), url='http://tangledframework.org/', download_url='https://github.com/TangledWeb/tangled/tags', author='Wyatt Baldwin', au...
<commit_before>from setuptools import setup setup( name='tangled', version='0.1a7.dev0', description='Tangled namespace and utilities', long_description=open('README.rst').read(), url='http://tangledframework.org/', download_url='https://github.com/TangledWeb/tangled/tags', author='Wyatt B...
from setuptools import setup setup( name='tangled', version='0.1a7.dev0', description='Tangled namespace and utilities', long_description=open('README.rst').read(), url='http://tangledframework.org/', download_url='https://github.com/TangledWeb/tangled/tags', author='Wyatt Baldwin', au...
from setuptools import setup setup( name='tangled', version='0.1a7.dev0', description='Tangled namespace and utilities', long_description=open('README.rst').read(), url='http://tangledframework.org/', download_url='https://github.com/TangledWeb/tangled/tags', author='Wyatt Baldwin', au...
<commit_before>from setuptools import setup setup( name='tangled', version='0.1a7.dev0', description='Tangled namespace and utilities', long_description=open('README.rst').read(), url='http://tangledframework.org/', download_url='https://github.com/TangledWeb/tangled/tags', author='Wyatt B...
bc8e548e51fddc251eb2e915883e3ee57bb9515b
zc_common/jwt_auth/utils.py
zc_common/jwt_auth/utils.py
import jwt from rest_framework_jwt.settings import api_settings def jwt_payload_handler(user): # The handler from rest_framework_jwt removed user_id, so this is a fork payload = { 'id': user.pk, 'roles': user.get_roles(), } return payload def jwt_encode_handler(payload): return ...
import jwt from rest_framework_jwt.settings import api_settings def jwt_payload_handler(user): '''Constructs a payload for a user JWT. This is a slimmed down version of https://github.com/GetBlimp/django-rest-framework-jwt/blob/master/rest_framework_jwt/utils.py#L11 :param User: an object with `pk` ...
Add docstrings to jwt handlers
Add docstrings to jwt handlers
Python
mit
ZeroCater/zc_common,ZeroCater/zc_common
import jwt from rest_framework_jwt.settings import api_settings def jwt_payload_handler(user): # The handler from rest_framework_jwt removed user_id, so this is a fork payload = { 'id': user.pk, 'roles': user.get_roles(), } return payload def jwt_encode_handler(payload): return ...
import jwt from rest_framework_jwt.settings import api_settings def jwt_payload_handler(user): '''Constructs a payload for a user JWT. This is a slimmed down version of https://github.com/GetBlimp/django-rest-framework-jwt/blob/master/rest_framework_jwt/utils.py#L11 :param User: an object with `pk` ...
<commit_before>import jwt from rest_framework_jwt.settings import api_settings def jwt_payload_handler(user): # The handler from rest_framework_jwt removed user_id, so this is a fork payload = { 'id': user.pk, 'roles': user.get_roles(), } return payload def jwt_encode_handler(payloa...
import jwt from rest_framework_jwt.settings import api_settings def jwt_payload_handler(user): '''Constructs a payload for a user JWT. This is a slimmed down version of https://github.com/GetBlimp/django-rest-framework-jwt/blob/master/rest_framework_jwt/utils.py#L11 :param User: an object with `pk` ...
import jwt from rest_framework_jwt.settings import api_settings def jwt_payload_handler(user): # The handler from rest_framework_jwt removed user_id, so this is a fork payload = { 'id': user.pk, 'roles': user.get_roles(), } return payload def jwt_encode_handler(payload): return ...
<commit_before>import jwt from rest_framework_jwt.settings import api_settings def jwt_payload_handler(user): # The handler from rest_framework_jwt removed user_id, so this is a fork payload = { 'id': user.pk, 'roles': user.get_roles(), } return payload def jwt_encode_handler(payloa...
b863b6ce020bb1b9a41b1cd4c81b725d47a06dd8
admin.py
admin.py
# -*- coding: utf-8 -*- from django.contrib import admin from .models import Project, Repository, Change, Builder, Build class ProjectAdmin(admin.ModelAdmin): list_display = ('name',) search_fields = ('name',) class RepositoryAdmin(admin.ModelAdmin): list_display = ('name',) search_fields = ('name',) ...
# -*- coding: utf-8 -*- from django.contrib import admin from .models import Project, Repository, Change, Builder, Build class ProjectAdmin(admin.ModelAdmin): list_display = ('name',) search_fields = ('name',) class RepositoryAdmin(admin.ModelAdmin): list_display = ('name',) search_fields = ('name',) ...
Disable date_hierarchy for now since it requires tzinfo in MySQL
Disable date_hierarchy for now since it requires tzinfo in MySQL
Python
mit
mback2k/django-app-builds
# -*- coding: utf-8 -*- from django.contrib import admin from .models import Project, Repository, Change, Builder, Build class ProjectAdmin(admin.ModelAdmin): list_display = ('name',) search_fields = ('name',) class RepositoryAdmin(admin.ModelAdmin): list_display = ('name',) search_fields = ('name',) ...
# -*- coding: utf-8 -*- from django.contrib import admin from .models import Project, Repository, Change, Builder, Build class ProjectAdmin(admin.ModelAdmin): list_display = ('name',) search_fields = ('name',) class RepositoryAdmin(admin.ModelAdmin): list_display = ('name',) search_fields = ('name',) ...
<commit_before># -*- coding: utf-8 -*- from django.contrib import admin from .models import Project, Repository, Change, Builder, Build class ProjectAdmin(admin.ModelAdmin): list_display = ('name',) search_fields = ('name',) class RepositoryAdmin(admin.ModelAdmin): list_display = ('name',) search_fiel...
# -*- coding: utf-8 -*- from django.contrib import admin from .models import Project, Repository, Change, Builder, Build class ProjectAdmin(admin.ModelAdmin): list_display = ('name',) search_fields = ('name',) class RepositoryAdmin(admin.ModelAdmin): list_display = ('name',) search_fields = ('name',) ...
# -*- coding: utf-8 -*- from django.contrib import admin from .models import Project, Repository, Change, Builder, Build class ProjectAdmin(admin.ModelAdmin): list_display = ('name',) search_fields = ('name',) class RepositoryAdmin(admin.ModelAdmin): list_display = ('name',) search_fields = ('name',) ...
<commit_before># -*- coding: utf-8 -*- from django.contrib import admin from .models import Project, Repository, Change, Builder, Build class ProjectAdmin(admin.ModelAdmin): list_display = ('name',) search_fields = ('name',) class RepositoryAdmin(admin.ModelAdmin): list_display = ('name',) search_fiel...
aeb6ce26bdde8697e7beb3d06391a04f500f574a
mara_db/__init__.py
mara_db/__init__.py
from mara_db import config, views, cli MARA_CONFIG_MODULES = [config] MARA_NAVIGATION_ENTRY_FNS = [views.navigation_entry] MARA_ACL_RESOURCES = [views.acl_resource] MARA_FLASK_BLUEPRINTS = [views.blueprint] MARA_CLICK_COMMANDS = [cli.migrate]
"""Make the functionalities of this package auto-discoverable by mara-app""" def MARA_CONFIG_MODULES(): from . import config return [config] def MARA_FLASK_BLUEPRINTS(): from . import views return [views.blueprint] def MARA_AUTOMIGRATE_SQLALCHEMY_MODELS(): return [] def MARA_ACL_RESOURCES():...
Change MARA_XXX variables to functions to delay importing of imports (requires updating mara-app to 2.0.0)
Change MARA_XXX variables to functions to delay importing of imports (requires updating mara-app to 2.0.0)
Python
mit
mara/mara-db,mara/mara-db
from mara_db import config, views, cli MARA_CONFIG_MODULES = [config] MARA_NAVIGATION_ENTRY_FNS = [views.navigation_entry] MARA_ACL_RESOURCES = [views.acl_resource] MARA_FLASK_BLUEPRINTS = [views.blueprint] MARA_CLICK_COMMANDS = [cli.migrate] Change MARA_XXX variables to functions to delay importing of imports (re...
"""Make the functionalities of this package auto-discoverable by mara-app""" def MARA_CONFIG_MODULES(): from . import config return [config] def MARA_FLASK_BLUEPRINTS(): from . import views return [views.blueprint] def MARA_AUTOMIGRATE_SQLALCHEMY_MODELS(): return [] def MARA_ACL_RESOURCES():...
<commit_before>from mara_db import config, views, cli MARA_CONFIG_MODULES = [config] MARA_NAVIGATION_ENTRY_FNS = [views.navigation_entry] MARA_ACL_RESOURCES = [views.acl_resource] MARA_FLASK_BLUEPRINTS = [views.blueprint] MARA_CLICK_COMMANDS = [cli.migrate] <commit_msg>Change MARA_XXX variables to functions to del...
"""Make the functionalities of this package auto-discoverable by mara-app""" def MARA_CONFIG_MODULES(): from . import config return [config] def MARA_FLASK_BLUEPRINTS(): from . import views return [views.blueprint] def MARA_AUTOMIGRATE_SQLALCHEMY_MODELS(): return [] def MARA_ACL_RESOURCES():...
from mara_db import config, views, cli MARA_CONFIG_MODULES = [config] MARA_NAVIGATION_ENTRY_FNS = [views.navigation_entry] MARA_ACL_RESOURCES = [views.acl_resource] MARA_FLASK_BLUEPRINTS = [views.blueprint] MARA_CLICK_COMMANDS = [cli.migrate] Change MARA_XXX variables to functions to delay importing of imports (re...
<commit_before>from mara_db import config, views, cli MARA_CONFIG_MODULES = [config] MARA_NAVIGATION_ENTRY_FNS = [views.navigation_entry] MARA_ACL_RESOURCES = [views.acl_resource] MARA_FLASK_BLUEPRINTS = [views.blueprint] MARA_CLICK_COMMANDS = [cli.migrate] <commit_msg>Change MARA_XXX variables to functions to del...
19a7a44449b4e08253ca9379dd23db50f27d6488
markdown_wrapper.py
markdown_wrapper.py
from __future__ import absolute_import import sublime import traceback ST3 = int(sublime.version()) >= 3000 if ST3: from markdown import Markdown, util from markdown.extensions import Extension import importlib else: from markdown import Markdown, util from markdown.extensions import Extension c...
from __future__ import absolute_import import sublime import traceback from markdown import Markdown, util from markdown.extensions import Extension import importlib class StMarkdown(Markdown): def __init__(self, *args, **kwargs): Markdown.__init__(self, *args, **kwargs) self.Meta = {} def r...
Remove some more ST2 specific code
Remove some more ST2 specific code
Python
mit
revolunet/sublimetext-markdown-preview,revolunet/sublimetext-markdown-preview
from __future__ import absolute_import import sublime import traceback ST3 = int(sublime.version()) >= 3000 if ST3: from markdown import Markdown, util from markdown.extensions import Extension import importlib else: from markdown import Markdown, util from markdown.extensions import Extension c...
from __future__ import absolute_import import sublime import traceback from markdown import Markdown, util from markdown.extensions import Extension import importlib class StMarkdown(Markdown): def __init__(self, *args, **kwargs): Markdown.__init__(self, *args, **kwargs) self.Meta = {} def r...
<commit_before>from __future__ import absolute_import import sublime import traceback ST3 = int(sublime.version()) >= 3000 if ST3: from markdown import Markdown, util from markdown.extensions import Extension import importlib else: from markdown import Markdown, util from markdown.extensions impor...
from __future__ import absolute_import import sublime import traceback from markdown import Markdown, util from markdown.extensions import Extension import importlib class StMarkdown(Markdown): def __init__(self, *args, **kwargs): Markdown.__init__(self, *args, **kwargs) self.Meta = {} def r...
from __future__ import absolute_import import sublime import traceback ST3 = int(sublime.version()) >= 3000 if ST3: from markdown import Markdown, util from markdown.extensions import Extension import importlib else: from markdown import Markdown, util from markdown.extensions import Extension c...
<commit_before>from __future__ import absolute_import import sublime import traceback ST3 = int(sublime.version()) >= 3000 if ST3: from markdown import Markdown, util from markdown.extensions import Extension import importlib else: from markdown import Markdown, util from markdown.extensions impor...
c1ed5befe3081f6812fc77fc694ea3e82d90f39c
telemetry/telemetry/core/backends/facebook_credentials_backend.py
telemetry/telemetry/core/backends/facebook_credentials_backend.py
# Copyright 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from telemetry.core.backends import form_based_credentials_backend class FacebookCredentialsBackend( form_based_credentials_backend.FormBasedCredential...
# Copyright 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from telemetry.core.backends import form_based_credentials_backend class FacebookCredentialsBackend( form_based_credentials_backend.FormBasedCredential...
Set facebook_crendentials_backend_2's url to https
[Telemetry] Set facebook_crendentials_backend_2's url to https [email protected] BUG=428098 Review URL: https://codereview.chromium.org/688113003 Cr-Commit-Position: 972c6d2dc6dd5efdad1377c0d224e03eb8f276f7@{#301945}
Python
bsd-3-clause
benschmaus/catapult,SummerLW/Perf-Insight-Report,sahiljain/catapult,SummerLW/Perf-Insight-Report,sahiljain/catapult,catapult-project/catapult,benschmaus/catapult,SummerLW/Perf-Insight-Report,catapult-project/catapult,sahiljain/catapult,catapult-project/catapult-csm,benschmaus/catapult,catapult-project/catapult-csm,sahi...
# Copyright 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from telemetry.core.backends import form_based_credentials_backend class FacebookCredentialsBackend( form_based_credentials_backend.FormBasedCredential...
# Copyright 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from telemetry.core.backends import form_based_credentials_backend class FacebookCredentialsBackend( form_based_credentials_backend.FormBasedCredential...
<commit_before># Copyright 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from telemetry.core.backends import form_based_credentials_backend class FacebookCredentialsBackend( form_based_credentials_backend.Form...
# Copyright 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from telemetry.core.backends import form_based_credentials_backend class FacebookCredentialsBackend( form_based_credentials_backend.FormBasedCredential...
# Copyright 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from telemetry.core.backends import form_based_credentials_backend class FacebookCredentialsBackend( form_based_credentials_backend.FormBasedCredential...
<commit_before># Copyright 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from telemetry.core.backends import form_based_credentials_backend class FacebookCredentialsBackend( form_based_credentials_backend.Form...
8360bebbd4bf2b2e9d51c7aa16bdb9506a91883e
tests/chainer_tests/training_tests/extensions_tests/test_snapshot.py
tests/chainer_tests/training_tests/extensions_tests/test_snapshot.py
import unittest import mock from chainer import testing from chainer.training import extensions @testing.parameterize( {'trigger': ('epoch', 2)}, {'trigger': ('iteration', 10)}, ) class TestSnapshotObject(unittest.TestCase): def test_trigger(self): target = mock.MagicMock() snapshot_obj...
import unittest import mock from chainer import testing from chainer.training import extensions from chainer.training import trigger @testing.parameterize( {'trigger': ('epoch', 2)}, {'trigger': ('iteration', 10)}, {'trigger': trigger.IntervalTrigger(5, 'epoch')}, {'trigger': trigger.IntervalTrigger...
Add unit test to pass Trigger instance.
Add unit test to pass Trigger instance.
Python
mit
okuta/chainer,hvy/chainer,keisuke-umezawa/chainer,ktnyt/chainer,cupy/cupy,kiyukuta/chainer,rezoo/chainer,keisuke-umezawa/chainer,okuta/chainer,ktnyt/chainer,hvy/chainer,tkerola/chainer,niboshi/chainer,cupy/cupy,niboshi/chainer,jnishi/chainer,okuta/chainer,wkentaro/chainer,wkentaro/chainer,jnishi/chainer,cupy/cupy,cupy/...
import unittest import mock from chainer import testing from chainer.training import extensions @testing.parameterize( {'trigger': ('epoch', 2)}, {'trigger': ('iteration', 10)}, ) class TestSnapshotObject(unittest.TestCase): def test_trigger(self): target = mock.MagicMock() snapshot_obj...
import unittest import mock from chainer import testing from chainer.training import extensions from chainer.training import trigger @testing.parameterize( {'trigger': ('epoch', 2)}, {'trigger': ('iteration', 10)}, {'trigger': trigger.IntervalTrigger(5, 'epoch')}, {'trigger': trigger.IntervalTrigger...
<commit_before>import unittest import mock from chainer import testing from chainer.training import extensions @testing.parameterize( {'trigger': ('epoch', 2)}, {'trigger': ('iteration', 10)}, ) class TestSnapshotObject(unittest.TestCase): def test_trigger(self): target = mock.MagicMock() ...
import unittest import mock from chainer import testing from chainer.training import extensions from chainer.training import trigger @testing.parameterize( {'trigger': ('epoch', 2)}, {'trigger': ('iteration', 10)}, {'trigger': trigger.IntervalTrigger(5, 'epoch')}, {'trigger': trigger.IntervalTrigger...
import unittest import mock from chainer import testing from chainer.training import extensions @testing.parameterize( {'trigger': ('epoch', 2)}, {'trigger': ('iteration', 10)}, ) class TestSnapshotObject(unittest.TestCase): def test_trigger(self): target = mock.MagicMock() snapshot_obj...
<commit_before>import unittest import mock from chainer import testing from chainer.training import extensions @testing.parameterize( {'trigger': ('epoch', 2)}, {'trigger': ('iteration', 10)}, ) class TestSnapshotObject(unittest.TestCase): def test_trigger(self): target = mock.MagicMock() ...
04939189efdc55164af8dc04223c7733664f091f
valohai_cli/cli_utils.py
valohai_cli/cli_utils.py
import click def prompt_from_list(options, prompt, nonlist_validator=None): for i, option in enumerate(options, 1): click.echo('{number} {name} {description}'.format( number=click.style('[%3d]' % i, fg='cyan'), name=option['name'], description=( click.st...
import click def prompt_from_list(options, prompt, nonlist_validator=None): for i, option in enumerate(options, 1): click.echo('{number} {name} {description}'.format( number=click.style('[%3d]' % i, fg='cyan'), name=option['name'], description=( click.st...
Fix `prompt_from_list` misbehaving with nonlist_validator
Fix `prompt_from_list` misbehaving with nonlist_validator
Python
mit
valohai/valohai-cli
import click def prompt_from_list(options, prompt, nonlist_validator=None): for i, option in enumerate(options, 1): click.echo('{number} {name} {description}'.format( number=click.style('[%3d]' % i, fg='cyan'), name=option['name'], description=( click.st...
import click def prompt_from_list(options, prompt, nonlist_validator=None): for i, option in enumerate(options, 1): click.echo('{number} {name} {description}'.format( number=click.style('[%3d]' % i, fg='cyan'), name=option['name'], description=( click.st...
<commit_before>import click def prompt_from_list(options, prompt, nonlist_validator=None): for i, option in enumerate(options, 1): click.echo('{number} {name} {description}'.format( number=click.style('[%3d]' % i, fg='cyan'), name=option['name'], description=( ...
import click def prompt_from_list(options, prompt, nonlist_validator=None): for i, option in enumerate(options, 1): click.echo('{number} {name} {description}'.format( number=click.style('[%3d]' % i, fg='cyan'), name=option['name'], description=( click.st...
import click def prompt_from_list(options, prompt, nonlist_validator=None): for i, option in enumerate(options, 1): click.echo('{number} {name} {description}'.format( number=click.style('[%3d]' % i, fg='cyan'), name=option['name'], description=( click.st...
<commit_before>import click def prompt_from_list(options, prompt, nonlist_validator=None): for i, option in enumerate(options, 1): click.echo('{number} {name} {description}'.format( number=click.style('[%3d]' % i, fg='cyan'), name=option['name'], description=( ...
ee2187a4cb52acbedf89c3381459b33297371f6e
core/api/views/endpoints.py
core/api/views/endpoints.py
from flask import Module, jsonify from flask.views import MethodView from core.api.decorators import jsonp api = Module( __name__, url_prefix='/api' ) def jsonify_status_code(*args, **kw): response = jsonify(*args, **kw) response.status_code = kw['code'] return response @api.route('/') def ind...
from flask import Module, jsonify, request from flask.views import MethodView from core.api.decorators import jsonp api = Module( __name__, url_prefix='/api' ) def jsonify_status_code(*args, **kw): response = jsonify(*args, **kw) response.status_code = kw['code'] return response @api.route('/'...
Add new Flask MethodView called CreateUnikernel
Add new Flask MethodView called CreateUnikernel
Python
apache-2.0
adyasha/dune,onyb/dune,adyasha/dune,adyasha/dune
from flask import Module, jsonify from flask.views import MethodView from core.api.decorators import jsonp api = Module( __name__, url_prefix='/api' ) def jsonify_status_code(*args, **kw): response = jsonify(*args, **kw) response.status_code = kw['code'] return response @api.route('/') def ind...
from flask import Module, jsonify, request from flask.views import MethodView from core.api.decorators import jsonp api = Module( __name__, url_prefix='/api' ) def jsonify_status_code(*args, **kw): response = jsonify(*args, **kw) response.status_code = kw['code'] return response @api.route('/'...
<commit_before>from flask import Module, jsonify from flask.views import MethodView from core.api.decorators import jsonp api = Module( __name__, url_prefix='/api' ) def jsonify_status_code(*args, **kw): response = jsonify(*args, **kw) response.status_code = kw['code'] return response @api.rou...
from flask import Module, jsonify, request from flask.views import MethodView from core.api.decorators import jsonp api = Module( __name__, url_prefix='/api' ) def jsonify_status_code(*args, **kw): response = jsonify(*args, **kw) response.status_code = kw['code'] return response @api.route('/'...
from flask import Module, jsonify from flask.views import MethodView from core.api.decorators import jsonp api = Module( __name__, url_prefix='/api' ) def jsonify_status_code(*args, **kw): response = jsonify(*args, **kw) response.status_code = kw['code'] return response @api.route('/') def ind...
<commit_before>from flask import Module, jsonify from flask.views import MethodView from core.api.decorators import jsonp api = Module( __name__, url_prefix='/api' ) def jsonify_status_code(*args, **kw): response = jsonify(*args, **kw) response.status_code = kw['code'] return response @api.rou...