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
444e28a332e31186971cebfd905e1aeadff1abfe
pydash/__meta__.py
pydash/__meta__.py
"""Define project metadata """ __all__ = [ '__title__', '__summary__', '__url__', '__version__', '__author__', '__email__', '__license__', ] __title__ = 'pydash' __summary__ = 'Python port of Lo-Dash' __url__ = 'https://github.com/dgilland/pydash' __version__ = '1.1.0' __author__ = 'Derr...
"""Define project metadata """ __all__ = [ '__title__', '__summary__', '__url__', '__version__', '__author__', '__email__', '__license__', ] __title__ = 'pydash' __summary__ = 'Python port of Lo-Dash' __url__ = 'https://github.com/dgilland/pydash' __version__ = '2.0.0-dev' __author__ = '...
Add v2 dev version designation.
Add v2 dev version designation.
Python
mit
jacobbridges/pydash,bharadwajyarlagadda/pydash,dgilland/pydash
"""Define project metadata """ __all__ = [ '__title__', '__summary__', '__url__', '__version__', '__author__', '__email__', '__license__', ] __title__ = 'pydash' __summary__ = 'Python port of Lo-Dash' __url__ = 'https://github.com/dgilland/pydash' __version__ = '1.1.0' __author__ = 'Derr...
"""Define project metadata """ __all__ = [ '__title__', '__summary__', '__url__', '__version__', '__author__', '__email__', '__license__', ] __title__ = 'pydash' __summary__ = 'Python port of Lo-Dash' __url__ = 'https://github.com/dgilland/pydash' __version__ = '2.0.0-dev' __author__ = '...
<commit_before>"""Define project metadata """ __all__ = [ '__title__', '__summary__', '__url__', '__version__', '__author__', '__email__', '__license__', ] __title__ = 'pydash' __summary__ = 'Python port of Lo-Dash' __url__ = 'https://github.com/dgilland/pydash' __version__ = '1.1.0' __a...
"""Define project metadata """ __all__ = [ '__title__', '__summary__', '__url__', '__version__', '__author__', '__email__', '__license__', ] __title__ = 'pydash' __summary__ = 'Python port of Lo-Dash' __url__ = 'https://github.com/dgilland/pydash' __version__ = '2.0.0-dev' __author__ = '...
"""Define project metadata """ __all__ = [ '__title__', '__summary__', '__url__', '__version__', '__author__', '__email__', '__license__', ] __title__ = 'pydash' __summary__ = 'Python port of Lo-Dash' __url__ = 'https://github.com/dgilland/pydash' __version__ = '1.1.0' __author__ = 'Derr...
<commit_before>"""Define project metadata """ __all__ = [ '__title__', '__summary__', '__url__', '__version__', '__author__', '__email__', '__license__', ] __title__ = 'pydash' __summary__ = 'Python port of Lo-Dash' __url__ = 'https://github.com/dgilland/pydash' __version__ = '1.1.0' __a...
bdbd8e56dab87e0c7bd160ef91d5634064729626
src/python/foglamp/core/server.py
src/python/foglamp/core/server.py
# -*- coding: utf-8 -*- # FOGLAMP_BEGIN # See: http://foglamp.readthedocs.io/ # FOGLAMP_END import signal import asyncio from aiohttp import web from foglamp.core import routes from foglamp.core import middleware from foglamp.core import scheduler __author__ = "Praveen Garg" __copyright__ = "Copyright (c) 2017 OSIs...
# -*- coding: utf-8 -*- # FOGLAMP_BEGIN # See: http://foglamp.readthedocs.io/ # FOGLAMP_END import signal import asyncio from aiohttp import web from foglamp.core import routes from foglamp.core import middleware from foglamp.core import scheduler __author__ = "Praveen Garg" __copyright__ = "Copyright (c) 2017 OSIs...
Remove loop parameter from scheduler.start()
Remove loop parameter from scheduler.start()
Python
apache-2.0
foglamp/FogLAMP,foglamp/FogLAMP,foglamp/FogLAMP,foglamp/FogLAMP
# -*- coding: utf-8 -*- # FOGLAMP_BEGIN # See: http://foglamp.readthedocs.io/ # FOGLAMP_END import signal import asyncio from aiohttp import web from foglamp.core import routes from foglamp.core import middleware from foglamp.core import scheduler __author__ = "Praveen Garg" __copyright__ = "Copyright (c) 2017 OSIs...
# -*- coding: utf-8 -*- # FOGLAMP_BEGIN # See: http://foglamp.readthedocs.io/ # FOGLAMP_END import signal import asyncio from aiohttp import web from foglamp.core import routes from foglamp.core import middleware from foglamp.core import scheduler __author__ = "Praveen Garg" __copyright__ = "Copyright (c) 2017 OSIs...
<commit_before># -*- coding: utf-8 -*- # FOGLAMP_BEGIN # See: http://foglamp.readthedocs.io/ # FOGLAMP_END import signal import asyncio from aiohttp import web from foglamp.core import routes from foglamp.core import middleware from foglamp.core import scheduler __author__ = "Praveen Garg" __copyright__ = "Copyrigh...
# -*- coding: utf-8 -*- # FOGLAMP_BEGIN # See: http://foglamp.readthedocs.io/ # FOGLAMP_END import signal import asyncio from aiohttp import web from foglamp.core import routes from foglamp.core import middleware from foglamp.core import scheduler __author__ = "Praveen Garg" __copyright__ = "Copyright (c) 2017 OSIs...
# -*- coding: utf-8 -*- # FOGLAMP_BEGIN # See: http://foglamp.readthedocs.io/ # FOGLAMP_END import signal import asyncio from aiohttp import web from foglamp.core import routes from foglamp.core import middleware from foglamp.core import scheduler __author__ = "Praveen Garg" __copyright__ = "Copyright (c) 2017 OSIs...
<commit_before># -*- coding: utf-8 -*- # FOGLAMP_BEGIN # See: http://foglamp.readthedocs.io/ # FOGLAMP_END import signal import asyncio from aiohttp import web from foglamp.core import routes from foglamp.core import middleware from foglamp.core import scheduler __author__ = "Praveen Garg" __copyright__ = "Copyrigh...
641434ef0d1056fecdedbe7dacfe2d915b89408b
undecorated.py
undecorated.py
# -*- coding: utf-8 -*- # Copyright 2016 Ionuț Arțăriși <ionut@artarisi.eu> # 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...
# -*- coding: utf-8 -*- # Copyright 2016 Ionuț Arțăriși <ionut@artarisi.eu> # 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...
Remove module docstring as we have it on the func
Remove module docstring as we have it on the func
Python
apache-2.0
mapleoin/undecorated
# -*- coding: utf-8 -*- # Copyright 2016 Ionuț Arțăriși <ionut@artarisi.eu> # 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...
# -*- coding: utf-8 -*- # Copyright 2016 Ionuț Arțăriși <ionut@artarisi.eu> # 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...
<commit_before># -*- coding: utf-8 -*- # Copyright 2016 Ionuț Arțăriși <ionut@artarisi.eu> # 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 # ...
# -*- coding: utf-8 -*- # Copyright 2016 Ionuț Arțăriși <ionut@artarisi.eu> # 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...
# -*- coding: utf-8 -*- # Copyright 2016 Ionuț Arțăriși <ionut@artarisi.eu> # 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...
<commit_before># -*- coding: utf-8 -*- # Copyright 2016 Ionuț Arțăriși <ionut@artarisi.eu> # 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 # ...
f4bc898b84ef516555367dde6dfdbfb249aa95ac
app.py
app.py
from flask import Flask, render_template, request, jsonify import os import shutil app = Flask(__name__) app.config.from_object('config.Debug') @app.route('/upload', methods=['GET', 'POST']) def upload(): if request.method == 'GET': return render_template('upload.html') elif request.method == 'POST...
from flask import Flask, render_template, request, jsonify import os import shutil import requests app = Flask(__name__) app.config.from_object('config.Debug') @app.route('/upload', methods=['GET', 'POST']) def upload(): if request.method == 'GET': return render_template('upload.html') elif request...
Save confirmed files with Google Books ID
Save confirmed files with Google Books ID
Python
mit
citruspi/Alexandria,citruspi/Alexandria
from flask import Flask, render_template, request, jsonify import os import shutil app = Flask(__name__) app.config.from_object('config.Debug') @app.route('/upload', methods=['GET', 'POST']) def upload(): if request.method == 'GET': return render_template('upload.html') elif request.method == 'POST...
from flask import Flask, render_template, request, jsonify import os import shutil import requests app = Flask(__name__) app.config.from_object('config.Debug') @app.route('/upload', methods=['GET', 'POST']) def upload(): if request.method == 'GET': return render_template('upload.html') elif request...
<commit_before>from flask import Flask, render_template, request, jsonify import os import shutil app = Flask(__name__) app.config.from_object('config.Debug') @app.route('/upload', methods=['GET', 'POST']) def upload(): if request.method == 'GET': return render_template('upload.html') elif request....
from flask import Flask, render_template, request, jsonify import os import shutil import requests app = Flask(__name__) app.config.from_object('config.Debug') @app.route('/upload', methods=['GET', 'POST']) def upload(): if request.method == 'GET': return render_template('upload.html') elif request...
from flask import Flask, render_template, request, jsonify import os import shutil app = Flask(__name__) app.config.from_object('config.Debug') @app.route('/upload', methods=['GET', 'POST']) def upload(): if request.method == 'GET': return render_template('upload.html') elif request.method == 'POST...
<commit_before>from flask import Flask, render_template, request, jsonify import os import shutil app = Flask(__name__) app.config.from_object('config.Debug') @app.route('/upload', methods=['GET', 'POST']) def upload(): if request.method == 'GET': return render_template('upload.html') elif request....
e8935189659e882f534f5605086dc76ce7ce881b
rdrf/rdrf/admin.py
rdrf/rdrf/admin.py
from django.contrib import admin from models import * from registry.groups.models import User class SectionAdmin(admin.ModelAdmin): list_display = ('code', 'display_name') class RegistryFormAdmin(admin.ModelAdmin): list_display = ('registry', 'name', 'sections') class RegistryAdmin(admin.ModelAdmin): ...
from django.contrib import admin from models import * from registry.groups.models import User class SectionAdmin(admin.ModelAdmin): list_display = ('code', 'display_name') class RegistryFormAdmin(admin.ModelAdmin): list_display = ('registry', 'name', 'sections') class RegistryAdmin(admin.ModelAdmin): ...
Disable adding registries for non-superusers
Disable adding registries for non-superusers
Python
agpl-3.0
muccg/rdrf,muccg/rdrf,muccg/rdrf,muccg/rdrf,muccg/rdrf
from django.contrib import admin from models import * from registry.groups.models import User class SectionAdmin(admin.ModelAdmin): list_display = ('code', 'display_name') class RegistryFormAdmin(admin.ModelAdmin): list_display = ('registry', 'name', 'sections') class RegistryAdmin(admin.ModelAdmin): ...
from django.contrib import admin from models import * from registry.groups.models import User class SectionAdmin(admin.ModelAdmin): list_display = ('code', 'display_name') class RegistryFormAdmin(admin.ModelAdmin): list_display = ('registry', 'name', 'sections') class RegistryAdmin(admin.ModelAdmin): ...
<commit_before>from django.contrib import admin from models import * from registry.groups.models import User class SectionAdmin(admin.ModelAdmin): list_display = ('code', 'display_name') class RegistryFormAdmin(admin.ModelAdmin): list_display = ('registry', 'name', 'sections') class RegistryAdmin(admin.Model...
from django.contrib import admin from models import * from registry.groups.models import User class SectionAdmin(admin.ModelAdmin): list_display = ('code', 'display_name') class RegistryFormAdmin(admin.ModelAdmin): list_display = ('registry', 'name', 'sections') class RegistryAdmin(admin.ModelAdmin): ...
from django.contrib import admin from models import * from registry.groups.models import User class SectionAdmin(admin.ModelAdmin): list_display = ('code', 'display_name') class RegistryFormAdmin(admin.ModelAdmin): list_display = ('registry', 'name', 'sections') class RegistryAdmin(admin.ModelAdmin): ...
<commit_before>from django.contrib import admin from models import * from registry.groups.models import User class SectionAdmin(admin.ModelAdmin): list_display = ('code', 'display_name') class RegistryFormAdmin(admin.ModelAdmin): list_display = ('registry', 'name', 'sections') class RegistryAdmin(admin.Model...
b1475056f22810912e50c62258c479acd86645a5
follower/pid.py
follower/pid.py
import sys from time import time class PID(object): def __init__(self): """initizes value for the PID""" self.kd = 0 self.ki = 0 self.kp = 1 self.previous_error = 0 self.integral_error = 0 def set_k_values(self, kp, kd, ki): self.kp = kp self...
import sys from time import time class PID(object): def __init__(self): """initizes value for the PID""" self.kd = 0 self.ki = 0 self.kp = 1 self.previous_error = 0 self.integral_error = 0 def set_k_values(self, kp, kd, ki): self.kp = kp self...
Update to follower, reduce speed to motors.
Update to follower, reduce speed to motors.
Python
bsd-2-clause
IEEERobotics/bot,IEEERobotics/bot,IEEERobotics/bot,deepakiam/bot,deepakiam/bot,deepakiam/bot
import sys from time import time class PID(object): def __init__(self): """initizes value for the PID""" self.kd = 0 self.ki = 0 self.kp = 1 self.previous_error = 0 self.integral_error = 0 def set_k_values(self, kp, kd, ki): self.kp = kp self...
import sys from time import time class PID(object): def __init__(self): """initizes value for the PID""" self.kd = 0 self.ki = 0 self.kp = 1 self.previous_error = 0 self.integral_error = 0 def set_k_values(self, kp, kd, ki): self.kp = kp self...
<commit_before> import sys from time import time class PID(object): def __init__(self): """initizes value for the PID""" self.kd = 0 self.ki = 0 self.kp = 1 self.previous_error = 0 self.integral_error = 0 def set_k_values(self, kp, kd, ki): self.kp = ...
import sys from time import time class PID(object): def __init__(self): """initizes value for the PID""" self.kd = 0 self.ki = 0 self.kp = 1 self.previous_error = 0 self.integral_error = 0 def set_k_values(self, kp, kd, ki): self.kp = kp self...
import sys from time import time class PID(object): def __init__(self): """initizes value for the PID""" self.kd = 0 self.ki = 0 self.kp = 1 self.previous_error = 0 self.integral_error = 0 def set_k_values(self, kp, kd, ki): self.kp = kp self...
<commit_before> import sys from time import time class PID(object): def __init__(self): """initizes value for the PID""" self.kd = 0 self.ki = 0 self.kp = 1 self.previous_error = 0 self.integral_error = 0 def set_k_values(self, kp, kd, ki): self.kp = ...
b393c41bf73a492bbd4a7bc50d16dd74c126c3db
grab.py
grab.py
#!/usr/bin/env python # Grab runs from S3 and do analysis # # Daniel Klein, 2015-08-14 import sys import subprocess import glob # Putting this in front of expensive imports import argparse parser = argparse.ArgumentParser() parser.add_argument('remote_dir', help = 'S3 directory with completed runs') parser.add_argum...
#!/usr/bin/env python # Grab runs from S3 and do analysis # # Daniel Klein, 2015-08-14 import sys import subprocess import glob import argparse parser = argparse.ArgumentParser() parser.add_argument('remote_dir', help = 'S3 directory with completed runs') parser.add_argument('run_ids', help = 'IDs of runs to analyze...
Allow pulling batch of runs for analysis
Allow pulling batch of runs for analysis
Python
mit
othercriteria/StochasticBlockmodel,othercriteria/StochasticBlockmodel,othercriteria/StochasticBlockmodel,othercriteria/StochasticBlockmodel,othercriteria/StochasticBlockmodel,othercriteria/StochasticBlockmodel
#!/usr/bin/env python # Grab runs from S3 and do analysis # # Daniel Klein, 2015-08-14 import sys import subprocess import glob # Putting this in front of expensive imports import argparse parser = argparse.ArgumentParser() parser.add_argument('remote_dir', help = 'S3 directory with completed runs') parser.add_argum...
#!/usr/bin/env python # Grab runs from S3 and do analysis # # Daniel Klein, 2015-08-14 import sys import subprocess import glob import argparse parser = argparse.ArgumentParser() parser.add_argument('remote_dir', help = 'S3 directory with completed runs') parser.add_argument('run_ids', help = 'IDs of runs to analyze...
<commit_before>#!/usr/bin/env python # Grab runs from S3 and do analysis # # Daniel Klein, 2015-08-14 import sys import subprocess import glob # Putting this in front of expensive imports import argparse parser = argparse.ArgumentParser() parser.add_argument('remote_dir', help = 'S3 directory with completed runs') p...
#!/usr/bin/env python # Grab runs from S3 and do analysis # # Daniel Klein, 2015-08-14 import sys import subprocess import glob import argparse parser = argparse.ArgumentParser() parser.add_argument('remote_dir', help = 'S3 directory with completed runs') parser.add_argument('run_ids', help = 'IDs of runs to analyze...
#!/usr/bin/env python # Grab runs from S3 and do analysis # # Daniel Klein, 2015-08-14 import sys import subprocess import glob # Putting this in front of expensive imports import argparse parser = argparse.ArgumentParser() parser.add_argument('remote_dir', help = 'S3 directory with completed runs') parser.add_argum...
<commit_before>#!/usr/bin/env python # Grab runs from S3 and do analysis # # Daniel Klein, 2015-08-14 import sys import subprocess import glob # Putting this in front of expensive imports import argparse parser = argparse.ArgumentParser() parser.add_argument('remote_dir', help = 'S3 directory with completed runs') p...
cbf788d734f3a93b7f6b85269ba8f32e9be50a81
p3p/urls.py
p3p/urls.py
from django.conf.urls.defaults import patterns, url from p3p.views import XmlView, P3PView urlpatterns = patterns('p3p.views', url(r'^p3p.xml$', XmlView.as_view(), name='p3p'), url(r'^policy.p3p$', P3PView.as_view(), name='policy'), )
from django.conf.urls import patterns, url from p3p.views import XmlView, P3PView urlpatterns = patterns('p3p.views', url(r'^p3p.xml$', XmlView.as_view(), name='p3p'), url(r'^policy.p3p$', P3PView.as_view(), name='policy'), )
Fix compatibility problems with django.
Fix compatibility problems with django.
Python
apache-2.0
jjanssen/django-p3p
from django.conf.urls.defaults import patterns, url from p3p.views import XmlView, P3PView urlpatterns = patterns('p3p.views', url(r'^p3p.xml$', XmlView.as_view(), name='p3p'), url(r'^policy.p3p$', P3PView.as_view(), name='policy'), ) Fix compatibility problems with django.
from django.conf.urls import patterns, url from p3p.views import XmlView, P3PView urlpatterns = patterns('p3p.views', url(r'^p3p.xml$', XmlView.as_view(), name='p3p'), url(r'^policy.p3p$', P3PView.as_view(), name='policy'), )
<commit_before>from django.conf.urls.defaults import patterns, url from p3p.views import XmlView, P3PView urlpatterns = patterns('p3p.views', url(r'^p3p.xml$', XmlView.as_view(), name='p3p'), url(r'^policy.p3p$', P3PView.as_view(), name='policy'), ) <commit_msg>Fix compatibility problems with django.<commit_af...
from django.conf.urls import patterns, url from p3p.views import XmlView, P3PView urlpatterns = patterns('p3p.views', url(r'^p3p.xml$', XmlView.as_view(), name='p3p'), url(r'^policy.p3p$', P3PView.as_view(), name='policy'), )
from django.conf.urls.defaults import patterns, url from p3p.views import XmlView, P3PView urlpatterns = patterns('p3p.views', url(r'^p3p.xml$', XmlView.as_view(), name='p3p'), url(r'^policy.p3p$', P3PView.as_view(), name='policy'), ) Fix compatibility problems with django.from django.conf.urls import patterns...
<commit_before>from django.conf.urls.defaults import patterns, url from p3p.views import XmlView, P3PView urlpatterns = patterns('p3p.views', url(r'^p3p.xml$', XmlView.as_view(), name='p3p'), url(r'^policy.p3p$', P3PView.as_view(), name='policy'), ) <commit_msg>Fix compatibility problems with django.<commit_af...
370809a6715675aee98b05bdd3c4d0c26a5d156a
meals/models.py
meals/models.py
from django.db import models class Wbw_list(models.Model): list_id = models.IntegerField(unique=True) name = models.CharField(max_length=200, blank=True) def __str__(self): return self.name class Participant(models.Model): wbw_list = models.ManyToManyField(Wbw_list, through='Participation')...
from django.db import models class Wbw_list(models.Model): list_id = models.IntegerField(unique=True) name = models.CharField(max_length=200, blank=True) def __str__(self): return self.name class Participant(models.Model): wbw_list = models.ManyToManyField(Wbw_list, through='Participation')...
Allow meals with unknown payer
Allow meals with unknown payer
Python
cc0-1.0
joostrijneveld/eetvoudig,joostrijneveld/eetvoudig,joostrijneveld/eetvoudig
from django.db import models class Wbw_list(models.Model): list_id = models.IntegerField(unique=True) name = models.CharField(max_length=200, blank=True) def __str__(self): return self.name class Participant(models.Model): wbw_list = models.ManyToManyField(Wbw_list, through='Participation')...
from django.db import models class Wbw_list(models.Model): list_id = models.IntegerField(unique=True) name = models.CharField(max_length=200, blank=True) def __str__(self): return self.name class Participant(models.Model): wbw_list = models.ManyToManyField(Wbw_list, through='Participation')...
<commit_before>from django.db import models class Wbw_list(models.Model): list_id = models.IntegerField(unique=True) name = models.CharField(max_length=200, blank=True) def __str__(self): return self.name class Participant(models.Model): wbw_list = models.ManyToManyField(Wbw_list, through='...
from django.db import models class Wbw_list(models.Model): list_id = models.IntegerField(unique=True) name = models.CharField(max_length=200, blank=True) def __str__(self): return self.name class Participant(models.Model): wbw_list = models.ManyToManyField(Wbw_list, through='Participation')...
from django.db import models class Wbw_list(models.Model): list_id = models.IntegerField(unique=True) name = models.CharField(max_length=200, blank=True) def __str__(self): return self.name class Participant(models.Model): wbw_list = models.ManyToManyField(Wbw_list, through='Participation')...
<commit_before>from django.db import models class Wbw_list(models.Model): list_id = models.IntegerField(unique=True) name = models.CharField(max_length=200, blank=True) def __str__(self): return self.name class Participant(models.Model): wbw_list = models.ManyToManyField(Wbw_list, through='...
a8115391de5a4490929cacc606282852b59f54c9
IPython/html/widgets/widget_image.py
IPython/html/widgets/widget_image.py
"""ButtonWidget class. Represents a button in the frontend using a widget. Allows user to listen for click events on the button and trigger backend code when the clicks are fired. """ #----------------------------------------------------------------------------- # Copyright (c) 2013, the IPython Development Team. #...
"""ButtonWidget class. Represents a button in the frontend using a widget. Allows user to listen for click events on the button and trigger backend code when the clicks are fired. """ #----------------------------------------------------------------------------- # Copyright (c) 2013, the IPython Development Team. #...
Use CUnicode for width and height in ImageWidget
Use CUnicode for width and height in ImageWidget
Python
bsd-3-clause
ipython/ipython,ipython/ipython
"""ButtonWidget class. Represents a button in the frontend using a widget. Allows user to listen for click events on the button and trigger backend code when the clicks are fired. """ #----------------------------------------------------------------------------- # Copyright (c) 2013, the IPython Development Team. #...
"""ButtonWidget class. Represents a button in the frontend using a widget. Allows user to listen for click events on the button and trigger backend code when the clicks are fired. """ #----------------------------------------------------------------------------- # Copyright (c) 2013, the IPython Development Team. #...
<commit_before>"""ButtonWidget class. Represents a button in the frontend using a widget. Allows user to listen for click events on the button and trigger backend code when the clicks are fired. """ #----------------------------------------------------------------------------- # Copyright (c) 2013, the IPython Deve...
"""ButtonWidget class. Represents a button in the frontend using a widget. Allows user to listen for click events on the button and trigger backend code when the clicks are fired. """ #----------------------------------------------------------------------------- # Copyright (c) 2013, the IPython Development Team. #...
"""ButtonWidget class. Represents a button in the frontend using a widget. Allows user to listen for click events on the button and trigger backend code when the clicks are fired. """ #----------------------------------------------------------------------------- # Copyright (c) 2013, the IPython Development Team. #...
<commit_before>"""ButtonWidget class. Represents a button in the frontend using a widget. Allows user to listen for click events on the button and trigger backend code when the clicks are fired. """ #----------------------------------------------------------------------------- # Copyright (c) 2013, the IPython Deve...
bfdf65558e2f9b5b4e8d385b2911db374ffbfe03
qipipe/qiprofile/update.py
qipipe/qiprofile/update.py
from qiprofile_rest_client.helpers import database from qiprofile_rest_client.model.subject import Subject from qiprofile_rest_client.model.imaging import Session from . import (clinical, imaging) def update(project, collection, subject, session, filename): """ Updates the qiprofile database from the clinical...
from qiprofile_rest_client.helpers import database from qiprofile_rest_client.model.subject import Subject from qiprofile_rest_client.model.imaging import Session from . import (clinical, imaging) def update(project, collection, subject, session, spreadsheet): """ Updates the qiprofile database from the clini...
Rename the filename argument to spreadsheet.
Rename the filename argument to spreadsheet.
Python
bsd-2-clause
ohsu-qin/qipipe
from qiprofile_rest_client.helpers import database from qiprofile_rest_client.model.subject import Subject from qiprofile_rest_client.model.imaging import Session from . import (clinical, imaging) def update(project, collection, subject, session, filename): """ Updates the qiprofile database from the clinical...
from qiprofile_rest_client.helpers import database from qiprofile_rest_client.model.subject import Subject from qiprofile_rest_client.model.imaging import Session from . import (clinical, imaging) def update(project, collection, subject, session, spreadsheet): """ Updates the qiprofile database from the clini...
<commit_before>from qiprofile_rest_client.helpers import database from qiprofile_rest_client.model.subject import Subject from qiprofile_rest_client.model.imaging import Session from . import (clinical, imaging) def update(project, collection, subject, session, filename): """ Updates the qiprofile database fr...
from qiprofile_rest_client.helpers import database from qiprofile_rest_client.model.subject import Subject from qiprofile_rest_client.model.imaging import Session from . import (clinical, imaging) def update(project, collection, subject, session, spreadsheet): """ Updates the qiprofile database from the clini...
from qiprofile_rest_client.helpers import database from qiprofile_rest_client.model.subject import Subject from qiprofile_rest_client.model.imaging import Session from . import (clinical, imaging) def update(project, collection, subject, session, filename): """ Updates the qiprofile database from the clinical...
<commit_before>from qiprofile_rest_client.helpers import database from qiprofile_rest_client.model.subject import Subject from qiprofile_rest_client.model.imaging import Session from . import (clinical, imaging) def update(project, collection, subject, session, filename): """ Updates the qiprofile database fr...
99f7b0edf2b84658e0a03149eb3e999293aa5e95
src/model/train_xgb_model.py
src/model/train_xgb_model.py
import numpy as np import pandas as pd import sys import os from sklearn.externals import joblib import xgboost as xgb scriptpath = os.path.dirname(os.path.realpath(sys.argv[0])) + '/../' sys.path.append(os.path.abspath(scriptpath)) import utils train = joblib.load(utils.processed_data_path + 'train_is_booking_all_to...
import numpy as np import pandas as pd import sys import os from sklearn.externals import joblib import xgboost as xgb scriptpath = os.path.dirname(os.path.realpath(sys.argv[0])) + '/../' sys.path.append(os.path.abspath(scriptpath)) import utils train = joblib.load(utils.processed_data_path + 'train_is_booking_all_to...
Fix bugs in rf and xgb models
Fix bugs in rf and xgb models
Python
bsd-3-clause
parkerzf/kaggle-expedia,parkerzf/kaggle-expedia,parkerzf/kaggle-expedia
import numpy as np import pandas as pd import sys import os from sklearn.externals import joblib import xgboost as xgb scriptpath = os.path.dirname(os.path.realpath(sys.argv[0])) + '/../' sys.path.append(os.path.abspath(scriptpath)) import utils train = joblib.load(utils.processed_data_path + 'train_is_booking_all_to...
import numpy as np import pandas as pd import sys import os from sklearn.externals import joblib import xgboost as xgb scriptpath = os.path.dirname(os.path.realpath(sys.argv[0])) + '/../' sys.path.append(os.path.abspath(scriptpath)) import utils train = joblib.load(utils.processed_data_path + 'train_is_booking_all_to...
<commit_before>import numpy as np import pandas as pd import sys import os from sklearn.externals import joblib import xgboost as xgb scriptpath = os.path.dirname(os.path.realpath(sys.argv[0])) + '/../' sys.path.append(os.path.abspath(scriptpath)) import utils train = joblib.load(utils.processed_data_path + 'train_is...
import numpy as np import pandas as pd import sys import os from sklearn.externals import joblib import xgboost as xgb scriptpath = os.path.dirname(os.path.realpath(sys.argv[0])) + '/../' sys.path.append(os.path.abspath(scriptpath)) import utils train = joblib.load(utils.processed_data_path + 'train_is_booking_all_to...
import numpy as np import pandas as pd import sys import os from sklearn.externals import joblib import xgboost as xgb scriptpath = os.path.dirname(os.path.realpath(sys.argv[0])) + '/../' sys.path.append(os.path.abspath(scriptpath)) import utils train = joblib.load(utils.processed_data_path + 'train_is_booking_all_to...
<commit_before>import numpy as np import pandas as pd import sys import os from sklearn.externals import joblib import xgboost as xgb scriptpath = os.path.dirname(os.path.realpath(sys.argv[0])) + '/../' sys.path.append(os.path.abspath(scriptpath)) import utils train = joblib.load(utils.processed_data_path + 'train_is...
6c4343837fb3b92e0cc5db83f124a31658359c47
pymake/builtins.py
pymake/builtins.py
""" Implicit variables; perhaps in the future this will also include some implicit rules, at least match-anything cancellation rules. """ variables = { 'RM': 'rm -f', '.LIBPATTERNS': 'lib%.so lib%.a', }
""" Implicit variables; perhaps in the future this will also include some implicit rules, at least match-anything cancellation rules. """ variables = { 'RM': 'rm -f', '.LIBPATTERNS': 'lib%.so lib%.a', '.PYMAKE': '1', }
Set .PYMAKE so we can distinguish pymake from gmake
Set .PYMAKE so we can distinguish pymake from gmake
Python
mit
indygreg/pymake,mozilla/pymake,mozilla/pymake,mozilla/pymake
""" Implicit variables; perhaps in the future this will also include some implicit rules, at least match-anything cancellation rules. """ variables = { 'RM': 'rm -f', '.LIBPATTERNS': 'lib%.so lib%.a', } Set .PYMAKE so we can distinguish pymake from gmake
""" Implicit variables; perhaps in the future this will also include some implicit rules, at least match-anything cancellation rules. """ variables = { 'RM': 'rm -f', '.LIBPATTERNS': 'lib%.so lib%.a', '.PYMAKE': '1', }
<commit_before>""" Implicit variables; perhaps in the future this will also include some implicit rules, at least match-anything cancellation rules. """ variables = { 'RM': 'rm -f', '.LIBPATTERNS': 'lib%.so lib%.a', } <commit_msg>Set .PYMAKE so we can distinguish pymake from gmake<commit_after>
""" Implicit variables; perhaps in the future this will also include some implicit rules, at least match-anything cancellation rules. """ variables = { 'RM': 'rm -f', '.LIBPATTERNS': 'lib%.so lib%.a', '.PYMAKE': '1', }
""" Implicit variables; perhaps in the future this will also include some implicit rules, at least match-anything cancellation rules. """ variables = { 'RM': 'rm -f', '.LIBPATTERNS': 'lib%.so lib%.a', } Set .PYMAKE so we can distinguish pymake from gmake""" Implicit variables; perhaps in the future this wi...
<commit_before>""" Implicit variables; perhaps in the future this will also include some implicit rules, at least match-anything cancellation rules. """ variables = { 'RM': 'rm -f', '.LIBPATTERNS': 'lib%.so lib%.a', } <commit_msg>Set .PYMAKE so we can distinguish pymake from gmake<commit_after>""" Implicit...
fea5497e615b0b952d76c665284d4090d223fe96
hoomd/md/pytest/test_table_pressure.py
hoomd/md/pytest/test_table_pressure.py
import hoomd import io import numpy def test_table_pressure(simulation_factory, two_particle_snapshot_factory): """Test that write.table can log MD pressure values.""" thermo = hoomd.md.compute.ThermodynamicQuantities(hoomd.filter.All()) snap = two_particle_snapshot_factory() if snap.communicator.rank...
import hoomd import io import numpy def test_table_pressure(simulation_factory, two_particle_snapshot_factory): """Test that write.table can log MD pressure values.""" thermo = hoomd.md.compute.ThermodynamicQuantities(hoomd.filter.All()) snap = two_particle_snapshot_factory() if snap.communicator.rank...
Fix test failure in MPI
Fix test failure in MPI
Python
bsd-3-clause
joaander/hoomd-blue,joaander/hoomd-blue,joaander/hoomd-blue,joaander/hoomd-blue,joaander/hoomd-blue,joaander/hoomd-blue
import hoomd import io import numpy def test_table_pressure(simulation_factory, two_particle_snapshot_factory): """Test that write.table can log MD pressure values.""" thermo = hoomd.md.compute.ThermodynamicQuantities(hoomd.filter.All()) snap = two_particle_snapshot_factory() if snap.communicator.rank...
import hoomd import io import numpy def test_table_pressure(simulation_factory, two_particle_snapshot_factory): """Test that write.table can log MD pressure values.""" thermo = hoomd.md.compute.ThermodynamicQuantities(hoomd.filter.All()) snap = two_particle_snapshot_factory() if snap.communicator.rank...
<commit_before>import hoomd import io import numpy def test_table_pressure(simulation_factory, two_particle_snapshot_factory): """Test that write.table can log MD pressure values.""" thermo = hoomd.md.compute.ThermodynamicQuantities(hoomd.filter.All()) snap = two_particle_snapshot_factory() if snap.co...
import hoomd import io import numpy def test_table_pressure(simulation_factory, two_particle_snapshot_factory): """Test that write.table can log MD pressure values.""" thermo = hoomd.md.compute.ThermodynamicQuantities(hoomd.filter.All()) snap = two_particle_snapshot_factory() if snap.communicator.rank...
import hoomd import io import numpy def test_table_pressure(simulation_factory, two_particle_snapshot_factory): """Test that write.table can log MD pressure values.""" thermo = hoomd.md.compute.ThermodynamicQuantities(hoomd.filter.All()) snap = two_particle_snapshot_factory() if snap.communicator.rank...
<commit_before>import hoomd import io import numpy def test_table_pressure(simulation_factory, two_particle_snapshot_factory): """Test that write.table can log MD pressure values.""" thermo = hoomd.md.compute.ThermodynamicQuantities(hoomd.filter.All()) snap = two_particle_snapshot_factory() if snap.co...
b316988f45fed26f0694836cf9b5860b7441bc3d
setup.py
setup.py
from distutils.core import setup setup( name='PyAuParser', version='0.53', author="Esun Kim", author_email='veblush+git_at_gmail.com', url='https://github.com/veblush/PyAuParser', description="New python engine for GOLD Parser", license='MIT', packages=['pyauparser', 'pyauparser.test'],...
from distutils.core import setup setup( name='PyAuParser', version='0.53.1', author="Esun Kim", author_email='veblush+git_at_gmail.com', url='https://github.com/veblush/PyAuParser', description="New python engine for GOLD Parser", license='MIT', packages=['pyauparser', 'pyauparser.test'...
Remove CR from auparser for linux
Remove CR from auparser for linux
Python
mit
veblush/PyAuParser
from distutils.core import setup setup( name='PyAuParser', version='0.53', author="Esun Kim", author_email='veblush+git_at_gmail.com', url='https://github.com/veblush/PyAuParser', description="New python engine for GOLD Parser", license='MIT', packages=['pyauparser', 'pyauparser.test'],...
from distutils.core import setup setup( name='PyAuParser', version='0.53.1', author="Esun Kim", author_email='veblush+git_at_gmail.com', url='https://github.com/veblush/PyAuParser', description="New python engine for GOLD Parser", license='MIT', packages=['pyauparser', 'pyauparser.test'...
<commit_before>from distutils.core import setup setup( name='PyAuParser', version='0.53', author="Esun Kim", author_email='veblush+git_at_gmail.com', url='https://github.com/veblush/PyAuParser', description="New python engine for GOLD Parser", license='MIT', packages=['pyauparser', 'pya...
from distutils.core import setup setup( name='PyAuParser', version='0.53.1', author="Esun Kim", author_email='veblush+git_at_gmail.com', url='https://github.com/veblush/PyAuParser', description="New python engine for GOLD Parser", license='MIT', packages=['pyauparser', 'pyauparser.test'...
from distutils.core import setup setup( name='PyAuParser', version='0.53', author="Esun Kim", author_email='veblush+git_at_gmail.com', url='https://github.com/veblush/PyAuParser', description="New python engine for GOLD Parser", license='MIT', packages=['pyauparser', 'pyauparser.test'],...
<commit_before>from distutils.core import setup setup( name='PyAuParser', version='0.53', author="Esun Kim", author_email='veblush+git_at_gmail.com', url='https://github.com/veblush/PyAuParser', description="New python engine for GOLD Parser", license='MIT', packages=['pyauparser', 'pya...
bd263dbbfe8d9dd595d7c8ab3a4a91ee73aea3cd
setup.py
setup.py
#! /usr/bin/env python # -*- coding:utf-8 -*- # # Setup for the PyMeshToolkit package # # External dependencies from setuptools import setup, find_packages # Setup configuration setup( name = "PyMeshToolkit", version = "0.1dev", packages = find_packages(), scripts = ['Scripts/pymeshtoolkit.py'], ...
#! /usr/bin/env python # -*- coding:utf-8 -*- # # Setup for the PyMeshToolkit package # # External dependencies from setuptools import setup, find_packages # Setup configuration setup( name = "PyMeshToolkit", version = "0.1dev", packages = find_packages(), scripts = ['pymeshtoolkit.py'], author...
Move the script to the main directory.
Move the script to the main directory.
Python
mit
microy/MeshToolkit,microy/MeshToolkit,microy/PyMeshToolkit,microy/PyMeshToolkit
#! /usr/bin/env python # -*- coding:utf-8 -*- # # Setup for the PyMeshToolkit package # # External dependencies from setuptools import setup, find_packages # Setup configuration setup( name = "PyMeshToolkit", version = "0.1dev", packages = find_packages(), scripts = ['Scripts/pymeshtoolkit.py'], ...
#! /usr/bin/env python # -*- coding:utf-8 -*- # # Setup for the PyMeshToolkit package # # External dependencies from setuptools import setup, find_packages # Setup configuration setup( name = "PyMeshToolkit", version = "0.1dev", packages = find_packages(), scripts = ['pymeshtoolkit.py'], author...
<commit_before>#! /usr/bin/env python # -*- coding:utf-8 -*- # # Setup for the PyMeshToolkit package # # External dependencies from setuptools import setup, find_packages # Setup configuration setup( name = "PyMeshToolkit", version = "0.1dev", packages = find_packages(), scripts = ['Scripts/pymesht...
#! /usr/bin/env python # -*- coding:utf-8 -*- # # Setup for the PyMeshToolkit package # # External dependencies from setuptools import setup, find_packages # Setup configuration setup( name = "PyMeshToolkit", version = "0.1dev", packages = find_packages(), scripts = ['pymeshtoolkit.py'], author...
#! /usr/bin/env python # -*- coding:utf-8 -*- # # Setup for the PyMeshToolkit package # # External dependencies from setuptools import setup, find_packages # Setup configuration setup( name = "PyMeshToolkit", version = "0.1dev", packages = find_packages(), scripts = ['Scripts/pymeshtoolkit.py'], ...
<commit_before>#! /usr/bin/env python # -*- coding:utf-8 -*- # # Setup for the PyMeshToolkit package # # External dependencies from setuptools import setup, find_packages # Setup configuration setup( name = "PyMeshToolkit", version = "0.1dev", packages = find_packages(), scripts = ['Scripts/pymesht...
af8e871eb2752f0fe75ccd7b2a12f81a5ef19d04
tests/test_np.py
tests/test_np.py
from parser_tool import parse, get_parser def test_np(): grammar = get_parser("grammars/test_np.fcfg", trace=0) f = open("grammars/nounphrase.sample") for line in f: # remove newline actual_line = line[:-1] trees = parse(grammar, actual_line) assert len(trees) > 0, "Failed...
from parser_tool import parse, get_parser from utils import go_over_file grammar = get_parser("grammars/test_np.fcfg", trace=0) def test_np_positive(): def is_ok(sentence): trees = parse(grammar, sentence) assert len(trees) > 0, "Failed: %s" % sentence go_over_file("grammars/nounphrase.sa...
Test both correct and wrong samples of noun phrase
Test both correct and wrong samples of noun phrase Extended noun phrase test to check for the grammar refusing wrong samples of noun phrases. Also added a utility module called utils.py
Python
mit
caninemwenja/marker,kmwenja/marker
from parser_tool import parse, get_parser def test_np(): grammar = get_parser("grammars/test_np.fcfg", trace=0) f = open("grammars/nounphrase.sample") for line in f: # remove newline actual_line = line[:-1] trees = parse(grammar, actual_line) assert len(trees) > 0, "Failed...
from parser_tool import parse, get_parser from utils import go_over_file grammar = get_parser("grammars/test_np.fcfg", trace=0) def test_np_positive(): def is_ok(sentence): trees = parse(grammar, sentence) assert len(trees) > 0, "Failed: %s" % sentence go_over_file("grammars/nounphrase.sa...
<commit_before>from parser_tool import parse, get_parser def test_np(): grammar = get_parser("grammars/test_np.fcfg", trace=0) f = open("grammars/nounphrase.sample") for line in f: # remove newline actual_line = line[:-1] trees = parse(grammar, actual_line) assert len(tree...
from parser_tool import parse, get_parser from utils import go_over_file grammar = get_parser("grammars/test_np.fcfg", trace=0) def test_np_positive(): def is_ok(sentence): trees = parse(grammar, sentence) assert len(trees) > 0, "Failed: %s" % sentence go_over_file("grammars/nounphrase.sa...
from parser_tool import parse, get_parser def test_np(): grammar = get_parser("grammars/test_np.fcfg", trace=0) f = open("grammars/nounphrase.sample") for line in f: # remove newline actual_line = line[:-1] trees = parse(grammar, actual_line) assert len(trees) > 0, "Failed...
<commit_before>from parser_tool import parse, get_parser def test_np(): grammar = get_parser("grammars/test_np.fcfg", trace=0) f = open("grammars/nounphrase.sample") for line in f: # remove newline actual_line = line[:-1] trees = parse(grammar, actual_line) assert len(tree...
2102a955dd5bdceca00a087e1613e2974b54cf8e
setup.py
setup.py
""" Flask-Selfdoc ------------- Flask selfdoc automatically creates an online documentation for your flask app. """ from setuptools import setup def readme(): with open('README.md') as f: return f.read() setup( name='Flask-Selfdoc', version='1.0', url='http://github.com/jwg4/flask-selfdoc',...
""" Flask-Selfdoc ------------- Flask selfdoc automatically creates an online documentation for your flask app. """ from setuptools import setup def readme(): with open('README.md') as f: return f.read() setup( name='Flask-Selfdoc', version='1.0rc1', url='http://github.com/jwg4/flask-selfdo...
Make this the first release candidate.
Make this the first release candidate.
Python
mit
jwg4/flask-autodoc,jwg4/flask-autodoc
""" Flask-Selfdoc ------------- Flask selfdoc automatically creates an online documentation for your flask app. """ from setuptools import setup def readme(): with open('README.md') as f: return f.read() setup( name='Flask-Selfdoc', version='1.0', url='http://github.com/jwg4/flask-selfdoc',...
""" Flask-Selfdoc ------------- Flask selfdoc automatically creates an online documentation for your flask app. """ from setuptools import setup def readme(): with open('README.md') as f: return f.read() setup( name='Flask-Selfdoc', version='1.0rc1', url='http://github.com/jwg4/flask-selfdo...
<commit_before>""" Flask-Selfdoc ------------- Flask selfdoc automatically creates an online documentation for your flask app. """ from setuptools import setup def readme(): with open('README.md') as f: return f.read() setup( name='Flask-Selfdoc', version='1.0', url='http://github.com/jwg4/...
""" Flask-Selfdoc ------------- Flask selfdoc automatically creates an online documentation for your flask app. """ from setuptools import setup def readme(): with open('README.md') as f: return f.read() setup( name='Flask-Selfdoc', version='1.0rc1', url='http://github.com/jwg4/flask-selfdo...
""" Flask-Selfdoc ------------- Flask selfdoc automatically creates an online documentation for your flask app. """ from setuptools import setup def readme(): with open('README.md') as f: return f.read() setup( name='Flask-Selfdoc', version='1.0', url='http://github.com/jwg4/flask-selfdoc',...
<commit_before>""" Flask-Selfdoc ------------- Flask selfdoc automatically creates an online documentation for your flask app. """ from setuptools import setup def readme(): with open('README.md') as f: return f.read() setup( name='Flask-Selfdoc', version='1.0', url='http://github.com/jwg4/...
b364d648f2e4071c750d9d8fdf000f8dce936a0a
setup.py
setup.py
#!/usr/bin/env python from distutils.core import setup setup( name = "deco", version = "0.5.1", description = "A decorator for concurrency", packages = ["deco"], author='Alex Sherman', author_email='asherman1024@gmail.com', url='https://github.com/alex-sherman/deco')
#!/usr/bin/env python from distutils.core import setup setup( name = "deco", version = "0.5.2", description = "A decorator for concurrency", packages = ["deco"], author='Alex Sherman', author_email='asherman1024@gmail.com', url='https://github.com/alex-sherman/deco')
Increment version number, includes bug fixes for synchronized decorator and KeyboardInterrupt handling
Increment version number, includes bug fixes for synchronized decorator and KeyboardInterrupt handling
Python
mit
alex-sherman/deco
#!/usr/bin/env python from distutils.core import setup setup( name = "deco", version = "0.5.1", description = "A decorator for concurrency", packages = ["deco"], author='Alex Sherman', author_email='asherman1024@gmail.com', url='https://github.com/alex-sherman/deco') Increment version number, includes b...
#!/usr/bin/env python from distutils.core import setup setup( name = "deco", version = "0.5.2", description = "A decorator for concurrency", packages = ["deco"], author='Alex Sherman', author_email='asherman1024@gmail.com', url='https://github.com/alex-sherman/deco')
<commit_before>#!/usr/bin/env python from distutils.core import setup setup( name = "deco", version = "0.5.1", description = "A decorator for concurrency", packages = ["deco"], author='Alex Sherman', author_email='asherman1024@gmail.com', url='https://github.com/alex-sherman/deco') <commit_msg>Increment...
#!/usr/bin/env python from distutils.core import setup setup( name = "deco", version = "0.5.2", description = "A decorator for concurrency", packages = ["deco"], author='Alex Sherman', author_email='asherman1024@gmail.com', url='https://github.com/alex-sherman/deco')
#!/usr/bin/env python from distutils.core import setup setup( name = "deco", version = "0.5.1", description = "A decorator for concurrency", packages = ["deco"], author='Alex Sherman', author_email='asherman1024@gmail.com', url='https://github.com/alex-sherman/deco') Increment version number, includes b...
<commit_before>#!/usr/bin/env python from distutils.core import setup setup( name = "deco", version = "0.5.1", description = "A decorator for concurrency", packages = ["deco"], author='Alex Sherman', author_email='asherman1024@gmail.com', url='https://github.com/alex-sherman/deco') <commit_msg>Increment...
cebb2341fed3eaabc126f33ee7ad6352164ac993
setup.py
setup.py
#!/usr/bin/python import time from datetime import date from setuptools import setup from pagekite.common import APPVER import os try: # This borks sdist. os.remove('.SELF') except: pass setup( name="pagekite", version=APPVER.replace('github', 'dev%d' % (120*int(time.time()/120))), license="AGPLv3+"...
#!/usr/bin/python import time from datetime import date from setuptools import setup from pagekite.common import APPVER import os try: # This borks sdist. os.remove('.SELF') except: pass setup( name="pagekite", version=os.getenv( 'PAGEKITE_VERSION', APPVER.replace('github', 'dev%d' % (12...
Make it possible to manually override version numbers
Make it possible to manually override version numbers
Python
agpl-3.0
pagekite/PyPagekite,pagekite/PyPagekite,pagekite/PyPagekite
#!/usr/bin/python import time from datetime import date from setuptools import setup from pagekite.common import APPVER import os try: # This borks sdist. os.remove('.SELF') except: pass setup( name="pagekite", version=APPVER.replace('github', 'dev%d' % (120*int(time.time()/120))), license="AGPLv3+"...
#!/usr/bin/python import time from datetime import date from setuptools import setup from pagekite.common import APPVER import os try: # This borks sdist. os.remove('.SELF') except: pass setup( name="pagekite", version=os.getenv( 'PAGEKITE_VERSION', APPVER.replace('github', 'dev%d' % (12...
<commit_before>#!/usr/bin/python import time from datetime import date from setuptools import setup from pagekite.common import APPVER import os try: # This borks sdist. os.remove('.SELF') except: pass setup( name="pagekite", version=APPVER.replace('github', 'dev%d' % (120*int(time.time()/120))), li...
#!/usr/bin/python import time from datetime import date from setuptools import setup from pagekite.common import APPVER import os try: # This borks sdist. os.remove('.SELF') except: pass setup( name="pagekite", version=os.getenv( 'PAGEKITE_VERSION', APPVER.replace('github', 'dev%d' % (12...
#!/usr/bin/python import time from datetime import date from setuptools import setup from pagekite.common import APPVER import os try: # This borks sdist. os.remove('.SELF') except: pass setup( name="pagekite", version=APPVER.replace('github', 'dev%d' % (120*int(time.time()/120))), license="AGPLv3+"...
<commit_before>#!/usr/bin/python import time from datetime import date from setuptools import setup from pagekite.common import APPVER import os try: # This borks sdist. os.remove('.SELF') except: pass setup( name="pagekite", version=APPVER.replace('github', 'dev%d' % (120*int(time.time()/120))), li...
e4cb8bbffd6f60002cff8f37d42f576ba6f1891c
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup, find_packages setup( name = "jpb", version = "0.0.1", packages = find_packages(), #package_dir = {'':"lib"}, zip_safe = False, entry_points = { 'console_scripts': [ 'jpb_generate_source_package = jpb.cli:generate_source_package', 'jpb_build_source_pack...
#!/usr/bin/env python from setuptools import setup, find_packages setup( name = "jpb", version = "0.0.1", packages = find_packages(), #package_dir = {'':"lib"}, zip_safe = False, entry_points = { 'console_scripts': [ 'jpb_generate_source_package = jpb.cli:generate_source_package', 'jpb_generate_binary_p...
Rename binary back to jpb_generate_binary_package
Rename binary back to jpb_generate_binary_package Binary jpb_generate_binary_package was named as jpb_build_source_package This seems to be an accidental change made in commit df61be3d
Python
mit
bmiklautz/jenkins-package-builder
#!/usr/bin/env python from setuptools import setup, find_packages setup( name = "jpb", version = "0.0.1", packages = find_packages(), #package_dir = {'':"lib"}, zip_safe = False, entry_points = { 'console_scripts': [ 'jpb_generate_source_package = jpb.cli:generate_source_package', 'jpb_build_source_pack...
#!/usr/bin/env python from setuptools import setup, find_packages setup( name = "jpb", version = "0.0.1", packages = find_packages(), #package_dir = {'':"lib"}, zip_safe = False, entry_points = { 'console_scripts': [ 'jpb_generate_source_package = jpb.cli:generate_source_package', 'jpb_generate_binary_p...
<commit_before>#!/usr/bin/env python from setuptools import setup, find_packages setup( name = "jpb", version = "0.0.1", packages = find_packages(), #package_dir = {'':"lib"}, zip_safe = False, entry_points = { 'console_scripts': [ 'jpb_generate_source_package = jpb.cli:generate_source_package', 'jpb_bu...
#!/usr/bin/env python from setuptools import setup, find_packages setup( name = "jpb", version = "0.0.1", packages = find_packages(), #package_dir = {'':"lib"}, zip_safe = False, entry_points = { 'console_scripts': [ 'jpb_generate_source_package = jpb.cli:generate_source_package', 'jpb_generate_binary_p...
#!/usr/bin/env python from setuptools import setup, find_packages setup( name = "jpb", version = "0.0.1", packages = find_packages(), #package_dir = {'':"lib"}, zip_safe = False, entry_points = { 'console_scripts': [ 'jpb_generate_source_package = jpb.cli:generate_source_package', 'jpb_build_source_pack...
<commit_before>#!/usr/bin/env python from setuptools import setup, find_packages setup( name = "jpb", version = "0.0.1", packages = find_packages(), #package_dir = {'':"lib"}, zip_safe = False, entry_points = { 'console_scripts': [ 'jpb_generate_source_package = jpb.cli:generate_source_package', 'jpb_bu...
e32d470ba47973f3827a5f85e701826bbb08b621
setup.py
setup.py
from distutils.core import setup setup( name='lcinvestor', version=open('lcinvestor/VERSION').read(), author='Jeremy Gillick', author_email='none@none.com', packages=['lcinvestor', 'lcinvestor.tests', 'lcinvestor.settings'], package_data={ 'lcinvestor': ['VERSION'], 'lcinvestor....
from distutils.core import setup setup( name='lcinvestor', version=open('lcinvestor/VERSION').read(), author='Jeremy Gillick', author_email='none@none.com', packages=['lcinvestor', 'lcinvestor.tests', 'lcinvestor.settings'], package_data={ 'lcinvestor': ['VERSION'], 'lcinvestor....
Update requirements. Add bat file
Update requirements. Add bat file
Python
mit
jgillick/LendingClubAutoInvestor,ilyakatz/LendingClubAutoInvestor,ilyakatz/LendingClubAutoInvestor
from distutils.core import setup setup( name='lcinvestor', version=open('lcinvestor/VERSION').read(), author='Jeremy Gillick', author_email='none@none.com', packages=['lcinvestor', 'lcinvestor.tests', 'lcinvestor.settings'], package_data={ 'lcinvestor': ['VERSION'], 'lcinvestor....
from distutils.core import setup setup( name='lcinvestor', version=open('lcinvestor/VERSION').read(), author='Jeremy Gillick', author_email='none@none.com', packages=['lcinvestor', 'lcinvestor.tests', 'lcinvestor.settings'], package_data={ 'lcinvestor': ['VERSION'], 'lcinvestor....
<commit_before>from distutils.core import setup setup( name='lcinvestor', version=open('lcinvestor/VERSION').read(), author='Jeremy Gillick', author_email='none@none.com', packages=['lcinvestor', 'lcinvestor.tests', 'lcinvestor.settings'], package_data={ 'lcinvestor': ['VERSION'], ...
from distutils.core import setup setup( name='lcinvestor', version=open('lcinvestor/VERSION').read(), author='Jeremy Gillick', author_email='none@none.com', packages=['lcinvestor', 'lcinvestor.tests', 'lcinvestor.settings'], package_data={ 'lcinvestor': ['VERSION'], 'lcinvestor....
from distutils.core import setup setup( name='lcinvestor', version=open('lcinvestor/VERSION').read(), author='Jeremy Gillick', author_email='none@none.com', packages=['lcinvestor', 'lcinvestor.tests', 'lcinvestor.settings'], package_data={ 'lcinvestor': ['VERSION'], 'lcinvestor....
<commit_before>from distutils.core import setup setup( name='lcinvestor', version=open('lcinvestor/VERSION').read(), author='Jeremy Gillick', author_email='none@none.com', packages=['lcinvestor', 'lcinvestor.tests', 'lcinvestor.settings'], package_data={ 'lcinvestor': ['VERSION'], ...
aee5dd434b29c43b04ccc13824ebebb490db3606
setup.py
setup.py
try: from setuptools import setup except ImportError: from distutils.core import setup config = { 'description': 'Collect xUnit xml files and upload them to bob-bench.org', 'author': 'Holger Hans Peter Freyther', 'url': 'http://www.bob-bench.org', 'download_url': 'http://www.bob-bench.org', ...
try: from setuptools import setup except ImportError: from distutils.core import setup config = { 'description': 'Collect xUnit xml files and upload them to bob-bench.org', 'author': 'Holger Hans Peter Freyther', 'url': 'http://www.bob-bench.org', 'download_url': 'http://www.bob-bench.org', ...
Make a new release with the job id and cli args
Make a new release with the job id and cli args
Python
agpl-3.0
bob-bench/benchupload,bob-bench/benchupload
try: from setuptools import setup except ImportError: from distutils.core import setup config = { 'description': 'Collect xUnit xml files and upload them to bob-bench.org', 'author': 'Holger Hans Peter Freyther', 'url': 'http://www.bob-bench.org', 'download_url': 'http://www.bob-bench.org', ...
try: from setuptools import setup except ImportError: from distutils.core import setup config = { 'description': 'Collect xUnit xml files and upload them to bob-bench.org', 'author': 'Holger Hans Peter Freyther', 'url': 'http://www.bob-bench.org', 'download_url': 'http://www.bob-bench.org', ...
<commit_before>try: from setuptools import setup except ImportError: from distutils.core import setup config = { 'description': 'Collect xUnit xml files and upload them to bob-bench.org', 'author': 'Holger Hans Peter Freyther', 'url': 'http://www.bob-bench.org', 'download_url': 'http://www.bob-...
try: from setuptools import setup except ImportError: from distutils.core import setup config = { 'description': 'Collect xUnit xml files and upload them to bob-bench.org', 'author': 'Holger Hans Peter Freyther', 'url': 'http://www.bob-bench.org', 'download_url': 'http://www.bob-bench.org', ...
try: from setuptools import setup except ImportError: from distutils.core import setup config = { 'description': 'Collect xUnit xml files and upload them to bob-bench.org', 'author': 'Holger Hans Peter Freyther', 'url': 'http://www.bob-bench.org', 'download_url': 'http://www.bob-bench.org', ...
<commit_before>try: from setuptools import setup except ImportError: from distutils.core import setup config = { 'description': 'Collect xUnit xml files and upload them to bob-bench.org', 'author': 'Holger Hans Peter Freyther', 'url': 'http://www.bob-bench.org', 'download_url': 'http://www.bob-...
96a0175f897621b8e828293c6e3ba089eb50ba4e
setup.py
setup.py
from setuptools import setup setup( name='nnpy', version='1.1', url='https://github.com/nanomsg/nnpy', license='MIT', author='Dirkjan Ochtman', author_email='dirkjan@ochtman.nl', description='cffi-based Python bindings for nanomsg', long_description=open('README.rst').read(), classi...
from setuptools import setup setup( name='nnpy', version='1.2', url='https://github.com/nanomsg/nnpy', license='MIT', author='Dirkjan Ochtman', author_email='dirkjan@ochtman.nl', description='cffi-based Python bindings for nanomsg', long_description=open('README.rst').read(), classi...
Bump version number to 1.2
Bump version number to 1.2
Python
mit
nanomsg/nnpy
from setuptools import setup setup( name='nnpy', version='1.1', url='https://github.com/nanomsg/nnpy', license='MIT', author='Dirkjan Ochtman', author_email='dirkjan@ochtman.nl', description='cffi-based Python bindings for nanomsg', long_description=open('README.rst').read(), classi...
from setuptools import setup setup( name='nnpy', version='1.2', url='https://github.com/nanomsg/nnpy', license='MIT', author='Dirkjan Ochtman', author_email='dirkjan@ochtman.nl', description='cffi-based Python bindings for nanomsg', long_description=open('README.rst').read(), classi...
<commit_before>from setuptools import setup setup( name='nnpy', version='1.1', url='https://github.com/nanomsg/nnpy', license='MIT', author='Dirkjan Ochtman', author_email='dirkjan@ochtman.nl', description='cffi-based Python bindings for nanomsg', long_description=open('README.rst').rea...
from setuptools import setup setup( name='nnpy', version='1.2', url='https://github.com/nanomsg/nnpy', license='MIT', author='Dirkjan Ochtman', author_email='dirkjan@ochtman.nl', description='cffi-based Python bindings for nanomsg', long_description=open('README.rst').read(), classi...
from setuptools import setup setup( name='nnpy', version='1.1', url='https://github.com/nanomsg/nnpy', license='MIT', author='Dirkjan Ochtman', author_email='dirkjan@ochtman.nl', description='cffi-based Python bindings for nanomsg', long_description=open('README.rst').read(), classi...
<commit_before>from setuptools import setup setup( name='nnpy', version='1.1', url='https://github.com/nanomsg/nnpy', license='MIT', author='Dirkjan Ochtman', author_email='dirkjan@ochtman.nl', description='cffi-based Python bindings for nanomsg', long_description=open('README.rst').rea...
2e54c8050f994646e7cbf9f18c9ab557341ec3f5
setup.py
setup.py
from setuptools import setup, find_packages setup( name="IIS", version="0.0", long_description=__doc__, packages=find_packages(), include_package_data=True, zip_safe=False, install_requires=[ "Flask>=0.11.1,<0.12.0", "Flask-Bootstrap>=3.3.7.0,<4.0.0.0", "Flask-Login>...
from setuptools import setup, find_packages setup( name="IIS", version="0.0", long_description=__doc__, packages=find_packages(exclude=["tests.*", "tests"]), include_package_data=True, zip_safe=False, install_requires=[ "Flask>=0.11.1,<0.12.0", "Flask-Bootstrap>=3.3.7.0,<4.0...
Exclude tests from installed packages
Exclude tests from installed packages
Python
agpl-3.0
interactomix/iis,interactomix/iis
from setuptools import setup, find_packages setup( name="IIS", version="0.0", long_description=__doc__, packages=find_packages(), include_package_data=True, zip_safe=False, install_requires=[ "Flask>=0.11.1,<0.12.0", "Flask-Bootstrap>=3.3.7.0,<4.0.0.0", "Flask-Login>...
from setuptools import setup, find_packages setup( name="IIS", version="0.0", long_description=__doc__, packages=find_packages(exclude=["tests.*", "tests"]), include_package_data=True, zip_safe=False, install_requires=[ "Flask>=0.11.1,<0.12.0", "Flask-Bootstrap>=3.3.7.0,<4.0...
<commit_before>from setuptools import setup, find_packages setup( name="IIS", version="0.0", long_description=__doc__, packages=find_packages(), include_package_data=True, zip_safe=False, install_requires=[ "Flask>=0.11.1,<0.12.0", "Flask-Bootstrap>=3.3.7.0,<4.0.0.0", ...
from setuptools import setup, find_packages setup( name="IIS", version="0.0", long_description=__doc__, packages=find_packages(exclude=["tests.*", "tests"]), include_package_data=True, zip_safe=False, install_requires=[ "Flask>=0.11.1,<0.12.0", "Flask-Bootstrap>=3.3.7.0,<4.0...
from setuptools import setup, find_packages setup( name="IIS", version="0.0", long_description=__doc__, packages=find_packages(), include_package_data=True, zip_safe=False, install_requires=[ "Flask>=0.11.1,<0.12.0", "Flask-Bootstrap>=3.3.7.0,<4.0.0.0", "Flask-Login>...
<commit_before>from setuptools import setup, find_packages setup( name="IIS", version="0.0", long_description=__doc__, packages=find_packages(), include_package_data=True, zip_safe=False, install_requires=[ "Flask>=0.11.1,<0.12.0", "Flask-Bootstrap>=3.3.7.0,<4.0.0.0", ...
aa09ffc91c7cb1e54512132320b78776227b6417
setup.py
setup.py
from setuptools import find_packages, setup setup_args = dict( name='furious', version='0.1', license='Apache', description='Furious is a lightweight library that wraps Google App Engine' 'taskqueues to make building dynamic workflows easy.', author='Robert Kluin', author_email...
from setuptools import find_packages, setup setup_args = dict( name='furious', version='0.9', license='Apache', description='Furious is a lightweight library that wraps Google App Engine' 'taskqueues to make building dynamic workflows easy.', author='Robert Kluin', author_email...
Increment the version to 0.9 and set to beta.
Increment the version to 0.9 and set to beta. Getting close to stable and 1.0 release.
Python
apache-2.0
rosshendrickson-wf/furious,mattsanders-wf/furious,mattsanders-wf/furious,andreleblanc-wf/furious,Workiva/furious,beaulyddon-wf/furious,rosshendrickson-wf/furious,andreleblanc-wf/furious,Workiva/furious,beaulyddon-wf/furious
from setuptools import find_packages, setup setup_args = dict( name='furious', version='0.1', license='Apache', description='Furious is a lightweight library that wraps Google App Engine' 'taskqueues to make building dynamic workflows easy.', author='Robert Kluin', author_email...
from setuptools import find_packages, setup setup_args = dict( name='furious', version='0.9', license='Apache', description='Furious is a lightweight library that wraps Google App Engine' 'taskqueues to make building dynamic workflows easy.', author='Robert Kluin', author_email...
<commit_before>from setuptools import find_packages, setup setup_args = dict( name='furious', version='0.1', license='Apache', description='Furious is a lightweight library that wraps Google App Engine' 'taskqueues to make building dynamic workflows easy.', author='Robert Kluin', ...
from setuptools import find_packages, setup setup_args = dict( name='furious', version='0.9', license='Apache', description='Furious is a lightweight library that wraps Google App Engine' 'taskqueues to make building dynamic workflows easy.', author='Robert Kluin', author_email...
from setuptools import find_packages, setup setup_args = dict( name='furious', version='0.1', license='Apache', description='Furious is a lightweight library that wraps Google App Engine' 'taskqueues to make building dynamic workflows easy.', author='Robert Kluin', author_email...
<commit_before>from setuptools import find_packages, setup setup_args = dict( name='furious', version='0.1', license='Apache', description='Furious is a lightweight library that wraps Google App Engine' 'taskqueues to make building dynamic workflows easy.', author='Robert Kluin', ...
3cc90bb8ccce7b2feefe95173f095a71996d2633
setup.py
setup.py
#!/usr/bin/env python from distutils.core import setup, Command class TestDiscovery(Command): user_options = [] def initialize_options(self): pass def finalize_options(self): pass def run(self): import sys, subprocess errno = subprocess.call([ sys.execut...
#!/usr/bin/env python from distutils.core import setup, Command class TestDiscovery(Command): user_options = [] def initialize_options(self): pass def finalize_options(self): pass def run(self): import sys, subprocess errno = subprocess.call([ sys.execut...
Update to version 0.2 and some trove classifiers
Update to version 0.2 and some trove classifiers
Python
bsd-3-clause
gulopine/steel
#!/usr/bin/env python from distutils.core import setup, Command class TestDiscovery(Command): user_options = [] def initialize_options(self): pass def finalize_options(self): pass def run(self): import sys, subprocess errno = subprocess.call([ sys.execut...
#!/usr/bin/env python from distutils.core import setup, Command class TestDiscovery(Command): user_options = [] def initialize_options(self): pass def finalize_options(self): pass def run(self): import sys, subprocess errno = subprocess.call([ sys.execut...
<commit_before>#!/usr/bin/env python from distutils.core import setup, Command class TestDiscovery(Command): user_options = [] def initialize_options(self): pass def finalize_options(self): pass def run(self): import sys, subprocess errno = subprocess.call([ ...
#!/usr/bin/env python from distutils.core import setup, Command class TestDiscovery(Command): user_options = [] def initialize_options(self): pass def finalize_options(self): pass def run(self): import sys, subprocess errno = subprocess.call([ sys.execut...
#!/usr/bin/env python from distutils.core import setup, Command class TestDiscovery(Command): user_options = [] def initialize_options(self): pass def finalize_options(self): pass def run(self): import sys, subprocess errno = subprocess.call([ sys.execut...
<commit_before>#!/usr/bin/env python from distutils.core import setup, Command class TestDiscovery(Command): user_options = [] def initialize_options(self): pass def finalize_options(self): pass def run(self): import sys, subprocess errno = subprocess.call([ ...
0991a4207c7b737186c188719c4dd21c76f3528b
setup.py
setup.py
import os from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) try: README = open(os.path.join(here, 'README.txt')).read() CHANGES = open(os.path.join(here, 'CHANGES.txt')).read() except IOError: README = CHANGES = '' requires = [ 'pyramid', 'pyramid_mako...
import os from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) try: README = open(os.path.join(here, 'README.txt')).read() CHANGES = open(os.path.join(here, 'CHANGES.txt')).read() except IOError: README = CHANGES = '' requires = [ 'pyramid', 'WebHelpers',...
Make Mako requirement only for tests
Make Mako requirement only for tests
Python
bsd-3-clause
vsobolmaven/pyramid_simpleform
import os from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) try: README = open(os.path.join(here, 'README.txt')).read() CHANGES = open(os.path.join(here, 'CHANGES.txt')).read() except IOError: README = CHANGES = '' requires = [ 'pyramid', 'pyramid_mako...
import os from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) try: README = open(os.path.join(here, 'README.txt')).read() CHANGES = open(os.path.join(here, 'CHANGES.txt')).read() except IOError: README = CHANGES = '' requires = [ 'pyramid', 'WebHelpers',...
<commit_before>import os from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) try: README = open(os.path.join(here, 'README.txt')).read() CHANGES = open(os.path.join(here, 'CHANGES.txt')).read() except IOError: README = CHANGES = '' requires = [ 'pyramid', ...
import os from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) try: README = open(os.path.join(here, 'README.txt')).read() CHANGES = open(os.path.join(here, 'CHANGES.txt')).read() except IOError: README = CHANGES = '' requires = [ 'pyramid', 'WebHelpers',...
import os from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) try: README = open(os.path.join(here, 'README.txt')).read() CHANGES = open(os.path.join(here, 'CHANGES.txt')).read() except IOError: README = CHANGES = '' requires = [ 'pyramid', 'pyramid_mako...
<commit_before>import os from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) try: README = open(os.path.join(here, 'README.txt')).read() CHANGES = open(os.path.join(here, 'CHANGES.txt')).read() except IOError: README = CHANGES = '' requires = [ 'pyramid', ...
a670ec2aa1f136155d483cb8697f0613962e604a
setup.py
setup.py
from setuptools import setup, find_packages from distutils.extension import Extension from Cython.Build import cythonize extension_defaults = { 'extra_compile_args': [ '-std=gnu++11', '-O3', '-Wall', '-Wextra', '-Wconversion', '-fno-strict-aliasing' ], 'langu...
from setuptools import setup, find_packages from distutils.extension import Extension from Cython.Build import cythonize extension_defaults = { 'extra_compile_args': [ '-std=c++11', '-O3', '-Wall', '-Wextra', '-Wconversion', '-fno-strict-aliasing' ], 'languag...
Use another compiler flag wich works for clang and gcc.
Use another compiler flag wich works for clang and gcc.
Python
bsd-3-clause
stephan-hof/pyrocksdb,stephan-hof/pyrocksdb
from setuptools import setup, find_packages from distutils.extension import Extension from Cython.Build import cythonize extension_defaults = { 'extra_compile_args': [ '-std=gnu++11', '-O3', '-Wall', '-Wextra', '-Wconversion', '-fno-strict-aliasing' ], 'langu...
from setuptools import setup, find_packages from distutils.extension import Extension from Cython.Build import cythonize extension_defaults = { 'extra_compile_args': [ '-std=c++11', '-O3', '-Wall', '-Wextra', '-Wconversion', '-fno-strict-aliasing' ], 'languag...
<commit_before>from setuptools import setup, find_packages from distutils.extension import Extension from Cython.Build import cythonize extension_defaults = { 'extra_compile_args': [ '-std=gnu++11', '-O3', '-Wall', '-Wextra', '-Wconversion', '-fno-strict-aliasing' ...
from setuptools import setup, find_packages from distutils.extension import Extension from Cython.Build import cythonize extension_defaults = { 'extra_compile_args': [ '-std=c++11', '-O3', '-Wall', '-Wextra', '-Wconversion', '-fno-strict-aliasing' ], 'languag...
from setuptools import setup, find_packages from distutils.extension import Extension from Cython.Build import cythonize extension_defaults = { 'extra_compile_args': [ '-std=gnu++11', '-O3', '-Wall', '-Wextra', '-Wconversion', '-fno-strict-aliasing' ], 'langu...
<commit_before>from setuptools import setup, find_packages from distutils.extension import Extension from Cython.Build import cythonize extension_defaults = { 'extra_compile_args': [ '-std=gnu++11', '-O3', '-Wall', '-Wextra', '-Wconversion', '-fno-strict-aliasing' ...
48539fdd2a244218a1ee2a59d026d3759b9e3475
setup.py
setup.py
from distutils.core import setup import pkg_resources import sys requires = None if sys.version_info < (2, 7): requires = ['argparse'] version = pkg_resources.require("fitparse")[0].version setup( name='fitparse', version=version, description='Python library to parse ANT/Garmin .FIT files', auth...
from distutils.core import setup import pkg_resources import sys requires = ['six'] if sys.version_info < (2, 7): requires.append('argparse') version = pkg_resources.require("fitparse")[0].version setup( name='fitparse', version=version, description='Python library to parse ANT/Garmin .FIT files', ...
Add six as a dependency
Add six as a dependency six is imported, but not listed as a dependency in setup.py. Add it.
Python
isc
K-Phoen/python-fitparse
from distutils.core import setup import pkg_resources import sys requires = None if sys.version_info < (2, 7): requires = ['argparse'] version = pkg_resources.require("fitparse")[0].version setup( name='fitparse', version=version, description='Python library to parse ANT/Garmin .FIT files', auth...
from distutils.core import setup import pkg_resources import sys requires = ['six'] if sys.version_info < (2, 7): requires.append('argparse') version = pkg_resources.require("fitparse")[0].version setup( name='fitparse', version=version, description='Python library to parse ANT/Garmin .FIT files', ...
<commit_before>from distutils.core import setup import pkg_resources import sys requires = None if sys.version_info < (2, 7): requires = ['argparse'] version = pkg_resources.require("fitparse")[0].version setup( name='fitparse', version=version, description='Python library to parse ANT/Garmin .FIT f...
from distutils.core import setup import pkg_resources import sys requires = ['six'] if sys.version_info < (2, 7): requires.append('argparse') version = pkg_resources.require("fitparse")[0].version setup( name='fitparse', version=version, description='Python library to parse ANT/Garmin .FIT files', ...
from distutils.core import setup import pkg_resources import sys requires = None if sys.version_info < (2, 7): requires = ['argparse'] version = pkg_resources.require("fitparse")[0].version setup( name='fitparse', version=version, description='Python library to parse ANT/Garmin .FIT files', auth...
<commit_before>from distutils.core import setup import pkg_resources import sys requires = None if sys.version_info < (2, 7): requires = ['argparse'] version = pkg_resources.require("fitparse")[0].version setup( name='fitparse', version=version, description='Python library to parse ANT/Garmin .FIT f...
643a01b56ebdbb706e3079122f570d450464f440
setup.py
setup.py
from __future__ import print_function from setuptools import setup, find_packages import sys v = sys.version_info if v[:2] < (3, 5): error = "ERROR: jupyterhub-kubespawner requires Python version 3.5 or above." print(error, file=sys.stderr) sys.exit(1) setup( name='jupyterhub-kubespawner', version...
from __future__ import print_function from setuptools import setup, find_packages import sys v = sys.version_info if v[:2] < (3, 5): error = "ERROR: jupyterhub-kubespawner requires Python version 3.5 or above." print(error, file=sys.stderr) sys.exit(1) setup( name='jupyterhub-kubespawner', version...
Add flake8 static code testing
Add flake8 static code testing
Python
bsd-3-clause
jupyterhub/kubespawner,yuvipanda/jupyterhub-kubernetes-spawner
from __future__ import print_function from setuptools import setup, find_packages import sys v = sys.version_info if v[:2] < (3, 5): error = "ERROR: jupyterhub-kubespawner requires Python version 3.5 or above." print(error, file=sys.stderr) sys.exit(1) setup( name='jupyterhub-kubespawner', version...
from __future__ import print_function from setuptools import setup, find_packages import sys v = sys.version_info if v[:2] < (3, 5): error = "ERROR: jupyterhub-kubespawner requires Python version 3.5 or above." print(error, file=sys.stderr) sys.exit(1) setup( name='jupyterhub-kubespawner', version...
<commit_before>from __future__ import print_function from setuptools import setup, find_packages import sys v = sys.version_info if v[:2] < (3, 5): error = "ERROR: jupyterhub-kubespawner requires Python version 3.5 or above." print(error, file=sys.stderr) sys.exit(1) setup( name='jupyterhub-kubespawne...
from __future__ import print_function from setuptools import setup, find_packages import sys v = sys.version_info if v[:2] < (3, 5): error = "ERROR: jupyterhub-kubespawner requires Python version 3.5 or above." print(error, file=sys.stderr) sys.exit(1) setup( name='jupyterhub-kubespawner', version...
from __future__ import print_function from setuptools import setup, find_packages import sys v = sys.version_info if v[:2] < (3, 5): error = "ERROR: jupyterhub-kubespawner requires Python version 3.5 or above." print(error, file=sys.stderr) sys.exit(1) setup( name='jupyterhub-kubespawner', version...
<commit_before>from __future__ import print_function from setuptools import setup, find_packages import sys v = sys.version_info if v[:2] < (3, 5): error = "ERROR: jupyterhub-kubespawner requires Python version 3.5 or above." print(error, file=sys.stderr) sys.exit(1) setup( name='jupyterhub-kubespawne...
668f84625189853dbe6caab9a1e5e84a12d108ed
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup setup( name='mezzanine-openshift', version='1.1', description='Mezzanine configured for deployment on OpenShift.', author='Isaac Bythewood', author_email='isaac@bythewood.me', url='http://isaacbythewood.com/', install_requires=[ 'D...
#!/usr/bin/env python from setuptools import setup setup( name='mezzanine-openshift', version='1.2', description='Mezzanine configured for deployment on OpenShift.', author='Isaac Bythewood', author_email='isaac@bythewood.me', url='http://isaacbythewood.com/', install_requires=[ 'D...
Update to the latest version of Mezzanine 1.4.7 and bump the version of mezzanine-openshift to 1.2
Update to the latest version of Mezzanine 1.4.7 and bump the version of mezzanine-openshift to 1.2
Python
mit
chiora93/WavelenBlog,chiora93/WavelenBlog,chiora93/WavelenBlog
#!/usr/bin/env python from setuptools import setup setup( name='mezzanine-openshift', version='1.1', description='Mezzanine configured for deployment on OpenShift.', author='Isaac Bythewood', author_email='isaac@bythewood.me', url='http://isaacbythewood.com/', install_requires=[ 'D...
#!/usr/bin/env python from setuptools import setup setup( name='mezzanine-openshift', version='1.2', description='Mezzanine configured for deployment on OpenShift.', author='Isaac Bythewood', author_email='isaac@bythewood.me', url='http://isaacbythewood.com/', install_requires=[ 'D...
<commit_before>#!/usr/bin/env python from setuptools import setup setup( name='mezzanine-openshift', version='1.1', description='Mezzanine configured for deployment on OpenShift.', author='Isaac Bythewood', author_email='isaac@bythewood.me', url='http://isaacbythewood.com/', install_requir...
#!/usr/bin/env python from setuptools import setup setup( name='mezzanine-openshift', version='1.2', description='Mezzanine configured for deployment on OpenShift.', author='Isaac Bythewood', author_email='isaac@bythewood.me', url='http://isaacbythewood.com/', install_requires=[ 'D...
#!/usr/bin/env python from setuptools import setup setup( name='mezzanine-openshift', version='1.1', description='Mezzanine configured for deployment on OpenShift.', author='Isaac Bythewood', author_email='isaac@bythewood.me', url='http://isaacbythewood.com/', install_requires=[ 'D...
<commit_before>#!/usr/bin/env python from setuptools import setup setup( name='mezzanine-openshift', version='1.1', description='Mezzanine configured for deployment on OpenShift.', author='Isaac Bythewood', author_email='isaac@bythewood.me', url='http://isaacbythewood.com/', install_requir...
26cbf83b8d7665a48a399e5af59f784fba4b9463
setup.py
setup.py
from setuptools import setup def readme(): with open('README.rst') as f: return f.read() setup(name='prettystring', version='0.1.0', description='Build ANSI color encoded strings with ease.', long_description=readme(), classifiers=[ 'Development Status :: 2 - Pre-Alpha', ...
from setuptools import setup def readme(): with open('README.rst') as f: return f.read() setup(name='prettystring', version='0.1.1', description='Build ANSI color encoded strings with ease.', long_description=readme(), classifiers=[ 'Development Status :: 2 - Pre-Alpha', ...
Update build version to 0.1.1
Update build version to 0.1.1
Python
mit
robolivable/prettystring
from setuptools import setup def readme(): with open('README.rst') as f: return f.read() setup(name='prettystring', version='0.1.0', description='Build ANSI color encoded strings with ease.', long_description=readme(), classifiers=[ 'Development Status :: 2 - Pre-Alpha', ...
from setuptools import setup def readme(): with open('README.rst') as f: return f.read() setup(name='prettystring', version='0.1.1', description='Build ANSI color encoded strings with ease.', long_description=readme(), classifiers=[ 'Development Status :: 2 - Pre-Alpha', ...
<commit_before>from setuptools import setup def readme(): with open('README.rst') as f: return f.read() setup(name='prettystring', version='0.1.0', description='Build ANSI color encoded strings with ease.', long_description=readme(), classifiers=[ 'Development Status :: 2 -...
from setuptools import setup def readme(): with open('README.rst') as f: return f.read() setup(name='prettystring', version='0.1.1', description='Build ANSI color encoded strings with ease.', long_description=readme(), classifiers=[ 'Development Status :: 2 - Pre-Alpha', ...
from setuptools import setup def readme(): with open('README.rst') as f: return f.read() setup(name='prettystring', version='0.1.0', description='Build ANSI color encoded strings with ease.', long_description=readme(), classifiers=[ 'Development Status :: 2 - Pre-Alpha', ...
<commit_before>from setuptools import setup def readme(): with open('README.rst') as f: return f.read() setup(name='prettystring', version='0.1.0', description='Build ANSI color encoded strings with ease.', long_description=readme(), classifiers=[ 'Development Status :: 2 -...
84c0a5fc9bea997964e4e4da63151717a11aaf14
setup.py
setup.py
import re import os from setuptools import setup, find_packages os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.settings' with open('abakus/__init__.py', 'r') as fd: version = re.search( r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', fd.read(), re.MULTILINE ).group(1) setup( name="djan...
import re import os from setuptools import setup, find_packages os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.settings' with open('abakus/__init__.py', 'r') as fd: version = re.search( r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', fd.read(), re.MULTILINE ).group(1) setup( name="djan...
Upgrade dependency requests to ==2.10.0
Upgrade dependency requests to ==2.10.0
Python
mit
webkom/django-auth-abakus
import re import os from setuptools import setup, find_packages os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.settings' with open('abakus/__init__.py', 'r') as fd: version = re.search( r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', fd.read(), re.MULTILINE ).group(1) setup( name="djan...
import re import os from setuptools import setup, find_packages os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.settings' with open('abakus/__init__.py', 'r') as fd: version = re.search( r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', fd.read(), re.MULTILINE ).group(1) setup( name="djan...
<commit_before>import re import os from setuptools import setup, find_packages os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.settings' with open('abakus/__init__.py', 'r') as fd: version = re.search( r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', fd.read(), re.MULTILINE ).group(1) setup(...
import re import os from setuptools import setup, find_packages os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.settings' with open('abakus/__init__.py', 'r') as fd: version = re.search( r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', fd.read(), re.MULTILINE ).group(1) setup( name="djan...
import re import os from setuptools import setup, find_packages os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.settings' with open('abakus/__init__.py', 'r') as fd: version = re.search( r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', fd.read(), re.MULTILINE ).group(1) setup( name="djan...
<commit_before>import re import os from setuptools import setup, find_packages os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.settings' with open('abakus/__init__.py', 'r') as fd: version = re.search( r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', fd.read(), re.MULTILINE ).group(1) setup(...
42f4423b8e7d39dca766afa99bd129e31500e7b0
setup.py
setup.py
from setuptools import setup, find_packages import cplcom setup( name='CPLCom', version=cplcom.__version__, packages=find_packages(), package_data={'cplcom': ['../media/*', './*.kv']}, install_requires=['moa', 'kivy'], author='Matthew Einhorn', author_email='moiein2000@gmail.com', lice...
from setuptools import setup, find_packages import cplcom setup( name='CPLCom', version=cplcom.__version__, packages=find_packages(), package_data={'cplcom': ['../media/*', 'graphics.kv']}, install_requires=['moa', 'kivy'], author='Matthew Einhorn', author_email='moiein2000@gmail.com', ...
Include kv files in package.
Include kv files in package.
Python
mit
matham/cplcom
from setuptools import setup, find_packages import cplcom setup( name='CPLCom', version=cplcom.__version__, packages=find_packages(), package_data={'cplcom': ['../media/*', './*.kv']}, install_requires=['moa', 'kivy'], author='Matthew Einhorn', author_email='moiein2000@gmail.com', lice...
from setuptools import setup, find_packages import cplcom setup( name='CPLCom', version=cplcom.__version__, packages=find_packages(), package_data={'cplcom': ['../media/*', 'graphics.kv']}, install_requires=['moa', 'kivy'], author='Matthew Einhorn', author_email='moiein2000@gmail.com', ...
<commit_before>from setuptools import setup, find_packages import cplcom setup( name='CPLCom', version=cplcom.__version__, packages=find_packages(), package_data={'cplcom': ['../media/*', './*.kv']}, install_requires=['moa', 'kivy'], author='Matthew Einhorn', author_email='moiein2000@gmail...
from setuptools import setup, find_packages import cplcom setup( name='CPLCom', version=cplcom.__version__, packages=find_packages(), package_data={'cplcom': ['../media/*', 'graphics.kv']}, install_requires=['moa', 'kivy'], author='Matthew Einhorn', author_email='moiein2000@gmail.com', ...
from setuptools import setup, find_packages import cplcom setup( name='CPLCom', version=cplcom.__version__, packages=find_packages(), package_data={'cplcom': ['../media/*', './*.kv']}, install_requires=['moa', 'kivy'], author='Matthew Einhorn', author_email='moiein2000@gmail.com', lice...
<commit_before>from setuptools import setup, find_packages import cplcom setup( name='CPLCom', version=cplcom.__version__, packages=find_packages(), package_data={'cplcom': ['../media/*', './*.kv']}, install_requires=['moa', 'kivy'], author='Matthew Einhorn', author_email='moiein2000@gmail...
e11c58495dfebf18763db308f55c75564a52c195
sight.py
sight.py
#!/usr/bin/env python import ephem from sr_lib import altazimuth, almanac, ha, ho datelist = ['2016/01/12 18:00:00', '2016/01/12 19:00:00', '2016/01/12 20:00:00', '2016/01/12 21:00:00'] jackson = ephem.Observer() jackson.lat = '42.2458' jackson.lon = '-84.4014' jackson.pressure = 0 jackson.elevation = 30...
#!/usr/bin/env python import ephem from sr_lib import altazimuth, almanac, ha, ho datelist = ['2016/01/12 18:00:00', '2016/01/12 19:00:00', '2016/01/12 20:00:00', '2016/01/12 21:00:00'] jackson = ephem.Observer() jackson.lat = '42.2458' jackson.lon = '-84.4014' jackson.pressure = 0 jackson.elevation = 30...
Stop use of almanac() and altazimuth() functions for now.
Stop use of almanac() and altazimuth() functions for now.
Python
mit
zimolzak/Sight-reduction-problems
#!/usr/bin/env python import ephem from sr_lib import altazimuth, almanac, ha, ho datelist = ['2016/01/12 18:00:00', '2016/01/12 19:00:00', '2016/01/12 20:00:00', '2016/01/12 21:00:00'] jackson = ephem.Observer() jackson.lat = '42.2458' jackson.lon = '-84.4014' jackson.pressure = 0 jackson.elevation = 30...
#!/usr/bin/env python import ephem from sr_lib import altazimuth, almanac, ha, ho datelist = ['2016/01/12 18:00:00', '2016/01/12 19:00:00', '2016/01/12 20:00:00', '2016/01/12 21:00:00'] jackson = ephem.Observer() jackson.lat = '42.2458' jackson.lon = '-84.4014' jackson.pressure = 0 jackson.elevation = 30...
<commit_before>#!/usr/bin/env python import ephem from sr_lib import altazimuth, almanac, ha, ho datelist = ['2016/01/12 18:00:00', '2016/01/12 19:00:00', '2016/01/12 20:00:00', '2016/01/12 21:00:00'] jackson = ephem.Observer() jackson.lat = '42.2458' jackson.lon = '-84.4014' jackson.pressure = 0 jackson...
#!/usr/bin/env python import ephem from sr_lib import altazimuth, almanac, ha, ho datelist = ['2016/01/12 18:00:00', '2016/01/12 19:00:00', '2016/01/12 20:00:00', '2016/01/12 21:00:00'] jackson = ephem.Observer() jackson.lat = '42.2458' jackson.lon = '-84.4014' jackson.pressure = 0 jackson.elevation = 30...
#!/usr/bin/env python import ephem from sr_lib import altazimuth, almanac, ha, ho datelist = ['2016/01/12 18:00:00', '2016/01/12 19:00:00', '2016/01/12 20:00:00', '2016/01/12 21:00:00'] jackson = ephem.Observer() jackson.lat = '42.2458' jackson.lon = '-84.4014' jackson.pressure = 0 jackson.elevation = 30...
<commit_before>#!/usr/bin/env python import ephem from sr_lib import altazimuth, almanac, ha, ho datelist = ['2016/01/12 18:00:00', '2016/01/12 19:00:00', '2016/01/12 20:00:00', '2016/01/12 21:00:00'] jackson = ephem.Observer() jackson.lat = '42.2458' jackson.lon = '-84.4014' jackson.pressure = 0 jackson...
dd59a1bd6ac56fc6a8bfb8de25776000dfe39af7
tracker/management/commands/approval_reminders.py
tracker/management/commands/approval_reminders.py
''' Simple module to aid in command-line debugging of notification related issues. ''' from django.core.management.base import BaseCommand, CommandError from django.conf import settings from django.core.mail import EmailMessage from timetracker.overtime.models import PendingApproval, Tbluser def send_approval_digest...
''' Simple module to aid in command-line debugging of notification related issues. ''' from django.core.management.base import BaseCommand, CommandError from django.conf import settings from django.core.mail import EmailMessage from timetracker.overtime.models import PendingApproval, Tbluser def send_approval_digest...
Remove me from the debug e-mail recipient.
Remove me from the debug e-mail recipient.
Python
bsd-3-clause
AeroNotix/django-timetracker,AeroNotix/django-timetracker,AeroNotix/django-timetracker
''' Simple module to aid in command-line debugging of notification related issues. ''' from django.core.management.base import BaseCommand, CommandError from django.conf import settings from django.core.mail import EmailMessage from timetracker.overtime.models import PendingApproval, Tbluser def send_approval_digest...
''' Simple module to aid in command-line debugging of notification related issues. ''' from django.core.management.base import BaseCommand, CommandError from django.conf import settings from django.core.mail import EmailMessage from timetracker.overtime.models import PendingApproval, Tbluser def send_approval_digest...
<commit_before>''' Simple module to aid in command-line debugging of notification related issues. ''' from django.core.management.base import BaseCommand, CommandError from django.conf import settings from django.core.mail import EmailMessage from timetracker.overtime.models import PendingApproval, Tbluser def send_...
''' Simple module to aid in command-line debugging of notification related issues. ''' from django.core.management.base import BaseCommand, CommandError from django.conf import settings from django.core.mail import EmailMessage from timetracker.overtime.models import PendingApproval, Tbluser def send_approval_digest...
''' Simple module to aid in command-line debugging of notification related issues. ''' from django.core.management.base import BaseCommand, CommandError from django.conf import settings from django.core.mail import EmailMessage from timetracker.overtime.models import PendingApproval, Tbluser def send_approval_digest...
<commit_before>''' Simple module to aid in command-line debugging of notification related issues. ''' from django.core.management.base import BaseCommand, CommandError from django.conf import settings from django.core.mail import EmailMessage from timetracker.overtime.models import PendingApproval, Tbluser def send_...
83718336f5260e94cea32611fd7080966329ee2b
prompt_toolkit/filters/utils.py
prompt_toolkit/filters/utils.py
from __future__ import unicode_literals from .base import Always, Never from .types import SimpleFilter, CLIFilter __all__ = ( 'to_cli_filter', 'to_simple_filter', ) def to_simple_filter(bool_or_filter): """ Accept both booleans and CLIFilters as input and turn it into a SimpleFilter. """ ...
from __future__ import unicode_literals from .base import Always, Never from .types import SimpleFilter, CLIFilter __all__ = ( 'to_cli_filter', 'to_simple_filter', ) _always = Always() _never = Never() def to_simple_filter(bool_or_filter): """ Accept both booleans and CLIFilters as input and tur...
Reduce amount of Always/Never instances. (The are stateless.)
Reduce amount of Always/Never instances. (The are stateless.)
Python
bsd-3-clause
melund/python-prompt-toolkit,jonathanslenders/python-prompt-toolkit,niklasf/python-prompt-toolkit
from __future__ import unicode_literals from .base import Always, Never from .types import SimpleFilter, CLIFilter __all__ = ( 'to_cli_filter', 'to_simple_filter', ) def to_simple_filter(bool_or_filter): """ Accept both booleans and CLIFilters as input and turn it into a SimpleFilter. """ ...
from __future__ import unicode_literals from .base import Always, Never from .types import SimpleFilter, CLIFilter __all__ = ( 'to_cli_filter', 'to_simple_filter', ) _always = Always() _never = Never() def to_simple_filter(bool_or_filter): """ Accept both booleans and CLIFilters as input and tur...
<commit_before>from __future__ import unicode_literals from .base import Always, Never from .types import SimpleFilter, CLIFilter __all__ = ( 'to_cli_filter', 'to_simple_filter', ) def to_simple_filter(bool_or_filter): """ Accept both booleans and CLIFilters as input and turn it into a SimpleFilt...
from __future__ import unicode_literals from .base import Always, Never from .types import SimpleFilter, CLIFilter __all__ = ( 'to_cli_filter', 'to_simple_filter', ) _always = Always() _never = Never() def to_simple_filter(bool_or_filter): """ Accept both booleans and CLIFilters as input and tur...
from __future__ import unicode_literals from .base import Always, Never from .types import SimpleFilter, CLIFilter __all__ = ( 'to_cli_filter', 'to_simple_filter', ) def to_simple_filter(bool_or_filter): """ Accept both booleans and CLIFilters as input and turn it into a SimpleFilter. """ ...
<commit_before>from __future__ import unicode_literals from .base import Always, Never from .types import SimpleFilter, CLIFilter __all__ = ( 'to_cli_filter', 'to_simple_filter', ) def to_simple_filter(bool_or_filter): """ Accept both booleans and CLIFilters as input and turn it into a SimpleFilt...
fe296c62c1a75f89f206a0105591a274a7782b4e
factory/tools/cat_StartdLog.py
factory/tools/cat_StartdLog.py
#!/bin/env python # # cat_StartdLog.py # # Print out the StartdLog for a glidein output file # # Usage: cat_StartdLog.py logname # import sys sys.path.append("lib") import gWftLogParser USAGE="Usage: cat_StartdLog.py <logname>" def main(): try: print gWftLogParser.get_CondorLog(sys.argv[1],"StartdLog") ...
#!/bin/env python # # cat_StartdLog.py # # Print out the StartdLog for a glidein output file # # Usage: cat_StartdLog.py logname # import sys STARTUP_DIR=sys.path[0] sys.path.append(os.path.join(STARTUP_DIR,"lib")) import gWftLogParser USAGE="Usage: cat_StartdLog.py <logname>" def main(): try: print gWft...
Allow for startup in a differend dir
Allow for startup in a differend dir
Python
bsd-3-clause
holzman/glideinwms-old,holzman/glideinwms-old,holzman/glideinwms-old,bbockelm/glideinWMS,bbockelm/glideinWMS,bbockelm/glideinWMS,bbockelm/glideinWMS
#!/bin/env python # # cat_StartdLog.py # # Print out the StartdLog for a glidein output file # # Usage: cat_StartdLog.py logname # import sys sys.path.append("lib") import gWftLogParser USAGE="Usage: cat_StartdLog.py <logname>" def main(): try: print gWftLogParser.get_CondorLog(sys.argv[1],"StartdLog") ...
#!/bin/env python # # cat_StartdLog.py # # Print out the StartdLog for a glidein output file # # Usage: cat_StartdLog.py logname # import sys STARTUP_DIR=sys.path[0] sys.path.append(os.path.join(STARTUP_DIR,"lib")) import gWftLogParser USAGE="Usage: cat_StartdLog.py <logname>" def main(): try: print gWft...
<commit_before>#!/bin/env python # # cat_StartdLog.py # # Print out the StartdLog for a glidein output file # # Usage: cat_StartdLog.py logname # import sys sys.path.append("lib") import gWftLogParser USAGE="Usage: cat_StartdLog.py <logname>" def main(): try: print gWftLogParser.get_CondorLog(sys.argv[1]...
#!/bin/env python # # cat_StartdLog.py # # Print out the StartdLog for a glidein output file # # Usage: cat_StartdLog.py logname # import sys STARTUP_DIR=sys.path[0] sys.path.append(os.path.join(STARTUP_DIR,"lib")) import gWftLogParser USAGE="Usage: cat_StartdLog.py <logname>" def main(): try: print gWft...
#!/bin/env python # # cat_StartdLog.py # # Print out the StartdLog for a glidein output file # # Usage: cat_StartdLog.py logname # import sys sys.path.append("lib") import gWftLogParser USAGE="Usage: cat_StartdLog.py <logname>" def main(): try: print gWftLogParser.get_CondorLog(sys.argv[1],"StartdLog") ...
<commit_before>#!/bin/env python # # cat_StartdLog.py # # Print out the StartdLog for a glidein output file # # Usage: cat_StartdLog.py logname # import sys sys.path.append("lib") import gWftLogParser USAGE="Usage: cat_StartdLog.py <logname>" def main(): try: print gWftLogParser.get_CondorLog(sys.argv[1]...
25a916a176affb396a403ab72031208df44735ed
feder/questionaries/filters.py
feder/questionaries/filters.py
# -*- coding: utf-8 -*- from django.utils.translation import ugettext_lazy as _ import django_filters from .models import Questionary from atom.filters import CrispyFilterMixin, AutocompleteChoiceFilter class QuestionaryFilter(CrispyFilterMixin, django_filters.FilterSet): title = django_filters.CharFilter(lookup_...
# -*- coding: utf-8 -*- from django.utils.translation import ugettext_lazy as _ import django_filters from .models import Questionary from atom.filters import CrispyFilterMixin, AutocompleteChoiceFilter class QuestionaryFilter(CrispyFilterMixin, django_filters.FilterSet): title = django_filters.CharFilter(lookup_...
Fix lock filter in questionaries
Fix lock filter in questionaries
Python
mit
watchdogpolska/feder,watchdogpolska/feder,watchdogpolska/feder,watchdogpolska/feder
# -*- coding: utf-8 -*- from django.utils.translation import ugettext_lazy as _ import django_filters from .models import Questionary from atom.filters import CrispyFilterMixin, AutocompleteChoiceFilter class QuestionaryFilter(CrispyFilterMixin, django_filters.FilterSet): title = django_filters.CharFilter(lookup_...
# -*- coding: utf-8 -*- from django.utils.translation import ugettext_lazy as _ import django_filters from .models import Questionary from atom.filters import CrispyFilterMixin, AutocompleteChoiceFilter class QuestionaryFilter(CrispyFilterMixin, django_filters.FilterSet): title = django_filters.CharFilter(lookup_...
<commit_before># -*- coding: utf-8 -*- from django.utils.translation import ugettext_lazy as _ import django_filters from .models import Questionary from atom.filters import CrispyFilterMixin, AutocompleteChoiceFilter class QuestionaryFilter(CrispyFilterMixin, django_filters.FilterSet): title = django_filters.Cha...
# -*- coding: utf-8 -*- from django.utils.translation import ugettext_lazy as _ import django_filters from .models import Questionary from atom.filters import CrispyFilterMixin, AutocompleteChoiceFilter class QuestionaryFilter(CrispyFilterMixin, django_filters.FilterSet): title = django_filters.CharFilter(lookup_...
# -*- coding: utf-8 -*- from django.utils.translation import ugettext_lazy as _ import django_filters from .models import Questionary from atom.filters import CrispyFilterMixin, AutocompleteChoiceFilter class QuestionaryFilter(CrispyFilterMixin, django_filters.FilterSet): title = django_filters.CharFilter(lookup_...
<commit_before># -*- coding: utf-8 -*- from django.utils.translation import ugettext_lazy as _ import django_filters from .models import Questionary from atom.filters import CrispyFilterMixin, AutocompleteChoiceFilter class QuestionaryFilter(CrispyFilterMixin, django_filters.FilterSet): title = django_filters.Cha...
22c9fb018ad1a0dca26f6e9c9bc0cc871c8dec25
cfscrape.py
cfscrape.py
import re import requests import lxml.html def grab_cloudflare(url, *args, **kwargs): sess = requests.Session() sess.headers = {"User-Agent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:17.0) Gecko/20100101 Firefox/17.0"} safe_eval = lambda s: eval(s, {"__builtins__": {}}) if "#" not in s and "__"...
import re import requests import lxml.html def grab_cloudflare(url, *args, **kwargs): sess = requests.session() sess.headers = {"User-Agent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:17.0) Gecko/20100101 Firefox/17.0"} safe_eval = lambda s: eval(s, {"__builtins__": {}}) if "#" not in s and "__"...
Use requests.session instead of requests.Session
Use requests.session instead of requests.Session
Python
mit
AtVirus/cloudflare-scrape,Thor77/cloudflare-scrape,Muhammad-Farghaly/cloudflare-scrape,Anorov/cloudflare-scrape,nico202/cloudflare-scrape
import re import requests import lxml.html def grab_cloudflare(url, *args, **kwargs): sess = requests.Session() sess.headers = {"User-Agent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:17.0) Gecko/20100101 Firefox/17.0"} safe_eval = lambda s: eval(s, {"__builtins__": {}}) if "#" not in s and "__"...
import re import requests import lxml.html def grab_cloudflare(url, *args, **kwargs): sess = requests.session() sess.headers = {"User-Agent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:17.0) Gecko/20100101 Firefox/17.0"} safe_eval = lambda s: eval(s, {"__builtins__": {}}) if "#" not in s and "__"...
<commit_before>import re import requests import lxml.html def grab_cloudflare(url, *args, **kwargs): sess = requests.Session() sess.headers = {"User-Agent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:17.0) Gecko/20100101 Firefox/17.0"} safe_eval = lambda s: eval(s, {"__builtins__": {}}) if "#" no...
import re import requests import lxml.html def grab_cloudflare(url, *args, **kwargs): sess = requests.session() sess.headers = {"User-Agent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:17.0) Gecko/20100101 Firefox/17.0"} safe_eval = lambda s: eval(s, {"__builtins__": {}}) if "#" not in s and "__"...
import re import requests import lxml.html def grab_cloudflare(url, *args, **kwargs): sess = requests.Session() sess.headers = {"User-Agent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:17.0) Gecko/20100101 Firefox/17.0"} safe_eval = lambda s: eval(s, {"__builtins__": {}}) if "#" not in s and "__"...
<commit_before>import re import requests import lxml.html def grab_cloudflare(url, *args, **kwargs): sess = requests.Session() sess.headers = {"User-Agent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:17.0) Gecko/20100101 Firefox/17.0"} safe_eval = lambda s: eval(s, {"__builtins__": {}}) if "#" no...
3ac41e8b32aff3cf28590c8ab1a7abeae2b563f5
shipper/helpers.py
shipper/helpers.py
# -*- coding: utf-8 -*- import getpass import random class RandomSeed(object): """Creates a context with a temporarily used seed for the random library. The state for the random functions is not modified outside this context. Example usage:: with RandomSeed('reproducible seed'): val...
# -*- coding: utf-8 -*- import getpass import random import click class RandomSeed(object): """Creates a context with a temporarily used seed for the random library. The state for the random functions is not modified outside this context. Example usage:: with RandomSeed('reproducible seed'): ...
Fix bug where print would be sent to stdout
Fix bug where print would be sent to stdout
Python
mit
redodo/shipper
# -*- coding: utf-8 -*- import getpass import random class RandomSeed(object): """Creates a context with a temporarily used seed for the random library. The state for the random functions is not modified outside this context. Example usage:: with RandomSeed('reproducible seed'): val...
# -*- coding: utf-8 -*- import getpass import random import click class RandomSeed(object): """Creates a context with a temporarily used seed for the random library. The state for the random functions is not modified outside this context. Example usage:: with RandomSeed('reproducible seed'): ...
<commit_before># -*- coding: utf-8 -*- import getpass import random class RandomSeed(object): """Creates a context with a temporarily used seed for the random library. The state for the random functions is not modified outside this context. Example usage:: with RandomSeed('reproducible seed'): ...
# -*- coding: utf-8 -*- import getpass import random import click class RandomSeed(object): """Creates a context with a temporarily used seed for the random library. The state for the random functions is not modified outside this context. Example usage:: with RandomSeed('reproducible seed'): ...
# -*- coding: utf-8 -*- import getpass import random class RandomSeed(object): """Creates a context with a temporarily used seed for the random library. The state for the random functions is not modified outside this context. Example usage:: with RandomSeed('reproducible seed'): val...
<commit_before># -*- coding: utf-8 -*- import getpass import random class RandomSeed(object): """Creates a context with a temporarily used seed for the random library. The state for the random functions is not modified outside this context. Example usage:: with RandomSeed('reproducible seed'): ...
73d09dfe48a4dd72080fe86e027663df6caf513a
tests/__init__.py
tests/__init__.py
#!/usr/bin/env python2 # 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, softwa...
#!/usr/bin/env python2 # 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, softwa...
Correct syntax for Python3 compatibility
Correct syntax for Python3 compatibility
Python
apache-2.0
ocadotechnology/wry
#!/usr/bin/env python2 # 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, softwa...
#!/usr/bin/env python2 # 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, softwa...
<commit_before>#!/usr/bin/env python2 # 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 ...
#!/usr/bin/env python2 # 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, softwa...
#!/usr/bin/env python2 # 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, softwa...
<commit_before>#!/usr/bin/env python2 # 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 ...
7d5207a493877910c4d6282cb8bb05b7a7ef6a13
sdnip/hop_db.py
sdnip/hop_db.py
class HopDB(object): def __init__(self): super(HopDB, self).__init__() self.hops = {} # prefix -> hop self.installed_prefix = [] def add_hop(self, prefix, next_hop): self.hops.setdefault(prefix, next_hop) def get_nexthop(self, prefix): self.hops.get(prefix) ...
class HopDB(object): def __init__(self): super(HopDB, self).__init__() self.hops = {} # prefix -> hop self.installed_prefix = [] def add_hop(self, prefix, next_hop): self.hops.setdefault(prefix, next_hop) def get_nexthop(self, prefix): self.hops.get(prefix) ...
Fix missing ref from hop db
Fix missing ref from hop db
Python
mit
sdnds-tw/Ryu-SDN-IP
class HopDB(object): def __init__(self): super(HopDB, self).__init__() self.hops = {} # prefix -> hop self.installed_prefix = [] def add_hop(self, prefix, next_hop): self.hops.setdefault(prefix, next_hop) def get_nexthop(self, prefix): self.hops.get(prefix) ...
class HopDB(object): def __init__(self): super(HopDB, self).__init__() self.hops = {} # prefix -> hop self.installed_prefix = [] def add_hop(self, prefix, next_hop): self.hops.setdefault(prefix, next_hop) def get_nexthop(self, prefix): self.hops.get(prefix) ...
<commit_before> class HopDB(object): def __init__(self): super(HopDB, self).__init__() self.hops = {} # prefix -> hop self.installed_prefix = [] def add_hop(self, prefix, next_hop): self.hops.setdefault(prefix, next_hop) def get_nexthop(self, prefix): self.hops.ge...
class HopDB(object): def __init__(self): super(HopDB, self).__init__() self.hops = {} # prefix -> hop self.installed_prefix = [] def add_hop(self, prefix, next_hop): self.hops.setdefault(prefix, next_hop) def get_nexthop(self, prefix): self.hops.get(prefix) ...
class HopDB(object): def __init__(self): super(HopDB, self).__init__() self.hops = {} # prefix -> hop self.installed_prefix = [] def add_hop(self, prefix, next_hop): self.hops.setdefault(prefix, next_hop) def get_nexthop(self, prefix): self.hops.get(prefix) ...
<commit_before> class HopDB(object): def __init__(self): super(HopDB, self).__init__() self.hops = {} # prefix -> hop self.installed_prefix = [] def add_hop(self, prefix, next_hop): self.hops.setdefault(prefix, next_hop) def get_nexthop(self, prefix): self.hops.ge...
7b02aa6560fae3f36374f58c0b355381070047ec
tests/conftest.py
tests/conftest.py
# -*- coding: utf-8 -*- from collections import namedtuple from pytest import fixture from flask import Flask, g from flask_sqlalchemy import SQLAlchemy from flask_perm import Perm from flask_perm.core import db @fixture def app(request): flask_app = Flask(__name__) flask_app.config['TESTING'] = True fla...
# -*- coding: utf-8 -*- from collections import namedtuple from pytest import fixture from flask import Flask, g from flask_sqlalchemy import SQLAlchemy from flask_perm import Perm from flask_perm.core import db @fixture def app(request): flask_app = Flask(__name__) flask_app.config['TESTING'] = True fla...
Configure test admin username and password.
Configure test admin username and password.
Python
mit
soasme/flask-perm,soasme/flask-perm,soasme/flask-perm
# -*- coding: utf-8 -*- from collections import namedtuple from pytest import fixture from flask import Flask, g from flask_sqlalchemy import SQLAlchemy from flask_perm import Perm from flask_perm.core import db @fixture def app(request): flask_app = Flask(__name__) flask_app.config['TESTING'] = True fla...
# -*- coding: utf-8 -*- from collections import namedtuple from pytest import fixture from flask import Flask, g from flask_sqlalchemy import SQLAlchemy from flask_perm import Perm from flask_perm.core import db @fixture def app(request): flask_app = Flask(__name__) flask_app.config['TESTING'] = True fla...
<commit_before># -*- coding: utf-8 -*- from collections import namedtuple from pytest import fixture from flask import Flask, g from flask_sqlalchemy import SQLAlchemy from flask_perm import Perm from flask_perm.core import db @fixture def app(request): flask_app = Flask(__name__) flask_app.config['TESTING']...
# -*- coding: utf-8 -*- from collections import namedtuple from pytest import fixture from flask import Flask, g from flask_sqlalchemy import SQLAlchemy from flask_perm import Perm from flask_perm.core import db @fixture def app(request): flask_app = Flask(__name__) flask_app.config['TESTING'] = True fla...
# -*- coding: utf-8 -*- from collections import namedtuple from pytest import fixture from flask import Flask, g from flask_sqlalchemy import SQLAlchemy from flask_perm import Perm from flask_perm.core import db @fixture def app(request): flask_app = Flask(__name__) flask_app.config['TESTING'] = True fla...
<commit_before># -*- coding: utf-8 -*- from collections import namedtuple from pytest import fixture from flask import Flask, g from flask_sqlalchemy import SQLAlchemy from flask_perm import Perm from flask_perm.core import db @fixture def app(request): flask_app = Flask(__name__) flask_app.config['TESTING']...
b494a5b2ed94c1def6fb8bbbab5df5612ef30aa7
tests/test_api.py
tests/test_api.py
from bmi_tester.api import check_bmi def test_bmi_check(tmpdir): with tmpdir.as_cwd(): with open("input.yaml", "w"): pass assert ( check_bmi( "bmi_tester.bmi:Bmi", input_file="input.yaml", extra_args=["-vvv"] ) == 0 ) def te...
import os from bmi_tester.api import check_bmi def touch_file(fname): with open(fname, "w"): pass def test_bmi_check(tmpdir): with tmpdir.as_cwd(): touch_file("input.yaml") assert ( check_bmi( "bmi_tester.bmi:Bmi", input_file="input.yaml", extra_args=["-v...
Test a manifest with multiple files.
Test a manifest with multiple files.
Python
mit
csdms/bmi-tester
from bmi_tester.api import check_bmi def test_bmi_check(tmpdir): with tmpdir.as_cwd(): with open("input.yaml", "w"): pass assert ( check_bmi( "bmi_tester.bmi:Bmi", input_file="input.yaml", extra_args=["-vvv"] ) == 0 ) def te...
import os from bmi_tester.api import check_bmi def touch_file(fname): with open(fname, "w"): pass def test_bmi_check(tmpdir): with tmpdir.as_cwd(): touch_file("input.yaml") assert ( check_bmi( "bmi_tester.bmi:Bmi", input_file="input.yaml", extra_args=["-v...
<commit_before>from bmi_tester.api import check_bmi def test_bmi_check(tmpdir): with tmpdir.as_cwd(): with open("input.yaml", "w"): pass assert ( check_bmi( "bmi_tester.bmi:Bmi", input_file="input.yaml", extra_args=["-vvv"] ) == 0 ...
import os from bmi_tester.api import check_bmi def touch_file(fname): with open(fname, "w"): pass def test_bmi_check(tmpdir): with tmpdir.as_cwd(): touch_file("input.yaml") assert ( check_bmi( "bmi_tester.bmi:Bmi", input_file="input.yaml", extra_args=["-v...
from bmi_tester.api import check_bmi def test_bmi_check(tmpdir): with tmpdir.as_cwd(): with open("input.yaml", "w"): pass assert ( check_bmi( "bmi_tester.bmi:Bmi", input_file="input.yaml", extra_args=["-vvv"] ) == 0 ) def te...
<commit_before>from bmi_tester.api import check_bmi def test_bmi_check(tmpdir): with tmpdir.as_cwd(): with open("input.yaml", "w"): pass assert ( check_bmi( "bmi_tester.bmi:Bmi", input_file="input.yaml", extra_args=["-vvv"] ) == 0 ...
524eb80f426a3a4530fe7ce5940eb0ef619b5396
alerta/app/shell.py
alerta/app/shell.py
import argparse from alerta.app import app from alerta.app import db from alerta.version import __version__ LOG = app.logger def main(): parser = argparse.ArgumentParser( prog='alertad', description='Alerta server (for development purposes only)', formatter_class=argparse.ArgumentDefaul...
import argparse from alerta.app import app from alerta.app import db from alerta.version import __version__ LOG = app.logger def main(): parser = argparse.ArgumentParser( prog='alertad', description='Alerta server (for development purposes only)', formatter_class=argparse.ArgumentDefaul...
Disable auto-reloader in debug mode
Disable auto-reloader in debug mode This was causing issues with plugin initialisation happening twice and was getting rate limited by Telegram Bot API.
Python
apache-2.0
guardian/alerta,guardian/alerta,guardian/alerta,skob/alerta,skob/alerta,guardian/alerta,skob/alerta,skob/alerta
import argparse from alerta.app import app from alerta.app import db from alerta.version import __version__ LOG = app.logger def main(): parser = argparse.ArgumentParser( prog='alertad', description='Alerta server (for development purposes only)', formatter_class=argparse.ArgumentDefaul...
import argparse from alerta.app import app from alerta.app import db from alerta.version import __version__ LOG = app.logger def main(): parser = argparse.ArgumentParser( prog='alertad', description='Alerta server (for development purposes only)', formatter_class=argparse.ArgumentDefaul...
<commit_before> import argparse from alerta.app import app from alerta.app import db from alerta.version import __version__ LOG = app.logger def main(): parser = argparse.ArgumentParser( prog='alertad', description='Alerta server (for development purposes only)', formatter_class=argparse...
import argparse from alerta.app import app from alerta.app import db from alerta.version import __version__ LOG = app.logger def main(): parser = argparse.ArgumentParser( prog='alertad', description='Alerta server (for development purposes only)', formatter_class=argparse.ArgumentDefaul...
import argparse from alerta.app import app from alerta.app import db from alerta.version import __version__ LOG = app.logger def main(): parser = argparse.ArgumentParser( prog='alertad', description='Alerta server (for development purposes only)', formatter_class=argparse.ArgumentDefaul...
<commit_before> import argparse from alerta.app import app from alerta.app import db from alerta.version import __version__ LOG = app.logger def main(): parser = argparse.ArgumentParser( prog='alertad', description='Alerta server (for development purposes only)', formatter_class=argparse...
de84be15c4c519a680121e15c26d6eed6d091cd2
toolbox/models.py
toolbox/models.py
from keras.layers import Conv2D from keras.models import Sequential from toolbox.metrics import psnr def compile_srcnn(input_shape, c=1, f1=9, f2=1, f3=5, n1=64, n2=32): """Compile an SRCNN model. See https://arxiv.org/abs/1501.00092. """ model = Sequential() model.add(Conv2D(nb_filter=n1, nb_ro...
from keras.layers import Conv2D from keras.models import Sequential from toolbox.metrics import psnr def compile_srcnn(input_shape, c=1, f1=9, f2=1, f3=5, n1=64, n2=32): """Compile an SRCNN model. See https://arxiv.org/abs/1501.00092. """ model = Sequential() model.add(Conv2D(n1, f1, kernel_init...
Upgrade to Keras 2 API
Upgrade to Keras 2 API
Python
mit
qobilidop/srcnn,qobilidop/srcnn
from keras.layers import Conv2D from keras.models import Sequential from toolbox.metrics import psnr def compile_srcnn(input_shape, c=1, f1=9, f2=1, f3=5, n1=64, n2=32): """Compile an SRCNN model. See https://arxiv.org/abs/1501.00092. """ model = Sequential() model.add(Conv2D(nb_filter=n1, nb_ro...
from keras.layers import Conv2D from keras.models import Sequential from toolbox.metrics import psnr def compile_srcnn(input_shape, c=1, f1=9, f2=1, f3=5, n1=64, n2=32): """Compile an SRCNN model. See https://arxiv.org/abs/1501.00092. """ model = Sequential() model.add(Conv2D(n1, f1, kernel_init...
<commit_before>from keras.layers import Conv2D from keras.models import Sequential from toolbox.metrics import psnr def compile_srcnn(input_shape, c=1, f1=9, f2=1, f3=5, n1=64, n2=32): """Compile an SRCNN model. See https://arxiv.org/abs/1501.00092. """ model = Sequential() model.add(Conv2D(nb_f...
from keras.layers import Conv2D from keras.models import Sequential from toolbox.metrics import psnr def compile_srcnn(input_shape, c=1, f1=9, f2=1, f3=5, n1=64, n2=32): """Compile an SRCNN model. See https://arxiv.org/abs/1501.00092. """ model = Sequential() model.add(Conv2D(n1, f1, kernel_init...
from keras.layers import Conv2D from keras.models import Sequential from toolbox.metrics import psnr def compile_srcnn(input_shape, c=1, f1=9, f2=1, f3=5, n1=64, n2=32): """Compile an SRCNN model. See https://arxiv.org/abs/1501.00092. """ model = Sequential() model.add(Conv2D(nb_filter=n1, nb_ro...
<commit_before>from keras.layers import Conv2D from keras.models import Sequential from toolbox.metrics import psnr def compile_srcnn(input_shape, c=1, f1=9, f2=1, f3=5, n1=64, n2=32): """Compile an SRCNN model. See https://arxiv.org/abs/1501.00092. """ model = Sequential() model.add(Conv2D(nb_f...
d2a0c23766cfd80f32b406503f47a5c5355bf6db
test_module_b/test_feat_3.py
test_module_b/test_feat_3.py
import unittest import time class TestE(unittest.TestCase): def test_many_lines(self): for i in xrange(100): print 'Many lines', i def test_feat_1_case_1(self): time.sleep(0.5) def test_feat_1_case_2(self): time.sleep(0.5) def test_feat_1_case_3(self): time.sleep(0...
import unittest import time class TestE(unittest.TestCase): def test_many_lines(self): for i in xrange(100): print 'Many lines', i def test_feat_1_case_1(self): time.sleep(0.5) self.fail('Artificial fail one') def test_feat_1_case_2(self): time.sleep(0.5) self.f...
Make some slow tests fail
Make some slow tests fail
Python
mit
martinsmid/pytest-ui
import unittest import time class TestE(unittest.TestCase): def test_many_lines(self): for i in xrange(100): print 'Many lines', i def test_feat_1_case_1(self): time.sleep(0.5) def test_feat_1_case_2(self): time.sleep(0.5) def test_feat_1_case_3(self): time.sleep(0...
import unittest import time class TestE(unittest.TestCase): def test_many_lines(self): for i in xrange(100): print 'Many lines', i def test_feat_1_case_1(self): time.sleep(0.5) self.fail('Artificial fail one') def test_feat_1_case_2(self): time.sleep(0.5) self.f...
<commit_before>import unittest import time class TestE(unittest.TestCase): def test_many_lines(self): for i in xrange(100): print 'Many lines', i def test_feat_1_case_1(self): time.sleep(0.5) def test_feat_1_case_2(self): time.sleep(0.5) def test_feat_1_case_3(self): ...
import unittest import time class TestE(unittest.TestCase): def test_many_lines(self): for i in xrange(100): print 'Many lines', i def test_feat_1_case_1(self): time.sleep(0.5) self.fail('Artificial fail one') def test_feat_1_case_2(self): time.sleep(0.5) self.f...
import unittest import time class TestE(unittest.TestCase): def test_many_lines(self): for i in xrange(100): print 'Many lines', i def test_feat_1_case_1(self): time.sleep(0.5) def test_feat_1_case_2(self): time.sleep(0.5) def test_feat_1_case_3(self): time.sleep(0...
<commit_before>import unittest import time class TestE(unittest.TestCase): def test_many_lines(self): for i in xrange(100): print 'Many lines', i def test_feat_1_case_1(self): time.sleep(0.5) def test_feat_1_case_2(self): time.sleep(0.5) def test_feat_1_case_3(self): ...
5f41a6c748acee486cf157b7373c8d4c1efa2e4d
selenic/__init__.py
selenic/__init__.py
from distutils.version import StrictVersion from selenium.webdriver.common.action_chains import ActionChains import selenium from .config import * sel_ver = StrictVersion(selenium.__version__) v2_37_2 = StrictVersion("2.37.2") if sel_ver > v2_37_2: raise Exception("please ascertain whether the ActionChains.send...
from distutils.version import StrictVersion from selenium.webdriver.common.action_chains import ActionChains import selenium # To rexport here. from .config import * sel_ver = StrictVersion(selenium.__version__) v2_35_0 = StrictVersion("2.35.0") if sel_ver < v2_35_0: raise Exception("please ascertain whether th...
Update for newer selenium version.
Update for newer selenium version.
Python
mpl-2.0
mangalam-research/selenic
from distutils.version import StrictVersion from selenium.webdriver.common.action_chains import ActionChains import selenium from .config import * sel_ver = StrictVersion(selenium.__version__) v2_37_2 = StrictVersion("2.37.2") if sel_ver > v2_37_2: raise Exception("please ascertain whether the ActionChains.send...
from distutils.version import StrictVersion from selenium.webdriver.common.action_chains import ActionChains import selenium # To rexport here. from .config import * sel_ver = StrictVersion(selenium.__version__) v2_35_0 = StrictVersion("2.35.0") if sel_ver < v2_35_0: raise Exception("please ascertain whether th...
<commit_before>from distutils.version import StrictVersion from selenium.webdriver.common.action_chains import ActionChains import selenium from .config import * sel_ver = StrictVersion(selenium.__version__) v2_37_2 = StrictVersion("2.37.2") if sel_ver > v2_37_2: raise Exception("please ascertain whether the Ac...
from distutils.version import StrictVersion from selenium.webdriver.common.action_chains import ActionChains import selenium # To rexport here. from .config import * sel_ver = StrictVersion(selenium.__version__) v2_35_0 = StrictVersion("2.35.0") if sel_ver < v2_35_0: raise Exception("please ascertain whether th...
from distutils.version import StrictVersion from selenium.webdriver.common.action_chains import ActionChains import selenium from .config import * sel_ver = StrictVersion(selenium.__version__) v2_37_2 = StrictVersion("2.37.2") if sel_ver > v2_37_2: raise Exception("please ascertain whether the ActionChains.send...
<commit_before>from distutils.version import StrictVersion from selenium.webdriver.common.action_chains import ActionChains import selenium from .config import * sel_ver = StrictVersion(selenium.__version__) v2_37_2 = StrictVersion("2.37.2") if sel_ver > v2_37_2: raise Exception("please ascertain whether the Ac...
ca756bc34a0f24c457f2adc6f4b0b78744f0be40
urls.py
urls.py
# -*- coding: utf-8 -*- from django.conf.urls import patterns, url from django.conf import settings from django.views.generic import TemplateView urlpatterns = patterns('vortaro.views', url(r'^informo$', 'about', name="about"), url(r'^informo/api$', 'about_the_api', name="about_the_api"), url(ur'^serĉo$', ...
# -*- coding: utf-8 -*- from django.conf.urls import patterns, url from django.conf import settings from django.views.generic import TemplateView urlpatterns = patterns('vortaro.views', url(r'^informo$', 'about', name="about"), url(r'^informo/api$', 'about_the_api', name="about_the_api"), url(ur'^serĉo$', ...
Allow viewing the 500 page during dev.
Allow viewing the 500 page during dev.
Python
agpl-3.0
Wilfred/simpla-vortaro,Wilfred/simpla-vortaro
# -*- coding: utf-8 -*- from django.conf.urls import patterns, url from django.conf import settings from django.views.generic import TemplateView urlpatterns = patterns('vortaro.views', url(r'^informo$', 'about', name="about"), url(r'^informo/api$', 'about_the_api', name="about_the_api"), url(ur'^serĉo$', ...
# -*- coding: utf-8 -*- from django.conf.urls import patterns, url from django.conf import settings from django.views.generic import TemplateView urlpatterns = patterns('vortaro.views', url(r'^informo$', 'about', name="about"), url(r'^informo/api$', 'about_the_api', name="about_the_api"), url(ur'^serĉo$', ...
<commit_before># -*- coding: utf-8 -*- from django.conf.urls import patterns, url from django.conf import settings from django.views.generic import TemplateView urlpatterns = patterns('vortaro.views', url(r'^informo$', 'about', name="about"), url(r'^informo/api$', 'about_the_api', name="about_the_api"), ur...
# -*- coding: utf-8 -*- from django.conf.urls import patterns, url from django.conf import settings from django.views.generic import TemplateView urlpatterns = patterns('vortaro.views', url(r'^informo$', 'about', name="about"), url(r'^informo/api$', 'about_the_api', name="about_the_api"), url(ur'^serĉo$', ...
# -*- coding: utf-8 -*- from django.conf.urls import patterns, url from django.conf import settings from django.views.generic import TemplateView urlpatterns = patterns('vortaro.views', url(r'^informo$', 'about', name="about"), url(r'^informo/api$', 'about_the_api', name="about_the_api"), url(ur'^serĉo$', ...
<commit_before># -*- coding: utf-8 -*- from django.conf.urls import patterns, url from django.conf import settings from django.views.generic import TemplateView urlpatterns = patterns('vortaro.views', url(r'^informo$', 'about', name="about"), url(r'^informo/api$', 'about_the_api', name="about_the_api"), ur...
fcee154a123c7f9db81c92efce6d4a425dc0a3b1
src/sentry/models/savedsearch.py
src/sentry/models/savedsearch.py
from __future__ import absolute_import, print_function from django.db import models from django.utils import timezone from sentry.db.models import FlexibleForeignKey, Model, sane_repr class SavedSearch(Model): """ A saved search query. """ __core__ = True project = FlexibleForeignKey('sentry.Pr...
from __future__ import absolute_import, print_function from django.db import models from django.utils import timezone from sentry.db.models import FlexibleForeignKey, Model, sane_repr class SavedSearch(Model): """ A saved search query. """ __core__ = True project = FlexibleForeignKey('sentry.Pr...
Add SavedSarch to project defaults
Add SavedSarch to project defaults
Python
bsd-3-clause
mvaled/sentry,jean/sentry,mvaled/sentry,nicholasserra/sentry,BuildingLink/sentry,gencer/sentry,JackDanger/sentry,beeftornado/sentry,mvaled/sentry,zenefits/sentry,nicholasserra/sentry,daevaorn/sentry,gencer/sentry,beeftornado/sentry,fotinakis/sentry,JamesMura/sentry,JackDanger/sentry,fotinakis/sentry,looker/sentry,JackD...
from __future__ import absolute_import, print_function from django.db import models from django.utils import timezone from sentry.db.models import FlexibleForeignKey, Model, sane_repr class SavedSearch(Model): """ A saved search query. """ __core__ = True project = FlexibleForeignKey('sentry.Pr...
from __future__ import absolute_import, print_function from django.db import models from django.utils import timezone from sentry.db.models import FlexibleForeignKey, Model, sane_repr class SavedSearch(Model): """ A saved search query. """ __core__ = True project = FlexibleForeignKey('sentry.Pr...
<commit_before>from __future__ import absolute_import, print_function from django.db import models from django.utils import timezone from sentry.db.models import FlexibleForeignKey, Model, sane_repr class SavedSearch(Model): """ A saved search query. """ __core__ = True project = FlexibleForeig...
from __future__ import absolute_import, print_function from django.db import models from django.utils import timezone from sentry.db.models import FlexibleForeignKey, Model, sane_repr class SavedSearch(Model): """ A saved search query. """ __core__ = True project = FlexibleForeignKey('sentry.Pr...
from __future__ import absolute_import, print_function from django.db import models from django.utils import timezone from sentry.db.models import FlexibleForeignKey, Model, sane_repr class SavedSearch(Model): """ A saved search query. """ __core__ = True project = FlexibleForeignKey('sentry.Pr...
<commit_before>from __future__ import absolute_import, print_function from django.db import models from django.utils import timezone from sentry.db.models import FlexibleForeignKey, Model, sane_repr class SavedSearch(Model): """ A saved search query. """ __core__ = True project = FlexibleForeig...
2eb8dfdfdc31c5315546ff7c89cd59f8d6cb4727
tacker/__init__.py
tacker/__init__.py
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2011 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.apach...
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2011 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.apach...
Fix gettext wrong argument error in py34
Fix gettext wrong argument error in py34 Closes-Bug: #1550202 Change-Id: I468bef7a8c0a9fa93576744e7869dfa5f2569fa0
Python
apache-2.0
priya-pp/Tacker,openstack/tacker,zeinsteinz/tacker,trozet/tacker,priya-pp/Tacker,stackforge/tacker,openstack/tacker,trozet/tacker,openstack/tacker,stackforge/tacker,zeinsteinz/tacker
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2011 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.apach...
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2011 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.apach...
<commit_before># vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2011 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 # # h...
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2011 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.apach...
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2011 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.apach...
<commit_before># vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2011 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 # # h...
f79b8834ff88b9f4517d464407240f2bce6c7f5a
tests/test_parse.py
tests/test_parse.py
from hypothesis_auto import auto_pytest_magic from isort import parse from isort.settings import Config TEST_CONTENTS = """ import xyz import abc def function(): pass """ def test_file_contents(): ( in_lines, out_lines, import_index, place_imports, import_placements...
from hypothesis_auto import auto_pytest_magic from isort import parse from isort.settings import Config TEST_CONTENTS = """ import xyz import abc def function(): pass """ def test_file_contents(): ( in_lines, out_lines, import_index, place_imports, import_placements...
Fix signature of test case
Fix signature of test case
Python
mit
PyCQA/isort,PyCQA/isort
from hypothesis_auto import auto_pytest_magic from isort import parse from isort.settings import Config TEST_CONTENTS = """ import xyz import abc def function(): pass """ def test_file_contents(): ( in_lines, out_lines, import_index, place_imports, import_placements...
from hypothesis_auto import auto_pytest_magic from isort import parse from isort.settings import Config TEST_CONTENTS = """ import xyz import abc def function(): pass """ def test_file_contents(): ( in_lines, out_lines, import_index, place_imports, import_placements...
<commit_before>from hypothesis_auto import auto_pytest_magic from isort import parse from isort.settings import Config TEST_CONTENTS = """ import xyz import abc def function(): pass """ def test_file_contents(): ( in_lines, out_lines, import_index, place_imports, im...
from hypothesis_auto import auto_pytest_magic from isort import parse from isort.settings import Config TEST_CONTENTS = """ import xyz import abc def function(): pass """ def test_file_contents(): ( in_lines, out_lines, import_index, place_imports, import_placements...
from hypothesis_auto import auto_pytest_magic from isort import parse from isort.settings import Config TEST_CONTENTS = """ import xyz import abc def function(): pass """ def test_file_contents(): ( in_lines, out_lines, import_index, place_imports, import_placements...
<commit_before>from hypothesis_auto import auto_pytest_magic from isort import parse from isort.settings import Config TEST_CONTENTS = """ import xyz import abc def function(): pass """ def test_file_contents(): ( in_lines, out_lines, import_index, place_imports, im...
88746539211d193e0d0f04510c71d64218cc6927
test/test_users.py
test/test_users.py
import chatexchange import live_testing if live_testing.enabled: def test_user_info(): client = chatexchange.Client('stackexchange.com') user = client.get_user(-2) assert user.id == -2 assert not user.is_moderator assert user.name == "StackExchange" assert user.ro...
import chatexchange import live_testing if live_testing.enabled: def test_user_info(): client = chatexchange.Client('stackexchange.com') user = client.get_user(-2) assert user.id == -2 assert not user.is_moderator assert user.name == "Stack Exchange" assert user.r...
Update name of user -2
Update name of user -2 Changed from StackExchange to Stack Exchange
Python
apache-2.0
Charcoal-SE/ChatExchange,ByteCommander/ChatExchange6,ByteCommander/ChatExchange6,Charcoal-SE/ChatExchange
import chatexchange import live_testing if live_testing.enabled: def test_user_info(): client = chatexchange.Client('stackexchange.com') user = client.get_user(-2) assert user.id == -2 assert not user.is_moderator assert user.name == "StackExchange" assert user.ro...
import chatexchange import live_testing if live_testing.enabled: def test_user_info(): client = chatexchange.Client('stackexchange.com') user = client.get_user(-2) assert user.id == -2 assert not user.is_moderator assert user.name == "Stack Exchange" assert user.r...
<commit_before>import chatexchange import live_testing if live_testing.enabled: def test_user_info(): client = chatexchange.Client('stackexchange.com') user = client.get_user(-2) assert user.id == -2 assert not user.is_moderator assert user.name == "StackExchange" ...
import chatexchange import live_testing if live_testing.enabled: def test_user_info(): client = chatexchange.Client('stackexchange.com') user = client.get_user(-2) assert user.id == -2 assert not user.is_moderator assert user.name == "Stack Exchange" assert user.r...
import chatexchange import live_testing if live_testing.enabled: def test_user_info(): client = chatexchange.Client('stackexchange.com') user = client.get_user(-2) assert user.id == -2 assert not user.is_moderator assert user.name == "StackExchange" assert user.ro...
<commit_before>import chatexchange import live_testing if live_testing.enabled: def test_user_info(): client = chatexchange.Client('stackexchange.com') user = client.get_user(-2) assert user.id == -2 assert not user.is_moderator assert user.name == "StackExchange" ...
cca387dc889b12457c1b1d8bb7b61ad3d2bbd57a
tests/test_room.py
tests/test_room.py
import unittest from classes.room import Room class RoomClassTest(unittest.TestCase): pass # def test_create_room_successfully(self): # my_class_instance = Room() # initial_room_count = len(my_class_instance.all_rooms) # blue_office = my_class_instance.create_room("Blue", "office") ...
import unittest from classes.room import Room from classes.dojo import Dojo class RoomClassTest(unittest.TestCase): def test_add_occupant(self): my_class_instance = Room("Blue", "office", 6) my_dojo_instance = Dojo() new_fellow = my_dojo_instance.add_person("fellow", "Peter", "Musonye", "Y...
Add tests for class Room
Add tests for class Room
Python
mit
peterpaints/room-allocator
import unittest from classes.room import Room class RoomClassTest(unittest.TestCase): pass # def test_create_room_successfully(self): # my_class_instance = Room() # initial_room_count = len(my_class_instance.all_rooms) # blue_office = my_class_instance.create_room("Blue", "office") ...
import unittest from classes.room import Room from classes.dojo import Dojo class RoomClassTest(unittest.TestCase): def test_add_occupant(self): my_class_instance = Room("Blue", "office", 6) my_dojo_instance = Dojo() new_fellow = my_dojo_instance.add_person("fellow", "Peter", "Musonye", "Y...
<commit_before>import unittest from classes.room import Room class RoomClassTest(unittest.TestCase): pass # def test_create_room_successfully(self): # my_class_instance = Room() # initial_room_count = len(my_class_instance.all_rooms) # blue_office = my_class_instance.create_room("Blue"...
import unittest from classes.room import Room from classes.dojo import Dojo class RoomClassTest(unittest.TestCase): def test_add_occupant(self): my_class_instance = Room("Blue", "office", 6) my_dojo_instance = Dojo() new_fellow = my_dojo_instance.add_person("fellow", "Peter", "Musonye", "Y...
import unittest from classes.room import Room class RoomClassTest(unittest.TestCase): pass # def test_create_room_successfully(self): # my_class_instance = Room() # initial_room_count = len(my_class_instance.all_rooms) # blue_office = my_class_instance.create_room("Blue", "office") ...
<commit_before>import unittest from classes.room import Room class RoomClassTest(unittest.TestCase): pass # def test_create_room_successfully(self): # my_class_instance = Room() # initial_room_count = len(my_class_instance.all_rooms) # blue_office = my_class_instance.create_room("Blue"...
4c765b0765b8c5eb43b5850d9c3877d37d40ed5b
qr_code/urls.py
qr_code/urls.py
from django.urls import path from qr_code import views app_name = 'qr_code' urlpatterns = [ path('images/serve-qr-code-image/', views.serve_qr_code_image, name='serve_qr_code_image') ]
from django.conf import settings from django.urls import path from qr_code import views app_name = 'qr_code' urlpatterns = [ path(getattr(settings, 'SERVE_QR_CODE_IMAGE_PATH', 'images/serve-qr-code-image/'), views.serve_qr_code_image, name='serve_qr_code_image') ]
Introduce setting `SERVE_QR_CODE_IMAGE_PATH` to configure the path under which QR Code images are served.
Introduce setting `SERVE_QR_CODE_IMAGE_PATH` to configure the path under which QR Code images are served.
Python
bsd-3-clause
dprog-philippe-docourt/django-qr-code,dprog-philippe-docourt/django-qr-code,dprog-philippe-docourt/django-qr-code
from django.urls import path from qr_code import views app_name = 'qr_code' urlpatterns = [ path('images/serve-qr-code-image/', views.serve_qr_code_image, name='serve_qr_code_image') ] Introduce setting `SERVE_QR_CODE_IMAGE_PATH` to configure the path under which QR Code images are served.
from django.conf import settings from django.urls import path from qr_code import views app_name = 'qr_code' urlpatterns = [ path(getattr(settings, 'SERVE_QR_CODE_IMAGE_PATH', 'images/serve-qr-code-image/'), views.serve_qr_code_image, name='serve_qr_code_image') ]
<commit_before>from django.urls import path from qr_code import views app_name = 'qr_code' urlpatterns = [ path('images/serve-qr-code-image/', views.serve_qr_code_image, name='serve_qr_code_image') ] <commit_msg>Introduce setting `SERVE_QR_CODE_IMAGE_PATH` to configure the path under which QR Code images are ser...
from django.conf import settings from django.urls import path from qr_code import views app_name = 'qr_code' urlpatterns = [ path(getattr(settings, 'SERVE_QR_CODE_IMAGE_PATH', 'images/serve-qr-code-image/'), views.serve_qr_code_image, name='serve_qr_code_image') ]
from django.urls import path from qr_code import views app_name = 'qr_code' urlpatterns = [ path('images/serve-qr-code-image/', views.serve_qr_code_image, name='serve_qr_code_image') ] Introduce setting `SERVE_QR_CODE_IMAGE_PATH` to configure the path under which QR Code images are served.from django.conf import...
<commit_before>from django.urls import path from qr_code import views app_name = 'qr_code' urlpatterns = [ path('images/serve-qr-code-image/', views.serve_qr_code_image, name='serve_qr_code_image') ] <commit_msg>Introduce setting `SERVE_QR_CODE_IMAGE_PATH` to configure the path under which QR Code images are ser...
21b8c54d564fb48d9982e8377e0f2a8c0effb96e
rasa/nlu/run.py
rasa/nlu/run.py
import logging import typing from typing import Optional, Text from rasa.shared.utils.cli import print_info, print_success from rasa.shared.nlu.interpreter import RegexInterpreter from rasa.shared.constants import INTENT_MESSAGE_PREFIX from rasa.nlu.model import Interpreter from rasa.shared.utils.io import json_to_str...
import logging import typing from typing import Optional, Text from rasa.shared.utils.cli import print_info, print_success from rasa.shared.nlu.interpreter import RegexInterpreter from rasa.shared.constants import INTENT_MESSAGE_PREFIX from rasa.nlu.model import Interpreter from rasa.shared.utils.io import json_to_str...
Swap parse call for synchronous_parse
Swap parse call for synchronous_parse
Python
apache-2.0
RasaHQ/rasa_nlu,RasaHQ/rasa_nlu,RasaHQ/rasa_nlu
import logging import typing from typing import Optional, Text from rasa.shared.utils.cli import print_info, print_success from rasa.shared.nlu.interpreter import RegexInterpreter from rasa.shared.constants import INTENT_MESSAGE_PREFIX from rasa.nlu.model import Interpreter from rasa.shared.utils.io import json_to_str...
import logging import typing from typing import Optional, Text from rasa.shared.utils.cli import print_info, print_success from rasa.shared.nlu.interpreter import RegexInterpreter from rasa.shared.constants import INTENT_MESSAGE_PREFIX from rasa.nlu.model import Interpreter from rasa.shared.utils.io import json_to_str...
<commit_before>import logging import typing from typing import Optional, Text from rasa.shared.utils.cli import print_info, print_success from rasa.shared.nlu.interpreter import RegexInterpreter from rasa.shared.constants import INTENT_MESSAGE_PREFIX from rasa.nlu.model import Interpreter from rasa.shared.utils.io imp...
import logging import typing from typing import Optional, Text from rasa.shared.utils.cli import print_info, print_success from rasa.shared.nlu.interpreter import RegexInterpreter from rasa.shared.constants import INTENT_MESSAGE_PREFIX from rasa.nlu.model import Interpreter from rasa.shared.utils.io import json_to_str...
import logging import typing from typing import Optional, Text from rasa.shared.utils.cli import print_info, print_success from rasa.shared.nlu.interpreter import RegexInterpreter from rasa.shared.constants import INTENT_MESSAGE_PREFIX from rasa.nlu.model import Interpreter from rasa.shared.utils.io import json_to_str...
<commit_before>import logging import typing from typing import Optional, Text from rasa.shared.utils.cli import print_info, print_success from rasa.shared.nlu.interpreter import RegexInterpreter from rasa.shared.constants import INTENT_MESSAGE_PREFIX from rasa.nlu.model import Interpreter from rasa.shared.utils.io imp...
0785554db32573f3c693ef4d3a6de952a2f841cc
taggittokenfield/views.py
taggittokenfield/views.py
import json from django.http import HttpResponse from taggit.models import Tag def filter_tags(request): "Returns a JSON formatted list of tags starting with the value of GET variable 'q'." limiter = request.GET['q'] results = Tag.objects.filter(name__startswith=limiter).values_list('name', flat=True) data = [] f...
import json from django.http import HttpResponse from taggit.models import Tag def filter_tags(request): "Returns a JSON formatted list of tags starting with the value of GET variable 'q'." limiter = request.GET['q'] results = Tag.objects.filter(name__istartswith=limiter).values_list('name', flat=True) data = [] ...
Tag searches should be case-insensitive.
Tag searches should be case-insensitive.
Python
bsd-3-clause
harrislapiroff/django-taggit-tokenfield,harrislapiroff/django-taggit-tokenfield
import json from django.http import HttpResponse from taggit.models import Tag def filter_tags(request): "Returns a JSON formatted list of tags starting with the value of GET variable 'q'." limiter = request.GET['q'] results = Tag.objects.filter(name__startswith=limiter).values_list('name', flat=True) data = [] f...
import json from django.http import HttpResponse from taggit.models import Tag def filter_tags(request): "Returns a JSON formatted list of tags starting with the value of GET variable 'q'." limiter = request.GET['q'] results = Tag.objects.filter(name__istartswith=limiter).values_list('name', flat=True) data = [] ...
<commit_before>import json from django.http import HttpResponse from taggit.models import Tag def filter_tags(request): "Returns a JSON formatted list of tags starting with the value of GET variable 'q'." limiter = request.GET['q'] results = Tag.objects.filter(name__startswith=limiter).values_list('name', flat=True...
import json from django.http import HttpResponse from taggit.models import Tag def filter_tags(request): "Returns a JSON formatted list of tags starting with the value of GET variable 'q'." limiter = request.GET['q'] results = Tag.objects.filter(name__istartswith=limiter).values_list('name', flat=True) data = [] ...
import json from django.http import HttpResponse from taggit.models import Tag def filter_tags(request): "Returns a JSON formatted list of tags starting with the value of GET variable 'q'." limiter = request.GET['q'] results = Tag.objects.filter(name__startswith=limiter).values_list('name', flat=True) data = [] f...
<commit_before>import json from django.http import HttpResponse from taggit.models import Tag def filter_tags(request): "Returns a JSON formatted list of tags starting with the value of GET variable 'q'." limiter = request.GET['q'] results = Tag.objects.filter(name__startswith=limiter).values_list('name', flat=True...
ebc7aa75d871929220ee0197aaf92a24efc3f9da
PVGeo/__main__.py
PVGeo/__main__.py
import os import sys import platform def GetInstallationPaths(): path = os.path.dirname(os.path.dirname(__file__)) PYTHONPATH = path PV_PLUGIN_PATH = '%s/%s' % (path, 'PVPlugins') script = 'curl -s https://cdn.rawgit.com/OpenGeoVis/PVGeo/master/installMac.sh | sh -s' if 'darwin' in platform.syst...
import os import sys import platform def GetInstallationPaths(): path = os.path.dirname(os.path.dirname(__file__)) PYTHONPATH = path PV_PLUGIN_PATH = '%s/%s' % (path, 'PVPlugins') script = 'curl -s https://raw.githubusercontent.com/OpenGeoVis/PVGeo/master/installMac.sh | sh -s' if 'darwin' in pl...
Use non-cached sever for mac install script
Use non-cached sever for mac install script
Python
bsd-3-clause
banesullivan/ParaViewGeophysics,banesullivan/ParaViewGeophysics,banesullivan/ParaViewGeophysics
import os import sys import platform def GetInstallationPaths(): path = os.path.dirname(os.path.dirname(__file__)) PYTHONPATH = path PV_PLUGIN_PATH = '%s/%s' % (path, 'PVPlugins') script = 'curl -s https://cdn.rawgit.com/OpenGeoVis/PVGeo/master/installMac.sh | sh -s' if 'darwin' in platform.syst...
import os import sys import platform def GetInstallationPaths(): path = os.path.dirname(os.path.dirname(__file__)) PYTHONPATH = path PV_PLUGIN_PATH = '%s/%s' % (path, 'PVPlugins') script = 'curl -s https://raw.githubusercontent.com/OpenGeoVis/PVGeo/master/installMac.sh | sh -s' if 'darwin' in pl...
<commit_before>import os import sys import platform def GetInstallationPaths(): path = os.path.dirname(os.path.dirname(__file__)) PYTHONPATH = path PV_PLUGIN_PATH = '%s/%s' % (path, 'PVPlugins') script = 'curl -s https://cdn.rawgit.com/OpenGeoVis/PVGeo/master/installMac.sh | sh -s' if 'darwin' i...
import os import sys import platform def GetInstallationPaths(): path = os.path.dirname(os.path.dirname(__file__)) PYTHONPATH = path PV_PLUGIN_PATH = '%s/%s' % (path, 'PVPlugins') script = 'curl -s https://raw.githubusercontent.com/OpenGeoVis/PVGeo/master/installMac.sh | sh -s' if 'darwin' in pl...
import os import sys import platform def GetInstallationPaths(): path = os.path.dirname(os.path.dirname(__file__)) PYTHONPATH = path PV_PLUGIN_PATH = '%s/%s' % (path, 'PVPlugins') script = 'curl -s https://cdn.rawgit.com/OpenGeoVis/PVGeo/master/installMac.sh | sh -s' if 'darwin' in platform.syst...
<commit_before>import os import sys import platform def GetInstallationPaths(): path = os.path.dirname(os.path.dirname(__file__)) PYTHONPATH = path PV_PLUGIN_PATH = '%s/%s' % (path, 'PVPlugins') script = 'curl -s https://cdn.rawgit.com/OpenGeoVis/PVGeo/master/installMac.sh | sh -s' if 'darwin' i...
1fbea5f1a10613eba97ef3ff66d7ba197837b1e9
tsv2md/__init__.py
tsv2md/__init__.py
import fileinput import textwrap import sys class Table(object): def __init__(self): self.lines = [] self.width = 20 def feed(self,line): self.lines.append(line.split("\t")) def print_sep(self): for _ in range(len(self.lines[0])): print "-"*self.width, ...
import fileinput import textwrap import sys class Table(object): def __init__(self): self.lines = [] self.width = 20 def feed(self,line): self.lines.append(line.split("\t")) def print_sep(self): for _ in range(len(self.lines[0])): print "-"*self.width, ...
Remove superfluous option from print_row.
Remove superfluous option from print_row.
Python
mit
wouteroostervld/tsv2md
import fileinput import textwrap import sys class Table(object): def __init__(self): self.lines = [] self.width = 20 def feed(self,line): self.lines.append(line.split("\t")) def print_sep(self): for _ in range(len(self.lines[0])): print "-"*self.width, ...
import fileinput import textwrap import sys class Table(object): def __init__(self): self.lines = [] self.width = 20 def feed(self,line): self.lines.append(line.split("\t")) def print_sep(self): for _ in range(len(self.lines[0])): print "-"*self.width, ...
<commit_before>import fileinput import textwrap import sys class Table(object): def __init__(self): self.lines = [] self.width = 20 def feed(self,line): self.lines.append(line.split("\t")) def print_sep(self): for _ in range(len(self.lines[0])): print "-"*se...
import fileinput import textwrap import sys class Table(object): def __init__(self): self.lines = [] self.width = 20 def feed(self,line): self.lines.append(line.split("\t")) def print_sep(self): for _ in range(len(self.lines[0])): print "-"*self.width, ...
import fileinput import textwrap import sys class Table(object): def __init__(self): self.lines = [] self.width = 20 def feed(self,line): self.lines.append(line.split("\t")) def print_sep(self): for _ in range(len(self.lines[0])): print "-"*self.width, ...
<commit_before>import fileinput import textwrap import sys class Table(object): def __init__(self): self.lines = [] self.width = 20 def feed(self,line): self.lines.append(line.split("\t")) def print_sep(self): for _ in range(len(self.lines[0])): print "-"*se...
8b34daa2a61422c79fef2afd9137bf2f1c2a5b12
project3/webscale/synthesizer/admin.py
project3/webscale/synthesizer/admin.py
from django.contrib import admin from .models import ApplicationTable,OldUser,Snippit,SnippitData,HolesTable,GoogleAuth,Comment # Register your models here. admin.site.register(ApplicationTable) admin.site.register(OldUser) admin.site.register(Snippit) admin.site.register(SnippitData) admin.site.register(HolesTable) ad...
from django.contrib import admin from .models import ApplicationTable,Snippit,SnippitData,HolesTable,GoogleAuth,Comment # Register your models here. admin.site.register(ApplicationTable) admin.site.register(Snippit) admin.site.register(SnippitData) admin.site.register(HolesTable) admin.site.register(GoogleAuth) admin.s...
Delete calls to Old User model
Delete calls to Old User model
Python
mit
326-WEBSCALE/webscale-synthesizer,326-WEBSCALE/webscale-synthesizer,326-WEBSCALE/webscale-synthesizer,326-WEBSCALE/webscale-synthesizer,326-WEBSCALE/webscale-synthesizer
from django.contrib import admin from .models import ApplicationTable,OldUser,Snippit,SnippitData,HolesTable,GoogleAuth,Comment # Register your models here. admin.site.register(ApplicationTable) admin.site.register(OldUser) admin.site.register(Snippit) admin.site.register(SnippitData) admin.site.register(HolesTable) ad...
from django.contrib import admin from .models import ApplicationTable,Snippit,SnippitData,HolesTable,GoogleAuth,Comment # Register your models here. admin.site.register(ApplicationTable) admin.site.register(Snippit) admin.site.register(SnippitData) admin.site.register(HolesTable) admin.site.register(GoogleAuth) admin.s...
<commit_before>from django.contrib import admin from .models import ApplicationTable,OldUser,Snippit,SnippitData,HolesTable,GoogleAuth,Comment # Register your models here. admin.site.register(ApplicationTable) admin.site.register(OldUser) admin.site.register(Snippit) admin.site.register(SnippitData) admin.site.register...
from django.contrib import admin from .models import ApplicationTable,Snippit,SnippitData,HolesTable,GoogleAuth,Comment # Register your models here. admin.site.register(ApplicationTable) admin.site.register(Snippit) admin.site.register(SnippitData) admin.site.register(HolesTable) admin.site.register(GoogleAuth) admin.s...
from django.contrib import admin from .models import ApplicationTable,OldUser,Snippit,SnippitData,HolesTable,GoogleAuth,Comment # Register your models here. admin.site.register(ApplicationTable) admin.site.register(OldUser) admin.site.register(Snippit) admin.site.register(SnippitData) admin.site.register(HolesTable) ad...
<commit_before>from django.contrib import admin from .models import ApplicationTable,OldUser,Snippit,SnippitData,HolesTable,GoogleAuth,Comment # Register your models here. admin.site.register(ApplicationTable) admin.site.register(OldUser) admin.site.register(Snippit) admin.site.register(SnippitData) admin.site.register...
491657b0b4e9344416ae3f84114eef403e020b43
pywikibot/families/lyricwiki_family.py
pywikibot/families/lyricwiki_family.py
# -*- coding: utf-8 -*- """Family module for LyricWiki.""" __version__ = '$Id$' from pywikibot import family # The LyricWiki family # user_config.py: # usernames['lyricwiki']['en'] = 'user' class Family(family.Family): """Family class for LyricWiki.""" def __init__(self): """Constructor.""" ...
# -*- coding: utf-8 -*- """Family module for LyricWiki.""" __version__ = '$Id$' from pywikibot import family # The LyricWiki family # user_config.py: # usernames['lyricwiki']['en'] = 'user' class Family(family.Family): """Family class for LyricWiki.""" def __init__(self): """Constructor.""" ...
Synchronize version with compat using "'" instead of '"'
[sync] Synchronize version with compat using "'" instead of '"' Change-Id: Ie0be0baa5eea030449b5c16d30a68ff3865aa3cf
Python
mit
TridevGuha/pywikibot-core,magul/pywikibot-core,jayvdb/pywikibot-core,h4ck3rm1k3/pywikibot-core,magul/pywikibot-core,h4ck3rm1k3/pywikibot-core,happy5214/pywikibot-core,PersianWikipedia/pywikibot-core,jayvdb/pywikibot-core,wikimedia/pywikibot-core,icyflame/batman,happy5214/pywikibot-core,wikimedia/pywikibot-core,Darkdada...
# -*- coding: utf-8 -*- """Family module for LyricWiki.""" __version__ = '$Id$' from pywikibot import family # The LyricWiki family # user_config.py: # usernames['lyricwiki']['en'] = 'user' class Family(family.Family): """Family class for LyricWiki.""" def __init__(self): """Constructor.""" ...
# -*- coding: utf-8 -*- """Family module for LyricWiki.""" __version__ = '$Id$' from pywikibot import family # The LyricWiki family # user_config.py: # usernames['lyricwiki']['en'] = 'user' class Family(family.Family): """Family class for LyricWiki.""" def __init__(self): """Constructor.""" ...
<commit_before># -*- coding: utf-8 -*- """Family module for LyricWiki.""" __version__ = '$Id$' from pywikibot import family # The LyricWiki family # user_config.py: # usernames['lyricwiki']['en'] = 'user' class Family(family.Family): """Family class for LyricWiki.""" def __init__(self): """Const...
# -*- coding: utf-8 -*- """Family module for LyricWiki.""" __version__ = '$Id$' from pywikibot import family # The LyricWiki family # user_config.py: # usernames['lyricwiki']['en'] = 'user' class Family(family.Family): """Family class for LyricWiki.""" def __init__(self): """Constructor.""" ...
# -*- coding: utf-8 -*- """Family module for LyricWiki.""" __version__ = '$Id$' from pywikibot import family # The LyricWiki family # user_config.py: # usernames['lyricwiki']['en'] = 'user' class Family(family.Family): """Family class for LyricWiki.""" def __init__(self): """Constructor.""" ...
<commit_before># -*- coding: utf-8 -*- """Family module for LyricWiki.""" __version__ = '$Id$' from pywikibot import family # The LyricWiki family # user_config.py: # usernames['lyricwiki']['en'] = 'user' class Family(family.Family): """Family class for LyricWiki.""" def __init__(self): """Const...
09eb73a9af576dd4026c69c2bc87c98be21c0e4e
segments/nvm.py
segments/nvm.py
def add_nvm_segment(): import os import subprocess try: output = subprocess.check_output(['bash', '-c', '. ~/.nvm/nvm.sh; nvm current']) except (OSError, subprocess.CalledProcessError): return version = output.rstrip() if version in ('system', 'none'): return shli...
def add_nvm_segment(): import os import subprocess try: output = subprocess.check_output(['bash', '-c', '. ~/.nvm/nvm.sh; nvm current']) except (OSError, subprocess.CalledProcessError): return version = output.rstrip() if version in ('system', 'none'): return shli...
Use an hexagon to represent the Node version
Use an hexagon to represent the Node version
Python
mit
saghul/shline
def add_nvm_segment(): import os import subprocess try: output = subprocess.check_output(['bash', '-c', '. ~/.nvm/nvm.sh; nvm current']) except (OSError, subprocess.CalledProcessError): return version = output.rstrip() if version in ('system', 'none'): return shli...
def add_nvm_segment(): import os import subprocess try: output = subprocess.check_output(['bash', '-c', '. ~/.nvm/nvm.sh; nvm current']) except (OSError, subprocess.CalledProcessError): return version = output.rstrip() if version in ('system', 'none'): return shli...
<commit_before> def add_nvm_segment(): import os import subprocess try: output = subprocess.check_output(['bash', '-c', '. ~/.nvm/nvm.sh; nvm current']) except (OSError, subprocess.CalledProcessError): return version = output.rstrip() if version in ('system', 'none'): r...
def add_nvm_segment(): import os import subprocess try: output = subprocess.check_output(['bash', '-c', '. ~/.nvm/nvm.sh; nvm current']) except (OSError, subprocess.CalledProcessError): return version = output.rstrip() if version in ('system', 'none'): return shli...
def add_nvm_segment(): import os import subprocess try: output = subprocess.check_output(['bash', '-c', '. ~/.nvm/nvm.sh; nvm current']) except (OSError, subprocess.CalledProcessError): return version = output.rstrip() if version in ('system', 'none'): return shli...
<commit_before> def add_nvm_segment(): import os import subprocess try: output = subprocess.check_output(['bash', '-c', '. ~/.nvm/nvm.sh; nvm current']) except (OSError, subprocess.CalledProcessError): return version = output.rstrip() if version in ('system', 'none'): r...
b5fbaafddf41f4efc1a4841a8a35f2fda094e60a
js2py/prototypes/jsfunction.py
js2py/prototypes/jsfunction.py
# python 3 support import six if six.PY3: basestring = str long = int xrange = range unicode = str # todo fix apply and bind class FunctionPrototype: def toString(): if not this.is_callable(): raise TypeError('toString is not generic!') args = ', '.join(this.code.__cod...
# python 3 support import six if six.PY3: basestring = str long = int xrange = range unicode = str class FunctionPrototype: def toString(): if not this.is_callable(): raise TypeError('toString is not generic!') args = ', '.join(this.code.__code__.co_varnames[:this.argco...
Fix injected local 'arguments' not working in list comprehension in bind.
Fix injected local 'arguments' not working in list comprehension in bind.
Python
mit
PiotrDabkowski/Js2Py,PiotrDabkowski/Js2Py,PiotrDabkowski/Js2Py
# python 3 support import six if six.PY3: basestring = str long = int xrange = range unicode = str # todo fix apply and bind class FunctionPrototype: def toString(): if not this.is_callable(): raise TypeError('toString is not generic!') args = ', '.join(this.code.__cod...
# python 3 support import six if six.PY3: basestring = str long = int xrange = range unicode = str class FunctionPrototype: def toString(): if not this.is_callable(): raise TypeError('toString is not generic!') args = ', '.join(this.code.__code__.co_varnames[:this.argco...
<commit_before># python 3 support import six if six.PY3: basestring = str long = int xrange = range unicode = str # todo fix apply and bind class FunctionPrototype: def toString(): if not this.is_callable(): raise TypeError('toString is not generic!') args = ', '.join(...
# python 3 support import six if six.PY3: basestring = str long = int xrange = range unicode = str class FunctionPrototype: def toString(): if not this.is_callable(): raise TypeError('toString is not generic!') args = ', '.join(this.code.__code__.co_varnames[:this.argco...
# python 3 support import six if six.PY3: basestring = str long = int xrange = range unicode = str # todo fix apply and bind class FunctionPrototype: def toString(): if not this.is_callable(): raise TypeError('toString is not generic!') args = ', '.join(this.code.__cod...
<commit_before># python 3 support import six if six.PY3: basestring = str long = int xrange = range unicode = str # todo fix apply and bind class FunctionPrototype: def toString(): if not this.is_callable(): raise TypeError('toString is not generic!') args = ', '.join(...
b1a0ccda6aa4cb9408512af15bed47b2986509e1
setup.py
setup.py
#!/usr/bin/env python import sys try: from setuptools import setup, find_packages except ImportError: from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages import pkg_resources NAME = 'pillowfight' VERSION = '0.1' SUMMARY = 'Eases the transition from PIL to...
#!/usr/bin/env python import sys try: from setuptools import setup, find_packages except ImportError: from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages import pkg_resources NAME = 'pillowfight' VERSION = '0.1' SUMMARY = 'Eases the transition from PIL to...
Make the PIL warning a little more noticeable.
Make the PIL warning a little more noticeable. The warning has been fleshed out just a bit, and has a border above and below it to make it more obvious.
Python
mit
beanbaginc/pillowfight
#!/usr/bin/env python import sys try: from setuptools import setup, find_packages except ImportError: from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages import pkg_resources NAME = 'pillowfight' VERSION = '0.1' SUMMARY = 'Eases the transition from PIL to...
#!/usr/bin/env python import sys try: from setuptools import setup, find_packages except ImportError: from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages import pkg_resources NAME = 'pillowfight' VERSION = '0.1' SUMMARY = 'Eases the transition from PIL to...
<commit_before>#!/usr/bin/env python import sys try: from setuptools import setup, find_packages except ImportError: from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages import pkg_resources NAME = 'pillowfight' VERSION = '0.1' SUMMARY = 'Eases the transit...
#!/usr/bin/env python import sys try: from setuptools import setup, find_packages except ImportError: from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages import pkg_resources NAME = 'pillowfight' VERSION = '0.1' SUMMARY = 'Eases the transition from PIL to...
#!/usr/bin/env python import sys try: from setuptools import setup, find_packages except ImportError: from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages import pkg_resources NAME = 'pillowfight' VERSION = '0.1' SUMMARY = 'Eases the transition from PIL to...
<commit_before>#!/usr/bin/env python import sys try: from setuptools import setup, find_packages except ImportError: from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages import pkg_resources NAME = 'pillowfight' VERSION = '0.1' SUMMARY = 'Eases the transit...
ca7f95e3a6b6ad8bb0ddca170a365211b9a05f3e
setup.py
setup.py
from setuptools import find_packages from setuptools import setup setup( name='brew', version='0.0.1', author='Chris Gilmer', author_email='chris.gilmer@gmail.com', maintainer='Chris Gilmer', maintainer_email='chris.gilmer@gmail.com', description='Brew Day Tools', url='https://github.co...
from setuptools import find_packages from setuptools import setup setup( name='brewday', version='0.0.1', author='Chris Gilmer', author_email='chris.gilmer@gmail.com', maintainer='Chris Gilmer', maintainer_email='chris.gilmer@gmail.com', description='Brew Day Tools', url='https://github...
Fix the name on the package from brew to brewday
Fix the name on the package from brew to brewday
Python
mit
chrisgilmerproj/brewday,chrisgilmerproj/brewday
from setuptools import find_packages from setuptools import setup setup( name='brew', version='0.0.1', author='Chris Gilmer', author_email='chris.gilmer@gmail.com', maintainer='Chris Gilmer', maintainer_email='chris.gilmer@gmail.com', description='Brew Day Tools', url='https://github.co...
from setuptools import find_packages from setuptools import setup setup( name='brewday', version='0.0.1', author='Chris Gilmer', author_email='chris.gilmer@gmail.com', maintainer='Chris Gilmer', maintainer_email='chris.gilmer@gmail.com', description='Brew Day Tools', url='https://github...
<commit_before>from setuptools import find_packages from setuptools import setup setup( name='brew', version='0.0.1', author='Chris Gilmer', author_email='chris.gilmer@gmail.com', maintainer='Chris Gilmer', maintainer_email='chris.gilmer@gmail.com', description='Brew Day Tools', url='ht...
from setuptools import find_packages from setuptools import setup setup( name='brewday', version='0.0.1', author='Chris Gilmer', author_email='chris.gilmer@gmail.com', maintainer='Chris Gilmer', maintainer_email='chris.gilmer@gmail.com', description='Brew Day Tools', url='https://github...
from setuptools import find_packages from setuptools import setup setup( name='brew', version='0.0.1', author='Chris Gilmer', author_email='chris.gilmer@gmail.com', maintainer='Chris Gilmer', maintainer_email='chris.gilmer@gmail.com', description='Brew Day Tools', url='https://github.co...
<commit_before>from setuptools import find_packages from setuptools import setup setup( name='brew', version='0.0.1', author='Chris Gilmer', author_email='chris.gilmer@gmail.com', maintainer='Chris Gilmer', maintainer_email='chris.gilmer@gmail.com', description='Brew Day Tools', url='ht...
7281e01b49bf5f28ae5c6f8cb1891d39d5bd3b4f
lutrisweb/settings/production.py
lutrisweb/settings/production.py
import os from base import * # noqa DEBUG = False MEDIA_URL = '//lutris.net/media/' FILES_ROOT = '/srv/files' ALLOWED_HOSTS = ['.lutris.net', '.lutris.net.', ] DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'lutris', 'USER': 'lutris', 'PASS...
import os from base import * # noqa DEBUG = False MEDIA_URL = '//lutris.net/media/' FILES_ROOT = '/srv/files' ALLOWED_HOSTS = ['.lutris.net', '.lutris.net.', ] DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'lutris', 'USER': 'lutris', 'PASS...
Disable some prod optimisations (more)
Disable some prod optimisations (more)
Python
agpl-3.0
lutris/website,lutris/website,Turupawn/website,lutris/website,Turupawn/website,Turupawn/website,Turupawn/website,lutris/website
import os from base import * # noqa DEBUG = False MEDIA_URL = '//lutris.net/media/' FILES_ROOT = '/srv/files' ALLOWED_HOSTS = ['.lutris.net', '.lutris.net.', ] DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'lutris', 'USER': 'lutris', 'PASS...
import os from base import * # noqa DEBUG = False MEDIA_URL = '//lutris.net/media/' FILES_ROOT = '/srv/files' ALLOWED_HOSTS = ['.lutris.net', '.lutris.net.', ] DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'lutris', 'USER': 'lutris', 'PASS...
<commit_before>import os from base import * # noqa DEBUG = False MEDIA_URL = '//lutris.net/media/' FILES_ROOT = '/srv/files' ALLOWED_HOSTS = ['.lutris.net', '.lutris.net.', ] DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'lutris', 'USER': 'lutris'...
import os from base import * # noqa DEBUG = False MEDIA_URL = '//lutris.net/media/' FILES_ROOT = '/srv/files' ALLOWED_HOSTS = ['.lutris.net', '.lutris.net.', ] DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'lutris', 'USER': 'lutris', 'PASS...
import os from base import * # noqa DEBUG = False MEDIA_URL = '//lutris.net/media/' FILES_ROOT = '/srv/files' ALLOWED_HOSTS = ['.lutris.net', '.lutris.net.', ] DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'lutris', 'USER': 'lutris', 'PASS...
<commit_before>import os from base import * # noqa DEBUG = False MEDIA_URL = '//lutris.net/media/' FILES_ROOT = '/srv/files' ALLOWED_HOSTS = ['.lutris.net', '.lutris.net.', ] DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'lutris', 'USER': 'lutris'...
015eb13331f121452ce44be39cb52aef3465f5c6
dthm4kaiako/tests/resources/factories.py
dthm4kaiako/tests/resources/factories.py
"""Module for factories for tesing resources application.""" import random from factory import DjangoModelFactory, Faker, post_generation from factory.faker import faker from resources.models import ( Resource, ResourceComponent, ) class ResourceFactory(DjangoModelFactory): """Factory for generating reso...
"""Module for factories for tesing resources application.""" import random from factory import DjangoModelFactory, Faker, post_generation from factory.faker import faker from resources.models import ( Resource, ResourceComponent, ) class ResourceFactory(DjangoModelFactory): """Factory for generating reso...
Update sampledata generator to allow component resources
Update sampledata generator to allow component resources
Python
mit
uccser/cs4teachers,uccser/cs4teachers,uccser/cs4teachers,uccser/cs4teachers
"""Module for factories for tesing resources application.""" import random from factory import DjangoModelFactory, Faker, post_generation from factory.faker import faker from resources.models import ( Resource, ResourceComponent, ) class ResourceFactory(DjangoModelFactory): """Factory for generating reso...
"""Module for factories for tesing resources application.""" import random from factory import DjangoModelFactory, Faker, post_generation from factory.faker import faker from resources.models import ( Resource, ResourceComponent, ) class ResourceFactory(DjangoModelFactory): """Factory for generating reso...
<commit_before>"""Module for factories for tesing resources application.""" import random from factory import DjangoModelFactory, Faker, post_generation from factory.faker import faker from resources.models import ( Resource, ResourceComponent, ) class ResourceFactory(DjangoModelFactory): """Factory for ...
"""Module for factories for tesing resources application.""" import random from factory import DjangoModelFactory, Faker, post_generation from factory.faker import faker from resources.models import ( Resource, ResourceComponent, ) class ResourceFactory(DjangoModelFactory): """Factory for generating reso...
"""Module for factories for tesing resources application.""" import random from factory import DjangoModelFactory, Faker, post_generation from factory.faker import faker from resources.models import ( Resource, ResourceComponent, ) class ResourceFactory(DjangoModelFactory): """Factory for generating reso...
<commit_before>"""Module for factories for tesing resources application.""" import random from factory import DjangoModelFactory, Faker, post_generation from factory.faker import faker from resources.models import ( Resource, ResourceComponent, ) class ResourceFactory(DjangoModelFactory): """Factory for ...
c876794a24e9adb83f41d9878220dc8c63228e2e
utils/database.py
utils/database.py
class Database(object): def __init__(self, channels): self.userdb = {} for i in channels: self.userdb[i] = {} def removeEntry(self, event, nick): try: del self.userdb[event.target][nick] except KeyError: for i in self.userdb[event.target].valu...
class Database(object): def __init__(self, channels): self.userdb = {} for i in channels: self.userdb[i] = {} def removeEntry(self, event, nick): try: del self.userdb[event.target][nick] except KeyError: for i in self.userdb[event.target].valu...
Use str instead of repr
Use str instead of repr
Python
mit
wolfy1339/Python-IRC-Bot
class Database(object): def __init__(self, channels): self.userdb = {} for i in channels: self.userdb[i] = {} def removeEntry(self, event, nick): try: del self.userdb[event.target][nick] except KeyError: for i in self.userdb[event.target].valu...
class Database(object): def __init__(self, channels): self.userdb = {} for i in channels: self.userdb[i] = {} def removeEntry(self, event, nick): try: del self.userdb[event.target][nick] except KeyError: for i in self.userdb[event.target].valu...
<commit_before>class Database(object): def __init__(self, channels): self.userdb = {} for i in channels: self.userdb[i] = {} def removeEntry(self, event, nick): try: del self.userdb[event.target][nick] except KeyError: for i in self.userdb[eve...
class Database(object): def __init__(self, channels): self.userdb = {} for i in channels: self.userdb[i] = {} def removeEntry(self, event, nick): try: del self.userdb[event.target][nick] except KeyError: for i in self.userdb[event.target].valu...
class Database(object): def __init__(self, channels): self.userdb = {} for i in channels: self.userdb[i] = {} def removeEntry(self, event, nick): try: del self.userdb[event.target][nick] except KeyError: for i in self.userdb[event.target].valu...
<commit_before>class Database(object): def __init__(self, channels): self.userdb = {} for i in channels: self.userdb[i] = {} def removeEntry(self, event, nick): try: del self.userdb[event.target][nick] except KeyError: for i in self.userdb[eve...
aa966c1a208f2c3f4b2a2a196c39b1df5a0b67c8
basics/candidate.py
basics/candidate.py
import numpy as np class Bubble2D(object): """ Class for candidate bubble portions from 2D planes. """ def __init__(self, props): super(Bubble2D, self).__init__() self._channel = props[0] self._y = props[1] self._x = props[2] self._major = props[3] sel...
import numpy as np class Bubble2D(object): """ Class for candidate bubble portions from 2D planes. """ def __init__(self, props): super(Bubble2D, self).__init__() self._channel = props[0] self._y = props[1] self._x = props[2] self._major = props[3] sel...
Add methods that need to be implemented
Add methods that need to be implemented
Python
mit
e-koch/BaSiCs
import numpy as np class Bubble2D(object): """ Class for candidate bubble portions from 2D planes. """ def __init__(self, props): super(Bubble2D, self).__init__() self._channel = props[0] self._y = props[1] self._x = props[2] self._major = props[3] sel...
import numpy as np class Bubble2D(object): """ Class for candidate bubble portions from 2D planes. """ def __init__(self, props): super(Bubble2D, self).__init__() self._channel = props[0] self._y = props[1] self._x = props[2] self._major = props[3] sel...
<commit_before> import numpy as np class Bubble2D(object): """ Class for candidate bubble portions from 2D planes. """ def __init__(self, props): super(Bubble2D, self).__init__() self._channel = props[0] self._y = props[1] self._x = props[2] self._major = props...
import numpy as np class Bubble2D(object): """ Class for candidate bubble portions from 2D planes. """ def __init__(self, props): super(Bubble2D, self).__init__() self._channel = props[0] self._y = props[1] self._x = props[2] self._major = props[3] sel...
import numpy as np class Bubble2D(object): """ Class for candidate bubble portions from 2D planes. """ def __init__(self, props): super(Bubble2D, self).__init__() self._channel = props[0] self._y = props[1] self._x = props[2] self._major = props[3] sel...
<commit_before> import numpy as np class Bubble2D(object): """ Class for candidate bubble portions from 2D planes. """ def __init__(self, props): super(Bubble2D, self).__init__() self._channel = props[0] self._y = props[1] self._x = props[2] self._major = props...
2fbbe27d4d0e64d21e5cdcad5d717d12e5f2d583
cobe/control.py
cobe/control.py
import cmdparse import commands import logging import optparse import sys parser = cmdparse.CommandParser() parser.add_option("", "--debug", action="store_true", help=optparse.SUPPRESS_HELP) parser.add_option("", "--profile", action="store_true", help=optparse.SUPPRESS_HELP) parser...
import cmdparse import commands import logging import optparse import sys parser = cmdparse.CommandParser() parser.add_option("", "--debug", action="store_true", help=optparse.SUPPRESS_HELP) parser.add_option("", "--profile", action="store_true", help=optparse.SUPPRESS_HELP) parser...
Add command groups for better help output
Add command groups for better help output
Python
mit
LeMagnesium/cobe,DarkMio/cobe,pteichman/cobe,pteichman/cobe,meska/cobe,DarkMio/cobe,wodim/cobe-ng,tiagochiavericosta/cobe,wodim/cobe-ng,meska/cobe,tiagochiavericosta/cobe,LeMagnesium/cobe
import cmdparse import commands import logging import optparse import sys parser = cmdparse.CommandParser() parser.add_option("", "--debug", action="store_true", help=optparse.SUPPRESS_HELP) parser.add_option("", "--profile", action="store_true", help=optparse.SUPPRESS_HELP) parser...
import cmdparse import commands import logging import optparse import sys parser = cmdparse.CommandParser() parser.add_option("", "--debug", action="store_true", help=optparse.SUPPRESS_HELP) parser.add_option("", "--profile", action="store_true", help=optparse.SUPPRESS_HELP) parser...
<commit_before>import cmdparse import commands import logging import optparse import sys parser = cmdparse.CommandParser() parser.add_option("", "--debug", action="store_true", help=optparse.SUPPRESS_HELP) parser.add_option("", "--profile", action="store_true", help=optparse.SUPPRES...
import cmdparse import commands import logging import optparse import sys parser = cmdparse.CommandParser() parser.add_option("", "--debug", action="store_true", help=optparse.SUPPRESS_HELP) parser.add_option("", "--profile", action="store_true", help=optparse.SUPPRESS_HELP) parser...
import cmdparse import commands import logging import optparse import sys parser = cmdparse.CommandParser() parser.add_option("", "--debug", action="store_true", help=optparse.SUPPRESS_HELP) parser.add_option("", "--profile", action="store_true", help=optparse.SUPPRESS_HELP) parser...
<commit_before>import cmdparse import commands import logging import optparse import sys parser = cmdparse.CommandParser() parser.add_option("", "--debug", action="store_true", help=optparse.SUPPRESS_HELP) parser.add_option("", "--profile", action="store_true", help=optparse.SUPPRES...
e0d66977ed4aca80eefc4d011bd8753987df3e8e
docker/settings.py
docker/settings.py
from .base_settings import * import os INSTALLED_APPS += [ 'data_aggregator.apps.DataAggregatorConfig', 'webpack_loader', ] if os.getenv('ENV') == 'localdev': DEBUG = True DATA_AGGREGATOR_ACCESS_GROUP = 'u_test_group' DATA_AGGREGATOR_THREADING_ENABLED = False RESTCLIENTS_DAO_CACHE_CLASS = None...
from .base_settings import * import os INSTALLED_APPS += [ 'data_aggregator.apps.DataAggregatorConfig', 'webpack_loader', ] if os.getenv('ENV') == 'localdev': DEBUG = True DATA_AGGREGATOR_ACCESS_GROUP = 'u_test_group' DATA_AGGREGATOR_THREADING_ENABLED = False RESTCLIENTS_DAO_CACHE_CLASS = None...
Increase connection pool size for canvas rest client.
Increase connection pool size for canvas rest client.
Python
apache-2.0
uw-it-aca/canvas-analytics,uw-it-aca/canvas-analytics,uw-it-aca/canvas-analytics,uw-it-aca/canvas-analytics
from .base_settings import * import os INSTALLED_APPS += [ 'data_aggregator.apps.DataAggregatorConfig', 'webpack_loader', ] if os.getenv('ENV') == 'localdev': DEBUG = True DATA_AGGREGATOR_ACCESS_GROUP = 'u_test_group' DATA_AGGREGATOR_THREADING_ENABLED = False RESTCLIENTS_DAO_CACHE_CLASS = None...
from .base_settings import * import os INSTALLED_APPS += [ 'data_aggregator.apps.DataAggregatorConfig', 'webpack_loader', ] if os.getenv('ENV') == 'localdev': DEBUG = True DATA_AGGREGATOR_ACCESS_GROUP = 'u_test_group' DATA_AGGREGATOR_THREADING_ENABLED = False RESTCLIENTS_DAO_CACHE_CLASS = None...
<commit_before>from .base_settings import * import os INSTALLED_APPS += [ 'data_aggregator.apps.DataAggregatorConfig', 'webpack_loader', ] if os.getenv('ENV') == 'localdev': DEBUG = True DATA_AGGREGATOR_ACCESS_GROUP = 'u_test_group' DATA_AGGREGATOR_THREADING_ENABLED = False RESTCLIENTS_DAO_CAC...
from .base_settings import * import os INSTALLED_APPS += [ 'data_aggregator.apps.DataAggregatorConfig', 'webpack_loader', ] if os.getenv('ENV') == 'localdev': DEBUG = True DATA_AGGREGATOR_ACCESS_GROUP = 'u_test_group' DATA_AGGREGATOR_THREADING_ENABLED = False RESTCLIENTS_DAO_CACHE_CLASS = None...
from .base_settings import * import os INSTALLED_APPS += [ 'data_aggregator.apps.DataAggregatorConfig', 'webpack_loader', ] if os.getenv('ENV') == 'localdev': DEBUG = True DATA_AGGREGATOR_ACCESS_GROUP = 'u_test_group' DATA_AGGREGATOR_THREADING_ENABLED = False RESTCLIENTS_DAO_CACHE_CLASS = None...
<commit_before>from .base_settings import * import os INSTALLED_APPS += [ 'data_aggregator.apps.DataAggregatorConfig', 'webpack_loader', ] if os.getenv('ENV') == 'localdev': DEBUG = True DATA_AGGREGATOR_ACCESS_GROUP = 'u_test_group' DATA_AGGREGATOR_THREADING_ENABLED = False RESTCLIENTS_DAO_CAC...
fbe05b7e2fe97724cb126f0a5b5dd656591d41d7
apps/polls/tests.py
apps/polls/tests.py
""" This file demonstrates writing tests using the unittest module. These will pass when you run "manage.py test". Replace this with more appropriate tests for your application. """ from django.test import TestCase class SimpleTest(TestCase): def test_basic_addition(self): """ Tests that 1 + 1 a...
import datetime from django.utils import timezone from django.test import TestCase from apps.polls.models import Poll class PollMethodTests(TestCase): def test_was_published_recently_with_future_poll(self): """ was_published_recently_with_future_poll() should return False for for polls whose ...
Create a test to expose the bug
Create a test to expose the bug
Python
bsd-3-clause
datphan/teracy-tutorial,teracyhq/django-tutorial
""" This file demonstrates writing tests using the unittest module. These will pass when you run "manage.py test". Replace this with more appropriate tests for your application. """ from django.test import TestCase class SimpleTest(TestCase): def test_basic_addition(self): """ Tests that 1 + 1 a...
import datetime from django.utils import timezone from django.test import TestCase from apps.polls.models import Poll class PollMethodTests(TestCase): def test_was_published_recently_with_future_poll(self): """ was_published_recently_with_future_poll() should return False for for polls whose ...
<commit_before>""" This file demonstrates writing tests using the unittest module. These will pass when you run "manage.py test". Replace this with more appropriate tests for your application. """ from django.test import TestCase class SimpleTest(TestCase): def test_basic_addition(self): """ Tes...
import datetime from django.utils import timezone from django.test import TestCase from apps.polls.models import Poll class PollMethodTests(TestCase): def test_was_published_recently_with_future_poll(self): """ was_published_recently_with_future_poll() should return False for for polls whose ...
""" This file demonstrates writing tests using the unittest module. These will pass when you run "manage.py test". Replace this with more appropriate tests for your application. """ from django.test import TestCase class SimpleTest(TestCase): def test_basic_addition(self): """ Tests that 1 + 1 a...
<commit_before>""" This file demonstrates writing tests using the unittest module. These will pass when you run "manage.py test". Replace this with more appropriate tests for your application. """ from django.test import TestCase class SimpleTest(TestCase): def test_basic_addition(self): """ Tes...
b9a54ba81dbd7b0235ad774602a7098d590eb92c
tests/test_gui_widgets.py
tests/test_gui_widgets.py
from polyglotdb.gui.widgets.basic import DirectoryWidget def test_directory_widget(qtbot): widget = DirectoryWidget() qtbot.addWidget(widget) widget.setPath('test') assert(widget.value() == 'test')
#from polyglotdb.gui.widgets.basic import DirectoryWidget #def test_directory_widget(qtbot): # widget = DirectoryWidget() # qtbot.addWidget(widget) # widget.setPath('test') # assert(widget.value() == 'test')
Disable GUI testing for now
Disable GUI testing for now
Python
mit
PhonologicalCorpusTools/PolyglotDB,PhonologicalCorpusTools/PolyglotDB,samihuc/PolyglotDB,MontrealCorpusTools/PolyglotDB,PhonologicalCorpusTools/PyAnnotationGraph,samihuc/PolyglotDB,PhonologicalCorpusTools/PyAnnotationGraph,MontrealCorpusTools/PolyglotDB
from polyglotdb.gui.widgets.basic import DirectoryWidget def test_directory_widget(qtbot): widget = DirectoryWidget() qtbot.addWidget(widget) widget.setPath('test') assert(widget.value() == 'test') Disable GUI testing for now
#from polyglotdb.gui.widgets.basic import DirectoryWidget #def test_directory_widget(qtbot): # widget = DirectoryWidget() # qtbot.addWidget(widget) # widget.setPath('test') # assert(widget.value() == 'test')
<commit_before> from polyglotdb.gui.widgets.basic import DirectoryWidget def test_directory_widget(qtbot): widget = DirectoryWidget() qtbot.addWidget(widget) widget.setPath('test') assert(widget.value() == 'test') <commit_msg>Disable GUI testing for now<commit_after>
#from polyglotdb.gui.widgets.basic import DirectoryWidget #def test_directory_widget(qtbot): # widget = DirectoryWidget() # qtbot.addWidget(widget) # widget.setPath('test') # assert(widget.value() == 'test')
from polyglotdb.gui.widgets.basic import DirectoryWidget def test_directory_widget(qtbot): widget = DirectoryWidget() qtbot.addWidget(widget) widget.setPath('test') assert(widget.value() == 'test') Disable GUI testing for now #from polyglotdb.gui.widgets.basic import DirectoryWidget #def test_direc...
<commit_before> from polyglotdb.gui.widgets.basic import DirectoryWidget def test_directory_widget(qtbot): widget = DirectoryWidget() qtbot.addWidget(widget) widget.setPath('test') assert(widget.value() == 'test') <commit_msg>Disable GUI testing for now<commit_after> #from polyglotdb.gui.widgets.basi...
5b735dff075cb4fb2e9fd89dc4d872281210964d
config/regenerate_launch_files.py
config/regenerate_launch_files.py
#!/usr/bin/env python3 # (C) 2015 Jean Nassar # Released under BSD import glob import os import subprocess as sp import rospkg import tqdm def get_launch_dir(package: str) -> str: return os.path.join(rospkg.RosPack().get_path(package), "launch") def get_file_root(path: str) -> str: """ >>> get_file_ro...
#!/usr/bin/env python2 # (C) 2015 Jean Nassar # Released under BSD import glob import os import subprocess as sp import rospkg import tqdm def get_launch_dir(package): return os.path.join(rospkg.RosPack().get_path(package), "launch") def get_file_root(path): """ >>> get_file_root("/tmp/test.txt") ...
Make compatible with Python 2 and 3.
Make compatible with Python 2 and 3.
Python
mit
masasin/spirit,masasin/spirit
#!/usr/bin/env python3 # (C) 2015 Jean Nassar # Released under BSD import glob import os import subprocess as sp import rospkg import tqdm def get_launch_dir(package: str) -> str: return os.path.join(rospkg.RosPack().get_path(package), "launch") def get_file_root(path: str) -> str: """ >>> get_file_ro...
#!/usr/bin/env python2 # (C) 2015 Jean Nassar # Released under BSD import glob import os import subprocess as sp import rospkg import tqdm def get_launch_dir(package): return os.path.join(rospkg.RosPack().get_path(package), "launch") def get_file_root(path): """ >>> get_file_root("/tmp/test.txt") ...
<commit_before>#!/usr/bin/env python3 # (C) 2015 Jean Nassar # Released under BSD import glob import os import subprocess as sp import rospkg import tqdm def get_launch_dir(package: str) -> str: return os.path.join(rospkg.RosPack().get_path(package), "launch") def get_file_root(path: str) -> str: """ ...
#!/usr/bin/env python2 # (C) 2015 Jean Nassar # Released under BSD import glob import os import subprocess as sp import rospkg import tqdm def get_launch_dir(package): return os.path.join(rospkg.RosPack().get_path(package), "launch") def get_file_root(path): """ >>> get_file_root("/tmp/test.txt") ...
#!/usr/bin/env python3 # (C) 2015 Jean Nassar # Released under BSD import glob import os import subprocess as sp import rospkg import tqdm def get_launch_dir(package: str) -> str: return os.path.join(rospkg.RosPack().get_path(package), "launch") def get_file_root(path: str) -> str: """ >>> get_file_ro...
<commit_before>#!/usr/bin/env python3 # (C) 2015 Jean Nassar # Released under BSD import glob import os import subprocess as sp import rospkg import tqdm def get_launch_dir(package: str) -> str: return os.path.join(rospkg.RosPack().get_path(package), "launch") def get_file_root(path: str) -> str: """ ...
07b6484b33d687a7c32f91b5c2274d54c1e106ff
stormtracks/settings/default_stormtracks_settings.py
stormtracks/settings/default_stormtracks_settings.py
# *** DON'T MODIFY THIS FILE! *** # # Instead copy it to stormtracks_settings.py # # Default settings for project # This will get copied to $HOME/.stormtracks/ # on install. import os SETTINGS_DIR = os.path.abspath(os.path.dirname(__file__)) # expandvars expands e.g. $HOME DATA_DIR = os.path.expandvars('$HOME/stormtr...
# *** DON'T MODIFY THIS FILE! *** # # Instead copy it to stormtracks_settings.py # # Default settings for project # This will get copied to $HOME/.stormtracks/ # on install. import os SETTINGS_DIR = os.path.abspath(os.path.dirname(__file__)) # expandvars expands e.g. $HOME DATA_DIR = os.path.expandvars('$HOME/stormtr...
Change the location of stormtracks data.
Change the location of stormtracks data.
Python
mit
markmuetz/stormtracks,markmuetz/stormtracks
# *** DON'T MODIFY THIS FILE! *** # # Instead copy it to stormtracks_settings.py # # Default settings for project # This will get copied to $HOME/.stormtracks/ # on install. import os SETTINGS_DIR = os.path.abspath(os.path.dirname(__file__)) # expandvars expands e.g. $HOME DATA_DIR = os.path.expandvars('$HOME/stormtr...
# *** DON'T MODIFY THIS FILE! *** # # Instead copy it to stormtracks_settings.py # # Default settings for project # This will get copied to $HOME/.stormtracks/ # on install. import os SETTINGS_DIR = os.path.abspath(os.path.dirname(__file__)) # expandvars expands e.g. $HOME DATA_DIR = os.path.expandvars('$HOME/stormtr...
<commit_before># *** DON'T MODIFY THIS FILE! *** # # Instead copy it to stormtracks_settings.py # # Default settings for project # This will get copied to $HOME/.stormtracks/ # on install. import os SETTINGS_DIR = os.path.abspath(os.path.dirname(__file__)) # expandvars expands e.g. $HOME DATA_DIR = os.path.expandvars...
# *** DON'T MODIFY THIS FILE! *** # # Instead copy it to stormtracks_settings.py # # Default settings for project # This will get copied to $HOME/.stormtracks/ # on install. import os SETTINGS_DIR = os.path.abspath(os.path.dirname(__file__)) # expandvars expands e.g. $HOME DATA_DIR = os.path.expandvars('$HOME/stormtr...
# *** DON'T MODIFY THIS FILE! *** # # Instead copy it to stormtracks_settings.py # # Default settings for project # This will get copied to $HOME/.stormtracks/ # on install. import os SETTINGS_DIR = os.path.abspath(os.path.dirname(__file__)) # expandvars expands e.g. $HOME DATA_DIR = os.path.expandvars('$HOME/stormtr...
<commit_before># *** DON'T MODIFY THIS FILE! *** # # Instead copy it to stormtracks_settings.py # # Default settings for project # This will get copied to $HOME/.stormtracks/ # on install. import os SETTINGS_DIR = os.path.abspath(os.path.dirname(__file__)) # expandvars expands e.g. $HOME DATA_DIR = os.path.expandvars...
faf861e53c1d4f554da82cd66b6b8de4fa7a2ab7
src/main/python/infra_buddy/notifier/datadog.py
src/main/python/infra_buddy/notifier/datadog.py
from infra_buddy.context.deploy_ctx import DeployContext import datadog as dd class DataDogNotifier(object): def __init__(self, key, deploy_context): # type: (DeployContext) -> None super(DataDogNotifier, self).__init__() self.deploy_context = deploy_context dd.initialize(api_key=k...
import datadog as dd class DataDogNotifier(object): def __init__(self, key, deploy_context): # type: (DeployContext) -> None super(DataDogNotifier, self).__init__() self.deploy_context = deploy_context dd.initialize(api_key=key) def notify_event(self, title, type, message): ...
Remove import for type annotation
Remove import for type annotation
Python
apache-2.0
AlienVault-Engineering/infra-buddy
from infra_buddy.context.deploy_ctx import DeployContext import datadog as dd class DataDogNotifier(object): def __init__(self, key, deploy_context): # type: (DeployContext) -> None super(DataDogNotifier, self).__init__() self.deploy_context = deploy_context dd.initialize(api_key=k...
import datadog as dd class DataDogNotifier(object): def __init__(self, key, deploy_context): # type: (DeployContext) -> None super(DataDogNotifier, self).__init__() self.deploy_context = deploy_context dd.initialize(api_key=key) def notify_event(self, title, type, message): ...
<commit_before>from infra_buddy.context.deploy_ctx import DeployContext import datadog as dd class DataDogNotifier(object): def __init__(self, key, deploy_context): # type: (DeployContext) -> None super(DataDogNotifier, self).__init__() self.deploy_context = deploy_context dd.initi...
import datadog as dd class DataDogNotifier(object): def __init__(self, key, deploy_context): # type: (DeployContext) -> None super(DataDogNotifier, self).__init__() self.deploy_context = deploy_context dd.initialize(api_key=key) def notify_event(self, title, type, message): ...
from infra_buddy.context.deploy_ctx import DeployContext import datadog as dd class DataDogNotifier(object): def __init__(self, key, deploy_context): # type: (DeployContext) -> None super(DataDogNotifier, self).__init__() self.deploy_context = deploy_context dd.initialize(api_key=k...
<commit_before>from infra_buddy.context.deploy_ctx import DeployContext import datadog as dd class DataDogNotifier(object): def __init__(self, key, deploy_context): # type: (DeployContext) -> None super(DataDogNotifier, self).__init__() self.deploy_context = deploy_context dd.initi...
34e0934d2f62a98728601a18126fa21eb50cf5a5
doubles/testing.py
doubles/testing.py
class User(object): """An importable dummy class used for testing purposes.""" class_attribute = 'foo' @staticmethod def static_method(): pass @classmethod def class_method(cls): return 'class method' def __init__(self, name, age): self.name = name self.ag...
class User(object): """An importable dummy class used for testing purposes.""" class_attribute = 'foo' @staticmethod def static_method(): return 'static_method return value' @classmethod def class_method(cls): return 'class_method return value' def __init__(self, name, ag...
Return easily identifiable values from User methods.
Return easily identifiable values from User methods.
Python
mit
uber/doubles
class User(object): """An importable dummy class used for testing purposes.""" class_attribute = 'foo' @staticmethod def static_method(): pass @classmethod def class_method(cls): return 'class method' def __init__(self, name, age): self.name = name self.ag...
class User(object): """An importable dummy class used for testing purposes.""" class_attribute = 'foo' @staticmethod def static_method(): return 'static_method return value' @classmethod def class_method(cls): return 'class_method return value' def __init__(self, name, ag...
<commit_before>class User(object): """An importable dummy class used for testing purposes.""" class_attribute = 'foo' @staticmethod def static_method(): pass @classmethod def class_method(cls): return 'class method' def __init__(self, name, age): self.name = name ...
class User(object): """An importable dummy class used for testing purposes.""" class_attribute = 'foo' @staticmethod def static_method(): return 'static_method return value' @classmethod def class_method(cls): return 'class_method return value' def __init__(self, name, ag...
class User(object): """An importable dummy class used for testing purposes.""" class_attribute = 'foo' @staticmethod def static_method(): pass @classmethod def class_method(cls): return 'class method' def __init__(self, name, age): self.name = name self.ag...
<commit_before>class User(object): """An importable dummy class used for testing purposes.""" class_attribute = 'foo' @staticmethod def static_method(): pass @classmethod def class_method(cls): return 'class method' def __init__(self, name, age): self.name = name ...
a5b70775d106d07acfb54ce0b3998a03ed195de7
test/uritemplate_test.py
test/uritemplate_test.py
import uritemplate import simplejson import sys filename = sys.argv[1] print "Running", filename f = file(filename) testdata = simplejson.load(f) try: desired_level = int(sys.argv[2]) except IndexError: desired_level = 4 for name, testsuite in testdata.iteritems(): vars = testsuite['variables'] testcases = t...
import uritemplate import simplejson import sys filename = sys.argv[1] print "Running", filename f = file(filename) testdata = simplejson.load(f) try: desired_level = int(sys.argv[2]) except IndexError: desired_level = 4 for name, testsuite in testdata.iteritems(): vars = testsuite['variables'] testcases = t...
Handle lists of possibilities in tests
Handle lists of possibilities in tests
Python
apache-2.0
uri-templates/uritemplate-py
import uritemplate import simplejson import sys filename = sys.argv[1] print "Running", filename f = file(filename) testdata = simplejson.load(f) try: desired_level = int(sys.argv[2]) except IndexError: desired_level = 4 for name, testsuite in testdata.iteritems(): vars = testsuite['variables'] testcases = t...
import uritemplate import simplejson import sys filename = sys.argv[1] print "Running", filename f = file(filename) testdata = simplejson.load(f) try: desired_level = int(sys.argv[2]) except IndexError: desired_level = 4 for name, testsuite in testdata.iteritems(): vars = testsuite['variables'] testcases = t...
<commit_before>import uritemplate import simplejson import sys filename = sys.argv[1] print "Running", filename f = file(filename) testdata = simplejson.load(f) try: desired_level = int(sys.argv[2]) except IndexError: desired_level = 4 for name, testsuite in testdata.iteritems(): vars = testsuite['variables'] ...
import uritemplate import simplejson import sys filename = sys.argv[1] print "Running", filename f = file(filename) testdata = simplejson.load(f) try: desired_level = int(sys.argv[2]) except IndexError: desired_level = 4 for name, testsuite in testdata.iteritems(): vars = testsuite['variables'] testcases = t...
import uritemplate import simplejson import sys filename = sys.argv[1] print "Running", filename f = file(filename) testdata = simplejson.load(f) try: desired_level = int(sys.argv[2]) except IndexError: desired_level = 4 for name, testsuite in testdata.iteritems(): vars = testsuite['variables'] testcases = t...
<commit_before>import uritemplate import simplejson import sys filename = sys.argv[1] print "Running", filename f = file(filename) testdata = simplejson.load(f) try: desired_level = int(sys.argv[2]) except IndexError: desired_level = 4 for name, testsuite in testdata.iteritems(): vars = testsuite['variables'] ...
48362fa70ab20f66f4f398c68ab252dfd36c6117
crust/fields.py
crust/fields.py
class Field(object): """ Base class for all field types """ # This tracks each time a Field instance is created. Used to retain order. creation_counter = 0 def __init__(self, name=None, primary_key=False, serialize=True, *args, **kwargs): super(Field, self).__init__(*args, **kwargs) ...
class Field(object): """ Base class for all field types """ # This tracks each time a Field instance is created. Used to retain order. creation_counter = 0 def __init__(self, name=None, primary_key=False, serialize=True, *args, **kwargs): super(Field, self).__init__(*args, **kwargs) ...
Make provisions for dehydrating a field
Make provisions for dehydrating a field
Python
bsd-2-clause
dstufft/crust
class Field(object): """ Base class for all field types """ # This tracks each time a Field instance is created. Used to retain order. creation_counter = 0 def __init__(self, name=None, primary_key=False, serialize=True, *args, **kwargs): super(Field, self).__init__(*args, **kwargs) ...
class Field(object): """ Base class for all field types """ # This tracks each time a Field instance is created. Used to retain order. creation_counter = 0 def __init__(self, name=None, primary_key=False, serialize=True, *args, **kwargs): super(Field, self).__init__(*args, **kwargs) ...
<commit_before>class Field(object): """ Base class for all field types """ # This tracks each time a Field instance is created. Used to retain order. creation_counter = 0 def __init__(self, name=None, primary_key=False, serialize=True, *args, **kwargs): super(Field, self).__init__(*arg...
class Field(object): """ Base class for all field types """ # This tracks each time a Field instance is created. Used to retain order. creation_counter = 0 def __init__(self, name=None, primary_key=False, serialize=True, *args, **kwargs): super(Field, self).__init__(*args, **kwargs) ...
class Field(object): """ Base class for all field types """ # This tracks each time a Field instance is created. Used to retain order. creation_counter = 0 def __init__(self, name=None, primary_key=False, serialize=True, *args, **kwargs): super(Field, self).__init__(*args, **kwargs) ...
<commit_before>class Field(object): """ Base class for all field types """ # This tracks each time a Field instance is created. Used to retain order. creation_counter = 0 def __init__(self, name=None, primary_key=False, serialize=True, *args, **kwargs): super(Field, self).__init__(*arg...
24538a6e91983974c729a559ab24ee90ad529d7e
engines/string_template_engine.py
engines/string_template_engine.py
#!/usr/bin/env python3 """Provide the standard Python string.Template engine.""" from __future__ import print_function from string import Template from . import Engine class StringTemplate(Engine): """String.Template engine.""" handle = 'string.Template' def __init__(self, template, **kwargs): ...
#!/usr/bin/env python3 """Provide the standard Python string.Template engine.""" from __future__ import print_function from string import Template from . import Engine class StringTemplate(Engine): """String.Template engine.""" handle = 'string.Template' def __init__(self, template, tolerant=False,...
Implement tolerant handling in string.Template engine.
Implement tolerant handling in string.Template engine.
Python
mit
blubberdiblub/eztemplate
#!/usr/bin/env python3 """Provide the standard Python string.Template engine.""" from __future__ import print_function from string import Template from . import Engine class StringTemplate(Engine): """String.Template engine.""" handle = 'string.Template' def __init__(self, template, **kwargs): ...
#!/usr/bin/env python3 """Provide the standard Python string.Template engine.""" from __future__ import print_function from string import Template from . import Engine class StringTemplate(Engine): """String.Template engine.""" handle = 'string.Template' def __init__(self, template, tolerant=False,...
<commit_before>#!/usr/bin/env python3 """Provide the standard Python string.Template engine.""" from __future__ import print_function from string import Template from . import Engine class StringTemplate(Engine): """String.Template engine.""" handle = 'string.Template' def __init__(self, template, ...
#!/usr/bin/env python3 """Provide the standard Python string.Template engine.""" from __future__ import print_function from string import Template from . import Engine class StringTemplate(Engine): """String.Template engine.""" handle = 'string.Template' def __init__(self, template, tolerant=False,...
#!/usr/bin/env python3 """Provide the standard Python string.Template engine.""" from __future__ import print_function from string import Template from . import Engine class StringTemplate(Engine): """String.Template engine.""" handle = 'string.Template' def __init__(self, template, **kwargs): ...
<commit_before>#!/usr/bin/env python3 """Provide the standard Python string.Template engine.""" from __future__ import print_function from string import Template from . import Engine class StringTemplate(Engine): """String.Template engine.""" handle = 'string.Template' def __init__(self, template, ...
73d2c1e1675ed9e7fe2bc389ec0079c5c6ce73ee
numpy/_array_api/_constants.py
numpy/_array_api/_constants.py
from .. import e, inf, nan, pi
from ._array_object import ndarray from ._dtypes import float64 import numpy as np e = ndarray._new(np.array(np.e, dtype=float64)) inf = ndarray._new(np.array(np.inf, dtype=float64)) nan = ndarray._new(np.array(np.nan, dtype=float64)) pi = ndarray._new(np.array(np.pi, dtype=float64))
Make the array API constants into dimension 0 arrays
Make the array API constants into dimension 0 arrays The spec does not actually specify whether these should be dimension 0 arrays or Python floats (which they are in NumPy). However, making them dimension 0 arrays is cleaner, and ensures they also have all the methods and attributes that are implemented on the ndarra...
Python
bsd-3-clause
jakirkham/numpy,simongibbons/numpy,seberg/numpy,mattip/numpy,mhvk/numpy,mattip/numpy,anntzer/numpy,endolith/numpy,jakirkham/numpy,charris/numpy,seberg/numpy,mattip/numpy,anntzer/numpy,simongibbons/numpy,numpy/numpy,simongibbons/numpy,mhvk/numpy,simongibbons/numpy,charris/numpy,rgommers/numpy,jakirkham/numpy,rgommers/nu...
from .. import e, inf, nan, pi Make the array API constants into dimension 0 arrays The spec does not actually specify whether these should be dimension 0 arrays or Python floats (which they are in NumPy). However, making them dimension 0 arrays is cleaner, and ensures they also have all the methods and attributes tha...
from ._array_object import ndarray from ._dtypes import float64 import numpy as np e = ndarray._new(np.array(np.e, dtype=float64)) inf = ndarray._new(np.array(np.inf, dtype=float64)) nan = ndarray._new(np.array(np.nan, dtype=float64)) pi = ndarray._new(np.array(np.pi, dtype=float64))
<commit_before>from .. import e, inf, nan, pi <commit_msg>Make the array API constants into dimension 0 arrays The spec does not actually specify whether these should be dimension 0 arrays or Python floats (which they are in NumPy). However, making them dimension 0 arrays is cleaner, and ensures they also have all the...
from ._array_object import ndarray from ._dtypes import float64 import numpy as np e = ndarray._new(np.array(np.e, dtype=float64)) inf = ndarray._new(np.array(np.inf, dtype=float64)) nan = ndarray._new(np.array(np.nan, dtype=float64)) pi = ndarray._new(np.array(np.pi, dtype=float64))
from .. import e, inf, nan, pi Make the array API constants into dimension 0 arrays The spec does not actually specify whether these should be dimension 0 arrays or Python floats (which they are in NumPy). However, making them dimension 0 arrays is cleaner, and ensures they also have all the methods and attributes tha...
<commit_before>from .. import e, inf, nan, pi <commit_msg>Make the array API constants into dimension 0 arrays The spec does not actually specify whether these should be dimension 0 arrays or Python floats (which they are in NumPy). However, making them dimension 0 arrays is cleaner, and ensures they also have all the...
b2e2ff0c6a31472e16706cb72765a0ca939e1414
web.py
web.py
import csv import sqlite3 from flask import Flask, request, render_template, g, jsonify app = Flask(__name__) db_filename = 'db.sqlite' def connect_db(): conn = sqlite3.connect(db_filename) curs = conn.execute('PRAGMA foreign_keys = ON') return conn @app.before_request def before_request(): g.db ...
import csv import sqlite3 from flask import Flask, request, render_template, g, jsonify app = Flask(__name__) db_filename = 'db.sqlite' def connect_db(): conn = sqlite3.connect(db_filename) curs = conn.execute('PRAGMA foreign_keys = ON') return conn @app.before_request def before_request(): g.db ...
Package count chart: fixed labels of x axis
Package count chart: fixed labels of x axis
Python
mit
Koblaid/distrostats,Koblaid/distrostats
import csv import sqlite3 from flask import Flask, request, render_template, g, jsonify app = Flask(__name__) db_filename = 'db.sqlite' def connect_db(): conn = sqlite3.connect(db_filename) curs = conn.execute('PRAGMA foreign_keys = ON') return conn @app.before_request def before_request(): g.db ...
import csv import sqlite3 from flask import Flask, request, render_template, g, jsonify app = Flask(__name__) db_filename = 'db.sqlite' def connect_db(): conn = sqlite3.connect(db_filename) curs = conn.execute('PRAGMA foreign_keys = ON') return conn @app.before_request def before_request(): g.db ...
<commit_before>import csv import sqlite3 from flask import Flask, request, render_template, g, jsonify app = Flask(__name__) db_filename = 'db.sqlite' def connect_db(): conn = sqlite3.connect(db_filename) curs = conn.execute('PRAGMA foreign_keys = ON') return conn @app.before_request def before_reque...
import csv import sqlite3 from flask import Flask, request, render_template, g, jsonify app = Flask(__name__) db_filename = 'db.sqlite' def connect_db(): conn = sqlite3.connect(db_filename) curs = conn.execute('PRAGMA foreign_keys = ON') return conn @app.before_request def before_request(): g.db ...
import csv import sqlite3 from flask import Flask, request, render_template, g, jsonify app = Flask(__name__) db_filename = 'db.sqlite' def connect_db(): conn = sqlite3.connect(db_filename) curs = conn.execute('PRAGMA foreign_keys = ON') return conn @app.before_request def before_request(): g.db ...
<commit_before>import csv import sqlite3 from flask import Flask, request, render_template, g, jsonify app = Flask(__name__) db_filename = 'db.sqlite' def connect_db(): conn = sqlite3.connect(db_filename) curs = conn.execute('PRAGMA foreign_keys = ON') return conn @app.before_request def before_reque...
0933e4c671ca1297378b2ad388933e11265321d0
traptor/dd_monitoring.py
traptor/dd_monitoring.py
############################################################################### # This is a very strange handler setup, but this is how it's documented. # See https://github.com/DataDog/datadogpy#quick-start-guide ############################################################################### import os from datadog imp...
############################################################################### # This is a very strange handler setup, but this is how it's documented. # See https://github.com/DataDog/datadogpy#quick-start-guide ############################################################################### import os from datadog imp...
Use getenv instead of environment dict
Use getenv instead of environment dict
Python
mit
istresearch/traptor,istresearch/traptor
############################################################################### # This is a very strange handler setup, but this is how it's documented. # See https://github.com/DataDog/datadogpy#quick-start-guide ############################################################################### import os from datadog imp...
############################################################################### # This is a very strange handler setup, but this is how it's documented. # See https://github.com/DataDog/datadogpy#quick-start-guide ############################################################################### import os from datadog imp...
<commit_before>############################################################################### # This is a very strange handler setup, but this is how it's documented. # See https://github.com/DataDog/datadogpy#quick-start-guide ############################################################################### import os f...
############################################################################### # This is a very strange handler setup, but this is how it's documented. # See https://github.com/DataDog/datadogpy#quick-start-guide ############################################################################### import os from datadog imp...
############################################################################### # This is a very strange handler setup, but this is how it's documented. # See https://github.com/DataDog/datadogpy#quick-start-guide ############################################################################### import os from datadog imp...
<commit_before>############################################################################### # This is a very strange handler setup, but this is how it's documented. # See https://github.com/DataDog/datadogpy#quick-start-guide ############################################################################### import os f...
264075d9b313f5c2677e32fcf5d340bba73f0b0e
corehq/apps/app_manager/migrations/0019_exchangeapplication_required_privileges.py
corehq/apps/app_manager/migrations/0019_exchangeapplication_required_privileges.py
# Generated by Django 2.2.24 on 2021-09-13 21:04 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('app_manager', '0018_migrate_case_search_labels'), ] operations = [ migrations.AddField( model_name='exchangeapplication', ...
# Generated by Django 2.2.24 on 2021-09-14 17:54 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('app_manager', '0018_migrate_case_search_labels'), ] operations = [ migrations.AddField( model_name='exchangeapplication', ...
Fix migration with help text
Fix migration with help text
Python
bsd-3-clause
dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq
# Generated by Django 2.2.24 on 2021-09-13 21:04 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('app_manager', '0018_migrate_case_search_labels'), ] operations = [ migrations.AddField( model_name='exchangeapplication', ...
# Generated by Django 2.2.24 on 2021-09-14 17:54 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('app_manager', '0018_migrate_case_search_labels'), ] operations = [ migrations.AddField( model_name='exchangeapplication', ...
<commit_before># Generated by Django 2.2.24 on 2021-09-13 21:04 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('app_manager', '0018_migrate_case_search_labels'), ] operations = [ migrations.AddField( model_name='exchangeappl...
# Generated by Django 2.2.24 on 2021-09-14 17:54 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('app_manager', '0018_migrate_case_search_labels'), ] operations = [ migrations.AddField( model_name='exchangeapplication', ...
# Generated by Django 2.2.24 on 2021-09-13 21:04 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('app_manager', '0018_migrate_case_search_labels'), ] operations = [ migrations.AddField( model_name='exchangeapplication', ...
<commit_before># Generated by Django 2.2.24 on 2021-09-13 21:04 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('app_manager', '0018_migrate_case_search_labels'), ] operations = [ migrations.AddField( model_name='exchangeappl...
a1e7cade8fb5e4a301244a8a0cef382b49399d46
us_ignite/awards/admin.py
us_ignite/awards/admin.py
from django.contrib import admin from us_ignite.awards.models import Award class AwardAdmin(admin.ModelAdmin): list_display = ('name', 'slug') admin.site.register(Award, AwardAdmin)
from django.contrib import admin from us_ignite.awards.models import Award, ApplicationAward class AwardAdmin(admin.ModelAdmin): list_display = ('name', 'slug') class ApplicationAwardAdmin(admin.ModelAdmin): list_display = ('award', 'application', 'created') date_hierarchy = 'created' list_filter = ...
Add mechanics to award applications.
Add mechanics to award applications. https://github.com/madewithbytes/us_ignite/issues/77 The awards can be given in the admin section.
Python
bsd-3-clause
us-ignite/us_ignite,us-ignite/us_ignite,us-ignite/us_ignite,us-ignite/us_ignite,us-ignite/us_ignite
from django.contrib import admin from us_ignite.awards.models import Award class AwardAdmin(admin.ModelAdmin): list_display = ('name', 'slug') admin.site.register(Award, AwardAdmin) Add mechanics to award applications. https://github.com/madewithbytes/us_ignite/issues/77 The awards can be given in the admin se...
from django.contrib import admin from us_ignite.awards.models import Award, ApplicationAward class AwardAdmin(admin.ModelAdmin): list_display = ('name', 'slug') class ApplicationAwardAdmin(admin.ModelAdmin): list_display = ('award', 'application', 'created') date_hierarchy = 'created' list_filter = ...
<commit_before>from django.contrib import admin from us_ignite.awards.models import Award class AwardAdmin(admin.ModelAdmin): list_display = ('name', 'slug') admin.site.register(Award, AwardAdmin) <commit_msg>Add mechanics to award applications. https://github.com/madewithbytes/us_ignite/issues/77 The awards c...
from django.contrib import admin from us_ignite.awards.models import Award, ApplicationAward class AwardAdmin(admin.ModelAdmin): list_display = ('name', 'slug') class ApplicationAwardAdmin(admin.ModelAdmin): list_display = ('award', 'application', 'created') date_hierarchy = 'created' list_filter = ...
from django.contrib import admin from us_ignite.awards.models import Award class AwardAdmin(admin.ModelAdmin): list_display = ('name', 'slug') admin.site.register(Award, AwardAdmin) Add mechanics to award applications. https://github.com/madewithbytes/us_ignite/issues/77 The awards can be given in the admin se...
<commit_before>from django.contrib import admin from us_ignite.awards.models import Award class AwardAdmin(admin.ModelAdmin): list_display = ('name', 'slug') admin.site.register(Award, AwardAdmin) <commit_msg>Add mechanics to award applications. https://github.com/madewithbytes/us_ignite/issues/77 The awards c...
e2b382a69473dcfa6d93442f3ad3bc21ee6c90a0
examples/tic_ql_tabular_selfplay_all.py
examples/tic_ql_tabular_selfplay_all.py
''' In this example the Q-learning algorithm is used via self-play to learn the state-action values for all Tic-Tac-Toe positions. ''' from capstone.game.games import TicTacToe from capstone.game.utils import tic2pdf from capstone.rl import Environment, GameMDP from capstone.rl.learners import QLearningSelfPlay from ca...
''' The Q-learning algorithm is used to learn the state-action values for all Tic-Tac-Toe positions by playing games against itself (self-play). ''' from capstone.game.games import TicTacToe from capstone.game.players import GreedyQF, RandPlayer from capstone.game.utils import play_series, tic2pdf from capstone.rl impo...
Fix Tic-Tac-Toe Q-learning tabular self-play example
Fix Tic-Tac-Toe Q-learning tabular self-play example
Python
mit
davidrobles/mlnd-capstone-code
''' In this example the Q-learning algorithm is used via self-play to learn the state-action values for all Tic-Tac-Toe positions. ''' from capstone.game.games import TicTacToe from capstone.game.utils import tic2pdf from capstone.rl import Environment, GameMDP from capstone.rl.learners import QLearningSelfPlay from ca...
''' The Q-learning algorithm is used to learn the state-action values for all Tic-Tac-Toe positions by playing games against itself (self-play). ''' from capstone.game.games import TicTacToe from capstone.game.players import GreedyQF, RandPlayer from capstone.game.utils import play_series, tic2pdf from capstone.rl impo...
<commit_before>''' In this example the Q-learning algorithm is used via self-play to learn the state-action values for all Tic-Tac-Toe positions. ''' from capstone.game.games import TicTacToe from capstone.game.utils import tic2pdf from capstone.rl import Environment, GameMDP from capstone.rl.learners import QLearningS...
''' The Q-learning algorithm is used to learn the state-action values for all Tic-Tac-Toe positions by playing games against itself (self-play). ''' from capstone.game.games import TicTacToe from capstone.game.players import GreedyQF, RandPlayer from capstone.game.utils import play_series, tic2pdf from capstone.rl impo...
''' In this example the Q-learning algorithm is used via self-play to learn the state-action values for all Tic-Tac-Toe positions. ''' from capstone.game.games import TicTacToe from capstone.game.utils import tic2pdf from capstone.rl import Environment, GameMDP from capstone.rl.learners import QLearningSelfPlay from ca...
<commit_before>''' In this example the Q-learning algorithm is used via self-play to learn the state-action values for all Tic-Tac-Toe positions. ''' from capstone.game.games import TicTacToe from capstone.game.utils import tic2pdf from capstone.rl import Environment, GameMDP from capstone.rl.learners import QLearningS...
b09c7d7c8a0949e6c0a370e7608e51b1060b1ee8
meinberlin/apps/mapideas/forms.py
meinberlin/apps/mapideas/forms.py
from django import forms from django.utils.translation import ugettext_lazy as _ from adhocracy4.categories.forms import CategorizableFieldMixin from adhocracy4.maps import widgets as maps_widgets from . import models class MapIdeaForm(CategorizableFieldMixin, forms.ModelForm): def __init__(self, *args, **kwar...
from django import forms from django.utils.translation import ugettext_lazy as _ from adhocracy4.categories.forms import CategorizableFieldMixin from adhocracy4.maps import widgets as maps_widgets from . import models class MapIdeaForm(CategorizableFieldMixin, forms.ModelForm): class Media: js = ('js/se...
Initialize select dropdown for categories with maps
Initialize select dropdown for categories with maps
Python
agpl-3.0
liqd/a4-meinberlin,liqd/a4-meinberlin,liqd/a4-meinberlin,liqd/a4-meinberlin
from django import forms from django.utils.translation import ugettext_lazy as _ from adhocracy4.categories.forms import CategorizableFieldMixin from adhocracy4.maps import widgets as maps_widgets from . import models class MapIdeaForm(CategorizableFieldMixin, forms.ModelForm): def __init__(self, *args, **kwar...
from django import forms from django.utils.translation import ugettext_lazy as _ from adhocracy4.categories.forms import CategorizableFieldMixin from adhocracy4.maps import widgets as maps_widgets from . import models class MapIdeaForm(CategorizableFieldMixin, forms.ModelForm): class Media: js = ('js/se...
<commit_before>from django import forms from django.utils.translation import ugettext_lazy as _ from adhocracy4.categories.forms import CategorizableFieldMixin from adhocracy4.maps import widgets as maps_widgets from . import models class MapIdeaForm(CategorizableFieldMixin, forms.ModelForm): def __init__(self...
from django import forms from django.utils.translation import ugettext_lazy as _ from adhocracy4.categories.forms import CategorizableFieldMixin from adhocracy4.maps import widgets as maps_widgets from . import models class MapIdeaForm(CategorizableFieldMixin, forms.ModelForm): class Media: js = ('js/se...
from django import forms from django.utils.translation import ugettext_lazy as _ from adhocracy4.categories.forms import CategorizableFieldMixin from adhocracy4.maps import widgets as maps_widgets from . import models class MapIdeaForm(CategorizableFieldMixin, forms.ModelForm): def __init__(self, *args, **kwar...
<commit_before>from django import forms from django.utils.translation import ugettext_lazy as _ from adhocracy4.categories.forms import CategorizableFieldMixin from adhocracy4.maps import widgets as maps_widgets from . import models class MapIdeaForm(CategorizableFieldMixin, forms.ModelForm): def __init__(self...
b5e13cb92f539545873d59553c03e1523eac1dbb
recipes/kaleido-core/run_test.py
recipes/kaleido-core/run_test.py
from subprocess import Popen, PIPE import json import platform # Remove "sys.exit" after feedstock creation when running # on linux-anvil-cos7-x86_64 image if platform.system() == "Linux": import sys sys.exit(0) if platform.system() == "Windows": ext = ".cmd" else: ext = "" p = Popen( ['kaleido' ...
from subprocess import Popen, PIPE import json import platform # Remove "sys.exit" after feedstock creation when running # on linux-anvil-cos7-x86_64 image if platform.system() == "Linux": import sys sys.exit(0) if platform.system() == "Windows": ext = ".cmd" else: ext = "" p = Popen( ['kaleido' ...
Fix hanging test on MacOS
Fix hanging test on MacOS
Python
bsd-3-clause
kwilcox/staged-recipes,ocefpaf/staged-recipes,stuertz/staged-recipes,johanneskoester/staged-recipes,jochym/staged-recipes,SylvainCorlay/staged-recipes,goanpeca/staged-recipes,igortg/staged-recipes,mariusvniekerk/staged-recipes,conda-forge/staged-recipes,patricksnape/staged-recipes,goanpeca/staged-recipes,johanneskoeste...
from subprocess import Popen, PIPE import json import platform # Remove "sys.exit" after feedstock creation when running # on linux-anvil-cos7-x86_64 image if platform.system() == "Linux": import sys sys.exit(0) if platform.system() == "Windows": ext = ".cmd" else: ext = "" p = Popen( ['kaleido' ...
from subprocess import Popen, PIPE import json import platform # Remove "sys.exit" after feedstock creation when running # on linux-anvil-cos7-x86_64 image if platform.system() == "Linux": import sys sys.exit(0) if platform.system() == "Windows": ext = ".cmd" else: ext = "" p = Popen( ['kaleido' ...
<commit_before>from subprocess import Popen, PIPE import json import platform # Remove "sys.exit" after feedstock creation when running # on linux-anvil-cos7-x86_64 image if platform.system() == "Linux": import sys sys.exit(0) if platform.system() == "Windows": ext = ".cmd" else: ext = "" p = Popen( ...
from subprocess import Popen, PIPE import json import platform # Remove "sys.exit" after feedstock creation when running # on linux-anvil-cos7-x86_64 image if platform.system() == "Linux": import sys sys.exit(0) if platform.system() == "Windows": ext = ".cmd" else: ext = "" p = Popen( ['kaleido' ...
from subprocess import Popen, PIPE import json import platform # Remove "sys.exit" after feedstock creation when running # on linux-anvil-cos7-x86_64 image if platform.system() == "Linux": import sys sys.exit(0) if platform.system() == "Windows": ext = ".cmd" else: ext = "" p = Popen( ['kaleido' ...
<commit_before>from subprocess import Popen, PIPE import json import platform # Remove "sys.exit" after feedstock creation when running # on linux-anvil-cos7-x86_64 image if platform.system() == "Linux": import sys sys.exit(0) if platform.system() == "Windows": ext = ".cmd" else: ext = "" p = Popen( ...
c3de0c71a8392a884f8fd08dbee8f337ba7833c7
src/ggrc/migrations/versions/20130724021606_2bf7c04016c9_person_email_must_be.py
src/ggrc/migrations/versions/20130724021606_2bf7c04016c9_person_email_must_be.py
"""Person.email must be unique Revision ID: 2bf7c04016c9 Revises: 2b709b655bf Create Date: 2013-07-24 02:16:06.282258 """ # revision identifiers, used by Alembic. revision = '2bf7c04016c9' down_revision = '2b709b655bf' from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import mysql def upgrade...
"""Person.email must be unique Revision ID: 2bf7c04016c9 Revises: d3af6d071ef Create Date: 2013-07-24 02:16:06.282258 """ # revision identifiers, used by Alembic. revision = '2bf7c04016c9' down_revision = 'd3af6d071ef' from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import mysql def upgrade...
Update 'down' version in migration due to merge
Update 'down' version in migration due to merge
Python
apache-2.0
AleksNeStu/ggrc-core,edofic/ggrc-core,plamut/ggrc-core,uskudnik/ggrc-core,josthkko/ggrc-core,edofic/ggrc-core,j0gurt/ggrc-core,uskudnik/ggrc-core,andrei-karalionak/ggrc-core,plamut/ggrc-core,kr41/ggrc-core,vladan-m/ggrc-core,prasannav7/ggrc-core,AleksNeStu/ggrc-core,hyperNURb/ggrc-core,uskudnik/ggrc-core,hasanalom/ggrc...
"""Person.email must be unique Revision ID: 2bf7c04016c9 Revises: 2b709b655bf Create Date: 2013-07-24 02:16:06.282258 """ # revision identifiers, used by Alembic. revision = '2bf7c04016c9' down_revision = '2b709b655bf' from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import mysql def upgrade...
"""Person.email must be unique Revision ID: 2bf7c04016c9 Revises: d3af6d071ef Create Date: 2013-07-24 02:16:06.282258 """ # revision identifiers, used by Alembic. revision = '2bf7c04016c9' down_revision = 'd3af6d071ef' from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import mysql def upgrade...
<commit_before>"""Person.email must be unique Revision ID: 2bf7c04016c9 Revises: 2b709b655bf Create Date: 2013-07-24 02:16:06.282258 """ # revision identifiers, used by Alembic. revision = '2bf7c04016c9' down_revision = '2b709b655bf' from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import mys...
"""Person.email must be unique Revision ID: 2bf7c04016c9 Revises: d3af6d071ef Create Date: 2013-07-24 02:16:06.282258 """ # revision identifiers, used by Alembic. revision = '2bf7c04016c9' down_revision = 'd3af6d071ef' from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import mysql def upgrade...
"""Person.email must be unique Revision ID: 2bf7c04016c9 Revises: 2b709b655bf Create Date: 2013-07-24 02:16:06.282258 """ # revision identifiers, used by Alembic. revision = '2bf7c04016c9' down_revision = '2b709b655bf' from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import mysql def upgrade...
<commit_before>"""Person.email must be unique Revision ID: 2bf7c04016c9 Revises: 2b709b655bf Create Date: 2013-07-24 02:16:06.282258 """ # revision identifiers, used by Alembic. revision = '2bf7c04016c9' down_revision = '2b709b655bf' from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import mys...
ac9ee17f93b90a79b629d222d8c2846debed6f04
chalice/__init__.py
chalice/__init__.py
from chalice.app import Chalice from chalice.app import ( ChaliceViewError, BadRequestError, UnauthorizedError, ForbiddenError, NotFoundError, ConflictError, TooManyRequestsError, Response, CORSConfig ) __version__ = '0.8.0'
from chalice.app import Chalice from chalice.app import ( ChaliceViewError, BadRequestError, UnauthorizedError, ForbiddenError, NotFoundError, ConflictError, TooManyRequestsError, Response, CORSConfig, CustomAuthorizer, CognitoUserPoolAuthorizer ) __version__ = '0.8.0'
Add authorizers as top level import
Add authorizers as top level import
Python
apache-2.0
awslabs/chalice
from chalice.app import Chalice from chalice.app import ( ChaliceViewError, BadRequestError, UnauthorizedError, ForbiddenError, NotFoundError, ConflictError, TooManyRequestsError, Response, CORSConfig ) __version__ = '0.8.0' Add authorizers as top level import
from chalice.app import Chalice from chalice.app import ( ChaliceViewError, BadRequestError, UnauthorizedError, ForbiddenError, NotFoundError, ConflictError, TooManyRequestsError, Response, CORSConfig, CustomAuthorizer, CognitoUserPoolAuthorizer ) __version__ = '0.8.0'
<commit_before>from chalice.app import Chalice from chalice.app import ( ChaliceViewError, BadRequestError, UnauthorizedError, ForbiddenError, NotFoundError, ConflictError, TooManyRequestsError, Response, CORSConfig ) __version__ = '0.8.0' <commit_msg>Add authorizers as top level import<commit_after>
from chalice.app import Chalice from chalice.app import ( ChaliceViewError, BadRequestError, UnauthorizedError, ForbiddenError, NotFoundError, ConflictError, TooManyRequestsError, Response, CORSConfig, CustomAuthorizer, CognitoUserPoolAuthorizer ) __version__ = '0.8.0'
from chalice.app import Chalice from chalice.app import ( ChaliceViewError, BadRequestError, UnauthorizedError, ForbiddenError, NotFoundError, ConflictError, TooManyRequestsError, Response, CORSConfig ) __version__ = '0.8.0' Add authorizers as top level importfrom chalice.app import Chalice from chalice.app im...
<commit_before>from chalice.app import Chalice from chalice.app import ( ChaliceViewError, BadRequestError, UnauthorizedError, ForbiddenError, NotFoundError, ConflictError, TooManyRequestsError, Response, CORSConfig ) __version__ = '0.8.0' <commit_msg>Add authorizers as top level import<commit_after>from chali...
9b18cc62dc0338a9dff6ae7dd448a4dca960c941
accounts/forms.py
accounts/forms.py
"""forms for accounts app """ from django import forms from django.contrib.auth import get_user_model from django.core.mail import EmailMultiAlternatives from django.contrib.sites.shortcuts import get_current_site from accounts.tokens import LoginTokenGenerator USER = get_user_model() class LoginForm(forms.Form):...
"""forms for accounts app """ from django import forms from django.contrib.auth import get_user_model from django.core.mail import EmailMultiAlternatives from django.contrib.sites.shortcuts import get_current_site from django.urls import reverse_lazy from accounts.tokens import LoginTokenGenerator USER = get_user_m...
Add the token as a get parameter
Add the token as a get parameter
Python
mit
randomic/aniauth-tdd,randomic/aniauth-tdd
"""forms for accounts app """ from django import forms from django.contrib.auth import get_user_model from django.core.mail import EmailMultiAlternatives from django.contrib.sites.shortcuts import get_current_site from accounts.tokens import LoginTokenGenerator USER = get_user_model() class LoginForm(forms.Form):...
"""forms for accounts app """ from django import forms from django.contrib.auth import get_user_model from django.core.mail import EmailMultiAlternatives from django.contrib.sites.shortcuts import get_current_site from django.urls import reverse_lazy from accounts.tokens import LoginTokenGenerator USER = get_user_m...
<commit_before>"""forms for accounts app """ from django import forms from django.contrib.auth import get_user_model from django.core.mail import EmailMultiAlternatives from django.contrib.sites.shortcuts import get_current_site from accounts.tokens import LoginTokenGenerator USER = get_user_model() class LoginFo...
"""forms for accounts app """ from django import forms from django.contrib.auth import get_user_model from django.core.mail import EmailMultiAlternatives from django.contrib.sites.shortcuts import get_current_site from django.urls import reverse_lazy from accounts.tokens import LoginTokenGenerator USER = get_user_m...
"""forms for accounts app """ from django import forms from django.contrib.auth import get_user_model from django.core.mail import EmailMultiAlternatives from django.contrib.sites.shortcuts import get_current_site from accounts.tokens import LoginTokenGenerator USER = get_user_model() class LoginForm(forms.Form):...
<commit_before>"""forms for accounts app """ from django import forms from django.contrib.auth import get_user_model from django.core.mail import EmailMultiAlternatives from django.contrib.sites.shortcuts import get_current_site from accounts.tokens import LoginTokenGenerator USER = get_user_model() class LoginFo...
ade65a931408dd96e59b484dc9cb1bfae3bf8848
wallace/sources.py
wallace/sources.py
from .models import Node, Info, Transmission from sqlalchemy import ForeignKey, Column, String import random class Source(Node): __tablename__ = "source" __mapper_args__ = {"polymorphic_identity": "generic_source"} uuid = Column(String(32), ForeignKey("node.uuid"), primary_key=True) def _selector(se...
from .models import Node, Info, Transmission from sqlalchemy import ForeignKey, Column, String import random class Source(Node): __tablename__ = "source" __mapper_args__ = {"polymorphic_identity": "generic_source"} uuid = Column(String(32), ForeignKey("node.uuid"), primary_key=True) def _selector(se...
Make the default selector null
Make the default selector null
Python
mit
Dallinger/Dallinger,berkeley-cocosci/Wallace,Dallinger/Dallinger,suchow/Wallace,berkeley-cocosci/Wallace,berkeley-cocosci/Wallace,Dallinger/Dallinger,suchow/Wallace,jcpeterson/Dallinger,jcpeterson/Dallinger,jcpeterson/Dallinger,suchow/Wallace,Dallinger/Dallinger,jcpeterson/Dallinger,jcpeterson/Dallinger,Dallinger/Dalli...
from .models import Node, Info, Transmission from sqlalchemy import ForeignKey, Column, String import random class Source(Node): __tablename__ = "source" __mapper_args__ = {"polymorphic_identity": "generic_source"} uuid = Column(String(32), ForeignKey("node.uuid"), primary_key=True) def _selector(se...
from .models import Node, Info, Transmission from sqlalchemy import ForeignKey, Column, String import random class Source(Node): __tablename__ = "source" __mapper_args__ = {"polymorphic_identity": "generic_source"} uuid = Column(String(32), ForeignKey("node.uuid"), primary_key=True) def _selector(se...
<commit_before>from .models import Node, Info, Transmission from sqlalchemy import ForeignKey, Column, String import random class Source(Node): __tablename__ = "source" __mapper_args__ = {"polymorphic_identity": "generic_source"} uuid = Column(String(32), ForeignKey("node.uuid"), primary_key=True) d...
from .models import Node, Info, Transmission from sqlalchemy import ForeignKey, Column, String import random class Source(Node): __tablename__ = "source" __mapper_args__ = {"polymorphic_identity": "generic_source"} uuid = Column(String(32), ForeignKey("node.uuid"), primary_key=True) def _selector(se...
from .models import Node, Info, Transmission from sqlalchemy import ForeignKey, Column, String import random class Source(Node): __tablename__ = "source" __mapper_args__ = {"polymorphic_identity": "generic_source"} uuid = Column(String(32), ForeignKey("node.uuid"), primary_key=True) def _selector(se...
<commit_before>from .models import Node, Info, Transmission from sqlalchemy import ForeignKey, Column, String import random class Source(Node): __tablename__ = "source" __mapper_args__ = {"polymorphic_identity": "generic_source"} uuid = Column(String(32), ForeignKey("node.uuid"), primary_key=True) d...
b92c75e1145915892723206a77593b9701e608bf
webapp/hello.py
webapp/hello.py
from flask import Flask, render_template, request from flask.ext.uploads import UploadSet, configure_uploads, IMAGES from scipy import misc import numpy as np from VGG16_gs_model import * # sett opp nevralt nettverk: model = VGG_16() fpath = '../models/vgg16_sg.h5'; model.load_weights(fpath) # Sett opp webapp app...
from flask import Flask, render_template, request from flask.ext.uploads import UploadSet, configure_uploads, IMAGES from scipy import misc import numpy as np from VGG16_gs_model import * # sett opp nevralt nettverk: model = VGG_16() fpath = '../models/vgg16_sg.h5'; model.load_weights(fpath) # Sett opp webapp app...
Add port on flask app
Add port on flask app
Python
apache-2.0
jchalvorsen/ConsultantOrNot,jchalvorsen/ConsultantOrNot,jchalvorsen/ConsultantOrNot
from flask import Flask, render_template, request from flask.ext.uploads import UploadSet, configure_uploads, IMAGES from scipy import misc import numpy as np from VGG16_gs_model import * # sett opp nevralt nettverk: model = VGG_16() fpath = '../models/vgg16_sg.h5'; model.load_weights(fpath) # Sett opp webapp app...
from flask import Flask, render_template, request from flask.ext.uploads import UploadSet, configure_uploads, IMAGES from scipy import misc import numpy as np from VGG16_gs_model import * # sett opp nevralt nettverk: model = VGG_16() fpath = '../models/vgg16_sg.h5'; model.load_weights(fpath) # Sett opp webapp app...
<commit_before>from flask import Flask, render_template, request from flask.ext.uploads import UploadSet, configure_uploads, IMAGES from scipy import misc import numpy as np from VGG16_gs_model import * # sett opp nevralt nettverk: model = VGG_16() fpath = '../models/vgg16_sg.h5'; model.load_weights(fpath) # Sett...
from flask import Flask, render_template, request from flask.ext.uploads import UploadSet, configure_uploads, IMAGES from scipy import misc import numpy as np from VGG16_gs_model import * # sett opp nevralt nettverk: model = VGG_16() fpath = '../models/vgg16_sg.h5'; model.load_weights(fpath) # Sett opp webapp app...
from flask import Flask, render_template, request from flask.ext.uploads import UploadSet, configure_uploads, IMAGES from scipy import misc import numpy as np from VGG16_gs_model import * # sett opp nevralt nettverk: model = VGG_16() fpath = '../models/vgg16_sg.h5'; model.load_weights(fpath) # Sett opp webapp app...
<commit_before>from flask import Flask, render_template, request from flask.ext.uploads import UploadSet, configure_uploads, IMAGES from scipy import misc import numpy as np from VGG16_gs_model import * # sett opp nevralt nettverk: model = VGG_16() fpath = '../models/vgg16_sg.h5'; model.load_weights(fpath) # Sett...
ce443b03ca919e799566751d13a3d357299d38c2
libcrowds_data/__init__.py
libcrowds_data/__init__.py
# -*- coding: utf8 -*- """ LibCrowdsData ------------- Global data repository page for LibCrowds. """ import os import json import default_settings from flask import current_app as app from flask.ext.plugins import Plugin __plugin__ = "LibCrowdsData" __version__ = json.load(open(os.path.join(os.path.dirname(__file__...
# -*- coding: utf8 -*- """ LibCrowdsData ------------- Global data repository page for LibCrowds. """ import os import json from . import default_settings from flask import current_app as app from flask.ext.plugins import Plugin __plugin__ = "LibCrowdsData" __version__ = json.load(open(os.path.join(os.path.dirname(_...
Use relative import for default settings
Use relative import for default settings
Python
bsd-3-clause
LibCrowds/libcrowds-data,LibCrowds/libcrowds-data
# -*- coding: utf8 -*- """ LibCrowdsData ------------- Global data repository page for LibCrowds. """ import os import json import default_settings from flask import current_app as app from flask.ext.plugins import Plugin __plugin__ = "LibCrowdsData" __version__ = json.load(open(os.path.join(os.path.dirname(__file__...
# -*- coding: utf8 -*- """ LibCrowdsData ------------- Global data repository page for LibCrowds. """ import os import json from . import default_settings from flask import current_app as app from flask.ext.plugins import Plugin __plugin__ = "LibCrowdsData" __version__ = json.load(open(os.path.join(os.path.dirname(_...
<commit_before># -*- coding: utf8 -*- """ LibCrowdsData ------------- Global data repository page for LibCrowds. """ import os import json import default_settings from flask import current_app as app from flask.ext.plugins import Plugin __plugin__ = "LibCrowdsData" __version__ = json.load(open(os.path.join(os.path.d...
# -*- coding: utf8 -*- """ LibCrowdsData ------------- Global data repository page for LibCrowds. """ import os import json from . import default_settings from flask import current_app as app from flask.ext.plugins import Plugin __plugin__ = "LibCrowdsData" __version__ = json.load(open(os.path.join(os.path.dirname(_...
# -*- coding: utf8 -*- """ LibCrowdsData ------------- Global data repository page for LibCrowds. """ import os import json import default_settings from flask import current_app as app from flask.ext.plugins import Plugin __plugin__ = "LibCrowdsData" __version__ = json.load(open(os.path.join(os.path.dirname(__file__...
<commit_before># -*- coding: utf8 -*- """ LibCrowdsData ------------- Global data repository page for LibCrowds. """ import os import json import default_settings from flask import current_app as app from flask.ext.plugins import Plugin __plugin__ = "LibCrowdsData" __version__ = json.load(open(os.path.join(os.path.d...
c671adabcae728fb6992bb91001838b3b9cbfd8a
wrappers/python/setup.py
wrappers/python/setup.py
from distutils.core import setup import os PKG_VERSION = os.environ.get('PACKAGE_VERSION') or '1.9.0' setup( name='python3-indy', version=PKG_VERSION, packages=['indy'], url='https://github.com/hyperledger/indy-sdk', license='MIT/Apache-2.0', author='Vyacheslav Gudkov', author_email='vyach...
from distutils.core import setup import os PKG_VERSION = os.environ.get('PACKAGE_VERSION') or '1.9.0' TEST_DEPS = [ 'pytest<3.7', 'pytest-asyncio', 'base58' ] setup( name='python3-indy', version=PKG_VERSION, packages=['indy'], url='https://github.com/hyperledger/indy-sdk', license='MIT/Apache...
Make test dependencies installable as an extra
Make test dependencies installable as an extra Signed-off-by: Daniel Bluhm <6df8625bb799b640110458f819853f591a9910cb@sovrin.org>
Python
apache-2.0
Artemkaaas/indy-sdk,Artemkaaas/indy-sdk,Artemkaaas/indy-sdk,peacekeeper/indy-sdk,Artemkaaas/indy-sdk,peacekeeper/indy-sdk,Artemkaaas/indy-sdk,Artemkaaas/indy-sdk,peacekeeper/indy-sdk,peacekeeper/indy-sdk,peacekeeper/indy-sdk,Artemkaaas/indy-sdk,peacekeeper/indy-sdk,peacekeeper/indy-sdk,Artemkaaas/indy-sdk,peacekeeper/i...
from distutils.core import setup import os PKG_VERSION = os.environ.get('PACKAGE_VERSION') or '1.9.0' setup( name='python3-indy', version=PKG_VERSION, packages=['indy'], url='https://github.com/hyperledger/indy-sdk', license='MIT/Apache-2.0', author='Vyacheslav Gudkov', author_email='vyach...
from distutils.core import setup import os PKG_VERSION = os.environ.get('PACKAGE_VERSION') or '1.9.0' TEST_DEPS = [ 'pytest<3.7', 'pytest-asyncio', 'base58' ] setup( name='python3-indy', version=PKG_VERSION, packages=['indy'], url='https://github.com/hyperledger/indy-sdk', license='MIT/Apache...
<commit_before>from distutils.core import setup import os PKG_VERSION = os.environ.get('PACKAGE_VERSION') or '1.9.0' setup( name='python3-indy', version=PKG_VERSION, packages=['indy'], url='https://github.com/hyperledger/indy-sdk', license='MIT/Apache-2.0', author='Vyacheslav Gudkov', auth...
from distutils.core import setup import os PKG_VERSION = os.environ.get('PACKAGE_VERSION') or '1.9.0' TEST_DEPS = [ 'pytest<3.7', 'pytest-asyncio', 'base58' ] setup( name='python3-indy', version=PKG_VERSION, packages=['indy'], url='https://github.com/hyperledger/indy-sdk', license='MIT/Apache...
from distutils.core import setup import os PKG_VERSION = os.environ.get('PACKAGE_VERSION') or '1.9.0' setup( name='python3-indy', version=PKG_VERSION, packages=['indy'], url='https://github.com/hyperledger/indy-sdk', license='MIT/Apache-2.0', author='Vyacheslav Gudkov', author_email='vyach...
<commit_before>from distutils.core import setup import os PKG_VERSION = os.environ.get('PACKAGE_VERSION') or '1.9.0' setup( name='python3-indy', version=PKG_VERSION, packages=['indy'], url='https://github.com/hyperledger/indy-sdk', license='MIT/Apache-2.0', author='Vyacheslav Gudkov', auth...
62f8c68165f7f519b5769c99db00ef8822e9f534
yatsm/log_yatsm.py
yatsm/log_yatsm.py
import logging _FORMAT = '%(asctime)s:%(levelname)s:%(module)s.%(funcName)s:%(message)s' _formatter = logging.Formatter(_FORMAT) _handler = logging.StreamHandler() _handler.setFormatter(_formatter) logger = logging.getLogger('yatsm') logger.addHandler(_handler) logger.setLevel(logging.INFO)
import logging _FORMAT = '%(asctime)s:%(levelname)s:%(module)s.%(funcName)s:%(message)s' _formatter = logging.Formatter(_FORMAT, '%H:%M:%S') _handler = logging.StreamHandler() _handler.setFormatter(_formatter) logger = logging.getLogger('yatsm') logger.addHandler(_handler) logger.setLevel(logging.INFO)
Change time format in logs
Change time format in logs
Python
mit
c11/yatsm,valpasq/yatsm,c11/yatsm,ceholden/yatsm,valpasq/yatsm,ceholden/yatsm
import logging _FORMAT = '%(asctime)s:%(levelname)s:%(module)s.%(funcName)s:%(message)s' _formatter = logging.Formatter(_FORMAT) _handler = logging.StreamHandler() _handler.setFormatter(_formatter) logger = logging.getLogger('yatsm') logger.addHandler(_handler) logger.setLevel(logging.INFO) Change time format in logs
import logging _FORMAT = '%(asctime)s:%(levelname)s:%(module)s.%(funcName)s:%(message)s' _formatter = logging.Formatter(_FORMAT, '%H:%M:%S') _handler = logging.StreamHandler() _handler.setFormatter(_formatter) logger = logging.getLogger('yatsm') logger.addHandler(_handler) logger.setLevel(logging.INFO)
<commit_before>import logging _FORMAT = '%(asctime)s:%(levelname)s:%(module)s.%(funcName)s:%(message)s' _formatter = logging.Formatter(_FORMAT) _handler = logging.StreamHandler() _handler.setFormatter(_formatter) logger = logging.getLogger('yatsm') logger.addHandler(_handler) logger.setLevel(logging.INFO) <commit_msg...
import logging _FORMAT = '%(asctime)s:%(levelname)s:%(module)s.%(funcName)s:%(message)s' _formatter = logging.Formatter(_FORMAT, '%H:%M:%S') _handler = logging.StreamHandler() _handler.setFormatter(_formatter) logger = logging.getLogger('yatsm') logger.addHandler(_handler) logger.setLevel(logging.INFO)
import logging _FORMAT = '%(asctime)s:%(levelname)s:%(module)s.%(funcName)s:%(message)s' _formatter = logging.Formatter(_FORMAT) _handler = logging.StreamHandler() _handler.setFormatter(_formatter) logger = logging.getLogger('yatsm') logger.addHandler(_handler) logger.setLevel(logging.INFO) Change time format in logs...
<commit_before>import logging _FORMAT = '%(asctime)s:%(levelname)s:%(module)s.%(funcName)s:%(message)s' _formatter = logging.Formatter(_FORMAT) _handler = logging.StreamHandler() _handler.setFormatter(_formatter) logger = logging.getLogger('yatsm') logger.addHandler(_handler) logger.setLevel(logging.INFO) <commit_msg...
d0c05d5d254ef321d192975e0027d4dedca9a1f7
app/main/views.py
app/main/views.py
from flask import render_template, current_app from . import main import os @main.route('/') def index(): return render_template('editor2.html')
from flask import render_template, current_app from . import main import os @main.route('/') def index(): return render_template('editor.html')
Fix bug where wrong template name was used
Fix bug where wrong template name was used
Python
mit
TheVindicators/Vis,TheVindicators/Vis,TheVindicators/Vis
from flask import render_template, current_app from . import main import os @main.route('/') def index(): return render_template('editor2.html') Fix bug where wrong template name was used
from flask import render_template, current_app from . import main import os @main.route('/') def index(): return render_template('editor.html')
<commit_before>from flask import render_template, current_app from . import main import os @main.route('/') def index(): return render_template('editor2.html') <commit_msg>Fix bug where wrong template name was used<commit_after>
from flask import render_template, current_app from . import main import os @main.route('/') def index(): return render_template('editor.html')
from flask import render_template, current_app from . import main import os @main.route('/') def index(): return render_template('editor2.html') Fix bug where wrong template name was usedfrom flask import render_template, current_app from . import main import os @main.route('/') def index(): return render_tem...
<commit_before>from flask import render_template, current_app from . import main import os @main.route('/') def index(): return render_template('editor2.html') <commit_msg>Fix bug where wrong template name was used<commit_after>from flask import render_template, current_app from . import main import os @main.rout...
2d85ea5594cf1395fef6caafccc690ed9a5db472
crabigator/tests/test_wanikani.py
crabigator/tests/test_wanikani.py
"""Tests for crabigator.wanikani.""" from __future__ import print_function from crabigator.wanikani import WaniKani, WaniKaniError import os from unittest import TestCase # TestCase exposes too many public methods. Disable the pylint warning for it. # pylint: disable=too-many-public-methods class TestWaniKani(TestCa...
"""Tests for crabigator.wanikani.""" from __future__ import print_function import os from unittest import TestCase from crabigator.wanikani import WaniKani, WaniKaniError # TestCase exposes too many public methods. Disable the pylint warning for it. # pylint: disable=too-many-public-methods class TestWaniKani(TestC...
Change import order to satisfy pylint.
Change import order to satisfy pylint.
Python
mit
jonesinator/crabigator
"""Tests for crabigator.wanikani.""" from __future__ import print_function from crabigator.wanikani import WaniKani, WaniKaniError import os from unittest import TestCase # TestCase exposes too many public methods. Disable the pylint warning for it. # pylint: disable=too-many-public-methods class TestWaniKani(TestCa...
"""Tests for crabigator.wanikani.""" from __future__ import print_function import os from unittest import TestCase from crabigator.wanikani import WaniKani, WaniKaniError # TestCase exposes too many public methods. Disable the pylint warning for it. # pylint: disable=too-many-public-methods class TestWaniKani(TestC...
<commit_before>"""Tests for crabigator.wanikani.""" from __future__ import print_function from crabigator.wanikani import WaniKani, WaniKaniError import os from unittest import TestCase # TestCase exposes too many public methods. Disable the pylint warning for it. # pylint: disable=too-many-public-methods class Test...
"""Tests for crabigator.wanikani.""" from __future__ import print_function import os from unittest import TestCase from crabigator.wanikani import WaniKani, WaniKaniError # TestCase exposes too many public methods. Disable the pylint warning for it. # pylint: disable=too-many-public-methods class TestWaniKani(TestC...
"""Tests for crabigator.wanikani.""" from __future__ import print_function from crabigator.wanikani import WaniKani, WaniKaniError import os from unittest import TestCase # TestCase exposes too many public methods. Disable the pylint warning for it. # pylint: disable=too-many-public-methods class TestWaniKani(TestCa...
<commit_before>"""Tests for crabigator.wanikani.""" from __future__ import print_function from crabigator.wanikani import WaniKani, WaniKaniError import os from unittest import TestCase # TestCase exposes too many public methods. Disable the pylint warning for it. # pylint: disable=too-many-public-methods class Test...