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
a1de1f26d30a753c7e3ea66a600b04fb130b02ec
hellomama_registration/testsettings.py
hellomama_registration/testsettings.py
from hellomama_registration.settings import * # flake8: noqa # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = 'TESTSEKRET' # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True TEMPLATE_DEBUG = True CELERY_EAGER_PROPAGATES_EXCEPTIONS = True CELERY_ALWAYS_EAGE...
from hellomama_registration.settings import * # flake8: noqa # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = 'TESTSEKRET' # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True TEMPLATE_DEBUG = True CELERY_EAGER_PROPAGATES_EXCEPTIONS = True CELERY_ALWAYS_EAGE...
Use MD5 password hasher for test runs
Use MD5 password hasher for test runs
Python
bsd-3-clause
praekelt/hellomama-registration,praekelt/hellomama-registration
from hellomama_registration.settings import * # flake8: noqa # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = 'TESTSEKRET' # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True TEMPLATE_DEBUG = True CELERY_EAGER_PROPAGATES_EXCEPTIONS = True CELERY_ALWAYS_EAGE...
from hellomama_registration.settings import * # flake8: noqa # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = 'TESTSEKRET' # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True TEMPLATE_DEBUG = True CELERY_EAGER_PROPAGATES_EXCEPTIONS = True CELERY_ALWAYS_EAGE...
<commit_before>from hellomama_registration.settings import * # flake8: noqa # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = 'TESTSEKRET' # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True TEMPLATE_DEBUG = True CELERY_EAGER_PROPAGATES_EXCEPTIONS = True CEL...
from hellomama_registration.settings import * # flake8: noqa # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = 'TESTSEKRET' # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True TEMPLATE_DEBUG = True CELERY_EAGER_PROPAGATES_EXCEPTIONS = True CELERY_ALWAYS_EAGE...
from hellomama_registration.settings import * # flake8: noqa # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = 'TESTSEKRET' # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True TEMPLATE_DEBUG = True CELERY_EAGER_PROPAGATES_EXCEPTIONS = True CELERY_ALWAYS_EAGE...
<commit_before>from hellomama_registration.settings import * # flake8: noqa # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = 'TESTSEKRET' # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True TEMPLATE_DEBUG = True CELERY_EAGER_PROPAGATES_EXCEPTIONS = True CEL...
f7a9391c22a1b69bcd645a3efbe41f32e91e668c
hb_res/resources/ExplanationStorage.py
hb_res/resources/ExplanationStorage.py
__author__ = 'skird' class ExplanationStorage: """ Interface of abstract readable/writeable resource Every resource is a map from string to list of strings It supports random access and provides iterator on its elements """ def entries(self): return NotImplementedError def add_en...
__author__ = 'skird' class ExplanationStorage: """ Interface of abstract readable/writeable resource Every resource is a map from string to list of strings It supports random access and provides iterator on its elements """ def entries(self): raise NotImplementedError def add_ent...
Fix typo with return instead of raise
Fix typo with return instead of raise
Python
mit
hatbot-team/hatbot_resources
__author__ = 'skird' class ExplanationStorage: """ Interface of abstract readable/writeable resource Every resource is a map from string to list of strings It supports random access and provides iterator on its elements """ def entries(self): return NotImplementedError def add_en...
__author__ = 'skird' class ExplanationStorage: """ Interface of abstract readable/writeable resource Every resource is a map from string to list of strings It supports random access and provides iterator on its elements """ def entries(self): raise NotImplementedError def add_ent...
<commit_before>__author__ = 'skird' class ExplanationStorage: """ Interface of abstract readable/writeable resource Every resource is a map from string to list of strings It supports random access and provides iterator on its elements """ def entries(self): return NotImplementedError ...
__author__ = 'skird' class ExplanationStorage: """ Interface of abstract readable/writeable resource Every resource is a map from string to list of strings It supports random access and provides iterator on its elements """ def entries(self): raise NotImplementedError def add_ent...
__author__ = 'skird' class ExplanationStorage: """ Interface of abstract readable/writeable resource Every resource is a map from string to list of strings It supports random access and provides iterator on its elements """ def entries(self): return NotImplementedError def add_en...
<commit_before>__author__ = 'skird' class ExplanationStorage: """ Interface of abstract readable/writeable resource Every resource is a map from string to list of strings It supports random access and provides iterator on its elements """ def entries(self): return NotImplementedError ...
6629a3a238432522d77f840b465eb99a3745593f
django_base64field/tests/models.py
django_base64field/tests/models.py
from django.db import models from django.utils.baseconv import base64 from django_base64field.fields import Base64Field class Planet(models.Model): ek = Base64Field() name = models.CharField( default='Fucker', max_length=103 ) class Continent(models.Model): ek = Base64Field() nam...
from django.db import models from django.utils.baseconv import base64 from django_base64field.fields import Base64Field class Planet(models.Model): # Making `ek` unique just because it will be used as `FK` # in other models. ek = Base64Field(unique=True) name = models.CharField( default='Fucke...
Add little bit comments for Planet model
Add little bit comments for Planet model
Python
bsd-3-clause
Alir3z4/django-base64field
from django.db import models from django.utils.baseconv import base64 from django_base64field.fields import Base64Field class Planet(models.Model): ek = Base64Field() name = models.CharField( default='Fucker', max_length=103 ) class Continent(models.Model): ek = Base64Field() nam...
from django.db import models from django.utils.baseconv import base64 from django_base64field.fields import Base64Field class Planet(models.Model): # Making `ek` unique just because it will be used as `FK` # in other models. ek = Base64Field(unique=True) name = models.CharField( default='Fucke...
<commit_before>from django.db import models from django.utils.baseconv import base64 from django_base64field.fields import Base64Field class Planet(models.Model): ek = Base64Field() name = models.CharField( default='Fucker', max_length=103 ) class Continent(models.Model): ek = Base64...
from django.db import models from django.utils.baseconv import base64 from django_base64field.fields import Base64Field class Planet(models.Model): # Making `ek` unique just because it will be used as `FK` # in other models. ek = Base64Field(unique=True) name = models.CharField( default='Fucke...
from django.db import models from django.utils.baseconv import base64 from django_base64field.fields import Base64Field class Planet(models.Model): ek = Base64Field() name = models.CharField( default='Fucker', max_length=103 ) class Continent(models.Model): ek = Base64Field() nam...
<commit_before>from django.db import models from django.utils.baseconv import base64 from django_base64field.fields import Base64Field class Planet(models.Model): ek = Base64Field() name = models.CharField( default='Fucker', max_length=103 ) class Continent(models.Model): ek = Base64...
084eac5735404edeed62cee4e2b429c8f4f2a7a5
app/dao/inbound_numbers_dao.py
app/dao/inbound_numbers_dao.py
from app import db from app.dao.dao_utils import transactional from app.models import InboundNumber def dao_get_inbound_numbers(): return InboundNumber.query.all() def dao_get_available_inbound_numbers(): return InboundNumber.query.filter(InboundNumber.active, InboundNumber.service_id.is_(None)).all() def...
from app import db from app.dao.dao_utils import transactional from app.models import InboundNumber def dao_get_inbound_numbers(): return InboundNumber.query.order_by(InboundNumber.updated_at, InboundNumber.number).all() def dao_get_available_inbound_numbers(): return InboundNumber.query.filter(InboundNumbe...
Update dao to order by updated_at, number
Update dao to order by updated_at, number
Python
mit
alphagov/notifications-api,alphagov/notifications-api
from app import db from app.dao.dao_utils import transactional from app.models import InboundNumber def dao_get_inbound_numbers(): return InboundNumber.query.all() def dao_get_available_inbound_numbers(): return InboundNumber.query.filter(InboundNumber.active, InboundNumber.service_id.is_(None)).all() def...
from app import db from app.dao.dao_utils import transactional from app.models import InboundNumber def dao_get_inbound_numbers(): return InboundNumber.query.order_by(InboundNumber.updated_at, InboundNumber.number).all() def dao_get_available_inbound_numbers(): return InboundNumber.query.filter(InboundNumbe...
<commit_before>from app import db from app.dao.dao_utils import transactional from app.models import InboundNumber def dao_get_inbound_numbers(): return InboundNumber.query.all() def dao_get_available_inbound_numbers(): return InboundNumber.query.filter(InboundNumber.active, InboundNumber.service_id.is_(Non...
from app import db from app.dao.dao_utils import transactional from app.models import InboundNumber def dao_get_inbound_numbers(): return InboundNumber.query.order_by(InboundNumber.updated_at, InboundNumber.number).all() def dao_get_available_inbound_numbers(): return InboundNumber.query.filter(InboundNumbe...
from app import db from app.dao.dao_utils import transactional from app.models import InboundNumber def dao_get_inbound_numbers(): return InboundNumber.query.all() def dao_get_available_inbound_numbers(): return InboundNumber.query.filter(InboundNumber.active, InboundNumber.service_id.is_(None)).all() def...
<commit_before>from app import db from app.dao.dao_utils import transactional from app.models import InboundNumber def dao_get_inbound_numbers(): return InboundNumber.query.all() def dao_get_available_inbound_numbers(): return InboundNumber.query.filter(InboundNumber.active, InboundNumber.service_id.is_(Non...
e8ebb4e9be78e32bc59b1f03cd4854add1148de3
extra.py
extra.py
Import('env') env.Append(CXXFLAGS=["-std=c++11"], CPPPATH=["src/wakaama", "wakaama"])
Import('env') env.Append(CFLAGS=["-std=gnu11"], CXXFLAGS=["-std=c++11"], CPPPATH=["src/wakaama", "wakaama"])
Make C11 default. pio should actually do this.
Make C11 default. pio should actually do this. Signed-off-by: David Graeff <[email protected]>
Python
mit
Openhab-Nodes/libWakaamaEmb,Openhab-Nodes/libWakaamaEmb,Openhab-Nodes/libWakaamaEmb,Openhab-Nodes/libWakaamaEmb
Import('env') env.Append(CXXFLAGS=["-std=c++11"], CPPPATH=["src/wakaama", "wakaama"]) Make C11 default. pio should actually do this. Signed-off-by: David Graeff <[email protected]>
Import('env') env.Append(CFLAGS=["-std=gnu11"], CXXFLAGS=["-std=c++11"], CPPPATH=["src/wakaama", "wakaama"])
<commit_before>Import('env') env.Append(CXXFLAGS=["-std=c++11"], CPPPATH=["src/wakaama", "wakaama"]) <commit_msg>Make C11 default. pio should actually do this. Signed-off-by: David Graeff <[email protected]><commit_after>
Import('env') env.Append(CFLAGS=["-std=gnu11"], CXXFLAGS=["-std=c++11"], CPPPATH=["src/wakaama", "wakaama"])
Import('env') env.Append(CXXFLAGS=["-std=c++11"], CPPPATH=["src/wakaama", "wakaama"]) Make C11 default. pio should actually do this. Signed-off-by: David Graeff <[email protected]>Import('env') env.Append(CFLAGS=["-std=gnu11"], CXXFLAGS=["-std=c++11"], CPPPATH=["src/wakaama", "wakaama"])
<commit_before>Import('env') env.Append(CXXFLAGS=["-std=c++11"], CPPPATH=["src/wakaama", "wakaama"]) <commit_msg>Make C11 default. pio should actually do this. Signed-off-by: David Graeff <[email protected]><commit_after>Import('env') env.Append(CFLAGS=["-std=gnu11"], CXXFLAGS=["-std=c++1...
ec867f87441af657f0138ec723de4a52299284d8
src/epiweb/apps/survey/urls.py
src/epiweb/apps/survey/urls.py
from django.conf.urls.defaults import * urlpatterns = patterns('', (r'^profile/$', 'epiweb.apps.survey.views.profile_index'), (r'^thanks/$', 'epiweb.apps.survey.views.thanks'), url(r'^people/$', 'epiweb.apps.survey.views.people', name='survey_people'), url(r'^people/add/$', 'epiweb.apps.survey.views.pe...
from django.conf.urls.defaults import * from . import views urlpatterns = patterns('', (r'^profile/$', views.profile_index), (r'^thanks/$', views.thanks), url(r'^people/$', views.people, name='survey_people'), url(r'^people/add/$', views.people_add, name='survey_people_add'), (r'^$', views.index),...
Use view's function instead of its name
Use view's function instead of its name
Python
agpl-3.0
ISIFoundation/influenzanet-website,ISIFoundation/influenzanet-website,ISIFoundation/influenzanet-website,ISIFoundation/influenzanet-website,ISIFoundation/influenzanet-website,ISIFoundation/influenzanet-website,ISIFoundation/influenzanet-website
from django.conf.urls.defaults import * urlpatterns = patterns('', (r'^profile/$', 'epiweb.apps.survey.views.profile_index'), (r'^thanks/$', 'epiweb.apps.survey.views.thanks'), url(r'^people/$', 'epiweb.apps.survey.views.people', name='survey_people'), url(r'^people/add/$', 'epiweb.apps.survey.views.pe...
from django.conf.urls.defaults import * from . import views urlpatterns = patterns('', (r'^profile/$', views.profile_index), (r'^thanks/$', views.thanks), url(r'^people/$', views.people, name='survey_people'), url(r'^people/add/$', views.people_add, name='survey_people_add'), (r'^$', views.index),...
<commit_before>from django.conf.urls.defaults import * urlpatterns = patterns('', (r'^profile/$', 'epiweb.apps.survey.views.profile_index'), (r'^thanks/$', 'epiweb.apps.survey.views.thanks'), url(r'^people/$', 'epiweb.apps.survey.views.people', name='survey_people'), url(r'^people/add/$', 'epiweb.apps....
from django.conf.urls.defaults import * from . import views urlpatterns = patterns('', (r'^profile/$', views.profile_index), (r'^thanks/$', views.thanks), url(r'^people/$', views.people, name='survey_people'), url(r'^people/add/$', views.people_add, name='survey_people_add'), (r'^$', views.index),...
from django.conf.urls.defaults import * urlpatterns = patterns('', (r'^profile/$', 'epiweb.apps.survey.views.profile_index'), (r'^thanks/$', 'epiweb.apps.survey.views.thanks'), url(r'^people/$', 'epiweb.apps.survey.views.people', name='survey_people'), url(r'^people/add/$', 'epiweb.apps.survey.views.pe...
<commit_before>from django.conf.urls.defaults import * urlpatterns = patterns('', (r'^profile/$', 'epiweb.apps.survey.views.profile_index'), (r'^thanks/$', 'epiweb.apps.survey.views.thanks'), url(r'^people/$', 'epiweb.apps.survey.views.people', name='survey_people'), url(r'^people/add/$', 'epiweb.apps....
e85e5ea6e2a8b188ff79d114ae0546c8d3ca4c73
examples/MNIST/mnist.py
examples/MNIST/mnist.py
import os import gzip import pickle import sys # Python 2/3 compatibility. try: from urllib.request import urlretrieve except ImportError: from urllib import urlretrieve '''Adapted from theano tutorial''' def load_mnist(data_file = os.path.join(os.path.dirname(__file__), 'mnist.pkl.gz')): if not os.pa...
import os import gzip import pickle import sys # Python 2/3 compatibility. try: from urllib.request import urlretrieve except ImportError: from urllib import urlretrieve '''Adapted from theano tutorial''' def load_mnist(data_file = os.path.join(os.path.dirname(__file__), 'mnist.pkl.gz')): if not os.pa...
Simplify code loading MNIST dataset.
Simplify code loading MNIST dataset.
Python
mit
VisualComputingInstitute/Beacon8,lucasb-eyer/DeepFried2,elPistolero/DeepFried2,yobibyte/DeepFried2,Pandoro/DeepFried2
import os import gzip import pickle import sys # Python 2/3 compatibility. try: from urllib.request import urlretrieve except ImportError: from urllib import urlretrieve '''Adapted from theano tutorial''' def load_mnist(data_file = os.path.join(os.path.dirname(__file__), 'mnist.pkl.gz')): if not os.pa...
import os import gzip import pickle import sys # Python 2/3 compatibility. try: from urllib.request import urlretrieve except ImportError: from urllib import urlretrieve '''Adapted from theano tutorial''' def load_mnist(data_file = os.path.join(os.path.dirname(__file__), 'mnist.pkl.gz')): if not os.pa...
<commit_before>import os import gzip import pickle import sys # Python 2/3 compatibility. try: from urllib.request import urlretrieve except ImportError: from urllib import urlretrieve '''Adapted from theano tutorial''' def load_mnist(data_file = os.path.join(os.path.dirname(__file__), 'mnist.pkl.gz')): ...
import os import gzip import pickle import sys # Python 2/3 compatibility. try: from urllib.request import urlretrieve except ImportError: from urllib import urlretrieve '''Adapted from theano tutorial''' def load_mnist(data_file = os.path.join(os.path.dirname(__file__), 'mnist.pkl.gz')): if not os.pa...
import os import gzip import pickle import sys # Python 2/3 compatibility. try: from urllib.request import urlretrieve except ImportError: from urllib import urlretrieve '''Adapted from theano tutorial''' def load_mnist(data_file = os.path.join(os.path.dirname(__file__), 'mnist.pkl.gz')): if not os.pa...
<commit_before>import os import gzip import pickle import sys # Python 2/3 compatibility. try: from urllib.request import urlretrieve except ImportError: from urllib import urlretrieve '''Adapted from theano tutorial''' def load_mnist(data_file = os.path.join(os.path.dirname(__file__), 'mnist.pkl.gz')): ...
6ce0b5fabd3573ac3c3feb30e8fb48af16d2504f
apps/users/tests/test_profile_admin.py
apps/users/tests/test_profile_admin.py
import fudge from django.test import TestCase, Client from django.core.urlresolvers import reverse from django.contrib.auth.models import User from users.models import Profile, Link class ProfileAdmin(TestCase): def setUp(self): self.client = Client() self.User = User.objects.create( ...
from contextlib import contextmanager import fudge from django.test import TestCase, Client from django.core.urlresolvers import reverse from django.contrib.auth.models import User from users.models import Profile, Link @contextmanager def given_user(fake_auth, user): """Context manager to respond to any login...
Fix the profile test to log in as the test user.
Fix the profile test to log in as the test user.
Python
bsd-3-clause
mozilla/mozilla-ignite,mozilla/mozilla-ignite,mozilla/mozilla-ignite,mozilla/mozilla-ignite
import fudge from django.test import TestCase, Client from django.core.urlresolvers import reverse from django.contrib.auth.models import User from users.models import Profile, Link class ProfileAdmin(TestCase): def setUp(self): self.client = Client() self.User = User.objects.create( ...
from contextlib import contextmanager import fudge from django.test import TestCase, Client from django.core.urlresolvers import reverse from django.contrib.auth.models import User from users.models import Profile, Link @contextmanager def given_user(fake_auth, user): """Context manager to respond to any login...
<commit_before>import fudge from django.test import TestCase, Client from django.core.urlresolvers import reverse from django.contrib.auth.models import User from users.models import Profile, Link class ProfileAdmin(TestCase): def setUp(self): self.client = Client() self.User = User.objects....
from contextlib import contextmanager import fudge from django.test import TestCase, Client from django.core.urlresolvers import reverse from django.contrib.auth.models import User from users.models import Profile, Link @contextmanager def given_user(fake_auth, user): """Context manager to respond to any login...
import fudge from django.test import TestCase, Client from django.core.urlresolvers import reverse from django.contrib.auth.models import User from users.models import Profile, Link class ProfileAdmin(TestCase): def setUp(self): self.client = Client() self.User = User.objects.create( ...
<commit_before>import fudge from django.test import TestCase, Client from django.core.urlresolvers import reverse from django.contrib.auth.models import User from users.models import Profile, Link class ProfileAdmin(TestCase): def setUp(self): self.client = Client() self.User = User.objects....
bcfb29272d727ee2775c9f212053725e4a562752
pip_review/__init__.py
pip_review/__init__.py
from functools import partial import subprocess import requests import multiprocessing import json def get_pkg_info(pkg_name, session): r = session.get('http://pypi.python.org/pypi/%s/json' % (pkg_name,)) if r.status_code == requests.codes.ok: return json.loads(r.text) else: raise ValueErr...
from functools import partial import subprocess import urllib2 import multiprocessing import json def get_pkg_info(pkg_name): req = urllib2.Request('http://pypi.python.org/pypi/%s/json' % (pkg_name,)) handler = urllib2.urlopen(req) status = handler.getcode() if status == 200: content = handler...
Remove the requests dependency altogether.
Remove the requests dependency altogether. (Makes no sense for such small a tool.)
Python
bsd-2-clause
suutari-ai/prequ,suutari/prequ,suutari/prequ
from functools import partial import subprocess import requests import multiprocessing import json def get_pkg_info(pkg_name, session): r = session.get('http://pypi.python.org/pypi/%s/json' % (pkg_name,)) if r.status_code == requests.codes.ok: return json.loads(r.text) else: raise ValueErr...
from functools import partial import subprocess import urllib2 import multiprocessing import json def get_pkg_info(pkg_name): req = urllib2.Request('http://pypi.python.org/pypi/%s/json' % (pkg_name,)) handler = urllib2.urlopen(req) status = handler.getcode() if status == 200: content = handler...
<commit_before>from functools import partial import subprocess import requests import multiprocessing import json def get_pkg_info(pkg_name, session): r = session.get('http://pypi.python.org/pypi/%s/json' % (pkg_name,)) if r.status_code == requests.codes.ok: return json.loads(r.text) else: ...
from functools import partial import subprocess import urllib2 import multiprocessing import json def get_pkg_info(pkg_name): req = urllib2.Request('http://pypi.python.org/pypi/%s/json' % (pkg_name,)) handler = urllib2.urlopen(req) status = handler.getcode() if status == 200: content = handler...
from functools import partial import subprocess import requests import multiprocessing import json def get_pkg_info(pkg_name, session): r = session.get('http://pypi.python.org/pypi/%s/json' % (pkg_name,)) if r.status_code == requests.codes.ok: return json.loads(r.text) else: raise ValueErr...
<commit_before>from functools import partial import subprocess import requests import multiprocessing import json def get_pkg_info(pkg_name, session): r = session.get('http://pypi.python.org/pypi/%s/json' % (pkg_name,)) if r.status_code == requests.codes.ok: return json.loads(r.text) else: ...
f9f12e89e526b2645f013fc5856488d105a39d5a
bouncer/sentry.py
bouncer/sentry.py
"""Report exceptions to Sentry/Raven.""" from pyramid import tweens import raven from bouncer import __version__ def get_raven_client(request): """Return the Raven client for reporting crashes to Sentry.""" client = request.registry["raven.client"] client.http_context({ "url": request.url, ...
"""Report exceptions to Sentry/Raven.""" import os import raven from bouncer import __version__ def get_raven_client(request): """Return the Raven client for reporting crashes to Sentry.""" client = request.registry["raven.client"] client.http_context({ "url": request.url, "method": re...
Add environment name to Sentry client
Add environment name to Sentry client Skyliner provides the ENV environment variable for our application, which contains either "prod" or "qa" depending on the environment. Sentry supports partitioning reports based on the environment within a single application. Adding this metadata to the `Client` allows us to migr...
Python
bsd-2-clause
hypothesis/bouncer,hypothesis/bouncer,hypothesis/bouncer
"""Report exceptions to Sentry/Raven.""" from pyramid import tweens import raven from bouncer import __version__ def get_raven_client(request): """Return the Raven client for reporting crashes to Sentry.""" client = request.registry["raven.client"] client.http_context({ "url": request.url, ...
"""Report exceptions to Sentry/Raven.""" import os import raven from bouncer import __version__ def get_raven_client(request): """Return the Raven client for reporting crashes to Sentry.""" client = request.registry["raven.client"] client.http_context({ "url": request.url, "method": re...
<commit_before>"""Report exceptions to Sentry/Raven.""" from pyramid import tweens import raven from bouncer import __version__ def get_raven_client(request): """Return the Raven client for reporting crashes to Sentry.""" client = request.registry["raven.client"] client.http_context({ "url": req...
"""Report exceptions to Sentry/Raven.""" import os import raven from bouncer import __version__ def get_raven_client(request): """Return the Raven client for reporting crashes to Sentry.""" client = request.registry["raven.client"] client.http_context({ "url": request.url, "method": re...
"""Report exceptions to Sentry/Raven.""" from pyramid import tweens import raven from bouncer import __version__ def get_raven_client(request): """Return the Raven client for reporting crashes to Sentry.""" client = request.registry["raven.client"] client.http_context({ "url": request.url, ...
<commit_before>"""Report exceptions to Sentry/Raven.""" from pyramid import tweens import raven from bouncer import __version__ def get_raven_client(request): """Return the Raven client for reporting crashes to Sentry.""" client = request.registry["raven.client"] client.http_context({ "url": req...
79cb9edf45ed77cdaa851e45d71f10c69db41221
benchexec/tools/yogar-cbmc-parallel.py
benchexec/tools/yogar-cbmc-parallel.py
""" BenchExec is a framework for reliable benchmarking. This file is part of BenchExec. Copyright (C) 2007-2015 Dirk Beyer 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 ht...
""" BenchExec is a framework for reliable benchmarking. This file is part of BenchExec. Copyright (C) 2007-2015 Dirk Beyer 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 ht...
Add forgotten program file for deployment
Add forgotten program file for deployment
Python
apache-2.0
ultimate-pa/benchexec,sosy-lab/benchexec,sosy-lab/benchexec,sosy-lab/benchexec,dbeyer/benchexec,ultimate-pa/benchexec,ultimate-pa/benchexec,dbeyer/benchexec,ultimate-pa/benchexec,ultimate-pa/benchexec,sosy-lab/benchexec,ultimate-pa/benchexec,sosy-lab/benchexec,dbeyer/benchexec,dbeyer/benchexec,sosy-lab/benchexec
""" BenchExec is a framework for reliable benchmarking. This file is part of BenchExec. Copyright (C) 2007-2015 Dirk Beyer 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 ht...
""" BenchExec is a framework for reliable benchmarking. This file is part of BenchExec. Copyright (C) 2007-2015 Dirk Beyer 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 ht...
<commit_before>""" BenchExec is a framework for reliable benchmarking. This file is part of BenchExec. Copyright (C) 2007-2015 Dirk Beyer 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 Li...
""" BenchExec is a framework for reliable benchmarking. This file is part of BenchExec. Copyright (C) 2007-2015 Dirk Beyer 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 ht...
""" BenchExec is a framework for reliable benchmarking. This file is part of BenchExec. Copyright (C) 2007-2015 Dirk Beyer 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 ht...
<commit_before>""" BenchExec is a framework for reliable benchmarking. This file is part of BenchExec. Copyright (C) 2007-2015 Dirk Beyer 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 Li...
94c943b3dcabb1611a745caef0ecf6da10e807e4
kiteconnect/__version__.py
kiteconnect/__version__.py
__title__ = "kiteconnect" __description__ = "The official Python client for the Kite Connect trading API" __url__ = "https://kite.trade" __download_url__ = "https://github.com/zerodhatech/pykiteconnect" __version__ = "3.7.0" __author__ = "Zerodha Technology Pvt ltd. (India)" __author_email__ = "[email protected]" __lic...
__title__ = "kiteconnect" __description__ = "The official Python client for the Kite Connect trading API" __url__ = "https://kite.trade" __download_url__ = "https://github.com/zerodhatech/pykiteconnect" __version__ = "3.7.0.b1" __author__ = "Zerodha Technology Pvt ltd. (India)" __author_email__ = "[email protected]" __...
Mark release as beta in setup.py
Mark release as beta in setup.py
Python
mit
rainmattertech/pykiteconnect
__title__ = "kiteconnect" __description__ = "The official Python client for the Kite Connect trading API" __url__ = "https://kite.trade" __download_url__ = "https://github.com/zerodhatech/pykiteconnect" __version__ = "3.7.0" __author__ = "Zerodha Technology Pvt ltd. (India)" __author_email__ = "[email protected]" __lic...
__title__ = "kiteconnect" __description__ = "The official Python client for the Kite Connect trading API" __url__ = "https://kite.trade" __download_url__ = "https://github.com/zerodhatech/pykiteconnect" __version__ = "3.7.0.b1" __author__ = "Zerodha Technology Pvt ltd. (India)" __author_email__ = "[email protected]" __...
<commit_before>__title__ = "kiteconnect" __description__ = "The official Python client for the Kite Connect trading API" __url__ = "https://kite.trade" __download_url__ = "https://github.com/zerodhatech/pykiteconnect" __version__ = "3.7.0" __author__ = "Zerodha Technology Pvt ltd. (India)" __author_email__ = "talk@zero...
__title__ = "kiteconnect" __description__ = "The official Python client for the Kite Connect trading API" __url__ = "https://kite.trade" __download_url__ = "https://github.com/zerodhatech/pykiteconnect" __version__ = "3.7.0.b1" __author__ = "Zerodha Technology Pvt ltd. (India)" __author_email__ = "[email protected]" __...
__title__ = "kiteconnect" __description__ = "The official Python client for the Kite Connect trading API" __url__ = "https://kite.trade" __download_url__ = "https://github.com/zerodhatech/pykiteconnect" __version__ = "3.7.0" __author__ = "Zerodha Technology Pvt ltd. (India)" __author_email__ = "[email protected]" __lic...
<commit_before>__title__ = "kiteconnect" __description__ = "The official Python client for the Kite Connect trading API" __url__ = "https://kite.trade" __download_url__ = "https://github.com/zerodhatech/pykiteconnect" __version__ = "3.7.0" __author__ = "Zerodha Technology Pvt ltd. (India)" __author_email__ = "talk@zero...
6b53e14ec1f5c71d2aa1f17a4108f4e1d88e8b89
pywikibot/families/wikia_family.py
pywikibot/families/wikia_family.py
# -*- coding: utf-8 -*- __version__ = '$Id$' import family # The Wikia Search family # user-config.py: usernames['wikia']['wikia'] = 'User name' class Family(family.Family): def __init__(self): family.Family.__init__(self) self.name = u'wikia' self.langs = { u'wikia': None,...
# -*- coding: utf-8 -*- __version__ = '$Id$' import family # The Wikia Search family # user-config.py: usernames['wikia']['wikia'] = 'User name' class Family(family.Family): def __init__(self): family.Family.__init__(self) self.name = u'wikia' self.langs = { u'wikia': None,...
Update a version number from trunk r9016
Update a version number from trunk r9016 git-svn-id: 9a050473c2aca1e14f53d73349e19b938c2cf203@9040 6a7f98fc-eeb0-4dc1-a6e2-c2c589a08aa6
Python
mit
legoktm/pywikipedia-rewrite
# -*- coding: utf-8 -*- __version__ = '$Id$' import family # The Wikia Search family # user-config.py: usernames['wikia']['wikia'] = 'User name' class Family(family.Family): def __init__(self): family.Family.__init__(self) self.name = u'wikia' self.langs = { u'wikia': None,...
# -*- coding: utf-8 -*- __version__ = '$Id$' import family # The Wikia Search family # user-config.py: usernames['wikia']['wikia'] = 'User name' class Family(family.Family): def __init__(self): family.Family.__init__(self) self.name = u'wikia' self.langs = { u'wikia': None,...
<commit_before># -*- coding: utf-8 -*- __version__ = '$Id$' import family # The Wikia Search family # user-config.py: usernames['wikia']['wikia'] = 'User name' class Family(family.Family): def __init__(self): family.Family.__init__(self) self.name = u'wikia' self.langs = { ...
# -*- coding: utf-8 -*- __version__ = '$Id$' import family # The Wikia Search family # user-config.py: usernames['wikia']['wikia'] = 'User name' class Family(family.Family): def __init__(self): family.Family.__init__(self) self.name = u'wikia' self.langs = { u'wikia': None,...
# -*- coding: utf-8 -*- __version__ = '$Id$' import family # The Wikia Search family # user-config.py: usernames['wikia']['wikia'] = 'User name' class Family(family.Family): def __init__(self): family.Family.__init__(self) self.name = u'wikia' self.langs = { u'wikia': None,...
<commit_before># -*- coding: utf-8 -*- __version__ = '$Id$' import family # The Wikia Search family # user-config.py: usernames['wikia']['wikia'] = 'User name' class Family(family.Family): def __init__(self): family.Family.__init__(self) self.name = u'wikia' self.langs = { ...
98f1df191febd889fcde861f94a9ca126c60ea37
tests/GIR/runalltests.py
tests/GIR/runalltests.py
# -*- Mode: Python -*- import os import glob import sys import shutil import unittest testLoader = unittest.TestLoader() names = [] for filename in glob.iglob("test_*.py"): names.append(filename[:-3]) names.sort() testSuite = testLoader.loadTestsFromNames(names) runner = unittest.TextTestRunner(verbosity=2) resu...
# -*- Mode: Python -*- import os import glob import sys import shutil import unittest if os.path.isfile("./test_data/test_gir.db"): os.remove("./test_data/test_gir.db") testLoader = unittest.TestLoader() names = [] for filename in glob.iglob("test_*.py"): names.append(filename[:-3]) names.sort() testSuite = t...
Remove SQLite database before running tests
Remove SQLite database before running tests
Python
lgpl-2.1
midgardproject/midgard-core,midgardproject/midgard-core,midgardproject/midgard-core,midgardproject/midgard-core
# -*- Mode: Python -*- import os import glob import sys import shutil import unittest testLoader = unittest.TestLoader() names = [] for filename in glob.iglob("test_*.py"): names.append(filename[:-3]) names.sort() testSuite = testLoader.loadTestsFromNames(names) runner = unittest.TextTestRunner(verbosity=2) resu...
# -*- Mode: Python -*- import os import glob import sys import shutil import unittest if os.path.isfile("./test_data/test_gir.db"): os.remove("./test_data/test_gir.db") testLoader = unittest.TestLoader() names = [] for filename in glob.iglob("test_*.py"): names.append(filename[:-3]) names.sort() testSuite = t...
<commit_before># -*- Mode: Python -*- import os import glob import sys import shutil import unittest testLoader = unittest.TestLoader() names = [] for filename in glob.iglob("test_*.py"): names.append(filename[:-3]) names.sort() testSuite = testLoader.loadTestsFromNames(names) runner = unittest.TextTestRunner(ve...
# -*- Mode: Python -*- import os import glob import sys import shutil import unittest if os.path.isfile("./test_data/test_gir.db"): os.remove("./test_data/test_gir.db") testLoader = unittest.TestLoader() names = [] for filename in glob.iglob("test_*.py"): names.append(filename[:-3]) names.sort() testSuite = t...
# -*- Mode: Python -*- import os import glob import sys import shutil import unittest testLoader = unittest.TestLoader() names = [] for filename in glob.iglob("test_*.py"): names.append(filename[:-3]) names.sort() testSuite = testLoader.loadTestsFromNames(names) runner = unittest.TextTestRunner(verbosity=2) resu...
<commit_before># -*- Mode: Python -*- import os import glob import sys import shutil import unittest testLoader = unittest.TestLoader() names = [] for filename in glob.iglob("test_*.py"): names.append(filename[:-3]) names.sort() testSuite = testLoader.loadTestsFromNames(names) runner = unittest.TextTestRunner(ve...
74dcf36c2eecab290c1c76c947b024e51d280ea7
tests/test_rover_init.py
tests/test_rover_init.py
def test_rover_init_with_default_parameters(): from rover import Rover rover = Rover() assert rover.x == 0 assert rover.y == 0 assert rover.direction == 'N' def test_rover_init_with_custom_parameters(): from rover import Rover rover = Rover(3, 7, 'W') assert rover.x == 3 assert rove...
def test_rover_init_with_default_parameters(): from rover import Rover rover = Rover() assert rover.x == 0 assert rover.y == 0 assert rover.direction == 'N' assert rover.grid_x == 50 assert rover.grid_y == 50 def test_rover_init_with_custom_parameters(): from rover import Rover rov...
Add testing for default grid_* values
Add testing for default grid_* values
Python
mit
authentik8/rover
def test_rover_init_with_default_parameters(): from rover import Rover rover = Rover() assert rover.x == 0 assert rover.y == 0 assert rover.direction == 'N' def test_rover_init_with_custom_parameters(): from rover import Rover rover = Rover(3, 7, 'W') assert rover.x == 3 assert rove...
def test_rover_init_with_default_parameters(): from rover import Rover rover = Rover() assert rover.x == 0 assert rover.y == 0 assert rover.direction == 'N' assert rover.grid_x == 50 assert rover.grid_y == 50 def test_rover_init_with_custom_parameters(): from rover import Rover rov...
<commit_before>def test_rover_init_with_default_parameters(): from rover import Rover rover = Rover() assert rover.x == 0 assert rover.y == 0 assert rover.direction == 'N' def test_rover_init_with_custom_parameters(): from rover import Rover rover = Rover(3, 7, 'W') assert rover.x == 3 ...
def test_rover_init_with_default_parameters(): from rover import Rover rover = Rover() assert rover.x == 0 assert rover.y == 0 assert rover.direction == 'N' assert rover.grid_x == 50 assert rover.grid_y == 50 def test_rover_init_with_custom_parameters(): from rover import Rover rov...
def test_rover_init_with_default_parameters(): from rover import Rover rover = Rover() assert rover.x == 0 assert rover.y == 0 assert rover.direction == 'N' def test_rover_init_with_custom_parameters(): from rover import Rover rover = Rover(3, 7, 'W') assert rover.x == 3 assert rove...
<commit_before>def test_rover_init_with_default_parameters(): from rover import Rover rover = Rover() assert rover.x == 0 assert rover.y == 0 assert rover.direction == 'N' def test_rover_init_with_custom_parameters(): from rover import Rover rover = Rover(3, 7, 'W') assert rover.x == 3 ...
a9a01b2bb07fadb6e9ab07228fc6857f28e4d444
src/edge/context_processors.py
src/edge/context_processors.py
import os def export_envs(request): data = {} data['FULLSTORY_ORG_ID'] = os.getenv('FULLSTORY_ORG_ID', '') return data
import os def export_envs(request): data = {} data['FULLSTORY_ORG_ID'] = os.getenv('FULLSTORY_ORG_ID', '') return data
Fix flake8 error by adding extra line
Fix flake8 error by adding extra line
Python
mit
ginkgobioworks/edge,ginkgobioworks/edge,ginkgobioworks/edge,ginkgobioworks/edge
import os def export_envs(request): data = {} data['FULLSTORY_ORG_ID'] = os.getenv('FULLSTORY_ORG_ID', '') return data Fix flake8 error by adding extra line
import os def export_envs(request): data = {} data['FULLSTORY_ORG_ID'] = os.getenv('FULLSTORY_ORG_ID', '') return data
<commit_before>import os def export_envs(request): data = {} data['FULLSTORY_ORG_ID'] = os.getenv('FULLSTORY_ORG_ID', '') return data <commit_msg>Fix flake8 error by adding extra line<commit_after>
import os def export_envs(request): data = {} data['FULLSTORY_ORG_ID'] = os.getenv('FULLSTORY_ORG_ID', '') return data
import os def export_envs(request): data = {} data['FULLSTORY_ORG_ID'] = os.getenv('FULLSTORY_ORG_ID', '') return data Fix flake8 error by adding extra lineimport os def export_envs(request): data = {} data['FULLSTORY_ORG_ID'] = os.getenv('FULLSTORY_ORG_ID', '') return data
<commit_before>import os def export_envs(request): data = {} data['FULLSTORY_ORG_ID'] = os.getenv('FULLSTORY_ORG_ID', '') return data <commit_msg>Fix flake8 error by adding extra line<commit_after>import os def export_envs(request): data = {} data['FULLSTORY_ORG_ID'] = os.getenv('FULLSTORY_ORG_ID...
fa7ffa32f0484c45a665de2766a97ae7a23a0b6d
pyicloud/utils.py
pyicloud/utils.py
import getpass import keyring from .exceptions import NoStoredPasswordAvailable KEYRING_SYSTEM = 'pyicloud://icloud-password' def get_password(username, interactive=True): try: return get_password_from_keyring(username) except NoStoredPasswordAvailable: if not interactive: raise...
import getpass import keyring from .exceptions import NoStoredPasswordAvailable KEYRING_SYSTEM = 'pyicloud://icloud-password' def get_password(username, interactive=True): try: return get_password_from_keyring(username) except NoStoredPasswordAvailable: if not interactive: raise...
Tweak wording of password prompt
Tweak wording of password prompt iCloud is branded with a lower case 'i' like most other Apple products.
Python
mit
picklepete/pyicloud,picklepete/pyicloud
import getpass import keyring from .exceptions import NoStoredPasswordAvailable KEYRING_SYSTEM = 'pyicloud://icloud-password' def get_password(username, interactive=True): try: return get_password_from_keyring(username) except NoStoredPasswordAvailable: if not interactive: raise...
import getpass import keyring from .exceptions import NoStoredPasswordAvailable KEYRING_SYSTEM = 'pyicloud://icloud-password' def get_password(username, interactive=True): try: return get_password_from_keyring(username) except NoStoredPasswordAvailable: if not interactive: raise...
<commit_before>import getpass import keyring from .exceptions import NoStoredPasswordAvailable KEYRING_SYSTEM = 'pyicloud://icloud-password' def get_password(username, interactive=True): try: return get_password_from_keyring(username) except NoStoredPasswordAvailable: if not interactive: ...
import getpass import keyring from .exceptions import NoStoredPasswordAvailable KEYRING_SYSTEM = 'pyicloud://icloud-password' def get_password(username, interactive=True): try: return get_password_from_keyring(username) except NoStoredPasswordAvailable: if not interactive: raise...
import getpass import keyring from .exceptions import NoStoredPasswordAvailable KEYRING_SYSTEM = 'pyicloud://icloud-password' def get_password(username, interactive=True): try: return get_password_from_keyring(username) except NoStoredPasswordAvailable: if not interactive: raise...
<commit_before>import getpass import keyring from .exceptions import NoStoredPasswordAvailable KEYRING_SYSTEM = 'pyicloud://icloud-password' def get_password(username, interactive=True): try: return get_password_from_keyring(username) except NoStoredPasswordAvailable: if not interactive: ...
cd189a5cbf8cbb567efaba0e92b3c31278817a39
pnrg/filters.py
pnrg/filters.py
from jinja2._compat import text_type import re def do_right(value, width=80): """Right-justifies the value in a field of a given width.""" return text_type(value).rjust(width) _LATEX_SUBS = ( (re.compile(r'\\'), r'\\textbackslash'), (re.compile(r'([{}_#%&$])'), r'\\\1'), (re.compile(r'~'), r'\~{}'...
from jinja2._compat import text_type import re def do_right(value, width=80): """Right-justifies the value in a field of a given width.""" return text_type(value).rjust(width) _LATEX_SUBS = ( (re.compile(r'\\'), r'\\textbackslash'), (re.compile(r'([{}_#%&$])'), r'\\\1'), (re.compile(r'~'), r'\~{}'...
Use Computer Modern for \LaTeX macro
Use Computer Modern for \LaTeX macro Source Sans pro (and most othe sans-serif fonts) render the LaTeX macro pretty weirdly, so the classic Computer Modern should be okay here. It may wind up being an odd contrast in an otherwise sans-serif document though, so this may eventually get reverted!
Python
mit
sjbarag/poorly-named-resume-generator,sjbarag/poorly-named-resume-generator
from jinja2._compat import text_type import re def do_right(value, width=80): """Right-justifies the value in a field of a given width.""" return text_type(value).rjust(width) _LATEX_SUBS = ( (re.compile(r'\\'), r'\\textbackslash'), (re.compile(r'([{}_#%&$])'), r'\\\1'), (re.compile(r'~'), r'\~{}'...
from jinja2._compat import text_type import re def do_right(value, width=80): """Right-justifies the value in a field of a given width.""" return text_type(value).rjust(width) _LATEX_SUBS = ( (re.compile(r'\\'), r'\\textbackslash'), (re.compile(r'([{}_#%&$])'), r'\\\1'), (re.compile(r'~'), r'\~{}'...
<commit_before>from jinja2._compat import text_type import re def do_right(value, width=80): """Right-justifies the value in a field of a given width.""" return text_type(value).rjust(width) _LATEX_SUBS = ( (re.compile(r'\\'), r'\\textbackslash'), (re.compile(r'([{}_#%&$])'), r'\\\1'), (re.compile...
from jinja2._compat import text_type import re def do_right(value, width=80): """Right-justifies the value in a field of a given width.""" return text_type(value).rjust(width) _LATEX_SUBS = ( (re.compile(r'\\'), r'\\textbackslash'), (re.compile(r'([{}_#%&$])'), r'\\\1'), (re.compile(r'~'), r'\~{}'...
from jinja2._compat import text_type import re def do_right(value, width=80): """Right-justifies the value in a field of a given width.""" return text_type(value).rjust(width) _LATEX_SUBS = ( (re.compile(r'\\'), r'\\textbackslash'), (re.compile(r'([{}_#%&$])'), r'\\\1'), (re.compile(r'~'), r'\~{}'...
<commit_before>from jinja2._compat import text_type import re def do_right(value, width=80): """Right-justifies the value in a field of a given width.""" return text_type(value).rjust(width) _LATEX_SUBS = ( (re.compile(r'\\'), r'\\textbackslash'), (re.compile(r'([{}_#%&$])'), r'\\\1'), (re.compile...
d1a893514092a2495fcd2b14365b9b014fd39f59
calaccess_processed/models/__init__.py
calaccess_processed/models/__init__.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Import all of the models from submodules and thread them together. """ from calaccess_processed.models.campaign.entities import ( Candidate, CandidateCommittee, ) from calaccess_processed.models.campaign.filings import ( Form460, Form460Version, Sche...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Import all of the models from submodules and thread them together. """ from calaccess_processed.models.campaign.entities import ( Candidate, CandidateCommittee, ) from calaccess_processed.models.campaign.filings import ( Form460, Form460Version, Sche...
Add missing models to __all__ list
Add missing models to __all__ list
Python
mit
california-civic-data-coalition/django-calaccess-processed-data,california-civic-data-coalition/django-calaccess-processed-data
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Import all of the models from submodules and thread them together. """ from calaccess_processed.models.campaign.entities import ( Candidate, CandidateCommittee, ) from calaccess_processed.models.campaign.filings import ( Form460, Form460Version, Sche...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Import all of the models from submodules and thread them together. """ from calaccess_processed.models.campaign.entities import ( Candidate, CandidateCommittee, ) from calaccess_processed.models.campaign.filings import ( Form460, Form460Version, Sche...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- """ Import all of the models from submodules and thread them together. """ from calaccess_processed.models.campaign.entities import ( Candidate, CandidateCommittee, ) from calaccess_processed.models.campaign.filings import ( Form460, Form460Ve...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Import all of the models from submodules and thread them together. """ from calaccess_processed.models.campaign.entities import ( Candidate, CandidateCommittee, ) from calaccess_processed.models.campaign.filings import ( Form460, Form460Version, Sche...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Import all of the models from submodules and thread them together. """ from calaccess_processed.models.campaign.entities import ( Candidate, CandidateCommittee, ) from calaccess_processed.models.campaign.filings import ( Form460, Form460Version, Sche...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- """ Import all of the models from submodules and thread them together. """ from calaccess_processed.models.campaign.entities import ( Candidate, CandidateCommittee, ) from calaccess_processed.models.campaign.filings import ( Form460, Form460Ve...
64dd3ecb1cf5adbf68d59d231b67e7d30ace715f
scripts/create-hosted-graphite-dashboards.py
scripts/create-hosted-graphite-dashboards.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Description: To add Usage: scripts/create-hosted-graphite-dashboards.py <hosted_graphite_api_key> Example: scripts/create-hosted-graphite-dashboards.py apikey """ import os import sys import requests from docopt import docopt sys.path.insert(0, '.') # ...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Description: This pushes dashboards defined in /grafana directory up to our hosted graphite. You can get the <hosted_graphite_api_key> from the "Account Home" page of hosted graphite. To change a dashboard a process you should follow is: 1. Set "editabl...
Update docstring for creating hosted graphite dashboards
Update docstring for creating hosted graphite dashboards
Python
mit
alphagov/digitalmarketplace-aws,alphagov/digitalmarketplace-aws,alphagov/digitalmarketplace-aws
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Description: To add Usage: scripts/create-hosted-graphite-dashboards.py <hosted_graphite_api_key> Example: scripts/create-hosted-graphite-dashboards.py apikey """ import os import sys import requests from docopt import docopt sys.path.insert(0, '.') # ...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Description: This pushes dashboards defined in /grafana directory up to our hosted graphite. You can get the <hosted_graphite_api_key> from the "Account Home" page of hosted graphite. To change a dashboard a process you should follow is: 1. Set "editabl...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- """ Description: To add Usage: scripts/create-hosted-graphite-dashboards.py <hosted_graphite_api_key> Example: scripts/create-hosted-graphite-dashboards.py apikey """ import os import sys import requests from docopt import docopt sys.path.ins...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Description: This pushes dashboards defined in /grafana directory up to our hosted graphite. You can get the <hosted_graphite_api_key> from the "Account Home" page of hosted graphite. To change a dashboard a process you should follow is: 1. Set "editabl...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Description: To add Usage: scripts/create-hosted-graphite-dashboards.py <hosted_graphite_api_key> Example: scripts/create-hosted-graphite-dashboards.py apikey """ import os import sys import requests from docopt import docopt sys.path.insert(0, '.') # ...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- """ Description: To add Usage: scripts/create-hosted-graphite-dashboards.py <hosted_graphite_api_key> Example: scripts/create-hosted-graphite-dashboards.py apikey """ import os import sys import requests from docopt import docopt sys.path.ins...
08aa975b100b1dbf8c9594a2e57368ad866f98a4
api/caching/tasks.py
api/caching/tasks.py
import urlparse import celery import requests from celery.utils.log import get_task_logger from api.base import settings from framework.tasks import app as celery_app logger = get_task_logger(__name__) class VarnishTask(celery.Task): abstract = True max_retries = 5 def get_varnish_servers(): # TODO: t...
import urlparse import requests from celery.utils.log import get_task_logger from api.base import settings logger = get_task_logger(__name__) def get_varnish_servers(): # TODO: this should get the varnish servers from HAProxy or a setting return settings.VARNISH_SERVERS def ban_url(url): timeout = 0.5...
Move from celery task to regular-old function
Move from celery task to regular-old function
Python
apache-2.0
sloria/osf.io,cwisecarver/osf.io,mattclark/osf.io,emetsger/osf.io,SSJohns/osf.io,erinspace/osf.io,asanfilippo7/osf.io,mluo613/osf.io,mluo613/osf.io,caseyrollins/osf.io,saradbowman/osf.io,cwisecarver/osf.io,icereval/osf.io,doublebits/osf.io,brianjgeiger/osf.io,mluo613/osf.io,adlius/osf.io,adlius/osf.io,aaxelb/osf.io,bin...
import urlparse import celery import requests from celery.utils.log import get_task_logger from api.base import settings from framework.tasks import app as celery_app logger = get_task_logger(__name__) class VarnishTask(celery.Task): abstract = True max_retries = 5 def get_varnish_servers(): # TODO: t...
import urlparse import requests from celery.utils.log import get_task_logger from api.base import settings logger = get_task_logger(__name__) def get_varnish_servers(): # TODO: this should get the varnish servers from HAProxy or a setting return settings.VARNISH_SERVERS def ban_url(url): timeout = 0.5...
<commit_before>import urlparse import celery import requests from celery.utils.log import get_task_logger from api.base import settings from framework.tasks import app as celery_app logger = get_task_logger(__name__) class VarnishTask(celery.Task): abstract = True max_retries = 5 def get_varnish_servers():...
import urlparse import requests from celery.utils.log import get_task_logger from api.base import settings logger = get_task_logger(__name__) def get_varnish_servers(): # TODO: this should get the varnish servers from HAProxy or a setting return settings.VARNISH_SERVERS def ban_url(url): timeout = 0.5...
import urlparse import celery import requests from celery.utils.log import get_task_logger from api.base import settings from framework.tasks import app as celery_app logger = get_task_logger(__name__) class VarnishTask(celery.Task): abstract = True max_retries = 5 def get_varnish_servers(): # TODO: t...
<commit_before>import urlparse import celery import requests from celery.utils.log import get_task_logger from api.base import settings from framework.tasks import app as celery_app logger = get_task_logger(__name__) class VarnishTask(celery.Task): abstract = True max_retries = 5 def get_varnish_servers():...
13d9edb6d643d0955663f78b610fee6106e7128e
KISSmetrics/client.py
KISSmetrics/client.py
# -*- coding: utf-8 -*- import KISSmetrics from KISSmetrics import request from urllib3 import PoolManager class Client: def __init__(self, key, trk_host=KISSmetrics.TRACKING_HOSTNAME, trk_proto=KISSmetrics.TRACKING_PROTOCOL): self.key = key if trk_proto not in ['http', 'https']...
# -*- coding: utf-8 -*- import KISSmetrics from KISSmetrics import request from urllib3 import PoolManager class Client: def __init__(self, key, trk_host=KISSmetrics.TRACKING_HOSTNAME, trk_proto=KISSmetrics.TRACKING_PROTOCOL): self.key = key if trk_proto not in ('http', 'https')...
Use a tuple instead of a list for protocol membership test
Use a tuple instead of a list for protocol membership test
Python
mit
kissmetrics/py-KISSmetrics
# -*- coding: utf-8 -*- import KISSmetrics from KISSmetrics import request from urllib3 import PoolManager class Client: def __init__(self, key, trk_host=KISSmetrics.TRACKING_HOSTNAME, trk_proto=KISSmetrics.TRACKING_PROTOCOL): self.key = key if trk_proto not in ['http', 'https']...
# -*- coding: utf-8 -*- import KISSmetrics from KISSmetrics import request from urllib3 import PoolManager class Client: def __init__(self, key, trk_host=KISSmetrics.TRACKING_HOSTNAME, trk_proto=KISSmetrics.TRACKING_PROTOCOL): self.key = key if trk_proto not in ('http', 'https')...
<commit_before># -*- coding: utf-8 -*- import KISSmetrics from KISSmetrics import request from urllib3 import PoolManager class Client: def __init__(self, key, trk_host=KISSmetrics.TRACKING_HOSTNAME, trk_proto=KISSmetrics.TRACKING_PROTOCOL): self.key = key if trk_proto not in ['...
# -*- coding: utf-8 -*- import KISSmetrics from KISSmetrics import request from urllib3 import PoolManager class Client: def __init__(self, key, trk_host=KISSmetrics.TRACKING_HOSTNAME, trk_proto=KISSmetrics.TRACKING_PROTOCOL): self.key = key if trk_proto not in ('http', 'https')...
# -*- coding: utf-8 -*- import KISSmetrics from KISSmetrics import request from urllib3 import PoolManager class Client: def __init__(self, key, trk_host=KISSmetrics.TRACKING_HOSTNAME, trk_proto=KISSmetrics.TRACKING_PROTOCOL): self.key = key if trk_proto not in ['http', 'https']...
<commit_before># -*- coding: utf-8 -*- import KISSmetrics from KISSmetrics import request from urllib3 import PoolManager class Client: def __init__(self, key, trk_host=KISSmetrics.TRACKING_HOSTNAME, trk_proto=KISSmetrics.TRACKING_PROTOCOL): self.key = key if trk_proto not in ['...
1bba76808aa5c598f1558cd127d8ed4a006692e1
tests/conftest.py
tests/conftest.py
import os def pytest_configure(config): if 'USE_QT_API' in os.environ: os.environ['QT_API'] = os.environ['USE_QT_API'].lower() def pytest_report_header(config): versions = os.linesep versions += 'PyQt4: ' try: from PyQt4 import Qt versions += "PyQt: {0} - Qt: {1}".format(Qt...
import os def pytest_configure(config): if 'USE_QT_API' in os.environ: os.environ['QT_API'] = os.environ['USE_QT_API'].lower() # We need to import qtpy here to make sure that the API versions get set # straight away. import qtpy def pytest_report_header(config): versions = os.linesep ...
Make sure we import qtpy before importing any Qt wrappers directly
Make sure we import qtpy before importing any Qt wrappers directly
Python
mit
spyder-ide/qtpy,goanpeca/qtpy,davvid/qtpy,davvid/qtpy,goanpeca/qtpy
import os def pytest_configure(config): if 'USE_QT_API' in os.environ: os.environ['QT_API'] = os.environ['USE_QT_API'].lower() def pytest_report_header(config): versions = os.linesep versions += 'PyQt4: ' try: from PyQt4 import Qt versions += "PyQt: {0} - Qt: {1}".format(Qt...
import os def pytest_configure(config): if 'USE_QT_API' in os.environ: os.environ['QT_API'] = os.environ['USE_QT_API'].lower() # We need to import qtpy here to make sure that the API versions get set # straight away. import qtpy def pytest_report_header(config): versions = os.linesep ...
<commit_before>import os def pytest_configure(config): if 'USE_QT_API' in os.environ: os.environ['QT_API'] = os.environ['USE_QT_API'].lower() def pytest_report_header(config): versions = os.linesep versions += 'PyQt4: ' try: from PyQt4 import Qt versions += "PyQt: {0} - Qt:...
import os def pytest_configure(config): if 'USE_QT_API' in os.environ: os.environ['QT_API'] = os.environ['USE_QT_API'].lower() # We need to import qtpy here to make sure that the API versions get set # straight away. import qtpy def pytest_report_header(config): versions = os.linesep ...
import os def pytest_configure(config): if 'USE_QT_API' in os.environ: os.environ['QT_API'] = os.environ['USE_QT_API'].lower() def pytest_report_header(config): versions = os.linesep versions += 'PyQt4: ' try: from PyQt4 import Qt versions += "PyQt: {0} - Qt: {1}".format(Qt...
<commit_before>import os def pytest_configure(config): if 'USE_QT_API' in os.environ: os.environ['QT_API'] = os.environ['USE_QT_API'].lower() def pytest_report_header(config): versions = os.linesep versions += 'PyQt4: ' try: from PyQt4 import Qt versions += "PyQt: {0} - Qt:...
8359d60480371a8f63bdd4ea1b7cf03f231c1350
djangopress/settings_tinymce.py
djangopress/settings_tinymce.py
# if you want support for tinymce in the admin pages # add tinymce to the installed apps (after installing if needed) # and then import these settings, or copy and adjust as needed TINYMCE_DEFAULT_CONFIG = { 'relative_urls': False, 'plugins': "table code image link colorpicker textcolor wordcount", 'tools'...
# if you want support for tinymce in the admin pages # add tinymce to the installed apps (after installing if needed) # and then import these settings, or copy and adjust as needed TINYMCE_DEFAULT_CONFIG = { 'relative_urls': False, 'plugins': "table code image link colorpicker textcolor wordcount", 'tools'...
Update settings for tinymce to allow show_blog_latest tag
Update settings for tinymce to allow show_blog_latest tag
Python
mit
codefisher/djangopress,codefisher/djangopress,codefisher/djangopress,codefisher/djangopress
# if you want support for tinymce in the admin pages # add tinymce to the installed apps (after installing if needed) # and then import these settings, or copy and adjust as needed TINYMCE_DEFAULT_CONFIG = { 'relative_urls': False, 'plugins': "table code image link colorpicker textcolor wordcount", 'tools'...
# if you want support for tinymce in the admin pages # add tinymce to the installed apps (after installing if needed) # and then import these settings, or copy and adjust as needed TINYMCE_DEFAULT_CONFIG = { 'relative_urls': False, 'plugins': "table code image link colorpicker textcolor wordcount", 'tools'...
<commit_before># if you want support for tinymce in the admin pages # add tinymce to the installed apps (after installing if needed) # and then import these settings, or copy and adjust as needed TINYMCE_DEFAULT_CONFIG = { 'relative_urls': False, 'plugins': "table code image link colorpicker textcolor wordcoun...
# if you want support for tinymce in the admin pages # add tinymce to the installed apps (after installing if needed) # and then import these settings, or copy and adjust as needed TINYMCE_DEFAULT_CONFIG = { 'relative_urls': False, 'plugins': "table code image link colorpicker textcolor wordcount", 'tools'...
# if you want support for tinymce in the admin pages # add tinymce to the installed apps (after installing if needed) # and then import these settings, or copy and adjust as needed TINYMCE_DEFAULT_CONFIG = { 'relative_urls': False, 'plugins': "table code image link colorpicker textcolor wordcount", 'tools'...
<commit_before># if you want support for tinymce in the admin pages # add tinymce to the installed apps (after installing if needed) # and then import these settings, or copy and adjust as needed TINYMCE_DEFAULT_CONFIG = { 'relative_urls': False, 'plugins': "table code image link colorpicker textcolor wordcoun...
3ca7c667cbf37499dc959b336b9ff0e88f5d4275
dbarray/tests/run.py
dbarray/tests/run.py
"""From http://stackoverflow.com/a/12260597/400691""" import sys from django.conf import settings settings.configure( DATABASES={ 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'dbarray', 'HOST': 'localhost' } }, INSTALLED_APPS...
"""From http://stackoverflow.com/a/12260597/400691""" import sys from django.conf import settings settings.configure( DATABASES={ 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'dbarray', 'HOST': 'localhost' } }, INSTALLED_APPS...
Remove commented code .
Remove commented code [ci skip].
Python
bsd-3-clause
ecometrica/django-dbarray
"""From http://stackoverflow.com/a/12260597/400691""" import sys from django.conf import settings settings.configure( DATABASES={ 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'dbarray', 'HOST': 'localhost' } }, INSTALLED_APPS...
"""From http://stackoverflow.com/a/12260597/400691""" import sys from django.conf import settings settings.configure( DATABASES={ 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'dbarray', 'HOST': 'localhost' } }, INSTALLED_APPS...
<commit_before>"""From http://stackoverflow.com/a/12260597/400691""" import sys from django.conf import settings settings.configure( DATABASES={ 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'dbarray', 'HOST': 'localhost' } }, ...
"""From http://stackoverflow.com/a/12260597/400691""" import sys from django.conf import settings settings.configure( DATABASES={ 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'dbarray', 'HOST': 'localhost' } }, INSTALLED_APPS...
"""From http://stackoverflow.com/a/12260597/400691""" import sys from django.conf import settings settings.configure( DATABASES={ 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'dbarray', 'HOST': 'localhost' } }, INSTALLED_APPS...
<commit_before>"""From http://stackoverflow.com/a/12260597/400691""" import sys from django.conf import settings settings.configure( DATABASES={ 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'dbarray', 'HOST': 'localhost' } }, ...
a1bf03f69b9cadddcc7e0015788f23f9bad0f862
apps/splash/views.py
apps/splash/views.py
import datetime from django.shortcuts import render from apps.splash.models import SplashEvent, SplashYear def index(request): # I'm really sorry ... splash_year = SplashYear.objects.get(start_date__gt=str(datetime.date.today() - datetime.timedelta(180))) return render(request, 'splash/base.html', {'splas...
import datetime from django.shortcuts import render from apps.splash.models import SplashEvent, SplashYear def index(request): # I'm really sorry ... splash_year = SplashYear.objects.get(start_date__gt=str(datetime.date.today() - datetime.timedelta(180))) splash_year.events = _merge_events(splash_year.sp...
Append event merging on splash_events
Append event merging on splash_events
Python
mit
dotKom/onlineweb4,dotKom/onlineweb4,dotKom/onlineweb4,dotKom/onlineweb4
import datetime from django.shortcuts import render from apps.splash.models import SplashEvent, SplashYear def index(request): # I'm really sorry ... splash_year = SplashYear.objects.get(start_date__gt=str(datetime.date.today() - datetime.timedelta(180))) return render(request, 'splash/base.html', {'splas...
import datetime from django.shortcuts import render from apps.splash.models import SplashEvent, SplashYear def index(request): # I'm really sorry ... splash_year = SplashYear.objects.get(start_date__gt=str(datetime.date.today() - datetime.timedelta(180))) splash_year.events = _merge_events(splash_year.sp...
<commit_before>import datetime from django.shortcuts import render from apps.splash.models import SplashEvent, SplashYear def index(request): # I'm really sorry ... splash_year = SplashYear.objects.get(start_date__gt=str(datetime.date.today() - datetime.timedelta(180))) return render(request, 'splash/base...
import datetime from django.shortcuts import render from apps.splash.models import SplashEvent, SplashYear def index(request): # I'm really sorry ... splash_year = SplashYear.objects.get(start_date__gt=str(datetime.date.today() - datetime.timedelta(180))) splash_year.events = _merge_events(splash_year.sp...
import datetime from django.shortcuts import render from apps.splash.models import SplashEvent, SplashYear def index(request): # I'm really sorry ... splash_year = SplashYear.objects.get(start_date__gt=str(datetime.date.today() - datetime.timedelta(180))) return render(request, 'splash/base.html', {'splas...
<commit_before>import datetime from django.shortcuts import render from apps.splash.models import SplashEvent, SplashYear def index(request): # I'm really sorry ... splash_year = SplashYear.objects.get(start_date__gt=str(datetime.date.today() - datetime.timedelta(180))) return render(request, 'splash/base...
e722dbc13dcf1c30086fb3aff9afd89d2bddb409
validator/jschematest.py
validator/jschematest.py
# Testing jsonschema error printing capabilities import jsonschema import json # Custom printing of errors (skip no-information messages) # TODO: solve repetition of same error (with different paths) def print_errors(errors, indent=0): next_indent = indent + 2 for error in errors: msg = error.message ...
# Testing jsonschema error printing capabilities import jsonschema import json # Custom printing of errors (skip no-information messages) # TODO: solve repetition of same error (with different paths) def print_errors(errors, indent=0): next_indent = indent + 2 for error in errors: msg = error.message ...
Make chapter validator loop over all chapter files in the knowledge model
Make chapter validator loop over all chapter files in the knowledge model
Python
apache-2.0
DataStewardshipPortal/ds-km,CCMi-FIT/ds-km,CCMi-FIT/ds-km-core
# Testing jsonschema error printing capabilities import jsonschema import json # Custom printing of errors (skip no-information messages) # TODO: solve repetition of same error (with different paths) def print_errors(errors, indent=0): next_indent = indent + 2 for error in errors: msg = error.message ...
# Testing jsonschema error printing capabilities import jsonschema import json # Custom printing of errors (skip no-information messages) # TODO: solve repetition of same error (with different paths) def print_errors(errors, indent=0): next_indent = indent + 2 for error in errors: msg = error.message ...
<commit_before># Testing jsonschema error printing capabilities import jsonschema import json # Custom printing of errors (skip no-information messages) # TODO: solve repetition of same error (with different paths) def print_errors(errors, indent=0): next_indent = indent + 2 for error in errors: msg =...
# Testing jsonschema error printing capabilities import jsonschema import json # Custom printing of errors (skip no-information messages) # TODO: solve repetition of same error (with different paths) def print_errors(errors, indent=0): next_indent = indent + 2 for error in errors: msg = error.message ...
# Testing jsonschema error printing capabilities import jsonschema import json # Custom printing of errors (skip no-information messages) # TODO: solve repetition of same error (with different paths) def print_errors(errors, indent=0): next_indent = indent + 2 for error in errors: msg = error.message ...
<commit_before># Testing jsonschema error printing capabilities import jsonschema import json # Custom printing of errors (skip no-information messages) # TODO: solve repetition of same error (with different paths) def print_errors(errors, indent=0): next_indent = indent + 2 for error in errors: msg =...
1f4fea5d4bb67f84defa1693e0ea26295de489ff
helios/conf/settings.py
helios/conf/settings.py
# -*- coding: utf-8 -*- from django.conf import settings PAGINATE_BY = getattr(settings, 'STORE_PAGINATE_BY', 50) IS_MULTILINGUAL = getattr(settings, 'STORE_IS_MULTILINGUAL', False) HAS_CURRENCIES = getattr(settings, 'STORE_HAS_CURRENCIES', False) USE_PAYPAL = getattr(settings, 'STORE_USE_PAYPAL', False) PRODUCT_MODE...
# -*- coding: utf-8 -*- from django.conf import settings DEBUG = getattr(settings, 'STORE_DEBUG', False) PAGINATE_BY = getattr(settings, 'STORE_PAGINATE_BY', 50) IS_MULTILINGUAL = getattr(settings, 'STORE_IS_MULTILINGUAL', False) HAS_CURRENCIES = getattr(settings, 'STORE_HAS_CURRENCIES', False) USE_PAYPAL = getattr(s...
Set the DEBUG store setting
Set the DEBUG store setting
Python
bsd-3-clause
panosl/helios
# -*- coding: utf-8 -*- from django.conf import settings PAGINATE_BY = getattr(settings, 'STORE_PAGINATE_BY', 50) IS_MULTILINGUAL = getattr(settings, 'STORE_IS_MULTILINGUAL', False) HAS_CURRENCIES = getattr(settings, 'STORE_HAS_CURRENCIES', False) USE_PAYPAL = getattr(settings, 'STORE_USE_PAYPAL', False) PRODUCT_MODE...
# -*- coding: utf-8 -*- from django.conf import settings DEBUG = getattr(settings, 'STORE_DEBUG', False) PAGINATE_BY = getattr(settings, 'STORE_PAGINATE_BY', 50) IS_MULTILINGUAL = getattr(settings, 'STORE_IS_MULTILINGUAL', False) HAS_CURRENCIES = getattr(settings, 'STORE_HAS_CURRENCIES', False) USE_PAYPAL = getattr(s...
<commit_before># -*- coding: utf-8 -*- from django.conf import settings PAGINATE_BY = getattr(settings, 'STORE_PAGINATE_BY', 50) IS_MULTILINGUAL = getattr(settings, 'STORE_IS_MULTILINGUAL', False) HAS_CURRENCIES = getattr(settings, 'STORE_HAS_CURRENCIES', False) USE_PAYPAL = getattr(settings, 'STORE_USE_PAYPAL', Fals...
# -*- coding: utf-8 -*- from django.conf import settings DEBUG = getattr(settings, 'STORE_DEBUG', False) PAGINATE_BY = getattr(settings, 'STORE_PAGINATE_BY', 50) IS_MULTILINGUAL = getattr(settings, 'STORE_IS_MULTILINGUAL', False) HAS_CURRENCIES = getattr(settings, 'STORE_HAS_CURRENCIES', False) USE_PAYPAL = getattr(s...
# -*- coding: utf-8 -*- from django.conf import settings PAGINATE_BY = getattr(settings, 'STORE_PAGINATE_BY', 50) IS_MULTILINGUAL = getattr(settings, 'STORE_IS_MULTILINGUAL', False) HAS_CURRENCIES = getattr(settings, 'STORE_HAS_CURRENCIES', False) USE_PAYPAL = getattr(settings, 'STORE_USE_PAYPAL', False) PRODUCT_MODE...
<commit_before># -*- coding: utf-8 -*- from django.conf import settings PAGINATE_BY = getattr(settings, 'STORE_PAGINATE_BY', 50) IS_MULTILINGUAL = getattr(settings, 'STORE_IS_MULTILINGUAL', False) HAS_CURRENCIES = getattr(settings, 'STORE_HAS_CURRENCIES', False) USE_PAYPAL = getattr(settings, 'STORE_USE_PAYPAL', Fals...
61b59bfdf9581a280263f4049e7d257fa47cdad0
teknologr/registration/views.py
teknologr/registration/views.py
from django.shortcuts import render, redirect from django.conf import settings from django.views import View from members.programmes import DEGREE_PROGRAMME_CHOICES from registration.forms import RegistrationForm from registration.mailutils import mailApplicantSubmission class BaseView(View): context = {'DEBUG': ...
from django.shortcuts import render, redirect from django.conf import settings from django.views import View from members.programmes import DEGREE_PROGRAMME_CHOICES from registration.forms import RegistrationForm from registration.mailutils import mailApplicantSubmission class BaseView(View): context = {'DEBUG': ...
Fix registration form replay issue
Fix registration form replay issue
Python
mit
Teknologforeningen/teknologr.io,Teknologforeningen/teknologr.io,Teknologforeningen/teknologr.io,Teknologforeningen/teknologr.io
from django.shortcuts import render, redirect from django.conf import settings from django.views import View from members.programmes import DEGREE_PROGRAMME_CHOICES from registration.forms import RegistrationForm from registration.mailutils import mailApplicantSubmission class BaseView(View): context = {'DEBUG': ...
from django.shortcuts import render, redirect from django.conf import settings from django.views import View from members.programmes import DEGREE_PROGRAMME_CHOICES from registration.forms import RegistrationForm from registration.mailutils import mailApplicantSubmission class BaseView(View): context = {'DEBUG': ...
<commit_before>from django.shortcuts import render, redirect from django.conf import settings from django.views import View from members.programmes import DEGREE_PROGRAMME_CHOICES from registration.forms import RegistrationForm from registration.mailutils import mailApplicantSubmission class BaseView(View): conte...
from django.shortcuts import render, redirect from django.conf import settings from django.views import View from members.programmes import DEGREE_PROGRAMME_CHOICES from registration.forms import RegistrationForm from registration.mailutils import mailApplicantSubmission class BaseView(View): context = {'DEBUG': ...
from django.shortcuts import render, redirect from django.conf import settings from django.views import View from members.programmes import DEGREE_PROGRAMME_CHOICES from registration.forms import RegistrationForm from registration.mailutils import mailApplicantSubmission class BaseView(View): context = {'DEBUG': ...
<commit_before>from django.shortcuts import render, redirect from django.conf import settings from django.views import View from members.programmes import DEGREE_PROGRAMME_CHOICES from registration.forms import RegistrationForm from registration.mailutils import mailApplicantSubmission class BaseView(View): conte...
3fad3c64a317956265c14c82c182b66979ba8554
greatbigcrane/preferences/forms.py
greatbigcrane/preferences/forms.py
""" Copyright 2010 Jason Chu, Dusty Phillips, and Phil Schalm 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 agre...
""" Copyright 2010 Jason Chu, Dusty Phillips, and Phil Schalm 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 agre...
Append a trailing newline to the project directory
Append a trailing newline to the project directory
Python
apache-2.0
pnomolos/greatbigcrane,pnomolos/greatbigcrane
""" Copyright 2010 Jason Chu, Dusty Phillips, and Phil Schalm 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 agre...
""" Copyright 2010 Jason Chu, Dusty Phillips, and Phil Schalm 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 agre...
<commit_before>""" Copyright 2010 Jason Chu, Dusty Phillips, and Phil Schalm 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 applica...
""" Copyright 2010 Jason Chu, Dusty Phillips, and Phil Schalm 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 agre...
""" Copyright 2010 Jason Chu, Dusty Phillips, and Phil Schalm 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 agre...
<commit_before>""" Copyright 2010 Jason Chu, Dusty Phillips, and Phil Schalm 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 applica...
62454216b7d0426c23d75ba4aafd761093447e63
compiler.py
compiler.py
#!/usr/local/bin/python3 import http.client, urllib.parse, sys, argparse def main(): parser = argparse.ArgumentParser() parser.add_argument("--js", default='/dev/stdin', help="Input file") parser.add_argument("--js_output_file", default='/dev/stdout', help="Output file") parser.add_argument("--compila...
#!/usr/local/bin/python3 import http.client, urllib.parse, sys, argparse def main(): parser = argparse.ArgumentParser() parser.add_argument("--js", default='/dev/stdin', help="Input file") parser.add_argument("--js_output_file", default='/dev/stdout', help="Output file") parser.add_argument("--compila...
Add js_externs parameter for API
Add js_externs parameter for API
Python
mit
femtopixel/docker-google-closure-compiler-api,femtopixel/docker-google-closure-compiler-api
#!/usr/local/bin/python3 import http.client, urllib.parse, sys, argparse def main(): parser = argparse.ArgumentParser() parser.add_argument("--js", default='/dev/stdin', help="Input file") parser.add_argument("--js_output_file", default='/dev/stdout', help="Output file") parser.add_argument("--compila...
#!/usr/local/bin/python3 import http.client, urllib.parse, sys, argparse def main(): parser = argparse.ArgumentParser() parser.add_argument("--js", default='/dev/stdin', help="Input file") parser.add_argument("--js_output_file", default='/dev/stdout', help="Output file") parser.add_argument("--compila...
<commit_before>#!/usr/local/bin/python3 import http.client, urllib.parse, sys, argparse def main(): parser = argparse.ArgumentParser() parser.add_argument("--js", default='/dev/stdin', help="Input file") parser.add_argument("--js_output_file", default='/dev/stdout', help="Output file") parser.add_argu...
#!/usr/local/bin/python3 import http.client, urllib.parse, sys, argparse def main(): parser = argparse.ArgumentParser() parser.add_argument("--js", default='/dev/stdin', help="Input file") parser.add_argument("--js_output_file", default='/dev/stdout', help="Output file") parser.add_argument("--compila...
#!/usr/local/bin/python3 import http.client, urllib.parse, sys, argparse def main(): parser = argparse.ArgumentParser() parser.add_argument("--js", default='/dev/stdin', help="Input file") parser.add_argument("--js_output_file", default='/dev/stdout', help="Output file") parser.add_argument("--compila...
<commit_before>#!/usr/local/bin/python3 import http.client, urllib.parse, sys, argparse def main(): parser = argparse.ArgumentParser() parser.add_argument("--js", default='/dev/stdin', help="Input file") parser.add_argument("--js_output_file", default='/dev/stdout', help="Output file") parser.add_argu...
d8344f9bea9cfbc8ab22b952f223d2365de907b4
cli_helpers/tabular_output/terminaltables_adapter.py
cli_helpers/tabular_output/terminaltables_adapter.py
# -*- coding: utf-8 -*- """Format adapter for the terminaltables module.""" import terminaltables from cli_helpers.utils import filter_dict_by_key from .preprocessors import (bytes_to_string, align_decimals, override_missing_value) supported_formats = ('ascii', 'double', 'github') preproc...
# -*- coding: utf-8 -*- """Format adapter for the terminaltables module.""" import terminaltables from cli_helpers.utils import filter_dict_by_key from .preprocessors import (bytes_to_string, align_decimals, override_missing_value) supported_formats = ('ascii', 'double', 'github') preproc...
Remove try/except that should never be hit.
Remove try/except that should never be hit. Increases code coverage.
Python
bsd-3-clause
dbcli/cli_helpers,dbcli/cli_helpers
# -*- coding: utf-8 -*- """Format adapter for the terminaltables module.""" import terminaltables from cli_helpers.utils import filter_dict_by_key from .preprocessors import (bytes_to_string, align_decimals, override_missing_value) supported_formats = ('ascii', 'double', 'github') preproc...
# -*- coding: utf-8 -*- """Format adapter for the terminaltables module.""" import terminaltables from cli_helpers.utils import filter_dict_by_key from .preprocessors import (bytes_to_string, align_decimals, override_missing_value) supported_formats = ('ascii', 'double', 'github') preproc...
<commit_before># -*- coding: utf-8 -*- """Format adapter for the terminaltables module.""" import terminaltables from cli_helpers.utils import filter_dict_by_key from .preprocessors import (bytes_to_string, align_decimals, override_missing_value) supported_formats = ('ascii', 'double', 'g...
# -*- coding: utf-8 -*- """Format adapter for the terminaltables module.""" import terminaltables from cli_helpers.utils import filter_dict_by_key from .preprocessors import (bytes_to_string, align_decimals, override_missing_value) supported_formats = ('ascii', 'double', 'github') preproc...
# -*- coding: utf-8 -*- """Format adapter for the terminaltables module.""" import terminaltables from cli_helpers.utils import filter_dict_by_key from .preprocessors import (bytes_to_string, align_decimals, override_missing_value) supported_formats = ('ascii', 'double', 'github') preproc...
<commit_before># -*- coding: utf-8 -*- """Format adapter for the terminaltables module.""" import terminaltables from cli_helpers.utils import filter_dict_by_key from .preprocessors import (bytes_to_string, align_decimals, override_missing_value) supported_formats = ('ascii', 'double', 'g...
9a58d241e61301b9390b17e391e4b65a3ea85071
squadron/libraries/apt/__init__.py
squadron/libraries/apt/__init__.py
import os import subprocess from string import find def run_command(command): p = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE) out, err = p.communicate() return out,err def schema(): """ This returns """ return { 'title': 'apt schema', 'type': 'stri...
import os import subprocess from string import find def run_command(command): p = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE) out, err = p.communicate() return out,err def schema(): """ This returns """ return { 'title': 'apt schema', 'type': 'stri...
Remove extra print in apt
Remove extra print in apt
Python
mit
gosquadron/squadron,gosquadron/squadron
import os import subprocess from string import find def run_command(command): p = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE) out, err = p.communicate() return out,err def schema(): """ This returns """ return { 'title': 'apt schema', 'type': 'stri...
import os import subprocess from string import find def run_command(command): p = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE) out, err = p.communicate() return out,err def schema(): """ This returns """ return { 'title': 'apt schema', 'type': 'stri...
<commit_before>import os import subprocess from string import find def run_command(command): p = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE) out, err = p.communicate() return out,err def schema(): """ This returns """ return { 'title': 'apt schema', ...
import os import subprocess from string import find def run_command(command): p = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE) out, err = p.communicate() return out,err def schema(): """ This returns """ return { 'title': 'apt schema', 'type': 'stri...
import os import subprocess from string import find def run_command(command): p = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE) out, err = p.communicate() return out,err def schema(): """ This returns """ return { 'title': 'apt schema', 'type': 'stri...
<commit_before>import os import subprocess from string import find def run_command(command): p = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE) out, err = p.communicate() return out,err def schema(): """ This returns """ return { 'title': 'apt schema', ...
aae84224b5a2d1689b1739da319d140474702c96
zuice/bindings.py
zuice/bindings.py
class Bindings(object): def __init__(self): self._bindings = {} def bind(self, key): if key in self: raise AlreadyBoundException("Cannot rebind key: %s" % key) return Binder(key, self._bindings) def copy(self): copy = Bindings() copy._bindings = ...
class Bindings(object): def __init__(self): self._bindings = {} def bind(self, key, provider=None): if key in self: raise AlreadyBoundException("Cannot rebind key: %s" % key) if provider is None: return Binder(key, self) else: ...
Simplify detection of keys already bound
Simplify detection of keys already bound
Python
bsd-2-clause
mwilliamson/zuice
class Bindings(object): def __init__(self): self._bindings = {} def bind(self, key): if key in self: raise AlreadyBoundException("Cannot rebind key: %s" % key) return Binder(key, self._bindings) def copy(self): copy = Bindings() copy._bindings = ...
class Bindings(object): def __init__(self): self._bindings = {} def bind(self, key, provider=None): if key in self: raise AlreadyBoundException("Cannot rebind key: %s" % key) if provider is None: return Binder(key, self) else: ...
<commit_before>class Bindings(object): def __init__(self): self._bindings = {} def bind(self, key): if key in self: raise AlreadyBoundException("Cannot rebind key: %s" % key) return Binder(key, self._bindings) def copy(self): copy = Bindings() co...
class Bindings(object): def __init__(self): self._bindings = {} def bind(self, key, provider=None): if key in self: raise AlreadyBoundException("Cannot rebind key: %s" % key) if provider is None: return Binder(key, self) else: ...
class Bindings(object): def __init__(self): self._bindings = {} def bind(self, key): if key in self: raise AlreadyBoundException("Cannot rebind key: %s" % key) return Binder(key, self._bindings) def copy(self): copy = Bindings() copy._bindings = ...
<commit_before>class Bindings(object): def __init__(self): self._bindings = {} def bind(self, key): if key in self: raise AlreadyBoundException("Cannot rebind key: %s" % key) return Binder(key, self._bindings) def copy(self): copy = Bindings() co...
66212e51341562f156353a0ae195d15b0d22b21b
scripts/import.py
scripts/import.py
#!/usr/bin/env python import sys import os import requests import multiprocessing def list_files(directory): for root, subdirs, files in os.walk(directory): print("ROOT: {}".format(root)) for file in files: yield os.path.abspath(os.path.join(root, file)) for subdir in subdirs:...
#!/usr/bin/env python import sys import json import os import requests import multiprocessing def list_files(directory): for root, subdirs, files in os.walk(directory): print("ROOT: {}".format(root)) for file in files: yield os.path.abspath(os.path.join(root, file)) for subdir...
PUT services rather than POSTing them
PUT services rather than POSTing them
Python
mit
RichardKnop/digitalmarketplace-api,RichardKnop/digitalmarketplace-api,RichardKnop/digitalmarketplace-api,mtekel/digitalmarketplace-api,mtekel/digitalmarketplace-api,RichardKnop/digitalmarketplace-api,alphagov/digitalmarketplace-api,mtekel/digitalmarketplace-api,alphagov/digitalmarketplace-api,mtekel/digitalmarketplace-...
#!/usr/bin/env python import sys import os import requests import multiprocessing def list_files(directory): for root, subdirs, files in os.walk(directory): print("ROOT: {}".format(root)) for file in files: yield os.path.abspath(os.path.join(root, file)) for subdir in subdirs:...
#!/usr/bin/env python import sys import json import os import requests import multiprocessing def list_files(directory): for root, subdirs, files in os.walk(directory): print("ROOT: {}".format(root)) for file in files: yield os.path.abspath(os.path.join(root, file)) for subdir...
<commit_before>#!/usr/bin/env python import sys import os import requests import multiprocessing def list_files(directory): for root, subdirs, files in os.walk(directory): print("ROOT: {}".format(root)) for file in files: yield os.path.abspath(os.path.join(root, file)) for sub...
#!/usr/bin/env python import sys import json import os import requests import multiprocessing def list_files(directory): for root, subdirs, files in os.walk(directory): print("ROOT: {}".format(root)) for file in files: yield os.path.abspath(os.path.join(root, file)) for subdir...
#!/usr/bin/env python import sys import os import requests import multiprocessing def list_files(directory): for root, subdirs, files in os.walk(directory): print("ROOT: {}".format(root)) for file in files: yield os.path.abspath(os.path.join(root, file)) for subdir in subdirs:...
<commit_before>#!/usr/bin/env python import sys import os import requests import multiprocessing def list_files(directory): for root, subdirs, files in os.walk(directory): print("ROOT: {}".format(root)) for file in files: yield os.path.abspath(os.path.join(root, file)) for sub...
95b08a7cb2d473c25c1d326b0394336955b47af4
appy/models.py
appy/models.py
from django.db import models from django.contrib.auth.models import User class Tag(models.Model): description = models.TextField() class Position(models.Model): company = models.TextField() job_title = models.TextField() description = models.TextField() tags = models.ManyToManyField(Tag) class...
from django.db import models from django.contrib.auth.models import User class Tag(models.Model): description = models.TextField() def __unicode__(self): return self.description class Position(models.Model): company = models.TextField() job_title = models.TextField() description = model...
Add unicode representations for tags/positions
Add unicode representations for tags/positions
Python
mit
merdey/ApPy,merdey/ApPy
from django.db import models from django.contrib.auth.models import User class Tag(models.Model): description = models.TextField() class Position(models.Model): company = models.TextField() job_title = models.TextField() description = models.TextField() tags = models.ManyToManyField(Tag) class...
from django.db import models from django.contrib.auth.models import User class Tag(models.Model): description = models.TextField() def __unicode__(self): return self.description class Position(models.Model): company = models.TextField() job_title = models.TextField() description = model...
<commit_before>from django.db import models from django.contrib.auth.models import User class Tag(models.Model): description = models.TextField() class Position(models.Model): company = models.TextField() job_title = models.TextField() description = models.TextField() tags = models.ManyToManyFie...
from django.db import models from django.contrib.auth.models import User class Tag(models.Model): description = models.TextField() def __unicode__(self): return self.description class Position(models.Model): company = models.TextField() job_title = models.TextField() description = model...
from django.db import models from django.contrib.auth.models import User class Tag(models.Model): description = models.TextField() class Position(models.Model): company = models.TextField() job_title = models.TextField() description = models.TextField() tags = models.ManyToManyField(Tag) class...
<commit_before>from django.db import models from django.contrib.auth.models import User class Tag(models.Model): description = models.TextField() class Position(models.Model): company = models.TextField() job_title = models.TextField() description = models.TextField() tags = models.ManyToManyFie...
2b43ab4eb41e305c5bdadf5c338e134e5569249d
tests/conftest.py
tests/conftest.py
# pylint: disable=C0111 import pytest import os import tarfile BASEDIR = os.path.dirname(__file__) @pytest.fixture(autouse=False) def set_up(tmpdir): # print BASEDIR tmpdir.chdir() tar = tarfile.open(os.path.join(BASEDIR, "MockRepos.tar.gz")) tar.extractall() tar.close() os.chdir('MockRepos') print('In directo...
# pylint: disable=C0111 import pytest import os import tarfile BASEDIR = os.path.dirname(__file__) @pytest.fixture(autouse=False) def set_up(tmpdir): # print BASEDIR tmpdir.chdir() tar = tarfile.open(os.path.join(BASEDIR, "MockRepos.tar.gz")) tar.extractall() tar.close() os.chdir('MockRepos') print('In directo...
Add session setup and teardown fixtures.
Add session setup and teardown fixtures.
Python
mit
bilderbuchi/ofStateManager
# pylint: disable=C0111 import pytest import os import tarfile BASEDIR = os.path.dirname(__file__) @pytest.fixture(autouse=False) def set_up(tmpdir): # print BASEDIR tmpdir.chdir() tar = tarfile.open(os.path.join(BASEDIR, "MockRepos.tar.gz")) tar.extractall() tar.close() os.chdir('MockRepos') print('In directo...
# pylint: disable=C0111 import pytest import os import tarfile BASEDIR = os.path.dirname(__file__) @pytest.fixture(autouse=False) def set_up(tmpdir): # print BASEDIR tmpdir.chdir() tar = tarfile.open(os.path.join(BASEDIR, "MockRepos.tar.gz")) tar.extractall() tar.close() os.chdir('MockRepos') print('In directo...
<commit_before># pylint: disable=C0111 import pytest import os import tarfile BASEDIR = os.path.dirname(__file__) @pytest.fixture(autouse=False) def set_up(tmpdir): # print BASEDIR tmpdir.chdir() tar = tarfile.open(os.path.join(BASEDIR, "MockRepos.tar.gz")) tar.extractall() tar.close() os.chdir('MockRepos') pr...
# pylint: disable=C0111 import pytest import os import tarfile BASEDIR = os.path.dirname(__file__) @pytest.fixture(autouse=False) def set_up(tmpdir): # print BASEDIR tmpdir.chdir() tar = tarfile.open(os.path.join(BASEDIR, "MockRepos.tar.gz")) tar.extractall() tar.close() os.chdir('MockRepos') print('In directo...
# pylint: disable=C0111 import pytest import os import tarfile BASEDIR = os.path.dirname(__file__) @pytest.fixture(autouse=False) def set_up(tmpdir): # print BASEDIR tmpdir.chdir() tar = tarfile.open(os.path.join(BASEDIR, "MockRepos.tar.gz")) tar.extractall() tar.close() os.chdir('MockRepos') print('In directo...
<commit_before># pylint: disable=C0111 import pytest import os import tarfile BASEDIR = os.path.dirname(__file__) @pytest.fixture(autouse=False) def set_up(tmpdir): # print BASEDIR tmpdir.chdir() tar = tarfile.open(os.path.join(BASEDIR, "MockRepos.tar.gz")) tar.extractall() tar.close() os.chdir('MockRepos') pr...
98bded02b1b5116db640f5e58f73920108af0b0c
tests/test_set.py
tests/test_set.py
import matplotlib import fishbowl original = [] updated = [r'\usepackage{mathspec}', r'\setallmainfonts(Digits,Latin,Greek){Arbitrary}'] def test_context_set(): fishbowl.reset_style() with fishbowl.style(axes='minimal', palette='gourami', font='Arbitrary'): assert matplotlib.rcParams['pgf...
import matplotlib import fishbowl original = True updated = False def test_context_set(): fishbowl.reset_style() with fishbowl.style(axes='minimal', palette='gourami', font='Arbitrary'): assert matplotlib.rcParams['axes.spines.left'] == updated def test_context_reset(): fishbowl.reset_style() ...
Update tests to remove pgf.preamble
Update tests to remove pgf.preamble
Python
mit
baxen/fishbowl
import matplotlib import fishbowl original = [] updated = [r'\usepackage{mathspec}', r'\setallmainfonts(Digits,Latin,Greek){Arbitrary}'] def test_context_set(): fishbowl.reset_style() with fishbowl.style(axes='minimal', palette='gourami', font='Arbitrary'): assert matplotlib.rcParams['pgf...
import matplotlib import fishbowl original = True updated = False def test_context_set(): fishbowl.reset_style() with fishbowl.style(axes='minimal', palette='gourami', font='Arbitrary'): assert matplotlib.rcParams['axes.spines.left'] == updated def test_context_reset(): fishbowl.reset_style() ...
<commit_before>import matplotlib import fishbowl original = [] updated = [r'\usepackage{mathspec}', r'\setallmainfonts(Digits,Latin,Greek){Arbitrary}'] def test_context_set(): fishbowl.reset_style() with fishbowl.style(axes='minimal', palette='gourami', font='Arbitrary'): assert matplotli...
import matplotlib import fishbowl original = True updated = False def test_context_set(): fishbowl.reset_style() with fishbowl.style(axes='minimal', palette='gourami', font='Arbitrary'): assert matplotlib.rcParams['axes.spines.left'] == updated def test_context_reset(): fishbowl.reset_style() ...
import matplotlib import fishbowl original = [] updated = [r'\usepackage{mathspec}', r'\setallmainfonts(Digits,Latin,Greek){Arbitrary}'] def test_context_set(): fishbowl.reset_style() with fishbowl.style(axes='minimal', palette='gourami', font='Arbitrary'): assert matplotlib.rcParams['pgf...
<commit_before>import matplotlib import fishbowl original = [] updated = [r'\usepackage{mathspec}', r'\setallmainfonts(Digits,Latin,Greek){Arbitrary}'] def test_context_set(): fishbowl.reset_style() with fishbowl.style(axes='minimal', palette='gourami', font='Arbitrary'): assert matplotli...
e6d965cc36d92ee8f138d487614244c6e3deda69
run_tests.py
run_tests.py
from __future__ import division import libtbx.load_env def discover_pytests(module): try: import os import pytest except ImportError: return [] if 'LIBTBX_SKIP_PYTEST' in os.environ: return [] test_list = [] dist_dir = libtbx.env.dist_path(module) class TestDiscoveryPlugin: def pytest_...
from __future__ import division import libtbx.load_env def discover_pytests(module): try: import os import pytest except ImportError: def pytest_warning(): print "=" * 60 print "WARNING: Skipping some tests\n" print "To run all available tests you need to install pytest" print "...
Add warning for skipped tests if pytest not available
Add warning for skipped tests if pytest not available
Python
bsd-3-clause
xia2/i19
from __future__ import division import libtbx.load_env def discover_pytests(module): try: import os import pytest except ImportError: return [] if 'LIBTBX_SKIP_PYTEST' in os.environ: return [] test_list = [] dist_dir = libtbx.env.dist_path(module) class TestDiscoveryPlugin: def pytest_...
from __future__ import division import libtbx.load_env def discover_pytests(module): try: import os import pytest except ImportError: def pytest_warning(): print "=" * 60 print "WARNING: Skipping some tests\n" print "To run all available tests you need to install pytest" print "...
<commit_before>from __future__ import division import libtbx.load_env def discover_pytests(module): try: import os import pytest except ImportError: return [] if 'LIBTBX_SKIP_PYTEST' in os.environ: return [] test_list = [] dist_dir = libtbx.env.dist_path(module) class TestDiscoveryPlugin: ...
from __future__ import division import libtbx.load_env def discover_pytests(module): try: import os import pytest except ImportError: def pytest_warning(): print "=" * 60 print "WARNING: Skipping some tests\n" print "To run all available tests you need to install pytest" print "...
from __future__ import division import libtbx.load_env def discover_pytests(module): try: import os import pytest except ImportError: return [] if 'LIBTBX_SKIP_PYTEST' in os.environ: return [] test_list = [] dist_dir = libtbx.env.dist_path(module) class TestDiscoveryPlugin: def pytest_...
<commit_before>from __future__ import division import libtbx.load_env def discover_pytests(module): try: import os import pytest except ImportError: return [] if 'LIBTBX_SKIP_PYTEST' in os.environ: return [] test_list = [] dist_dir = libtbx.env.dist_path(module) class TestDiscoveryPlugin: ...
baedff75f2b86f09368e3bd72b72e27bf887cc88
rotational-cipher/rotational_cipher.py
rotational-cipher/rotational_cipher.py
import string UPPER = string.ascii_uppercase LOWER = string.ascii_lowercase def rotate(s, n): return "".join(rot_gen(s,n)) def shift_rules(n): shifted = UPPER[n:] + UPPER[:n] + LOWER[n:] + LOWER[:n] return {k:v for k,v in zip(UPPER+LOWER, shifted)} def rot_gen(s, n): rules = shift_rules(n) f...
import string UPPER = string.ascii_uppercase LOWER = string.ascii_lowercase def rotate(s, n): rules = shift_rules(n) return "".join(map(lambda k: rules.get(k, k), s)) def shift_rules(n): shifted = UPPER[n:] + UPPER[:n] + LOWER[n:] + LOWER[:n] return {k:v for k,v in zip(UPPER+LOWER, shifted)}
Use lambda function with method
Use lambda function with method
Python
agpl-3.0
CubicComet/exercism-python-solutions
import string UPPER = string.ascii_uppercase LOWER = string.ascii_lowercase def rotate(s, n): return "".join(rot_gen(s,n)) def shift_rules(n): shifted = UPPER[n:] + UPPER[:n] + LOWER[n:] + LOWER[:n] return {k:v for k,v in zip(UPPER+LOWER, shifted)} def rot_gen(s, n): rules = shift_rules(n) f...
import string UPPER = string.ascii_uppercase LOWER = string.ascii_lowercase def rotate(s, n): rules = shift_rules(n) return "".join(map(lambda k: rules.get(k, k), s)) def shift_rules(n): shifted = UPPER[n:] + UPPER[:n] + LOWER[n:] + LOWER[:n] return {k:v for k,v in zip(UPPER+LOWER, shifted)}
<commit_before>import string UPPER = string.ascii_uppercase LOWER = string.ascii_lowercase def rotate(s, n): return "".join(rot_gen(s,n)) def shift_rules(n): shifted = UPPER[n:] + UPPER[:n] + LOWER[n:] + LOWER[:n] return {k:v for k,v in zip(UPPER+LOWER, shifted)} def rot_gen(s, n): rules = shift...
import string UPPER = string.ascii_uppercase LOWER = string.ascii_lowercase def rotate(s, n): rules = shift_rules(n) return "".join(map(lambda k: rules.get(k, k), s)) def shift_rules(n): shifted = UPPER[n:] + UPPER[:n] + LOWER[n:] + LOWER[:n] return {k:v for k,v in zip(UPPER+LOWER, shifted)}
import string UPPER = string.ascii_uppercase LOWER = string.ascii_lowercase def rotate(s, n): return "".join(rot_gen(s,n)) def shift_rules(n): shifted = UPPER[n:] + UPPER[:n] + LOWER[n:] + LOWER[:n] return {k:v for k,v in zip(UPPER+LOWER, shifted)} def rot_gen(s, n): rules = shift_rules(n) f...
<commit_before>import string UPPER = string.ascii_uppercase LOWER = string.ascii_lowercase def rotate(s, n): return "".join(rot_gen(s,n)) def shift_rules(n): shifted = UPPER[n:] + UPPER[:n] + LOWER[n:] + LOWER[:n] return {k:v for k,v in zip(UPPER+LOWER, shifted)} def rot_gen(s, n): rules = shift...
939ebf2eb4536fd5a6318d6cc4b55a9dc4c8def2
documentation/compile_documentation.py
documentation/compile_documentation.py
import sys import os def find_code(text): START_TAG = '```lpg' END_TAG = '```' first_index = text.find(START_TAG) if first_index == -1: return None, None last_index = text.find(END_TAG, first_index + 1) return first_index + len(START_TAG), last_index def process_file(path): conte...
import sys import os def find_code(text): START_TAG = '```lpg' END_TAG = '```' first_index = text.find(START_TAG) if first_index == -1: return None, None last_index = text.find(END_TAG, first_index + 1) return first_index + len(START_TAG), last_index def process_file(path): conte...
Split the documentation compilation into different files
Split the documentation compilation into different files
Python
mit
TyRoXx/Lpg,TyRoXx/Lpg,TyRoXx/Lpg,mamazu/Lpg,mamazu/Lpg,mamazu/Lpg,TyRoXx/Lpg,mamazu/Lpg,TyRoXx/Lpg
import sys import os def find_code(text): START_TAG = '```lpg' END_TAG = '```' first_index = text.find(START_TAG) if first_index == -1: return None, None last_index = text.find(END_TAG, first_index + 1) return first_index + len(START_TAG), last_index def process_file(path): conte...
import sys import os def find_code(text): START_TAG = '```lpg' END_TAG = '```' first_index = text.find(START_TAG) if first_index == -1: return None, None last_index = text.find(END_TAG, first_index + 1) return first_index + len(START_TAG), last_index def process_file(path): conte...
<commit_before>import sys import os def find_code(text): START_TAG = '```lpg' END_TAG = '```' first_index = text.find(START_TAG) if first_index == -1: return None, None last_index = text.find(END_TAG, first_index + 1) return first_index + len(START_TAG), last_index def process_file(p...
import sys import os def find_code(text): START_TAG = '```lpg' END_TAG = '```' first_index = text.find(START_TAG) if first_index == -1: return None, None last_index = text.find(END_TAG, first_index + 1) return first_index + len(START_TAG), last_index def process_file(path): conte...
import sys import os def find_code(text): START_TAG = '```lpg' END_TAG = '```' first_index = text.find(START_TAG) if first_index == -1: return None, None last_index = text.find(END_TAG, first_index + 1) return first_index + len(START_TAG), last_index def process_file(path): conte...
<commit_before>import sys import os def find_code(text): START_TAG = '```lpg' END_TAG = '```' first_index = text.find(START_TAG) if first_index == -1: return None, None last_index = text.find(END_TAG, first_index + 1) return first_index + len(START_TAG), last_index def process_file(p...
c7fd327623dfa84a91931771265932d4da95d766
001-xoxoxo-obj/harness.py
001-xoxoxo-obj/harness.py
from game import Game from input_con import InputCon from output_con import OutputCon class Harness(): def __init__(self, output, inputs): self._game = Game() self._output = output self._inputs = inputs def Start(self): self._output.show_welcome() while True: self._outpu...
from game import Game from input_con import InputCon from output_con import OutputCon class Harness(): def __init__(self, output, inputs): self._game = Game() self._output = output self._inputs = inputs def Start(self): self._output.show_welcome() while True: self._outpu...
Fix nierozpoznawania bledu gracza w pierwszym ruchu
Fix nierozpoznawania bledu gracza w pierwszym ruchu
Python
mit
gynvael/stream,gynvael/stream,gynvael/stream,gynvael/stream,gynvael/stream,gynvael/stream
from game import Game from input_con import InputCon from output_con import OutputCon class Harness(): def __init__(self, output, inputs): self._game = Game() self._output = output self._inputs = inputs def Start(self): self._output.show_welcome() while True: self._outpu...
from game import Game from input_con import InputCon from output_con import OutputCon class Harness(): def __init__(self, output, inputs): self._game = Game() self._output = output self._inputs = inputs def Start(self): self._output.show_welcome() while True: self._outpu...
<commit_before>from game import Game from input_con import InputCon from output_con import OutputCon class Harness(): def __init__(self, output, inputs): self._game = Game() self._output = output self._inputs = inputs def Start(self): self._output.show_welcome() while True: ...
from game import Game from input_con import InputCon from output_con import OutputCon class Harness(): def __init__(self, output, inputs): self._game = Game() self._output = output self._inputs = inputs def Start(self): self._output.show_welcome() while True: self._outpu...
from game import Game from input_con import InputCon from output_con import OutputCon class Harness(): def __init__(self, output, inputs): self._game = Game() self._output = output self._inputs = inputs def Start(self): self._output.show_welcome() while True: self._outpu...
<commit_before>from game import Game from input_con import InputCon from output_con import OutputCon class Harness(): def __init__(self, output, inputs): self._game = Game() self._output = output self._inputs = inputs def Start(self): self._output.show_welcome() while True: ...
9a34e663f9ef65cdac91c42dcf198ae28d4385be
txircd/modbase.py
txircd/modbase.py
# The purpose of this file is to provide base classes with the needed functions # already defined; this allows us to guarantee that any exceptions raised # during function calls are a problem with the module and not just that the # particular function isn't defined. class Module(object): def hook(self, base): self....
# The purpose of this file is to provide base classes with the needed functions # already defined; this allows us to guarantee that any exceptions raised # during function calls are a problem with the module and not just that the # particular function isn't defined. class Module(object): def hook(self, base): self....
Add a function for commands to process parameters
Add a function for commands to process parameters
Python
bsd-3-clause
ElementalAlchemist/txircd,Heufneutje/txircd,DesertBus/txircd
# The purpose of this file is to provide base classes with the needed functions # already defined; this allows us to guarantee that any exceptions raised # during function calls are a problem with the module and not just that the # particular function isn't defined. class Module(object): def hook(self, base): self....
# The purpose of this file is to provide base classes with the needed functions # already defined; this allows us to guarantee that any exceptions raised # during function calls are a problem with the module and not just that the # particular function isn't defined. class Module(object): def hook(self, base): self....
<commit_before># The purpose of this file is to provide base classes with the needed functions # already defined; this allows us to guarantee that any exceptions raised # during function calls are a problem with the module and not just that the # particular function isn't defined. class Module(object): def hook(self,...
# The purpose of this file is to provide base classes with the needed functions # already defined; this allows us to guarantee that any exceptions raised # during function calls are a problem with the module and not just that the # particular function isn't defined. class Module(object): def hook(self, base): self....
# The purpose of this file is to provide base classes with the needed functions # already defined; this allows us to guarantee that any exceptions raised # during function calls are a problem with the module and not just that the # particular function isn't defined. class Module(object): def hook(self, base): self....
<commit_before># The purpose of this file is to provide base classes with the needed functions # already defined; this allows us to guarantee that any exceptions raised # during function calls are a problem with the module and not just that the # particular function isn't defined. class Module(object): def hook(self,...
a1cc1c08e9ff36ff0293f0224ca0acb41f065073
alg_selection_sort.py
alg_selection_sort.py
def selection_sort(a_list): """Selection Sort algortihm. Concept: Find out the maximun item's original slot first, then switch it to the max slot. Iterate the procedure. """ for max_slot in reversed(range(len(a_list))): select_slot = 0 for slot in range(1, max_slot + 1): ...
def selection_sort(a_list): """Selection Sort algortihm. Concept: - Find out the maximun item's original slot first, - then swap it and the item at the max slot. - Iterate the procedure. """ for max_slot in reversed(range(len(a_list))): select_slot = 0 for slot in ra...
Revise doc string for selection sort’s concept
Revise doc string for selection sort’s concept
Python
bsd-2-clause
bowen0701/algorithms_data_structures
def selection_sort(a_list): """Selection Sort algortihm. Concept: Find out the maximun item's original slot first, then switch it to the max slot. Iterate the procedure. """ for max_slot in reversed(range(len(a_list))): select_slot = 0 for slot in range(1, max_slot + 1): ...
def selection_sort(a_list): """Selection Sort algortihm. Concept: - Find out the maximun item's original slot first, - then swap it and the item at the max slot. - Iterate the procedure. """ for max_slot in reversed(range(len(a_list))): select_slot = 0 for slot in ra...
<commit_before>def selection_sort(a_list): """Selection Sort algortihm. Concept: Find out the maximun item's original slot first, then switch it to the max slot. Iterate the procedure. """ for max_slot in reversed(range(len(a_list))): select_slot = 0 for slot in range(1, max_slot + ...
def selection_sort(a_list): """Selection Sort algortihm. Concept: - Find out the maximun item's original slot first, - then swap it and the item at the max slot. - Iterate the procedure. """ for max_slot in reversed(range(len(a_list))): select_slot = 0 for slot in ra...
def selection_sort(a_list): """Selection Sort algortihm. Concept: Find out the maximun item's original slot first, then switch it to the max slot. Iterate the procedure. """ for max_slot in reversed(range(len(a_list))): select_slot = 0 for slot in range(1, max_slot + 1): ...
<commit_before>def selection_sort(a_list): """Selection Sort algortihm. Concept: Find out the maximun item's original slot first, then switch it to the max slot. Iterate the procedure. """ for max_slot in reversed(range(len(a_list))): select_slot = 0 for slot in range(1, max_slot + ...
1be7237169f0c0920d4891d7fb20b03327037cdb
osgtest/tests/test_40_proxy.py
osgtest/tests/test_40_proxy.py
import osgtest.library.core as core import osgtest.library.osgunittest as osgunittest import unittest class TestGridProxyInit(osgunittest.OSGTestCase): def test_01_grid_proxy_init(self): core.skip_ok_unless_installed('globus-proxy-utils') command = ('grid-proxy-init', '-debug') password = ...
import osgtest.library.core as core import osgtest.library.osgunittest as osgunittest import pprint import errno class TestGridProxyInit(osgunittest.OSGTestCase): def test_00_list_proxies(self): command = ('ls', '-lF', '/tmp/x509up_u*') status, stdout, _ = core.system(command, 'List proxies') ...
Add debugging code to proxy generation
Add debugging code to proxy generation git-svn-id: 884a03e47e2adb735d896e55bb5ad6bc3421ba19@18806 4e558342-562e-0410-864c-e07659590f8c
Python
apache-2.0
efajardo/osg-test,efajardo/osg-test
import osgtest.library.core as core import osgtest.library.osgunittest as osgunittest import unittest class TestGridProxyInit(osgunittest.OSGTestCase): def test_01_grid_proxy_init(self): core.skip_ok_unless_installed('globus-proxy-utils') command = ('grid-proxy-init', '-debug') password = ...
import osgtest.library.core as core import osgtest.library.osgunittest as osgunittest import pprint import errno class TestGridProxyInit(osgunittest.OSGTestCase): def test_00_list_proxies(self): command = ('ls', '-lF', '/tmp/x509up_u*') status, stdout, _ = core.system(command, 'List proxies') ...
<commit_before>import osgtest.library.core as core import osgtest.library.osgunittest as osgunittest import unittest class TestGridProxyInit(osgunittest.OSGTestCase): def test_01_grid_proxy_init(self): core.skip_ok_unless_installed('globus-proxy-utils') command = ('grid-proxy-init', '-debug') ...
import osgtest.library.core as core import osgtest.library.osgunittest as osgunittest import pprint import errno class TestGridProxyInit(osgunittest.OSGTestCase): def test_00_list_proxies(self): command = ('ls', '-lF', '/tmp/x509up_u*') status, stdout, _ = core.system(command, 'List proxies') ...
import osgtest.library.core as core import osgtest.library.osgunittest as osgunittest import unittest class TestGridProxyInit(osgunittest.OSGTestCase): def test_01_grid_proxy_init(self): core.skip_ok_unless_installed('globus-proxy-utils') command = ('grid-proxy-init', '-debug') password = ...
<commit_before>import osgtest.library.core as core import osgtest.library.osgunittest as osgunittest import unittest class TestGridProxyInit(osgunittest.OSGTestCase): def test_01_grid_proxy_init(self): core.skip_ok_unless_installed('globus-proxy-utils') command = ('grid-proxy-init', '-debug') ...
a30e51ccb74bc55924be6f7f79dc4b6038c9b457
altair/examples/bar_chart_with_highlighted_segment.py
altair/examples/bar_chart_with_highlighted_segment.py
""" Bar Chart with Highlighted Segment ---------------------------------- This example shows a bar chart that highlights values beyond a threshold. """ import altair as alt import pandas as pd from vega_datasets import data source = data.wheat() threshold = pd.DataFrame([{"threshold": 90}]) bars = alt.Chart(source).m...
""" Bar Chart with Highlighted Segment ---------------------------------- This example shows a bar chart that highlights values beyond a threshold. """ # category: bar charts import altair as alt import pandas as pd from vega_datasets import data source = data.wheat() threshold = pd.DataFrame([{"threshold": 90}]) bar...
Move bar chart with highlighted segment chart into the bar charts section
Move bar chart with highlighted segment chart into the bar charts section
Python
bsd-3-clause
altair-viz/altair
""" Bar Chart with Highlighted Segment ---------------------------------- This example shows a bar chart that highlights values beyond a threshold. """ import altair as alt import pandas as pd from vega_datasets import data source = data.wheat() threshold = pd.DataFrame([{"threshold": 90}]) bars = alt.Chart(source).m...
""" Bar Chart with Highlighted Segment ---------------------------------- This example shows a bar chart that highlights values beyond a threshold. """ # category: bar charts import altair as alt import pandas as pd from vega_datasets import data source = data.wheat() threshold = pd.DataFrame([{"threshold": 90}]) bar...
<commit_before>""" Bar Chart with Highlighted Segment ---------------------------------- This example shows a bar chart that highlights values beyond a threshold. """ import altair as alt import pandas as pd from vega_datasets import data source = data.wheat() threshold = pd.DataFrame([{"threshold": 90}]) bars = alt....
""" Bar Chart with Highlighted Segment ---------------------------------- This example shows a bar chart that highlights values beyond a threshold. """ # category: bar charts import altair as alt import pandas as pd from vega_datasets import data source = data.wheat() threshold = pd.DataFrame([{"threshold": 90}]) bar...
""" Bar Chart with Highlighted Segment ---------------------------------- This example shows a bar chart that highlights values beyond a threshold. """ import altair as alt import pandas as pd from vega_datasets import data source = data.wheat() threshold = pd.DataFrame([{"threshold": 90}]) bars = alt.Chart(source).m...
<commit_before>""" Bar Chart with Highlighted Segment ---------------------------------- This example shows a bar chart that highlights values beyond a threshold. """ import altair as alt import pandas as pd from vega_datasets import data source = data.wheat() threshold = pd.DataFrame([{"threshold": 90}]) bars = alt....
09340916e7db6ba8ccb5697b9444fbccc0512103
example/example/views.py
example/example/views.py
from django import forms from django.forms.formsets import formset_factory from django.shortcuts import render from djangoformsetjs.utils import formset_media_js class MyForm(forms.Form): foo = forms.CharField() class Media(object): # The form must have `formset_media_js` in its Media js = fo...
from django import forms from django.forms.formsets import formset_factory from django.shortcuts import render from djangoformsetjs.utils import formset_media_js class MyForm(forms.Form): foo = forms.CharField() class Media(object): # The form must have `formset_media_js` in its Media js = fo...
Add `can_delete=True` to the example formset
Add `can_delete=True` to the example formset
Python
bsd-2-clause
pretix/django-formset-js,pretix/django-formset-js,pretix/django-formset-js
from django import forms from django.forms.formsets import formset_factory from django.shortcuts import render from djangoformsetjs.utils import formset_media_js class MyForm(forms.Form): foo = forms.CharField() class Media(object): # The form must have `formset_media_js` in its Media js = fo...
from django import forms from django.forms.formsets import formset_factory from django.shortcuts import render from djangoformsetjs.utils import formset_media_js class MyForm(forms.Form): foo = forms.CharField() class Media(object): # The form must have `formset_media_js` in its Media js = fo...
<commit_before>from django import forms from django.forms.formsets import formset_factory from django.shortcuts import render from djangoformsetjs.utils import formset_media_js class MyForm(forms.Form): foo = forms.CharField() class Media(object): # The form must have `formset_media_js` in its Media ...
from django import forms from django.forms.formsets import formset_factory from django.shortcuts import render from djangoformsetjs.utils import formset_media_js class MyForm(forms.Form): foo = forms.CharField() class Media(object): # The form must have `formset_media_js` in its Media js = fo...
from django import forms from django.forms.formsets import formset_factory from django.shortcuts import render from djangoformsetjs.utils import formset_media_js class MyForm(forms.Form): foo = forms.CharField() class Media(object): # The form must have `formset_media_js` in its Media js = fo...
<commit_before>from django import forms from django.forms.formsets import formset_factory from django.shortcuts import render from djangoformsetjs.utils import formset_media_js class MyForm(forms.Form): foo = forms.CharField() class Media(object): # The form must have `formset_media_js` in its Media ...
de11b473a6134ed1403e91d55d30c23e6683a926
test/runner/versions.py
test/runner/versions.py
#!/usr/bin/env python """Show python and pip versions.""" import os import sys try: import pip except ImportError: pip = None print('.'.join(u'%s' % i for i in sys.version_info)) if pip: print('pip %s from %s' % (pip.__version__, os.path.dirname(pip.__file__)))
#!/usr/bin/env python """Show python and pip versions.""" import os import sys try: import pip except ImportError: pip = None print(sys.version) if pip: print('pip %s from %s' % (pip.__version__, os.path.dirname(pip.__file__)))
Revert "Relax ansible-test python version checking."
Revert "Relax ansible-test python version checking." This reverts commit d6cc3c41874b64e346639549fd18d8c41be0db8b.
Python
mit
thaim/ansible,thaim/ansible
#!/usr/bin/env python """Show python and pip versions.""" import os import sys try: import pip except ImportError: pip = None print('.'.join(u'%s' % i for i in sys.version_info)) if pip: print('pip %s from %s' % (pip.__version__, os.path.dirname(pip.__file__))) Revert "Relax ansible-test python version ...
#!/usr/bin/env python """Show python and pip versions.""" import os import sys try: import pip except ImportError: pip = None print(sys.version) if pip: print('pip %s from %s' % (pip.__version__, os.path.dirname(pip.__file__)))
<commit_before>#!/usr/bin/env python """Show python and pip versions.""" import os import sys try: import pip except ImportError: pip = None print('.'.join(u'%s' % i for i in sys.version_info)) if pip: print('pip %s from %s' % (pip.__version__, os.path.dirname(pip.__file__))) <commit_msg>Revert "Relax a...
#!/usr/bin/env python """Show python and pip versions.""" import os import sys try: import pip except ImportError: pip = None print(sys.version) if pip: print('pip %s from %s' % (pip.__version__, os.path.dirname(pip.__file__)))
#!/usr/bin/env python """Show python and pip versions.""" import os import sys try: import pip except ImportError: pip = None print('.'.join(u'%s' % i for i in sys.version_info)) if pip: print('pip %s from %s' % (pip.__version__, os.path.dirname(pip.__file__))) Revert "Relax ansible-test python version ...
<commit_before>#!/usr/bin/env python """Show python and pip versions.""" import os import sys try: import pip except ImportError: pip = None print('.'.join(u'%s' % i for i in sys.version_info)) if pip: print('pip %s from %s' % (pip.__version__, os.path.dirname(pip.__file__))) <commit_msg>Revert "Relax a...
c3ead540e7008ba1a3d01df695620bc952564805
sphinx/fabfile.py
sphinx/fabfile.py
from fabric.api import run, env, roles from fabric.contrib.project import rsync_project import sys sys.path.append("source") import conf env.roledefs = { 'web': ['bokeh.pydata.org'] } env.user = "bokeh" @roles('web') def deploy(v=None): if v is None: v = conf.version # make a backup of the old ...
from fabric.api import run, env, roles from fabric.contrib.files import exists from fabric.contrib.project import rsync_project import sys sys.path.append("source") import conf env.roledefs = { 'web': ['bokeh.pydata.org'] } env.user = "bokeh" @roles('web') def deploy(v=None): if v is None: v = conf....
Add error if latest is passed to deploy. Also check if the path exist before meaking the symlink.
Add error if latest is passed to deploy. Also check if the path exist before meaking the symlink.
Python
bsd-3-clause
Karel-van-de-Plassche/bokeh,aavanian/bokeh,clairetang6/bokeh,matbra/bokeh,quasiben/bokeh,justacec/bokeh,schoolie/bokeh,rothnic/bokeh,evidation-health/bokeh,ptitjano/bokeh,muku42/bokeh,percyfal/bokeh,daodaoliang/bokeh,KasperPRasmussen/bokeh,aiguofer/bokeh,CrazyGuo/bokeh,draperjames/bokeh,mindriot101/bokeh,percyfal/bokeh...
from fabric.api import run, env, roles from fabric.contrib.project import rsync_project import sys sys.path.append("source") import conf env.roledefs = { 'web': ['bokeh.pydata.org'] } env.user = "bokeh" @roles('web') def deploy(v=None): if v is None: v = conf.version # make a backup of the old ...
from fabric.api import run, env, roles from fabric.contrib.files import exists from fabric.contrib.project import rsync_project import sys sys.path.append("source") import conf env.roledefs = { 'web': ['bokeh.pydata.org'] } env.user = "bokeh" @roles('web') def deploy(v=None): if v is None: v = conf....
<commit_before>from fabric.api import run, env, roles from fabric.contrib.project import rsync_project import sys sys.path.append("source") import conf env.roledefs = { 'web': ['bokeh.pydata.org'] } env.user = "bokeh" @roles('web') def deploy(v=None): if v is None: v = conf.version # make a bac...
from fabric.api import run, env, roles from fabric.contrib.files import exists from fabric.contrib.project import rsync_project import sys sys.path.append("source") import conf env.roledefs = { 'web': ['bokeh.pydata.org'] } env.user = "bokeh" @roles('web') def deploy(v=None): if v is None: v = conf....
from fabric.api import run, env, roles from fabric.contrib.project import rsync_project import sys sys.path.append("source") import conf env.roledefs = { 'web': ['bokeh.pydata.org'] } env.user = "bokeh" @roles('web') def deploy(v=None): if v is None: v = conf.version # make a backup of the old ...
<commit_before>from fabric.api import run, env, roles from fabric.contrib.project import rsync_project import sys sys.path.append("source") import conf env.roledefs = { 'web': ['bokeh.pydata.org'] } env.user = "bokeh" @roles('web') def deploy(v=None): if v is None: v = conf.version # make a bac...
cb28bba6ee642828df473383ea469a6aa46ca59c
skimage/util/unique.py
skimage/util/unique.py
import numpy as np def unique_rows(ar): """Remove repeated rows from a 2D array. Parameters ---------- ar : 2D np.ndarray The input array. Returns ------- ar_out : 2D np.ndarray A copy of the input array with repeated rows removed. Raises ------ ValueError : ...
import numpy as np def unique_rows(ar): """Remove repeated rows from a 2D array. Parameters ---------- ar : 2D np.ndarray The input array. Returns ------- ar_out : 2D np.ndarray A copy of the input array with repeated rows removed. Raises ------ ValueError : ...
Add note describing array copy if discontiguous
Add note describing array copy if discontiguous
Python
bsd-3-clause
paalge/scikit-image,Midafi/scikit-image,michaelpacer/scikit-image,Britefury/scikit-image,SamHames/scikit-image,oew1v07/scikit-image,chintak/scikit-image,vighneshbirodkar/scikit-image,jwiggins/scikit-image,warmspringwinds/scikit-image,Britefury/scikit-image,rjeli/scikit-image,ofgulban/scikit-image,emon10005/scikit-image...
import numpy as np def unique_rows(ar): """Remove repeated rows from a 2D array. Parameters ---------- ar : 2D np.ndarray The input array. Returns ------- ar_out : 2D np.ndarray A copy of the input array with repeated rows removed. Raises ------ ValueError : ...
import numpy as np def unique_rows(ar): """Remove repeated rows from a 2D array. Parameters ---------- ar : 2D np.ndarray The input array. Returns ------- ar_out : 2D np.ndarray A copy of the input array with repeated rows removed. Raises ------ ValueError : ...
<commit_before>import numpy as np def unique_rows(ar): """Remove repeated rows from a 2D array. Parameters ---------- ar : 2D np.ndarray The input array. Returns ------- ar_out : 2D np.ndarray A copy of the input array with repeated rows removed. Raises ------ ...
import numpy as np def unique_rows(ar): """Remove repeated rows from a 2D array. Parameters ---------- ar : 2D np.ndarray The input array. Returns ------- ar_out : 2D np.ndarray A copy of the input array with repeated rows removed. Raises ------ ValueError : ...
import numpy as np def unique_rows(ar): """Remove repeated rows from a 2D array. Parameters ---------- ar : 2D np.ndarray The input array. Returns ------- ar_out : 2D np.ndarray A copy of the input array with repeated rows removed. Raises ------ ValueError : ...
<commit_before>import numpy as np def unique_rows(ar): """Remove repeated rows from a 2D array. Parameters ---------- ar : 2D np.ndarray The input array. Returns ------- ar_out : 2D np.ndarray A copy of the input array with repeated rows removed. Raises ------ ...
88ec3066a191f22b1faa3429ae89cbd76d45ac9b
aore/config/dev.py
aore/config/dev.py
# -*- coding: utf-8 -*- from __future__ import absolute_import from .common import * sphinx_conf.listen = "127.0.0.1:9312" sphinx_conf.var_dir = "C:\\Sphinx" db_conf.database = "postgres" db_conf.host = "localhost" db_conf.port = 5432 db_conf.user = "postgres" db_conf.password = "intercon" unrar_config.path = "C:\...
# -*- coding: utf-8 -*- from __future__ import absolute_import from .common import * sphinx_conf.listen = "192.168.0.37:9312" sphinx_conf.var_dir = "C:\\Sphinx" db_conf.database = "postgres" db_conf.host = "192.168.0.37" db_conf.port = 5432 db_conf.user = "postgres" db_conf.password = "intercon" unrar_config.path ...
Test global ip with Sphinx
Test global ip with Sphinx
Python
bsd-3-clause
jar3b/py-phias,jar3b/py-phias,jar3b/py-phias,jar3b/py-phias
# -*- coding: utf-8 -*- from __future__ import absolute_import from .common import * sphinx_conf.listen = "127.0.0.1:9312" sphinx_conf.var_dir = "C:\\Sphinx" db_conf.database = "postgres" db_conf.host = "localhost" db_conf.port = 5432 db_conf.user = "postgres" db_conf.password = "intercon" unrar_config.path = "C:\...
# -*- coding: utf-8 -*- from __future__ import absolute_import from .common import * sphinx_conf.listen = "192.168.0.37:9312" sphinx_conf.var_dir = "C:\\Sphinx" db_conf.database = "postgres" db_conf.host = "192.168.0.37" db_conf.port = 5432 db_conf.user = "postgres" db_conf.password = "intercon" unrar_config.path ...
<commit_before># -*- coding: utf-8 -*- from __future__ import absolute_import from .common import * sphinx_conf.listen = "127.0.0.1:9312" sphinx_conf.var_dir = "C:\\Sphinx" db_conf.database = "postgres" db_conf.host = "localhost" db_conf.port = 5432 db_conf.user = "postgres" db_conf.password = "intercon" unrar_con...
# -*- coding: utf-8 -*- from __future__ import absolute_import from .common import * sphinx_conf.listen = "192.168.0.37:9312" sphinx_conf.var_dir = "C:\\Sphinx" db_conf.database = "postgres" db_conf.host = "192.168.0.37" db_conf.port = 5432 db_conf.user = "postgres" db_conf.password = "intercon" unrar_config.path ...
# -*- coding: utf-8 -*- from __future__ import absolute_import from .common import * sphinx_conf.listen = "127.0.0.1:9312" sphinx_conf.var_dir = "C:\\Sphinx" db_conf.database = "postgres" db_conf.host = "localhost" db_conf.port = 5432 db_conf.user = "postgres" db_conf.password = "intercon" unrar_config.path = "C:\...
<commit_before># -*- coding: utf-8 -*- from __future__ import absolute_import from .common import * sphinx_conf.listen = "127.0.0.1:9312" sphinx_conf.var_dir = "C:\\Sphinx" db_conf.database = "postgres" db_conf.host = "localhost" db_conf.port = 5432 db_conf.user = "postgres" db_conf.password = "intercon" unrar_con...
f60b940205a5e1011ce1c9c5672cb262c4649c0b
app/mod_auth/forms.py
app/mod_auth/forms.py
from flask_wtf import FlaskForm from wtforms import StringField, BooleanField, PasswordField from wtforms.validators import DataRequired class LoginForm(FlaskForm): username = StringField('username', validators=[DataRequired()]) password = PasswordField('password', validators=[DataRequired()]) remember_me...
from flask_wtf import FlaskForm from wtforms import StringField, BooleanField, PasswordField from wtforms.validators import DataRequired, ValidationError, EqualTo from .models import User class LoginForm(FlaskForm): username = StringField('username', validators=[DataRequired()]) password = PasswordField('pass...
Validate username and password on signup
Validate username and password on signup
Python
mit
ziel980/website,ziel980/website
from flask_wtf import FlaskForm from wtforms import StringField, BooleanField, PasswordField from wtforms.validators import DataRequired class LoginForm(FlaskForm): username = StringField('username', validators=[DataRequired()]) password = PasswordField('password', validators=[DataRequired()]) remember_me...
from flask_wtf import FlaskForm from wtforms import StringField, BooleanField, PasswordField from wtforms.validators import DataRequired, ValidationError, EqualTo from .models import User class LoginForm(FlaskForm): username = StringField('username', validators=[DataRequired()]) password = PasswordField('pass...
<commit_before>from flask_wtf import FlaskForm from wtforms import StringField, BooleanField, PasswordField from wtforms.validators import DataRequired class LoginForm(FlaskForm): username = StringField('username', validators=[DataRequired()]) password = PasswordField('password', validators=[DataRequired()]) ...
from flask_wtf import FlaskForm from wtforms import StringField, BooleanField, PasswordField from wtforms.validators import DataRequired, ValidationError, EqualTo from .models import User class LoginForm(FlaskForm): username = StringField('username', validators=[DataRequired()]) password = PasswordField('pass...
from flask_wtf import FlaskForm from wtforms import StringField, BooleanField, PasswordField from wtforms.validators import DataRequired class LoginForm(FlaskForm): username = StringField('username', validators=[DataRequired()]) password = PasswordField('password', validators=[DataRequired()]) remember_me...
<commit_before>from flask_wtf import FlaskForm from wtforms import StringField, BooleanField, PasswordField from wtforms.validators import DataRequired class LoginForm(FlaskForm): username = StringField('username', validators=[DataRequired()]) password = PasswordField('password', validators=[DataRequired()]) ...
3d38af257f55a0252cb41408a404faa66b30d512
pyconde/speakers/models.py
pyconde/speakers/models.py
from django.db import models from django.contrib.auth.models import User from django.core.urlresolvers import reverse class Speaker(models.Model): """ The speaker model acts as user-abstraction for various session and proposal related objects. """ user = models.OneToOneField(User, related_name='sp...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.contrib.auth.models import User from django.core.urlresolvers import reverse from django.db import models from django.db.models.signals import post_save from django.dispatch.dispatcher import receiver class Speaker(models.Model): """ ...
Create a speaker profile for each user that is registered.
Create a speaker profile for each user that is registered.
Python
bsd-3-clause
pysv/djep,EuroPython/djep,pysv/djep,EuroPython/djep,pysv/djep,EuroPython/djep,pysv/djep,EuroPython/djep,pysv/djep
from django.db import models from django.contrib.auth.models import User from django.core.urlresolvers import reverse class Speaker(models.Model): """ The speaker model acts as user-abstraction for various session and proposal related objects. """ user = models.OneToOneField(User, related_name='sp...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.contrib.auth.models import User from django.core.urlresolvers import reverse from django.db import models from django.db.models.signals import post_save from django.dispatch.dispatcher import receiver class Speaker(models.Model): """ ...
<commit_before>from django.db import models from django.contrib.auth.models import User from django.core.urlresolvers import reverse class Speaker(models.Model): """ The speaker model acts as user-abstraction for various session and proposal related objects. """ user = models.OneToOneField(User, r...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.contrib.auth.models import User from django.core.urlresolvers import reverse from django.db import models from django.db.models.signals import post_save from django.dispatch.dispatcher import receiver class Speaker(models.Model): """ ...
from django.db import models from django.contrib.auth.models import User from django.core.urlresolvers import reverse class Speaker(models.Model): """ The speaker model acts as user-abstraction for various session and proposal related objects. """ user = models.OneToOneField(User, related_name='sp...
<commit_before>from django.db import models from django.contrib.auth.models import User from django.core.urlresolvers import reverse class Speaker(models.Model): """ The speaker model acts as user-abstraction for various session and proposal related objects. """ user = models.OneToOneField(User, r...
579286426cf20c5cd5d4c94d97fd0a55eb571f8f
talks_keeper/templatetags/tk_filters.py
talks_keeper/templatetags/tk_filters.py
from django import template from django.forms import CheckboxInput register = template.Library() @register.filter(name='addclass') def addclass(value, arg): return value.as_widget(attrs={'class': arg}) @register.filter(name='is_checkbox') def is_checkbox(field): return field.field.widget.__class__.__name_...
from django import template from django.forms import CheckboxInput from django.contrib.auth.models import Group register = template.Library() @register.filter(name='addclass') def addclass(value, arg): return value.as_widget(attrs={'class': arg}) @register.filter(name='is_checkbox') def is_checkbox(field): ...
Add templatetag to check if user included in group
Add templatetag to check if user included in group
Python
mit
samitnuk/talks_keeper,samitnuk/talks_keeper,samitnuk/talks_keeper
from django import template from django.forms import CheckboxInput register = template.Library() @register.filter(name='addclass') def addclass(value, arg): return value.as_widget(attrs={'class': arg}) @register.filter(name='is_checkbox') def is_checkbox(field): return field.field.widget.__class__.__name_...
from django import template from django.forms import CheckboxInput from django.contrib.auth.models import Group register = template.Library() @register.filter(name='addclass') def addclass(value, arg): return value.as_widget(attrs={'class': arg}) @register.filter(name='is_checkbox') def is_checkbox(field): ...
<commit_before>from django import template from django.forms import CheckboxInput register = template.Library() @register.filter(name='addclass') def addclass(value, arg): return value.as_widget(attrs={'class': arg}) @register.filter(name='is_checkbox') def is_checkbox(field): return field.field.widget.__...
from django import template from django.forms import CheckboxInput from django.contrib.auth.models import Group register = template.Library() @register.filter(name='addclass') def addclass(value, arg): return value.as_widget(attrs={'class': arg}) @register.filter(name='is_checkbox') def is_checkbox(field): ...
from django import template from django.forms import CheckboxInput register = template.Library() @register.filter(name='addclass') def addclass(value, arg): return value.as_widget(attrs={'class': arg}) @register.filter(name='is_checkbox') def is_checkbox(field): return field.field.widget.__class__.__name_...
<commit_before>from django import template from django.forms import CheckboxInput register = template.Library() @register.filter(name='addclass') def addclass(value, arg): return value.as_widget(attrs={'class': arg}) @register.filter(name='is_checkbox') def is_checkbox(field): return field.field.widget.__...
d52c9731b0c6494e9f4181fc33f00cdf39adb3ca
tests/unit/test_util.py
tests/unit/test_util.py
import pytest from pmxbot import util @pytest.has_wordnik def test_lookup(): assert util.lookup('dachshund') is not None
import pytest from pmxbot import util @pytest.has_wordnik def test_lookup(): assert util.lookup('dachshund') is not None @pytest.has_internet def test_emergency_compliment(): assert util.load_emergency_compliments()
Add test for emergency compliments
Add test for emergency compliments
Python
mit
yougov/pmxbot,yougov/pmxbot,yougov/pmxbot
import pytest from pmxbot import util @pytest.has_wordnik def test_lookup(): assert util.lookup('dachshund') is not None Add test for emergency compliments
import pytest from pmxbot import util @pytest.has_wordnik def test_lookup(): assert util.lookup('dachshund') is not None @pytest.has_internet def test_emergency_compliment(): assert util.load_emergency_compliments()
<commit_before>import pytest from pmxbot import util @pytest.has_wordnik def test_lookup(): assert util.lookup('dachshund') is not None <commit_msg>Add test for emergency compliments<commit_after>
import pytest from pmxbot import util @pytest.has_wordnik def test_lookup(): assert util.lookup('dachshund') is not None @pytest.has_internet def test_emergency_compliment(): assert util.load_emergency_compliments()
import pytest from pmxbot import util @pytest.has_wordnik def test_lookup(): assert util.lookup('dachshund') is not None Add test for emergency complimentsimport pytest from pmxbot import util @pytest.has_wordnik def test_lookup(): assert util.lookup('dachshund') is not None @pytest.has_internet ...
<commit_before>import pytest from pmxbot import util @pytest.has_wordnik def test_lookup(): assert util.lookup('dachshund') is not None <commit_msg>Add test for emergency compliments<commit_after>import pytest from pmxbot import util @pytest.has_wordnik def test_lookup(): assert util.lookup('dachshun...
5b8bcdd802858baae3854fbfb8758dc65bdd8d34
hardware/unicorn_hat_hd/demo_lights.py
hardware/unicorn_hat_hd/demo_lights.py
#!/usr/bin/env python import unicornhathd import os try: unicornhathd.set_pixel(0, 0, 255, 255, 255) unicornhathd.set_pixel(15, 0, 255, 255, 255) unicornhathd.set_pixel(0, 15, 255, 255, 255) unicornhathd.set_pixel(15, 15, 255, 255, 255) unicornhathd.show() raw_input("Press the <ENTER> key or <C...
#!/usr/bin/env python import unicornhathd import os from time import sleep class Point: def __init__(self, x, y, dx, dy): self.x = x self.y = y self.dx = dx self.dy = dy def turn_on(self): unicornhathd.set_pixel(self.x, self.y, 255, 255, 255) def turn_off(self): ...
Make the 4 lights bounce backwards and forwards along each edge.
Make the 4 lights bounce backwards and forwards along each edge.
Python
mit
claremacrae/raspi_code,claremacrae/raspi_code,claremacrae/raspi_code
#!/usr/bin/env python import unicornhathd import os try: unicornhathd.set_pixel(0, 0, 255, 255, 255) unicornhathd.set_pixel(15, 0, 255, 255, 255) unicornhathd.set_pixel(0, 15, 255, 255, 255) unicornhathd.set_pixel(15, 15, 255, 255, 255) unicornhathd.show() raw_input("Press the <ENTER> key or <C...
#!/usr/bin/env python import unicornhathd import os from time import sleep class Point: def __init__(self, x, y, dx, dy): self.x = x self.y = y self.dx = dx self.dy = dy def turn_on(self): unicornhathd.set_pixel(self.x, self.y, 255, 255, 255) def turn_off(self): ...
<commit_before>#!/usr/bin/env python import unicornhathd import os try: unicornhathd.set_pixel(0, 0, 255, 255, 255) unicornhathd.set_pixel(15, 0, 255, 255, 255) unicornhathd.set_pixel(0, 15, 255, 255, 255) unicornhathd.set_pixel(15, 15, 255, 255, 255) unicornhathd.show() raw_input("Press the <E...
#!/usr/bin/env python import unicornhathd import os from time import sleep class Point: def __init__(self, x, y, dx, dy): self.x = x self.y = y self.dx = dx self.dy = dy def turn_on(self): unicornhathd.set_pixel(self.x, self.y, 255, 255, 255) def turn_off(self): ...
#!/usr/bin/env python import unicornhathd import os try: unicornhathd.set_pixel(0, 0, 255, 255, 255) unicornhathd.set_pixel(15, 0, 255, 255, 255) unicornhathd.set_pixel(0, 15, 255, 255, 255) unicornhathd.set_pixel(15, 15, 255, 255, 255) unicornhathd.show() raw_input("Press the <ENTER> key or <C...
<commit_before>#!/usr/bin/env python import unicornhathd import os try: unicornhathd.set_pixel(0, 0, 255, 255, 255) unicornhathd.set_pixel(15, 0, 255, 255, 255) unicornhathd.set_pixel(0, 15, 255, 255, 255) unicornhathd.set_pixel(15, 15, 255, 255, 255) unicornhathd.show() raw_input("Press the <E...
4aada26d0de09836f3b67b0fce136805cf11fa37
thinc/extra/load_nlp.py
thinc/extra/load_nlp.py
import numpy SPACY_MODELS = {} VECTORS = {} def get_spacy(lang, **kwargs): global SPACY_MODELS import spacy if lang not in SPACY_MODELS: SPACY_MODELS[lang] = spacy.load(lang, **kwargs) return SPACY_MODELS[lang] def get_vectors(ops, lang): global VECTORS key = (ops.device, lang) ...
import numpy SPACY_MODELS = {} VECTORS = {} def get_spacy(lang, **kwargs): global SPACY_MODELS import spacy if lang not in SPACY_MODELS: SPACY_MODELS[lang] = spacy.load(lang, **kwargs) return SPACY_MODELS[lang] def get_vectors(ops, lang): global VECTORS key = (ops.device, lang) ...
Fix divide by zero error in vectors loading
Fix divide by zero error in vectors loading
Python
mit
explosion/thinc,explosion/thinc,spacy-io/thinc,spacy-io/thinc,explosion/thinc,spacy-io/thinc,explosion/thinc
import numpy SPACY_MODELS = {} VECTORS = {} def get_spacy(lang, **kwargs): global SPACY_MODELS import spacy if lang not in SPACY_MODELS: SPACY_MODELS[lang] = spacy.load(lang, **kwargs) return SPACY_MODELS[lang] def get_vectors(ops, lang): global VECTORS key = (ops.device, lang) ...
import numpy SPACY_MODELS = {} VECTORS = {} def get_spacy(lang, **kwargs): global SPACY_MODELS import spacy if lang not in SPACY_MODELS: SPACY_MODELS[lang] = spacy.load(lang, **kwargs) return SPACY_MODELS[lang] def get_vectors(ops, lang): global VECTORS key = (ops.device, lang) ...
<commit_before>import numpy SPACY_MODELS = {} VECTORS = {} def get_spacy(lang, **kwargs): global SPACY_MODELS import spacy if lang not in SPACY_MODELS: SPACY_MODELS[lang] = spacy.load(lang, **kwargs) return SPACY_MODELS[lang] def get_vectors(ops, lang): global VECTORS key = (ops.dev...
import numpy SPACY_MODELS = {} VECTORS = {} def get_spacy(lang, **kwargs): global SPACY_MODELS import spacy if lang not in SPACY_MODELS: SPACY_MODELS[lang] = spacy.load(lang, **kwargs) return SPACY_MODELS[lang] def get_vectors(ops, lang): global VECTORS key = (ops.device, lang) ...
import numpy SPACY_MODELS = {} VECTORS = {} def get_spacy(lang, **kwargs): global SPACY_MODELS import spacy if lang not in SPACY_MODELS: SPACY_MODELS[lang] = spacy.load(lang, **kwargs) return SPACY_MODELS[lang] def get_vectors(ops, lang): global VECTORS key = (ops.device, lang) ...
<commit_before>import numpy SPACY_MODELS = {} VECTORS = {} def get_spacy(lang, **kwargs): global SPACY_MODELS import spacy if lang not in SPACY_MODELS: SPACY_MODELS[lang] = spacy.load(lang, **kwargs) return SPACY_MODELS[lang] def get_vectors(ops, lang): global VECTORS key = (ops.dev...
59c4dd56e427e29eb26e81512c3066fe3f8b13b8
tools/gdb/gdb_chrome.py
tools/gdb/gdb_chrome.py
#!/usr/bin/python # Copyright (c) 2011 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """GDB support for Chrome types. Add this to your gdb by amending your ~/.gdbinit as follows: python import sys sys.path.insert(...
#!/usr/bin/python # Copyright (c) 2011 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """GDB support for Chrome types. Add this to your gdb by amending your ~/.gdbinit as follows: python import sys sys.path.insert(...
Add FilePath to the gdb pretty printers.
Add FilePath to the gdb pretty printers. Review URL: http://codereview.chromium.org/6621017 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@76956 0039d316-1c4b-4281-b951-d872f2087c98
Python
bsd-3-clause
zcbenz/cefode-chromium,junmin-zhu/chromium-rivertrail,krieger-od/nwjs_chromium.src,pozdnyakov/chromium-crosswalk,hgl888/chromium-crosswalk-efl,rogerwang/chromium,krieger-od/nwjs_chromium.src,TheTypoMaster/chromium-crosswalk,hujiajie/pa-chromium,hujiajie/pa-chromium,nacl-webkit/chrome_deps,Jonekee/chromium.src,nacl-webk...
#!/usr/bin/python # Copyright (c) 2011 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """GDB support for Chrome types. Add this to your gdb by amending your ~/.gdbinit as follows: python import sys sys.path.insert(...
#!/usr/bin/python # Copyright (c) 2011 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """GDB support for Chrome types. Add this to your gdb by amending your ~/.gdbinit as follows: python import sys sys.path.insert(...
<commit_before>#!/usr/bin/python # Copyright (c) 2011 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """GDB support for Chrome types. Add this to your gdb by amending your ~/.gdbinit as follows: python import sys s...
#!/usr/bin/python # Copyright (c) 2011 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """GDB support for Chrome types. Add this to your gdb by amending your ~/.gdbinit as follows: python import sys sys.path.insert(...
#!/usr/bin/python # Copyright (c) 2011 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """GDB support for Chrome types. Add this to your gdb by amending your ~/.gdbinit as follows: python import sys sys.path.insert(...
<commit_before>#!/usr/bin/python # Copyright (c) 2011 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """GDB support for Chrome types. Add this to your gdb by amending your ~/.gdbinit as follows: python import sys s...
97401a56e59d06acdd455f111dbe993265f2a39d
setup.py
setup.py
from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages setup( name='urbansim', version='0.2dev', description='Tool for modeling metropolitan real estate markets', author='Synthicity', author_email='[email protected]', license='AGPL', u...
from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages setup( name='urbansim', version='0.2dev', description='Tool for modeling metropolitan real estate markets', author='Synthicity', author_email='[email protected]', license='AGPL', u...
Remove urbansimd from excluded packages.
Remove urbansimd from excluded packages.
Python
bsd-3-clause
SANDAG/urbansim,apdjustino/urbansim,synthicity/urbansim,UDST/urbansim,UDST/urbansim,bricegnichols/urbansim,AZMAG/urbansim,ual/urbansim,UDST/urbansim,VladimirTyrin/urbansim,waddell/urbansim,VladimirTyrin/urbansim,bricegnichols/urbansim,SANDAG/urbansim,waddell/urbansim,waddell/urbansim,apdjustino/urbansim,apdjustino/urba...
from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages setup( name='urbansim', version='0.2dev', description='Tool for modeling metropolitan real estate markets', author='Synthicity', author_email='[email protected]', license='AGPL', u...
from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages setup( name='urbansim', version='0.2dev', description='Tool for modeling metropolitan real estate markets', author='Synthicity', author_email='[email protected]', license='AGPL', u...
<commit_before>from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages setup( name='urbansim', version='0.2dev', description='Tool for modeling metropolitan real estate markets', author='Synthicity', author_email='[email protected]', license...
from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages setup( name='urbansim', version='0.2dev', description='Tool for modeling metropolitan real estate markets', author='Synthicity', author_email='[email protected]', license='AGPL', u...
from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages setup( name='urbansim', version='0.2dev', description='Tool for modeling metropolitan real estate markets', author='Synthicity', author_email='[email protected]', license='AGPL', u...
<commit_before>from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages setup( name='urbansim', version='0.2dev', description='Tool for modeling metropolitan real estate markets', author='Synthicity', author_email='[email protected]', license...
267b5392adaf3e3f93a22f95e5f1f161225a7f3a
setup.py
setup.py
import os from setuptools import setup, find_packages def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name='django-pgallery', version=__import__('pgallery').__version__, description='Photo gallery app for PostgreSQL and Django.', long_description=read('RE...
import os from setuptools import setup, find_packages def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name='django-pgallery', version=__import__('pgallery').__version__, description='Photo gallery app for PostgreSQL and Django.', long_description=read('RE...
Add classifier for Python 3.6
Add classifier for Python 3.6
Python
mit
zsiciarz/django-pgallery,zsiciarz/django-pgallery
import os from setuptools import setup, find_packages def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name='django-pgallery', version=__import__('pgallery').__version__, description='Photo gallery app for PostgreSQL and Django.', long_description=read('RE...
import os from setuptools import setup, find_packages def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name='django-pgallery', version=__import__('pgallery').__version__, description='Photo gallery app for PostgreSQL and Django.', long_description=read('RE...
<commit_before>import os from setuptools import setup, find_packages def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name='django-pgallery', version=__import__('pgallery').__version__, description='Photo gallery app for PostgreSQL and Django.', long_descr...
import os from setuptools import setup, find_packages def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name='django-pgallery', version=__import__('pgallery').__version__, description='Photo gallery app for PostgreSQL and Django.', long_description=read('RE...
import os from setuptools import setup, find_packages def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name='django-pgallery', version=__import__('pgallery').__version__, description='Photo gallery app for PostgreSQL and Django.', long_description=read('RE...
<commit_before>import os from setuptools import setup, find_packages def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name='django-pgallery', version=__import__('pgallery').__version__, description='Photo gallery app for PostgreSQL and Django.', long_descr...
ad5cb91fa011e067a96835e59e05581af3ea3a53
acctwatch/configcheck.py
acctwatch/configcheck.py
import httplib2 import os import sys import time from apiclient import discovery from oauth2client import file from oauth2client import client from oauth2client import tools from config import Configuration try: import geoip2.database as geoipdb except ImportError: geoipdb = None def main(): config = Co...
import httplib2 import os import sys import time from apiclient import discovery from oauth2client import file from oauth2client import client from oauth2client import tools from config import Configuration try: import geoip2.database as geoipdb except ImportError: print ("GeoIP is missing, please install de...
Clean up configuration check utility
Clean up configuration check utility
Python
isc
GuardedRisk/Google-Apps-Auditing
import httplib2 import os import sys import time from apiclient import discovery from oauth2client import file from oauth2client import client from oauth2client import tools from config import Configuration try: import geoip2.database as geoipdb except ImportError: geoipdb = None def main(): config = Co...
import httplib2 import os import sys import time from apiclient import discovery from oauth2client import file from oauth2client import client from oauth2client import tools from config import Configuration try: import geoip2.database as geoipdb except ImportError: print ("GeoIP is missing, please install de...
<commit_before>import httplib2 import os import sys import time from apiclient import discovery from oauth2client import file from oauth2client import client from oauth2client import tools from config import Configuration try: import geoip2.database as geoipdb except ImportError: geoipdb = None def main(): ...
import httplib2 import os import sys import time from apiclient import discovery from oauth2client import file from oauth2client import client from oauth2client import tools from config import Configuration try: import geoip2.database as geoipdb except ImportError: print ("GeoIP is missing, please install de...
import httplib2 import os import sys import time from apiclient import discovery from oauth2client import file from oauth2client import client from oauth2client import tools from config import Configuration try: import geoip2.database as geoipdb except ImportError: geoipdb = None def main(): config = Co...
<commit_before>import httplib2 import os import sys import time from apiclient import discovery from oauth2client import file from oauth2client import client from oauth2client import tools from config import Configuration try: import geoip2.database as geoipdb except ImportError: geoipdb = None def main(): ...
fae3f6aaba91167c5da2f3d5d9b6b1a66068f9f7
setup.py
setup.py
from distutils.core import setup import os, glob, string, shutil # Packages packages = ['neuroimaging', 'neuroimaging.statistics', 'neuroimaging.image', 'neuroimaging.reference', 'neuroimaging.data', 'neuroimaging.image.formats', 'neuroimaging.image.formats.analyze', 'neuroimaging.fmri', 'neuroimaging.fmri.fmristat',...
import os, glob, string, shutil from distutils.core import setup # Packages packages = ['neuroimaging', 'neuroimaging.statistics', 'neuroimaging.image', 'neuroimaging.reference', 'neuroimaging.data', 'neuroimaging.image.formats', 'neuroimaging.image.formats.analyze', 'neuroimaging.fmri', 'neuroimaging.fmri.fmristat',...
Test edit - to check svn email hook
Test edit - to check svn email hook
Python
bsd-3-clause
yarikoptic/NiPy-OLD,yarikoptic/NiPy-OLD
from distutils.core import setup import os, glob, string, shutil # Packages packages = ['neuroimaging', 'neuroimaging.statistics', 'neuroimaging.image', 'neuroimaging.reference', 'neuroimaging.data', 'neuroimaging.image.formats', 'neuroimaging.image.formats.analyze', 'neuroimaging.fmri', 'neuroimaging.fmri.fmristat',...
import os, glob, string, shutil from distutils.core import setup # Packages packages = ['neuroimaging', 'neuroimaging.statistics', 'neuroimaging.image', 'neuroimaging.reference', 'neuroimaging.data', 'neuroimaging.image.formats', 'neuroimaging.image.formats.analyze', 'neuroimaging.fmri', 'neuroimaging.fmri.fmristat',...
<commit_before>from distutils.core import setup import os, glob, string, shutil # Packages packages = ['neuroimaging', 'neuroimaging.statistics', 'neuroimaging.image', 'neuroimaging.reference', 'neuroimaging.data', 'neuroimaging.image.formats', 'neuroimaging.image.formats.analyze', 'neuroimaging.fmri', 'neuroimaging....
import os, glob, string, shutil from distutils.core import setup # Packages packages = ['neuroimaging', 'neuroimaging.statistics', 'neuroimaging.image', 'neuroimaging.reference', 'neuroimaging.data', 'neuroimaging.image.formats', 'neuroimaging.image.formats.analyze', 'neuroimaging.fmri', 'neuroimaging.fmri.fmristat',...
from distutils.core import setup import os, glob, string, shutil # Packages packages = ['neuroimaging', 'neuroimaging.statistics', 'neuroimaging.image', 'neuroimaging.reference', 'neuroimaging.data', 'neuroimaging.image.formats', 'neuroimaging.image.formats.analyze', 'neuroimaging.fmri', 'neuroimaging.fmri.fmristat',...
<commit_before>from distutils.core import setup import os, glob, string, shutil # Packages packages = ['neuroimaging', 'neuroimaging.statistics', 'neuroimaging.image', 'neuroimaging.reference', 'neuroimaging.data', 'neuroimaging.image.formats', 'neuroimaging.image.formats.analyze', 'neuroimaging.fmri', 'neuroimaging....
50efc8ccccecc3f48fcf0e82ebc3390da48e0967
setup.py
setup.py
from setuptools import setup setup( name="balrog", version="1.0", description="Mozilla's Update Server", author="Ben Hearsum", author_email="[email protected]", packages=[ "auslib", "auslib.admin", "auslib.admin.views", "auslib.blobs", "auslib.migrate", ...
from setuptools import find_packages, setup setup( name="balrog", version="1.0", description="Mozilla's Update Server", author="Ben Hearsum", author_email="[email protected]", packages=find_packages(exclude=["vendor"]), include_package_data=True, install_requires=[ "flask==0.10.1"...
Use find_packages instead of an explicit list of packages for easier maintenance.
Use find_packages instead of an explicit list of packages for easier maintenance.
Python
mpl-2.0
nurav/balrog,testbhearsum/balrog,nurav/balrog,testbhearsum/balrog,mozbhearsum/balrog,aksareen/balrog,nurav/balrog,testbhearsum/balrog,nurav/balrog,mozbhearsum/balrog,tieu/balrog,mozbhearsum/balrog,tieu/balrog,aksareen/balrog,aksareen/balrog,tieu/balrog,mozbhearsum/balrog,tieu/balrog,aksareen/balrog,testbhearsum/balrog
from setuptools import setup setup( name="balrog", version="1.0", description="Mozilla's Update Server", author="Ben Hearsum", author_email="[email protected]", packages=[ "auslib", "auslib.admin", "auslib.admin.views", "auslib.blobs", "auslib.migrate", ...
from setuptools import find_packages, setup setup( name="balrog", version="1.0", description="Mozilla's Update Server", author="Ben Hearsum", author_email="[email protected]", packages=find_packages(exclude=["vendor"]), include_package_data=True, install_requires=[ "flask==0.10.1"...
<commit_before>from setuptools import setup setup( name="balrog", version="1.0", description="Mozilla's Update Server", author="Ben Hearsum", author_email="[email protected]", packages=[ "auslib", "auslib.admin", "auslib.admin.views", "auslib.blobs", "ausli...
from setuptools import find_packages, setup setup( name="balrog", version="1.0", description="Mozilla's Update Server", author="Ben Hearsum", author_email="[email protected]", packages=find_packages(exclude=["vendor"]), include_package_data=True, install_requires=[ "flask==0.10.1"...
from setuptools import setup setup( name="balrog", version="1.0", description="Mozilla's Update Server", author="Ben Hearsum", author_email="[email protected]", packages=[ "auslib", "auslib.admin", "auslib.admin.views", "auslib.blobs", "auslib.migrate", ...
<commit_before>from setuptools import setup setup( name="balrog", version="1.0", description="Mozilla's Update Server", author="Ben Hearsum", author_email="[email protected]", packages=[ "auslib", "auslib.admin", "auslib.admin.views", "auslib.blobs", "ausli...
2a7877c1ed3e1dc9a5bcc27220847a5a75cf65ab
spiff/membership/management/commands/bill_members.py
spiff/membership/management/commands/bill_members.py
from django.core.management import BaseCommand from spiff.membership.utils import monthRange from spiff.membership.models import Member, RankLineItem from spiff.payment.models import Invoice class Command(BaseCommand): help = 'Bills active members for the month' def handle(self, *args, **options): for member ...
from django.core.management import BaseCommand from spiff.membership.utils import monthRange from spiff.membership.models import Member, RankLineItem from spiff.payment.models import Invoice class Command(BaseCommand): help = 'Bills active members for the month' def handle(self, *args, **options): for member ...
Fix swapped dates on invoices
Fix swapped dates on invoices
Python
agpl-3.0
SYNHAK/spiff,SYNHAK/spiff,SYNHAK/spiff
from django.core.management import BaseCommand from spiff.membership.utils import monthRange from spiff.membership.models import Member, RankLineItem from spiff.payment.models import Invoice class Command(BaseCommand): help = 'Bills active members for the month' def handle(self, *args, **options): for member ...
from django.core.management import BaseCommand from spiff.membership.utils import monthRange from spiff.membership.models import Member, RankLineItem from spiff.payment.models import Invoice class Command(BaseCommand): help = 'Bills active members for the month' def handle(self, *args, **options): for member ...
<commit_before>from django.core.management import BaseCommand from spiff.membership.utils import monthRange from spiff.membership.models import Member, RankLineItem from spiff.payment.models import Invoice class Command(BaseCommand): help = 'Bills active members for the month' def handle(self, *args, **options): ...
from django.core.management import BaseCommand from spiff.membership.utils import monthRange from spiff.membership.models import Member, RankLineItem from spiff.payment.models import Invoice class Command(BaseCommand): help = 'Bills active members for the month' def handle(self, *args, **options): for member ...
from django.core.management import BaseCommand from spiff.membership.utils import monthRange from spiff.membership.models import Member, RankLineItem from spiff.payment.models import Invoice class Command(BaseCommand): help = 'Bills active members for the month' def handle(self, *args, **options): for member ...
<commit_before>from django.core.management import BaseCommand from spiff.membership.utils import monthRange from spiff.membership.models import Member, RankLineItem from spiff.payment.models import Invoice class Command(BaseCommand): help = 'Bills active members for the month' def handle(self, *args, **options): ...
e3409c94b64deac85deada28f57a30ae08d0083d
api/caching/listeners.py
api/caching/listeners.py
from functools import partial from api.caching.tasks import ban_url from framework.postcommit_tasks.handlers import enqueue_postcommit_task from modularodm import signals @signals.save.connect def ban_object_from_cache(sender, instance, fields_changed, cached_data): abs_url = None if hasattr(instance, 'absol...
from functools import partial from api.caching.tasks import ban_url from framework.postcommit_tasks.handlers import enqueue_postcommit_task from modularodm import signals @signals.save.connect def ban_object_from_cache(sender, instance, fields_changed, cached_data): abs_url = None if hasattr(instance, 'absolu...
Fix passing arguments to ban_url
Fix passing arguments to ban_url h/t @cwisecarver
Python
apache-2.0
chrisseto/osf.io,cslzchen/osf.io,Johnetordoff/osf.io,SSJohns/osf.io,alexschiller/osf.io,mluke93/osf.io,rdhyee/osf.io,zachjanicki/osf.io,wearpants/osf.io,leb2dg/osf.io,caneruguz/osf.io,zamattiac/osf.io,TomHeatwole/osf.io,mattclark/osf.io,aaxelb/osf.io,felliott/osf.io,caseyrollins/osf.io,mluke93/osf.io,erinspace/osf.io,R...
from functools import partial from api.caching.tasks import ban_url from framework.postcommit_tasks.handlers import enqueue_postcommit_task from modularodm import signals @signals.save.connect def ban_object_from_cache(sender, instance, fields_changed, cached_data): abs_url = None if hasattr(instance, 'absol...
from functools import partial from api.caching.tasks import ban_url from framework.postcommit_tasks.handlers import enqueue_postcommit_task from modularodm import signals @signals.save.connect def ban_object_from_cache(sender, instance, fields_changed, cached_data): abs_url = None if hasattr(instance, 'absolu...
<commit_before>from functools import partial from api.caching.tasks import ban_url from framework.postcommit_tasks.handlers import enqueue_postcommit_task from modularodm import signals @signals.save.connect def ban_object_from_cache(sender, instance, fields_changed, cached_data): abs_url = None if hasattr(i...
from functools import partial from api.caching.tasks import ban_url from framework.postcommit_tasks.handlers import enqueue_postcommit_task from modularodm import signals @signals.save.connect def ban_object_from_cache(sender, instance, fields_changed, cached_data): abs_url = None if hasattr(instance, 'absolu...
from functools import partial from api.caching.tasks import ban_url from framework.postcommit_tasks.handlers import enqueue_postcommit_task from modularodm import signals @signals.save.connect def ban_object_from_cache(sender, instance, fields_changed, cached_data): abs_url = None if hasattr(instance, 'absol...
<commit_before>from functools import partial from api.caching.tasks import ban_url from framework.postcommit_tasks.handlers import enqueue_postcommit_task from modularodm import signals @signals.save.connect def ban_object_from_cache(sender, instance, fields_changed, cached_data): abs_url = None if hasattr(i...
dae054de92d6d864f77a337d269ba9b0c5ddeec4
examples/charts/file/stacked_bar.py
examples/charts/file/stacked_bar.py
from bokeh.charts import Bar, output_file, show from bokeh.charts.operations import blend from bokeh.charts._attributes import cat, color from bokeh.charts.utils import df_from_json from bokeh.sampledata.olympics2014 import data df = df_from_json(data) # filter by countries with at least one medal and sort df = df[df...
from bokeh.charts import Bar, output_file, show from bokeh.charts.operations import blend from bokeh.charts.attributes import cat, color from bokeh.charts.utils import df_from_json from bokeh.sampledata.olympics2014 import data df = df_from_json(data) # filter by countries with at least one medal and sort df = df[df[...
Fix import on stacked bar example.
Fix import on stacked bar example.
Python
bsd-3-clause
percyfal/bokeh,maxalbert/bokeh,phobson/bokeh,ChinaQuants/bokeh,quasiben/bokeh,DuCorey/bokeh,schoolie/bokeh,phobson/bokeh,KasperPRasmussen/bokeh,bokeh/bokeh,Karel-van-de-Plassche/bokeh,rs2/bokeh,DuCorey/bokeh,aavanian/bokeh,gpfreitas/bokeh,aavanian/bokeh,KasperPRasmussen/bokeh,draperjames/bokeh,dennisobrien/bokeh,maxalb...
from bokeh.charts import Bar, output_file, show from bokeh.charts.operations import blend from bokeh.charts._attributes import cat, color from bokeh.charts.utils import df_from_json from bokeh.sampledata.olympics2014 import data df = df_from_json(data) # filter by countries with at least one medal and sort df = df[df...
from bokeh.charts import Bar, output_file, show from bokeh.charts.operations import blend from bokeh.charts.attributes import cat, color from bokeh.charts.utils import df_from_json from bokeh.sampledata.olympics2014 import data df = df_from_json(data) # filter by countries with at least one medal and sort df = df[df[...
<commit_before>from bokeh.charts import Bar, output_file, show from bokeh.charts.operations import blend from bokeh.charts._attributes import cat, color from bokeh.charts.utils import df_from_json from bokeh.sampledata.olympics2014 import data df = df_from_json(data) # filter by countries with at least one medal and ...
from bokeh.charts import Bar, output_file, show from bokeh.charts.operations import blend from bokeh.charts.attributes import cat, color from bokeh.charts.utils import df_from_json from bokeh.sampledata.olympics2014 import data df = df_from_json(data) # filter by countries with at least one medal and sort df = df[df[...
from bokeh.charts import Bar, output_file, show from bokeh.charts.operations import blend from bokeh.charts._attributes import cat, color from bokeh.charts.utils import df_from_json from bokeh.sampledata.olympics2014 import data df = df_from_json(data) # filter by countries with at least one medal and sort df = df[df...
<commit_before>from bokeh.charts import Bar, output_file, show from bokeh.charts.operations import blend from bokeh.charts._attributes import cat, color from bokeh.charts.utils import df_from_json from bokeh.sampledata.olympics2014 import data df = df_from_json(data) # filter by countries with at least one medal and ...
d3e2a11f72f6de811f39ac10aa0abde74b99d269
hcibench/pipeline/__init__.py
hcibench/pipeline/__init__.py
""" The :mod:`hcibench.pipeline` module provides a flexible infrastructure for data processing and implements some common types of processing blocks. """ from .base import PipelineBlock, Pipeline, PassthroughPipeline from .common import Windower, Filter, FeatureExtractor __all__ = ['PipelineBlock', 'Pipeli...
""" The :mod:`hcibench.pipeline` module provides a flexible infrastructure for data processing and implements some common types of processing blocks. """ from .base import PipelineBlock, Pipeline, PassthroughPipeline from .common import Windower, Filter, FeatureExtractor, Estimator __all__ = ['PipelineBlock', ...
Make Estimator importable from pipeline.
Make Estimator importable from pipeline.
Python
mit
ucdrascal/axopy,ucdrascal/hcibench
""" The :mod:`hcibench.pipeline` module provides a flexible infrastructure for data processing and implements some common types of processing blocks. """ from .base import PipelineBlock, Pipeline, PassthroughPipeline from .common import Windower, Filter, FeatureExtractor __all__ = ['PipelineBlock', 'Pipeli...
""" The :mod:`hcibench.pipeline` module provides a flexible infrastructure for data processing and implements some common types of processing blocks. """ from .base import PipelineBlock, Pipeline, PassthroughPipeline from .common import Windower, Filter, FeatureExtractor, Estimator __all__ = ['PipelineBlock', ...
<commit_before>""" The :mod:`hcibench.pipeline` module provides a flexible infrastructure for data processing and implements some common types of processing blocks. """ from .base import PipelineBlock, Pipeline, PassthroughPipeline from .common import Windower, Filter, FeatureExtractor __all__ = ['PipelineBlock', ...
""" The :mod:`hcibench.pipeline` module provides a flexible infrastructure for data processing and implements some common types of processing blocks. """ from .base import PipelineBlock, Pipeline, PassthroughPipeline from .common import Windower, Filter, FeatureExtractor, Estimator __all__ = ['PipelineBlock', ...
""" The :mod:`hcibench.pipeline` module provides a flexible infrastructure for data processing and implements some common types of processing blocks. """ from .base import PipelineBlock, Pipeline, PassthroughPipeline from .common import Windower, Filter, FeatureExtractor __all__ = ['PipelineBlock', 'Pipeli...
<commit_before>""" The :mod:`hcibench.pipeline` module provides a flexible infrastructure for data processing and implements some common types of processing blocks. """ from .base import PipelineBlock, Pipeline, PassthroughPipeline from .common import Windower, Filter, FeatureExtractor __all__ = ['PipelineBlock', ...
dc0f82fb424bce899493be9ba483a1fe16ea4f64
setup.py
setup.py
from setuptools import setup, find_packages setup( name='jawa', packages=find_packages(), version='2.1.1', python_requires='>=3.6', description='Doing fun stuff with JVM ClassFiles.', long_description=open('README.md', 'r').read(), long_description_content_type='text/markdown', author=...
from setuptools import setup, find_packages setup( name='jawa', packages=find_packages(), version='2.1.1', python_requires='>=3.6', description='Doing fun stuff with JVM ClassFiles.', long_description=open('README.md', 'r').read(), long_description_content_type='text/markdown', author=...
Add bumpversion as a dev requirement.
Add bumpversion as a dev requirement.
Python
mit
TkTech/Jawa,TkTech/Jawa
from setuptools import setup, find_packages setup( name='jawa', packages=find_packages(), version='2.1.1', python_requires='>=3.6', description='Doing fun stuff with JVM ClassFiles.', long_description=open('README.md', 'r').read(), long_description_content_type='text/markdown', author=...
from setuptools import setup, find_packages setup( name='jawa', packages=find_packages(), version='2.1.1', python_requires='>=3.6', description='Doing fun stuff with JVM ClassFiles.', long_description=open('README.md', 'r').read(), long_description_content_type='text/markdown', author=...
<commit_before> from setuptools import setup, find_packages setup( name='jawa', packages=find_packages(), version='2.1.1', python_requires='>=3.6', description='Doing fun stuff with JVM ClassFiles.', long_description=open('README.md', 'r').read(), long_description_content_type='text/markdow...
from setuptools import setup, find_packages setup( name='jawa', packages=find_packages(), version='2.1.1', python_requires='>=3.6', description='Doing fun stuff with JVM ClassFiles.', long_description=open('README.md', 'r').read(), long_description_content_type='text/markdown', author=...
from setuptools import setup, find_packages setup( name='jawa', packages=find_packages(), version='2.1.1', python_requires='>=3.6', description='Doing fun stuff with JVM ClassFiles.', long_description=open('README.md', 'r').read(), long_description_content_type='text/markdown', author=...
<commit_before> from setuptools import setup, find_packages setup( name='jawa', packages=find_packages(), version='2.1.1', python_requires='>=3.6', description='Doing fun stuff with JVM ClassFiles.', long_description=open('README.md', 'r').read(), long_description_content_type='text/markdow...
e91b691ba2e9a83d8cc94f42bdc41c9a7350c790
setup.py
setup.py
#!/usr/bin/env python """Distutils installer for extras.""" from setuptools import setup import os.path import extras testtools_cmd = extras.try_import('testtools.TestCommand') def get_version(): """Return the version of extras that we are building.""" version = '.'.join( str(component) for componen...
#!/usr/bin/env python """Distutils installer for extras.""" from setuptools import setup import os.path import extras testtools_cmd = extras.try_import('testtools.TestCommand') def get_version(): """Return the version of extras that we are building.""" version = '.'.join( str(component) for componen...
Add trove classifiers specifying Python 3 support.
Add trove classifiers specifying Python 3 support.
Python
mit
testing-cabal/extras
#!/usr/bin/env python """Distutils installer for extras.""" from setuptools import setup import os.path import extras testtools_cmd = extras.try_import('testtools.TestCommand') def get_version(): """Return the version of extras that we are building.""" version = '.'.join( str(component) for componen...
#!/usr/bin/env python """Distutils installer for extras.""" from setuptools import setup import os.path import extras testtools_cmd = extras.try_import('testtools.TestCommand') def get_version(): """Return the version of extras that we are building.""" version = '.'.join( str(component) for componen...
<commit_before>#!/usr/bin/env python """Distutils installer for extras.""" from setuptools import setup import os.path import extras testtools_cmd = extras.try_import('testtools.TestCommand') def get_version(): """Return the version of extras that we are building.""" version = '.'.join( str(componen...
#!/usr/bin/env python """Distutils installer for extras.""" from setuptools import setup import os.path import extras testtools_cmd = extras.try_import('testtools.TestCommand') def get_version(): """Return the version of extras that we are building.""" version = '.'.join( str(component) for componen...
#!/usr/bin/env python """Distutils installer for extras.""" from setuptools import setup import os.path import extras testtools_cmd = extras.try_import('testtools.TestCommand') def get_version(): """Return the version of extras that we are building.""" version = '.'.join( str(component) for componen...
<commit_before>#!/usr/bin/env python """Distutils installer for extras.""" from setuptools import setup import os.path import extras testtools_cmd = extras.try_import('testtools.TestCommand') def get_version(): """Return the version of extras that we are building.""" version = '.'.join( str(componen...
0ed714d6982d8d4cec628a7549a0a348526f0cf2
setup.py
setup.py
import os import setuptools setuptools.setup( name='factory_djoy', version='0.5', description='Factories for Django, creating valid instances every time', url='http://github.com/jamescooke/factory_djoy', author='James Cooke', author_email='[email protected]', license='MIT', pac...
import os import setuptools setuptools.setup( name='factory_djoy', version='0.5.0', description='Factories for Django, creating valid instances every time', url='http://github.com/jamescooke/factory_djoy', author='James Cooke', author_email='[email protected]', license='MIT', p...
Add z Patch number as per symver.org
Add z Patch number as per symver.org
Python
mit
jamescooke/factory_djoy
import os import setuptools setuptools.setup( name='factory_djoy', version='0.5', description='Factories for Django, creating valid instances every time', url='http://github.com/jamescooke/factory_djoy', author='James Cooke', author_email='[email protected]', license='MIT', pac...
import os import setuptools setuptools.setup( name='factory_djoy', version='0.5.0', description='Factories for Django, creating valid instances every time', url='http://github.com/jamescooke/factory_djoy', author='James Cooke', author_email='[email protected]', license='MIT', p...
<commit_before>import os import setuptools setuptools.setup( name='factory_djoy', version='0.5', description='Factories for Django, creating valid instances every time', url='http://github.com/jamescooke/factory_djoy', author='James Cooke', author_email='[email protected]', license=...
import os import setuptools setuptools.setup( name='factory_djoy', version='0.5.0', description='Factories for Django, creating valid instances every time', url='http://github.com/jamescooke/factory_djoy', author='James Cooke', author_email='[email protected]', license='MIT', p...
import os import setuptools setuptools.setup( name='factory_djoy', version='0.5', description='Factories for Django, creating valid instances every time', url='http://github.com/jamescooke/factory_djoy', author='James Cooke', author_email='[email protected]', license='MIT', pac...
<commit_before>import os import setuptools setuptools.setup( name='factory_djoy', version='0.5', description='Factories for Django, creating valid instances every time', url='http://github.com/jamescooke/factory_djoy', author='James Cooke', author_email='[email protected]', license=...
fdb7c400adb777cdc60cf034569d81e95797cc10
infupy/backends/common.py
infupy/backends/common.py
import sys from abc import ABCMeta, abstractmethod def printerr(msg, e=''): msg = "Backend: " + str(msg) print(msg.format(e), file=sys.stderr) class CommandError(Exception): def __str__(self): return "Command error: {}".format(self.args) class Syringe(metaclass=ABCMeta): _events = set() ...
import sys from abc import ABCMeta, abstractmethod def printerr(msg, e=''): msg = "Backend: " + str(msg) print(msg.format(e), file=sys.stderr) class CommandError(Exception): def __str__(self): return "Command error: {}".format(self.args) class Syringe(metaclass=ABCMeta): _events = set() ...
Make abstract methods raise not implemented
Make abstract methods raise not implemented
Python
isc
jaj42/infupy
import sys from abc import ABCMeta, abstractmethod def printerr(msg, e=''): msg = "Backend: " + str(msg) print(msg.format(e), file=sys.stderr) class CommandError(Exception): def __str__(self): return "Command error: {}".format(self.args) class Syringe(metaclass=ABCMeta): _events = set() ...
import sys from abc import ABCMeta, abstractmethod def printerr(msg, e=''): msg = "Backend: " + str(msg) print(msg.format(e), file=sys.stderr) class CommandError(Exception): def __str__(self): return "Command error: {}".format(self.args) class Syringe(metaclass=ABCMeta): _events = set() ...
<commit_before>import sys from abc import ABCMeta, abstractmethod def printerr(msg, e=''): msg = "Backend: " + str(msg) print(msg.format(e), file=sys.stderr) class CommandError(Exception): def __str__(self): return "Command error: {}".format(self.args) class Syringe(metaclass=ABCMeta): _event...
import sys from abc import ABCMeta, abstractmethod def printerr(msg, e=''): msg = "Backend: " + str(msg) print(msg.format(e), file=sys.stderr) class CommandError(Exception): def __str__(self): return "Command error: {}".format(self.args) class Syringe(metaclass=ABCMeta): _events = set() ...
import sys from abc import ABCMeta, abstractmethod def printerr(msg, e=''): msg = "Backend: " + str(msg) print(msg.format(e), file=sys.stderr) class CommandError(Exception): def __str__(self): return "Command error: {}".format(self.args) class Syringe(metaclass=ABCMeta): _events = set() ...
<commit_before>import sys from abc import ABCMeta, abstractmethod def printerr(msg, e=''): msg = "Backend: " + str(msg) print(msg.format(e), file=sys.stderr) class CommandError(Exception): def __str__(self): return "Command error: {}".format(self.args) class Syringe(metaclass=ABCMeta): _event...
e635af49a1f72475980ff91406942707a369935d
setup.py
setup.py
__author__ = 'matth' from distutils.core import setup from setuptools import find_packages setup( name='py-exe-builder', version='0.1', packages = find_packages(), license='Apache License, Version 2.0', description='Uses py2exe to create small exe stubs that leverage a full python installation, r...
__author__ = 'matth' from distutils.core import setup from setuptools import find_packages setup( name='py-exe-builder', version='0.2.dev1', packages = find_packages(), license='Apache License, Version 2.0', description='Uses py2exe to create small exe stubs that leverage a full python installati...
Change version to dev version
Change version to dev version
Python
apache-2.0
j5int/py-exe-builder
__author__ = 'matth' from distutils.core import setup from setuptools import find_packages setup( name='py-exe-builder', version='0.1', packages = find_packages(), license='Apache License, Version 2.0', description='Uses py2exe to create small exe stubs that leverage a full python installation, r...
__author__ = 'matth' from distutils.core import setup from setuptools import find_packages setup( name='py-exe-builder', version='0.2.dev1', packages = find_packages(), license='Apache License, Version 2.0', description='Uses py2exe to create small exe stubs that leverage a full python installati...
<commit_before> __author__ = 'matth' from distutils.core import setup from setuptools import find_packages setup( name='py-exe-builder', version='0.1', packages = find_packages(), license='Apache License, Version 2.0', description='Uses py2exe to create small exe stubs that leverage a full python ...
__author__ = 'matth' from distutils.core import setup from setuptools import find_packages setup( name='py-exe-builder', version='0.2.dev1', packages = find_packages(), license='Apache License, Version 2.0', description='Uses py2exe to create small exe stubs that leverage a full python installati...
__author__ = 'matth' from distutils.core import setup from setuptools import find_packages setup( name='py-exe-builder', version='0.1', packages = find_packages(), license='Apache License, Version 2.0', description='Uses py2exe to create small exe stubs that leverage a full python installation, r...
<commit_before> __author__ = 'matth' from distutils.core import setup from setuptools import find_packages setup( name='py-exe-builder', version='0.1', packages = find_packages(), license='Apache License, Version 2.0', description='Uses py2exe to create small exe stubs that leverage a full python ...
d93b1c1feadb3e8c2dd0643a19b025faec305a7a
setup.py
setup.py
"""Setuptools packaging configuration for pyperf.""" from setuptools import setup from setuptools import find_packages with open('README.rst') as f: README = f.read() setup( name='py-perf', version='0.0.1', url='https://github.com/kevinconway/PyPerf', license="Apache2", description='A servi...
"""Setuptools packaging configuration for pyperf.""" from setuptools import setup from setuptools import find_packages with open('README.rst') as f: README = f.read() setup( name='py-perf', version='0.0.1', url='https://github.com/kevinconway/PyPerf', license="Apache2", description='A servi...
Add entry_point for profiler implementations
Add entry_point for profiler implementations
Python
apache-2.0
kevinconway/PyPerf,kevinconway/PyPerf,kevinconway/PyPerf
"""Setuptools packaging configuration for pyperf.""" from setuptools import setup from setuptools import find_packages with open('README.rst') as f: README = f.read() setup( name='py-perf', version='0.0.1', url='https://github.com/kevinconway/PyPerf', license="Apache2", description='A servi...
"""Setuptools packaging configuration for pyperf.""" from setuptools import setup from setuptools import find_packages with open('README.rst') as f: README = f.read() setup( name='py-perf', version='0.0.1', url='https://github.com/kevinconway/PyPerf', license="Apache2", description='A servi...
<commit_before>"""Setuptools packaging configuration for pyperf.""" from setuptools import setup from setuptools import find_packages with open('README.rst') as f: README = f.read() setup( name='py-perf', version='0.0.1', url='https://github.com/kevinconway/PyPerf', license="Apache2", descr...
"""Setuptools packaging configuration for pyperf.""" from setuptools import setup from setuptools import find_packages with open('README.rst') as f: README = f.read() setup( name='py-perf', version='0.0.1', url='https://github.com/kevinconway/PyPerf', license="Apache2", description='A servi...
"""Setuptools packaging configuration for pyperf.""" from setuptools import setup from setuptools import find_packages with open('README.rst') as f: README = f.read() setup( name='py-perf', version='0.0.1', url='https://github.com/kevinconway/PyPerf', license="Apache2", description='A servi...
<commit_before>"""Setuptools packaging configuration for pyperf.""" from setuptools import setup from setuptools import find_packages with open('README.rst') as f: README = f.read() setup( name='py-perf', version='0.0.1', url='https://github.com/kevinconway/PyPerf', license="Apache2", descr...
c656bca77d13afcfd8d6df0286b632433e08def1
setup.py
setup.py
import os from setuptools import setup from sys import platform REQUIREMENTS = [] if platform.startswith('darwin'): REQUIREMENTS.append('pyobjc-core >= 2.5') with open(os.path.join(os.path.dirname(__file__), 'nativeconfig', 'version.py')) as f: version = None code = compile(f.read(), 'version.py', 'exe...
import os from setuptools import setup from sys import platform REQUIREMENTS = [] if platform.startswith('darwin'): REQUIREMENTS.append('pyobjc-core >= 2.5') with open(os.path.join(os.path.dirname(__file__), 'nativeconfig', 'version.py')) as f: version = None code = compile(f.read(), 'version.py', 'exe...
Add subdirs of nativeconfig package to build.
Add subdirs of nativeconfig package to build.
Python
mit
GreatFruitOmsk/nativeconfig
import os from setuptools import setup from sys import platform REQUIREMENTS = [] if platform.startswith('darwin'): REQUIREMENTS.append('pyobjc-core >= 2.5') with open(os.path.join(os.path.dirname(__file__), 'nativeconfig', 'version.py')) as f: version = None code = compile(f.read(), 'version.py', 'exe...
import os from setuptools import setup from sys import platform REQUIREMENTS = [] if platform.startswith('darwin'): REQUIREMENTS.append('pyobjc-core >= 2.5') with open(os.path.join(os.path.dirname(__file__), 'nativeconfig', 'version.py')) as f: version = None code = compile(f.read(), 'version.py', 'exe...
<commit_before>import os from setuptools import setup from sys import platform REQUIREMENTS = [] if platform.startswith('darwin'): REQUIREMENTS.append('pyobjc-core >= 2.5') with open(os.path.join(os.path.dirname(__file__), 'nativeconfig', 'version.py')) as f: version = None code = compile(f.read(), 've...
import os from setuptools import setup from sys import platform REQUIREMENTS = [] if platform.startswith('darwin'): REQUIREMENTS.append('pyobjc-core >= 2.5') with open(os.path.join(os.path.dirname(__file__), 'nativeconfig', 'version.py')) as f: version = None code = compile(f.read(), 'version.py', 'exe...
import os from setuptools import setup from sys import platform REQUIREMENTS = [] if platform.startswith('darwin'): REQUIREMENTS.append('pyobjc-core >= 2.5') with open(os.path.join(os.path.dirname(__file__), 'nativeconfig', 'version.py')) as f: version = None code = compile(f.read(), 'version.py', 'exe...
<commit_before>import os from setuptools import setup from sys import platform REQUIREMENTS = [] if platform.startswith('darwin'): REQUIREMENTS.append('pyobjc-core >= 2.5') with open(os.path.join(os.path.dirname(__file__), 'nativeconfig', 'version.py')) as f: version = None code = compile(f.read(), 've...
ff921ad5b1d85dc9554dfcd9d94d96f9f80b0d2b
setup.py
setup.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # © 2017 qsuscs, TobiX import os import sys from glob import glob os.chdir(os.path.dirname(__file__)) exit = 0 for f in glob('dot.*'): dst = os.path.expanduser('~/' + f[3:].replace(u'\u2571', '/')) src = os.path.join(os.getcwd(), f) src_rel = os.path.relpath...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # © 2017 qsuscs, TobiX from __future__ import print_function, unicode_literals import os import sys from glob import glob os.chdir(os.path.dirname(os.path.abspath(__file__))) exit = 0 for f in glob('dot.*'): dst = os.path.expanduser('~/' + f[3:].replace(u'\u2571', ...
Fix compatibility with Python 2 ;)
Fix compatibility with Python 2 ;)
Python
isc
TobiX/dotfiles,TobiX/dotfiles
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # © 2017 qsuscs, TobiX import os import sys from glob import glob os.chdir(os.path.dirname(__file__)) exit = 0 for f in glob('dot.*'): dst = os.path.expanduser('~/' + f[3:].replace(u'\u2571', '/')) src = os.path.join(os.getcwd(), f) src_rel = os.path.relpath...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # © 2017 qsuscs, TobiX from __future__ import print_function, unicode_literals import os import sys from glob import glob os.chdir(os.path.dirname(os.path.abspath(__file__))) exit = 0 for f in glob('dot.*'): dst = os.path.expanduser('~/' + f[3:].replace(u'\u2571', ...
<commit_before>#!/usr/bin/env python3 # -*- coding: utf-8 -*- # © 2017 qsuscs, TobiX import os import sys from glob import glob os.chdir(os.path.dirname(__file__)) exit = 0 for f in glob('dot.*'): dst = os.path.expanduser('~/' + f[3:].replace(u'\u2571', '/')) src = os.path.join(os.getcwd(), f) src_rel = ...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # © 2017 qsuscs, TobiX from __future__ import print_function, unicode_literals import os import sys from glob import glob os.chdir(os.path.dirname(os.path.abspath(__file__))) exit = 0 for f in glob('dot.*'): dst = os.path.expanduser('~/' + f[3:].replace(u'\u2571', ...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # © 2017 qsuscs, TobiX import os import sys from glob import glob os.chdir(os.path.dirname(__file__)) exit = 0 for f in glob('dot.*'): dst = os.path.expanduser('~/' + f[3:].replace(u'\u2571', '/')) src = os.path.join(os.getcwd(), f) src_rel = os.path.relpath...
<commit_before>#!/usr/bin/env python3 # -*- coding: utf-8 -*- # © 2017 qsuscs, TobiX import os import sys from glob import glob os.chdir(os.path.dirname(__file__)) exit = 0 for f in glob('dot.*'): dst = os.path.expanduser('~/' + f[3:].replace(u'\u2571', '/')) src = os.path.join(os.getcwd(), f) src_rel = ...
c638dbf619030c8d207e3bfd2e711da7c6c5cdf4
passman.py
passman.py
#!/usr/bin/python3 # -*- coding: utf-8 -*- from splash import showSplash from functions import quit, getServiceFromUser, getPasswordFromUser, writeToFile def main(): while True: service = getServiceFromUser() pw = getPasswordFromUser() writeToFile(service, pw) # run the program showSp...
#!/usr/bin/python3 # -*- coding: utf-8 -*- import hashlib from splash import showSplash from functions import quit, getServiceFromUser, getPasswordFromUser, \ getUserInput, handleLogin, welcomeMessage, showMenu from database import addUser, getAllServices, checkIfServiceExists, \ addService, removeService,...
Clean up main a bit
Clean up main a bit
Python
mit
regexpressyourself/passman
#!/usr/bin/python3 # -*- coding: utf-8 -*- from splash import showSplash from functions import quit, getServiceFromUser, getPasswordFromUser, writeToFile def main(): while True: service = getServiceFromUser() pw = getPasswordFromUser() writeToFile(service, pw) # run the program showSp...
#!/usr/bin/python3 # -*- coding: utf-8 -*- import hashlib from splash import showSplash from functions import quit, getServiceFromUser, getPasswordFromUser, \ getUserInput, handleLogin, welcomeMessage, showMenu from database import addUser, getAllServices, checkIfServiceExists, \ addService, removeService,...
<commit_before>#!/usr/bin/python3 # -*- coding: utf-8 -*- from splash import showSplash from functions import quit, getServiceFromUser, getPasswordFromUser, writeToFile def main(): while True: service = getServiceFromUser() pw = getPasswordFromUser() writeToFile(service, pw) # run the...
#!/usr/bin/python3 # -*- coding: utf-8 -*- import hashlib from splash import showSplash from functions import quit, getServiceFromUser, getPasswordFromUser, \ getUserInput, handleLogin, welcomeMessage, showMenu from database import addUser, getAllServices, checkIfServiceExists, \ addService, removeService,...
#!/usr/bin/python3 # -*- coding: utf-8 -*- from splash import showSplash from functions import quit, getServiceFromUser, getPasswordFromUser, writeToFile def main(): while True: service = getServiceFromUser() pw = getPasswordFromUser() writeToFile(service, pw) # run the program showSp...
<commit_before>#!/usr/bin/python3 # -*- coding: utf-8 -*- from splash import showSplash from functions import quit, getServiceFromUser, getPasswordFromUser, writeToFile def main(): while True: service = getServiceFromUser() pw = getPasswordFromUser() writeToFile(service, pw) # run the...
8111060bae0818a44dc6669bf8ae011a1e612857
hunter/reviewsapi.py
hunter/reviewsapi.py
import requests import os from .endpoints import * class UnauthorizedToken(Exception): pass class ReviewsAPI: def __init__(self): token = os.environ['UDACITY_AUTH_TOKEN'] self.headers = {'Authorization': token, 'Content-Length': '0'} def execute(self, request): try: ...
import requests import os from .endpoints import * class UnauthorizedToken(Exception): pass class ReviewsAPI: def __init__(self): token = os.environ['UDACITY_AUTH_TOKEN'] self.headers = {'Authorization': token, 'Content-Length': '0'} def execute(self, request): try: ...
Remove whitespaces from lambda expression
Remove whitespaces from lambda expression
Python
mit
anapaulagomes/reviews-assigner
import requests import os from .endpoints import * class UnauthorizedToken(Exception): pass class ReviewsAPI: def __init__(self): token = os.environ['UDACITY_AUTH_TOKEN'] self.headers = {'Authorization': token, 'Content-Length': '0'} def execute(self, request): try: ...
import requests import os from .endpoints import * class UnauthorizedToken(Exception): pass class ReviewsAPI: def __init__(self): token = os.environ['UDACITY_AUTH_TOKEN'] self.headers = {'Authorization': token, 'Content-Length': '0'} def execute(self, request): try: ...
<commit_before>import requests import os from .endpoints import * class UnauthorizedToken(Exception): pass class ReviewsAPI: def __init__(self): token = os.environ['UDACITY_AUTH_TOKEN'] self.headers = {'Authorization': token, 'Content-Length': '0'} def execute(self, request): t...
import requests import os from .endpoints import * class UnauthorizedToken(Exception): pass class ReviewsAPI: def __init__(self): token = os.environ['UDACITY_AUTH_TOKEN'] self.headers = {'Authorization': token, 'Content-Length': '0'} def execute(self, request): try: ...
import requests import os from .endpoints import * class UnauthorizedToken(Exception): pass class ReviewsAPI: def __init__(self): token = os.environ['UDACITY_AUTH_TOKEN'] self.headers = {'Authorization': token, 'Content-Length': '0'} def execute(self, request): try: ...
<commit_before>import requests import os from .endpoints import * class UnauthorizedToken(Exception): pass class ReviewsAPI: def __init__(self): token = os.environ['UDACITY_AUTH_TOKEN'] self.headers = {'Authorization': token, 'Content-Length': '0'} def execute(self, request): t...
1dbc30202bddfd4f03bdc9a8005de3c363d2ac1d
blazar/plugins/dummy_vm_plugin.py
blazar/plugins/dummy_vm_plugin.py
# Copyright (c) 2013 Mirantis Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
# Copyright (c) 2013 Mirantis Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
Add update_reservation to dummy plugin
Add update_reservation to dummy plugin update_reservation is now an abstract method. It needs to be added to all plugins. Change-Id: I921878bd5233613b804b17813af1aac5bdfed9e7
Python
apache-2.0
ChameleonCloud/blazar,ChameleonCloud/blazar,openstack/blazar,stackforge/blazar,stackforge/blazar,openstack/blazar
# Copyright (c) 2013 Mirantis Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
# Copyright (c) 2013 Mirantis Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
<commit_before># Copyright (c) 2013 Mirantis Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
# Copyright (c) 2013 Mirantis Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
# Copyright (c) 2013 Mirantis Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
<commit_before># Copyright (c) 2013 Mirantis Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
b7627255c04e51ebb28f31365cff28ee9abcd05c
openspending/ui/test/functional/test_home.py
openspending/ui/test/functional/test_home.py
from .. import ControllerTestCase, url class TestHomeController(ControllerTestCase): def test_index(self): response = self.app.get(url(controller='home', action='index')) assert 'OpenSpending' in response def test_locale(self): response = self.app.get(url(controller='home', action='lo...
from .. import ControllerTestCase, url class TestHomeController(ControllerTestCase): def test_index(self): response = self.app.get(url(controller='home', action='index')) assert 'OpenSpending' in response def test_locale(self): response = self.app.get(url(controller='home', action='se...
Fix test for locale route generation.
Fix test for locale route generation.
Python
agpl-3.0
CivicVision/datahub,spendb/spendb,johnjohndoe/spendb,pudo/spendb,johnjohndoe/spendb,nathanhilbert/FPA_Core,openspending/spendb,CivicVision/datahub,spendb/spendb,johnjohndoe/spendb,USStateDept/FPA_Core,USStateDept/FPA_Core,openspending/spendb,pudo/spendb,CivicVision/datahub,nathanhilbert/FPA_Core,spendb/spendb,openspend...
from .. import ControllerTestCase, url class TestHomeController(ControllerTestCase): def test_index(self): response = self.app.get(url(controller='home', action='index')) assert 'OpenSpending' in response def test_locale(self): response = self.app.get(url(controller='home', action='lo...
from .. import ControllerTestCase, url class TestHomeController(ControllerTestCase): def test_index(self): response = self.app.get(url(controller='home', action='index')) assert 'OpenSpending' in response def test_locale(self): response = self.app.get(url(controller='home', action='se...
<commit_before>from .. import ControllerTestCase, url class TestHomeController(ControllerTestCase): def test_index(self): response = self.app.get(url(controller='home', action='index')) assert 'OpenSpending' in response def test_locale(self): response = self.app.get(url(controller='ho...
from .. import ControllerTestCase, url class TestHomeController(ControllerTestCase): def test_index(self): response = self.app.get(url(controller='home', action='index')) assert 'OpenSpending' in response def test_locale(self): response = self.app.get(url(controller='home', action='se...
from .. import ControllerTestCase, url class TestHomeController(ControllerTestCase): def test_index(self): response = self.app.get(url(controller='home', action='index')) assert 'OpenSpending' in response def test_locale(self): response = self.app.get(url(controller='home', action='lo...
<commit_before>from .. import ControllerTestCase, url class TestHomeController(ControllerTestCase): def test_index(self): response = self.app.get(url(controller='home', action='index')) assert 'OpenSpending' in response def test_locale(self): response = self.app.get(url(controller='ho...
16d77ff6a8d20773070630e1c7abb23c66345d72
setup.py
setup.py
from setuptools import setup setup(name='q', version='2.4', py_modules=['q'], description='Quick-and-dirty debugging output for tired programmers', author='Ka-Ping Yee', author_email='[email protected]', license='Apache License 2.0', url='http://github.com/zestyping/q', classifiers=[ 'Prog...
from setuptools import setup setup(name='q', version='2.5', py_modules=['q'], description='Quick-and-dirty debugging output for tired programmers', author='Ka-Ping Yee', author_email='[email protected]', license='Apache License 2.0', url='http://github.com/zestyping/q', classifiers=[ 'Prog...
Advance PyPI version to 2.5.
Advance PyPI version to 2.5.
Python
apache-2.0
zestyping/q
from setuptools import setup setup(name='q', version='2.4', py_modules=['q'], description='Quick-and-dirty debugging output for tired programmers', author='Ka-Ping Yee', author_email='[email protected]', license='Apache License 2.0', url='http://github.com/zestyping/q', classifiers=[ 'Prog...
from setuptools import setup setup(name='q', version='2.5', py_modules=['q'], description='Quick-and-dirty debugging output for tired programmers', author='Ka-Ping Yee', author_email='[email protected]', license='Apache License 2.0', url='http://github.com/zestyping/q', classifiers=[ 'Prog...
<commit_before>from setuptools import setup setup(name='q', version='2.4', py_modules=['q'], description='Quick-and-dirty debugging output for tired programmers', author='Ka-Ping Yee', author_email='[email protected]', license='Apache License 2.0', url='http://github.com/zestyping/q', classifiers=[ ...
from setuptools import setup setup(name='q', version='2.5', py_modules=['q'], description='Quick-and-dirty debugging output for tired programmers', author='Ka-Ping Yee', author_email='[email protected]', license='Apache License 2.0', url='http://github.com/zestyping/q', classifiers=[ 'Prog...
from setuptools import setup setup(name='q', version='2.4', py_modules=['q'], description='Quick-and-dirty debugging output for tired programmers', author='Ka-Ping Yee', author_email='[email protected]', license='Apache License 2.0', url='http://github.com/zestyping/q', classifiers=[ 'Prog...
<commit_before>from setuptools import setup setup(name='q', version='2.4', py_modules=['q'], description='Quick-and-dirty debugging output for tired programmers', author='Ka-Ping Yee', author_email='[email protected]', license='Apache License 2.0', url='http://github.com/zestyping/q', classifiers=[ ...
7fa490cb598aca2848ce886dfc45bb8606f07e58
backend/geonature/core/gn_profiles/models.py
backend/geonature/core/gn_profiles/models.py
from geonature.utils.env import DB from utils_flask_sqla.serializers import serializable @serializable class VmCorTaxonPhenology(DB.Model): __tablename__ = "vm_cor_taxon_phenology" __table_args__ = {"schema": "gn_profiles"} cd_ref = DB.Column(DB.Integer) period = DB.Column(DB.Integer) id_nomenclatu...
from flask import current_app from geoalchemy2 import Geometry from utils_flask_sqla.serializers import serializable from utils_flask_sqla_geo.serializers import geoserializable from geonature.utils.env import DB @serializable class VmCorTaxonPhenology(DB.Model): __tablename__ = "vm_cor_taxon_phenology" __ta...
Add VM valid profile model
Add VM valid profile model
Python
bsd-2-clause
PnEcrins/GeoNature,PnEcrins/GeoNature,PnEcrins/GeoNature,PnEcrins/GeoNature
from geonature.utils.env import DB from utils_flask_sqla.serializers import serializable @serializable class VmCorTaxonPhenology(DB.Model): __tablename__ = "vm_cor_taxon_phenology" __table_args__ = {"schema": "gn_profiles"} cd_ref = DB.Column(DB.Integer) period = DB.Column(DB.Integer) id_nomenclatu...
from flask import current_app from geoalchemy2 import Geometry from utils_flask_sqla.serializers import serializable from utils_flask_sqla_geo.serializers import geoserializable from geonature.utils.env import DB @serializable class VmCorTaxonPhenology(DB.Model): __tablename__ = "vm_cor_taxon_phenology" __ta...
<commit_before>from geonature.utils.env import DB from utils_flask_sqla.serializers import serializable @serializable class VmCorTaxonPhenology(DB.Model): __tablename__ = "vm_cor_taxon_phenology" __table_args__ = {"schema": "gn_profiles"} cd_ref = DB.Column(DB.Integer) period = DB.Column(DB.Integer) ...
from flask import current_app from geoalchemy2 import Geometry from utils_flask_sqla.serializers import serializable from utils_flask_sqla_geo.serializers import geoserializable from geonature.utils.env import DB @serializable class VmCorTaxonPhenology(DB.Model): __tablename__ = "vm_cor_taxon_phenology" __ta...
from geonature.utils.env import DB from utils_flask_sqla.serializers import serializable @serializable class VmCorTaxonPhenology(DB.Model): __tablename__ = "vm_cor_taxon_phenology" __table_args__ = {"schema": "gn_profiles"} cd_ref = DB.Column(DB.Integer) period = DB.Column(DB.Integer) id_nomenclatu...
<commit_before>from geonature.utils.env import DB from utils_flask_sqla.serializers import serializable @serializable class VmCorTaxonPhenology(DB.Model): __tablename__ = "vm_cor_taxon_phenology" __table_args__ = {"schema": "gn_profiles"} cd_ref = DB.Column(DB.Integer) period = DB.Column(DB.Integer) ...
52864307e692f40ddfe170a4b8607c4b2b96bff5
setup.py
setup.py
# -*- coding: utf-8 -*- import os from setuptools import setup def read(fname): try: return open(os.path.join(os.path.dirname(__file__), fname)).read() except: return '' setup( name='todoist-python', version='0.2.26', packages=['todoist', 'todoist.managers'], author='Doist Team...
# -*- coding: utf-8 -*- import os from setuptools import setup def read(fname): try: return open(os.path.join(os.path.dirname(__file__), fname)).read() except: return '' setup( name='todoist-python', version='7.0', packages=['todoist', 'todoist.managers'], author='Doist Team', ...
Update the PyPI version to 7.0.
Update the PyPI version to 7.0.
Python
mit
Doist/todoist-python
# -*- coding: utf-8 -*- import os from setuptools import setup def read(fname): try: return open(os.path.join(os.path.dirname(__file__), fname)).read() except: return '' setup( name='todoist-python', version='0.2.26', packages=['todoist', 'todoist.managers'], author='Doist Team...
# -*- coding: utf-8 -*- import os from setuptools import setup def read(fname): try: return open(os.path.join(os.path.dirname(__file__), fname)).read() except: return '' setup( name='todoist-python', version='7.0', packages=['todoist', 'todoist.managers'], author='Doist Team', ...
<commit_before># -*- coding: utf-8 -*- import os from setuptools import setup def read(fname): try: return open(os.path.join(os.path.dirname(__file__), fname)).read() except: return '' setup( name='todoist-python', version='0.2.26', packages=['todoist', 'todoist.managers'], aut...
# -*- coding: utf-8 -*- import os from setuptools import setup def read(fname): try: return open(os.path.join(os.path.dirname(__file__), fname)).read() except: return '' setup( name='todoist-python', version='7.0', packages=['todoist', 'todoist.managers'], author='Doist Team', ...
# -*- coding: utf-8 -*- import os from setuptools import setup def read(fname): try: return open(os.path.join(os.path.dirname(__file__), fname)).read() except: return '' setup( name='todoist-python', version='0.2.26', packages=['todoist', 'todoist.managers'], author='Doist Team...
<commit_before># -*- coding: utf-8 -*- import os from setuptools import setup def read(fname): try: return open(os.path.join(os.path.dirname(__file__), fname)).read() except: return '' setup( name='todoist-python', version='0.2.26', packages=['todoist', 'todoist.managers'], aut...
823179066c9a7c101a18e9c2d7ccb2a9ccf7f1cb
setup.py
setup.py
import os from setuptools import setup, find_packages from hamcrest import __version__ def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name = 'PyHamcrest', version = __version__, author = 'Jon Reid', author_email = '[email protected]', description = 'H...
import os from setuptools import setup, find_packages def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() import re matched = re.match('__version__.*', read(os.path.join('hamcrest', '__init__.py'))) if matched: exec(matched.group()) setup( name = 'PyHamcrest', version ...
Support python 3 installtion; need distribute
Support python 3 installtion; need distribute
Python
bsd-3-clause
msabramo/PyHamcrest,nitishr/PyHamcrest,nitishr/PyHamcrest,msabramo/PyHamcrest
import os from setuptools import setup, find_packages from hamcrest import __version__ def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name = 'PyHamcrest', version = __version__, author = 'Jon Reid', author_email = '[email protected]', description = 'H...
import os from setuptools import setup, find_packages def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() import re matched = re.match('__version__.*', read(os.path.join('hamcrest', '__init__.py'))) if matched: exec(matched.group()) setup( name = 'PyHamcrest', version ...
<commit_before>import os from setuptools import setup, find_packages from hamcrest import __version__ def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name = 'PyHamcrest', version = __version__, author = 'Jon Reid', author_email = '[email protected]', d...
import os from setuptools import setup, find_packages def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() import re matched = re.match('__version__.*', read(os.path.join('hamcrest', '__init__.py'))) if matched: exec(matched.group()) setup( name = 'PyHamcrest', version ...
import os from setuptools import setup, find_packages from hamcrest import __version__ def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name = 'PyHamcrest', version = __version__, author = 'Jon Reid', author_email = '[email protected]', description = 'H...
<commit_before>import os from setuptools import setup, find_packages from hamcrest import __version__ def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name = 'PyHamcrest', version = __version__, author = 'Jon Reid', author_email = '[email protected]', d...
c5b73be1bf0f0edd05c4743c2449bee568d01c76
setup.py
setup.py
from distutils.core import setup from turbasen import VERSION name = 'turbasen' setup( name=name, packages=[name], version=VERSION, description='Client for Nasjonal Turbase REST API', author='Ali Kaafarani', author_email='[email protected]', url='https://github.com/Turbase...
from distutils.core import setup from os import path from turbasen import VERSION name = 'turbasen' here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.md'), encoding='utf-8') as f: long_description = f.read() setup( name=name, packages=[name], version=VERSION, descript...
Add long description from README
Add long description from README
Python
mit
Turbasen/turbasen.py
from distutils.core import setup from turbasen import VERSION name = 'turbasen' setup( name=name, packages=[name], version=VERSION, description='Client for Nasjonal Turbase REST API', author='Ali Kaafarani', author_email='[email protected]', url='https://github.com/Turbase...
from distutils.core import setup from os import path from turbasen import VERSION name = 'turbasen' here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.md'), encoding='utf-8') as f: long_description = f.read() setup( name=name, packages=[name], version=VERSION, descript...
<commit_before>from distutils.core import setup from turbasen import VERSION name = 'turbasen' setup( name=name, packages=[name], version=VERSION, description='Client for Nasjonal Turbase REST API', author='Ali Kaafarani', author_email='[email protected]', url='https://git...
from distutils.core import setup from os import path from turbasen import VERSION name = 'turbasen' here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.md'), encoding='utf-8') as f: long_description = f.read() setup( name=name, packages=[name], version=VERSION, descript...
from distutils.core import setup from turbasen import VERSION name = 'turbasen' setup( name=name, packages=[name], version=VERSION, description='Client for Nasjonal Turbase REST API', author='Ali Kaafarani', author_email='[email protected]', url='https://github.com/Turbase...
<commit_before>from distutils.core import setup from turbasen import VERSION name = 'turbasen' setup( name=name, packages=[name], version=VERSION, description='Client for Nasjonal Turbase REST API', author='Ali Kaafarani', author_email='[email protected]', url='https://git...
7a80fd081c6d8ece2b199f4a7915dc59d1805437
setup.py
setup.py
#!/usr/bin/env python from os import path from setuptools import setup with open(path.join(path.abspath(path.dirname(__file__)), 'README.rst')) as f: long_description = f.read() setup(name='django_uncertainty', version='1.5', description='A Django middleware to generate predictable errors on sites'...
#!/usr/bin/env python from os import path from setuptools import setup with open(path.join(path.abspath(path.dirname(__file__)), 'README.rst')) as f: long_description = f.read() setup(name='django_uncertainty', version='1.5', description='A Django middleware to generate predictable errors on sites'...
Remove support for Python 2
Remove support for Python 2
Python
bsd-3-clause
abarto/django_uncertainty
#!/usr/bin/env python from os import path from setuptools import setup with open(path.join(path.abspath(path.dirname(__file__)), 'README.rst')) as f: long_description = f.read() setup(name='django_uncertainty', version='1.5', description='A Django middleware to generate predictable errors on sites'...
#!/usr/bin/env python from os import path from setuptools import setup with open(path.join(path.abspath(path.dirname(__file__)), 'README.rst')) as f: long_description = f.read() setup(name='django_uncertainty', version='1.5', description='A Django middleware to generate predictable errors on sites'...
<commit_before>#!/usr/bin/env python from os import path from setuptools import setup with open(path.join(path.abspath(path.dirname(__file__)), 'README.rst')) as f: long_description = f.read() setup(name='django_uncertainty', version='1.5', description='A Django middleware to generate predictable e...
#!/usr/bin/env python from os import path from setuptools import setup with open(path.join(path.abspath(path.dirname(__file__)), 'README.rst')) as f: long_description = f.read() setup(name='django_uncertainty', version='1.5', description='A Django middleware to generate predictable errors on sites'...
#!/usr/bin/env python from os import path from setuptools import setup with open(path.join(path.abspath(path.dirname(__file__)), 'README.rst')) as f: long_description = f.read() setup(name='django_uncertainty', version='1.5', description='A Django middleware to generate predictable errors on sites'...
<commit_before>#!/usr/bin/env python from os import path from setuptools import setup with open(path.join(path.abspath(path.dirname(__file__)), 'README.rst')) as f: long_description = f.read() setup(name='django_uncertainty', version='1.5', description='A Django middleware to generate predictable e...
89dfdc7ebe2fe483d2b306dac83a666aa7c013d7
setup.py
setup.py
#!/usr/bin/env python from os.path import join from setuptools import setup, find_packages name = 'geokey-sapelli' version = __import__(name.replace('-', '_')).__version__ repository = join('https://github.com/ExCiteS', name) setup( name=name, version=version, description='Read Sapelli project and load ...
#!/usr/bin/env python from os.path import dirname, join from setuptools import setup, find_packages def read(file_name): with open(join(dirname(__file__), file_name)) as file_object: return file_object.read() name = 'geokey-sapelli' version = __import__(name.replace('-', '_')).__version__ repository = ...
Include README for PyPI release
Include README for PyPI release
Python
mit
ExCiteS/geokey-sapelli,ExCiteS/geokey-sapelli
#!/usr/bin/env python from os.path import join from setuptools import setup, find_packages name = 'geokey-sapelli' version = __import__(name.replace('-', '_')).__version__ repository = join('https://github.com/ExCiteS', name) setup( name=name, version=version, description='Read Sapelli project and load ...
#!/usr/bin/env python from os.path import dirname, join from setuptools import setup, find_packages def read(file_name): with open(join(dirname(__file__), file_name)) as file_object: return file_object.read() name = 'geokey-sapelli' version = __import__(name.replace('-', '_')).__version__ repository = ...
<commit_before>#!/usr/bin/env python from os.path import join from setuptools import setup, find_packages name = 'geokey-sapelli' version = __import__(name.replace('-', '_')).__version__ repository = join('https://github.com/ExCiteS', name) setup( name=name, version=version, description='Read Sapelli pr...
#!/usr/bin/env python from os.path import dirname, join from setuptools import setup, find_packages def read(file_name): with open(join(dirname(__file__), file_name)) as file_object: return file_object.read() name = 'geokey-sapelli' version = __import__(name.replace('-', '_')).__version__ repository = ...
#!/usr/bin/env python from os.path import join from setuptools import setup, find_packages name = 'geokey-sapelli' version = __import__(name.replace('-', '_')).__version__ repository = join('https://github.com/ExCiteS', name) setup( name=name, version=version, description='Read Sapelli project and load ...
<commit_before>#!/usr/bin/env python from os.path import join from setuptools import setup, find_packages name = 'geokey-sapelli' version = __import__(name.replace('-', '_')).__version__ repository = join('https://github.com/ExCiteS', name) setup( name=name, version=version, description='Read Sapelli pr...
2c7924b879be6536f0a6f0f7f78e5813156734af
setup.py
setup.py
from setuptools import setup, find_packages setup( name='neomodel', version='0.4.0', description='An object mapper for the neo4j graph database.', long_description=open('README.rst').read(), author='Robin Edwards', author_email='[email protected]', zip_safe=True, url='http://github.com...
from setuptools import setup, find_packages setup( name='neomodel', version='1.0.0', description='An object mapper for the neo4j graph database.', long_description=open('README.rst').read(), author='Robin Edwards', author_email='[email protected]', zip_safe=True, url='http://github.com...
Remove lucene query builder and bumper version
Remove lucene query builder and bumper version
Python
mit
bleib1dj/neomodel,fpieper/neomodel,robinedwards/neomodel,cristigociu/neomodel_dh,bleib1dj/neomodel,pombredanne/neomodel,robinedwards/neomodel,andrefsp/neomodel,wcooley/neomodel
from setuptools import setup, find_packages setup( name='neomodel', version='0.4.0', description='An object mapper for the neo4j graph database.', long_description=open('README.rst').read(), author='Robin Edwards', author_email='[email protected]', zip_safe=True, url='http://github.com...
from setuptools import setup, find_packages setup( name='neomodel', version='1.0.0', description='An object mapper for the neo4j graph database.', long_description=open('README.rst').read(), author='Robin Edwards', author_email='[email protected]', zip_safe=True, url='http://github.com...
<commit_before>from setuptools import setup, find_packages setup( name='neomodel', version='0.4.0', description='An object mapper for the neo4j graph database.', long_description=open('README.rst').read(), author='Robin Edwards', author_email='[email protected]', zip_safe=True, url='ht...
from setuptools import setup, find_packages setup( name='neomodel', version='1.0.0', description='An object mapper for the neo4j graph database.', long_description=open('README.rst').read(), author='Robin Edwards', author_email='[email protected]', zip_safe=True, url='http://github.com...
from setuptools import setup, find_packages setup( name='neomodel', version='0.4.0', description='An object mapper for the neo4j graph database.', long_description=open('README.rst').read(), author='Robin Edwards', author_email='[email protected]', zip_safe=True, url='http://github.com...
<commit_before>from setuptools import setup, find_packages setup( name='neomodel', version='0.4.0', description='An object mapper for the neo4j graph database.', long_description=open('README.rst').read(), author='Robin Edwards', author_email='[email protected]', zip_safe=True, url='ht...
69281da6f69bbdc5cfb832efa0b0c1b7810eb262
setup.py
setup.py
# -*- coding: utf-8 -*- from distutils.core import setup readme_file = open('README.rst') setup( name='django-db-file-storage', version='0.3.1', author='Victor Oliveira da Silva', author_email='[email protected]', packages=['db_file_storage'], url='https://github.com/victor-o-silva/d...
# -*- coding: utf-8 -*- from distutils.core import setup readme_file = open('README.rst') setup( name='django-db-file-storage', version='0.3.1', author='Victor Oliveira da Silva', author_email='[email protected]', packages=['db_file_storage'], url='https://github.com/victor-o-silva/d...
Mark as compatible for python 2.7, 3.3 and 3.4
Mark as compatible for python 2.7, 3.3 and 3.4 Add `classifiers` parameter to `setup` function call in `setup.py` file.
Python
mit
victor-o-silva/db_file_storage,victor-o-silva/db_file_storage
# -*- coding: utf-8 -*- from distutils.core import setup readme_file = open('README.rst') setup( name='django-db-file-storage', version='0.3.1', author='Victor Oliveira da Silva', author_email='[email protected]', packages=['db_file_storage'], url='https://github.com/victor-o-silva/d...
# -*- coding: utf-8 -*- from distutils.core import setup readme_file = open('README.rst') setup( name='django-db-file-storage', version='0.3.1', author='Victor Oliveira da Silva', author_email='[email protected]', packages=['db_file_storage'], url='https://github.com/victor-o-silva/d...
<commit_before># -*- coding: utf-8 -*- from distutils.core import setup readme_file = open('README.rst') setup( name='django-db-file-storage', version='0.3.1', author='Victor Oliveira da Silva', author_email='[email protected]', packages=['db_file_storage'], url='https://github.com/v...
# -*- coding: utf-8 -*- from distutils.core import setup readme_file = open('README.rst') setup( name='django-db-file-storage', version='0.3.1', author='Victor Oliveira da Silva', author_email='[email protected]', packages=['db_file_storage'], url='https://github.com/victor-o-silva/d...
# -*- coding: utf-8 -*- from distutils.core import setup readme_file = open('README.rst') setup( name='django-db-file-storage', version='0.3.1', author='Victor Oliveira da Silva', author_email='[email protected]', packages=['db_file_storage'], url='https://github.com/victor-o-silva/d...
<commit_before># -*- coding: utf-8 -*- from distutils.core import setup readme_file = open('README.rst') setup( name='django-db-file-storage', version='0.3.1', author='Victor Oliveira da Silva', author_email='[email protected]', packages=['db_file_storage'], url='https://github.com/v...
b04ef68d079bf4ef172c6fa7f84946369b080cb7
setup.py
setup.py
"""setup.py""" from codecs import open as codecs_open from setuptools import setup with codecs_open('README.rst', 'r', 'utf-8') as f: README = f.read() with codecs_open('HISTORY.rst', 'r', 'utf-8') as f: HISTORY = f.read() setup( name='jsonrpcserver', version='3.4.0', description='Process JSON-R...
"""setup.py""" from codecs import open as codecs_open from setuptools import setup with codecs_open('README.rst', 'r', 'utf-8') as f: README = f.read() with codecs_open('HISTORY.rst', 'r', 'utf-8') as f: HISTORY = f.read() setup( name='jsonrpcserver', version='3.4.0', description='Process JSON-R...
Add to extras_require examples section
Add to extras_require examples section
Python
mit
bcb/jsonrpcserver
"""setup.py""" from codecs import open as codecs_open from setuptools import setup with codecs_open('README.rst', 'r', 'utf-8') as f: README = f.read() with codecs_open('HISTORY.rst', 'r', 'utf-8') as f: HISTORY = f.read() setup( name='jsonrpcserver', version='3.4.0', description='Process JSON-R...
"""setup.py""" from codecs import open as codecs_open from setuptools import setup with codecs_open('README.rst', 'r', 'utf-8') as f: README = f.read() with codecs_open('HISTORY.rst', 'r', 'utf-8') as f: HISTORY = f.read() setup( name='jsonrpcserver', version='3.4.0', description='Process JSON-R...
<commit_before>"""setup.py""" from codecs import open as codecs_open from setuptools import setup with codecs_open('README.rst', 'r', 'utf-8') as f: README = f.read() with codecs_open('HISTORY.rst', 'r', 'utf-8') as f: HISTORY = f.read() setup( name='jsonrpcserver', version='3.4.0', description=...
"""setup.py""" from codecs import open as codecs_open from setuptools import setup with codecs_open('README.rst', 'r', 'utf-8') as f: README = f.read() with codecs_open('HISTORY.rst', 'r', 'utf-8') as f: HISTORY = f.read() setup( name='jsonrpcserver', version='3.4.0', description='Process JSON-R...
"""setup.py""" from codecs import open as codecs_open from setuptools import setup with codecs_open('README.rst', 'r', 'utf-8') as f: README = f.read() with codecs_open('HISTORY.rst', 'r', 'utf-8') as f: HISTORY = f.read() setup( name='jsonrpcserver', version='3.4.0', description='Process JSON-R...
<commit_before>"""setup.py""" from codecs import open as codecs_open from setuptools import setup with codecs_open('README.rst', 'r', 'utf-8') as f: README = f.read() with codecs_open('HISTORY.rst', 'r', 'utf-8') as f: HISTORY = f.read() setup( name='jsonrpcserver', version='3.4.0', description=...
ad889be15a374ff07492b549ba454bafd3a76fd7
setup.py
setup.py
import os from setuptools import find_packages, setup with open(os.path.join(os.path.dirname(__file__), 'README.rst'), encoding='utf-8') as readme: README = readme.read() setup( name='django-postgres-extra', version='1.21a2', packages=find_packages(), include_package_data=True, license='MIT L...
import os from setuptools import find_packages, setup with open(os.path.join(os.path.dirname(__file__), 'README.rst'), encoding='utf-8') as readme: README = readme.read().split('h1>', 2)[1] setup( name='django-postgres-extra', version='1.21a2', packages=find_packages(), include_package_data=True,...
Cut out logo in README uploaded to PyPi
Cut out logo in README uploaded to PyPi
Python
mit
SectorLabs/django-postgres-extra
import os from setuptools import find_packages, setup with open(os.path.join(os.path.dirname(__file__), 'README.rst'), encoding='utf-8') as readme: README = readme.read() setup( name='django-postgres-extra', version='1.21a2', packages=find_packages(), include_package_data=True, license='MIT L...
import os from setuptools import find_packages, setup with open(os.path.join(os.path.dirname(__file__), 'README.rst'), encoding='utf-8') as readme: README = readme.read().split('h1>', 2)[1] setup( name='django-postgres-extra', version='1.21a2', packages=find_packages(), include_package_data=True,...
<commit_before>import os from setuptools import find_packages, setup with open(os.path.join(os.path.dirname(__file__), 'README.rst'), encoding='utf-8') as readme: README = readme.read() setup( name='django-postgres-extra', version='1.21a2', packages=find_packages(), include_package_data=True, ...
import os from setuptools import find_packages, setup with open(os.path.join(os.path.dirname(__file__), 'README.rst'), encoding='utf-8') as readme: README = readme.read().split('h1>', 2)[1] setup( name='django-postgres-extra', version='1.21a2', packages=find_packages(), include_package_data=True,...
import os from setuptools import find_packages, setup with open(os.path.join(os.path.dirname(__file__), 'README.rst'), encoding='utf-8') as readme: README = readme.read() setup( name='django-postgres-extra', version='1.21a2', packages=find_packages(), include_package_data=True, license='MIT L...
<commit_before>import os from setuptools import find_packages, setup with open(os.path.join(os.path.dirname(__file__), 'README.rst'), encoding='utf-8') as readme: README = readme.read() setup( name='django-postgres-extra', version='1.21a2', packages=find_packages(), include_package_data=True, ...
3ab6dbf87053634ce48627787151a24b33b546af
setup.py
setup.py
# -*- coding: utf-8 -*- import os from setuptools import setup def read(fname): try: return open(os.path.join(os.path.dirname(__file__), fname)).read() except: return '' setup( name='todoist-python', version='0.2.5', packages=['todoist', 'todoist.managers'], author='Doist Team'...
# -*- coding: utf-8 -*- import os from setuptools import setup def read(fname): try: return open(os.path.join(os.path.dirname(__file__), fname)).read() except: return '' setup( name='todoist-python', version='0.2.6', packages=['todoist', 'todoist.managers'], author='Doist Team'...
Update the PyPI version to 0.2.6.
Update the PyPI version to 0.2.6.
Python
mit
Doist/todoist-python,electronick1/todoist-python
# -*- coding: utf-8 -*- import os from setuptools import setup def read(fname): try: return open(os.path.join(os.path.dirname(__file__), fname)).read() except: return '' setup( name='todoist-python', version='0.2.5', packages=['todoist', 'todoist.managers'], author='Doist Team'...
# -*- coding: utf-8 -*- import os from setuptools import setup def read(fname): try: return open(os.path.join(os.path.dirname(__file__), fname)).read() except: return '' setup( name='todoist-python', version='0.2.6', packages=['todoist', 'todoist.managers'], author='Doist Team'...
<commit_before># -*- coding: utf-8 -*- import os from setuptools import setup def read(fname): try: return open(os.path.join(os.path.dirname(__file__), fname)).read() except: return '' setup( name='todoist-python', version='0.2.5', packages=['todoist', 'todoist.managers'], auth...
# -*- coding: utf-8 -*- import os from setuptools import setup def read(fname): try: return open(os.path.join(os.path.dirname(__file__), fname)).read() except: return '' setup( name='todoist-python', version='0.2.6', packages=['todoist', 'todoist.managers'], author='Doist Team'...
# -*- coding: utf-8 -*- import os from setuptools import setup def read(fname): try: return open(os.path.join(os.path.dirname(__file__), fname)).read() except: return '' setup( name='todoist-python', version='0.2.5', packages=['todoist', 'todoist.managers'], author='Doist Team'...
<commit_before># -*- coding: utf-8 -*- import os from setuptools import setup def read(fname): try: return open(os.path.join(os.path.dirname(__file__), fname)).read() except: return '' setup( name='todoist-python', version='0.2.5', packages=['todoist', 'todoist.managers'], auth...
b98b804ea83723d476f50a46e9ba4dbe8fc6e4a4
setup.py
setup.py
from setuptools import find_packages from setuptools import setup setup( name='kms-encryption-toolbox', version='0.0.5', url='https://github.com/ApplauseOSS/kms-encryption-toolbox', license='Applause', description='Encryption toolbox to be used with the Amazon Key Management Service for securing yo...
from setuptools import find_packages from setuptools import setup setup( name='kms-encryption-toolbox', version='0.0.6', url='https://github.com/ApplauseOSS/kms-encryption-toolbox', license='Applause', description='Encryption toolbox to be used with the Amazon Key Management Service for securing yo...
Add cffi to the package requirements.
Add cffi to the package requirements.
Python
mit
ApplauseOSS/kms-encryption-toolbox
from setuptools import find_packages from setuptools import setup setup( name='kms-encryption-toolbox', version='0.0.5', url='https://github.com/ApplauseOSS/kms-encryption-toolbox', license='Applause', description='Encryption toolbox to be used with the Amazon Key Management Service for securing yo...
from setuptools import find_packages from setuptools import setup setup( name='kms-encryption-toolbox', version='0.0.6', url='https://github.com/ApplauseOSS/kms-encryption-toolbox', license='Applause', description='Encryption toolbox to be used with the Amazon Key Management Service for securing yo...
<commit_before>from setuptools import find_packages from setuptools import setup setup( name='kms-encryption-toolbox', version='0.0.5', url='https://github.com/ApplauseOSS/kms-encryption-toolbox', license='Applause', description='Encryption toolbox to be used with the Amazon Key Management Service ...
from setuptools import find_packages from setuptools import setup setup( name='kms-encryption-toolbox', version='0.0.6', url='https://github.com/ApplauseOSS/kms-encryption-toolbox', license='Applause', description='Encryption toolbox to be used with the Amazon Key Management Service for securing yo...
from setuptools import find_packages from setuptools import setup setup( name='kms-encryption-toolbox', version='0.0.5', url='https://github.com/ApplauseOSS/kms-encryption-toolbox', license='Applause', description='Encryption toolbox to be used with the Amazon Key Management Service for securing yo...
<commit_before>from setuptools import find_packages from setuptools import setup setup( name='kms-encryption-toolbox', version='0.0.5', url='https://github.com/ApplauseOSS/kms-encryption-toolbox', license='Applause', description='Encryption toolbox to be used with the Amazon Key Management Service ...
548d5b46607d1023e7b0a95c6a2995419fa06b50
fickle/api.py
fickle/api.py
import flask from flask import request, json def Response(data, status = 200): body = json.dumps(data) return flask.Response(body, status = status, mimetype = 'application/json') def SuccessResponse(dataset_id = None): return Response({ 'success': True, 'id': dataset_id }) def ErrorResponse(status = 400)...
import flask from flask import request, json def Response(data, status = 200): body = json.dumps(data) return flask.Response(body, status = status, mimetype = 'application/json') def SuccessResponse(dataset_id = None): return Response({ 'success': True, 'id': dataset_id }) def ErrorResponse(status = 400)...
Change HTTP method for validate endpoint
Change HTTP method for validate endpoint
Python
mit
norbert/fickle
import flask from flask import request, json def Response(data, status = 200): body = json.dumps(data) return flask.Response(body, status = status, mimetype = 'application/json') def SuccessResponse(dataset_id = None): return Response({ 'success': True, 'id': dataset_id }) def ErrorResponse(status = 400)...
import flask from flask import request, json def Response(data, status = 200): body = json.dumps(data) return flask.Response(body, status = status, mimetype = 'application/json') def SuccessResponse(dataset_id = None): return Response({ 'success': True, 'id': dataset_id }) def ErrorResponse(status = 400)...
<commit_before>import flask from flask import request, json def Response(data, status = 200): body = json.dumps(data) return flask.Response(body, status = status, mimetype = 'application/json') def SuccessResponse(dataset_id = None): return Response({ 'success': True, 'id': dataset_id }) def ErrorRespons...
import flask from flask import request, json def Response(data, status = 200): body = json.dumps(data) return flask.Response(body, status = status, mimetype = 'application/json') def SuccessResponse(dataset_id = None): return Response({ 'success': True, 'id': dataset_id }) def ErrorResponse(status = 400)...
import flask from flask import request, json def Response(data, status = 200): body = json.dumps(data) return flask.Response(body, status = status, mimetype = 'application/json') def SuccessResponse(dataset_id = None): return Response({ 'success': True, 'id': dataset_id }) def ErrorResponse(status = 400)...
<commit_before>import flask from flask import request, json def Response(data, status = 200): body = json.dumps(data) return flask.Response(body, status = status, mimetype = 'application/json') def SuccessResponse(dataset_id = None): return Response({ 'success': True, 'id': dataset_id }) def ErrorRespons...
6007c5800ea1f59ac26417b5081323c0b40446ad
almanacbot/almanac-bot.py
almanacbot/almanac-bot.py
import json import logging import logging.config import os import sys import config import constants def setup_logging( path='logging.json', log_level=logging.DEBUG, env_key='LOG_CFG' ): env_path = os.getenv(env_key, None) if env_path: path = env_path if os.path.exists(pat...
import json import logging import logging.config import os import sys import config import constants import twitter conf = None twitter_api = None def setup_logging( path='logging.json', log_level=logging.DEBUG, env_key='LOG_CFG' ): env_path = os.getenv(env_key, None) if env_path: ...
Add Twitter API client initialization.
Add Twitter API client initialization.
Python
mit
logoff/almanac-bot,logoff/almanac-bot
import json import logging import logging.config import os import sys import config import constants def setup_logging( path='logging.json', log_level=logging.DEBUG, env_key='LOG_CFG' ): env_path = os.getenv(env_key, None) if env_path: path = env_path if os.path.exists(pat...
import json import logging import logging.config import os import sys import config import constants import twitter conf = None twitter_api = None def setup_logging( path='logging.json', log_level=logging.DEBUG, env_key='LOG_CFG' ): env_path = os.getenv(env_key, None) if env_path: ...
<commit_before>import json import logging import logging.config import os import sys import config import constants def setup_logging( path='logging.json', log_level=logging.DEBUG, env_key='LOG_CFG' ): env_path = os.getenv(env_key, None) if env_path: path = env_path if os....
import json import logging import logging.config import os import sys import config import constants import twitter conf = None twitter_api = None def setup_logging( path='logging.json', log_level=logging.DEBUG, env_key='LOG_CFG' ): env_path = os.getenv(env_key, None) if env_path: ...
import json import logging import logging.config import os import sys import config import constants def setup_logging( path='logging.json', log_level=logging.DEBUG, env_key='LOG_CFG' ): env_path = os.getenv(env_key, None) if env_path: path = env_path if os.path.exists(pat...
<commit_before>import json import logging import logging.config import os import sys import config import constants def setup_logging( path='logging.json', log_level=logging.DEBUG, env_key='LOG_CFG' ): env_path = os.getenv(env_key, None) if env_path: path = env_path if os....
ae966a3cb7f99e5604c8302680f125e12087003a
blackhole/state.py
blackhole/state.py
class MailState(): _reading_data = False def set_reading(self, val): self._reading_data = val def get_reading(self): return self._reading_data
class MailState(): _reading_data = False def set_reading(self, val): self._reading_data = val @property def reading(self): return self._reading_data
Change getter in to property
Change getter in to property
Python
mit
kura/blackhole,kura/blackhole
class MailState(): _reading_data = False def set_reading(self, val): self._reading_data = val def get_reading(self): return self._reading_data Change getter in to property
class MailState(): _reading_data = False def set_reading(self, val): self._reading_data = val @property def reading(self): return self._reading_data
<commit_before> class MailState(): _reading_data = False def set_reading(self, val): self._reading_data = val def get_reading(self): return self._reading_data <commit_msg>Change getter in to property<commit_after>
class MailState(): _reading_data = False def set_reading(self, val): self._reading_data = val @property def reading(self): return self._reading_data
class MailState(): _reading_data = False def set_reading(self, val): self._reading_data = val def get_reading(self): return self._reading_data Change getter in to propertyclass MailState(): _reading_data = False def set_reading(self, val): self._reading_data = val @p...
<commit_before> class MailState(): _reading_data = False def set_reading(self, val): self._reading_data = val def get_reading(self): return self._reading_data <commit_msg>Change getter in to property<commit_after>class MailState(): _reading_data = False def set_reading(self, val):...
e50fc12459e6ff77864fe499b512a57e89f7ead2
pi_control_service/gpio_service.py
pi_control_service/gpio_service.py
from rpc import RPCService from pi_pin_manager import PinManager ALLOWED_ACTIONS = ('on', 'off', 'read') class GPIOService(RPCService): def __init__(self, rabbit_url, device_key, pin_config): self.pins = PinManager(config_file=pin_config) super(GPIOService, self).__init__( rabbit_ur...
from rpc import RPCService from pi_pin_manager import PinManager ALLOWED_ACTIONS = ('on', 'off', 'read') class GPIOService(RPCService): def __init__(self, rabbit_url, device_key, pin_config): self.pins = PinManager(config_file=pin_config) super(GPIOService, self).__init__( rabbit_ur...
Send exception message in response
Send exception message in response
Python
mit
projectweekend/Pi-Control-Service,HydAu/ProjectWeekds_Pi-Control-Service
from rpc import RPCService from pi_pin_manager import PinManager ALLOWED_ACTIONS = ('on', 'off', 'read') class GPIOService(RPCService): def __init__(self, rabbit_url, device_key, pin_config): self.pins = PinManager(config_file=pin_config) super(GPIOService, self).__init__( rabbit_ur...
from rpc import RPCService from pi_pin_manager import PinManager ALLOWED_ACTIONS = ('on', 'off', 'read') class GPIOService(RPCService): def __init__(self, rabbit_url, device_key, pin_config): self.pins = PinManager(config_file=pin_config) super(GPIOService, self).__init__( rabbit_ur...
<commit_before>from rpc import RPCService from pi_pin_manager import PinManager ALLOWED_ACTIONS = ('on', 'off', 'read') class GPIOService(RPCService): def __init__(self, rabbit_url, device_key, pin_config): self.pins = PinManager(config_file=pin_config) super(GPIOService, self).__init__( ...
from rpc import RPCService from pi_pin_manager import PinManager ALLOWED_ACTIONS = ('on', 'off', 'read') class GPIOService(RPCService): def __init__(self, rabbit_url, device_key, pin_config): self.pins = PinManager(config_file=pin_config) super(GPIOService, self).__init__( rabbit_ur...
from rpc import RPCService from pi_pin_manager import PinManager ALLOWED_ACTIONS = ('on', 'off', 'read') class GPIOService(RPCService): def __init__(self, rabbit_url, device_key, pin_config): self.pins = PinManager(config_file=pin_config) super(GPIOService, self).__init__( rabbit_ur...
<commit_before>from rpc import RPCService from pi_pin_manager import PinManager ALLOWED_ACTIONS = ('on', 'off', 'read') class GPIOService(RPCService): def __init__(self, rabbit_url, device_key, pin_config): self.pins = PinManager(config_file=pin_config) super(GPIOService, self).__init__( ...
fe4fec66cbf4100752c4b7414090019ab8ddb8ce
ideascube/conf/idb_bdi.py
ideascube/conf/idb_bdi.py
"""Generic config for Ideasbox of Burundi""" from .idb import * # noqa from django.utils.translation import ugettext_lazy as _ USER_FORM_FIELDS = ( ('Ideasbox', ['serial', 'box_awareness']), (_('Personal informations'), ['refugee_id', 'short_name', 'full_name', 'birth_year', 'gender', 'phone']), # noqa (...
"""Generic config for Ideasbox of Burundi""" from .idb import * # noqa from django.utils.translation import ugettext_lazy as _ USER_FORM_FIELDS = ( ('Ideasbox', ['serial', 'box_awareness']), (_('Personal informations'), ['refugee_id', 'short_name', 'full_name', 'birth_year', 'gender', 'phone']), # noqa (...
Add cards for Ideasbox in Burundi
Add cards for Ideasbox in Burundi
Python
agpl-3.0
ideascube/ideascube,ideascube/ideascube,ideascube/ideascube,ideascube/ideascube
"""Generic config for Ideasbox of Burundi""" from .idb import * # noqa from django.utils.translation import ugettext_lazy as _ USER_FORM_FIELDS = ( ('Ideasbox', ['serial', 'box_awareness']), (_('Personal informations'), ['refugee_id', 'short_name', 'full_name', 'birth_year', 'gender', 'phone']), # noqa (...
"""Generic config for Ideasbox of Burundi""" from .idb import * # noqa from django.utils.translation import ugettext_lazy as _ USER_FORM_FIELDS = ( ('Ideasbox', ['serial', 'box_awareness']), (_('Personal informations'), ['refugee_id', 'short_name', 'full_name', 'birth_year', 'gender', 'phone']), # noqa (...
<commit_before>"""Generic config for Ideasbox of Burundi""" from .idb import * # noqa from django.utils.translation import ugettext_lazy as _ USER_FORM_FIELDS = ( ('Ideasbox', ['serial', 'box_awareness']), (_('Personal informations'), ['refugee_id', 'short_name', 'full_name', 'birth_year', 'gender', 'phone'])...
"""Generic config for Ideasbox of Burundi""" from .idb import * # noqa from django.utils.translation import ugettext_lazy as _ USER_FORM_FIELDS = ( ('Ideasbox', ['serial', 'box_awareness']), (_('Personal informations'), ['refugee_id', 'short_name', 'full_name', 'birth_year', 'gender', 'phone']), # noqa (...
"""Generic config for Ideasbox of Burundi""" from .idb import * # noqa from django.utils.translation import ugettext_lazy as _ USER_FORM_FIELDS = ( ('Ideasbox', ['serial', 'box_awareness']), (_('Personal informations'), ['refugee_id', 'short_name', 'full_name', 'birth_year', 'gender', 'phone']), # noqa (...
<commit_before>"""Generic config for Ideasbox of Burundi""" from .idb import * # noqa from django.utils.translation import ugettext_lazy as _ USER_FORM_FIELDS = ( ('Ideasbox', ['serial', 'box_awareness']), (_('Personal informations'), ['refugee_id', 'short_name', 'full_name', 'birth_year', 'gender', 'phone'])...
d75a79d10658ad32a9b1d71e472372d8335c7bb6
ml/test_amaranth_lib.py
ml/test_amaranth_lib.py
# Lint as: python3 """These tests ensure correctness for the helper functions in amaranth_lib.""" import unittest class TestAmaranthHelpers(unittest.TestCase): def test_load_calorie_data(self): raise NotImplementedError def test_clean_data(self): raise NotImplementedError def test_add_calorie_labels...
# Lint as: python3 """These tests ensure correctness for the helper functions in amaranth_lib.""" import unittest class TestAmaranthHelpers(unittest.TestCase): def test_combine_dataframes(self): raise NotImplementedError def test_get_calorie_data(self): raise NotImplementedError def test_clean_data(...
Update testing stubs with helper lib changes
Update testing stubs with helper lib changes
Python
apache-2.0
googleinterns/amaranth,googleinterns/amaranth
# Lint as: python3 """These tests ensure correctness for the helper functions in amaranth_lib.""" import unittest class TestAmaranthHelpers(unittest.TestCase): def test_load_calorie_data(self): raise NotImplementedError def test_clean_data(self): raise NotImplementedError def test_add_calorie_labels...
# Lint as: python3 """These tests ensure correctness for the helper functions in amaranth_lib.""" import unittest class TestAmaranthHelpers(unittest.TestCase): def test_combine_dataframes(self): raise NotImplementedError def test_get_calorie_data(self): raise NotImplementedError def test_clean_data(...
<commit_before># Lint as: python3 """These tests ensure correctness for the helper functions in amaranth_lib.""" import unittest class TestAmaranthHelpers(unittest.TestCase): def test_load_calorie_data(self): raise NotImplementedError def test_clean_data(self): raise NotImplementedError def test_add...
# Lint as: python3 """These tests ensure correctness for the helper functions in amaranth_lib.""" import unittest class TestAmaranthHelpers(unittest.TestCase): def test_combine_dataframes(self): raise NotImplementedError def test_get_calorie_data(self): raise NotImplementedError def test_clean_data(...
# Lint as: python3 """These tests ensure correctness for the helper functions in amaranth_lib.""" import unittest class TestAmaranthHelpers(unittest.TestCase): def test_load_calorie_data(self): raise NotImplementedError def test_clean_data(self): raise NotImplementedError def test_add_calorie_labels...
<commit_before># Lint as: python3 """These tests ensure correctness for the helper functions in amaranth_lib.""" import unittest class TestAmaranthHelpers(unittest.TestCase): def test_load_calorie_data(self): raise NotImplementedError def test_clean_data(self): raise NotImplementedError def test_add...
3bc52b94479e3b0e147ff6ef4bcc8379a5b57249
trunk/mobile_portal/mobile_portal/core/middleware.py
trunk/mobile_portal/mobile_portal/core/middleware.py
from django.conf import settings import geolocation from mobile_portal.wurfl.wurfl_data import devices from mobile_portal.wurfl import device_parents from pywurfl.algorithms import DeviceNotFound from mobile_portal.wurfl.vsm import VectorSpaceAlgorithm class LocationMiddleware(object): vsa = VectorSpaceAlgorithm(...
from django.conf import settings import geolocation from mobile_portal.wurfl.wurfl_data import devices from mobile_portal.wurfl import device_parents from pywurfl.algorithms import DeviceNotFound from mobile_portal.wurfl.vsm import VectorSpaceAlgorithm class LocationMiddleware(object): vsa = VectorSpaceAlgorithm(...
Fix bug when Opera Mini (and possibly others) present no X-OperaMini-Phone header.
Fix bug when Opera Mini (and possibly others) present no X-OperaMini-Phone header.
Python
apache-2.0
mollyproject/mollyproject,mollyproject/mollyproject,mollyproject/mollyproject
from django.conf import settings import geolocation from mobile_portal.wurfl.wurfl_data import devices from mobile_portal.wurfl import device_parents from pywurfl.algorithms import DeviceNotFound from mobile_portal.wurfl.vsm import VectorSpaceAlgorithm class LocationMiddleware(object): vsa = VectorSpaceAlgorithm(...
from django.conf import settings import geolocation from mobile_portal.wurfl.wurfl_data import devices from mobile_portal.wurfl import device_parents from pywurfl.algorithms import DeviceNotFound from mobile_portal.wurfl.vsm import VectorSpaceAlgorithm class LocationMiddleware(object): vsa = VectorSpaceAlgorithm(...
<commit_before>from django.conf import settings import geolocation from mobile_portal.wurfl.wurfl_data import devices from mobile_portal.wurfl import device_parents from pywurfl.algorithms import DeviceNotFound from mobile_portal.wurfl.vsm import VectorSpaceAlgorithm class LocationMiddleware(object): vsa = Vector...
from django.conf import settings import geolocation from mobile_portal.wurfl.wurfl_data import devices from mobile_portal.wurfl import device_parents from pywurfl.algorithms import DeviceNotFound from mobile_portal.wurfl.vsm import VectorSpaceAlgorithm class LocationMiddleware(object): vsa = VectorSpaceAlgorithm(...
from django.conf import settings import geolocation from mobile_portal.wurfl.wurfl_data import devices from mobile_portal.wurfl import device_parents from pywurfl.algorithms import DeviceNotFound from mobile_portal.wurfl.vsm import VectorSpaceAlgorithm class LocationMiddleware(object): vsa = VectorSpaceAlgorithm(...
<commit_before>from django.conf import settings import geolocation from mobile_portal.wurfl.wurfl_data import devices from mobile_portal.wurfl import device_parents from pywurfl.algorithms import DeviceNotFound from mobile_portal.wurfl.vsm import VectorSpaceAlgorithm class LocationMiddleware(object): vsa = Vector...
ef81886e4ecf08c12783e0cc2b934ed812accb97
Zika_vdb_upload.py
Zika_vdb_upload.py
import os, re, time, datetime, csv, sys import rethinkdb as r from Bio import SeqIO from vdb_upload import vdb_upload from vdb_upload import parser class Zika_vdb_upload(vdb_upload): def __init__(self, fasta_fields, fasta_fname, database, virus, source, locus=None, vsubtype=None, authors=None, path=None, auth_ke...
import os, re, time, datetime, csv, sys import rethinkdb as r from Bio import SeqIO from vdb_upload import vdb_upload from vdb_upload import parser class Zika_vdb_upload(vdb_upload): def __init__(self, fasta_fields, fasta_fname, database, virus, source, locus=None, vsubtype=None, authors=None, path=None, auth_ke...
Modify Zika fasta fields to match default VIPRBRC ordering.
Modify Zika fasta fields to match default VIPRBRC ordering.
Python
agpl-3.0
blab/nextstrain-db,nextstrain/fauna,blab/nextstrain-db,nextstrain/fauna
import os, re, time, datetime, csv, sys import rethinkdb as r from Bio import SeqIO from vdb_upload import vdb_upload from vdb_upload import parser class Zika_vdb_upload(vdb_upload): def __init__(self, fasta_fields, fasta_fname, database, virus, source, locus=None, vsubtype=None, authors=None, path=None, auth_ke...
import os, re, time, datetime, csv, sys import rethinkdb as r from Bio import SeqIO from vdb_upload import vdb_upload from vdb_upload import parser class Zika_vdb_upload(vdb_upload): def __init__(self, fasta_fields, fasta_fname, database, virus, source, locus=None, vsubtype=None, authors=None, path=None, auth_ke...
<commit_before>import os, re, time, datetime, csv, sys import rethinkdb as r from Bio import SeqIO from vdb_upload import vdb_upload from vdb_upload import parser class Zika_vdb_upload(vdb_upload): def __init__(self, fasta_fields, fasta_fname, database, virus, source, locus=None, vsubtype=None, authors=None, pat...
import os, re, time, datetime, csv, sys import rethinkdb as r from Bio import SeqIO from vdb_upload import vdb_upload from vdb_upload import parser class Zika_vdb_upload(vdb_upload): def __init__(self, fasta_fields, fasta_fname, database, virus, source, locus=None, vsubtype=None, authors=None, path=None, auth_ke...
import os, re, time, datetime, csv, sys import rethinkdb as r from Bio import SeqIO from vdb_upload import vdb_upload from vdb_upload import parser class Zika_vdb_upload(vdb_upload): def __init__(self, fasta_fields, fasta_fname, database, virus, source, locus=None, vsubtype=None, authors=None, path=None, auth_ke...
<commit_before>import os, re, time, datetime, csv, sys import rethinkdb as r from Bio import SeqIO from vdb_upload import vdb_upload from vdb_upload import parser class Zika_vdb_upload(vdb_upload): def __init__(self, fasta_fields, fasta_fname, database, virus, source, locus=None, vsubtype=None, authors=None, pat...