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
f8eb5325b03f09a0b207680c29ba4a8cff89bec8
v2functions/sbqueue-trigger-sbqueue-out-binding/__init__.py
v2functions/sbqueue-trigger-sbqueue-out-binding/__init__.py
import logging import azure.functions as func def main(msgIn: func.ServiceBusMessage, msgOut: func.Out[str]): body = msgIn.get_body().decode('utf-8') logging.info(f'Processed Service Bus Queue message: {body}') msgOut.set(msgbody)
import logging import azure.functions as func def main(msgIn: func.ServiceBusMessage, msgOut: func.Out[str]): body = msgIn.get_body().decode('utf-8') logging.info(f'Processed Service Bus Queue message: {body}') msgOut.set(body)
Fix var name in service bus function
Fix var name in service bus function ...i am a horrible programmer
Python
mit
yokawasa/azure-functions-python-samples,yokawasa/azure-functions-python-samples,yokawasa/azure-functions-python-samples
import logging import azure.functions as func def main(msgIn: func.ServiceBusMessage, msgOut: func.Out[str]): body = msgIn.get_body().decode('utf-8') logging.info(f'Processed Service Bus Queue message: {body}') msgOut.set(msgbody) Fix var name in service bus function ...i am a horrible programmer
import logging import azure.functions as func def main(msgIn: func.ServiceBusMessage, msgOut: func.Out[str]): body = msgIn.get_body().decode('utf-8') logging.info(f'Processed Service Bus Queue message: {body}') msgOut.set(body)
<commit_before>import logging import azure.functions as func def main(msgIn: func.ServiceBusMessage, msgOut: func.Out[str]): body = msgIn.get_body().decode('utf-8') logging.info(f'Processed Service Bus Queue message: {body}') msgOut.set(msgbody) <commit_msg>Fix var name in service bus function ...i...
import logging import azure.functions as func def main(msgIn: func.ServiceBusMessage, msgOut: func.Out[str]): body = msgIn.get_body().decode('utf-8') logging.info(f'Processed Service Bus Queue message: {body}') msgOut.set(body)
import logging import azure.functions as func def main(msgIn: func.ServiceBusMessage, msgOut: func.Out[str]): body = msgIn.get_body().decode('utf-8') logging.info(f'Processed Service Bus Queue message: {body}') msgOut.set(msgbody) Fix var name in service bus function ...i am a horrible programmerim...
<commit_before>import logging import azure.functions as func def main(msgIn: func.ServiceBusMessage, msgOut: func.Out[str]): body = msgIn.get_body().decode('utf-8') logging.info(f'Processed Service Bus Queue message: {body}') msgOut.set(msgbody) <commit_msg>Fix var name in service bus function ...i...
dc18e64cd4ecaf624f62438a307cebe14bfbbad8
slack/views.py
slack/views.py
from flask import Flask, request import requests from urllib import urlencode app = Flask(__name__) @app.route("/", methods=['POST']) def meme(): form = request.form.to_dict() slackbot = form["slackbot"] text = form["text"] channel = form["channel_name"] text = text[:-1] if text[-1] == ";" else ...
from flask import Flask, request import requests from urllib import urlencode app = Flask(__name__) @app.route("/") def meme(): slackbot = request.args["slackbot"] text = request.args["text"] channel = request.args["channel_name"] text = text[:-1] if text[-1] == ";" else text params = text.split(...
Use a GET request instead
Use a GET request instead
Python
mit
joeynebula/slack-meme,tezzutezzu/slack-meme,DuaneGarber/slack-meme,nicolewhite/slack-meme
from flask import Flask, request import requests from urllib import urlencode app = Flask(__name__) @app.route("/", methods=['POST']) def meme(): form = request.form.to_dict() slackbot = form["slackbot"] text = form["text"] channel = form["channel_name"] text = text[:-1] if text[-1] == ";" else ...
from flask import Flask, request import requests from urllib import urlencode app = Flask(__name__) @app.route("/") def meme(): slackbot = request.args["slackbot"] text = request.args["text"] channel = request.args["channel_name"] text = text[:-1] if text[-1] == ";" else text params = text.split(...
<commit_before>from flask import Flask, request import requests from urllib import urlencode app = Flask(__name__) @app.route("/", methods=['POST']) def meme(): form = request.form.to_dict() slackbot = form["slackbot"] text = form["text"] channel = form["channel_name"] text = text[:-1] if text[-...
from flask import Flask, request import requests from urllib import urlencode app = Flask(__name__) @app.route("/") def meme(): slackbot = request.args["slackbot"] text = request.args["text"] channel = request.args["channel_name"] text = text[:-1] if text[-1] == ";" else text params = text.split(...
from flask import Flask, request import requests from urllib import urlencode app = Flask(__name__) @app.route("/", methods=['POST']) def meme(): form = request.form.to_dict() slackbot = form["slackbot"] text = form["text"] channel = form["channel_name"] text = text[:-1] if text[-1] == ";" else ...
<commit_before>from flask import Flask, request import requests from urllib import urlencode app = Flask(__name__) @app.route("/", methods=['POST']) def meme(): form = request.form.to_dict() slackbot = form["slackbot"] text = form["text"] channel = form["channel_name"] text = text[:-1] if text[-...
acaefa673edbbaa89dd51444a90e5c61bd952cc3
Demo/scripts/mpzpi.py
Demo/scripts/mpzpi.py
#! /usr/bin/env python # Print digits of pi forever. # # The algorithm, using Python's 'long' integers ("bignums"), works # with continued fractions, and was conceived by Lambert Meertens. # # See also the ABC Programmer's Handbook, by Geurts, Meertens & Pemberton, # published by Prentice-Hall (UK) Ltd., 1990. import ...
#! /usr/bin/env python # Print digits of pi forever. # # The algorithm, using Python's 'long' integers ("bignums"), works # with continued fractions, and was conceived by Lambert Meertens. # # See also the ABC Programmer's Handbook, by Geurts, Meertens & Pemberton, # published by Prentice-Hall (UK) Ltd., 1990. import ...
Revert previous change which didn't make sense the next day :-)
Revert previous change which didn't make sense the next day :-)
Python
mit
sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator
#! /usr/bin/env python # Print digits of pi forever. # # The algorithm, using Python's 'long' integers ("bignums"), works # with continued fractions, and was conceived by Lambert Meertens. # # See also the ABC Programmer's Handbook, by Geurts, Meertens & Pemberton, # published by Prentice-Hall (UK) Ltd., 1990. import ...
#! /usr/bin/env python # Print digits of pi forever. # # The algorithm, using Python's 'long' integers ("bignums"), works # with continued fractions, and was conceived by Lambert Meertens. # # See also the ABC Programmer's Handbook, by Geurts, Meertens & Pemberton, # published by Prentice-Hall (UK) Ltd., 1990. import ...
<commit_before>#! /usr/bin/env python # Print digits of pi forever. # # The algorithm, using Python's 'long' integers ("bignums"), works # with continued fractions, and was conceived by Lambert Meertens. # # See also the ABC Programmer's Handbook, by Geurts, Meertens & Pemberton, # published by Prentice-Hall (UK) Ltd.,...
#! /usr/bin/env python # Print digits of pi forever. # # The algorithm, using Python's 'long' integers ("bignums"), works # with continued fractions, and was conceived by Lambert Meertens. # # See also the ABC Programmer's Handbook, by Geurts, Meertens & Pemberton, # published by Prentice-Hall (UK) Ltd., 1990. import ...
#! /usr/bin/env python # Print digits of pi forever. # # The algorithm, using Python's 'long' integers ("bignums"), works # with continued fractions, and was conceived by Lambert Meertens. # # See also the ABC Programmer's Handbook, by Geurts, Meertens & Pemberton, # published by Prentice-Hall (UK) Ltd., 1990. import ...
<commit_before>#! /usr/bin/env python # Print digits of pi forever. # # The algorithm, using Python's 'long' integers ("bignums"), works # with continued fractions, and was conceived by Lambert Meertens. # # See also the ABC Programmer's Handbook, by Geurts, Meertens & Pemberton, # published by Prentice-Hall (UK) Ltd.,...
e24674011454ce60bf1c4582af25262ae277771c
spreadchimp.py
spreadchimp.py
import os import xlrd import xlwt # Assumes the directory with the workbook is relative to the script's location. directory = 'workbooks/' workbook = '' for dirpath, dirnames, filenames in os.walk(directory): for files in filenames: workbook = (dirpath + files) ''' Test films include: Repulsion The Cryin...
import os import xlrd import xlwt # Assumes the directory with the workbook is relative to the script's location. directory = 'workbooks/' workbook = '' for dirpath, dirnames, filenames in os.walk(directory): for files in filenames: workbook = (dirpath + files) ''' Test films include: Repulsion The Cryin...
Add header row to worksheet in workbooks
Add header row to worksheet in workbooks
Python
mit
deadlyraptor/reels
import os import xlrd import xlwt # Assumes the directory with the workbook is relative to the script's location. directory = 'workbooks/' workbook = '' for dirpath, dirnames, filenames in os.walk(directory): for files in filenames: workbook = (dirpath + files) ''' Test films include: Repulsion The Cryin...
import os import xlrd import xlwt # Assumes the directory with the workbook is relative to the script's location. directory = 'workbooks/' workbook = '' for dirpath, dirnames, filenames in os.walk(directory): for files in filenames: workbook = (dirpath + files) ''' Test films include: Repulsion The Cryin...
<commit_before>import os import xlrd import xlwt # Assumes the directory with the workbook is relative to the script's location. directory = 'workbooks/' workbook = '' for dirpath, dirnames, filenames in os.walk(directory): for files in filenames: workbook = (dirpath + files) ''' Test films include: Repu...
import os import xlrd import xlwt # Assumes the directory with the workbook is relative to the script's location. directory = 'workbooks/' workbook = '' for dirpath, dirnames, filenames in os.walk(directory): for files in filenames: workbook = (dirpath + files) ''' Test films include: Repulsion The Cryin...
import os import xlrd import xlwt # Assumes the directory with the workbook is relative to the script's location. directory = 'workbooks/' workbook = '' for dirpath, dirnames, filenames in os.walk(directory): for files in filenames: workbook = (dirpath + files) ''' Test films include: Repulsion The Cryin...
<commit_before>import os import xlrd import xlwt # Assumes the directory with the workbook is relative to the script's location. directory = 'workbooks/' workbook = '' for dirpath, dirnames, filenames in os.walk(directory): for files in filenames: workbook = (dirpath + files) ''' Test films include: Repu...
51a614025806756b33b0c9764fd91b3e2405570b
python/ql/test/experimental/query-tests/Security/CWE-943/mongoengine_good.py
python/ql/test/experimental/query-tests/Security/CWE-943/mongoengine_good.py
from flask import Flask, request import mongoengine as me from mongoengine.connection import get_db, connect from mongosanitizer.sanitizer import sanitize import json app = Flask(__name__) class Movie(me.Document): title = me.StringField(required=True) Movie(title='test').save() @app.route("/connect_find") d...
from flask import Flask, request import mongoengine as me from mongoengine.connection import get_db, connect from mongosanitizer.sanitizer import sanitize import json app = Flask(__name__) class Movie(me.Document): title = me.StringField(required=True) Movie(title='test').save() @app.route("/connect_find") d...
Change variable name to correct sanitized input variable
Change variable name to correct sanitized input variable Co-authored-by: Rasmus Wriedt Larsen <6dfdada9c346ecb5eceda0aac2a0eed555506730@gmail.com>
Python
mit
github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql,github/codeql
from flask import Flask, request import mongoengine as me from mongoengine.connection import get_db, connect from mongosanitizer.sanitizer import sanitize import json app = Flask(__name__) class Movie(me.Document): title = me.StringField(required=True) Movie(title='test').save() @app.route("/connect_find") d...
from flask import Flask, request import mongoengine as me from mongoengine.connection import get_db, connect from mongosanitizer.sanitizer import sanitize import json app = Flask(__name__) class Movie(me.Document): title = me.StringField(required=True) Movie(title='test').save() @app.route("/connect_find") d...
<commit_before>from flask import Flask, request import mongoengine as me from mongoengine.connection import get_db, connect from mongosanitizer.sanitizer import sanitize import json app = Flask(__name__) class Movie(me.Document): title = me.StringField(required=True) Movie(title='test').save() @app.route("/c...
from flask import Flask, request import mongoengine as me from mongoengine.connection import get_db, connect from mongosanitizer.sanitizer import sanitize import json app = Flask(__name__) class Movie(me.Document): title = me.StringField(required=True) Movie(title='test').save() @app.route("/connect_find") d...
from flask import Flask, request import mongoengine as me from mongoengine.connection import get_db, connect from mongosanitizer.sanitizer import sanitize import json app = Flask(__name__) class Movie(me.Document): title = me.StringField(required=True) Movie(title='test').save() @app.route("/connect_find") d...
<commit_before>from flask import Flask, request import mongoengine as me from mongoengine.connection import get_db, connect from mongosanitizer.sanitizer import sanitize import json app = Flask(__name__) class Movie(me.Document): title = me.StringField(required=True) Movie(title='test').save() @app.route("/c...
0f1a3d06b316590c029e4e6c0e474f716e047033
pokebattle/game_entrypoint.py
pokebattle/game_entrypoint.py
from nameko.web.handlers import http from pokebattle.scores import ScoreService class GameService(object): score_service = RpcProxy('score_service') @http('POST', '/signup') def signup(self): pass @http('POST', '/login') def login(self): pass @http('POST', '/battle') d...
import json from nameko.web.handlers import http from nameko.rpc import RpcProxy from pokebattle.scores import ScoreService class GameService(object): name = 'game_service' score_rpc = RpcProxy('score_service') @http('POST', '/signup') def signup(self, request): pass @http('POST', '/lo...
Add leaderbord rpc call and add request arg to all methods
Add leaderbord rpc call and add request arg to all methods
Python
mit
skooda/poke-battle,radekj/poke-battle
from nameko.web.handlers import http from pokebattle.scores import ScoreService class GameService(object): score_service = RpcProxy('score_service') @http('POST', '/signup') def signup(self): pass @http('POST', '/login') def login(self): pass @http('POST', '/battle') d...
import json from nameko.web.handlers import http from nameko.rpc import RpcProxy from pokebattle.scores import ScoreService class GameService(object): name = 'game_service' score_rpc = RpcProxy('score_service') @http('POST', '/signup') def signup(self, request): pass @http('POST', '/lo...
<commit_before>from nameko.web.handlers import http from pokebattle.scores import ScoreService class GameService(object): score_service = RpcProxy('score_service') @http('POST', '/signup') def signup(self): pass @http('POST', '/login') def login(self): pass @http('POST', '...
import json from nameko.web.handlers import http from nameko.rpc import RpcProxy from pokebattle.scores import ScoreService class GameService(object): name = 'game_service' score_rpc = RpcProxy('score_service') @http('POST', '/signup') def signup(self, request): pass @http('POST', '/lo...
from nameko.web.handlers import http from pokebattle.scores import ScoreService class GameService(object): score_service = RpcProxy('score_service') @http('POST', '/signup') def signup(self): pass @http('POST', '/login') def login(self): pass @http('POST', '/battle') d...
<commit_before>from nameko.web.handlers import http from pokebattle.scores import ScoreService class GameService(object): score_service = RpcProxy('score_service') @http('POST', '/signup') def signup(self): pass @http('POST', '/login') def login(self): pass @http('POST', '...
f27d2078a67a1a2ba0da0c000a68d8b0d212bf08
polyaxon/experiments/utils.py
polyaxon/experiments/utils.py
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function import os from django.conf import settings from libs.paths import delete_path, create_path def get_experiment_outputs_path(experiment_name): values = experiment_name.split('.') if len(values) == 3: values.inser...
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function import os from django.conf import settings from libs.paths import delete_path, create_path def get_experiment_outputs_path(experiment_name): values = experiment_name.split('.') if len(values) == 3: values.inser...
Update experiment logs path creation
Update experiment logs path creation
Python
apache-2.0
polyaxon/polyaxon,polyaxon/polyaxon,polyaxon/polyaxon
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function import os from django.conf import settings from libs.paths import delete_path, create_path def get_experiment_outputs_path(experiment_name): values = experiment_name.split('.') if len(values) == 3: values.inser...
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function import os from django.conf import settings from libs.paths import delete_path, create_path def get_experiment_outputs_path(experiment_name): values = experiment_name.split('.') if len(values) == 3: values.inser...
<commit_before># -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function import os from django.conf import settings from libs.paths import delete_path, create_path def get_experiment_outputs_path(experiment_name): values = experiment_name.split('.') if len(values) == 3: ...
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function import os from django.conf import settings from libs.paths import delete_path, create_path def get_experiment_outputs_path(experiment_name): values = experiment_name.split('.') if len(values) == 3: values.inser...
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function import os from django.conf import settings from libs.paths import delete_path, create_path def get_experiment_outputs_path(experiment_name): values = experiment_name.split('.') if len(values) == 3: values.inser...
<commit_before># -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function import os from django.conf import settings from libs.paths import delete_path, create_path def get_experiment_outputs_path(experiment_name): values = experiment_name.split('.') if len(values) == 3: ...
6370b362c77ae9c5f9aa64e11eae3941438b5359
openmc/deplete/__init__.py
openmc/deplete/__init__.py
""" openmc.deplete ============== A depletion front-end tool. """ from .dummy_comm import DummyCommunicator try: from mpi4py import MPI comm = MPI.COMM_WORLD have_mpi = True except ImportError: comm = DummyCommunicator() have_mpi = False from .nuclide import * from .chain import * from .operator ...
""" openmc.deplete ============== A depletion front-end tool. """ from .dummy_comm import DummyCommunicator try: from mpi4py import MPI comm = MPI.COMM_WORLD have_mpi = True # check if running with MPI and if hdf5 is MPI-enabled from h5py import get_config if not get_config().mpi and comm.s...
Check that hdf5 has MPI if performing depletion with MPI
Check that hdf5 has MPI if performing depletion with MPI Check added in openmc/depletion/__init__.py. Without this check, the exporting of the Results to hdf5 will hang, as the second process attempts to write to a file that has already been opened on another process. This error is only raised after a full transport c...
Python
mit
shikhar413/openmc,shikhar413/openmc,liangjg/openmc,amandalund/openmc,mit-crpg/openmc,mit-crpg/openmc,amandalund/openmc,walshjon/openmc,smharper/openmc,paulromano/openmc,paulromano/openmc,paulromano/openmc,walshjon/openmc,paulromano/openmc,walshjon/openmc,liangjg/openmc,walshjon/openmc,amandalund/openmc,smharper/openmc,...
""" openmc.deplete ============== A depletion front-end tool. """ from .dummy_comm import DummyCommunicator try: from mpi4py import MPI comm = MPI.COMM_WORLD have_mpi = True except ImportError: comm = DummyCommunicator() have_mpi = False from .nuclide import * from .chain import * from .operator ...
""" openmc.deplete ============== A depletion front-end tool. """ from .dummy_comm import DummyCommunicator try: from mpi4py import MPI comm = MPI.COMM_WORLD have_mpi = True # check if running with MPI and if hdf5 is MPI-enabled from h5py import get_config if not get_config().mpi and comm.s...
<commit_before>""" openmc.deplete ============== A depletion front-end tool. """ from .dummy_comm import DummyCommunicator try: from mpi4py import MPI comm = MPI.COMM_WORLD have_mpi = True except ImportError: comm = DummyCommunicator() have_mpi = False from .nuclide import * from .chain import * ...
""" openmc.deplete ============== A depletion front-end tool. """ from .dummy_comm import DummyCommunicator try: from mpi4py import MPI comm = MPI.COMM_WORLD have_mpi = True # check if running with MPI and if hdf5 is MPI-enabled from h5py import get_config if not get_config().mpi and comm.s...
""" openmc.deplete ============== A depletion front-end tool. """ from .dummy_comm import DummyCommunicator try: from mpi4py import MPI comm = MPI.COMM_WORLD have_mpi = True except ImportError: comm = DummyCommunicator() have_mpi = False from .nuclide import * from .chain import * from .operator ...
<commit_before>""" openmc.deplete ============== A depletion front-end tool. """ from .dummy_comm import DummyCommunicator try: from mpi4py import MPI comm = MPI.COMM_WORLD have_mpi = True except ImportError: comm = DummyCommunicator() have_mpi = False from .nuclide import * from .chain import * ...
09b69d7e650055f75562f740d552434d2dfa2d6d
tapiriik/services/service.py
tapiriik/services/service.py
from tapiriik.services import * from tapiriik.database import db class Service: def FromID(id): if id=="runkeeper": return RunKeeper elif id=="strava": return Strava raise ValueError def List(): return [RunKeeper, Strava] def WebInit(): glob...
from tapiriik.services import * from tapiriik.database import db class Service: def FromID(id): if id=="runkeeper": return RunKeeper elif id=="strava": return Strava raise ValueError def List(): return [RunKeeper, Strava] def WebInit(): glob...
Update auth details on reauthorization
Update auth details on reauthorization
Python
apache-2.0
marxin/tapiriik,campbellr/tapiriik,brunoflores/tapiriik,mduggan/tapiriik,abhijit86k/tapiriik,cpfair/tapiriik,gavioto/tapiriik,cmgrote/tapiriik,gavioto/tapiriik,gavioto/tapiriik,mjnbike/tapiriik,abhijit86k/tapiriik,dmschreiber/tapiriik,marxin/tapiriik,campbellr/tapiriik,mduggan/tapiriik,abs0/tapiriik,cmgrote/tapiriik,dm...
from tapiriik.services import * from tapiriik.database import db class Service: def FromID(id): if id=="runkeeper": return RunKeeper elif id=="strava": return Strava raise ValueError def List(): return [RunKeeper, Strava] def WebInit(): glob...
from tapiriik.services import * from tapiriik.database import db class Service: def FromID(id): if id=="runkeeper": return RunKeeper elif id=="strava": return Strava raise ValueError def List(): return [RunKeeper, Strava] def WebInit(): glob...
<commit_before>from tapiriik.services import * from tapiriik.database import db class Service: def FromID(id): if id=="runkeeper": return RunKeeper elif id=="strava": return Strava raise ValueError def List(): return [RunKeeper, Strava] def WebInit(...
from tapiriik.services import * from tapiriik.database import db class Service: def FromID(id): if id=="runkeeper": return RunKeeper elif id=="strava": return Strava raise ValueError def List(): return [RunKeeper, Strava] def WebInit(): glob...
from tapiriik.services import * from tapiriik.database import db class Service: def FromID(id): if id=="runkeeper": return RunKeeper elif id=="strava": return Strava raise ValueError def List(): return [RunKeeper, Strava] def WebInit(): glob...
<commit_before>from tapiriik.services import * from tapiriik.database import db class Service: def FromID(id): if id=="runkeeper": return RunKeeper elif id=="strava": return Strava raise ValueError def List(): return [RunKeeper, Strava] def WebInit(...
8c5edbf6d928ab937128b783782726c06592cc9f
rosetta/signals.py
rosetta/signals.py
from django import dispatch entry_changed = dispatch.Signal() post_save = dispatch.Signal()
from django import dispatch # providing_args=["user", "old_msgstr", "old_fuzzy", "pofile", "language_code"] entry_changed = dispatch.Signal() # providing_args=["language_code", "request"] post_save = dispatch.Signal()
Add providing_args as a comment
Add providing_args as a comment
Python
mit
mbi/django-rosetta,mbi/django-rosetta,mbi/django-rosetta,mbi/django-rosetta
from django import dispatch entry_changed = dispatch.Signal() post_save = dispatch.Signal() Add providing_args as a comment
from django import dispatch # providing_args=["user", "old_msgstr", "old_fuzzy", "pofile", "language_code"] entry_changed = dispatch.Signal() # providing_args=["language_code", "request"] post_save = dispatch.Signal()
<commit_before>from django import dispatch entry_changed = dispatch.Signal() post_save = dispatch.Signal() <commit_msg>Add providing_args as a comment<commit_after>
from django import dispatch # providing_args=["user", "old_msgstr", "old_fuzzy", "pofile", "language_code"] entry_changed = dispatch.Signal() # providing_args=["language_code", "request"] post_save = dispatch.Signal()
from django import dispatch entry_changed = dispatch.Signal() post_save = dispatch.Signal() Add providing_args as a commentfrom django import dispatch # providing_args=["user", "old_msgstr", "old_fuzzy", "pofile", "language_code"] entry_changed = dispatch.Signal() # providing_args=["language_code", "request"] post_...
<commit_before>from django import dispatch entry_changed = dispatch.Signal() post_save = dispatch.Signal() <commit_msg>Add providing_args as a comment<commit_after>from django import dispatch # providing_args=["user", "old_msgstr", "old_fuzzy", "pofile", "language_code"] entry_changed = dispatch.Signal() # providin...
6c37880ee408a5a01e27616b00895b81413ab9be
tests/test_documentation.py
tests/test_documentation.py
from unittest import TestCase import importlib def get_undocumented_wildcards(modulename): namespace = importlib.import_module(modulename) loc = namespace.__dict__ undocumented = [] for key, val in loc.items(): if (key[0] != "_") and (key not in {"_", "In", "Out", "get_ipython", "exit", "quit"...
from unittest import TestCase import importlib def get_undocumented_wildcards(modulename): namespace = importlib.import_module(modulename) loc = namespace.__dict__ undocumented = [] for key, val in loc.items(): if (key[0] != "_") and (key not in {"_", "In", "Out", "get_ipython", "exit", "quit"...
Fix naming bug in doc test
Fix naming bug in doc test
Python
mit
tum-pbs/PhiFlow,tum-pbs/PhiFlow
from unittest import TestCase import importlib def get_undocumented_wildcards(modulename): namespace = importlib.import_module(modulename) loc = namespace.__dict__ undocumented = [] for key, val in loc.items(): if (key[0] != "_") and (key not in {"_", "In", "Out", "get_ipython", "exit", "quit"...
from unittest import TestCase import importlib def get_undocumented_wildcards(modulename): namespace = importlib.import_module(modulename) loc = namespace.__dict__ undocumented = [] for key, val in loc.items(): if (key[0] != "_") and (key not in {"_", "In", "Out", "get_ipython", "exit", "quit"...
<commit_before>from unittest import TestCase import importlib def get_undocumented_wildcards(modulename): namespace = importlib.import_module(modulename) loc = namespace.__dict__ undocumented = [] for key, val in loc.items(): if (key[0] != "_") and (key not in {"_", "In", "Out", "get_ipython",...
from unittest import TestCase import importlib def get_undocumented_wildcards(modulename): namespace = importlib.import_module(modulename) loc = namespace.__dict__ undocumented = [] for key, val in loc.items(): if (key[0] != "_") and (key not in {"_", "In", "Out", "get_ipython", "exit", "quit"...
from unittest import TestCase import importlib def get_undocumented_wildcards(modulename): namespace = importlib.import_module(modulename) loc = namespace.__dict__ undocumented = [] for key, val in loc.items(): if (key[0] != "_") and (key not in {"_", "In", "Out", "get_ipython", "exit", "quit"...
<commit_before>from unittest import TestCase import importlib def get_undocumented_wildcards(modulename): namespace = importlib.import_module(modulename) loc = namespace.__dict__ undocumented = [] for key, val in loc.items(): if (key[0] != "_") and (key not in {"_", "In", "Out", "get_ipython",...
55bf8c79cb3b53af36ecb64ffc22b116e36d8ac6
sugar/p2p/model/Store.py
sugar/p2p/model/Store.py
from sugar.p2p.model.RemoteModel import RemoteModel from sugar.p2p.model.LocalModel import LocalModel class Store: def __init__(self, group): self._group = group self._local_models = {} def create_model(self, model_id): model = LocalModel(self._group, model_id) self._local_models[model_id] = model return...
from sugar.p2p.model.RemoteModel import RemoteModel from sugar.p2p.model.LocalModel import LocalModel class Store: def __init__(self, group): self._group = group self._local_models = {} def create_model(self, model_id): model = LocalModel(self._group, model_id) self._local_models[model_id] = model return...
Fix bad usage of a dict
Fix bad usage of a dict
Python
lgpl-2.1
samdroid-apps/sugar-toolkit-gtk3,sugarlabs/sugar-toolkit,ceibal-tatu/sugar-toolkit-gtk3,sugarlabs/sugar-toolkit,samdroid-apps/sugar-toolkit-gtk3,tchx84/debian-pkg-sugar-toolkit,puneetgkaur/backup_sugar_sugartoolkit,i5o/sugar-toolkit-gtk3,puneetgkaur/backup_sugar_sugartoolkit,ceibal-tatu/sugar-toolkit,tchx84/sugar-toolk...
from sugar.p2p.model.RemoteModel import RemoteModel from sugar.p2p.model.LocalModel import LocalModel class Store: def __init__(self, group): self._group = group self._local_models = {} def create_model(self, model_id): model = LocalModel(self._group, model_id) self._local_models[model_id] = model return...
from sugar.p2p.model.RemoteModel import RemoteModel from sugar.p2p.model.LocalModel import LocalModel class Store: def __init__(self, group): self._group = group self._local_models = {} def create_model(self, model_id): model = LocalModel(self._group, model_id) self._local_models[model_id] = model return...
<commit_before>from sugar.p2p.model.RemoteModel import RemoteModel from sugar.p2p.model.LocalModel import LocalModel class Store: def __init__(self, group): self._group = group self._local_models = {} def create_model(self, model_id): model = LocalModel(self._group, model_id) self._local_models[model_id] =...
from sugar.p2p.model.RemoteModel import RemoteModel from sugar.p2p.model.LocalModel import LocalModel class Store: def __init__(self, group): self._group = group self._local_models = {} def create_model(self, model_id): model = LocalModel(self._group, model_id) self._local_models[model_id] = model return...
from sugar.p2p.model.RemoteModel import RemoteModel from sugar.p2p.model.LocalModel import LocalModel class Store: def __init__(self, group): self._group = group self._local_models = {} def create_model(self, model_id): model = LocalModel(self._group, model_id) self._local_models[model_id] = model return...
<commit_before>from sugar.p2p.model.RemoteModel import RemoteModel from sugar.p2p.model.LocalModel import LocalModel class Store: def __init__(self, group): self._group = group self._local_models = {} def create_model(self, model_id): model = LocalModel(self._group, model_id) self._local_models[model_id] =...
8a81bef46b248f84ce43244ca82415cf0c7ffb6c
tests/databases/rgd/parser_test.py
tests/databases/rgd/parser_test.py
# -*- coding: utf-8 -*- """ Copyright [2009-2017] EMBL-European Bioinformatics Institute 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...
# -*- coding: utf-8 -*- """ Copyright [2009-2017] EMBL-European Bioinformatics Institute 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...
Mark another RGD test as failing
Mark another RGD test as failing RGD parsing is degrading more it seems.
Python
apache-2.0
RNAcentral/rnacentral-import-pipeline,RNAcentral/rnacentral-import-pipeline,RNAcentral/rnacentral-import-pipeline,RNAcentral/rnacentral-import-pipeline
# -*- coding: utf-8 -*- """ Copyright [2009-2017] EMBL-European Bioinformatics Institute 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...
# -*- coding: utf-8 -*- """ Copyright [2009-2017] EMBL-European Bioinformatics Institute 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...
<commit_before># -*- coding: utf-8 -*- """ Copyright [2009-2017] EMBL-European Bioinformatics Institute 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 Unl...
# -*- coding: utf-8 -*- """ Copyright [2009-2017] EMBL-European Bioinformatics Institute 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...
# -*- coding: utf-8 -*- """ Copyright [2009-2017] EMBL-European Bioinformatics Institute 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...
<commit_before># -*- coding: utf-8 -*- """ Copyright [2009-2017] EMBL-European Bioinformatics Institute 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 Unl...
ab7a546e4a7fb686f61b904777aa26c7d596ff03
pombola/south_africa/lib.py
pombola/south_africa/lib.py
import urlparse def make_pa_url(pombola_object, base_url): parsed_url = list(urlparse.urlparse(base_url)) parsed_url[2] = pombola_object.get_absolute_url() return urlparse.urlunparse(parsed_url) def add_extra_popolo_data_for_person(person, popolo_object, base_url): popolo_object['pa_url'] = make_pa_ur...
import urlparse def make_pa_url(pombola_object, base_url): parsed_url = list(urlparse.urlparse(base_url)) parsed_url[2] = pombola_object.get_absolute_url() return urlparse.urlunparse(parsed_url) def add_extra_popolo_data_for_person(person, popolo_object, base_url): popolo_object['pa_url'] = make_pa_ur...
Add members interests data to PopIt export
ZA: Add members interests data to PopIt export (Minor refactoring by Mark Longair.)
Python
agpl-3.0
hzj123/56th,mysociety/pombola,geoffkilpin/pombola,geoffkilpin/pombola,hzj123/56th,geoffkilpin/pombola,patricmutwiri/pombola,patricmutwiri/pombola,mysociety/pombola,ken-muturi/pombola,patricmutwiri/pombola,geoffkilpin/pombola,mysociety/pombola,patricmutwiri/pombola,ken-muturi/pombola,ken-muturi/pombola,patricmutwiri/pom...
import urlparse def make_pa_url(pombola_object, base_url): parsed_url = list(urlparse.urlparse(base_url)) parsed_url[2] = pombola_object.get_absolute_url() return urlparse.urlunparse(parsed_url) def add_extra_popolo_data_for_person(person, popolo_object, base_url): popolo_object['pa_url'] = make_pa_ur...
import urlparse def make_pa_url(pombola_object, base_url): parsed_url = list(urlparse.urlparse(base_url)) parsed_url[2] = pombola_object.get_absolute_url() return urlparse.urlunparse(parsed_url) def add_extra_popolo_data_for_person(person, popolo_object, base_url): popolo_object['pa_url'] = make_pa_ur...
<commit_before>import urlparse def make_pa_url(pombola_object, base_url): parsed_url = list(urlparse.urlparse(base_url)) parsed_url[2] = pombola_object.get_absolute_url() return urlparse.urlunparse(parsed_url) def add_extra_popolo_data_for_person(person, popolo_object, base_url): popolo_object['pa_url...
import urlparse def make_pa_url(pombola_object, base_url): parsed_url = list(urlparse.urlparse(base_url)) parsed_url[2] = pombola_object.get_absolute_url() return urlparse.urlunparse(parsed_url) def add_extra_popolo_data_for_person(person, popolo_object, base_url): popolo_object['pa_url'] = make_pa_ur...
import urlparse def make_pa_url(pombola_object, base_url): parsed_url = list(urlparse.urlparse(base_url)) parsed_url[2] = pombola_object.get_absolute_url() return urlparse.urlunparse(parsed_url) def add_extra_popolo_data_for_person(person, popolo_object, base_url): popolo_object['pa_url'] = make_pa_ur...
<commit_before>import urlparse def make_pa_url(pombola_object, base_url): parsed_url = list(urlparse.urlparse(base_url)) parsed_url[2] = pombola_object.get_absolute_url() return urlparse.urlunparse(parsed_url) def add_extra_popolo_data_for_person(person, popolo_object, base_url): popolo_object['pa_url...
aeae023a8b44e48bf52dfc757d3edd7222a4fbc1
rtrss/config_development.py
rtrss/config_development.py
import os ROOT_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir)) SQLALCHEMY_DATABASE_URI = 'postgresql://postgres:postgres@localhost/rtrss_dev' # directory to store runtime data, write access required DATA_DIR = os.path.join(ROOT_DIR, 'data') DEBUG = True SECRET_KEY = 'development key' FIL...
import os ROOT_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir)) SQLALCHEMY_DATABASE_URI = 'postgresql://postgres:postgres@localhost/rtrss_dev' # directory to store runtime data, write access required DATA_DIR = os.path.join(ROOT_DIR, 'data') DEBUG = True SECRET_KEY = 'development key' FIL...
Remove HOST_NAME from development config
Remove HOST_NAME from development config
Python
apache-2.0
notapresent/rtrss,notapresent/rtrss,notapresent/rtrss,notapresent/rtrss
import os ROOT_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir)) SQLALCHEMY_DATABASE_URI = 'postgresql://postgres:postgres@localhost/rtrss_dev' # directory to store runtime data, write access required DATA_DIR = os.path.join(ROOT_DIR, 'data') DEBUG = True SECRET_KEY = 'development key' FIL...
import os ROOT_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir)) SQLALCHEMY_DATABASE_URI = 'postgresql://postgres:postgres@localhost/rtrss_dev' # directory to store runtime data, write access required DATA_DIR = os.path.join(ROOT_DIR, 'data') DEBUG = True SECRET_KEY = 'development key' FIL...
<commit_before>import os ROOT_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir)) SQLALCHEMY_DATABASE_URI = 'postgresql://postgres:postgres@localhost/rtrss_dev' # directory to store runtime data, write access required DATA_DIR = os.path.join(ROOT_DIR, 'data') DEBUG = True SECRET_KEY = 'develo...
import os ROOT_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir)) SQLALCHEMY_DATABASE_URI = 'postgresql://postgres:postgres@localhost/rtrss_dev' # directory to store runtime data, write access required DATA_DIR = os.path.join(ROOT_DIR, 'data') DEBUG = True SECRET_KEY = 'development key' FIL...
import os ROOT_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir)) SQLALCHEMY_DATABASE_URI = 'postgresql://postgres:postgres@localhost/rtrss_dev' # directory to store runtime data, write access required DATA_DIR = os.path.join(ROOT_DIR, 'data') DEBUG = True SECRET_KEY = 'development key' FIL...
<commit_before>import os ROOT_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir)) SQLALCHEMY_DATABASE_URI = 'postgresql://postgres:postgres@localhost/rtrss_dev' # directory to store runtime data, write access required DATA_DIR = os.path.join(ROOT_DIR, 'data') DEBUG = True SECRET_KEY = 'develo...
a1b465b81b023e846823e71538dbd2cbaccb2181
django_admin_bootstrapped/templatetags/bootstrapped_goodies_tags.py
django_admin_bootstrapped/templatetags/bootstrapped_goodies_tags.py
from django import template from django.template.loader import render_to_string, TemplateDoesNotExist register = template.Library() @register.simple_tag(takes_context=True) def render_with_template_if_exist(context, template, fallback): text = fallback try: text = render_to_string(template, context) ...
from django import template from django.template.loader import render_to_string, TemplateDoesNotExist register = template.Library() @register.simple_tag(takes_context=True) def render_with_template_if_exist(context, template, fallback): text = fallback try: text = render_to_string(template, context) ...
Fix column_width filter in python3
Fix column_width filter in python3 Force integer division otherwise we'll fsck bootstrap classes As seen here: https://gist.github.com/ScreenDriver/86a812b7b3f891fe8649#file-broken_fieldsets
Python
apache-2.0
avara1986/django-admin-bootstrapped,andrewyager/django-admin-bootstrapped,jmagnusson/django-admin-bootstrapped,askinteractive/mezzanine-advanced-admin-new,xrmx/django-admin-bootstrapped,kevingu1003/django-admin-bootstrapped,avara1986/django-admin-bootstrapped,Corner1024/django-admin-bootstrapped,merlian/django-admin-bo...
from django import template from django.template.loader import render_to_string, TemplateDoesNotExist register = template.Library() @register.simple_tag(takes_context=True) def render_with_template_if_exist(context, template, fallback): text = fallback try: text = render_to_string(template, context) ...
from django import template from django.template.loader import render_to_string, TemplateDoesNotExist register = template.Library() @register.simple_tag(takes_context=True) def render_with_template_if_exist(context, template, fallback): text = fallback try: text = render_to_string(template, context) ...
<commit_before>from django import template from django.template.loader import render_to_string, TemplateDoesNotExist register = template.Library() @register.simple_tag(takes_context=True) def render_with_template_if_exist(context, template, fallback): text = fallback try: text = render_to_string(temp...
from django import template from django.template.loader import render_to_string, TemplateDoesNotExist register = template.Library() @register.simple_tag(takes_context=True) def render_with_template_if_exist(context, template, fallback): text = fallback try: text = render_to_string(template, context) ...
from django import template from django.template.loader import render_to_string, TemplateDoesNotExist register = template.Library() @register.simple_tag(takes_context=True) def render_with_template_if_exist(context, template, fallback): text = fallback try: text = render_to_string(template, context) ...
<commit_before>from django import template from django.template.loader import render_to_string, TemplateDoesNotExist register = template.Library() @register.simple_tag(takes_context=True) def render_with_template_if_exist(context, template, fallback): text = fallback try: text = render_to_string(temp...
055ec832969ed5c875ec7d21320ff344df7956a1
sirius/__init__.py
sirius/__init__.py
import os as _os from . import LI_V00 from . import BO_V901 from . import SI_V07 from . import TI_V00 from . import TS_V500 from . import TB_V300 with open(_os.path.join(__path__[0], 'VERSION'), 'r') as _f: __version__ = _f.read().strip() __all__ = ['LI_V00', 'BO_V901', 'SI_V07', 'TI_V00', 'TS_V500', 'TB_V300'] ...
import os as _os from . import LI_V00 from . import BO_V901 from . import SI_V07 from . import TI_V00 from . import TS_V400 from . import TB_V300 with open(_os.path.join(__path__[0], 'VERSION'), 'r') as _f: __version__ = _f.read().strip() __all__ = ['LI_V00', 'BO_V901', 'SI_V07', 'TI_V00', 'TS_V400', 'TB_V300'] ...
Return TS to V400 for release
Return TS to V400 for release
Python
mit
lnls-fac/sirius
import os as _os from . import LI_V00 from . import BO_V901 from . import SI_V07 from . import TI_V00 from . import TS_V500 from . import TB_V300 with open(_os.path.join(__path__[0], 'VERSION'), 'r') as _f: __version__ = _f.read().strip() __all__ = ['LI_V00', 'BO_V901', 'SI_V07', 'TI_V00', 'TS_V500', 'TB_V300'] ...
import os as _os from . import LI_V00 from . import BO_V901 from . import SI_V07 from . import TI_V00 from . import TS_V400 from . import TB_V300 with open(_os.path.join(__path__[0], 'VERSION'), 'r') as _f: __version__ = _f.read().strip() __all__ = ['LI_V00', 'BO_V901', 'SI_V07', 'TI_V00', 'TS_V400', 'TB_V300'] ...
<commit_before>import os as _os from . import LI_V00 from . import BO_V901 from . import SI_V07 from . import TI_V00 from . import TS_V500 from . import TB_V300 with open(_os.path.join(__path__[0], 'VERSION'), 'r') as _f: __version__ = _f.read().strip() __all__ = ['LI_V00', 'BO_V901', 'SI_V07', 'TI_V00', 'TS_V500...
import os as _os from . import LI_V00 from . import BO_V901 from . import SI_V07 from . import TI_V00 from . import TS_V400 from . import TB_V300 with open(_os.path.join(__path__[0], 'VERSION'), 'r') as _f: __version__ = _f.read().strip() __all__ = ['LI_V00', 'BO_V901', 'SI_V07', 'TI_V00', 'TS_V400', 'TB_V300'] ...
import os as _os from . import LI_V00 from . import BO_V901 from . import SI_V07 from . import TI_V00 from . import TS_V500 from . import TB_V300 with open(_os.path.join(__path__[0], 'VERSION'), 'r') as _f: __version__ = _f.read().strip() __all__ = ['LI_V00', 'BO_V901', 'SI_V07', 'TI_V00', 'TS_V500', 'TB_V300'] ...
<commit_before>import os as _os from . import LI_V00 from . import BO_V901 from . import SI_V07 from . import TI_V00 from . import TS_V500 from . import TB_V300 with open(_os.path.join(__path__[0], 'VERSION'), 'r') as _f: __version__ = _f.read().strip() __all__ = ['LI_V00', 'BO_V901', 'SI_V07', 'TI_V00', 'TS_V500...
156b7363ff51532cddbb8ce1c7a5e6b8a3c7cc0a
accounts/tests/test_views.py
accounts/tests/test_views.py
"""accounts app unittests for views """ from django.test import TestCase class WelcomePageTest(TestCase): """Tests relating to the welcome_page view. """ def test_uses_welcome_template(self): """The root url should response with the welcome page template. """ response = self.cli...
"""accounts app unittests for views """ from django.test import TestCase from django.urls import reverse class WelcomePageTest(TestCase): """Tests relating to the welcome_page view. """ def test_uses_welcome_template(self): """The root url should respond with the welcome page template. ...
Add test for send login email view
Add test for send login email view
Python
mit
randomic/aniauth-tdd,randomic/aniauth-tdd
"""accounts app unittests for views """ from django.test import TestCase class WelcomePageTest(TestCase): """Tests relating to the welcome_page view. """ def test_uses_welcome_template(self): """The root url should response with the welcome page template. """ response = self.cli...
"""accounts app unittests for views """ from django.test import TestCase from django.urls import reverse class WelcomePageTest(TestCase): """Tests relating to the welcome_page view. """ def test_uses_welcome_template(self): """The root url should respond with the welcome page template. ...
<commit_before>"""accounts app unittests for views """ from django.test import TestCase class WelcomePageTest(TestCase): """Tests relating to the welcome_page view. """ def test_uses_welcome_template(self): """The root url should response with the welcome page template. """ resp...
"""accounts app unittests for views """ from django.test import TestCase from django.urls import reverse class WelcomePageTest(TestCase): """Tests relating to the welcome_page view. """ def test_uses_welcome_template(self): """The root url should respond with the welcome page template. ...
"""accounts app unittests for views """ from django.test import TestCase class WelcomePageTest(TestCase): """Tests relating to the welcome_page view. """ def test_uses_welcome_template(self): """The root url should response with the welcome page template. """ response = self.cli...
<commit_before>"""accounts app unittests for views """ from django.test import TestCase class WelcomePageTest(TestCase): """Tests relating to the welcome_page view. """ def test_uses_welcome_template(self): """The root url should response with the welcome page template. """ resp...
000c583cc9f8eec4b0904669dd98d98d8c7df8d7
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup, find_packages from imp import load_source setup( name='cmis', version=load_source('', 'cmis/_version.py').__version__, description='A server architecture built on top of a solid foundation ' 'provided by flask, sqlalchemy, and various ext...
#!/usr/bin/env python from setuptools import setup, find_packages from imp import load_source setup( name='cmis', version=load_source('', 'cmis/_version.py').__version__, description='A server architecture built on top of a solid foundation ' 'provided by flask, sqlalchemy, and various ext...
Fix cmislib branch for py3k
Fix cmislib branch for py3k
Python
mit
concordusapps/python-cmis
#!/usr/bin/env python from setuptools import setup, find_packages from imp import load_source setup( name='cmis', version=load_source('', 'cmis/_version.py').__version__, description='A server architecture built on top of a solid foundation ' 'provided by flask, sqlalchemy, and various ext...
#!/usr/bin/env python from setuptools import setup, find_packages from imp import load_source setup( name='cmis', version=load_source('', 'cmis/_version.py').__version__, description='A server architecture built on top of a solid foundation ' 'provided by flask, sqlalchemy, and various ext...
<commit_before>#!/usr/bin/env python from setuptools import setup, find_packages from imp import load_source setup( name='cmis', version=load_source('', 'cmis/_version.py').__version__, description='A server architecture built on top of a solid foundation ' 'provided by flask, sqlalchemy, ...
#!/usr/bin/env python from setuptools import setup, find_packages from imp import load_source setup( name='cmis', version=load_source('', 'cmis/_version.py').__version__, description='A server architecture built on top of a solid foundation ' 'provided by flask, sqlalchemy, and various ext...
#!/usr/bin/env python from setuptools import setup, find_packages from imp import load_source setup( name='cmis', version=load_source('', 'cmis/_version.py').__version__, description='A server architecture built on top of a solid foundation ' 'provided by flask, sqlalchemy, and various ext...
<commit_before>#!/usr/bin/env python from setuptools import setup, find_packages from imp import load_source setup( name='cmis', version=load_source('', 'cmis/_version.py').__version__, description='A server architecture built on top of a solid foundation ' 'provided by flask, sqlalchemy, ...
e771aa55c3644b3e405dd53dfc72235de4d37109
setup.py
setup.py
from setuptools import setup, find_packages setup( name="elasticmagic", version="0.0.0a0", author="Alexander Koval", author_email="kovalidis@gmail.com", description=("Python orm for elasticsearch."), license="Apache License 2.0", keywords="elasticsearch dsl", url="https://github.com/an...
from setuptools import setup, find_packages setup( name="elasticmagic", version="0.0.0a0", author="Alexander Koval", author_email="kovalidis@gmail.com", description=("Python orm for elasticsearch."), license="Apache License 2.0", keywords="elasticsearch dsl", url="https://github.com/an...
Remove version bounds for elasticsearch dependency
Remove version bounds for elasticsearch dependency
Python
apache-2.0
anti-social/elasticmagic,anti-social/elasticmagic
from setuptools import setup, find_packages setup( name="elasticmagic", version="0.0.0a0", author="Alexander Koval", author_email="kovalidis@gmail.com", description=("Python orm for elasticsearch."), license="Apache License 2.0", keywords="elasticsearch dsl", url="https://github.com/an...
from setuptools import setup, find_packages setup( name="elasticmagic", version="0.0.0a0", author="Alexander Koval", author_email="kovalidis@gmail.com", description=("Python orm for elasticsearch."), license="Apache License 2.0", keywords="elasticsearch dsl", url="https://github.com/an...
<commit_before>from setuptools import setup, find_packages setup( name="elasticmagic", version="0.0.0a0", author="Alexander Koval", author_email="kovalidis@gmail.com", description=("Python orm for elasticsearch."), license="Apache License 2.0", keywords="elasticsearch dsl", url="https:...
from setuptools import setup, find_packages setup( name="elasticmagic", version="0.0.0a0", author="Alexander Koval", author_email="kovalidis@gmail.com", description=("Python orm for elasticsearch."), license="Apache License 2.0", keywords="elasticsearch dsl", url="https://github.com/an...
from setuptools import setup, find_packages setup( name="elasticmagic", version="0.0.0a0", author="Alexander Koval", author_email="kovalidis@gmail.com", description=("Python orm for elasticsearch."), license="Apache License 2.0", keywords="elasticsearch dsl", url="https://github.com/an...
<commit_before>from setuptools import setup, find_packages setup( name="elasticmagic", version="0.0.0a0", author="Alexander Koval", author_email="kovalidis@gmail.com", description=("Python orm for elasticsearch."), license="Apache License 2.0", keywords="elasticsearch dsl", url="https:...
5d52ccca4be5cc08ecedf1063712a1fa917ccbc8
setup.py
setup.py
import os from setuptools import setup, find_packages cdir = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(cdir, 'readme.rst')).read() from keg_bouncer.version import VERSION setup( name='KegBouncer', version=VERSION, description='A three-tiered permissions model for KegElements ...
import os from setuptools import setup, find_packages cdir = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(cdir, 'readme.rst')).read() setup( name='KegBouncer', setup_requires=['setuptools_scm'], use_scm_version=True, description='A three-tiered permissions model for KegElemen...
Use git version tag for version
Use git version tag for version
Python
bsd-3-clause
level12/keg-bouncer,level12/keg-bouncer
import os from setuptools import setup, find_packages cdir = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(cdir, 'readme.rst')).read() from keg_bouncer.version import VERSION setup( name='KegBouncer', version=VERSION, description='A three-tiered permissions model for KegElements ...
import os from setuptools import setup, find_packages cdir = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(cdir, 'readme.rst')).read() setup( name='KegBouncer', setup_requires=['setuptools_scm'], use_scm_version=True, description='A three-tiered permissions model for KegElemen...
<commit_before>import os from setuptools import setup, find_packages cdir = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(cdir, 'readme.rst')).read() from keg_bouncer.version import VERSION setup( name='KegBouncer', version=VERSION, description='A three-tiered permissions model f...
import os from setuptools import setup, find_packages cdir = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(cdir, 'readme.rst')).read() setup( name='KegBouncer', setup_requires=['setuptools_scm'], use_scm_version=True, description='A three-tiered permissions model for KegElemen...
import os from setuptools import setup, find_packages cdir = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(cdir, 'readme.rst')).read() from keg_bouncer.version import VERSION setup( name='KegBouncer', version=VERSION, description='A three-tiered permissions model for KegElements ...
<commit_before>import os from setuptools import setup, find_packages cdir = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(cdir, 'readme.rst')).read() from keg_bouncer.version import VERSION setup( name='KegBouncer', version=VERSION, description='A three-tiered permissions model f...
5fcd68e1088a4873abea4f3fa06fbc34dbc677ff
setup.py
setup.py
#!/usr/bin/env python from ez_setup import use_setuptools use_setuptools() from setuptools import setup import re main_py = open('flatcat/__init__.py').read() metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", main_py)) requires = [ 'morfessor', ] setup(name='Morfessor FlatCat', version=metadata[...
#!/usr/bin/env python from ez_setup import use_setuptools use_setuptools() from setuptools import setup import re main_py = open('flatcat/__init__.py').read() metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", main_py)) requires = [ 'morfessor', ] setup(name='Morfessor FlatCat', version=metadata[...
Revert "Fix to improperly disabled docs"
Revert "Fix to improperly disabled docs" This reverts commit 8bc704f6272ccfebd48f7282e02420a56d8e934d.
Python
bsd-2-clause
aalto-speech/flatcat
#!/usr/bin/env python from ez_setup import use_setuptools use_setuptools() from setuptools import setup import re main_py = open('flatcat/__init__.py').read() metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", main_py)) requires = [ 'morfessor', ] setup(name='Morfessor FlatCat', version=metadata[...
#!/usr/bin/env python from ez_setup import use_setuptools use_setuptools() from setuptools import setup import re main_py = open('flatcat/__init__.py').read() metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", main_py)) requires = [ 'morfessor', ] setup(name='Morfessor FlatCat', version=metadata[...
<commit_before>#!/usr/bin/env python from ez_setup import use_setuptools use_setuptools() from setuptools import setup import re main_py = open('flatcat/__init__.py').read() metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", main_py)) requires = [ 'morfessor', ] setup(name='Morfessor FlatCat', ve...
#!/usr/bin/env python from ez_setup import use_setuptools use_setuptools() from setuptools import setup import re main_py = open('flatcat/__init__.py').read() metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", main_py)) requires = [ 'morfessor', ] setup(name='Morfessor FlatCat', version=metadata[...
#!/usr/bin/env python from ez_setup import use_setuptools use_setuptools() from setuptools import setup import re main_py = open('flatcat/__init__.py').read() metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", main_py)) requires = [ 'morfessor', ] setup(name='Morfessor FlatCat', version=metadata[...
<commit_before>#!/usr/bin/env python from ez_setup import use_setuptools use_setuptools() from setuptools import setup import re main_py = open('flatcat/__init__.py').read() metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", main_py)) requires = [ 'morfessor', ] setup(name='Morfessor FlatCat', ve...
d78270bd415988180f11413d739086e560516464
setup.py
setup.py
from __future__ import print_function, absolute_import, division from ast import literal_eval from setuptools import setup def get_version(source='petl/__init__.py'): with open(source) as f: for line in f: if line.startswith('__version__'): return literal_eval(line.split('=')...
from __future__ import print_function, absolute_import, division from ast import literal_eval from setuptools import setup def get_version(source='petl/__init__.py'): with open(source) as f: for line in f: if line.startswith('__version__'): return literal_eval(line.split('=')...
Add python_requires to help pip
Add python_requires to help pip
Python
mit
alimanfoo/petl,psnj/petl,Marketing1by1/petl
from __future__ import print_function, absolute_import, division from ast import literal_eval from setuptools import setup def get_version(source='petl/__init__.py'): with open(source) as f: for line in f: if line.startswith('__version__'): return literal_eval(line.split('=')...
from __future__ import print_function, absolute_import, division from ast import literal_eval from setuptools import setup def get_version(source='petl/__init__.py'): with open(source) as f: for line in f: if line.startswith('__version__'): return literal_eval(line.split('=')...
<commit_before>from __future__ import print_function, absolute_import, division from ast import literal_eval from setuptools import setup def get_version(source='petl/__init__.py'): with open(source) as f: for line in f: if line.startswith('__version__'): return literal_eval(...
from __future__ import print_function, absolute_import, division from ast import literal_eval from setuptools import setup def get_version(source='petl/__init__.py'): with open(source) as f: for line in f: if line.startswith('__version__'): return literal_eval(line.split('=')...
from __future__ import print_function, absolute_import, division from ast import literal_eval from setuptools import setup def get_version(source='petl/__init__.py'): with open(source) as f: for line in f: if line.startswith('__version__'): return literal_eval(line.split('=')...
<commit_before>from __future__ import print_function, absolute_import, division from ast import literal_eval from setuptools import setup def get_version(source='petl/__init__.py'): with open(source) as f: for line in f: if line.startswith('__version__'): return literal_eval(...
876d7e0e03706b21f2d2de93e31289ed4cf30fd5
setup.py
setup.py
# -*- coding: utf-8 -*- from setuptools import setup, find_packages classifiers = [ "Development Status :: 4 - Production/Beta", "Intended Audience :: System Administrators", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python", "Programming Language :: Python :: 2...
# -*- coding: utf-8 -*- from setuptools import setup, find_packages classifiers = [ "Development Status :: 4 - Production/Beta", "Intended Audience :: System Administrators", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python", "Programming Language :: Python :: 2...
Fix long_description field was duplicated.
Fix long_description field was duplicated.
Python
apache-2.0
tk0miya/diff-highlight
# -*- coding: utf-8 -*- from setuptools import setup, find_packages classifiers = [ "Development Status :: 4 - Production/Beta", "Intended Audience :: System Administrators", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python", "Programming Language :: Python :: 2...
# -*- coding: utf-8 -*- from setuptools import setup, find_packages classifiers = [ "Development Status :: 4 - Production/Beta", "Intended Audience :: System Administrators", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python", "Programming Language :: Python :: 2...
<commit_before># -*- coding: utf-8 -*- from setuptools import setup, find_packages classifiers = [ "Development Status :: 4 - Production/Beta", "Intended Audience :: System Administrators", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python", "Programming Language...
# -*- coding: utf-8 -*- from setuptools import setup, find_packages classifiers = [ "Development Status :: 4 - Production/Beta", "Intended Audience :: System Administrators", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python", "Programming Language :: Python :: 2...
# -*- coding: utf-8 -*- from setuptools import setup, find_packages classifiers = [ "Development Status :: 4 - Production/Beta", "Intended Audience :: System Administrators", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python", "Programming Language :: Python :: 2...
<commit_before># -*- coding: utf-8 -*- from setuptools import setup, find_packages classifiers = [ "Development Status :: 4 - Production/Beta", "Intended Audience :: System Administrators", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python", "Programming Language...
d4abbe52c804d0a11a3826f8df8e1591d25a771e
setup.py
setup.py
from setuptools import setup, find_packages setup( name='flask-ldap-login', version='0.1', author='Continuum Analitics', author_email='srossross@gmail.com', url='https://github.com/srossross/flask-ldap-login', packages=find_packages(), include_package_data=True, zip_safe=False, e...
from setuptools import setup, find_packages setup( name='flask-ldap-login', version='0.1', author='Continuum Analytics', author_email='dev@continuum.io', url='https://github.com/ContinuumIO/flask-ldap-login', packages=find_packages(), include_package_data=True, zip_safe=False, en...
Fix typo, author email, and package url
Fix typo, author email, and package url
Python
bsd-2-clause
ContinuumIO/flask-ldap-login,ContinuumIO/flask-ldap-login
from setuptools import setup, find_packages setup( name='flask-ldap-login', version='0.1', author='Continuum Analitics', author_email='srossross@gmail.com', url='https://github.com/srossross/flask-ldap-login', packages=find_packages(), include_package_data=True, zip_safe=False, e...
from setuptools import setup, find_packages setup( name='flask-ldap-login', version='0.1', author='Continuum Analytics', author_email='dev@continuum.io', url='https://github.com/ContinuumIO/flask-ldap-login', packages=find_packages(), include_package_data=True, zip_safe=False, en...
<commit_before>from setuptools import setup, find_packages setup( name='flask-ldap-login', version='0.1', author='Continuum Analitics', author_email='srossross@gmail.com', url='https://github.com/srossross/flask-ldap-login', packages=find_packages(), include_package_data=True, zip_saf...
from setuptools import setup, find_packages setup( name='flask-ldap-login', version='0.1', author='Continuum Analytics', author_email='dev@continuum.io', url='https://github.com/ContinuumIO/flask-ldap-login', packages=find_packages(), include_package_data=True, zip_safe=False, en...
from setuptools import setup, find_packages setup( name='flask-ldap-login', version='0.1', author='Continuum Analitics', author_email='srossross@gmail.com', url='https://github.com/srossross/flask-ldap-login', packages=find_packages(), include_package_data=True, zip_safe=False, e...
<commit_before>from setuptools import setup, find_packages setup( name='flask-ldap-login', version='0.1', author='Continuum Analitics', author_email='srossross@gmail.com', url='https://github.com/srossross/flask-ldap-login', packages=find_packages(), include_package_data=True, zip_saf...
cc6e1f096a63c9f52dbee6779c143b6df1f11c05
setup.py
setup.py
from distutils.core import setup setup( name="armstrong.templates.standard", version="1.0.0", description="Provides a basic project template for an Armstrong project", long_description=open("README.rst").read(), author='Texas Tribune & Bay Citizen', author_email='dev@armstrongcms.org', pack...
from distutils.core import setup import os package_data = [] BASE_DIR = os.path.dirname(__file__) walk_generator = os.walk(os.path.join(BASE_DIR, "project_template")) paths_and_files = [(paths, files) for paths, dirs, files in walk_generator] for path, files in paths_and_files: prefix = path[len("project_template/...
Add missing package_data to file (v1.0.1)
Add missing package_data to file (v1.0.1)
Python
apache-2.0
armstrong/armstrong.templates.standard,armstrong/armstrong.templates.standard
from distutils.core import setup setup( name="armstrong.templates.standard", version="1.0.0", description="Provides a basic project template for an Armstrong project", long_description=open("README.rst").read(), author='Texas Tribune & Bay Citizen', author_email='dev@armstrongcms.org', pack...
from distutils.core import setup import os package_data = [] BASE_DIR = os.path.dirname(__file__) walk_generator = os.walk(os.path.join(BASE_DIR, "project_template")) paths_and_files = [(paths, files) for paths, dirs, files in walk_generator] for path, files in paths_and_files: prefix = path[len("project_template/...
<commit_before>from distutils.core import setup setup( name="armstrong.templates.standard", version="1.0.0", description="Provides a basic project template for an Armstrong project", long_description=open("README.rst").read(), author='Texas Tribune & Bay Citizen', author_email='dev@armstrongcms...
from distutils.core import setup import os package_data = [] BASE_DIR = os.path.dirname(__file__) walk_generator = os.walk(os.path.join(BASE_DIR, "project_template")) paths_and_files = [(paths, files) for paths, dirs, files in walk_generator] for path, files in paths_and_files: prefix = path[len("project_template/...
from distutils.core import setup setup( name="armstrong.templates.standard", version="1.0.0", description="Provides a basic project template for an Armstrong project", long_description=open("README.rst").read(), author='Texas Tribune & Bay Citizen', author_email='dev@armstrongcms.org', pack...
<commit_before>from distutils.core import setup setup( name="armstrong.templates.standard", version="1.0.0", description="Provides a basic project template for an Armstrong project", long_description=open("README.rst").read(), author='Texas Tribune & Bay Citizen', author_email='dev@armstrongcms...
1bc326e065fb9580408fe9e78282f22c00d5d376
setup.py
setup.py
# -*- coding: utf-8 -*- import os from setuptools import setup VERSION = '3.1.1' setup( name='conllu', packages=["conllu"], version=VERSION, description='CoNLL-U Parser parses a CoNLL-U formatted string into a nested python dictionary', long_description=open(os.path.join(os.path.dirname(__file__)...
# -*- coding: utf-8 -*- import os from setuptools import setup VERSION = '3.1.1' setup( name='conllu', packages=["conllu"], version=VERSION, description='CoNLL-U Parser parses a CoNLL-U formatted string into a nested python dictionary', long_description=open(os.path.join(os.path.dirname(__file__)...
Remove old Python pypi classifiers.
Remove old Python pypi classifiers.
Python
mit
EmilStenstrom/conllu
# -*- coding: utf-8 -*- import os from setuptools import setup VERSION = '3.1.1' setup( name='conllu', packages=["conllu"], version=VERSION, description='CoNLL-U Parser parses a CoNLL-U formatted string into a nested python dictionary', long_description=open(os.path.join(os.path.dirname(__file__)...
# -*- coding: utf-8 -*- import os from setuptools import setup VERSION = '3.1.1' setup( name='conllu', packages=["conllu"], version=VERSION, description='CoNLL-U Parser parses a CoNLL-U formatted string into a nested python dictionary', long_description=open(os.path.join(os.path.dirname(__file__)...
<commit_before># -*- coding: utf-8 -*- import os from setuptools import setup VERSION = '3.1.1' setup( name='conllu', packages=["conllu"], version=VERSION, description='CoNLL-U Parser parses a CoNLL-U formatted string into a nested python dictionary', long_description=open(os.path.join(os.path.di...
# -*- coding: utf-8 -*- import os from setuptools import setup VERSION = '3.1.1' setup( name='conllu', packages=["conllu"], version=VERSION, description='CoNLL-U Parser parses a CoNLL-U formatted string into a nested python dictionary', long_description=open(os.path.join(os.path.dirname(__file__)...
# -*- coding: utf-8 -*- import os from setuptools import setup VERSION = '3.1.1' setup( name='conllu', packages=["conllu"], version=VERSION, description='CoNLL-U Parser parses a CoNLL-U formatted string into a nested python dictionary', long_description=open(os.path.join(os.path.dirname(__file__)...
<commit_before># -*- coding: utf-8 -*- import os from setuptools import setup VERSION = '3.1.1' setup( name='conllu', packages=["conllu"], version=VERSION, description='CoNLL-U Parser parses a CoNLL-U formatted string into a nested python dictionary', long_description=open(os.path.join(os.path.di...
2af2efc18c2a778d9e2eb6f8a8539d013f7837e7
setup.py
setup.py
import os import os.path import sys from setuptools import find_packages, setup requirements = ['PyYAML'] major, minor = sys.version_info[:2] if major == 2 and minor < 7: requirements.append('argparse') setup( name='behave', version='1.0', description='A Cucumber-like BDD tool', author='Benno Ric...
import os import os.path import sys from setuptools import find_packages, setup requirements = ['parse>=1.1.5', 'PyYAML'] major, minor = sys.version_info[:2] if major == 2 and minor < 7: requirements.append('argparse') setup( name='behave', version='1.0', description='A Cucumber-like BDD tool', a...
Add dependency on parse, be more explicit in supported Python versions.
Add dependency on parse, be more explicit in supported Python versions.
Python
bsd-2-clause
kymbert/behave,allanlewis/behave,KevinOrtman/behave,hugeinc/behave-parallel,benthomasson/behave,connorsml/behave,spacediver/behave,benthomasson/behave,KevinMarkVI/behave-parallel,spacediver/behave,allanlewis/behave,Gimpneek/behave,kymbert/behave,KevinOrtman/behave,memee/behave,jenisys/behave,metaperl/behave,charleswhch...
import os import os.path import sys from setuptools import find_packages, setup requirements = ['PyYAML'] major, minor = sys.version_info[:2] if major == 2 and minor < 7: requirements.append('argparse') setup( name='behave', version='1.0', description='A Cucumber-like BDD tool', author='Benno Ric...
import os import os.path import sys from setuptools import find_packages, setup requirements = ['parse>=1.1.5', 'PyYAML'] major, minor = sys.version_info[:2] if major == 2 and minor < 7: requirements.append('argparse') setup( name='behave', version='1.0', description='A Cucumber-like BDD tool', a...
<commit_before>import os import os.path import sys from setuptools import find_packages, setup requirements = ['PyYAML'] major, minor = sys.version_info[:2] if major == 2 and minor < 7: requirements.append('argparse') setup( name='behave', version='1.0', description='A Cucumber-like BDD tool', au...
import os import os.path import sys from setuptools import find_packages, setup requirements = ['parse>=1.1.5', 'PyYAML'] major, minor = sys.version_info[:2] if major == 2 and minor < 7: requirements.append('argparse') setup( name='behave', version='1.0', description='A Cucumber-like BDD tool', a...
import os import os.path import sys from setuptools import find_packages, setup requirements = ['PyYAML'] major, minor = sys.version_info[:2] if major == 2 and minor < 7: requirements.append('argparse') setup( name='behave', version='1.0', description='A Cucumber-like BDD tool', author='Benno Ric...
<commit_before>import os import os.path import sys from setuptools import find_packages, setup requirements = ['PyYAML'] major, minor = sys.version_info[:2] if major == 2 and minor < 7: requirements.append('argparse') setup( name='behave', version='1.0', description='A Cucumber-like BDD tool', au...
089413714bfdcf09fa2faf123dfa26faa2b1af4a
setup.py
setup.py
import os from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(here, 'README.rst')).read() CHANGES = open(os.path.join(here, 'CHANGES.rst')).read() requires = [ 'pyramid', 'cornice', 'colander', 'couchdb', ] test_requires = requ...
import os from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(here, 'README.rst')).read() CHANGES = open(os.path.join(here, 'CHANGES.rst')).read() requires = [ 'pyramid', 'cornice', 'colander', 'couchdb', ] test_requires = requ...
Install the spore branch of cornice
Install the spore branch of cornice
Python
bsd-3-clause
spiral-project/daybed,spiral-project/daybed
import os from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(here, 'README.rst')).read() CHANGES = open(os.path.join(here, 'CHANGES.rst')).read() requires = [ 'pyramid', 'cornice', 'colander', 'couchdb', ] test_requires = requ...
import os from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(here, 'README.rst')).read() CHANGES = open(os.path.join(here, 'CHANGES.rst')).read() requires = [ 'pyramid', 'cornice', 'colander', 'couchdb', ] test_requires = requ...
<commit_before>import os from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(here, 'README.rst')).read() CHANGES = open(os.path.join(here, 'CHANGES.rst')).read() requires = [ 'pyramid', 'cornice', 'colander', 'couchdb', ] test_...
import os from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(here, 'README.rst')).read() CHANGES = open(os.path.join(here, 'CHANGES.rst')).read() requires = [ 'pyramid', 'cornice', 'colander', 'couchdb', ] test_requires = requ...
import os from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(here, 'README.rst')).read() CHANGES = open(os.path.join(here, 'CHANGES.rst')).read() requires = [ 'pyramid', 'cornice', 'colander', 'couchdb', ] test_requires = requ...
<commit_before>import os from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(here, 'README.rst')).read() CHANGES = open(os.path.join(here, 'CHANGES.rst')).read() requires = [ 'pyramid', 'cornice', 'colander', 'couchdb', ] test_...
7ba4dca75301a75e0dd68327e0309f8521d6eeb7
setup.py
setup.py
from distutils.core import setup setup( name='django-grappelli-autocomplete-fk-edit-link', version='1.0.0dev', packages=['grappelli_autocomplete_fk_edit_link',], license='MIT', description='ModelAdmin mixin that adds edit links to Django Grappelli autocomplete lookups.', long_description=open('...
from distutils.core import setup setup( name='django-grappelli-autocomplete-fk-edit-link', version='1.0.0dev', packages=['grappelli_autocomplete_fk_edit_link',], license='MIT', description='ModelAdmin mixin that adds edit links to Django Grappelli autocomplete lookups.', long_description=open('...
Support newer versions of Grappelli.
Support newer versions of Grappelli.
Python
mit
CrossWaterBridge/django-grappelli-autocomplete-fk-edit-link,olivierdalang/django-grappelli-autocomplete-fk-edit-link,CrossWaterBridge/django-grappelli-autocomplete-fk-edit-link,olivierdalang/django-grappelli-autocomplete-fk-edit-link
from distutils.core import setup setup( name='django-grappelli-autocomplete-fk-edit-link', version='1.0.0dev', packages=['grappelli_autocomplete_fk_edit_link',], license='MIT', description='ModelAdmin mixin that adds edit links to Django Grappelli autocomplete lookups.', long_description=open('...
from distutils.core import setup setup( name='django-grappelli-autocomplete-fk-edit-link', version='1.0.0dev', packages=['grappelli_autocomplete_fk_edit_link',], license='MIT', description='ModelAdmin mixin that adds edit links to Django Grappelli autocomplete lookups.', long_description=open('...
<commit_before>from distutils.core import setup setup( name='django-grappelli-autocomplete-fk-edit-link', version='1.0.0dev', packages=['grappelli_autocomplete_fk_edit_link',], license='MIT', description='ModelAdmin mixin that adds edit links to Django Grappelli autocomplete lookups.', long_des...
from distutils.core import setup setup( name='django-grappelli-autocomplete-fk-edit-link', version='1.0.0dev', packages=['grappelli_autocomplete_fk_edit_link',], license='MIT', description='ModelAdmin mixin that adds edit links to Django Grappelli autocomplete lookups.', long_description=open('...
from distutils.core import setup setup( name='django-grappelli-autocomplete-fk-edit-link', version='1.0.0dev', packages=['grappelli_autocomplete_fk_edit_link',], license='MIT', description='ModelAdmin mixin that adds edit links to Django Grappelli autocomplete lookups.', long_description=open('...
<commit_before>from distutils.core import setup setup( name='django-grappelli-autocomplete-fk-edit-link', version='1.0.0dev', packages=['grappelli_autocomplete_fk_edit_link',], license='MIT', description='ModelAdmin mixin that adds edit links to Django Grappelli autocomplete lookups.', long_des...
a22fc986ddf81a915ae5a8bb48d755ec04c65fc2
setup.py
setup.py
from setuptools import setup from pip.req import parse_requirements install_reqs = parse_requirements('requirements.txt') setup( name = "lrs", version = "0.0.0", author = "ADL", packages=['lrs'], install_requires=[str(ir.req) for ir in install_reqs], )
from setuptools import setup from pip.req import parse_requirements install_reqs = parse_requirements('requirements.txt', session=False) setup( name = "lrs", version = "0.0.0", author = "ADL", packages=['lrs'], install_requires=[str(ir.req) for ir in install_reqs], )
Handle newer versions of pip.
Handle newer versions of pip.
Python
apache-2.0
frasern/ADL_LRS,frasern/ADL_LRS,frasern/ADL_LRS
from setuptools import setup from pip.req import parse_requirements install_reqs = parse_requirements('requirements.txt') setup( name = "lrs", version = "0.0.0", author = "ADL", packages=['lrs'], install_requires=[str(ir.req) for ir in install_reqs], ) Handle newer versions of pip.
from setuptools import setup from pip.req import parse_requirements install_reqs = parse_requirements('requirements.txt', session=False) setup( name = "lrs", version = "0.0.0", author = "ADL", packages=['lrs'], install_requires=[str(ir.req) for ir in install_reqs], )
<commit_before>from setuptools import setup from pip.req import parse_requirements install_reqs = parse_requirements('requirements.txt') setup( name = "lrs", version = "0.0.0", author = "ADL", packages=['lrs'], install_requires=[str(ir.req) for ir in install_reqs], ) <commit_msg>Handle newer versi...
from setuptools import setup from pip.req import parse_requirements install_reqs = parse_requirements('requirements.txt', session=False) setup( name = "lrs", version = "0.0.0", author = "ADL", packages=['lrs'], install_requires=[str(ir.req) for ir in install_reqs], )
from setuptools import setup from pip.req import parse_requirements install_reqs = parse_requirements('requirements.txt') setup( name = "lrs", version = "0.0.0", author = "ADL", packages=['lrs'], install_requires=[str(ir.req) for ir in install_reqs], ) Handle newer versions of pip.from setuptools ...
<commit_before>from setuptools import setup from pip.req import parse_requirements install_reqs = parse_requirements('requirements.txt') setup( name = "lrs", version = "0.0.0", author = "ADL", packages=['lrs'], install_requires=[str(ir.req) for ir in install_reqs], ) <commit_msg>Handle newer versi...
8513d765a071c6f7d8c3bc20ba73e0f8b0744252
setup.py
setup.py
#!/usr/bin/python2 ''' The setup script for salt ''' from distutils.core import setup setup(name='salt', version='0.1', description='Portable, distrubuted, remote execution system', author='Thomas S Hatch', author_email='thatch45@gmail.com', url='https://github.com/thatch45/salt', ...
#!/usr/bin/python2 ''' The setup script for salt ''' from distutils.core import setup setup(name='salt', version='0.1', description='Portable, distrubuted, remote execution system', author='Thomas S Hatch', author_email='thatch45@gmail.com', url='https://github.com/thatch45/salt', ...
Add the salt.modules module to the package
Add the salt.modules module to the package
Python
apache-2.0
saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt
#!/usr/bin/python2 ''' The setup script for salt ''' from distutils.core import setup setup(name='salt', version='0.1', description='Portable, distrubuted, remote execution system', author='Thomas S Hatch', author_email='thatch45@gmail.com', url='https://github.com/thatch45/salt', ...
#!/usr/bin/python2 ''' The setup script for salt ''' from distutils.core import setup setup(name='salt', version='0.1', description='Portable, distrubuted, remote execution system', author='Thomas S Hatch', author_email='thatch45@gmail.com', url='https://github.com/thatch45/salt', ...
<commit_before>#!/usr/bin/python2 ''' The setup script for salt ''' from distutils.core import setup setup(name='salt', version='0.1', description='Portable, distrubuted, remote execution system', author='Thomas S Hatch', author_email='thatch45@gmail.com', url='https://github.com/thatch4...
#!/usr/bin/python2 ''' The setup script for salt ''' from distutils.core import setup setup(name='salt', version='0.1', description='Portable, distrubuted, remote execution system', author='Thomas S Hatch', author_email='thatch45@gmail.com', url='https://github.com/thatch45/salt', ...
#!/usr/bin/python2 ''' The setup script for salt ''' from distutils.core import setup setup(name='salt', version='0.1', description='Portable, distrubuted, remote execution system', author='Thomas S Hatch', author_email='thatch45@gmail.com', url='https://github.com/thatch45/salt', ...
<commit_before>#!/usr/bin/python2 ''' The setup script for salt ''' from distutils.core import setup setup(name='salt', version='0.1', description='Portable, distrubuted, remote execution system', author='Thomas S Hatch', author_email='thatch45@gmail.com', url='https://github.com/thatch4...
bc1a8ca4f38f112ceeff9a72ded30ce9342b64bb
setup.py
setup.py
from setuptools import setup setup( name='pbdeploy', description='a port-based deployment framework for practicing continuous deployment', version='1.2', packages=['pbdeploy'], scripts=['bin/pbdeploy'], license='The MIT License', author='Michael Rooney', author_email='mrooney.pbdeploy@r...
from setuptools import setup setup( name='pbdeploy', description='a port-based deployment framework for practicing continuous deployment', version='1.0', packages=['pbdeploy'], scripts=['bin/pbdeploy'], license='The MIT License', author='Michael Rooney', author_email='mrooney.pbdeploy@r...
Revert "bump to 1.2 after shell revert"
Revert "bump to 1.2 after shell revert" This reverts commit e2fcb76f6f6ee99a98ee529917959235576e2d07.
Python
mit
mrooney/pbdeploy
from setuptools import setup setup( name='pbdeploy', description='a port-based deployment framework for practicing continuous deployment', version='1.2', packages=['pbdeploy'], scripts=['bin/pbdeploy'], license='The MIT License', author='Michael Rooney', author_email='mrooney.pbdeploy@r...
from setuptools import setup setup( name='pbdeploy', description='a port-based deployment framework for practicing continuous deployment', version='1.0', packages=['pbdeploy'], scripts=['bin/pbdeploy'], license='The MIT License', author='Michael Rooney', author_email='mrooney.pbdeploy@r...
<commit_before>from setuptools import setup setup( name='pbdeploy', description='a port-based deployment framework for practicing continuous deployment', version='1.2', packages=['pbdeploy'], scripts=['bin/pbdeploy'], license='The MIT License', author='Michael Rooney', author_email='mro...
from setuptools import setup setup( name='pbdeploy', description='a port-based deployment framework for practicing continuous deployment', version='1.0', packages=['pbdeploy'], scripts=['bin/pbdeploy'], license='The MIT License', author='Michael Rooney', author_email='mrooney.pbdeploy@r...
from setuptools import setup setup( name='pbdeploy', description='a port-based deployment framework for practicing continuous deployment', version='1.2', packages=['pbdeploy'], scripts=['bin/pbdeploy'], license='The MIT License', author='Michael Rooney', author_email='mrooney.pbdeploy@r...
<commit_before>from setuptools import setup setup( name='pbdeploy', description='a port-based deployment framework for practicing continuous deployment', version='1.2', packages=['pbdeploy'], scripts=['bin/pbdeploy'], license='The MIT License', author='Michael Rooney', author_email='mro...
061f1c63ecdd811eae513d6865146bace7be8b00
setup.py
setup.py
import codecs import os from setuptools import setup, find_packages def read(filename): filepath = os.path.join(os.path.dirname(__file__), filename) return codecs.open(filepath, encoding='utf-8').read() setup( name='lemon-robots', version='0.1.dev', license='BSD', description='robots.txt sim...
import codecs import os from setuptools import setup, find_packages def read(filename): filepath = os.path.join(os.path.dirname(__file__), filename) return codecs.open(filepath, encoding='utf-8').read() setup( name='lemon-robots', version='0.1.dev', license='BSD', description='robots.txt sim...
Add project URL to the distribution info
Add project URL to the distribution info
Python
isc
trilan/lemon-robots,trilan/lemon-robots
import codecs import os from setuptools import setup, find_packages def read(filename): filepath = os.path.join(os.path.dirname(__file__), filename) return codecs.open(filepath, encoding='utf-8').read() setup( name='lemon-robots', version='0.1.dev', license='BSD', description='robots.txt sim...
import codecs import os from setuptools import setup, find_packages def read(filename): filepath = os.path.join(os.path.dirname(__file__), filename) return codecs.open(filepath, encoding='utf-8').read() setup( name='lemon-robots', version='0.1.dev', license='BSD', description='robots.txt sim...
<commit_before>import codecs import os from setuptools import setup, find_packages def read(filename): filepath = os.path.join(os.path.dirname(__file__), filename) return codecs.open(filepath, encoding='utf-8').read() setup( name='lemon-robots', version='0.1.dev', license='BSD', description=...
import codecs import os from setuptools import setup, find_packages def read(filename): filepath = os.path.join(os.path.dirname(__file__), filename) return codecs.open(filepath, encoding='utf-8').read() setup( name='lemon-robots', version='0.1.dev', license='BSD', description='robots.txt sim...
import codecs import os from setuptools import setup, find_packages def read(filename): filepath = os.path.join(os.path.dirname(__file__), filename) return codecs.open(filepath, encoding='utf-8').read() setup( name='lemon-robots', version='0.1.dev', license='BSD', description='robots.txt sim...
<commit_before>import codecs import os from setuptools import setup, find_packages def read(filename): filepath = os.path.join(os.path.dirname(__file__), filename) return codecs.open(filepath, encoding='utf-8').read() setup( name='lemon-robots', version='0.1.dev', license='BSD', description=...
8a5dbb75db80f85cebb7f700d5516e271a4ab1b7
setup.py
setup.py
from setuptools import setup, find_packages with open('README.rst', 'r', encoding='utf-8') as f: long_description = f.read() setup( name='jacquard', version='0.1.0', url='https://github.com/prophile/jacquard', description="Split testing server", long_description=long_description, author=...
from setuptools import setup, find_packages with open('README.rst', 'r', encoding='utf-8') as f: long_description = f.read() setup( name='jacquard', version='0.1.0', url='https://github.com/prophile/jacquard', description="Split testing server", long_description=long_description, author=...
Add package resources for subcommands
Add package resources for subcommands
Python
mit
prophile/jacquard,prophile/jacquard
from setuptools import setup, find_packages with open('README.rst', 'r', encoding='utf-8') as f: long_description = f.read() setup( name='jacquard', version='0.1.0', url='https://github.com/prophile/jacquard', description="Split testing server", long_description=long_description, author=...
from setuptools import setup, find_packages with open('README.rst', 'r', encoding='utf-8') as f: long_description = f.read() setup( name='jacquard', version='0.1.0', url='https://github.com/prophile/jacquard', description="Split testing server", long_description=long_description, author=...
<commit_before>from setuptools import setup, find_packages with open('README.rst', 'r', encoding='utf-8') as f: long_description = f.read() setup( name='jacquard', version='0.1.0', url='https://github.com/prophile/jacquard', description="Split testing server", long_description=long_descriptio...
from setuptools import setup, find_packages with open('README.rst', 'r', encoding='utf-8') as f: long_description = f.read() setup( name='jacquard', version='0.1.0', url='https://github.com/prophile/jacquard', description="Split testing server", long_description=long_description, author=...
from setuptools import setup, find_packages with open('README.rst', 'r', encoding='utf-8') as f: long_description = f.read() setup( name='jacquard', version='0.1.0', url='https://github.com/prophile/jacquard', description="Split testing server", long_description=long_description, author=...
<commit_before>from setuptools import setup, find_packages with open('README.rst', 'r', encoding='utf-8') as f: long_description = f.read() setup( name='jacquard', version='0.1.0', url='https://github.com/prophile/jacquard', description="Split testing server", long_description=long_descriptio...
52f2208570500c675f89376a1b1e1181bceefa51
setup.py
setup.py
import os from setuptools import setup def read(fname1, fname2): if os.path.exists(fname1): fname = fname1 else: fname = fname2 return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name = "django-pubsubpull", version = "0.0.0.5", author = "Kirit Saelensmind...
import os from setuptools import setup def read(fname1, fname2): if os.path.exists(fname1): fname = fname1 else: fname = fname2 return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name = "django-pubsubpull", version = "0.0.0.6", author = "Kirit Saelensmind...
Use package_data for data files.
Use package_data for data files.
Python
mit
KayEss/django-pubsubpull,KayEss/django-pubsubpull,KayEss/django-pubsubpull
import os from setuptools import setup def read(fname1, fname2): if os.path.exists(fname1): fname = fname1 else: fname = fname2 return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name = "django-pubsubpull", version = "0.0.0.5", author = "Kirit Saelensmind...
import os from setuptools import setup def read(fname1, fname2): if os.path.exists(fname1): fname = fname1 else: fname = fname2 return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name = "django-pubsubpull", version = "0.0.0.6", author = "Kirit Saelensmind...
<commit_before>import os from setuptools import setup def read(fname1, fname2): if os.path.exists(fname1): fname = fname1 else: fname = fname2 return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name = "django-pubsubpull", version = "0.0.0.5", author = "Ki...
import os from setuptools import setup def read(fname1, fname2): if os.path.exists(fname1): fname = fname1 else: fname = fname2 return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name = "django-pubsubpull", version = "0.0.0.6", author = "Kirit Saelensmind...
import os from setuptools import setup def read(fname1, fname2): if os.path.exists(fname1): fname = fname1 else: fname = fname2 return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name = "django-pubsubpull", version = "0.0.0.5", author = "Kirit Saelensmind...
<commit_before>import os from setuptools import setup def read(fname1, fname2): if os.path.exists(fname1): fname = fname1 else: fname = fname2 return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name = "django-pubsubpull", version = "0.0.0.5", author = "Ki...
416963350b881ee13862d92db3bdf3890df41145
setup.py
setup.py
""" ---------------- Flask-Mustache ---------------- `Mustache`__ integration for Flask. __ http://mustache.github.com/ Flask-Mustache adds template helpers and context processors to assist Flask developers with integrating the Mustache library into their development process. """ from setuptools import setup se...
""" ---------------- Flask-Mustache ---------------- `Mustache`__ integration for Flask. __ http://mustache.github.com/ Flask-Mustache adds template helpers and context processors to assist Flask developers with integrating the Mustache library into their development process. """ from setuptools import setup se...
Include *.js and *.jinja files in sdist packages
Include *.js and *.jinja files in sdist packages
Python
bsd-3-clause
bradleywright/flask-mustachejs,bradleywright/flask-mustachejs,bradwright/flask-mustachejs,bradwright/flask-mustachejs
""" ---------------- Flask-Mustache ---------------- `Mustache`__ integration for Flask. __ http://mustache.github.com/ Flask-Mustache adds template helpers and context processors to assist Flask developers with integrating the Mustache library into their development process. """ from setuptools import setup se...
""" ---------------- Flask-Mustache ---------------- `Mustache`__ integration for Flask. __ http://mustache.github.com/ Flask-Mustache adds template helpers and context processors to assist Flask developers with integrating the Mustache library into their development process. """ from setuptools import setup se...
<commit_before>""" ---------------- Flask-Mustache ---------------- `Mustache`__ integration for Flask. __ http://mustache.github.com/ Flask-Mustache adds template helpers and context processors to assist Flask developers with integrating the Mustache library into their development process. """ from setuptools im...
""" ---------------- Flask-Mustache ---------------- `Mustache`__ integration for Flask. __ http://mustache.github.com/ Flask-Mustache adds template helpers and context processors to assist Flask developers with integrating the Mustache library into their development process. """ from setuptools import setup se...
""" ---------------- Flask-Mustache ---------------- `Mustache`__ integration for Flask. __ http://mustache.github.com/ Flask-Mustache adds template helpers and context processors to assist Flask developers with integrating the Mustache library into their development process. """ from setuptools import setup se...
<commit_before>""" ---------------- Flask-Mustache ---------------- `Mustache`__ integration for Flask. __ http://mustache.github.com/ Flask-Mustache adds template helpers and context processors to assist Flask developers with integrating the Mustache library into their development process. """ from setuptools im...
51d2469b8c1b9465ff5a41a3c057acdfabdc6bc4
setup.py
setup.py
from setuptools import setup from timebook import get_version setup( name='timebook', version=get_version(), url='http://bitbucket.org/trevor/timebook/', description='track what you spend time on', author='Trevor Caira', author_email='trevor@caira.com', classifiers=[ 'Development S...
from setuptools import setup from timebook import get_version setup( name='timebook', version=get_version(), url='http://bitbucket.org/trevor/timebook/', description='track what you spend time on', author='Trevor Caira', author_email='trevor@caira.com', classifiers=[ 'Development S...
Update language trove classifier list to include Python 3
Update language trove classifier list to include Python 3 The Python 3.x support is now reasonably well-tested (74% coverage), so this closes #5.
Python
mit
imiric/timebook
from setuptools import setup from timebook import get_version setup( name='timebook', version=get_version(), url='http://bitbucket.org/trevor/timebook/', description='track what you spend time on', author='Trevor Caira', author_email='trevor@caira.com', classifiers=[ 'Development S...
from setuptools import setup from timebook import get_version setup( name='timebook', version=get_version(), url='http://bitbucket.org/trevor/timebook/', description='track what you spend time on', author='Trevor Caira', author_email='trevor@caira.com', classifiers=[ 'Development S...
<commit_before>from setuptools import setup from timebook import get_version setup( name='timebook', version=get_version(), url='http://bitbucket.org/trevor/timebook/', description='track what you spend time on', author='Trevor Caira', author_email='trevor@caira.com', classifiers=[ ...
from setuptools import setup from timebook import get_version setup( name='timebook', version=get_version(), url='http://bitbucket.org/trevor/timebook/', description='track what you spend time on', author='Trevor Caira', author_email='trevor@caira.com', classifiers=[ 'Development S...
from setuptools import setup from timebook import get_version setup( name='timebook', version=get_version(), url='http://bitbucket.org/trevor/timebook/', description='track what you spend time on', author='Trevor Caira', author_email='trevor@caira.com', classifiers=[ 'Development S...
<commit_before>from setuptools import setup from timebook import get_version setup( name='timebook', version=get_version(), url='http://bitbucket.org/trevor/timebook/', description='track what you spend time on', author='Trevor Caira', author_email='trevor@caira.com', classifiers=[ ...
e0f4135b90a3f920db3a14b14b70e0e57df3d717
setup.py
setup.py
## # Copyright (c) 2006-2007 Apple Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
## # Copyright (c) 2006-2007 Apple Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
Build for either python 2 or python 3
Build for either python 2 or python 3
Python
apache-2.0
admiyo/PyKerberos,admiyo/PyKerberos,admiyo/PyKerberos
## # Copyright (c) 2006-2007 Apple Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
## # Copyright (c) 2006-2007 Apple Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
<commit_before>## # Copyright (c) 2006-2007 Apple Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required ...
## # Copyright (c) 2006-2007 Apple Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
## # Copyright (c) 2006-2007 Apple Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
<commit_before>## # Copyright (c) 2006-2007 Apple Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required ...
61fb82beb9fd159fa06bccc9fc0ac55ba3bcaa64
setup.py
setup.py
from setuptools import setup setup( name='qual', version='0.1', description='Calendar stuff', url='http://github.com/jwg4/qual', author='Jack Grahl', author_email='jack.grahl@yahoo.co.uk', license='Apache License 2.0', packages=['qual'], test_suite='nose.collector', tests_requir...
from setuptools import setup setup( name='qual', version='0.1', description='Calendar stuff', url='http://github.com/jwg4/qual', author='Jack Grahl', author_email='jack.grahl@yahoo.co.uk', license='Apache License 2.0', packages=['qual'], test_suite='nose.collector', tests_requir...
Correct name of extras package for hypothesis.
Correct name of extras package for hypothesis.
Python
apache-2.0
jwg4/qual,jwg4/calexicon
from setuptools import setup setup( name='qual', version='0.1', description='Calendar stuff', url='http://github.com/jwg4/qual', author='Jack Grahl', author_email='jack.grahl@yahoo.co.uk', license='Apache License 2.0', packages=['qual'], test_suite='nose.collector', tests_requir...
from setuptools import setup setup( name='qual', version='0.1', description='Calendar stuff', url='http://github.com/jwg4/qual', author='Jack Grahl', author_email='jack.grahl@yahoo.co.uk', license='Apache License 2.0', packages=['qual'], test_suite='nose.collector', tests_requir...
<commit_before>from setuptools import setup setup( name='qual', version='0.1', description='Calendar stuff', url='http://github.com/jwg4/qual', author='Jack Grahl', author_email='jack.grahl@yahoo.co.uk', license='Apache License 2.0', packages=['qual'], test_suite='nose.collector', ...
from setuptools import setup setup( name='qual', version='0.1', description='Calendar stuff', url='http://github.com/jwg4/qual', author='Jack Grahl', author_email='jack.grahl@yahoo.co.uk', license='Apache License 2.0', packages=['qual'], test_suite='nose.collector', tests_requir...
from setuptools import setup setup( name='qual', version='0.1', description='Calendar stuff', url='http://github.com/jwg4/qual', author='Jack Grahl', author_email='jack.grahl@yahoo.co.uk', license='Apache License 2.0', packages=['qual'], test_suite='nose.collector', tests_requir...
<commit_before>from setuptools import setup setup( name='qual', version='0.1', description='Calendar stuff', url='http://github.com/jwg4/qual', author='Jack Grahl', author_email='jack.grahl@yahoo.co.uk', license='Apache License 2.0', packages=['qual'], test_suite='nose.collector', ...
3138c70b9f9d8c44d6e80396afcbc5524b98cb58
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup setup(name = "MarkdownPP", description = "Markdown preprocessor", version = "1.0", author = "John Reese", author_email = "john@noswap.com", url = "https://github.com/jreese/markdown-pp", classifiers=['Licen...
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup from os import path import shutil if path.isfile('README.md'): shutil.copyfile('README.md', 'README') setup(name = "MarkdownPP", description = "Markdown preprocessor", version = "1.0", author = "John Reese", autho...
Copy readme.md to readme when building
Copy readme.md to readme when building
Python
mit
jreese/markdown-pp
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup setup(name = "MarkdownPP", description = "Markdown preprocessor", version = "1.0", author = "John Reese", author_email = "john@noswap.com", url = "https://github.com/jreese/markdown-pp", classifiers=['Licen...
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup from os import path import shutil if path.isfile('README.md'): shutil.copyfile('README.md', 'README') setup(name = "MarkdownPP", description = "Markdown preprocessor", version = "1.0", author = "John Reese", autho...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup setup(name = "MarkdownPP", description = "Markdown preprocessor", version = "1.0", author = "John Reese", author_email = "john@noswap.com", url = "https://github.com/jreese/markdown-pp", clas...
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup from os import path import shutil if path.isfile('README.md'): shutil.copyfile('README.md', 'README') setup(name = "MarkdownPP", description = "Markdown preprocessor", version = "1.0", author = "John Reese", autho...
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup setup(name = "MarkdownPP", description = "Markdown preprocessor", version = "1.0", author = "John Reese", author_email = "john@noswap.com", url = "https://github.com/jreese/markdown-pp", classifiers=['Licen...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup setup(name = "MarkdownPP", description = "Markdown preprocessor", version = "1.0", author = "John Reese", author_email = "john@noswap.com", url = "https://github.com/jreese/markdown-pp", clas...
aba23cf821489971d9ec13c8fc4cc1dfbaba686d
setup.py
setup.py
from os.path import abspath, dirname, join, normpath from setuptools import setup setup( # Basic package information: name='django-heroku-memcacheify', version='1.0.0', py_modules=('memcacheify',), # Packaging options: zip_safe=False, include_package_data=True, # Package dependenci...
from os.path import abspath, dirname, join, normpath from setuptools import setup setup( # Basic package information: name='django-heroku-memcacheify', version='1.0.0', py_modules=('memcacheify',), # Packaging options: zip_safe=False, include_package_data=True, # Package dependenci...
Fix PyPI README.MD showing problem.
Fix PyPI README.MD showing problem. There is a problem in the project's pypi page. To fix this I added the following line in the setup.py file: ```python long_description_content_type='text/markdown' ```
Python
unlicense
rdegges/django-heroku-memcacheify
from os.path import abspath, dirname, join, normpath from setuptools import setup setup( # Basic package information: name='django-heroku-memcacheify', version='1.0.0', py_modules=('memcacheify',), # Packaging options: zip_safe=False, include_package_data=True, # Package dependenci...
from os.path import abspath, dirname, join, normpath from setuptools import setup setup( # Basic package information: name='django-heroku-memcacheify', version='1.0.0', py_modules=('memcacheify',), # Packaging options: zip_safe=False, include_package_data=True, # Package dependenci...
<commit_before>from os.path import abspath, dirname, join, normpath from setuptools import setup setup( # Basic package information: name='django-heroku-memcacheify', version='1.0.0', py_modules=('memcacheify',), # Packaging options: zip_safe=False, include_package_data=True, # Pac...
from os.path import abspath, dirname, join, normpath from setuptools import setup setup( # Basic package information: name='django-heroku-memcacheify', version='1.0.0', py_modules=('memcacheify',), # Packaging options: zip_safe=False, include_package_data=True, # Package dependenci...
from os.path import abspath, dirname, join, normpath from setuptools import setup setup( # Basic package information: name='django-heroku-memcacheify', version='1.0.0', py_modules=('memcacheify',), # Packaging options: zip_safe=False, include_package_data=True, # Package dependenci...
<commit_before>from os.path import abspath, dirname, join, normpath from setuptools import setup setup( # Basic package information: name='django-heroku-memcacheify', version='1.0.0', py_modules=('memcacheify',), # Packaging options: zip_safe=False, include_package_data=True, # Pac...
166fd5d9f1e0ee7fc3cb494addb5564452e6aa7b
setup.py
setup.py
import setuptools setuptools.setup( name="Mongothon", version="0.7.13", author="Tom Leach", author_email="tom@gc.io", description="A MongoDB object-document mapping layer for Python", license="BSD", keywords="mongo mongodb database pymongo odm validation", url="http://github.com/gamech...
import setuptools setuptools.setup( name="Mongothon", version="0.7.14", author="Tom Leach", author_email="tom@gc.io", description="A MongoDB object-document mapping layer for Python", license="BSD", keywords="mongo mongodb database pymongo odm validation", url="http://github.com/gamech...
Use version 0.2.3 of schemer and bump the version number to 0.7.14 in the process
Use version 0.2.3 of schemer and bump the version number to 0.7.14 in the process
Python
mit
gamechanger/mongothon
import setuptools setuptools.setup( name="Mongothon", version="0.7.13", author="Tom Leach", author_email="tom@gc.io", description="A MongoDB object-document mapping layer for Python", license="BSD", keywords="mongo mongodb database pymongo odm validation", url="http://github.com/gamech...
import setuptools setuptools.setup( name="Mongothon", version="0.7.14", author="Tom Leach", author_email="tom@gc.io", description="A MongoDB object-document mapping layer for Python", license="BSD", keywords="mongo mongodb database pymongo odm validation", url="http://github.com/gamech...
<commit_before>import setuptools setuptools.setup( name="Mongothon", version="0.7.13", author="Tom Leach", author_email="tom@gc.io", description="A MongoDB object-document mapping layer for Python", license="BSD", keywords="mongo mongodb database pymongo odm validation", url="http://gi...
import setuptools setuptools.setup( name="Mongothon", version="0.7.14", author="Tom Leach", author_email="tom@gc.io", description="A MongoDB object-document mapping layer for Python", license="BSD", keywords="mongo mongodb database pymongo odm validation", url="http://github.com/gamech...
import setuptools setuptools.setup( name="Mongothon", version="0.7.13", author="Tom Leach", author_email="tom@gc.io", description="A MongoDB object-document mapping layer for Python", license="BSD", keywords="mongo mongodb database pymongo odm validation", url="http://github.com/gamech...
<commit_before>import setuptools setuptools.setup( name="Mongothon", version="0.7.13", author="Tom Leach", author_email="tom@gc.io", description="A MongoDB object-document mapping layer for Python", license="BSD", keywords="mongo mongodb database pymongo odm validation", url="http://gi...
0b255fdec2d4763779a8b07bc043320b9b0236d5
setup.py
setup.py
import re import subprocess from setuptools import setup def _get_git_description(): try: return subprocess.check_output(["git", "describe"]).decode("utf-8").strip() except subprocess.CalledProcessError: return None def get_version(): description = _get_git_description() match = re...
import re import subprocess from setuptools import setup def _get_git_description(): try: return subprocess.check_output(["git", "describe"]).decode("utf-8").strip() except subprocess.CalledProcessError: return None def get_version(): description = _get_git_description() match = re...
Add webargs requirement, and sort requirements.
Add webargs requirement, and sort requirements.
Python
mit
DoWhileGeek/workwork
import re import subprocess from setuptools import setup def _get_git_description(): try: return subprocess.check_output(["git", "describe"]).decode("utf-8").strip() except subprocess.CalledProcessError: return None def get_version(): description = _get_git_description() match = re...
import re import subprocess from setuptools import setup def _get_git_description(): try: return subprocess.check_output(["git", "describe"]).decode("utf-8").strip() except subprocess.CalledProcessError: return None def get_version(): description = _get_git_description() match = re...
<commit_before>import re import subprocess from setuptools import setup def _get_git_description(): try: return subprocess.check_output(["git", "describe"]).decode("utf-8").strip() except subprocess.CalledProcessError: return None def get_version(): description = _get_git_description() ...
import re import subprocess from setuptools import setup def _get_git_description(): try: return subprocess.check_output(["git", "describe"]).decode("utf-8").strip() except subprocess.CalledProcessError: return None def get_version(): description = _get_git_description() match = re...
import re import subprocess from setuptools import setup def _get_git_description(): try: return subprocess.check_output(["git", "describe"]).decode("utf-8").strip() except subprocess.CalledProcessError: return None def get_version(): description = _get_git_description() match = re...
<commit_before>import re import subprocess from setuptools import setup def _get_git_description(): try: return subprocess.check_output(["git", "describe"]).decode("utf-8").strip() except subprocess.CalledProcessError: return None def get_version(): description = _get_git_description() ...
b5a5b0ffbe17b859d07df98853263761bc2877e9
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup, find_packages import keyvaluestore setup( name="django-keyvaluestore", version=keyvaluestore.__version__, url='https://github.com/vikingco/django-keyvaluestore', license='BSD', description="A Key-Value store for Django", long_description=open(...
#!/usr/bin/env python from setuptools import setup, find_packages import keyvaluestore setup( name="django-keyvaluestore", version=keyvaluestore.__version__, url='https://github.com/vikingco/django-keyvaluestore', license='BSD', description="A Key-Value store for Django", long_description=open...
Use function 'findpackages' to collect packages.
Use function 'findpackages' to collect packages.
Python
bsd-3-clause
vikingco/django-keyvaluestore
#!/usr/bin/env python from setuptools import setup, find_packages import keyvaluestore setup( name="django-keyvaluestore", version=keyvaluestore.__version__, url='https://github.com/vikingco/django-keyvaluestore', license='BSD', description="A Key-Value store for Django", long_description=open(...
#!/usr/bin/env python from setuptools import setup, find_packages import keyvaluestore setup( name="django-keyvaluestore", version=keyvaluestore.__version__, url='https://github.com/vikingco/django-keyvaluestore', license='BSD', description="A Key-Value store for Django", long_description=open...
<commit_before>#!/usr/bin/env python from setuptools import setup, find_packages import keyvaluestore setup( name="django-keyvaluestore", version=keyvaluestore.__version__, url='https://github.com/vikingco/django-keyvaluestore', license='BSD', description="A Key-Value store for Django", long_de...
#!/usr/bin/env python from setuptools import setup, find_packages import keyvaluestore setup( name="django-keyvaluestore", version=keyvaluestore.__version__, url='https://github.com/vikingco/django-keyvaluestore', license='BSD', description="A Key-Value store for Django", long_description=open...
#!/usr/bin/env python from setuptools import setup, find_packages import keyvaluestore setup( name="django-keyvaluestore", version=keyvaluestore.__version__, url='https://github.com/vikingco/django-keyvaluestore', license='BSD', description="A Key-Value store for Django", long_description=open(...
<commit_before>#!/usr/bin/env python from setuptools import setup, find_packages import keyvaluestore setup( name="django-keyvaluestore", version=keyvaluestore.__version__, url='https://github.com/vikingco/django-keyvaluestore', license='BSD', description="A Key-Value store for Django", long_de...
5dcec96b7af384f7f753cb2d67d7cbd0c361c504
tests/helpers.py
tests/helpers.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals import json from elasticsearch import ( Elasticsearch, TransportError ) ELASTICSEARCH_URL = "localhost" conn = Elasticsearch(ELASTICSEARCH_URL) def homogeneous(a, b): json.dumps(a).should.equal(json.dumps(b)) def heterogeneous(a,...
# -*- coding: utf-8 -*- from __future__ import unicode_literals import json from elasticsearch import ( Elasticsearch, TransportError ) ELASTICSEARCH_URL = "localhost" conn = Elasticsearch(ELASTICSEARCH_URL) def homogeneous(a, b): json.dumps(a).should.equal(json.dumps(b)) def heterogeneous(a,...
Allow overriding doc type defaults
Allow overriding doc type defaults
Python
mit
Yipit/pyeqs
# -*- coding: utf-8 -*- from __future__ import unicode_literals import json from elasticsearch import ( Elasticsearch, TransportError ) ELASTICSEARCH_URL = "localhost" conn = Elasticsearch(ELASTICSEARCH_URL) def homogeneous(a, b): json.dumps(a).should.equal(json.dumps(b)) def heterogeneous(a,...
# -*- coding: utf-8 -*- from __future__ import unicode_literals import json from elasticsearch import ( Elasticsearch, TransportError ) ELASTICSEARCH_URL = "localhost" conn = Elasticsearch(ELASTICSEARCH_URL) def homogeneous(a, b): json.dumps(a).should.equal(json.dumps(b)) def heterogeneous(a,...
<commit_before># -*- coding: utf-8 -*- from __future__ import unicode_literals import json from elasticsearch import ( Elasticsearch, TransportError ) ELASTICSEARCH_URL = "localhost" conn = Elasticsearch(ELASTICSEARCH_URL) def homogeneous(a, b): json.dumps(a).should.equal(json.dumps(b)) def h...
# -*- coding: utf-8 -*- from __future__ import unicode_literals import json from elasticsearch import ( Elasticsearch, TransportError ) ELASTICSEARCH_URL = "localhost" conn = Elasticsearch(ELASTICSEARCH_URL) def homogeneous(a, b): json.dumps(a).should.equal(json.dumps(b)) def heterogeneous(a,...
# -*- coding: utf-8 -*- from __future__ import unicode_literals import json from elasticsearch import ( Elasticsearch, TransportError ) ELASTICSEARCH_URL = "localhost" conn = Elasticsearch(ELASTICSEARCH_URL) def homogeneous(a, b): json.dumps(a).should.equal(json.dumps(b)) def heterogeneous(a,...
<commit_before># -*- coding: utf-8 -*- from __future__ import unicode_literals import json from elasticsearch import ( Elasticsearch, TransportError ) ELASTICSEARCH_URL = "localhost" conn = Elasticsearch(ELASTICSEARCH_URL) def homogeneous(a, b): json.dumps(a).should.equal(json.dumps(b)) def h...
6b1d3220ef631d8a81504d1c7875d97314eb1826
setup.py
setup.py
from setuptools import setup, find_packages # To use a consistent encoding from codecs import open from os import path here = path.abspath(path.dirname(__file__)) PACKAGES = [ 'lib', 'lib.scripts', 'lib.scripts.biosql', 'lib.scripts.blast', 'lib.scripts.ftp', 'lib.scripts.genbank', 'lib.sc...
# Used: # https://github.com/pypa/sampleproject/blob/master/setup.py # https://github.com/biopython/biopython/blob/master/setup.py from setuptools import setup, find_packages # To use a consistent encoding from codecs import open from os import path here = path.abspath(path.dirname(__file__)) PACKAGES = [ 'lib',...
Develop here. Belongs in top level Orthologs Project.
Develop here. Belongs in top level Orthologs Project.
Python
mit
datasnakes/Datasnakes-Scripts,datasnakes/Datasnakes-Scripts,datasnakes/Datasnakes-Scripts,datasnakes/Datasnakes-Scripts,datasnakes/Datasnakes-Scripts,datasnakes/Datasnakes-Scripts
from setuptools import setup, find_packages # To use a consistent encoding from codecs import open from os import path here = path.abspath(path.dirname(__file__)) PACKAGES = [ 'lib', 'lib.scripts', 'lib.scripts.biosql', 'lib.scripts.blast', 'lib.scripts.ftp', 'lib.scripts.genbank', 'lib.sc...
# Used: # https://github.com/pypa/sampleproject/blob/master/setup.py # https://github.com/biopython/biopython/blob/master/setup.py from setuptools import setup, find_packages # To use a consistent encoding from codecs import open from os import path here = path.abspath(path.dirname(__file__)) PACKAGES = [ 'lib',...
<commit_before> from setuptools import setup, find_packages # To use a consistent encoding from codecs import open from os import path here = path.abspath(path.dirname(__file__)) PACKAGES = [ 'lib', 'lib.scripts', 'lib.scripts.biosql', 'lib.scripts.blast', 'lib.scripts.ftp', 'lib.scripts.genban...
# Used: # https://github.com/pypa/sampleproject/blob/master/setup.py # https://github.com/biopython/biopython/blob/master/setup.py from setuptools import setup, find_packages # To use a consistent encoding from codecs import open from os import path here = path.abspath(path.dirname(__file__)) PACKAGES = [ 'lib',...
from setuptools import setup, find_packages # To use a consistent encoding from codecs import open from os import path here = path.abspath(path.dirname(__file__)) PACKAGES = [ 'lib', 'lib.scripts', 'lib.scripts.biosql', 'lib.scripts.blast', 'lib.scripts.ftp', 'lib.scripts.genbank', 'lib.sc...
<commit_before> from setuptools import setup, find_packages # To use a consistent encoding from codecs import open from os import path here = path.abspath(path.dirname(__file__)) PACKAGES = [ 'lib', 'lib.scripts', 'lib.scripts.biosql', 'lib.scripts.blast', 'lib.scripts.ftp', 'lib.scripts.genban...
a10fb75a45bbb647f8071842773d79101c797529
corehq/project_limits/models.py
corehq/project_limits/models.py
from django.db import models class DynamicRateDefinition(models.Model): key = models.CharField(max_length=512, blank=False, null=False, unique=True, db_index=True) per_week = models.FloatField(default=None, blank=True, null=True) per_day = models.FloatField(default=None, blank=True, null=True) per_hou...
from django.db import models class DynamicRateDefinition(models.Model): key = models.CharField(max_length=512, blank=False, null=False, unique=True, db_index=True) per_week = models.FloatField(default=None, blank=True, null=True) per_day = models.FloatField(default=None, blank=True, null=True) per_hou...
Clear caches on DynamicRateDefinition deletion for completeness
Clear caches on DynamicRateDefinition deletion for completeness and to help with tests
Python
bsd-3-clause
dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq
from django.db import models class DynamicRateDefinition(models.Model): key = models.CharField(max_length=512, blank=False, null=False, unique=True, db_index=True) per_week = models.FloatField(default=None, blank=True, null=True) per_day = models.FloatField(default=None, blank=True, null=True) per_hou...
from django.db import models class DynamicRateDefinition(models.Model): key = models.CharField(max_length=512, blank=False, null=False, unique=True, db_index=True) per_week = models.FloatField(default=None, blank=True, null=True) per_day = models.FloatField(default=None, blank=True, null=True) per_hou...
<commit_before>from django.db import models class DynamicRateDefinition(models.Model): key = models.CharField(max_length=512, blank=False, null=False, unique=True, db_index=True) per_week = models.FloatField(default=None, blank=True, null=True) per_day = models.FloatField(default=None, blank=True, null=Tr...
from django.db import models class DynamicRateDefinition(models.Model): key = models.CharField(max_length=512, blank=False, null=False, unique=True, db_index=True) per_week = models.FloatField(default=None, blank=True, null=True) per_day = models.FloatField(default=None, blank=True, null=True) per_hou...
from django.db import models class DynamicRateDefinition(models.Model): key = models.CharField(max_length=512, blank=False, null=False, unique=True, db_index=True) per_week = models.FloatField(default=None, blank=True, null=True) per_day = models.FloatField(default=None, blank=True, null=True) per_hou...
<commit_before>from django.db import models class DynamicRateDefinition(models.Model): key = models.CharField(max_length=512, blank=False, null=False, unique=True, db_index=True) per_week = models.FloatField(default=None, blank=True, null=True) per_day = models.FloatField(default=None, blank=True, null=Tr...
cacc32895850c7f7bf162c749b93b25b32d98429
setup.py
setup.py
# -*- coding: utf-8 -*- from setuptools import setup, find_packages with open('README.rst') as f: readme = f.read() setup( name='django-session-cleanup', version='2.0.0', description=('A periodic task for removing expired Django sessions ' 'with Celery.'), long_description=readm...
# -*- coding: utf-8 -*- from setuptools import setup, find_packages with open('README.rst') as f: readme = f.read() setup( name='django-session-cleanup', version='2.0.0', description=('A periodic task for removing expired Django sessions ' 'with Celery.'), long_description=readm...
Remove outdated Python 3.4 classifier.
Remove outdated Python 3.4 classifier.
Python
bsd-2-clause
sandersnewmedia/django-session-cleanup
# -*- coding: utf-8 -*- from setuptools import setup, find_packages with open('README.rst') as f: readme = f.read() setup( name='django-session-cleanup', version='2.0.0', description=('A periodic task for removing expired Django sessions ' 'with Celery.'), long_description=readm...
# -*- coding: utf-8 -*- from setuptools import setup, find_packages with open('README.rst') as f: readme = f.read() setup( name='django-session-cleanup', version='2.0.0', description=('A periodic task for removing expired Django sessions ' 'with Celery.'), long_description=readm...
<commit_before># -*- coding: utf-8 -*- from setuptools import setup, find_packages with open('README.rst') as f: readme = f.read() setup( name='django-session-cleanup', version='2.0.0', description=('A periodic task for removing expired Django sessions ' 'with Celery.'), long_de...
# -*- coding: utf-8 -*- from setuptools import setup, find_packages with open('README.rst') as f: readme = f.read() setup( name='django-session-cleanup', version='2.0.0', description=('A periodic task for removing expired Django sessions ' 'with Celery.'), long_description=readm...
# -*- coding: utf-8 -*- from setuptools import setup, find_packages with open('README.rst') as f: readme = f.read() setup( name='django-session-cleanup', version='2.0.0', description=('A periodic task for removing expired Django sessions ' 'with Celery.'), long_description=readm...
<commit_before># -*- coding: utf-8 -*- from setuptools import setup, find_packages with open('README.rst') as f: readme = f.read() setup( name='django-session-cleanup', version='2.0.0', description=('A periodic task for removing expired Django sessions ' 'with Celery.'), long_de...
2b8fca2bebd3acc179ac591908256a8173408cec
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup, find_packages install_requires = [] with open("requirements.txt") as fp: for s in fp: install_requires.append(s.strip()) setup( name="luigi-td", version='0.0.0', description="Luigi integration for Treasure Data", author="Treasure Data, I...
#!/usr/bin/env python from setuptools import setup, find_packages setup( name="luigi-td", version='0.0.0', description="Luigi integration for Treasure Data", author="Treasure Data, Inc.", author_email="support@treasure-data.com", url="http://treasuredata.com/", install_requires=open("requi...
Simplify the definision of install_requires
Simplify the definision of install_requires
Python
apache-2.0
treasure-data/luigi-td
#!/usr/bin/env python from setuptools import setup, find_packages install_requires = [] with open("requirements.txt") as fp: for s in fp: install_requires.append(s.strip()) setup( name="luigi-td", version='0.0.0', description="Luigi integration for Treasure Data", author="Treasure Data, I...
#!/usr/bin/env python from setuptools import setup, find_packages setup( name="luigi-td", version='0.0.0', description="Luigi integration for Treasure Data", author="Treasure Data, Inc.", author_email="support@treasure-data.com", url="http://treasuredata.com/", install_requires=open("requi...
<commit_before>#!/usr/bin/env python from setuptools import setup, find_packages install_requires = [] with open("requirements.txt") as fp: for s in fp: install_requires.append(s.strip()) setup( name="luigi-td", version='0.0.0', description="Luigi integration for Treasure Data", author="T...
#!/usr/bin/env python from setuptools import setup, find_packages setup( name="luigi-td", version='0.0.0', description="Luigi integration for Treasure Data", author="Treasure Data, Inc.", author_email="support@treasure-data.com", url="http://treasuredata.com/", install_requires=open("requi...
#!/usr/bin/env python from setuptools import setup, find_packages install_requires = [] with open("requirements.txt") as fp: for s in fp: install_requires.append(s.strip()) setup( name="luigi-td", version='0.0.0', description="Luigi integration for Treasure Data", author="Treasure Data, I...
<commit_before>#!/usr/bin/env python from setuptools import setup, find_packages install_requires = [] with open("requirements.txt") as fp: for s in fp: install_requires.append(s.strip()) setup( name="luigi-td", version='0.0.0', description="Luigi integration for Treasure Data", author="T...
0759900db9530d2bd2d36f74a5381c48f801b76a
setup.py
setup.py
import os from setuptools import setup from withtool import __version__ def read(fname): path = os.path.join(os.path.dirname(__file__), fname) with open(path, encoding='utf-8') as f: return f.read() setup( name='with', version=__version__, description='A shell context manager', lon...
import os from setuptools import setup from withtool import __version__ def read(fname): path = os.path.join(os.path.dirname(__file__), fname) with open(path, encoding='utf-8') as f: return f.read() setup( name='with', version=__version__, description='A shell context manager', lon...
Upgrade dependency appdirs to ==1.4.1
Upgrade dependency appdirs to ==1.4.1
Python
mit
renanivo/with
import os from setuptools import setup from withtool import __version__ def read(fname): path = os.path.join(os.path.dirname(__file__), fname) with open(path, encoding='utf-8') as f: return f.read() setup( name='with', version=__version__, description='A shell context manager', lon...
import os from setuptools import setup from withtool import __version__ def read(fname): path = os.path.join(os.path.dirname(__file__), fname) with open(path, encoding='utf-8') as f: return f.read() setup( name='with', version=__version__, description='A shell context manager', lon...
<commit_before>import os from setuptools import setup from withtool import __version__ def read(fname): path = os.path.join(os.path.dirname(__file__), fname) with open(path, encoding='utf-8') as f: return f.read() setup( name='with', version=__version__, description='A shell context ma...
import os from setuptools import setup from withtool import __version__ def read(fname): path = os.path.join(os.path.dirname(__file__), fname) with open(path, encoding='utf-8') as f: return f.read() setup( name='with', version=__version__, description='A shell context manager', lon...
import os from setuptools import setup from withtool import __version__ def read(fname): path = os.path.join(os.path.dirname(__file__), fname) with open(path, encoding='utf-8') as f: return f.read() setup( name='with', version=__version__, description='A shell context manager', lon...
<commit_before>import os from setuptools import setup from withtool import __version__ def read(fname): path = os.path.join(os.path.dirname(__file__), fname) with open(path, encoding='utf-8') as f: return f.read() setup( name='with', version=__version__, description='A shell context ma...
6a71652e3cfdec22307b05539914aa6325cb4d53
setup.py
setup.py
#!/usr/bin/env python from __future__ import with_statement import sys from setuptools import setup, find_packages long_description = """ Pypimirror - A Pypi mirror script that uses threading and requests """ install_requires = [ 'beautifulsoup4==4.4.1', 'requests==2.9.1', ] setup( name='pypimirror', ...
#!/usr/bin/env python from __future__ import with_statement import sys from setuptools import setup, find_packages long_description = """ Pypimirror - A Pypi mirror script that uses threading and requests """ install_requires = [ 'beautifulsoup4==4.4.1', 'requests==2.9.1', ] setup( name='pypimirror-si...
Change project name to avoid pypi conflict
Change project name to avoid pypi conflict
Python
mit
wilypomegranate/pypimirror
#!/usr/bin/env python from __future__ import with_statement import sys from setuptools import setup, find_packages long_description = """ Pypimirror - A Pypi mirror script that uses threading and requests """ install_requires = [ 'beautifulsoup4==4.4.1', 'requests==2.9.1', ] setup( name='pypimirror', ...
#!/usr/bin/env python from __future__ import with_statement import sys from setuptools import setup, find_packages long_description = """ Pypimirror - A Pypi mirror script that uses threading and requests """ install_requires = [ 'beautifulsoup4==4.4.1', 'requests==2.9.1', ] setup( name='pypimirror-si...
<commit_before>#!/usr/bin/env python from __future__ import with_statement import sys from setuptools import setup, find_packages long_description = """ Pypimirror - A Pypi mirror script that uses threading and requests """ install_requires = [ 'beautifulsoup4==4.4.1', 'requests==2.9.1', ] setup( name...
#!/usr/bin/env python from __future__ import with_statement import sys from setuptools import setup, find_packages long_description = """ Pypimirror - A Pypi mirror script that uses threading and requests """ install_requires = [ 'beautifulsoup4==4.4.1', 'requests==2.9.1', ] setup( name='pypimirror-si...
#!/usr/bin/env python from __future__ import with_statement import sys from setuptools import setup, find_packages long_description = """ Pypimirror - A Pypi mirror script that uses threading and requests """ install_requires = [ 'beautifulsoup4==4.4.1', 'requests==2.9.1', ] setup( name='pypimirror', ...
<commit_before>#!/usr/bin/env python from __future__ import with_statement import sys from setuptools import setup, find_packages long_description = """ Pypimirror - A Pypi mirror script that uses threading and requests """ install_requires = [ 'beautifulsoup4==4.4.1', 'requests==2.9.1', ] setup( name...
dd98a76ac16888051e55b98cb26e28c3afae5842
setup.py
setup.py
from setuptools import setup, find_packages from sys import version_info def install_requires(): requires = [ 'traitlets>=4.1', 'six>=1.9.0', 'pyyaml>=3.11', ] if (version_info.major, version_info.minor) < (3, 4): requires.append('singledispatch>=3.4.0') return requires...
from setuptools import setup, find_packages from sys import version_info def install_requires(): requires = [ 'traitlets>=4.1', 'six>=1.9.0', 'pyyaml>=3.11', ] if (version_info.major, version_info.minor) < (3, 4): requires.append('singledispatch>=3.4.0') return requires...
Tag 0.2 for correct org.
BUILD: Tag 0.2 for correct org.
Python
apache-2.0
quantopian/serializable-traitlets
from setuptools import setup, find_packages from sys import version_info def install_requires(): requires = [ 'traitlets>=4.1', 'six>=1.9.0', 'pyyaml>=3.11', ] if (version_info.major, version_info.minor) < (3, 4): requires.append('singledispatch>=3.4.0') return requires...
from setuptools import setup, find_packages from sys import version_info def install_requires(): requires = [ 'traitlets>=4.1', 'six>=1.9.0', 'pyyaml>=3.11', ] if (version_info.major, version_info.minor) < (3, 4): requires.append('singledispatch>=3.4.0') return requires...
<commit_before>from setuptools import setup, find_packages from sys import version_info def install_requires(): requires = [ 'traitlets>=4.1', 'six>=1.9.0', 'pyyaml>=3.11', ] if (version_info.major, version_info.minor) < (3, 4): requires.append('singledispatch>=3.4.0') ...
from setuptools import setup, find_packages from sys import version_info def install_requires(): requires = [ 'traitlets>=4.1', 'six>=1.9.0', 'pyyaml>=3.11', ] if (version_info.major, version_info.minor) < (3, 4): requires.append('singledispatch>=3.4.0') return requires...
from setuptools import setup, find_packages from sys import version_info def install_requires(): requires = [ 'traitlets>=4.1', 'six>=1.9.0', 'pyyaml>=3.11', ] if (version_info.major, version_info.minor) < (3, 4): requires.append('singledispatch>=3.4.0') return requires...
<commit_before>from setuptools import setup, find_packages from sys import version_info def install_requires(): requires = [ 'traitlets>=4.1', 'six>=1.9.0', 'pyyaml>=3.11', ] if (version_info.major, version_info.minor) < (3, 4): requires.append('singledispatch>=3.4.0') ...
ab9d6dee8139c5fb5a3d98f41ff404e5e1df774c
setup.py
setup.py
# -*- encoding: utf8 -*- from setuptools import setup, find_packages import os setup( name = "python-redis-lock", version = "0.1.1", url = 'https://github.com/ionelmc/python-redis-lock', download_url = '', license = 'BSD', description = "Lock context manager implemented via redis SETNX/BLPOP."...
# -*- encoding: utf8 -*- from setuptools import setup, find_packages import os setup( name = "python-redis-lock", version = "0.1.1", url = 'https://github.com/ionelmc/python-redis-lock', download_url = '', license = 'BSD', description = "Lock context manager implemented via redis SETNX/BLPOP."...
Allow using redis-py 2.7.4 (lowest revision with set keyword arguments).
Allow using redis-py 2.7.4 (lowest revision with set keyword arguments).
Python
bsd-2-clause
buildingenergy/python-redis-lock,ionelmc/python-redis-lock,ByteInternet/python-redis-lock,zoni/python-redis-lock,victor-torres/python-redis-lock
# -*- encoding: utf8 -*- from setuptools import setup, find_packages import os setup( name = "python-redis-lock", version = "0.1.1", url = 'https://github.com/ionelmc/python-redis-lock', download_url = '', license = 'BSD', description = "Lock context manager implemented via redis SETNX/BLPOP."...
# -*- encoding: utf8 -*- from setuptools import setup, find_packages import os setup( name = "python-redis-lock", version = "0.1.1", url = 'https://github.com/ionelmc/python-redis-lock', download_url = '', license = 'BSD', description = "Lock context manager implemented via redis SETNX/BLPOP."...
<commit_before># -*- encoding: utf8 -*- from setuptools import setup, find_packages import os setup( name = "python-redis-lock", version = "0.1.1", url = 'https://github.com/ionelmc/python-redis-lock', download_url = '', license = 'BSD', description = "Lock context manager implemented via redi...
# -*- encoding: utf8 -*- from setuptools import setup, find_packages import os setup( name = "python-redis-lock", version = "0.1.1", url = 'https://github.com/ionelmc/python-redis-lock', download_url = '', license = 'BSD', description = "Lock context manager implemented via redis SETNX/BLPOP."...
# -*- encoding: utf8 -*- from setuptools import setup, find_packages import os setup( name = "python-redis-lock", version = "0.1.1", url = 'https://github.com/ionelmc/python-redis-lock', download_url = '', license = 'BSD', description = "Lock context manager implemented via redis SETNX/BLPOP."...
<commit_before># -*- encoding: utf8 -*- from setuptools import setup, find_packages import os setup( name = "python-redis-lock", version = "0.1.1", url = 'https://github.com/ionelmc/python-redis-lock', download_url = '', license = 'BSD', description = "Lock context manager implemented via redi...
500f2a5965fc170a142e679b4909478ed3bc3b36
setup.py
setup.py
from setuptools import setup, find_packages setup( name = 'CorrelatedVariants', version = '0.1.0', author = 'Pacific Biosciences', author_email = 'devnet@pacificbiosciences.com', license = open('LICENSE.txt').read(), packages = find_packages('.'), package_dir = {'':'.'}, zip_safe = Fals...
from setuptools import setup, find_packages setup( name = 'CorrelatedVariants', version = '0.1.0', author = 'Pacific Biosciences', author_email = 'devnet@pacificbiosciences.com', license = open('LICENSE.txt').read(), packages = find_packages('.'), package_dir = {'':'.'}, zip_safe = Fals...
Add undeclared dependency on GenomicConsensus
Add undeclared dependency on GenomicConsensus
Python
bsd-3-clause
afif-elghraoui/CorrelatedVariants
from setuptools import setup, find_packages setup( name = 'CorrelatedVariants', version = '0.1.0', author = 'Pacific Biosciences', author_email = 'devnet@pacificbiosciences.com', license = open('LICENSE.txt').read(), packages = find_packages('.'), package_dir = {'':'.'}, zip_safe = Fals...
from setuptools import setup, find_packages setup( name = 'CorrelatedVariants', version = '0.1.0', author = 'Pacific Biosciences', author_email = 'devnet@pacificbiosciences.com', license = open('LICENSE.txt').read(), packages = find_packages('.'), package_dir = {'':'.'}, zip_safe = Fals...
<commit_before>from setuptools import setup, find_packages setup( name = 'CorrelatedVariants', version = '0.1.0', author = 'Pacific Biosciences', author_email = 'devnet@pacificbiosciences.com', license = open('LICENSE.txt').read(), packages = find_packages('.'), package_dir = {'':'.'}, ...
from setuptools import setup, find_packages setup( name = 'CorrelatedVariants', version = '0.1.0', author = 'Pacific Biosciences', author_email = 'devnet@pacificbiosciences.com', license = open('LICENSE.txt').read(), packages = find_packages('.'), package_dir = {'':'.'}, zip_safe = Fals...
from setuptools import setup, find_packages setup( name = 'CorrelatedVariants', version = '0.1.0', author = 'Pacific Biosciences', author_email = 'devnet@pacificbiosciences.com', license = open('LICENSE.txt').read(), packages = find_packages('.'), package_dir = {'':'.'}, zip_safe = Fals...
<commit_before>from setuptools import setup, find_packages setup( name = 'CorrelatedVariants', version = '0.1.0', author = 'Pacific Biosciences', author_email = 'devnet@pacificbiosciences.com', license = open('LICENSE.txt').read(), packages = find_packages('.'), package_dir = {'':'.'}, ...
27d86d856a1a9b78bcfe4d399f38e2440bb7dccf
setup.py
setup.py
import setuptools def content_of(fpath): with open(fpath, 'r') as fd: return fd.read() setuptools.setup( name='tox-battery', description='Additional functionality for tox', long_description=content_of("README.rst"), license='http://opensource.org/licenses/MIT', version='0.0.1', a...
import setuptools def content_of(fpath): with open(fpath, 'r') as fd: return fd.read() setuptools.setup( name='tox-battery', description='Additional functionality for tox', long_description=content_of("README.rst"), license='http://opensource.org/licenses/MIT', version='0.0.1', a...
Add missing project URL to the project meta
Add missing project URL to the project meta
Python
mit
signalpillar/tox-battery
import setuptools def content_of(fpath): with open(fpath, 'r') as fd: return fd.read() setuptools.setup( name='tox-battery', description='Additional functionality for tox', long_description=content_of("README.rst"), license='http://opensource.org/licenses/MIT', version='0.0.1', a...
import setuptools def content_of(fpath): with open(fpath, 'r') as fd: return fd.read() setuptools.setup( name='tox-battery', description='Additional functionality for tox', long_description=content_of("README.rst"), license='http://opensource.org/licenses/MIT', version='0.0.1', a...
<commit_before>import setuptools def content_of(fpath): with open(fpath, 'r') as fd: return fd.read() setuptools.setup( name='tox-battery', description='Additional functionality for tox', long_description=content_of("README.rst"), license='http://opensource.org/licenses/MIT', version...
import setuptools def content_of(fpath): with open(fpath, 'r') as fd: return fd.read() setuptools.setup( name='tox-battery', description='Additional functionality for tox', long_description=content_of("README.rst"), license='http://opensource.org/licenses/MIT', version='0.0.1', a...
import setuptools def content_of(fpath): with open(fpath, 'r') as fd: return fd.read() setuptools.setup( name='tox-battery', description='Additional functionality for tox', long_description=content_of("README.rst"), license='http://opensource.org/licenses/MIT', version='0.0.1', a...
<commit_before>import setuptools def content_of(fpath): with open(fpath, 'r') as fd: return fd.read() setuptools.setup( name='tox-battery', description='Additional functionality for tox', long_description=content_of("README.rst"), license='http://opensource.org/licenses/MIT', version...
56a520fce1f60daaa0bc3cda33c1d32c8524865b
setup.py
setup.py
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. from setuptools import setup, find_packages requires = ['cornice', 'mozsvc', 'powerhose', 'circus', 'wimms', 'PyBrowser...
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. from setuptools import setup, find_packages requires = ['cornice', 'mozsvc', 'powerhose', 'circus', 'wimms', 'PyBrowser...
Add third place in version number, why not
Add third place in version number, why not
Python
mpl-2.0
mostlygeek/tokenserver,mozilla-services/tokenserver,mostlygeek/tokenserver,mozilla-services/tokenserver
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. from setuptools import setup, find_packages requires = ['cornice', 'mozsvc', 'powerhose', 'circus', 'wimms', 'PyBrowser...
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. from setuptools import setup, find_packages requires = ['cornice', 'mozsvc', 'powerhose', 'circus', 'wimms', 'PyBrowser...
<commit_before># This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. from setuptools import setup, find_packages requires = ['cornice', 'mozsvc', 'powerhose', 'circus', 'wim...
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. from setuptools import setup, find_packages requires = ['cornice', 'mozsvc', 'powerhose', 'circus', 'wimms', 'PyBrowser...
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. from setuptools import setup, find_packages requires = ['cornice', 'mozsvc', 'powerhose', 'circus', 'wimms', 'PyBrowser...
<commit_before># This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. from setuptools import setup, find_packages requires = ['cornice', 'mozsvc', 'powerhose', 'circus', 'wim...
f235b4effc0baba197b4ab24a23126c40ba27377
todo/__init__.py
todo/__init__.py
""" A multi-user, multi-group task management and assignment system for Django. """ __version__ = '1.6' __author__ = 'Scot Hacker' __email__ = 'shacker@birdhouse.org' __url__ = 'https://github.com/shacker/django-todo' __license__ = 'BSD License'
""" A multi-user, multi-group task management and assignment system for Django. """ __version__ = '1.6.1' __author__ = 'Scot Hacker' __email__ = 'shacker@birdhouse.org' __url__ = 'https://github.com/shacker/django-todo' __license__ = 'BSD License'
Bump version for bug fixes
Bump version for bug fixes
Python
bsd-3-clause
shacker/django-todo,shacker/django-todo,shacker/django-todo
""" A multi-user, multi-group task management and assignment system for Django. """ __version__ = '1.6' __author__ = 'Scot Hacker' __email__ = 'shacker@birdhouse.org' __url__ = 'https://github.com/shacker/django-todo' __license__ = 'BSD License' Bump version for bug fixes
""" A multi-user, multi-group task management and assignment system for Django. """ __version__ = '1.6.1' __author__ = 'Scot Hacker' __email__ = 'shacker@birdhouse.org' __url__ = 'https://github.com/shacker/django-todo' __license__ = 'BSD License'
<commit_before>""" A multi-user, multi-group task management and assignment system for Django. """ __version__ = '1.6' __author__ = 'Scot Hacker' __email__ = 'shacker@birdhouse.org' __url__ = 'https://github.com/shacker/django-todo' __license__ = 'BSD License' <commit_msg>Bump version for bug fixes<commit_after>
""" A multi-user, multi-group task management and assignment system for Django. """ __version__ = '1.6.1' __author__ = 'Scot Hacker' __email__ = 'shacker@birdhouse.org' __url__ = 'https://github.com/shacker/django-todo' __license__ = 'BSD License'
""" A multi-user, multi-group task management and assignment system for Django. """ __version__ = '1.6' __author__ = 'Scot Hacker' __email__ = 'shacker@birdhouse.org' __url__ = 'https://github.com/shacker/django-todo' __license__ = 'BSD License' Bump version for bug fixes""" A multi-user, multi-group task management ...
<commit_before>""" A multi-user, multi-group task management and assignment system for Django. """ __version__ = '1.6' __author__ = 'Scot Hacker' __email__ = 'shacker@birdhouse.org' __url__ = 'https://github.com/shacker/django-todo' __license__ = 'BSD License' <commit_msg>Bump version for bug fixes<commit_after>""" A...
2a77f5e9a2bcce6b11c21f40574f73cad133c4b8
slack.py
slack.py
import json from slackipycore import invite, get_team_info from slackipycore import (AlreadyInTeam, InvalidInviteeEmail, InvalidAuthToken, AlreadyInvited, APIRequestError) from flask import current_app def invite_user(email): api_token = current_app.config['SLACK_API_TOKEN'] team_id ...
import json from slackipycore import invite, get_team_info from slackipycore import (AlreadyInTeam, InvalidInviteeEmail, InvalidAuthToken, AlreadyInvited, APIRequestError) from flask import current_app def invite_user(email): api_token = current_app.config['SLACK_API_TOKEN'] team_id ...
Fix return statement for `invite`
Fix return statement for `invite`
Python
mit
avinassh/slackipy,avinassh/slackipy,avinassh/slackipy
import json from slackipycore import invite, get_team_info from slackipycore import (AlreadyInTeam, InvalidInviteeEmail, InvalidAuthToken, AlreadyInvited, APIRequestError) from flask import current_app def invite_user(email): api_token = current_app.config['SLACK_API_TOKEN'] team_id ...
import json from slackipycore import invite, get_team_info from slackipycore import (AlreadyInTeam, InvalidInviteeEmail, InvalidAuthToken, AlreadyInvited, APIRequestError) from flask import current_app def invite_user(email): api_token = current_app.config['SLACK_API_TOKEN'] team_id ...
<commit_before>import json from slackipycore import invite, get_team_info from slackipycore import (AlreadyInTeam, InvalidInviteeEmail, InvalidAuthToken, AlreadyInvited, APIRequestError) from flask import current_app def invite_user(email): api_token = current_app.config['SLACK_API_TOKEN...
import json from slackipycore import invite, get_team_info from slackipycore import (AlreadyInTeam, InvalidInviteeEmail, InvalidAuthToken, AlreadyInvited, APIRequestError) from flask import current_app def invite_user(email): api_token = current_app.config['SLACK_API_TOKEN'] team_id ...
import json from slackipycore import invite, get_team_info from slackipycore import (AlreadyInTeam, InvalidInviteeEmail, InvalidAuthToken, AlreadyInvited, APIRequestError) from flask import current_app def invite_user(email): api_token = current_app.config['SLACK_API_TOKEN'] team_id ...
<commit_before>import json from slackipycore import invite, get_team_info from slackipycore import (AlreadyInTeam, InvalidInviteeEmail, InvalidAuthToken, AlreadyInvited, APIRequestError) from flask import current_app def invite_user(email): api_token = current_app.config['SLACK_API_TOKEN...
603f2204327c5cac8dbae0a567676465e1ab0f70
data/settings.py
data/settings.py
import os PROJECT_ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': os.path.join(PROJECT_ROOT, 'operations.db'), } } INSTALLED_APPS = ( 'data', ) SECRET_KEY = '63cFWu$$lhT3bVP9U1k1Iv@Jo02SuM' LOG...
import os PROJECT_ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': os.path.join(PROJECT_ROOT, 'operations.db'), } } INSTALLED_APPS = ( 'data', ) SECRET_KEY = '63cFWu$$lhT3bVP9U1k1Iv@Jo02SuM' LOG...
Set MIDDLEWARE_CLASSES to empty list
Set MIDDLEWARE_CLASSES to empty list
Python
bsd-3-clause
giantas/sorter,giantas/sorter
import os PROJECT_ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': os.path.join(PROJECT_ROOT, 'operations.db'), } } INSTALLED_APPS = ( 'data', ) SECRET_KEY = '63cFWu$$lhT3bVP9U1k1Iv@Jo02SuM' LOG...
import os PROJECT_ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': os.path.join(PROJECT_ROOT, 'operations.db'), } } INSTALLED_APPS = ( 'data', ) SECRET_KEY = '63cFWu$$lhT3bVP9U1k1Iv@Jo02SuM' LOG...
<commit_before>import os PROJECT_ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': os.path.join(PROJECT_ROOT, 'operations.db'), } } INSTALLED_APPS = ( 'data', ) SECRET_KEY = '63cFWu$$lhT3bVP9U1k1I...
import os PROJECT_ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': os.path.join(PROJECT_ROOT, 'operations.db'), } } INSTALLED_APPS = ( 'data', ) SECRET_KEY = '63cFWu$$lhT3bVP9U1k1Iv@Jo02SuM' LOG...
import os PROJECT_ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': os.path.join(PROJECT_ROOT, 'operations.db'), } } INSTALLED_APPS = ( 'data', ) SECRET_KEY = '63cFWu$$lhT3bVP9U1k1Iv@Jo02SuM' LOG...
<commit_before>import os PROJECT_ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': os.path.join(PROJECT_ROOT, 'operations.db'), } } INSTALLED_APPS = ( 'data', ) SECRET_KEY = '63cFWu$$lhT3bVP9U1k1I...
f04b85d6536cdfcf3d51e237bde7c2e63a5c2946
server/server.py
server/server.py
import SimpleHTTPServer import SocketServer class KcaaHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): def do_HEAD(self): # Note: HTTP request handlers are not new-style classes. # super() cannot be used. SimpleHTTPServer.SimpleHTTPRequestHandler.do_HEAD(self) def do_GE...
import SimpleHTTPServer import SocketServer class KcaaHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): CLIENT_PREFIX = '/client/' def do_HEAD(self): # Note: HTTP request handlers are not new-style classes. # super() cannot be used. if self.rewrite_to_client_path(): ...
Handle only /client requests to file serving.
Handle only /client requests to file serving.
Python
apache-2.0
kcaa/kcaa,kcaa/kcaa,kcaa/kcaa,kcaa/kcaa
import SimpleHTTPServer import SocketServer class KcaaHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): def do_HEAD(self): # Note: HTTP request handlers are not new-style classes. # super() cannot be used. SimpleHTTPServer.SimpleHTTPRequestHandler.do_HEAD(self) def do_GE...
import SimpleHTTPServer import SocketServer class KcaaHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): CLIENT_PREFIX = '/client/' def do_HEAD(self): # Note: HTTP request handlers are not new-style classes. # super() cannot be used. if self.rewrite_to_client_path(): ...
<commit_before>import SimpleHTTPServer import SocketServer class KcaaHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): def do_HEAD(self): # Note: HTTP request handlers are not new-style classes. # super() cannot be used. SimpleHTTPServer.SimpleHTTPRequestHandler.do_HEAD(self)...
import SimpleHTTPServer import SocketServer class KcaaHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): CLIENT_PREFIX = '/client/' def do_HEAD(self): # Note: HTTP request handlers are not new-style classes. # super() cannot be used. if self.rewrite_to_client_path(): ...
import SimpleHTTPServer import SocketServer class KcaaHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): def do_HEAD(self): # Note: HTTP request handlers are not new-style classes. # super() cannot be used. SimpleHTTPServer.SimpleHTTPRequestHandler.do_HEAD(self) def do_GE...
<commit_before>import SimpleHTTPServer import SocketServer class KcaaHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): def do_HEAD(self): # Note: HTTP request handlers are not new-style classes. # super() cannot be used. SimpleHTTPServer.SimpleHTTPRequestHandler.do_HEAD(self)...
3735c090702cc8c290dbf8930223ff794c80775a
versionsapp.py
versionsapp.py
from webob import Response from apiversion import APIVersion from application import Application from apiv1app import APIv1App class VersionsApp(Application): version_classes = [ APIv1App ] def APIVersionList(self, args): return Response(content_type = 'application/json', body = self._resultset_to_json([ { ...
from webob import Response import webob.exc from apiversion import APIVersion from application import Application from apiv1app import APIv1App class VersionsApp(Application): version_classes = [ APIv1App ] def _api_version_detail(self, version): return { "id": version._version_identifier(), "links": [ ...
Correct the HTTP status from GET / - it should be 300 (Multiple Choices) not 200. Implement the details of a given version.
Correct the HTTP status from GET / - it should be 300 (Multiple Choices) not 200. Implement the details of a given version.
Python
apache-2.0
NeCTAR-RC/reporting-api,NCI-Cloud/reporting-api,NeCTAR-RC/reporting-api,NCI-Cloud/reporting-api
from webob import Response from apiversion import APIVersion from application import Application from apiv1app import APIv1App class VersionsApp(Application): version_classes = [ APIv1App ] def APIVersionList(self, args): return Response(content_type = 'application/json', body = self._resultset_to_json([ { ...
from webob import Response import webob.exc from apiversion import APIVersion from application import Application from apiv1app import APIv1App class VersionsApp(Application): version_classes = [ APIv1App ] def _api_version_detail(self, version): return { "id": version._version_identifier(), "links": [ ...
<commit_before>from webob import Response from apiversion import APIVersion from application import Application from apiv1app import APIv1App class VersionsApp(Application): version_classes = [ APIv1App ] def APIVersionList(self, args): return Response(content_type = 'application/json', body = self._resultset_to...
from webob import Response import webob.exc from apiversion import APIVersion from application import Application from apiv1app import APIv1App class VersionsApp(Application): version_classes = [ APIv1App ] def _api_version_detail(self, version): return { "id": version._version_identifier(), "links": [ ...
from webob import Response from apiversion import APIVersion from application import Application from apiv1app import APIv1App class VersionsApp(Application): version_classes = [ APIv1App ] def APIVersionList(self, args): return Response(content_type = 'application/json', body = self._resultset_to_json([ { ...
<commit_before>from webob import Response from apiversion import APIVersion from application import Application from apiv1app import APIv1App class VersionsApp(Application): version_classes = [ APIv1App ] def APIVersionList(self, args): return Response(content_type = 'application/json', body = self._resultset_to...
5690bc4d2be2b0c51fc95fe79fa3c858f70e9181
shortest_path.py
shortest_path.py
from simple_graph.weighted_graph import Wgraph def dijkstra(weighted_graph, start, end): list_of_tuples_node_totalweight = [] list_of_tuples_node_totalweight.append((start, 0)) # weight_dict[start] = 0 # total weight/distance prev = [] # previous node # unvisited = [] for no...
Add Dijkstra implementation of shortest path.
Add Dijkstra implementation of shortest path.
Python
mit
efrainc/data_structures
Add Dijkstra implementation of shortest path.
from simple_graph.weighted_graph import Wgraph def dijkstra(weighted_graph, start, end): list_of_tuples_node_totalweight = [] list_of_tuples_node_totalweight.append((start, 0)) # weight_dict[start] = 0 # total weight/distance prev = [] # previous node # unvisited = [] for no...
<commit_before><commit_msg>Add Dijkstra implementation of shortest path.<commit_after>
from simple_graph.weighted_graph import Wgraph def dijkstra(weighted_graph, start, end): list_of_tuples_node_totalweight = [] list_of_tuples_node_totalweight.append((start, 0)) # weight_dict[start] = 0 # total weight/distance prev = [] # previous node # unvisited = [] for no...
Add Dijkstra implementation of shortest path.from simple_graph.weighted_graph import Wgraph def dijkstra(weighted_graph, start, end): list_of_tuples_node_totalweight = [] list_of_tuples_node_totalweight.append((start, 0)) # weight_dict[start] = 0 # total weight/distance prev = [] # p...
<commit_before><commit_msg>Add Dijkstra implementation of shortest path.<commit_after>from simple_graph.weighted_graph import Wgraph def dijkstra(weighted_graph, start, end): list_of_tuples_node_totalweight = [] list_of_tuples_node_totalweight.append((start, 0)) # weight_dict[start] = 0 # total ...
b836b2c39299cc6dbcbdbc8bcffe046f25909edc
test_portend.py
test_portend.py
import socket import pytest import portend def socket_infos(): """ Generate addr infos for connections to localhost """ host = '' port = portend.find_available_local_port() return socket.getaddrinfo(host, port, socket.AF_UNSPEC, socket.SOCK_STREAM) def id_for_info(info): af, = info[:1] return str(af) def...
import socket import pytest import portend def socket_infos(): """ Generate addr infos for connections to localhost """ host = '' port = portend.find_available_local_port() return socket.getaddrinfo(host, port, socket.AF_UNSPEC, socket.SOCK_STREAM) def id_for_info(info): af, = info[:1] return str(af) def...
Add tests for nonlistening addresses as well.
Add tests for nonlistening addresses as well.
Python
mit
jaraco/portend
import socket import pytest import portend def socket_infos(): """ Generate addr infos for connections to localhost """ host = '' port = portend.find_available_local_port() return socket.getaddrinfo(host, port, socket.AF_UNSPEC, socket.SOCK_STREAM) def id_for_info(info): af, = info[:1] return str(af) def...
import socket import pytest import portend def socket_infos(): """ Generate addr infos for connections to localhost """ host = '' port = portend.find_available_local_port() return socket.getaddrinfo(host, port, socket.AF_UNSPEC, socket.SOCK_STREAM) def id_for_info(info): af, = info[:1] return str(af) def...
<commit_before>import socket import pytest import portend def socket_infos(): """ Generate addr infos for connections to localhost """ host = '' port = portend.find_available_local_port() return socket.getaddrinfo(host, port, socket.AF_UNSPEC, socket.SOCK_STREAM) def id_for_info(info): af, = info[:1] retu...
import socket import pytest import portend def socket_infos(): """ Generate addr infos for connections to localhost """ host = '' port = portend.find_available_local_port() return socket.getaddrinfo(host, port, socket.AF_UNSPEC, socket.SOCK_STREAM) def id_for_info(info): af, = info[:1] return str(af) def...
import socket import pytest import portend def socket_infos(): """ Generate addr infos for connections to localhost """ host = '' port = portend.find_available_local_port() return socket.getaddrinfo(host, port, socket.AF_UNSPEC, socket.SOCK_STREAM) def id_for_info(info): af, = info[:1] return str(af) def...
<commit_before>import socket import pytest import portend def socket_infos(): """ Generate addr infos for connections to localhost """ host = '' port = portend.find_available_local_port() return socket.getaddrinfo(host, port, socket.AF_UNSPEC, socket.SOCK_STREAM) def id_for_info(info): af, = info[:1] retu...
21651120925cc3e51aeada4eac4dbfaa5bf98fae
src/header_filter/__init__.py
src/header_filter/__init__.py
from header_filter.matchers import Header # noqa: F401 from header_filter.middleware import HeaderFilterMiddleware # noqa: F401 from header_filter.rules import Enforce, Forbid # noqa: F401
from header_filter.matchers import Header, HeaderRegexp # noqa: F401 from header_filter.middleware import HeaderFilterMiddleware # noqa: F401 from header_filter.rules import Enforce, Forbid # noqa: F401
Allow HeaderRegexp to be imported directly from header_filter package.
Allow HeaderRegexp to be imported directly from header_filter package.
Python
mit
sanjioh/django-header-filter
from header_filter.matchers import Header # noqa: F401 from header_filter.middleware import HeaderFilterMiddleware # noqa: F401 from header_filter.rules import Enforce, Forbid # noqa: F401 Allow HeaderRegexp to be imported directly from header_filter package.
from header_filter.matchers import Header, HeaderRegexp # noqa: F401 from header_filter.middleware import HeaderFilterMiddleware # noqa: F401 from header_filter.rules import Enforce, Forbid # noqa: F401
<commit_before>from header_filter.matchers import Header # noqa: F401 from header_filter.middleware import HeaderFilterMiddleware # noqa: F401 from header_filter.rules import Enforce, Forbid # noqa: F401 <commit_msg>Allow HeaderRegexp to be imported directly from header_filter package.<commit_after>
from header_filter.matchers import Header, HeaderRegexp # noqa: F401 from header_filter.middleware import HeaderFilterMiddleware # noqa: F401 from header_filter.rules import Enforce, Forbid # noqa: F401
from header_filter.matchers import Header # noqa: F401 from header_filter.middleware import HeaderFilterMiddleware # noqa: F401 from header_filter.rules import Enforce, Forbid # noqa: F401 Allow HeaderRegexp to be imported directly from header_filter package.from header_filter.matchers import Header, HeaderRegexp #...
<commit_before>from header_filter.matchers import Header # noqa: F401 from header_filter.middleware import HeaderFilterMiddleware # noqa: F401 from header_filter.rules import Enforce, Forbid # noqa: F401 <commit_msg>Allow HeaderRegexp to be imported directly from header_filter package.<commit_after>from header_filte...
5ebc53fccd79e479d1a39cf02160c8eb2eab247a
vulk/__init__.py
vulk/__init__.py
"""Vulk 3D engine Cross-plateform 3D engine """ __version__ = "0.2.0"
"""Vulk 3D engine Cross-plateform 3D engine """ from os import path as p __version__ = "0.2.0" PATH_VULK = p.dirname(p.abspath(__file__)) PATH_VULK_ASSET = p.join(PATH_VULK, 'asset') PATH_VULK_SHADER = p.join(PATH_VULK_ASSET, 'shader')
Add Path to Vulk package
Add Path to Vulk package
Python
apache-2.0
Echelon9/vulk,realitix/vulk,realitix/vulk,Echelon9/vulk
"""Vulk 3D engine Cross-plateform 3D engine """ __version__ = "0.2.0" Add Path to Vulk package
"""Vulk 3D engine Cross-plateform 3D engine """ from os import path as p __version__ = "0.2.0" PATH_VULK = p.dirname(p.abspath(__file__)) PATH_VULK_ASSET = p.join(PATH_VULK, 'asset') PATH_VULK_SHADER = p.join(PATH_VULK_ASSET, 'shader')
<commit_before>"""Vulk 3D engine Cross-plateform 3D engine """ __version__ = "0.2.0" <commit_msg>Add Path to Vulk package<commit_after>
"""Vulk 3D engine Cross-plateform 3D engine """ from os import path as p __version__ = "0.2.0" PATH_VULK = p.dirname(p.abspath(__file__)) PATH_VULK_ASSET = p.join(PATH_VULK, 'asset') PATH_VULK_SHADER = p.join(PATH_VULK_ASSET, 'shader')
"""Vulk 3D engine Cross-plateform 3D engine """ __version__ = "0.2.0" Add Path to Vulk package"""Vulk 3D engine Cross-plateform 3D engine """ from os import path as p __version__ = "0.2.0" PATH_VULK = p.dirname(p.abspath(__file__)) PATH_VULK_ASSET = p.join(PATH_VULK, 'asset') PATH_VULK_SHADER = p.join(PATH_VULK_ASS...
<commit_before>"""Vulk 3D engine Cross-plateform 3D engine """ __version__ = "0.2.0" <commit_msg>Add Path to Vulk package<commit_after>"""Vulk 3D engine Cross-plateform 3D engine """ from os import path as p __version__ = "0.2.0" PATH_VULK = p.dirname(p.abspath(__file__)) PATH_VULK_ASSET = p.join(PATH_VULK, 'asset'...
c3b1fef64b3a383b017ec2e155cbdc5b58a6bf5c
average_pixels/get_images.py
average_pixels/get_images.py
import os import urllib import requests from api_key import API_KEY from IPython import embed as qq URL = "https://bingapis.azure-api.net/api/v5/images/search" NUMBER_OF_IMAGES = 10 DIR = os.path.realpath('img') def search_images(term): params = {"q": term, "count":NUMBER_OF_IMAGES} headers = {'ocp-apim-sub...
import os import urllib import urllib.error import requests URL = "https://bingapis.azure-api.net/api/v5/images/search" NUMBER_OF_IMAGES = 10 DIR = '/tmp/average_images' def search_images(term, api_key): params = {"q": term, "count":NUMBER_OF_IMAGES} headers = {'ocp-apim-subscription-key': api_key} respo...
Store files in /tmp/ and fetch API key from $HOME
Store files in /tmp/ and fetch API key from $HOME
Python
mit
liviu-/average-pixels
import os import urllib import requests from api_key import API_KEY from IPython import embed as qq URL = "https://bingapis.azure-api.net/api/v5/images/search" NUMBER_OF_IMAGES = 10 DIR = os.path.realpath('img') def search_images(term): params = {"q": term, "count":NUMBER_OF_IMAGES} headers = {'ocp-apim-sub...
import os import urllib import urllib.error import requests URL = "https://bingapis.azure-api.net/api/v5/images/search" NUMBER_OF_IMAGES = 10 DIR = '/tmp/average_images' def search_images(term, api_key): params = {"q": term, "count":NUMBER_OF_IMAGES} headers = {'ocp-apim-subscription-key': api_key} respo...
<commit_before>import os import urllib import requests from api_key import API_KEY from IPython import embed as qq URL = "https://bingapis.azure-api.net/api/v5/images/search" NUMBER_OF_IMAGES = 10 DIR = os.path.realpath('img') def search_images(term): params = {"q": term, "count":NUMBER_OF_IMAGES} headers =...
import os import urllib import urllib.error import requests URL = "https://bingapis.azure-api.net/api/v5/images/search" NUMBER_OF_IMAGES = 10 DIR = '/tmp/average_images' def search_images(term, api_key): params = {"q": term, "count":NUMBER_OF_IMAGES} headers = {'ocp-apim-subscription-key': api_key} respo...
import os import urllib import requests from api_key import API_KEY from IPython import embed as qq URL = "https://bingapis.azure-api.net/api/v5/images/search" NUMBER_OF_IMAGES = 10 DIR = os.path.realpath('img') def search_images(term): params = {"q": term, "count":NUMBER_OF_IMAGES} headers = {'ocp-apim-sub...
<commit_before>import os import urllib import requests from api_key import API_KEY from IPython import embed as qq URL = "https://bingapis.azure-api.net/api/v5/images/search" NUMBER_OF_IMAGES = 10 DIR = os.path.realpath('img') def search_images(term): params = {"q": term, "count":NUMBER_OF_IMAGES} headers =...
8dbd58443e908257cee31fa4e00ef4316a660c5b
bot/action/standard/group_admin.py
bot/action/standard/group_admin.py
from bot.action.core.action import IntermediateAction from bot.api.domain import Message class GroupAdminAction(IntermediateAction): def process(self, event): chat = event.message.chat if chat.type == "private": # lets consider private chat members are admins :) self._conti...
from bot.action.core.action import IntermediateAction from bot.api.domain import Message class GroupAdminAction(IntermediateAction): def process(self, event): chat = event.message.chat if chat.type == "private": # lets consider private chat members are admins :) self._conti...
Use no_async api to query if a chat member is a group admin
Use no_async api to query if a chat member is a group admin
Python
agpl-3.0
alvarogzp/telegram-bot,alvarogzp/telegram-bot
from bot.action.core.action import IntermediateAction from bot.api.domain import Message class GroupAdminAction(IntermediateAction): def process(self, event): chat = event.message.chat if chat.type == "private": # lets consider private chat members are admins :) self._conti...
from bot.action.core.action import IntermediateAction from bot.api.domain import Message class GroupAdminAction(IntermediateAction): def process(self, event): chat = event.message.chat if chat.type == "private": # lets consider private chat members are admins :) self._conti...
<commit_before>from bot.action.core.action import IntermediateAction from bot.api.domain import Message class GroupAdminAction(IntermediateAction): def process(self, event): chat = event.message.chat if chat.type == "private": # lets consider private chat members are admins :) ...
from bot.action.core.action import IntermediateAction from bot.api.domain import Message class GroupAdminAction(IntermediateAction): def process(self, event): chat = event.message.chat if chat.type == "private": # lets consider private chat members are admins :) self._conti...
from bot.action.core.action import IntermediateAction from bot.api.domain import Message class GroupAdminAction(IntermediateAction): def process(self, event): chat = event.message.chat if chat.type == "private": # lets consider private chat members are admins :) self._conti...
<commit_before>from bot.action.core.action import IntermediateAction from bot.api.domain import Message class GroupAdminAction(IntermediateAction): def process(self, event): chat = event.message.chat if chat.type == "private": # lets consider private chat members are admins :) ...
5aefffff8a1004bc9a8289bf5907472e3434e6b3
modelreg/registration_view.py
modelreg/registration_view.py
#!/usr/bin/env python3 """Documentation about the module... may be multi-line""" from registration.backends.hmac.views import RegistrationView as BaseRegistrationView from django.contrib.sites.shortcuts import get_current_site class RegistrationView(BaseRegistrationView): def get_email_context(self, activation_k...
#!/usr/bin/env python3 """Documentation about the module... may be multi-line""" from registration.backends.hmac.views import RegistrationView as BaseRegistrationView from django.contrib.sites.shortcuts import get_current_site class RegistrationView(BaseRegistrationView): def get_email_context(self, activation_k...
Remove debugging code, not needed outside of DEV
Remove debugging code, not needed outside of DEV
Python
agpl-3.0
modelreg/modelreg,modelreg/modelreg,modelreg/modelreg
#!/usr/bin/env python3 """Documentation about the module... may be multi-line""" from registration.backends.hmac.views import RegistrationView as BaseRegistrationView from django.contrib.sites.shortcuts import get_current_site class RegistrationView(BaseRegistrationView): def get_email_context(self, activation_k...
#!/usr/bin/env python3 """Documentation about the module... may be multi-line""" from registration.backends.hmac.views import RegistrationView as BaseRegistrationView from django.contrib.sites.shortcuts import get_current_site class RegistrationView(BaseRegistrationView): def get_email_context(self, activation_k...
<commit_before>#!/usr/bin/env python3 """Documentation about the module... may be multi-line""" from registration.backends.hmac.views import RegistrationView as BaseRegistrationView from django.contrib.sites.shortcuts import get_current_site class RegistrationView(BaseRegistrationView): def get_email_context(sel...
#!/usr/bin/env python3 """Documentation about the module... may be multi-line""" from registration.backends.hmac.views import RegistrationView as BaseRegistrationView from django.contrib.sites.shortcuts import get_current_site class RegistrationView(BaseRegistrationView): def get_email_context(self, activation_k...
#!/usr/bin/env python3 """Documentation about the module... may be multi-line""" from registration.backends.hmac.views import RegistrationView as BaseRegistrationView from django.contrib.sites.shortcuts import get_current_site class RegistrationView(BaseRegistrationView): def get_email_context(self, activation_k...
<commit_before>#!/usr/bin/env python3 """Documentation about the module... may be multi-line""" from registration.backends.hmac.views import RegistrationView as BaseRegistrationView from django.contrib.sites.shortcuts import get_current_site class RegistrationView(BaseRegistrationView): def get_email_context(sel...
5d97b41a7b814b078b0b7b7d930317342d0db3de
yaml_writer.py
yaml_writer.py
import os.path import yaml from sphinx.util.osutil import ensuredir def create_directory(app): ''' Creates the yaml directory if necessary ''' app.env.yaml_dir = os.path.join(app.builder.confdir, '_build', 'yaml') ensuredir(app.env.yaml_dir) def file_path(env, name): ''' Creates complete yaml file p...
import io import os.path import yaml from sphinx.util.osutil import ensuredir def create_directory(app): ''' Creates the yaml directory if necessary ''' app.env.yaml_dir = os.path.join(app.builder.confdir, '_build', 'yaml') ensuredir(app.env.yaml_dir) def file_path(env, name): ''' Creates complete y...
Support python 2 with io.open
Support python 2 with io.open
Python
mit
Aalto-LeTech/a-plus-rst-tools,Aalto-LeTech/a-plus-rst-tools,Aalto-LeTech/a-plus-rst-tools
import os.path import yaml from sphinx.util.osutil import ensuredir def create_directory(app): ''' Creates the yaml directory if necessary ''' app.env.yaml_dir = os.path.join(app.builder.confdir, '_build', 'yaml') ensuredir(app.env.yaml_dir) def file_path(env, name): ''' Creates complete yaml file p...
import io import os.path import yaml from sphinx.util.osutil import ensuredir def create_directory(app): ''' Creates the yaml directory if necessary ''' app.env.yaml_dir = os.path.join(app.builder.confdir, '_build', 'yaml') ensuredir(app.env.yaml_dir) def file_path(env, name): ''' Creates complete y...
<commit_before>import os.path import yaml from sphinx.util.osutil import ensuredir def create_directory(app): ''' Creates the yaml directory if necessary ''' app.env.yaml_dir = os.path.join(app.builder.confdir, '_build', 'yaml') ensuredir(app.env.yaml_dir) def file_path(env, name): ''' Creates compl...
import io import os.path import yaml from sphinx.util.osutil import ensuredir def create_directory(app): ''' Creates the yaml directory if necessary ''' app.env.yaml_dir = os.path.join(app.builder.confdir, '_build', 'yaml') ensuredir(app.env.yaml_dir) def file_path(env, name): ''' Creates complete y...
import os.path import yaml from sphinx.util.osutil import ensuredir def create_directory(app): ''' Creates the yaml directory if necessary ''' app.env.yaml_dir = os.path.join(app.builder.confdir, '_build', 'yaml') ensuredir(app.env.yaml_dir) def file_path(env, name): ''' Creates complete yaml file p...
<commit_before>import os.path import yaml from sphinx.util.osutil import ensuredir def create_directory(app): ''' Creates the yaml directory if necessary ''' app.env.yaml_dir = os.path.join(app.builder.confdir, '_build', 'yaml') ensuredir(app.env.yaml_dir) def file_path(env, name): ''' Creates compl...
a2fe7d1bb38bedee808c6b1a21cd5e3d93863c6c
winthrop/urls.py
winthrop/urls.py
"""winthrop URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.10/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-b...
"""winthrop URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.10/topics/http/urls/ """ from django.conf.urls import url from django.contrib import admin from django.views.generic.base import RedirectView urlpatterns = [ # for no...
Add redirect from site base url to admin index for now
Add redirect from site base url to admin index for now
Python
apache-2.0
Princeton-CDH/winthrop-django,Princeton-CDH/winthrop-django,Princeton-CDH/winthrop-django
"""winthrop URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.10/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-b...
"""winthrop URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.10/topics/http/urls/ """ from django.conf.urls import url from django.contrib import admin from django.views.generic.base import RedirectView urlpatterns = [ # for no...
<commit_before>"""winthrop URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.10/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name=...
"""winthrop URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.10/topics/http/urls/ """ from django.conf.urls import url from django.contrib import admin from django.views.generic.base import RedirectView urlpatterns = [ # for no...
"""winthrop URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.10/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-b...
<commit_before>"""winthrop URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.10/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name=...
303bd2c3cd605581bd46410b3680f2ec5d193429
peripydic/util/functions.py
peripydic/util/functions.py
import numpy as np from ..util import linalgebra def w(problem,X,type): if type == "ONE": return 1. if type == "EXP": len = linalgebra.norm(X) return np.exp(- (len*len) / problem.neighbors.horizon) return 1.
import numpy as np from ..util import linalgebra def w(problem,X,type): if type == "ONE": return 1. if type == "EXP": len = linalgebra.norm(X) return np.exp(- (len*len) / problem.neighbors.horizon / problem.neighbors.horizon) if type == "NORM": return 1. / linalgebra.n...
Add NORM as influence function
Add NORM as influence function
Python
mit
ilyasst/peridynamics_1D,lm2-poly/peridynamics_1D,lm2-poly/peridynamics_1D
import numpy as np from ..util import linalgebra def w(problem,X,type): if type == "ONE": return 1. if type == "EXP": len = linalgebra.norm(X) return np.exp(- (len*len) / problem.neighbors.horizon) return 1.Add NORM as influence function
import numpy as np from ..util import linalgebra def w(problem,X,type): if type == "ONE": return 1. if type == "EXP": len = linalgebra.norm(X) return np.exp(- (len*len) / problem.neighbors.horizon / problem.neighbors.horizon) if type == "NORM": return 1. / linalgebra.n...
<commit_before>import numpy as np from ..util import linalgebra def w(problem,X,type): if type == "ONE": return 1. if type == "EXP": len = linalgebra.norm(X) return np.exp(- (len*len) / problem.neighbors.horizon) return 1.<commit_msg>Add NORM as influence function<commit_...
import numpy as np from ..util import linalgebra def w(problem,X,type): if type == "ONE": return 1. if type == "EXP": len = linalgebra.norm(X) return np.exp(- (len*len) / problem.neighbors.horizon / problem.neighbors.horizon) if type == "NORM": return 1. / linalgebra.n...
import numpy as np from ..util import linalgebra def w(problem,X,type): if type == "ONE": return 1. if type == "EXP": len = linalgebra.norm(X) return np.exp(- (len*len) / problem.neighbors.horizon) return 1.Add NORM as influence functionimport numpy as np from ..util impo...
<commit_before>import numpy as np from ..util import linalgebra def w(problem,X,type): if type == "ONE": return 1. if type == "EXP": len = linalgebra.norm(X) return np.exp(- (len*len) / problem.neighbors.horizon) return 1.<commit_msg>Add NORM as influence function<commit_...
5e62db3e6abd19c99fb565c15cdd1527599dbd9d
tools/gyp_dart.py
tools/gyp_dart.py
#!/usr/bin/env python # Copyright (c) 2012 The Dart Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # This script is wrapper for Dart that adds some support for how GYP # is invoked by Dart beyond what can be done in the gclient hooks...
#!/usr/bin/env python # Copyright (c) 2012 The Dart Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ Invoke gyp to generate build files for building the Dart VM. """ import os import subprocess import sys def execute(args): pro...
Make code follow the Python style guidelines
Make code follow the Python style guidelines + Use a doc string for the whole file. + Lower case function names. + Consistently use single-quotes for quoted strings. + align wrapped elements with opening delimiter. + use a main() function Review URL: https://chromiumcodereview.appspot.com//10837127 git-svn-id: c9...
Python
bsd-3-clause
dart-archive/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-archive/dart-s...
#!/usr/bin/env python # Copyright (c) 2012 The Dart Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # This script is wrapper for Dart that adds some support for how GYP # is invoked by Dart beyond what can be done in the gclient hooks...
#!/usr/bin/env python # Copyright (c) 2012 The Dart Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ Invoke gyp to generate build files for building the Dart VM. """ import os import subprocess import sys def execute(args): pro...
<commit_before>#!/usr/bin/env python # Copyright (c) 2012 The Dart Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # This script is wrapper for Dart that adds some support for how GYP # is invoked by Dart beyond what can be done in th...
#!/usr/bin/env python # Copyright (c) 2012 The Dart Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ Invoke gyp to generate build files for building the Dart VM. """ import os import subprocess import sys def execute(args): pro...
#!/usr/bin/env python # Copyright (c) 2012 The Dart Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # This script is wrapper for Dart that adds some support for how GYP # is invoked by Dart beyond what can be done in the gclient hooks...
<commit_before>#!/usr/bin/env python # Copyright (c) 2012 The Dart Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # This script is wrapper for Dart that adds some support for how GYP # is invoked by Dart beyond what can be done in th...
1360df4f50417b472c51b679d64102f3b3d5ebec
property_transformation.py
property_transformation.py
from types import UnicodeType, StringType class PropertyMappingFailedException(Exception): pass def get_transformed_properties(source_properties, prop_map): results = {} for key, value in prop_map.iteritems(): if type(value) in (StringType, UnicodeType): if value in source_properties: ...
from types import UnicodeType, StringType class PropertyMappingFailedException(Exception): pass def get_transformed_properties(source_properties, prop_map): results = {} for key, value in prop_map.iteritems(): if type(value) in (StringType, UnicodeType): if value in source_properties: ...
Raise exception if unable to find a usable key in property mapping dict
Raise exception if unable to find a usable key in property mapping dict
Python
mit
OpenBounds/Processing
from types import UnicodeType, StringType class PropertyMappingFailedException(Exception): pass def get_transformed_properties(source_properties, prop_map): results = {} for key, value in prop_map.iteritems(): if type(value) in (StringType, UnicodeType): if value in source_properties: ...
from types import UnicodeType, StringType class PropertyMappingFailedException(Exception): pass def get_transformed_properties(source_properties, prop_map): results = {} for key, value in prop_map.iteritems(): if type(value) in (StringType, UnicodeType): if value in source_properties: ...
<commit_before>from types import UnicodeType, StringType class PropertyMappingFailedException(Exception): pass def get_transformed_properties(source_properties, prop_map): results = {} for key, value in prop_map.iteritems(): if type(value) in (StringType, UnicodeType): if value in sour...
from types import UnicodeType, StringType class PropertyMappingFailedException(Exception): pass def get_transformed_properties(source_properties, prop_map): results = {} for key, value in prop_map.iteritems(): if type(value) in (StringType, UnicodeType): if value in source_properties: ...
from types import UnicodeType, StringType class PropertyMappingFailedException(Exception): pass def get_transformed_properties(source_properties, prop_map): results = {} for key, value in prop_map.iteritems(): if type(value) in (StringType, UnicodeType): if value in source_properties: ...
<commit_before>from types import UnicodeType, StringType class PropertyMappingFailedException(Exception): pass def get_transformed_properties(source_properties, prop_map): results = {} for key, value in prop_map.iteritems(): if type(value) in (StringType, UnicodeType): if value in sour...
05de5f3c951f334cc7a3f6dfbe780942d801e176
feincms/contrib/richtext.py
feincms/contrib/richtext.py
from django import forms from django.db import models class RichTextFormField(forms.fields.CharField): def __init__(self, *args, **kwargs): super(RichTextFormField, self).__init__(*args, **kwargs) css_class = self.widget.attrs.get('class', '') css_class += ' item-richtext' self.wid...
from django import forms from django.db import models class RichTextFormField(forms.fields.CharField): def __init__(self, *args, **kwargs): super(RichTextFormField, self).__init__(*args, **kwargs) css_class = self.widget.attrs.get('class', '') css_class += ' item-richtext' self.wid...
Fix RichTextField form field generation.
Fix RichTextField form field generation. All standard properties that would affect formfield were being ignored (such as blank=True).
Python
bsd-3-clause
michaelkuty/feincms,mjl/feincms,feincms/feincms,nickburlett/feincms,mjl/feincms,matthiask/feincms2-content,matthiask/django-content-editor,pjdelport/feincms,joshuajonah/feincms,matthiask/django-content-editor,joshuajonah/feincms,joshuajonah/feincms,mjl/feincms,pjdelport/feincms,michaelkuty/feincms,nickburlett/feincms,m...
from django import forms from django.db import models class RichTextFormField(forms.fields.CharField): def __init__(self, *args, **kwargs): super(RichTextFormField, self).__init__(*args, **kwargs) css_class = self.widget.attrs.get('class', '') css_class += ' item-richtext' self.wid...
from django import forms from django.db import models class RichTextFormField(forms.fields.CharField): def __init__(self, *args, **kwargs): super(RichTextFormField, self).__init__(*args, **kwargs) css_class = self.widget.attrs.get('class', '') css_class += ' item-richtext' self.wid...
<commit_before>from django import forms from django.db import models class RichTextFormField(forms.fields.CharField): def __init__(self, *args, **kwargs): super(RichTextFormField, self).__init__(*args, **kwargs) css_class = self.widget.attrs.get('class', '') css_class += ' item-richtext' ...
from django import forms from django.db import models class RichTextFormField(forms.fields.CharField): def __init__(self, *args, **kwargs): super(RichTextFormField, self).__init__(*args, **kwargs) css_class = self.widget.attrs.get('class', '') css_class += ' item-richtext' self.wid...
from django import forms from django.db import models class RichTextFormField(forms.fields.CharField): def __init__(self, *args, **kwargs): super(RichTextFormField, self).__init__(*args, **kwargs) css_class = self.widget.attrs.get('class', '') css_class += ' item-richtext' self.wid...
<commit_before>from django import forms from django.db import models class RichTextFormField(forms.fields.CharField): def __init__(self, *args, **kwargs): super(RichTextFormField, self).__init__(*args, **kwargs) css_class = self.widget.attrs.get('class', '') css_class += ' item-richtext' ...
200efbba25130b84da80720329794e4c47806573
NDIR_RasPi_Python/example.py
NDIR_RasPi_Python/example.py
import NDIR import time sensor = NDIR.Sensor(0x4D) sensor.begin() while True: sensor.measure() print("CO2 Concentration: " + str(sensor.ppm) + "ppm") time.sleep(1)
import NDIR import time sensor = NDIR.Sensor(0x4D) if sensor.begin() == False: print("Adaptor initialization FAILED!") exit() while True: if sensor.measure(): print("CO2 Concentration: " + str(sensor.ppm) + "ppm") else: print("Sensor communication ERROR.") time.sleep(1)
Make use of the return value of begin() and measure()
Make use of the return value of begin() and measure()
Python
mit
SandboxElectronics/NDIR,SandboxElectronics/NDIR,SandboxElectronics/NDIR
import NDIR import time sensor = NDIR.Sensor(0x4D) sensor.begin() while True: sensor.measure() print("CO2 Concentration: " + str(sensor.ppm) + "ppm") time.sleep(1) Make use of the return value of begin() and measure()
import NDIR import time sensor = NDIR.Sensor(0x4D) if sensor.begin() == False: print("Adaptor initialization FAILED!") exit() while True: if sensor.measure(): print("CO2 Concentration: " + str(sensor.ppm) + "ppm") else: print("Sensor communication ERROR.") time.sleep(1)
<commit_before>import NDIR import time sensor = NDIR.Sensor(0x4D) sensor.begin() while True: sensor.measure() print("CO2 Concentration: " + str(sensor.ppm) + "ppm") time.sleep(1) <commit_msg>Make use of the return value of begin() and measure()<commit_after>
import NDIR import time sensor = NDIR.Sensor(0x4D) if sensor.begin() == False: print("Adaptor initialization FAILED!") exit() while True: if sensor.measure(): print("CO2 Concentration: " + str(sensor.ppm) + "ppm") else: print("Sensor communication ERROR.") time.sleep(1)
import NDIR import time sensor = NDIR.Sensor(0x4D) sensor.begin() while True: sensor.measure() print("CO2 Concentration: " + str(sensor.ppm) + "ppm") time.sleep(1) Make use of the return value of begin() and measure()import NDIR import time sensor = NDIR.Sensor(0x4D) if sensor.begin() == False: prin...
<commit_before>import NDIR import time sensor = NDIR.Sensor(0x4D) sensor.begin() while True: sensor.measure() print("CO2 Concentration: " + str(sensor.ppm) + "ppm") time.sleep(1) <commit_msg>Make use of the return value of begin() and measure()<commit_after>import NDIR import time sensor = NDIR.Sensor(0x...
c75071ad2dd8c2e5efdef660f1aa33ffa28f0613
frontends/etiquette_repl.py
frontends/etiquette_repl.py
# Use with # py -i etiquette_easy.py import etiquette import os import sys P = etiquette.photodb.PhotoDB() import traceback def easytagger(): while True: i = input('> ') if i.startswith('?'): i = i.split('?')[1] or None try: etiquette.tag_export.stdout([P.g...
# Use with # py -i etiquette_easy.py import argparse import os import sys import traceback import etiquette P = etiquette.photodb.PhotoDB() def easytagger(): while True: i = input('> ') if i.startswith('?'): i = i.split('?')[1] or None try: etiquette.tag_e...
Clean up the erepl code a little bit.
Clean up the erepl code a little bit.
Python
bsd-3-clause
voussoir/etiquette,voussoir/etiquette,voussoir/etiquette
# Use with # py -i etiquette_easy.py import etiquette import os import sys P = etiquette.photodb.PhotoDB() import traceback def easytagger(): while True: i = input('> ') if i.startswith('?'): i = i.split('?')[1] or None try: etiquette.tag_export.stdout([P.g...
# Use with # py -i etiquette_easy.py import argparse import os import sys import traceback import etiquette P = etiquette.photodb.PhotoDB() def easytagger(): while True: i = input('> ') if i.startswith('?'): i = i.split('?')[1] or None try: etiquette.tag_e...
<commit_before># Use with # py -i etiquette_easy.py import etiquette import os import sys P = etiquette.photodb.PhotoDB() import traceback def easytagger(): while True: i = input('> ') if i.startswith('?'): i = i.split('?')[1] or None try: etiquette.tag_exp...
# Use with # py -i etiquette_easy.py import argparse import os import sys import traceback import etiquette P = etiquette.photodb.PhotoDB() def easytagger(): while True: i = input('> ') if i.startswith('?'): i = i.split('?')[1] or None try: etiquette.tag_e...
# Use with # py -i etiquette_easy.py import etiquette import os import sys P = etiquette.photodb.PhotoDB() import traceback def easytagger(): while True: i = input('> ') if i.startswith('?'): i = i.split('?')[1] or None try: etiquette.tag_export.stdout([P.g...
<commit_before># Use with # py -i etiquette_easy.py import etiquette import os import sys P = etiquette.photodb.PhotoDB() import traceback def easytagger(): while True: i = input('> ') if i.startswith('?'): i = i.split('?')[1] or None try: etiquette.tag_exp...
b69db7ff67abe185bcf7e8e7badfa868a9ec882c
script/update-frameworks.py
script/update-frameworks.py
#!/usr/bin/env python import sys import os from lib.util import safe_mkdir, extract_zip, tempdir, download SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) FRAMEWORKS_URL = 'http://atom-alpha.s3.amazonaws.com' def main(): os.chdir(SOURCE_ROOT) safe_mkdir('frameworks') download_and_u...
#!/usr/bin/env python import sys import os from lib.util import safe_mkdir, extract_zip, tempdir, download SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) FRAMEWORKS_URL = 'https://github.com/atom/atom-shell/releases/download/v0.11.10' def main(): os.chdir(SOURCE_ROOT) safe_mkdir('fra...
Move framework downloads to github release
Move framework downloads to github release
Python
mit
bpasero/electron,fomojola/electron,simonfork/electron,micalan/electron,neutrous/electron,stevemao/electron,jtburke/electron,medixdev/electron,Andrey-Pavlov/electron,yalexx/electron,synaptek/electron,Neron-X5/electron,stevekinney/electron,christian-bromann/electron,benweissmann/electron,mirrh/electron,leftstick/electron...
#!/usr/bin/env python import sys import os from lib.util import safe_mkdir, extract_zip, tempdir, download SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) FRAMEWORKS_URL = 'http://atom-alpha.s3.amazonaws.com' def main(): os.chdir(SOURCE_ROOT) safe_mkdir('frameworks') download_and_u...
#!/usr/bin/env python import sys import os from lib.util import safe_mkdir, extract_zip, tempdir, download SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) FRAMEWORKS_URL = 'https://github.com/atom/atom-shell/releases/download/v0.11.10' def main(): os.chdir(SOURCE_ROOT) safe_mkdir('fra...
<commit_before>#!/usr/bin/env python import sys import os from lib.util import safe_mkdir, extract_zip, tempdir, download SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) FRAMEWORKS_URL = 'http://atom-alpha.s3.amazonaws.com' def main(): os.chdir(SOURCE_ROOT) safe_mkdir('frameworks') ...
#!/usr/bin/env python import sys import os from lib.util import safe_mkdir, extract_zip, tempdir, download SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) FRAMEWORKS_URL = 'https://github.com/atom/atom-shell/releases/download/v0.11.10' def main(): os.chdir(SOURCE_ROOT) safe_mkdir('fra...
#!/usr/bin/env python import sys import os from lib.util import safe_mkdir, extract_zip, tempdir, download SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) FRAMEWORKS_URL = 'http://atom-alpha.s3.amazonaws.com' def main(): os.chdir(SOURCE_ROOT) safe_mkdir('frameworks') download_and_u...
<commit_before>#!/usr/bin/env python import sys import os from lib.util import safe_mkdir, extract_zip, tempdir, download SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) FRAMEWORKS_URL = 'http://atom-alpha.s3.amazonaws.com' def main(): os.chdir(SOURCE_ROOT) safe_mkdir('frameworks') ...
04110d34b5f385103a77e0a1459e984d8210fa92
updates/models.py
updates/models.py
from django.db import models from cms.models import CMSPlugin from django.utils.translation import ugettext_lazy as _ class Update(models.Model): """ Defines a date on which updates were made. """ date = models.DateField(_('Update Date')) def __str__(self): return str(self.date) clas...
from django.db import models from cms.models import CMSPlugin from django.utils.translation import ugettext_lazy as _ class Update(models.Model): """ Defines a date on which updates were made. """ date = models.DateField(_('Update Date')) def __str__(self): return str(self.date) clas...
Remove choices for any number of updates.
Remove choices for any number of updates.
Python
bsd-3-clause
theherk/django-theherk-updates
from django.db import models from cms.models import CMSPlugin from django.utils.translation import ugettext_lazy as _ class Update(models.Model): """ Defines a date on which updates were made. """ date = models.DateField(_('Update Date')) def __str__(self): return str(self.date) clas...
from django.db import models from cms.models import CMSPlugin from django.utils.translation import ugettext_lazy as _ class Update(models.Model): """ Defines a date on which updates were made. """ date = models.DateField(_('Update Date')) def __str__(self): return str(self.date) clas...
<commit_before>from django.db import models from cms.models import CMSPlugin from django.utils.translation import ugettext_lazy as _ class Update(models.Model): """ Defines a date on which updates were made. """ date = models.DateField(_('Update Date')) def __str__(self): return str(self....
from django.db import models from cms.models import CMSPlugin from django.utils.translation import ugettext_lazy as _ class Update(models.Model): """ Defines a date on which updates were made. """ date = models.DateField(_('Update Date')) def __str__(self): return str(self.date) clas...
from django.db import models from cms.models import CMSPlugin from django.utils.translation import ugettext_lazy as _ class Update(models.Model): """ Defines a date on which updates were made. """ date = models.DateField(_('Update Date')) def __str__(self): return str(self.date) clas...
<commit_before>from django.db import models from cms.models import CMSPlugin from django.utils.translation import ugettext_lazy as _ class Update(models.Model): """ Defines a date on which updates were made. """ date = models.DateField(_('Update Date')) def __str__(self): return str(self....
4efd5de76f9f192ab9ceb73254e500c47c46090a
django_git/management/commands/git_pull_utils/multiple_repo_updater.py
django_git/management/commands/git_pull_utils/multiple_repo_updater.py
import os import traceback from django.utils import timezone from django_git.management.commands.git_pull_utils.git_synchronizer import GitSynchronizer def no_action(msg): pass try: from iconizer.gui_client.notification_service_client import NotificationServiceClient notification_method = NotificationSe...
import os import traceback from django.utils import timezone from django_git.management.commands.git_pull_utils.git_synchronizer import GitSynchronizer def no_action(msg): pass try: from iconizer.gui_client.notification_service_client import NotificationServiceClient notification_method = NotificationSe...
Fix no notification service client issue.
Fix no notification service client issue.
Python
bsd-3-clause
weijia/django-git,weijia/django-git
import os import traceback from django.utils import timezone from django_git.management.commands.git_pull_utils.git_synchronizer import GitSynchronizer def no_action(msg): pass try: from iconizer.gui_client.notification_service_client import NotificationServiceClient notification_method = NotificationSe...
import os import traceback from django.utils import timezone from django_git.management.commands.git_pull_utils.git_synchronizer import GitSynchronizer def no_action(msg): pass try: from iconizer.gui_client.notification_service_client import NotificationServiceClient notification_method = NotificationSe...
<commit_before>import os import traceback from django.utils import timezone from django_git.management.commands.git_pull_utils.git_synchronizer import GitSynchronizer def no_action(msg): pass try: from iconizer.gui_client.notification_service_client import NotificationServiceClient notification_method =...
import os import traceback from django.utils import timezone from django_git.management.commands.git_pull_utils.git_synchronizer import GitSynchronizer def no_action(msg): pass try: from iconizer.gui_client.notification_service_client import NotificationServiceClient notification_method = NotificationSe...
import os import traceback from django.utils import timezone from django_git.management.commands.git_pull_utils.git_synchronizer import GitSynchronizer def no_action(msg): pass try: from iconizer.gui_client.notification_service_client import NotificationServiceClient notification_method = NotificationSe...
<commit_before>import os import traceback from django.utils import timezone from django_git.management.commands.git_pull_utils.git_synchronizer import GitSynchronizer def no_action(msg): pass try: from iconizer.gui_client.notification_service_client import NotificationServiceClient notification_method =...
3d037ed7142ed7b1c7382eded4de6443050543ee
vimiv/__init__.py
vimiv/__init__.py
#!/usr/bin/env python3 # encoding: utf-8 try: import argparse import configparser import mimetypes import os import re import shutil import signal import sys from gi import require_version require_version('Gtk', '3.0') from gi.repository import GLib, Gtk, Gdk, GdkPixbuf, Pan...
#!/usr/bin/env python3 # encoding: utf-8 try: from gi import require_version require_version('Gtk', '3.0') from gi.repository import GLib, Gtk, Gdk, GdkPixbuf, Pango from PIL import Image, ImageEnhance except ImportError as import_error: print(import_error) print("Are all dependencies installe...
Remove standard imports from check in init
Remove standard imports from check in init
Python
mit
karlch/vimiv,karlch/vimiv,karlch/vimiv
#!/usr/bin/env python3 # encoding: utf-8 try: import argparse import configparser import mimetypes import os import re import shutil import signal import sys from gi import require_version require_version('Gtk', '3.0') from gi.repository import GLib, Gtk, Gdk, GdkPixbuf, Pan...
#!/usr/bin/env python3 # encoding: utf-8 try: from gi import require_version require_version('Gtk', '3.0') from gi.repository import GLib, Gtk, Gdk, GdkPixbuf, Pango from PIL import Image, ImageEnhance except ImportError as import_error: print(import_error) print("Are all dependencies installe...
<commit_before>#!/usr/bin/env python3 # encoding: utf-8 try: import argparse import configparser import mimetypes import os import re import shutil import signal import sys from gi import require_version require_version('Gtk', '3.0') from gi.repository import GLib, Gtk, Gdk,...
#!/usr/bin/env python3 # encoding: utf-8 try: from gi import require_version require_version('Gtk', '3.0') from gi.repository import GLib, Gtk, Gdk, GdkPixbuf, Pango from PIL import Image, ImageEnhance except ImportError as import_error: print(import_error) print("Are all dependencies installe...
#!/usr/bin/env python3 # encoding: utf-8 try: import argparse import configparser import mimetypes import os import re import shutil import signal import sys from gi import require_version require_version('Gtk', '3.0') from gi.repository import GLib, Gtk, Gdk, GdkPixbuf, Pan...
<commit_before>#!/usr/bin/env python3 # encoding: utf-8 try: import argparse import configparser import mimetypes import os import re import shutil import signal import sys from gi import require_version require_version('Gtk', '3.0') from gi.repository import GLib, Gtk, Gdk,...
fee6f9753b1b5209f605b6dd329ac5af00f87174
Lib/__init__.py
Lib/__init__.py
"""\ SciPy --- A scientific computing package for Python =================================================== You can support the development of SciPy by purchasing documentation at http://www.trelgol.com It is being distributed for a fee for a limited time to try and raise money for development. Documentation is ...
"""\ SciPy --- A scientific computing package for Python =================================================== You can support the development of SciPy by purchasing documentation at http://www.trelgol.com It is being distributed for a fee for a limited time to try and raise money for development. Documentation is ...
Put numpy namespace in scipy for backward compatibility...
Put numpy namespace in scipy for backward compatibility... git-svn-id: 003f22d385e25de9cff933a5ea4efd77cb5e7b28@1530 d6536bca-fef9-0310-8506-e4c0a848fbcf
Python
bsd-3-clause
scipy/scipy-svn,jasonmccampbell/scipy-refactor,scipy/scipy-svn,scipy/scipy-svn,lesserwhirls/scipy-cwt,lesserwhirls/scipy-cwt,lesserwhirls/scipy-cwt,jasonmccampbell/scipy-refactor,lesserwhirls/scipy-cwt,jasonmccampbell/scipy-refactor,jasonmccampbell/scipy-refactor,scipy/scipy-svn
"""\ SciPy --- A scientific computing package for Python =================================================== You can support the development of SciPy by purchasing documentation at http://www.trelgol.com It is being distributed for a fee for a limited time to try and raise money for development. Documentation is ...
"""\ SciPy --- A scientific computing package for Python =================================================== You can support the development of SciPy by purchasing documentation at http://www.trelgol.com It is being distributed for a fee for a limited time to try and raise money for development. Documentation is ...
<commit_before>"""\ SciPy --- A scientific computing package for Python =================================================== You can support the development of SciPy by purchasing documentation at http://www.trelgol.com It is being distributed for a fee for a limited time to try and raise money for development. Do...
"""\ SciPy --- A scientific computing package for Python =================================================== You can support the development of SciPy by purchasing documentation at http://www.trelgol.com It is being distributed for a fee for a limited time to try and raise money for development. Documentation is ...
"""\ SciPy --- A scientific computing package for Python =================================================== You can support the development of SciPy by purchasing documentation at http://www.trelgol.com It is being distributed for a fee for a limited time to try and raise money for development. Documentation is ...
<commit_before>"""\ SciPy --- A scientific computing package for Python =================================================== You can support the development of SciPy by purchasing documentation at http://www.trelgol.com It is being distributed for a fee for a limited time to try and raise money for development. Do...
19433ab423abdd16dddf3508e8d73f0a0edae83c
bot/utils/attributeobject.py
bot/utils/attributeobject.py
class AttributeObject: def __init__(self, *excluded_keys): self._excluded_keys = excluded_keys def __getattr__(self, item): return self._getattr(item) def __setattr__(self, key, value): if key == "_excluded_keys" or key in self._excluded_keys: super().__setattr__(key, v...
class AttributeObject: def __init__(self, *excluded_keys): self._excluded_keys = excluded_keys def __getattr__(self, item): return self._getattr(item) def __setattr__(self, key, value): if key == "_excluded_keys" or key in self._excluded_keys: super().__setattr__(key, v...
Raise NotImplementedError instead of just passing in AttributeObject
Raise NotImplementedError instead of just passing in AttributeObject That way, if somebody uses it directly, it will fail with a proper error.
Python
agpl-3.0
alvarogzp/telegram-bot,alvarogzp/telegram-bot
class AttributeObject: def __init__(self, *excluded_keys): self._excluded_keys = excluded_keys def __getattr__(self, item): return self._getattr(item) def __setattr__(self, key, value): if key == "_excluded_keys" or key in self._excluded_keys: super().__setattr__(key, v...
class AttributeObject: def __init__(self, *excluded_keys): self._excluded_keys = excluded_keys def __getattr__(self, item): return self._getattr(item) def __setattr__(self, key, value): if key == "_excluded_keys" or key in self._excluded_keys: super().__setattr__(key, v...
<commit_before>class AttributeObject: def __init__(self, *excluded_keys): self._excluded_keys = excluded_keys def __getattr__(self, item): return self._getattr(item) def __setattr__(self, key, value): if key == "_excluded_keys" or key in self._excluded_keys: super().__s...
class AttributeObject: def __init__(self, *excluded_keys): self._excluded_keys = excluded_keys def __getattr__(self, item): return self._getattr(item) def __setattr__(self, key, value): if key == "_excluded_keys" or key in self._excluded_keys: super().__setattr__(key, v...
class AttributeObject: def __init__(self, *excluded_keys): self._excluded_keys = excluded_keys def __getattr__(self, item): return self._getattr(item) def __setattr__(self, key, value): if key == "_excluded_keys" or key in self._excluded_keys: super().__setattr__(key, v...
<commit_before>class AttributeObject: def __init__(self, *excluded_keys): self._excluded_keys = excluded_keys def __getattr__(self, item): return self._getattr(item) def __setattr__(self, key, value): if key == "_excluded_keys" or key in self._excluded_keys: super().__s...
580425162c9c84dee5cb78aa90b0992af4316bd7
web/web_config.py
web/web_config.py
#!/usr/bin/python3 """ Configuration settings for server.py. """ HOSTNAME = "localhost" PORT = 8080 # integer OK_RESPONSE = 200
#!/usr/bin/python3 """ Configuration settings for server.py. """ HOSTNAME = "localhost" PORT = 2424 # integer OK_RESPONSE = 200
Test version of web package. See cinch.py for usage.
Test version of web package. See cinch.py for usage.
Python
mit
JackieChiles/Cinch,JackieChiles/Cinch,JackieChiles/Cinch
#!/usr/bin/python3 """ Configuration settings for server.py. """ HOSTNAME = "localhost" PORT = 8080 # integer OK_RESPONSE = 200 Test version of web package. See cinch.py for usage.
#!/usr/bin/python3 """ Configuration settings for server.py. """ HOSTNAME = "localhost" PORT = 2424 # integer OK_RESPONSE = 200
<commit_before>#!/usr/bin/python3 """ Configuration settings for server.py. """ HOSTNAME = "localhost" PORT = 8080 # integer OK_RESPONSE = 200 <commit_msg>Test version of web package. See cinch.py for usage.<commit_after>
#!/usr/bin/python3 """ Configuration settings for server.py. """ HOSTNAME = "localhost" PORT = 2424 # integer OK_RESPONSE = 200
#!/usr/bin/python3 """ Configuration settings for server.py. """ HOSTNAME = "localhost" PORT = 8080 # integer OK_RESPONSE = 200 Test version of web package. See cinch.py for usage.#!/usr/bin/python3 """ Configuration settings for server.py. """ HOSTNAME = "localhost" PORT = 2424 # integer OK_RESPONSE = 200
<commit_before>#!/usr/bin/python3 """ Configuration settings for server.py. """ HOSTNAME = "localhost" PORT = 8080 # integer OK_RESPONSE = 200 <commit_msg>Test version of web package. See cinch.py for usage.<commit_after>#!/usr/bin/python3 """ Configuration settings for server.py. """ HOSTNAME = "localhost" PORT ...
365e4abca73d55fe4ba1b51a0057556ff8487c41
changes/listeners/build_revision.py
changes/listeners/build_revision.py
import logging from flask import current_app from fnmatch import fnmatch from changes.api.build_index import BuildIndexAPIView from changes.config import db from changes.models import ItemOption, Project logger = logging.getLogger('build_revision') def should_build_branch(revision, allowed_branches): if not r...
import logging from flask import current_app from fnmatch import fnmatch from changes.api.build_index import BuildIndexAPIView from changes.config import db from changes.models import ItemOption logger = logging.getLogger('build_revision') def should_build_branch(revision, allowed_branches): if not revision.b...
Revert "Move build.branch-names to project settings"
Revert "Move build.branch-names to project settings" This reverts commit a38fc17616ae160aa41046470964034294eade1a.
Python
apache-2.0
bowlofstew/changes,dropbox/changes,dropbox/changes,bowlofstew/changes,wfxiang08/changes,wfxiang08/changes,wfxiang08/changes,dropbox/changes,bowlofstew/changes,dropbox/changes,bowlofstew/changes,wfxiang08/changes
import logging from flask import current_app from fnmatch import fnmatch from changes.api.build_index import BuildIndexAPIView from changes.config import db from changes.models import ItemOption, Project logger = logging.getLogger('build_revision') def should_build_branch(revision, allowed_branches): if not r...
import logging from flask import current_app from fnmatch import fnmatch from changes.api.build_index import BuildIndexAPIView from changes.config import db from changes.models import ItemOption logger = logging.getLogger('build_revision') def should_build_branch(revision, allowed_branches): if not revision.b...
<commit_before>import logging from flask import current_app from fnmatch import fnmatch from changes.api.build_index import BuildIndexAPIView from changes.config import db from changes.models import ItemOption, Project logger = logging.getLogger('build_revision') def should_build_branch(revision, allowed_branches...
import logging from flask import current_app from fnmatch import fnmatch from changes.api.build_index import BuildIndexAPIView from changes.config import db from changes.models import ItemOption logger = logging.getLogger('build_revision') def should_build_branch(revision, allowed_branches): if not revision.b...
import logging from flask import current_app from fnmatch import fnmatch from changes.api.build_index import BuildIndexAPIView from changes.config import db from changes.models import ItemOption, Project logger = logging.getLogger('build_revision') def should_build_branch(revision, allowed_branches): if not r...
<commit_before>import logging from flask import current_app from fnmatch import fnmatch from changes.api.build_index import BuildIndexAPIView from changes.config import db from changes.models import ItemOption, Project logger = logging.getLogger('build_revision') def should_build_branch(revision, allowed_branches...
4325794f6cb3780b8c44fcf4198f141eef225fbf
dnzo/settings.py
dnzo/settings.py
from ragendja.settings_pre import * import environment MEDIA_VERSION = environment.MAJOR_VERSION DEBUG = environment.IS_DEVELOPMENT TEMPLATE_DEBUG = environment.IS_DEVELOPMENT DATABASE_ENGINE = 'appengine' USE_I18N = False TEMPLATE_LOADERS = ( # Load basic template files in the normal way 'django.te...
from ragendja.settings_pre import * import environment MEDIA_VERSION = environment.MAJOR_VERSION DEBUG = environment.IS_DEVELOPMENT TEMPLATE_DEBUG = environment.IS_DEVELOPMENT DATABASE_ENGINE = 'appengine' USE_I18N = False TEMPLATE_LOADERS = ( # Load basic template files in the normal way 'django.te...
Switch off weird AEP-1.0 model-renaming bullshit.
Switch off weird AEP-1.0 model-renaming bullshit. git-svn-id: 062a66634e56759c7c3cc44955c32d2ce0012d25@295 c02d1e6f-6a35-45f2-ab14-3b6f79a691ff
Python
mit
taylorhughes/done-zo,taylorhughes/done-zo,taylorhughes/done-zo,taylorhughes/done-zo
from ragendja.settings_pre import * import environment MEDIA_VERSION = environment.MAJOR_VERSION DEBUG = environment.IS_DEVELOPMENT TEMPLATE_DEBUG = environment.IS_DEVELOPMENT DATABASE_ENGINE = 'appengine' USE_I18N = False TEMPLATE_LOADERS = ( # Load basic template files in the normal way 'django.te...
from ragendja.settings_pre import * import environment MEDIA_VERSION = environment.MAJOR_VERSION DEBUG = environment.IS_DEVELOPMENT TEMPLATE_DEBUG = environment.IS_DEVELOPMENT DATABASE_ENGINE = 'appengine' USE_I18N = False TEMPLATE_LOADERS = ( # Load basic template files in the normal way 'django.te...
<commit_before>from ragendja.settings_pre import * import environment MEDIA_VERSION = environment.MAJOR_VERSION DEBUG = environment.IS_DEVELOPMENT TEMPLATE_DEBUG = environment.IS_DEVELOPMENT DATABASE_ENGINE = 'appengine' USE_I18N = False TEMPLATE_LOADERS = ( # Load basic template files in the normal w...
from ragendja.settings_pre import * import environment MEDIA_VERSION = environment.MAJOR_VERSION DEBUG = environment.IS_DEVELOPMENT TEMPLATE_DEBUG = environment.IS_DEVELOPMENT DATABASE_ENGINE = 'appengine' USE_I18N = False TEMPLATE_LOADERS = ( # Load basic template files in the normal way 'django.te...
from ragendja.settings_pre import * import environment MEDIA_VERSION = environment.MAJOR_VERSION DEBUG = environment.IS_DEVELOPMENT TEMPLATE_DEBUG = environment.IS_DEVELOPMENT DATABASE_ENGINE = 'appengine' USE_I18N = False TEMPLATE_LOADERS = ( # Load basic template files in the normal way 'django.te...
<commit_before>from ragendja.settings_pre import * import environment MEDIA_VERSION = environment.MAJOR_VERSION DEBUG = environment.IS_DEVELOPMENT TEMPLATE_DEBUG = environment.IS_DEVELOPMENT DATABASE_ENGINE = 'appengine' USE_I18N = False TEMPLATE_LOADERS = ( # Load basic template files in the normal w...
2c67fcd8ec55324366087c2f69bcd232592ac312
pirx/base.py
pirx/base.py
class Settings(object): def __init__(self): self._settings = {} def __setattr__(self, name, value): if name != '_settings': self._settings[name] = value else: super(Settings, self).__setattr__(name, value) def write(self): for name, value in self._se...
class Settings(object): def __init__(self): self._settings = {} def __setattr__(self, name, value): if name != '_settings': self._settings[name] = value else: super(Settings, self).__setattr__(name, value) def write(self): for name, value in self._se...
Use __repr__ instead of __str__ to print setting's value
Use __repr__ instead of __str__ to print setting's value
Python
mit
piotrekw/pirx
class Settings(object): def __init__(self): self._settings = {} def __setattr__(self, name, value): if name != '_settings': self._settings[name] = value else: super(Settings, self).__setattr__(name, value) def write(self): for name, value in self._se...
class Settings(object): def __init__(self): self._settings = {} def __setattr__(self, name, value): if name != '_settings': self._settings[name] = value else: super(Settings, self).__setattr__(name, value) def write(self): for name, value in self._se...
<commit_before>class Settings(object): def __init__(self): self._settings = {} def __setattr__(self, name, value): if name != '_settings': self._settings[name] = value else: super(Settings, self).__setattr__(name, value) def write(self): for name, va...
class Settings(object): def __init__(self): self._settings = {} def __setattr__(self, name, value): if name != '_settings': self._settings[name] = value else: super(Settings, self).__setattr__(name, value) def write(self): for name, value in self._se...
class Settings(object): def __init__(self): self._settings = {} def __setattr__(self, name, value): if name != '_settings': self._settings[name] = value else: super(Settings, self).__setattr__(name, value) def write(self): for name, value in self._se...
<commit_before>class Settings(object): def __init__(self): self._settings = {} def __setattr__(self, name, value): if name != '_settings': self._settings[name] = value else: super(Settings, self).__setattr__(name, value) def write(self): for name, va...
da6f284cf1ffa1397c32167e1e23189ea29e5b2f
IPython/html/widgets/widget_container.py
IPython/html/widgets/widget_container.py
"""ContainerWidget class. Represents a container that can be used to group other widgets. """ # Copyright (c) IPython Development Team. # Distributed under the terms of the Modified BSD License. from .widget import DOMWidget from IPython.utils.traitlets import Unicode, Tuple, TraitError class ContainerWidget(DOMW...
"""ContainerWidget class. Represents a container that can be used to group other widgets. """ # Copyright (c) IPython Development Team. # Distributed under the terms of the Modified BSD License. from .widget import DOMWidget from IPython.utils.traitlets import Unicode, Tuple, TraitError class ContainerWidget(DOMW...
Make Container widgets take children as the first positional argument
Make Container widgets take children as the first positional argument This makes creating containers less cumbersome: Container([list, of, children]), rather than Container(children=[list, of, children])
Python
bsd-3-clause
ipython/ipython,ipython/ipython
"""ContainerWidget class. Represents a container that can be used to group other widgets. """ # Copyright (c) IPython Development Team. # Distributed under the terms of the Modified BSD License. from .widget import DOMWidget from IPython.utils.traitlets import Unicode, Tuple, TraitError class ContainerWidget(DOMW...
"""ContainerWidget class. Represents a container that can be used to group other widgets. """ # Copyright (c) IPython Development Team. # Distributed under the terms of the Modified BSD License. from .widget import DOMWidget from IPython.utils.traitlets import Unicode, Tuple, TraitError class ContainerWidget(DOMW...
<commit_before>"""ContainerWidget class. Represents a container that can be used to group other widgets. """ # Copyright (c) IPython Development Team. # Distributed under the terms of the Modified BSD License. from .widget import DOMWidget from IPython.utils.traitlets import Unicode, Tuple, TraitError class Conta...
"""ContainerWidget class. Represents a container that can be used to group other widgets. """ # Copyright (c) IPython Development Team. # Distributed under the terms of the Modified BSD License. from .widget import DOMWidget from IPython.utils.traitlets import Unicode, Tuple, TraitError class ContainerWidget(DOMW...
"""ContainerWidget class. Represents a container that can be used to group other widgets. """ # Copyright (c) IPython Development Team. # Distributed under the terms of the Modified BSD License. from .widget import DOMWidget from IPython.utils.traitlets import Unicode, Tuple, TraitError class ContainerWidget(DOMW...
<commit_before>"""ContainerWidget class. Represents a container that can be used to group other widgets. """ # Copyright (c) IPython Development Team. # Distributed under the terms of the Modified BSD License. from .widget import DOMWidget from IPython.utils.traitlets import Unicode, Tuple, TraitError class Conta...
efb0aa6c68ed9b5ab5c855464dc0b611506326d2
wafer/kv/migrations/0001_initial.py
wafer/kv/migrations/0001_initial.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models import jsonfield.fields class Migration(migrations.Migration): dependencies = [ ('auth', '0006_require_contenttypes_0002'), ] operations = [ migrations.CreateModel( name=...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models from django.conf import settings import jsonfield.fields class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL) ] operations = [ ...
Tweak kv migration to improve compatibility across Django versions
Tweak kv migration to improve compatibility across Django versions
Python
isc
CTPUG/wafer,CTPUG/wafer,CTPUG/wafer,CTPUG/wafer
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models import jsonfield.fields class Migration(migrations.Migration): dependencies = [ ('auth', '0006_require_contenttypes_0002'), ] operations = [ migrations.CreateModel( name=...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models from django.conf import settings import jsonfield.fields class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL) ] operations = [ ...
<commit_before># -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models import jsonfield.fields class Migration(migrations.Migration): dependencies = [ ('auth', '0006_require_contenttypes_0002'), ] operations = [ migrations.CreateModel( ...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models from django.conf import settings import jsonfield.fields class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL) ] operations = [ ...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models import jsonfield.fields class Migration(migrations.Migration): dependencies = [ ('auth', '0006_require_contenttypes_0002'), ] operations = [ migrations.CreateModel( name=...
<commit_before># -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models import jsonfield.fields class Migration(migrations.Migration): dependencies = [ ('auth', '0006_require_contenttypes_0002'), ] operations = [ migrations.CreateModel( ...
29c3d87881ce9c57478eb821da60d77e9f5eeb48
eventsourcing/application/base.py
eventsourcing/application/base.py
from abc import abstractmethod, ABCMeta from six import with_metaclass from eventsourcing.infrastructure.event_store import EventStore from eventsourcing.infrastructure.persistence_subscriber import PersistenceSubscriber class EventSourcingApplication(with_metaclass(ABCMeta)): def __init__(self, json_encoder_c...
from abc import abstractmethod, ABCMeta from six import with_metaclass from eventsourcing.infrastructure.event_store import EventStore from eventsourcing.infrastructure.persistence_subscriber import PersistenceSubscriber class EventSourcingApplication(with_metaclass(ABCMeta)): persist_events = True def __i...
Allow to disable events persistence at app class
Allow to disable events persistence at app class
Python
bsd-3-clause
johnbywater/eventsourcing,johnbywater/eventsourcing
from abc import abstractmethod, ABCMeta from six import with_metaclass from eventsourcing.infrastructure.event_store import EventStore from eventsourcing.infrastructure.persistence_subscriber import PersistenceSubscriber class EventSourcingApplication(with_metaclass(ABCMeta)): def __init__(self, json_encoder_c...
from abc import abstractmethod, ABCMeta from six import with_metaclass from eventsourcing.infrastructure.event_store import EventStore from eventsourcing.infrastructure.persistence_subscriber import PersistenceSubscriber class EventSourcingApplication(with_metaclass(ABCMeta)): persist_events = True def __i...
<commit_before>from abc import abstractmethod, ABCMeta from six import with_metaclass from eventsourcing.infrastructure.event_store import EventStore from eventsourcing.infrastructure.persistence_subscriber import PersistenceSubscriber class EventSourcingApplication(with_metaclass(ABCMeta)): def __init__(self,...
from abc import abstractmethod, ABCMeta from six import with_metaclass from eventsourcing.infrastructure.event_store import EventStore from eventsourcing.infrastructure.persistence_subscriber import PersistenceSubscriber class EventSourcingApplication(with_metaclass(ABCMeta)): persist_events = True def __i...
from abc import abstractmethod, ABCMeta from six import with_metaclass from eventsourcing.infrastructure.event_store import EventStore from eventsourcing.infrastructure.persistence_subscriber import PersistenceSubscriber class EventSourcingApplication(with_metaclass(ABCMeta)): def __init__(self, json_encoder_c...
<commit_before>from abc import abstractmethod, ABCMeta from six import with_metaclass from eventsourcing.infrastructure.event_store import EventStore from eventsourcing.infrastructure.persistence_subscriber import PersistenceSubscriber class EventSourcingApplication(with_metaclass(ABCMeta)): def __init__(self,...
bfaf081b0e3c3cb8a37270ca7c0a16d52795a3de
kozmic/auth/views.py
kozmic/auth/views.py
import github3 from flask import render_template, current_app, redirect, url_for from flask.ext.login import login_user, logout_user, login_required from kozmic import db from kozmic.models import User from . import bp @bp.route('/_auth/auth-callback/') @bp.github_oauth_app.authorized_handler def auth_callback(respo...
import github3 from flask import render_template, current_app, redirect, url_for from flask.ext.login import login_user, logout_user, login_required from kozmic import db from kozmic.models import User from . import bp @bp.route('/_auth/auth-callback/') @bp.github_oauth_app.authorized_handler def auth_callback(respo...
Update GitHub access token on each login
Update GitHub access token on each login
Python
bsd-3-clause
aromanovich/kozmic-ci,abak-press/kozmic-ci,abak-press/kozmic-ci,abak-press/kozmic-ci,aromanovich/kozmic-ci,aromanovich/kozmic-ci,artofhuman/kozmic-ci,abak-press/kozmic-ci,aromanovich/kozmic-ci,artofhuman/kozmic-ci,artofhuman/kozmic-ci,artofhuman/kozmic-ci
import github3 from flask import render_template, current_app, redirect, url_for from flask.ext.login import login_user, logout_user, login_required from kozmic import db from kozmic.models import User from . import bp @bp.route('/_auth/auth-callback/') @bp.github_oauth_app.authorized_handler def auth_callback(respo...
import github3 from flask import render_template, current_app, redirect, url_for from flask.ext.login import login_user, logout_user, login_required from kozmic import db from kozmic.models import User from . import bp @bp.route('/_auth/auth-callback/') @bp.github_oauth_app.authorized_handler def auth_callback(respo...
<commit_before>import github3 from flask import render_template, current_app, redirect, url_for from flask.ext.login import login_user, logout_user, login_required from kozmic import db from kozmic.models import User from . import bp @bp.route('/_auth/auth-callback/') @bp.github_oauth_app.authorized_handler def auth...
import github3 from flask import render_template, current_app, redirect, url_for from flask.ext.login import login_user, logout_user, login_required from kozmic import db from kozmic.models import User from . import bp @bp.route('/_auth/auth-callback/') @bp.github_oauth_app.authorized_handler def auth_callback(respo...
import github3 from flask import render_template, current_app, redirect, url_for from flask.ext.login import login_user, logout_user, login_required from kozmic import db from kozmic.models import User from . import bp @bp.route('/_auth/auth-callback/') @bp.github_oauth_app.authorized_handler def auth_callback(respo...
<commit_before>import github3 from flask import render_template, current_app, redirect, url_for from flask.ext.login import login_user, logout_user, login_required from kozmic import db from kozmic.models import User from . import bp @bp.route('/_auth/auth-callback/') @bp.github_oauth_app.authorized_handler def auth...
0d93a0dff18165c36788a140af40208ec48d505f
prep.py
prep.py
from os import listdir from os.path import join def file_paths(data_path): return [join(data_path, name) for name in listdir(data_path)] def training_data(data_path): paths = file_paths(data_path) raw_text = [ open(path, 'r').read() for path in paths] dataX = [] dataY = [] for text in raw_text: data ...
from os import listdir from os.path import join import re def file_paths(data_path): return [join(data_path, name) for name in listdir(data_path)] def training_data(data_path): paths = file_paths(data_path) raw_text = [open(path, 'r').read() for path in paths] dataX = [] dataY = [] for text in raw_text:...
Transform sentences to arrays of words
Transform sentences to arrays of words
Python
mit
vdragan1993/python-coder
from os import listdir from os.path import join def file_paths(data_path): return [join(data_path, name) for name in listdir(data_path)] def training_data(data_path): paths = file_paths(data_path) raw_text = [ open(path, 'r').read() for path in paths] dataX = [] dataY = [] for text in raw_text: data ...
from os import listdir from os.path import join import re def file_paths(data_path): return [join(data_path, name) for name in listdir(data_path)] def training_data(data_path): paths = file_paths(data_path) raw_text = [open(path, 'r').read() for path in paths] dataX = [] dataY = [] for text in raw_text:...
<commit_before>from os import listdir from os.path import join def file_paths(data_path): return [join(data_path, name) for name in listdir(data_path)] def training_data(data_path): paths = file_paths(data_path) raw_text = [ open(path, 'r').read() for path in paths] dataX = [] dataY = [] for text in raw_...
from os import listdir from os.path import join import re def file_paths(data_path): return [join(data_path, name) for name in listdir(data_path)] def training_data(data_path): paths = file_paths(data_path) raw_text = [open(path, 'r').read() for path in paths] dataX = [] dataY = [] for text in raw_text:...
from os import listdir from os.path import join def file_paths(data_path): return [join(data_path, name) for name in listdir(data_path)] def training_data(data_path): paths = file_paths(data_path) raw_text = [ open(path, 'r').read() for path in paths] dataX = [] dataY = [] for text in raw_text: data ...
<commit_before>from os import listdir from os.path import join def file_paths(data_path): return [join(data_path, name) for name in listdir(data_path)] def training_data(data_path): paths = file_paths(data_path) raw_text = [ open(path, 'r').read() for path in paths] dataX = [] dataY = [] for text in raw_...
4d01eb0c1b11680d463d4fcb0888fac4ab6c45c8
panoptes/utils/data.py
panoptes/utils/data.py
import os import argparse from astropy.utils import data from astroplan import download_IERS_A def download_all_files(data_folder="{}/astrometry/data".format(os.getenv('PANDIR'))): download_IERS_A() for i in range(4214, 4219): fn = 'index-{}.fits'.format(i) dest = "{}/{}".format(data_folder, ...
import os import shutil import argparse from astropy.utils import data from astroplan import download_IERS_A def download_all_files(data_folder="{}/astrometry/data".format(os.getenv('PANDIR'))): download_IERS_A() for i in range(4214, 4219): fn = 'index-{}.fits'.format(i) dest = "{}/{}".format...
Use shutil instead of `os.rename`
Use shutil instead of `os.rename`
Python
mit
panoptes/POCS,AstroHuntsman/POCS,joshwalawender/POCS,AstroHuntsman/POCS,joshwalawender/POCS,AstroHuntsman/POCS,panoptes/POCS,AstroHuntsman/POCS,panoptes/POCS,joshwalawender/POCS,panoptes/POCS
import os import argparse from astropy.utils import data from astroplan import download_IERS_A def download_all_files(data_folder="{}/astrometry/data".format(os.getenv('PANDIR'))): download_IERS_A() for i in range(4214, 4219): fn = 'index-{}.fits'.format(i) dest = "{}/{}".format(data_folder, ...
import os import shutil import argparse from astropy.utils import data from astroplan import download_IERS_A def download_all_files(data_folder="{}/astrometry/data".format(os.getenv('PANDIR'))): download_IERS_A() for i in range(4214, 4219): fn = 'index-{}.fits'.format(i) dest = "{}/{}".format...
<commit_before>import os import argparse from astropy.utils import data from astroplan import download_IERS_A def download_all_files(data_folder="{}/astrometry/data".format(os.getenv('PANDIR'))): download_IERS_A() for i in range(4214, 4219): fn = 'index-{}.fits'.format(i) dest = "{}/{}".forma...
import os import shutil import argparse from astropy.utils import data from astroplan import download_IERS_A def download_all_files(data_folder="{}/astrometry/data".format(os.getenv('PANDIR'))): download_IERS_A() for i in range(4214, 4219): fn = 'index-{}.fits'.format(i) dest = "{}/{}".format...
import os import argparse from astropy.utils import data from astroplan import download_IERS_A def download_all_files(data_folder="{}/astrometry/data".format(os.getenv('PANDIR'))): download_IERS_A() for i in range(4214, 4219): fn = 'index-{}.fits'.format(i) dest = "{}/{}".format(data_folder, ...
<commit_before>import os import argparse from astropy.utils import data from astroplan import download_IERS_A def download_all_files(data_folder="{}/astrometry/data".format(os.getenv('PANDIR'))): download_IERS_A() for i in range(4214, 4219): fn = 'index-{}.fits'.format(i) dest = "{}/{}".forma...
8556437ee02de028ec5de3b867abaab82533cb91
keystone/tests/unit/common/test_manager.py
keystone/tests/unit/common/test_manager.py
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
Correct test to support changing N release name
Correct test to support changing N release name oslo.log is going to change to use Newton rather than N so this test should not make an assumption about the way that versionutils.deprecated is calling report_deprecated_feature. Change-Id: I06aa6d085232376811f73597b2d84b5174bc7a8d Closes-Bug: 1561121
Python
apache-2.0
ilay09/keystone,rajalokan/keystone,openstack/keystone,mahak/keystone,klmitch/keystone,openstack/keystone,ilay09/keystone,cernops/keystone,rajalokan/keystone,cernops/keystone,mahak/keystone,ilay09/keystone,rajalokan/keystone,klmitch/keystone,mahak/keystone,openstack/keystone
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
<commit_before># Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # dist...
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
<commit_before># Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # dist...
014f7255ea62c748e0935bbb36e279a35626df38
kokki/cookbooks/ssh/libraries/resources.py
kokki/cookbooks/ssh/libraries/resources.py
__all__ = ["SSHKnownHost", "SSHAuthorizedKey"] import os.path from kokki import * class SSHKnownHost(Resource): provider = "*ssh.SSHKnownHostProvider" action = ForcedListArgument(default="include") host = ResourceArgument(default=lambda obj:obj.name) keytype = ResourceArgument() key = ResourceAr...
__all__ = ["SSHKnownHost", "SSHAuthorizedKey"] import os.path from kokki import * class SSHKnownHost(Resource): provider = "*ssh.SSHKnownHostProvider" action = ForcedListArgument(default="include") host = ResourceArgument(default=lambda obj:obj.name) keytype = ResourceArgument() key = ResourceAr...
Make sure ssh config directory exists
Make sure ssh config directory exists
Python
bsd-3-clause
samuel/kokki
__all__ = ["SSHKnownHost", "SSHAuthorizedKey"] import os.path from kokki import * class SSHKnownHost(Resource): provider = "*ssh.SSHKnownHostProvider" action = ForcedListArgument(default="include") host = ResourceArgument(default=lambda obj:obj.name) keytype = ResourceArgument() key = ResourceAr...
__all__ = ["SSHKnownHost", "SSHAuthorizedKey"] import os.path from kokki import * class SSHKnownHost(Resource): provider = "*ssh.SSHKnownHostProvider" action = ForcedListArgument(default="include") host = ResourceArgument(default=lambda obj:obj.name) keytype = ResourceArgument() key = ResourceAr...
<commit_before> __all__ = ["SSHKnownHost", "SSHAuthorizedKey"] import os.path from kokki import * class SSHKnownHost(Resource): provider = "*ssh.SSHKnownHostProvider" action = ForcedListArgument(default="include") host = ResourceArgument(default=lambda obj:obj.name) keytype = ResourceArgument() k...
__all__ = ["SSHKnownHost", "SSHAuthorizedKey"] import os.path from kokki import * class SSHKnownHost(Resource): provider = "*ssh.SSHKnownHostProvider" action = ForcedListArgument(default="include") host = ResourceArgument(default=lambda obj:obj.name) keytype = ResourceArgument() key = ResourceAr...
__all__ = ["SSHKnownHost", "SSHAuthorizedKey"] import os.path from kokki import * class SSHKnownHost(Resource): provider = "*ssh.SSHKnownHostProvider" action = ForcedListArgument(default="include") host = ResourceArgument(default=lambda obj:obj.name) keytype = ResourceArgument() key = ResourceAr...
<commit_before> __all__ = ["SSHKnownHost", "SSHAuthorizedKey"] import os.path from kokki import * class SSHKnownHost(Resource): provider = "*ssh.SSHKnownHostProvider" action = ForcedListArgument(default="include") host = ResourceArgument(default=lambda obj:obj.name) keytype = ResourceArgument() k...
70842a821d713525e1fe3c6376a30fcc0a39155c
zoe_lib/predefined_apps/__init__.py
zoe_lib/predefined_apps/__init__.py
# Copyright (c) 2016, Daniele Venzano # # 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 w...
# Copyright (c) 2016, Daniele Venzano # # 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 w...
Fix import error due to wrong import line
Fix import error due to wrong import line
Python
apache-2.0
DistributedSystemsGroup/zoe,DistributedSystemsGroup/zoe,DistributedSystemsGroup/zoe,DistributedSystemsGroup/zoe,DistributedSystemsGroup/zoe
# Copyright (c) 2016, Daniele Venzano # # 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 w...
# Copyright (c) 2016, Daniele Venzano # # 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 w...
<commit_before># Copyright (c) 2016, Daniele Venzano # # 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...
# Copyright (c) 2016, Daniele Venzano # # 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 w...
# Copyright (c) 2016, Daniele Venzano # # 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 w...
<commit_before># Copyright (c) 2016, Daniele Venzano # # 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...
fa16e93e4d00db3ef68f9de16f5c1eb28988dc18
apps/local_apps/account/context_processors.py
apps/local_apps/account/context_processors.py
from account.models import Account, AnonymousAccount def openid(request): return {'openid': request.openid} def account(request): if request.user.is_authenticated(): try: account = Account._default_manager.get(user=request.user) except (Account.DoesNotExist, Account.MultipleObject...
from account.models import Account, AnonymousAccount def openid(request): return {'openid': request.openid} def account(request): if request.user.is_authenticated(): try: account = Account._default_manager.get(user=request.user) except Account.DoesNotExist: account = A...
Throw 500 error on multiple accounts in account context processor
Throw 500 error on multiple accounts in account context processor
Python
mit
ingenieroariel/pinax,ingenieroariel/pinax
from account.models import Account, AnonymousAccount def openid(request): return {'openid': request.openid} def account(request): if request.user.is_authenticated(): try: account = Account._default_manager.get(user=request.user) except (Account.DoesNotExist, Account.MultipleObject...
from account.models import Account, AnonymousAccount def openid(request): return {'openid': request.openid} def account(request): if request.user.is_authenticated(): try: account = Account._default_manager.get(user=request.user) except Account.DoesNotExist: account = A...
<commit_before> from account.models import Account, AnonymousAccount def openid(request): return {'openid': request.openid} def account(request): if request.user.is_authenticated(): try: account = Account._default_manager.get(user=request.user) except (Account.DoesNotExist, Account...
from account.models import Account, AnonymousAccount def openid(request): return {'openid': request.openid} def account(request): if request.user.is_authenticated(): try: account = Account._default_manager.get(user=request.user) except Account.DoesNotExist: account = A...
from account.models import Account, AnonymousAccount def openid(request): return {'openid': request.openid} def account(request): if request.user.is_authenticated(): try: account = Account._default_manager.get(user=request.user) except (Account.DoesNotExist, Account.MultipleObject...
<commit_before> from account.models import Account, AnonymousAccount def openid(request): return {'openid': request.openid} def account(request): if request.user.is_authenticated(): try: account = Account._default_manager.get(user=request.user) except (Account.DoesNotExist, Account...
52a3a7b2a6aac284b9dd1a7edfb27cdec4d33675
lib/pyfrc/test_support/pyfrc_fake_hooks.py
lib/pyfrc/test_support/pyfrc_fake_hooks.py
from hal_impl.data import hal_data class PyFrcFakeHooks: ''' Defines hal hooks that use the fake time object ''' def __init__(self, fake_time): self.fake_time = fake_time # # Hook functions # def getTime(self): return self.fake_time.get() def getFP...
from hal_impl.sim_hooks import SimHooks class PyFrcFakeHooks(SimHooks): ''' Defines hal hooks that use the fake time object ''' def __init__(self, fake_time): self.fake_time = fake_time super().__init__() # # Time related hooks # def getTime(self): ...
Update sim hooks for 2018
Update sim hooks for 2018
Python
mit
robotpy/pyfrc
from hal_impl.data import hal_data class PyFrcFakeHooks: ''' Defines hal hooks that use the fake time object ''' def __init__(self, fake_time): self.fake_time = fake_time # # Hook functions # def getTime(self): return self.fake_time.get() def getFP...
from hal_impl.sim_hooks import SimHooks class PyFrcFakeHooks(SimHooks): ''' Defines hal hooks that use the fake time object ''' def __init__(self, fake_time): self.fake_time = fake_time super().__init__() # # Time related hooks # def getTime(self): ...
<commit_before>from hal_impl.data import hal_data class PyFrcFakeHooks: ''' Defines hal hooks that use the fake time object ''' def __init__(self, fake_time): self.fake_time = fake_time # # Hook functions # def getTime(self): return self.fake_time.get() ...
from hal_impl.sim_hooks import SimHooks class PyFrcFakeHooks(SimHooks): ''' Defines hal hooks that use the fake time object ''' def __init__(self, fake_time): self.fake_time = fake_time super().__init__() # # Time related hooks # def getTime(self): ...
from hal_impl.data import hal_data class PyFrcFakeHooks: ''' Defines hal hooks that use the fake time object ''' def __init__(self, fake_time): self.fake_time = fake_time # # Hook functions # def getTime(self): return self.fake_time.get() def getFP...
<commit_before>from hal_impl.data import hal_data class PyFrcFakeHooks: ''' Defines hal hooks that use the fake time object ''' def __init__(self, fake_time): self.fake_time = fake_time # # Hook functions # def getTime(self): return self.fake_time.get() ...
32671085ddd8362db14e22d98d4fa5910dd0aa62
ui/tcmui/testexecution/views.py
ui/tcmui/testexecution/views.py
from django.template.response import TemplateResponse from ..products.models import Product from ..static import testcyclestatus from ..users.decorators import login_required from .models import TestCycleList @login_required def cycles(request, product_id): product = Product.get("products/%s" % product_id, aut...
from django.template.response import TemplateResponse from ..products.models import Product from ..static import testcyclestatus from ..users.decorators import login_required from .models import TestCycleList @login_required def cycles(request, product_id): product = Product.get("products/%s" % product_id, aut...
Use correct auth in cycles view, now that API permissions are fixed.
Use correct auth in cycles view, now that API permissions are fixed.
Python
bsd-2-clause
mccarrmb/moztrap,mccarrmb/moztrap,mccarrmb/moztrap,shinglyu/moztrap,mozilla/moztrap,shinglyu/moztrap,shinglyu/moztrap,mozilla/moztrap,bobsilverberg/moztrap,shinglyu/moztrap,mccarrmb/moztrap,bobsilverberg/moztrap,mozilla/moztrap,shinglyu/moztrap,mccarrmb/moztrap,bobsilverberg/moztrap,mozilla/moztrap,mozilla/moztrap,bobs...
from django.template.response import TemplateResponse from ..products.models import Product from ..static import testcyclestatus from ..users.decorators import login_required from .models import TestCycleList @login_required def cycles(request, product_id): product = Product.get("products/%s" % product_id, aut...
from django.template.response import TemplateResponse from ..products.models import Product from ..static import testcyclestatus from ..users.decorators import login_required from .models import TestCycleList @login_required def cycles(request, product_id): product = Product.get("products/%s" % product_id, aut...
<commit_before>from django.template.response import TemplateResponse from ..products.models import Product from ..static import testcyclestatus from ..users.decorators import login_required from .models import TestCycleList @login_required def cycles(request, product_id): product = Product.get("products/%s" % ...
from django.template.response import TemplateResponse from ..products.models import Product from ..static import testcyclestatus from ..users.decorators import login_required from .models import TestCycleList @login_required def cycles(request, product_id): product = Product.get("products/%s" % product_id, aut...
from django.template.response import TemplateResponse from ..products.models import Product from ..static import testcyclestatus from ..users.decorators import login_required from .models import TestCycleList @login_required def cycles(request, product_id): product = Product.get("products/%s" % product_id, aut...
<commit_before>from django.template.response import TemplateResponse from ..products.models import Product from ..static import testcyclestatus from ..users.decorators import login_required from .models import TestCycleList @login_required def cycles(request, product_id): product = Product.get("products/%s" % ...
901c482f357ba3a845d40cb126667490472a6bf6
Code/divide.py
Code/divide.py
def divide(a, b): return a / b print divide(20, 2)
num1 = input('Enter first number: ') num2 = input('Enter second number: ') if num2==0: print 'Denominator cannot be 0' else: Division=float(num1)/float(num2) print Division
Divide two numbers using python code
Divide two numbers using python code
Python
mit
HarendraSingh22/Python-Guide-for-Beginners
def divide(a, b): return a / b print divide(20, 2) Divide two numbers using python code
num1 = input('Enter first number: ') num2 = input('Enter second number: ') if num2==0: print 'Denominator cannot be 0' else: Division=float(num1)/float(num2) print Division
<commit_before>def divide(a, b): return a / b print divide(20, 2) <commit_msg> Divide two numbers using python code<commit_after>
num1 = input('Enter first number: ') num2 = input('Enter second number: ') if num2==0: print 'Denominator cannot be 0' else: Division=float(num1)/float(num2) print Division
def divide(a, b): return a / b print divide(20, 2) Divide two numbers using python codenum1 = input('Enter first number: ') num2 = input('Enter second number: ') if num2==0: print 'Denominator cannot be 0' else: Division=float(num1)/float(num2) print Division
<commit_before>def divide(a, b): return a / b print divide(20, 2) <commit_msg> Divide two numbers using python code<commit_after>num1 = input('Enter first number: ') num2 = input('Enter second number: ') if num2==0: print 'Denominator cannot be 0' else: Division=float(num1)/float(num2) print Division