commit
stringlengths
40
40
old_file
stringlengths
4
118
new_file
stringlengths
4
118
old_contents
stringlengths
1
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
bf13d9ed90a7cfed405d4910fd6a70e1813849df
python/servo/packages.py
python/servo/packages.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 https://mozilla.org/MPL/2.0/. WINDOWS_MSVC = { "cmake": "3.14.3", "llvm": "7.0.0", "moztools": "3.2", "ninja": "1.7.1", "openssl": "1.0.2q-vs2017", }
# 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 https://mozilla.org/MPL/2.0/. WINDOWS_MSVC = { "cmake": "3.14.3", "llvm": "8.0.0", "moztools": "3.2", "ninja": "1.7.1", "openssl": "1.0.2q-vs2017", }
Upgrade to LLVM 8 on Windows.
Upgrade to LLVM 8 on Windows.
Python
mpl-2.0
paulrouget/servo,paulrouget/servo,larsbergstrom/servo,nnethercote/servo,nnethercote/servo,larsbergstrom/servo,splav/servo,larsbergstrom/servo,saneyuki/servo,notriddle/servo,DominoTree/servo,paulrouget/servo,saneyuki/servo,notriddle/servo,saneyuki/servo,KiChjang/servo,paulrouget/servo,splav/servo,DominoTree/servo,saneyuki/servo,splav/servo,notriddle/servo,paulrouget/servo,nnethercote/servo,KiChjang/servo,nnethercote/servo,DominoTree/servo,notriddle/servo,larsbergstrom/servo,paulrouget/servo,larsbergstrom/servo,KiChjang/servo,notriddle/servo,splav/servo,splav/servo,larsbergstrom/servo,splav/servo,DominoTree/servo,KiChjang/servo,larsbergstrom/servo,nnethercote/servo,splav/servo,DominoTree/servo,nnethercote/servo,DominoTree/servo,saneyuki/servo,nnethercote/servo,notriddle/servo,DominoTree/servo,KiChjang/servo,nnethercote/servo,KiChjang/servo,splav/servo,larsbergstrom/servo,nnethercote/servo,DominoTree/servo,splav/servo,notriddle/servo,saneyuki/servo,nnethercote/servo,larsbergstrom/servo,paulrouget/servo,paulrouget/servo,DominoTree/servo,saneyuki/servo,notriddle/servo,KiChjang/servo,KiChjang/servo,KiChjang/servo,paulrouget/servo,saneyuki/servo,saneyuki/servo,notriddle/servo,KiChjang/servo,splav/servo,DominoTree/servo,saneyuki/servo,notriddle/servo,larsbergstrom/servo,paulrouget/servo
3f4f3aa23cd7e29f34f10ae3d03a2faf0b086167
randommap/config.py
randommap/config.py
""" Configuration variables for different environments. """ import os from . import application class BaseConfig(object): DEBUG = False REDIS_URL = os.environ["REDIS_URL"] PORT = int(os.environ["PORT"]) ZOOM = 9 MAP_TTL = 60 # seconds RETINA_IMAGES = True class ProductionConfig(BaseConfig): DEBUG = False RETINA_IMAGES = False class DevelopmentConfig(BaseConfig): DEBUG = True MAP_TTL = 1 RETINA_IMAGES = False application.config.from_object( {"production": ProductionConfig, "development": DevelopmentConfig}.get( os.environ["APP_CONFIG"], DevelopmentConfig ) )
""" Configuration variables for different environments. """ import os from . import application class BaseConfig(object): DEBUG = False REDIS_URL = os.environ["REDIS_URL"] PORT = int(os.environ["PORT"]) ZOOM = 9 MAP_TTL = 60 # seconds RETINA_IMAGES = True class ProductionConfig(BaseConfig): DEBUG = False RETINA_IMAGES = False MAP_TTL = 120 # seconds class DevelopmentConfig(BaseConfig): DEBUG = True MAP_TTL = 1 RETINA_IMAGES = False application.config.from_object( {"production": ProductionConfig, "development": DevelopmentConfig}.get( os.environ["APP_CONFIG"], DevelopmentConfig ) )
Increase timeout to 2 minutes
Increase timeout to 2 minutes
Python
mit
oliver-newman/randommap-website
096759a9670263451b21d28bf773ae3c5ebc4c0f
jarn/mkrelease/urlparser.py
jarn/mkrelease/urlparser.py
import re from urlparse import urlsplit class URLParser(object): """A minimal URL parser and splitter.""" scheme_re = re.compile('^(\S+?)://') def get_scheme(self, url): match = self.scheme_re.match(url) if match is not None: return match.group(1) return '' def is_url(self, url): return bool(self.get_scheme(url)) def split(self, url): scheme = self.get_scheme(url) if scheme: # Split all URLs like http URLs url = 'http%s' % url[len(scheme):] ignored, host, path, qs, frag = urlsplit(url) user, host = self._split_host(host) return scheme, user, host, path, qs, frag return '', '', '', url, '', '' def _split_host(self, host): if '@' in host: return host.split('@', 1) return '', host
import re from urlparse import urlsplit class URLParser(object): """A minimal URL parser and splitter.""" scheme_re = re.compile(r'^(\S+?)://') def get_scheme(self, url): match = self.scheme_re.match(url) if match is not None: return match.group(1) return '' def is_url(self, url): return bool(self.get_scheme(url)) def split(self, url): scheme = self.get_scheme(url) if scheme: # Split all URLs like HTTP URLs url = 'http%s' % url[len(scheme):] ignored, host, path, qs, frag = urlsplit(url) user, host = self._split_host(host) return scheme, user, host, path, qs, frag return '', '', '', url, '', '' def _split_host(self, host): if '@' in host: return host.split('@', 1) return '', host
Use raw string for regular expression.
Use raw string for regular expression.
Python
bsd-2-clause
Jarn/jarn.mkrelease
804b117849df07ce550da314d44d1ade06e1fcb1
app/worker.py
app/worker.py
#!/usr/bin/env python import os from apiclient.discovery import build from apiclient import errors PROJECT_NAME = os.getenv('PROJECT_NAME') TASK_QUEUE_NAME = os.getenv('QUEUE_NAME') TASK_LEASE_SECONDS = os.getenv('TASK_LEASE_SECONDS', 300) TASK_BATCH_SIZE = os.getenv('TASK_BATCH_SIZE', 10) assert PROJECT_NAME assert TASK_QUEUE_NAME def main(): task_api = build('taskqueue', 'v1beta2') try: lease_request = task_api.tasks().lease( project=PROJECT_NAME, taskqueue=TASK_QUEUE_NAME, leaseSecs=TASK_LEASE_SECONDS, numTasks=TASK_BATCH_SIZE, # body={}, ) result = lease_request.execute() print '------------' print repr(result) return result except errors.HttpError, e: logger.error('Error during lease request: %s' % str(e)) return None if __name__ == '__main__': main()
#!/usr/bin/env python import os import logging from apiclient.discovery import build from apiclient import errors PROJECT_NAME = os.getenv('PROJECT_NAME') TASKQUEUE_NAME = os.getenv('TASKQUEUE_NAME', 'builds') TASKQUEUE_LEASE_SECONDS = os.getenv('TASKQUEUE_LEASE_SECONDS', 300) TASKQUEUE_BATCH_SIZE = os.getenv('TASKQUEUE_BATCH_SIZE', 10) assert PROJECT_NAME assert TASKQUEUE_NAME def main(): task_api = build('taskqueue', 'v1beta2') try: lease_request = task_api.tasks().lease( project=PROJECT_NAME, taskqueue=TASKQUEUE_NAME, leaseSecs=TASKQUEUE_LEASE_SECONDS, numTasks=TASKQUEUE_BATCH_SIZE, # body={}, ) result = lease_request.execute() print '------------' print repr(result) return result except errors.HttpError, e: logging.error('Error during lease request: %s' % str(e)) return None if __name__ == '__main__': main()
Fix up logging and env vars.
Fix up logging and env vars.
Python
mit
grow/buildbot,grow/buildbot,grow/buildbot
2020838fb456e6118f78ca7288cc14f3046b73eb
oxauth/auth.py
oxauth/auth.py
import json import base64 import urllib from Crypto.Cipher import AES from Crypto.Protocol.KDF import PBKDF2 class OXSessionDecryptor(object): def __init__(self, secret_key_base, salt="encrypted cookie", keylen=64, iterations=1000): self.secret = PBKDF2(secret_key_base, salt.encode(), keylen, iterations) def get_cookie_data(self, cookie): cookie = base64.b64decode(urllib.parse.unquote(cookie).split('--')[0]) encrypted_data, iv = map(base64.b64decode, cookie.split('--'.encode())) cipher = AES.new(self.secret[:32], AES.MODE_CBC, iv) return json.loads(unpad(cipher.decrypt(encrypted_data)))
import json import base64 import urllib from Crypto.Cipher import AES from Crypto.Protocol.KDF import PBKDF2 unpad = lambda s: s[:-ord(s[len(s) - 1:])] class OXSessionDecryptor(object): def __init__(self, secret_key_base, salt="encrypted cookie", keylen=64, iterations=1000): self.secret = PBKDF2(secret_key_base, salt.encode(), keylen, iterations) def get_cookie_data(self, cookie): cookie = base64.b64decode(urllib.parse.unquote(cookie).split('--')[0]) encrypted_data, iv = map(base64.b64decode, cookie.split('--'.encode())) cipher = AES.new(self.secret[:32], AES.MODE_CBC, iv) return json.loads(unpad(cipher.decrypt(encrypted_data)))
Add unpad function for unpacking cookie
Add unpad function for unpacking cookie
Python
agpl-3.0
openstax/openstax-cms,Connexions/openstax-cms,Connexions/openstax-cms,openstax/openstax-cms,openstax/openstax-cms,openstax/openstax-cms
de56d3d78f546750849d2ba915e426a5e40c5d8d
account_fiscal_position_no_source_tax/account.py
account_fiscal_position_no_source_tax/account.py
from openerp import models, api, fields class account_fiscal_position(models.Model): _inherit = 'account.fiscal.position' @api.v7 def map_tax(self, cr, uid, fposition_id, taxes, context=None): result = super(account_fiscal_position, self).map_tax( cr, uid, fposition_id, taxes, context=context) taxes_without_src_ids = [ x.tax_dest_id.id for x in fposition_id.tax_ids if not x.tax_src_id] result = set(result) | set(taxes_without_src_ids) return list(result) @api.v8 # noqa def map_tax(self, taxes): result = super(account_fiscal_position, self).map_tax(taxes) taxes_without_src_ids = [ x.tax_dest_id.id for x in self.tax_ids if not x.tax_src_id] result += result.browse(taxes_without_src_ids) return result class account_fiscal_position_tax(models.Model): _inherit = 'account.fiscal.position.tax' tax_src_id = fields.Many2one(required=False)
from openerp import models, api, fields class account_fiscal_position(models.Model): _inherit = 'account.fiscal.position' @api.v7 def map_tax(self, cr, uid, fposition_id, taxes, context=None): result = super(account_fiscal_position, self).map_tax( cr, uid, fposition_id, taxes, context=context) print 'fposition_id', fposition_id if fposition_id: taxes_without_src_ids = [ x.tax_dest_id.id for x in fposition_id.tax_ids if not x.tax_src_id] result = set(result) | set(taxes_without_src_ids) return list(result) @api.v8 # noqa def map_tax(self, taxes): result = super(account_fiscal_position, self).map_tax(taxes) taxes_without_src_ids = [ x.tax_dest_id.id for x in self.tax_ids if not x.tax_src_id] result += result.browse(taxes_without_src_ids) return result class account_fiscal_position_tax(models.Model): _inherit = 'account.fiscal.position.tax' tax_src_id = fields.Many2one(required=False)
FIX fiscal position no source tax
FIX fiscal position no source tax
Python
agpl-3.0
levkar/odoo-addons,HBEE/odoo-addons,ingadhoc/product,syci/ingadhoc-odoo-addons,adhoc-dev/odoo-addons,ingadhoc/account-financial-tools,jorsea/odoo-addons,adhoc-dev/odoo-addons,syci/ingadhoc-odoo-addons,dvitme/odoo-addons,bmya/odoo-addons,ClearCorp/account-financial-tools,dvitme/odoo-addons,ingadhoc/sale,adhoc-dev/odoo-addons,HBEE/odoo-addons,sysadminmatmoz/ingadhoc,levkar/odoo-addons,ingadhoc/product,ingadhoc/sale,ingadhoc/partner,bmya/odoo-addons,levkar/odoo-addons,jorsea/odoo-addons,ingadhoc/odoo-addons,ClearCorp/account-financial-tools,dvitme/odoo-addons,sysadminmatmoz/ingadhoc,bmya/odoo-addons,ingadhoc/account-payment,ingadhoc/odoo-addons,maljac/odoo-addons,adhoc-dev/account-financial-tools,ingadhoc/sale,maljac/odoo-addons,ingadhoc/sale,sysadminmatmoz/ingadhoc,jorsea/odoo-addons,syci/ingadhoc-odoo-addons,levkar/odoo-addons,maljac/odoo-addons,ingadhoc/account-invoicing,HBEE/odoo-addons,ingadhoc/odoo-addons,adhoc-dev/account-financial-tools,ingadhoc/stock,ingadhoc/account-analytic
bf39b4dbe258e62b6172b177fc9e6cf8a0c44f9a
expr/common.py
expr/common.py
#!/usr/bin/env python # vim: set fileencoding=UTF-8 : from __future__ import print_function ADD_OP = '+' MULTIPLY_OP = '*' OPERATORS = [ADD_OP, MULTIPLY_OP] def pprint_expr_trees(trees): from parser import ExprParser print('[') for t in trees: print(' ', ExprParser(t)) print(']')
#!/usr/bin/env python # vim: set fileencoding=UTF-8 : from __future__ import print_function ADD_OP = '+' MULTIPLY_OP = '*' OPERATORS = [ADD_OP, MULTIPLY_OP] def pprint_expr_trees(trees): print('[') for t in trees: print(' ', t) print(']')
Update pprint_expr_trees to adopt Expr
Update pprint_expr_trees to adopt Expr
Python
mit
admk/soap
4c092df630ee645c510199031503585d2b731668
dht.py
dht.py
#!/usr/bin/env python import time import thread import Adafruit_DHT as dht import config import gpio_lock h = 0.0 t = 0.0 def get_ht_thread(): global h global t while True: gpio_lock.acquire() ht = dht.read_retry(dht.DHT22, config.DHT22_GPIO_NUM) gpio_lock.release() h = '{0:0.1f}'.format(ht[0]) t = '{0:0.1f}'.format(ht[1]) time.sleep(2) def get_ht(): return (h, t) thread.start_new_thread(get_ht_thread, ()) if __name__ == '__main__': ht = get_ht() print('The humidity and temperature:') print(ht)
#!/usr/bin/env python import time import thread import string import Adafruit_DHT as dht import config import gpio_lock h = 0.0 t = 0.0 def get_ht_thread(): global h global t while True: gpio_lock.acquire() ht = dht.read_retry(dht.DHT22, config.DHT22_GPIO_NUM) gpio_lock.release() h = '{0:0.1f}'.format(ht[0]) t = '{0:0.1f}'.format(ht[1]) h = string.atof(h) t = string.atof(t) time.sleep(2) def get_ht(): return (h, t) thread.start_new_thread(get_ht_thread, ()) if __name__ == '__main__': ht = get_ht() print('The humidity and temperature:') print(ht)
Change a report data format
Change a report data format
Python
mit
yunbademo/yunba-smarthome,yunbademo/yunba-smarthome
cf162c1e0c629883b009e0e6d327e08e8fd5f33d
run.py
run.py
import sys from app.app import create_app environment = sys.argv[1] port = int(sys.argv[2]) debug = sys.argv[3] == "true" app = create_app(environment=environment, port=port) print("\nApplication staring...") print(" Environment: " + str(environment)) print(" Port: " + str(port)) print(" Debug: " + str(debug)) if debug: app.run(debug=True, use_reloader=False, port=port) else: app.run(debug=False, use_reloader=False, port=port, host='0.0.0.0')
import sys from app.app import create_app environment = sys.argv[1] port = int(sys.argv[2]) debug = sys.argv[3] == "true" app = create_app(environment=environment, port=port) print("\nApplication staring...") print(" Environment: " + str(environment)) print(" Port: " + str(port)) print(" Debug: " + str(debug)) app.run(debug=debug, use_reloader=False, port=port, host='0.0.0.0')
Debug mode should not change network settings
Debug mode should not change network settings
Python
apache-2.0
otto-de/gatekeeper,otto-de/gatekeeper,otto-de/gatekeeper,otto-de/gatekeeper
01b8f325b0108ca1d1456fd2510e2d7fce678a57
turbustat/tests/test_pspec.py
turbustat/tests/test_pspec.py
# Licensed under an MIT open source license - see LICENSE ''' Test functions for PSpec ''' from unittest import TestCase import numpy as np import numpy.testing as npt from ..statistics import PowerSpectrum, PSpec_Distance from ._testing_data import \ dataset1, dataset2, computed_data, computed_distances class testPSpec(TestCase): def setUp(self): self.dataset1 = dataset1 self.dataset2 = dataset2 def test_PSpec_method(self): self.tester = \ PowerSpectrum(dataset1["moment0"], weights=dataset1["moment0_error"][0] ** 2.) self.tester.run() npt.assert_allclose(self.tester.ps1D, computed_data['pspec_val']) def test_PSpec_distance(self): self.tester_dist = \ PSpec_Distance(dataset1["moment0"], dataset2["moment0"], weights1=dataset1["moment0_error"][0] ** 2., weights2=dataset2["moment0_error"][0] ** 2.) self.tester_dist.distance_metric() npt.assert_almost_equal(self.tester_dist.distance, computed_distances['pspec_distance'])
# Licensed under an MIT open source license - see LICENSE ''' Test functions for PSpec ''' from unittest import TestCase import numpy as np import numpy.testing as npt from ..statistics import PowerSpectrum, PSpec_Distance from ._testing_data import \ dataset1, dataset2, computed_data, computed_distances class testPSpec(TestCase): def setUp(self): self.dataset1 = dataset1 self.dataset2 = dataset2 def test_PSpec_method(self): self.tester = \ PowerSpectrum(dataset1["moment0"], weights=dataset1["moment0_error"][0] ** 2.) self.tester.run() npt.assert_allclose(self.tester.ps1D, computed_data['pspec_val']) def test_PSpec_distance(self): self.tester_dist = \ PSpec_Distance(dataset1["moment0"], dataset2["moment0"], weights1=dataset1["moment0_error"][0] ** 2., weights2=dataset2["moment0_error"][0] ** 2.) self.tester_dist.distance_metric() npt.assert_almost_equal(self.tester_dist.distance, computed_distances['pspec_distance']) def test_pspec_nonequal_shape(): mom0_sliced = dataset1["moment0"][0][:16, :] mom0_hdr = dataset1["moment0"][1] test = PowerSpectrum((mom0_sliced, mom0_hdr)).run() test_T = PowerSpectrum((mom0_sliced.T, mom0_hdr)).run() npt.assert_almost_equal(test.slope, test_T.slope, decimal=7)
Add test to ensure power spectrum slope is same w/ transposed array
Add test to ensure power spectrum slope is same w/ transposed array
Python
mit
Astroua/TurbuStat,e-koch/TurbuStat
63946ef78a842b82064b560dd0f73c9a5fe7ac82
puzzle/urls.py
puzzle/urls.py
""" Map puzzle URLs to views. Also maps the root URL to the latest puzzle. """ from django.conf.urls import include, url from django.contrib.auth import views as auth_views from puzzle import views from puzzle.feeds import PuzzleFeed urlpatterns = [ #pylint: disable=invalid-name url(r'^$', views.latest, name='latest'), url(r'^login/$', auth_views.login, {'template_name': 'puzzle/login.html'}, name='login'), url(r'^logout/$', auth_views.logout, {'next_page': 'latest'}, name='logout'), url(r'^create/$', views.create, name='create'), url(r'^save/$', views.save, name='save'), url(r'^rss/$', PuzzleFeed(), name='rss'), url(r'^archive/$', views.users, name='users'), url(r'^profile/$', views.profile, name='profile'), url(r'^puzzle/(?P<number>\d+)/$', views.puzzle_redirect), url(r'^setter/(?P<author>\w+)/(?P<number>\d+)/', include([ url(r'^$', views.puzzle, name='puzzle'), url(r'^solution/$', views.solution, name='solution'), url(r'^edit/$', views.edit, name='edit'), ])), ]
""" Map puzzle URLs to views. Also maps the root URL to the latest puzzle. """ from django.conf.urls import include, url from django.contrib.auth import views as auth_views from puzzle import views from puzzle.feeds import PuzzleFeed urlpatterns = [ #pylint: disable=invalid-name url(r'^$', views.latest, name='latest'), url(r'^login/$', auth_views.LoginView.as_view(template_name='puzzle/login.html'), name='login'), url(r'^logout/$', auth_views.LogoutView.as_view(next_page='latest'), name='logout'), url(r'^create/$', views.create, name='create'), url(r'^save/$', views.save, name='save'), url(r'^rss/$', PuzzleFeed(), name='rss'), url(r'^archive/$', views.users, name='users'), url(r'^profile/$', views.profile, name='profile'), url(r'^puzzle/(?P<number>\d+)/$', views.puzzle_redirect), url(r'^setter/(?P<author>\w+)/(?P<number>\d+)/', include([ url(r'^$', views.puzzle, name='puzzle'), url(r'^solution/$', views.solution, name='solution'), url(r'^edit/$', views.edit, name='edit'), ])), ]
Replace deprecated login/logout function-based views
Replace deprecated login/logout function-based views
Python
mit
jomoore/threepins,jomoore/threepins,jomoore/threepins
afeccc72042f1cfa69c07814420b3aeedeeab9e5
main.py
main.py
# -*- coding: utf-8 -*- import sys from PyQt4 import QtCore, QtGui from UI.utilities.account_manager import AccountManager from UI.mainUI import MainUI from UI.initial_window import InitialWindowUI if __name__ == "__main__": QtCore.QCoreApplication.setAttribute(QtCore.Qt.AA_X11InitThreads) app = QtGui.QApplication(sys.argv) locale = QtCore.QLocale.system().name() qtTranslator = QtCore.QTranslator() # try to load translation if qtTranslator.load("" + locale, ":tra/"): app.installTranslator(qtTranslator) account_manager = AccountManager() if account_manager.if_logged_in(): myapp = MainUI() myapp.show() else: initial_window = InitialWindowUI() initial_window.show() sys.exit(app.exec_())
# -*- coding: utf-8 -*- import sys from PyQt4 import QtCore, QtGui from UI.utilities.account_manager import AccountManager from UI.mainUI import MainUI from UI.initial_window import InitialWindowUI import configparser # needed for Windows package builder if __name__ == "__main__": QtCore.QCoreApplication.setAttribute(QtCore.Qt.AA_X11InitThreads) app = QtGui.QApplication(sys.argv) locale = QtCore.QLocale.system().name() qtTranslator = QtCore.QTranslator() # try to load translation if qtTranslator.load("" + locale, ":tra/"): app.installTranslator(qtTranslator) account_manager = AccountManager() if account_manager.if_logged_in(): myapp = MainUI() myapp.show() else: initial_window = InitialWindowUI() initial_window.show() sys.exit(app.exec_())
Add configparser import to avoid windows packager error
Add configparser import to avoid windows packager error
Python
mit
lakewik/storj-gui-client
324beaae091b2bc4699d4840ccd313aa0645b07e
nets.py
nets.py
class FeedForwardNet: pass
from layers import InputLayer, Layer, OutputLayer import math import random class FeedForwardNet(object): def __init__(self, inlayersize, layersize, outlayersize): self._inlayer = InputLayer(inlayersize) self._middlelayer = Layer(layersize) self._outlayer = OutputLayer(outlayersize) self._inlayer.connect_layer(self._middlelayer) self._middlelayer.connect_layer(self._outlayer) @property def neurons(self): return [self._inlayer.neurons, self._middlelayer.neurons, self._outlayer.neurons] def train(self, inputs, targets, verbose=False): ''' inputs: a sequence of floats that map to the input neurons targetlabels: a sequence of floats that are the desired output neuron values. ''' self._inlayer.inputs = inputs self._middlelayer.propagate() self._outlayer.propagate() self._outlayer.backpropagate1(targets) self._middlelayer.backpropagate1() self._outlayer.backpropagate2() self._middlelayer.backpropagate2() if verbose: print("Training results") print("\tInput: {0}".format(inputs)) print("\tTarget output: {0}".format(targets)) print("\tActual output: {0}".format(self._outlayer.outputs)) self.display_signals() print("") raw_input() def predict(self, inputs): ''' inputs: a sequence of floats that map to the input neurons return: a sequence of floats mapped from the output neurons ''' self._inlayer.inputs = inputs self._middlelayer.propagate() self._outlayer.propagate() return self._outlayer.outputs def display_signals(self): col1 = self._inlayer.inputs col2 = [x.signal for x in self._middlelayer.neurons] col3 = self._outlayer.outputs numrows = max(len(col1), len(col2), len(col3)) roundto = 3 #round to print("Signals") print("\tInput\tHidden\tOutput") for row in range(numrows): line = [] for col in col1, col2, col3: if len(col)-1 < row: line.append("") else: element = round(col[row], roundto) element = str(element) line.append(element) print('\t' + '\t'.join(line)) if __name__ == '__main__': f = FeedForwardNet(1, 2, 1) for i in range(50000): f.train((1, 1), (0,)) f.train((1, 0), (1,)) f.train((0, 1), (1,)) f.train((0, 0), (0,)) while True: x = input("Input: ") y = f.predict(x) print("Output: {0}".format(y))
Add main code and feed forward net class
Add main code and feed forward net class It can XOR, but sin function still fails
Python
mit
tmerr/trevornet
e3e890822fb25d76eb60466a8199033f0fde473f
ibmcnx/doc/Documentation.py
ibmcnx/doc/Documentation.py
###### # Create a file (html or markdown) with the output of # - JVMHeap # - LogFiles # - Ports # - Variables # # Author: Christoph Stoettner # Mail: christoph.stoettner@stoeps.de # Documentation: http://scripting101.stoeps.de # # Version: 2.0 # Date: 2014-06-08 # # License: Apache 2.0 # # TODO: Create a menu for file selection import sys import os.path filename = raw_input( 'Path and Filename to Documentation file: ' ) if (os.path.isfile( fileopen )): answer = raw_input( "File exists, Overwrite, Append or Abort? (O|A|X)" ).lower() if answer == "o": sys.stdout = open( filename, "w") elif answer == "a": sys.stdout = open( filename, "a") else: print "Exit" sys.exit() print '# JVM Settings of all AppServers:' execfile( 'ibmcnx/doc/JVMSettings.py' ) print '# Used Ports:' execfile( 'ibmcnx/doc/Ports.py' ) print '# LogFile Settgins:' execfile( 'ibmcnx/doc/LogFiles.py' ) print '# WebSphere Variables' execfile( 'ibmcnx/doc/Variables.py' )
###### # Create a file (html or markdown) with the output of # - JVMHeap # - LogFiles # - Ports # - Variables # # Author: Christoph Stoettner # Mail: christoph.stoettner@stoeps.de # Documentation: http://scripting101.stoeps.de # # Version: 2.0 # Date: 2014-06-08 # # License: Apache 2.0 # # TODO: Create a menu for file selection import sys import os.path filename = raw_input( 'Path and Filename to Documentation file: ' ) if (os.path.isfile( filename )): answer = raw_input( "File exists, Overwrite, Append or Abort? (O|A|X)" ).lower() if answer == "o": sys.stdout = open( filename, "w") elif answer == "a": sys.stdout = open( filename, "a") else: print "Exit" sys.exit() print '# JVM Settings of all AppServers:' execfile( 'ibmcnx/doc/JVMSettings.py' ) print '# Used Ports:' execfile( 'ibmcnx/doc/Ports.py' ) print '# LogFile Settgins:' execfile( 'ibmcnx/doc/LogFiles.py' ) print '# WebSphere Variables' execfile( 'ibmcnx/doc/Variables.py' )
Create documentation of DataSource Settings
8: Create documentation of DataSource Settings Task-Url: http://github.com/stoeps13/ibmcnx2/issues/issue/8
Python
apache-2.0
stoeps13/ibmcnx2,stoeps13/ibmcnx2
ef4da4f081c083d88297795d145529c543d2595e
spam.py
spam.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from sklearn.cross_validation import train_test_split from dataset_meta import DATASET_META from spam.common.utils import get_file_path_list file_path_list = get_file_path_list(DATASET_META) path, classification = zip(*file_path_list) unlabeled_path, labeled_path, \ unlabeled_class, labeled_class = train_test_split( path, classification, test_size=0.1, ) print(len(unlabeled_path)) print(len(unlabeled_class)) print(len(labeled_path)) print(len(labeled_class))
#!/usr/bin/env python # -*- coding: utf-8 -*- from sklearn.cross_validation import train_test_split from dataset_meta import DATASET_META from spam.common.utils import get_file_path_list file_path_list = get_file_path_list(DATASET_META) # transform list of tuple into two list # e.g. [('/path/to/file', 'spam')] ==> ['path/to/file'], ['spam'] path, classification = zip(*file_path_list) # split the data into unlabeled labeled unlabeled_path, labeled_path, \ unlabeled_class, labeled_class = train_test_split( path, classification, test_size=0.1, random_state=0, )
Set random state to 0, add comments and remove print.
Set random state to 0, add comments and remove print.
Python
mit
benigls/spam,benigls/spam
718bd57ff648d431d8986a48d1c66877098c4081
urls.py
urls.py
# -*- coding: utf-8 -*- from django.conf.urls import patterns, include, url from . import methods urlpatterns = patterns('', url(r'^crashreport\/submit\.php$', methods.post_crashreport, name='post_crashreport'), url(r'^issues\.xml$', methods.post_issue, name='post_issue'), )
# -*- coding: utf-8 -*- from django.conf.urls import include, url from . import methods urlpatterns = ( url(r'^crashreport\/submit\.php$', methods.post_crashreport, name='post_crashreport'), url(r'^issues\.xml$', methods.post_issue, name='post_issue'), )
Update to Django 1.11.19 including updates to various dependencies
Update to Django 1.11.19 including updates to various dependencies
Python
mit
mback2k/django-app-bugs
aa054334dfe524e8bf53b1f062e5f2c69f98e439
bucky/main.py
bucky/main.py
import logging import optparse as op import Queue import bucky.carbon as carbon import bucky.collectd as collectd import bucky.statsd as statsd logging.basicConfig(format="[%(levelname)s] %(message)s", level=logging.DEBUG) __usage__ = "%prog [OPTIONS]" def options(): return [] def main(): parser = op.OptionParser(usage=__usage__, option_list=options()) opts, args = parser.parse_args() sampleq = Queue.Queue() cdsrv = collectd.CollectDServer(sampleq) cdsrv.start() stsrv = statsd.StatsDServer(sampleq) stsrv.start() cli = carbon.CarbonClient() while True: try: stat, value, time = sampleq.get(True, 1) cli.send(stat, value, time) except Queue.Empty: pass if __name__ == '__main__': try: main() except KeyboardInterrupt: pass except Exception, e: raise # debug print e
import logging import optparse as op import Queue import bucky.carbon as carbon import bucky.collectd as collectd import bucky.statsd as statsd logging.basicConfig(format="[%(levelname)s] %(message)s", level=logging.DEBUG) __usage__ = "%prog [OPTIONS]" def options(): return [] def main(): parser = op.OptionParser(usage=__usage__, option_list=options()) opts, args = parser.parse_args() sampleq = Queue.Queue() cdsrv = collectd.CollectDServer(sampleq) cdsrv.start() stsrv = statsd.StatsDServer(sampleq) stsrv.start() cli = carbon.CarbonClient() while True: try: stat, value, time = sampleq.get(True, 1) cli.send(stat, value, time) except Queue.Empty: pass if not cdsrv.is_alive(): log.error("collectd server died") break if not stsrv.is_alive(): log.error("statsd server died") break if __name__ == '__main__': try: main() except KeyboardInterrupt: pass except Exception, e: raise # debug print e
Exit if a server thread died
Exit if a server thread died
Python
apache-2.0
JoseKilo/bucky,ewdurbin/bucky,ewdurbin/bucky,Hero1378/bucky,CollabNet/puppet-bucky,CollabNet/puppet-bucky,dimrozakis/bucky,jsiembida/bucky3,JoseKilo/bucky,CollabNet/puppet-bucky,MrSecure/bucky2,MrSecure/bucky2,CollabNet/puppet-bucky,dimrozakis/bucky,trbs/bucky,Hero1378/bucky,trbs/bucky
b9f2a0f9c36a1305bda9f72e35b78eb6a6be80c2
clintools/deploy_settings.py
clintools/deploy_settings.py
from base_settings import * DEBUG = TEMPLATE_DEBUG = False ALLOWED_HOSTS = ['pttrack.snhc.wustl.edu'] with open(os.path.join(BASE_DIR, 'secrets/secret_key.txt')) as f: SECRET_KEY = f.read().strip() SECURE_CONTENT_TYPE_NOSNIFF = True SECURE_BROWSER_XSS_FILTER = True # it would be nice to enable this, but we go w/o SSL from the WashU load # balancer, meaning infinite redirects if we enable this :( # SECURE_SSL_REDIRECT = True SESSION_COOKIE_SECURE = True CSRF_COOKIE_SECURE = True CSRF_COOKIE_HTTPONLY = True X_FRAME_OPTIONS = 'DENY' DEFAULT_FROM_EMAIL = "webmaster@pttrack.snhc.wustl.edu" SERVER_EMAIL = "admin@pttrack.snhc.wustl.edu" with open(os.path.join(BASE_DIR, 'secrets/database_password.txt')) as f: DB_PASSWORD = f.read().strip() DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': 'osler', 'USER': 'django', 'PASSWORD': DB_PASSWORD, 'HOST': 'localhost', # Or an IP Address that your DB is hosted on 'PORT': '3306', } }
from base_settings import * DEBUG = TEMPLATE_DEBUG = False ALLOWED_HOSTS = ['pttrack.snhc.wustl.edu'] with open(os.path.join(BASE_DIR, 'secrets/secret_key.txt')) as f: SECRET_KEY = f.read().strip() SECURE_CONTENT_TYPE_NOSNIFF = True SECURE_BROWSER_XSS_FILTER = True # it would be nice to enable this, but we go w/o SSL from the WashU load # balancer, meaning infinite redirects if we enable this :( # SECURE_SSL_REDIRECT = True SESSION_COOKIE_SECURE = True CSRF_COOKIE_SECURE = True CSRF_COOKIE_HTTPONLY = True X_FRAME_OPTIONS = 'DENY' DEFAULT_FROM_EMAIL = "webmaster@pttrack.snhc.wustl.edu" SERVER_EMAIL = "admin@pttrack.snhc.wustl.edu" with open(os.path.join(BASE_DIR, 'secrets/database_password.txt')) as f: DB_PASSWORD = f.read().strip() DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': 'osler', 'USER': 'django', 'PASSWORD': DB_PASSWORD, # 'HOST': 'localhost', # Or an IP Address that your DB is hosted on 'HOST': '127.0.0.1', 'PORT': '3306', } }
Change DB to ip loopback from 'localhost' which doesn't work for some reason on halstead.
Change DB to ip loopback from 'localhost' which doesn't work for some reason on halstead.
Python
mit
SaturdayNeighborhoodHealthClinic/clintools,SaturdayNeighborhoodHealthClinic/clintools,SaturdayNeighborhoodHealthClinic/clintools
d5240626528547e112c78af633c1f4494a5c6d91
common/lib/xmodule/xmodule/modulestore/django.py
common/lib/xmodule/xmodule/modulestore/django.py
""" Module that provides a connection to the ModuleStore specified in the django settings. Passes settings.MODULESTORE as kwargs to MongoModuleStore """ from __future__ import absolute_import from importlib import import_module from django.conf import settings _MODULESTORES = {} FUNCTION_KEYS = ['render_template'] def load_function(path): """ Load a function by name. path is a string of the form "path.to.module.function" returns the imported python object `function` from `path.to.module` """ module_path, _, name = path.rpartition('.') return getattr(import_module(module_path), name) def modulestore(name='default'): global _MODULESTORES if name not in _MODULESTORES: class_ = load_function(settings.MODULESTORE[name]['ENGINE']) options = {} options.update(settings.MODULESTORE[name]['OPTIONS']) for key in FUNCTION_KEYS: if key in options: options[key] = load_function(options[key]) _MODULESTORES[name] = class_( **options ) return _MODULESTORES[name] # Initialize the modulestores immediately for store_name in settings.MODULESTORE: modulestore(store_name)
""" Module that provides a connection to the ModuleStore specified in the django settings. Passes settings.MODULESTORE as kwargs to MongoModuleStore """ from __future__ import absolute_import from importlib import import_module from os import environ from django.conf import settings _MODULESTORES = {} FUNCTION_KEYS = ['render_template'] def load_function(path): """ Load a function by name. path is a string of the form "path.to.module.function" returns the imported python object `function` from `path.to.module` """ module_path, _, name = path.rpartition('.') return getattr(import_module(module_path), name) def modulestore(name='default'): global _MODULESTORES if name not in _MODULESTORES: class_ = load_function(settings.MODULESTORE[name]['ENGINE']) options = {} options.update(settings.MODULESTORE[name]['OPTIONS']) for key in FUNCTION_KEYS: if key in options: options[key] = load_function(options[key]) _MODULESTORES[name] = class_( **options ) return _MODULESTORES[name] if 'DJANGO_SETTINGS_MODULE' in environ: # Initialize the modulestores immediately for store_name in settings.MODULESTORE: modulestore(store_name)
Put quick check so we don't load course modules on init unless we're actually running in Django
Put quick check so we don't load course modules on init unless we're actually running in Django
Python
agpl-3.0
knehez/edx-platform,sudheerchintala/LearnEraPlatForm,lduarte1991/edx-platform,nanolearningllc/edx-platform-cypress,eestay/edx-platform,prarthitm/edxplatform,caesar2164/edx-platform,atsolakid/edx-platform,chauhanhardik/populo,CredoReference/edx-platform,motion2015/edx-platform,shabab12/edx-platform,shubhdev/openedx,Shrhawk/edx-platform,prarthitm/edxplatform,Softmotions/edx-platform,jruiperezv/ANALYSE,jamesblunt/edx-platform,deepsrijit1105/edx-platform,unicri/edx-platform,arbrandes/edx-platform,itsjeyd/edx-platform,ak2703/edx-platform,DNFcode/edx-platform,cselis86/edx-platform,knehez/edx-platform,cpennington/edx-platform,bigdatauniversity/edx-platform,wwj718/edx-platform,jazztpt/edx-platform,nanolearning/edx-platform,ahmadio/edx-platform,OmarIthawi/edx-platform,analyseuc3m/ANALYSE-v1,RPI-OPENEDX/edx-platform,wwj718/edx-platform,halvertoluke/edx-platform,torchingloom/edx-platform,nanolearningllc/edx-platform-cypress,rue89-tech/edx-platform,nttks/jenkins-test,martynovp/edx-platform,deepsrijit1105/edx-platform,jswope00/GAI,shubhdev/edxOnBaadal,nikolas/edx-platform,msegado/edx-platform,pabloborrego93/edx-platform,doganov/edx-platform,msegado/edx-platform,jonathan-beard/edx-platform,CredoReference/edx-platform,TsinghuaX/edx-platform,solashirai/edx-platform,adoosii/edx-platform,apigee/edx-platform,defance/edx-platform,andyzsf/edx,unicri/edx-platform,hmcmooc/muddx-platform,cpennington/edx-platform,wwj718/ANALYSE,vasyarv/edx-platform,hamzehd/edx-platform,kalebhartje/schoolboost,olexiim/edx-platform,beni55/edx-platform,nanolearning/edx-platform,mtlchun/edx,iivic/BoiseStateX,caesar2164/edx-platform,jonathan-beard/edx-platform,kxliugang/edx-platform,shurihell/testasia,chudaol/edx-platform,ampax/edx-platform-backup,atsolakid/edx-platform,rationalAgent/edx-platform-custom,pelikanchik/edx-platform,simbs/edx-platform,hkawasaki/kawasaki-aio8-0,kamalx/edx-platform,jazkarta/edx-platform-for-isc,UXE/local-edx,eestay/edx-platform,a-parhom/edx-platform,morpheby/levelup-by,ahmedaljazzar/edx-platform,bitifirefly/edx-platform,peterm-itr/edx-platform,raccoongang/edx-platform,Edraak/edx-platform,Shrhawk/edx-platform,kmoocdev/edx-platform,leansoft/edx-platform,atsolakid/edx-platform,EduPepperPD/pepper2013,hamzehd/edx-platform,gsehub/edx-platform,morenopc/edx-platform,apigee/edx-platform,SivilTaram/edx-platform,chand3040/cloud_that,CourseTalk/edx-platform,fintech-circle/edx-platform,MSOpenTech/edx-platform,B-MOOC/edx-platform,beni55/edx-platform,zhenzhai/edx-platform,dsajkl/reqiop,zofuthan/edx-platform,fly19890211/edx-platform,edry/edx-platform,atsolakid/edx-platform,adoosii/edx-platform,zerobatu/edx-platform,xinjiguaike/edx-platform,tanmaykm/edx-platform,simbs/edx-platform,nttks/jenkins-test,TsinghuaX/edx-platform,eemirtekin/edx-platform,ak2703/edx-platform,vismartltd/edx-platform,DefyVentures/edx-platform,devs1991/test_edx_docmode,olexiim/edx-platform,hastexo/edx-platform,Ayub-Khan/edx-platform,cselis86/edx-platform,tiagochiavericosta/edx-platform,iivic/BoiseStateX,teltek/edx-platform,dsajkl/reqiop,DefyVentures/edx-platform,marcore/edx-platform,kxliugang/edx-platform,teltek/edx-platform,xuxiao19910803/edx-platform,philanthropy-u/edx-platform,Softmotions/edx-platform,edry/edx-platform,appliedx/edx-platform,longmen21/edx-platform,analyseuc3m/ANALYSE-v1,edx-solutions/edx-platform,raccoongang/edx-platform,unicri/edx-platform,devs1991/test_edx_docmode,hkawasaki/kawasaki-aio8-2,ampax/edx-platform,zubair-arbi/edx-platform,yokose-ks/edx-platform,xingyepei/edx-platform,WatanabeYasumasa/edx-platform,arbrandes/edx-platform,motion2015/edx-platform,SravanthiSinha/edx-platform,wwj718/ANALYSE,ahmedaljazzar/edx-platform,ESOedX/edx-platform,UOMx/edx-platform,caesar2164/edx-platform,xinjiguaike/edx-platform,IITBinterns13/edx-platform-dev,vasyarv/edx-platform,jazkarta/edx-platform,marcore/edx-platform,fly19890211/edx-platform,4eek/edx-platform,mjg2203/edx-platform-seas,nanolearningllc/edx-platform-cypress,appsembler/edx-platform,a-parhom/edx-platform,tiagochiavericosta/edx-platform,raccoongang/edx-platform,shubhdev/edx-platform,naresh21/synergetics-edx-platform,gymnasium/edx-platform,tanmaykm/edx-platform,a-parhom/edx-platform,carsongee/edx-platform,Stanford-Online/edx-platform,hkawasaki/kawasaki-aio8-2,hmcmooc/muddx-platform,y12uc231/edx-platform,zerobatu/edx-platform,chauhanhardik/populo_2,IITBinterns13/edx-platform-dev,ampax/edx-platform,syjeon/new_edx,kmoocdev2/edx-platform,eemirtekin/edx-platform,CourseTalk/edx-platform,vismartltd/edx-platform,eduNEXT/edunext-platform,xuxiao19910803/edx,yokose-ks/edx-platform,syjeon/new_edx,J861449197/edx-platform,IONISx/edx-platform,louyihua/edx-platform,romain-li/edx-platform,xinjiguaike/edx-platform,martynovp/edx-platform,edx/edx-platform,sameetb-cuelogic/edx-platform-test,angelapper/edx-platform,DefyVentures/edx-platform,nanolearning/edx-platform,ahmedaljazzar/edx-platform,Ayub-Khan/edx-platform,alexthered/kienhoc-platform,jazkarta/edx-platform,AkA84/edx-platform,Kalyzee/edx-platform,LICEF/edx-platform,zadgroup/edx-platform,mushtaqak/edx-platform,shubhdev/edxOnBaadal,hkawasaki/kawasaki-aio8-1,jazztpt/edx-platform,JioEducation/edx-platform,ferabra/edx-platform,SivilTaram/edx-platform,cyanna/edx-platform,beacloudgenius/edx-platform,y12uc231/edx-platform,cyanna/edx-platform,mjg2203/edx-platform-seas,utecuy/edx-platform,hastexo/edx-platform,mitocw/edx-platform,stvstnfrd/edx-platform,Livit/Livit.Learn.EdX,Edraak/circleci-edx-platform,amir-qayyum-khan/edx-platform,nanolearning/edx-platform,cyanna/edx-platform,alexthered/kienhoc-platform,mcgachey/edx-platform,mcgachey/edx-platform,shubhdev/openedx,rue89-tech/edx-platform,ovnicraft/edx-platform,JCBarahona/edX,EDUlib/edx-platform,cognitiveclass/edx-platform,Shrhawk/edx-platform,miptliot/edx-platform,ahmadiga/min_edx,nttks/edx-platform,teltek/edx-platform,praveen-pal/edx-platform,EduPepperPD/pepper2013,inares/edx-platform,shashank971/edx-platform,cselis86/edx-platform,utecuy/edx-platform,WatanabeYasumasa/edx-platform,alexthered/kienhoc-platform,jazkarta/edx-platform-for-isc,shubhdev/edx-platform,miptliot/edx-platform,jazkarta/edx-platform-for-isc,auferack08/edx-platform,kalebhartje/schoolboost,jbassen/edx-platform,jbassen/edx-platform,pepeportela/edx-platform,JCBarahona/edX,martynovp/edx-platform,peterm-itr/edx-platform,vasyarv/edx-platform,naresh21/synergetics-edx-platform,CredoReference/edx-platform,hkawasaki/kawasaki-aio8-1,jamesblunt/edx-platform,bitifirefly/edx-platform,apigee/edx-platform,xingyepei/edx-platform,jolyonb/edx-platform,hastexo/edx-platform,10clouds/edx-platform,mcgachey/edx-platform,bdero/edx-platform,shubhdev/edx-platform,simbs/edx-platform,nagyistoce/edx-platform,valtech-mooc/edx-platform,nttks/jenkins-test,torchingloom/edx-platform,pelikanchik/edx-platform,antoviaque/edx-platform,synergeticsedx/deployment-wipro,bdero/edx-platform,cecep-edu/edx-platform,zofuthan/edx-platform,rhndg/openedx,tanmaykm/edx-platform,doismellburning/edx-platform,jelugbo/tundex,don-github/edx-platform,rismalrv/edx-platform,syjeon/new_edx,IITBinterns13/edx-platform-dev,dsajkl/123,msegado/edx-platform,cselis86/edx-platform,jonathan-beard/edx-platform,chrisndodge/edx-platform,EDUlib/edx-platform,devs1991/test_edx_docmode,ampax/edx-platform-backup,EduPepperPD/pepper2013,J861449197/edx-platform,benpatterson/edx-platform,leansoft/edx-platform,jzoldak/edx-platform,Livit/Livit.Learn.EdX,nttks/jenkins-test,deepsrijit1105/edx-platform,J861449197/edx-platform,cognitiveclass/edx-platform,jonathan-beard/edx-platform,hkawasaki/kawasaki-aio8-0,IONISx/edx-platform,zhenzhai/edx-platform,simbs/edx-platform,TeachAtTUM/edx-platform,xuxiao19910803/edx,abdoosh00/edraak,proversity-org/edx-platform,waheedahmed/edx-platform,valtech-mooc/edx-platform,LearnEra/LearnEraPlaftform,bigdatauniversity/edx-platform,UXE/local-edx,kmoocdev/edx-platform,zofuthan/edx-platform,kmoocdev2/edx-platform,jruiperezv/ANALYSE,jruiperezv/ANALYSE,iivic/BoiseStateX,pku9104038/edx-platform,CourseTalk/edx-platform,praveen-pal/edx-platform,edx/edx-platform,B-MOOC/edx-platform,solashirai/edx-platform,solashirai/edx-platform,UOMx/edx-platform,bigdatauniversity/edx-platform,yokose-ks/edx-platform,4eek/edx-platform,fly19890211/edx-platform,hmcmooc/muddx-platform,mjirayu/sit_academy,lduarte1991/edx-platform,zhenzhai/edx-platform,longmen21/edx-platform,jamiefolsom/edx-platform,ubc/edx-platform,jazztpt/edx-platform,auferack08/edx-platform,auferack08/edx-platform,kxliugang/edx-platform,dkarakats/edx-platform,jbzdak/edx-platform,pomegranited/edx-platform,inares/edx-platform,zhenzhai/edx-platform,cselis86/edx-platform,mcgachey/edx-platform,bitifirefly/edx-platform,dcosentino/edx-platform,halvertoluke/edx-platform,synergeticsedx/deployment-wipro,kursitet/edx-platform,shabab12/edx-platform,kalebhartje/schoolboost,ESOedX/edx-platform,nttks/edx-platform,EduPepperPDTesting/pepper2013-testing,zadgroup/edx-platform,IndonesiaX/edx-platform,IONISx/edx-platform,MSOpenTech/edx-platform,Softmotions/edx-platform,TeachAtTUM/edx-platform,Lektorium-LLC/edx-platform,SravanthiSinha/edx-platform,ZLLab-Mooc/edx-platform,chauhanhardik/populo,carsongee/edx-platform,jswope00/griffinx,jzoldak/edx-platform,BehavioralInsightsTeam/edx-platform,jbzdak/edx-platform,Edraak/edx-platform,rhndg/openedx,vikas1885/test1,shashank971/edx-platform,shubhdev/edxOnBaadal,xuxiao19910803/edx-platform,Edraak/edraak-platform,Ayub-Khan/edx-platform,wwj718/edx-platform,morenopc/edx-platform,utecuy/edx-platform,jazkarta/edx-platform-for-isc,adoosii/edx-platform,edx-solutions/edx-platform,hamzehd/edx-platform,xuxiao19910803/edx,vikas1885/test1,jelugbo/tundex,motion2015/a3,kursitet/edx-platform,Kalyzee/edx-platform,dkarakats/edx-platform,hastexo/edx-platform,ahmadio/edx-platform,polimediaupv/edx-platform,wwj718/ANALYSE,ferabra/edx-platform,BehavioralInsightsTeam/edx-platform,UOMx/edx-platform,gymnasium/edx-platform,vismartltd/edx-platform,IONISx/edx-platform,jzoldak/edx-platform,mitocw/edx-platform,benpatterson/edx-platform,ahmedaljazzar/edx-platform,miptliot/edx-platform,hkawasaki/kawasaki-aio8-1,Endika/edx-platform,vikas1885/test1,vismartltd/edx-platform,morenopc/edx-platform,edry/edx-platform,playm2mboy/edx-platform,jolyonb/edx-platform,cecep-edu/edx-platform,shubhdev/edxOnBaadal,fintech-circle/edx-platform,jjmiranda/edx-platform,jjmiranda/edx-platform,mushtaqak/edx-platform,benpatterson/edx-platform,Livit/Livit.Learn.EdX,eduNEXT/edunext-platform,gymnasium/edx-platform,arifsetiawan/edx-platform,mcgachey/edx-platform,ubc/edx-platform,chand3040/cloud_that,pelikanchik/edx-platform,zubair-arbi/edx-platform,stvstnfrd/edx-platform,lduarte1991/edx-platform,chudaol/edx-platform,rhndg/openedx,PepperPD/edx-pepper-platform,louyihua/edx-platform,unicri/edx-platform,antonve/s4-project-mooc,J861449197/edx-platform,SivilTaram/edx-platform,appsembler/edx-platform,valtech-mooc/edx-platform,xingyepei/edx-platform,franosincic/edx-platform,nanolearningllc/edx-platform-cypress,Edraak/edraak-platform,fly19890211/edx-platform,Livit/Livit.Learn.EdX,alexthered/kienhoc-platform,pomegranited/edx-platform,nikolas/edx-platform,Shrhawk/edx-platform,stvstnfrd/edx-platform,LearnEra/LearnEraPlaftform,chudaol/edx-platform,CredoReference/edx-platform,eduNEXT/edx-platform,abdoosh00/edx-rtl-final,antoviaque/edx-platform,synergeticsedx/deployment-wipro,valtech-mooc/edx-platform,MakeHer/edx-platform,abdoosh00/edx-rtl-final,motion2015/edx-platform,shubhdev/openedx,JCBarahona/edX,franosincic/edx-platform,nikolas/edx-platform,ZLLab-Mooc/edx-platform,Lektorium-LLC/edx-platform,kalebhartje/schoolboost,bdero/edx-platform,ampax/edx-platform-backup,4eek/edx-platform,beacloudgenius/edx-platform,analyseuc3m/ANALYSE-v1,Endika/edx-platform,MSOpenTech/edx-platform,nagyistoce/edx-platform,B-MOOC/edx-platform,nikolas/edx-platform,pepeportela/edx-platform,y12uc231/edx-platform,appliedx/edx-platform,cecep-edu/edx-platform,openfun/edx-platform,auferack08/edx-platform,dsajkl/123,Softmotions/edx-platform,SravanthiSinha/edx-platform,Edraak/circleci-edx-platform,angelapper/edx-platform,valtech-mooc/edx-platform,OmarIthawi/edx-platform,utecuy/edx-platform,kmoocdev2/edx-platform,mjirayu/sit_academy,tiagochiavericosta/edx-platform,etzhou/edx-platform,don-github/edx-platform,hkawasaki/kawasaki-aio8-2,dkarakats/edx-platform,SivilTaram/edx-platform,kamalx/edx-platform,Unow/edx-platform,rationalAgent/edx-platform-custom,jswope00/GAI,dcosentino/edx-platform,MakeHer/edx-platform,devs1991/test_edx_docmode,ahmadiga/min_edx,jamiefolsom/edx-platform,shashank971/edx-platform,mtlchun/edx,antoviaque/edx-platform,franosincic/edx-platform,stvstnfrd/edx-platform,B-MOOC/edx-platform,longmen21/edx-platform,CourseTalk/edx-platform,nanolearning/edx-platform,dcosentino/edx-platform,jswope00/GAI,dsajkl/123,Semi-global/edx-platform,motion2015/edx-platform,amir-qayyum-khan/edx-platform,devs1991/test_edx_docmode,shurihell/testasia,Kalyzee/edx-platform,pabloborrego93/edx-platform,hamzehd/edx-platform,wwj718/edx-platform,chudaol/edx-platform,ferabra/edx-platform,knehez/edx-platform,hkawasaki/kawasaki-aio8-1,leansoft/edx-platform,kxliugang/edx-platform,4eek/edx-platform,mahendra-r/edx-platform,Endika/edx-platform,polimediaupv/edx-platform,eemirtekin/edx-platform,y12uc231/edx-platform,ovnicraft/edx-platform,olexiim/edx-platform,JioEducation/edx-platform,mushtaqak/edx-platform,bigdatauniversity/edx-platform,J861449197/edx-platform,kursitet/edx-platform,abdoosh00/edx-rtl-final,pabloborrego93/edx-platform,appsembler/edx-platform,hkawasaki/kawasaki-aio8-0,vikas1885/test1,xingyepei/edx-platform,DNFcode/edx-platform,naresh21/synergetics-edx-platform,EDUlib/edx-platform,jbassen/edx-platform,zerobatu/edx-platform,SravanthiSinha/edx-platform,kxliugang/edx-platform,Edraak/circleci-edx-platform,eestay/edx-platform,etzhou/edx-platform,praveen-pal/edx-platform,louyihua/edx-platform,gsehub/edx-platform,xuxiao19910803/edx-platform,prarthitm/edxplatform,rismalrv/edx-platform,kmoocdev/edx-platform,Edraak/circleci-edx-platform,shashank971/edx-platform,jzoldak/edx-platform,MSOpenTech/edx-platform,vasyarv/edx-platform,iivic/BoiseStateX,morenopc/edx-platform,TsinghuaX/edx-platform,eestay/edx-platform,Semi-global/edx-platform,procangroup/edx-platform,etzhou/edx-platform,vikas1885/test1,jruiperezv/ANALYSE,devs1991/test_edx_docmode,nanolearningllc/edx-platform-cypress,ubc/edx-platform,dkarakats/edx-platform,mahendra-r/edx-platform,wwj718/ANALYSE,nttks/edx-platform,EduPepperPDTesting/pepper2013-testing,chudaol/edx-platform,polimediaupv/edx-platform,eduNEXT/edx-platform,doismellburning/edx-platform,LICEF/edx-platform,kursitet/edx-platform,ubc/edx-platform,antonve/s4-project-mooc,zubair-arbi/edx-platform,torchingloom/edx-platform,louyihua/edx-platform,UXE/local-edx,morpheby/levelup-by,pabloborrego93/edx-platform,angelapper/edx-platform,EduPepperPDTesting/pepper2013-testing,cyanna/edx-platform,EduPepperPDTesting/pepper2013-testing,hkawasaki/kawasaki-aio8-0,arifsetiawan/edx-platform,appliedx/edx-platform,alexthered/kienhoc-platform,ahmadio/edx-platform,RPI-OPENEDX/edx-platform,amir-qayyum-khan/edx-platform,zofuthan/edx-platform,jswope00/griffinx,cognitiveclass/edx-platform,appsembler/edx-platform,philanthropy-u/edx-platform,jbzdak/edx-platform,devs1991/test_edx_docmode,edx-solutions/edx-platform,ak2703/edx-platform,romain-li/edx-platform,Edraak/edraak-platform,abdoosh00/edraak,jamiefolsom/edx-platform,franosincic/edx-platform,ferabra/edx-platform,jazkarta/edx-platform-for-isc,msegado/edx-platform,xinjiguaike/edx-platform,ahmadiga/min_edx,pelikanchik/edx-platform,RPI-OPENEDX/edx-platform,tiagochiavericosta/edx-platform,beacloudgenius/edx-platform,doganov/edx-platform,martynovp/edx-platform,zadgroup/edx-platform,amir-qayyum-khan/edx-platform,IndonesiaX/edx-platform,jazkarta/edx-platform,rationalAgent/edx-platform-custom,nanolearningllc/edx-platform-cypress-2,nanolearningllc/edx-platform-cypress-2,Edraak/edraak-platform,itsjeyd/edx-platform,teltek/edx-platform,doganov/edx-platform,bitifirefly/edx-platform,sameetb-cuelogic/edx-platform-test,kmoocdev2/edx-platform,cecep-edu/edx-platform,10clouds/edx-platform,beacloudgenius/edx-platform,arifsetiawan/edx-platform,shurihell/testasia,inares/edx-platform,rismalrv/edx-platform,Edraak/edx-platform,dsajkl/123,jbassen/edx-platform,Ayub-Khan/edx-platform,jolyonb/edx-platform,chauhanhardik/populo_2,edx/edx-platform,DefyVentures/edx-platform,knehez/edx-platform,defance/edx-platform,apigee/edx-platform,DNFcode/edx-platform,shubhdev/openedx,10clouds/edx-platform,WatanabeYasumasa/edx-platform,zhenzhai/edx-platform,pepeportela/edx-platform,mtlchun/edx,BehavioralInsightsTeam/edx-platform,jolyonb/edx-platform,edx-solutions/edx-platform,miptliot/edx-platform,Endika/edx-platform,wwj718/ANALYSE,ZLLab-Mooc/edx-platform,procangroup/edx-platform,doismellburning/edx-platform,waheedahmed/edx-platform,ovnicraft/edx-platform,andyzsf/edx,jamesblunt/edx-platform,proversity-org/edx-platform,Edraak/circleci-edx-platform,ESOedX/edx-platform,angelapper/edx-platform,proversity-org/edx-platform,antonve/s4-project-mooc,doismellburning/edx-platform,prarthitm/edxplatform,chauhanhardik/populo,ampax/edx-platform-backup,unicri/edx-platform,Unow/edx-platform,MakeHer/edx-platform,itsjeyd/edx-platform,pdehaye/theming-edx-platform,shubhdev/openedx,tiagochiavericosta/edx-platform,SravanthiSinha/edx-platform,ak2703/edx-platform,itsjeyd/edx-platform,procangroup/edx-platform,motion2015/a3,AkA84/edx-platform,eduNEXT/edx-platform,playm2mboy/edx-platform,mitocw/edx-platform,deepsrijit1105/edx-platform,edx/edx-platform,leansoft/edx-platform,AkA84/edx-platform,chauhanhardik/populo,hkawasaki/kawasaki-aio8-2,rationalAgent/edx-platform-custom,analyseuc3m/ANALYSE-v1,nagyistoce/edx-platform,PepperPD/edx-pepper-platform,chand3040/cloud_that,xuxiao19910803/edx,MakeHer/edx-platform,gsehub/edx-platform,jelugbo/tundex,Edraak/edx-platform,iivic/BoiseStateX,xingyepei/edx-platform,atsolakid/edx-platform,chauhanhardik/populo_2,antonve/s4-project-mooc,jamiefolsom/edx-platform,a-parhom/edx-platform,IONISx/edx-platform,procangroup/edx-platform,mbareta/edx-platform-ft,romain-li/edx-platform,cognitiveclass/edx-platform,mjirayu/sit_academy,jswope00/griffinx,beacloudgenius/edx-platform,DefyVentures/edx-platform,motion2015/edx-platform,knehez/edx-platform,defance/edx-platform,PepperPD/edx-pepper-platform,mitocw/edx-platform,waheedahmed/edx-platform,mbareta/edx-platform-ft,ak2703/edx-platform,LICEF/edx-platform,solashirai/edx-platform,morpheby/levelup-by,Edraak/edx-platform,polimediaupv/edx-platform,dcosentino/edx-platform,UXE/local-edx,Stanford-Online/edx-platform,playm2mboy/edx-platform,waheedahmed/edx-platform,shashank971/edx-platform,gymnasium/edx-platform,yokose-ks/edx-platform,AkA84/edx-platform,ahmadiga/min_edx,torchingloom/edx-platform,Semi-global/edx-platform,jelugbo/tundex,LICEF/edx-platform,proversity-org/edx-platform,nttks/edx-platform,olexiim/edx-platform,shabab12/edx-platform,kamalx/edx-platform,abdoosh00/edraak,10clouds/edx-platform,PepperPD/edx-pepper-platform,eduNEXT/edunext-platform,ESOedX/edx-platform,eestay/edx-platform,sudheerchintala/LearnEraPlatForm,zadgroup/edx-platform,benpatterson/edx-platform,chrisndodge/edx-platform,y12uc231/edx-platform,eduNEXT/edunext-platform,EduPepperPDTesting/pepper2013-testing,morpheby/levelup-by,cpennington/edx-platform,antonve/s4-project-mooc,bitifirefly/edx-platform,BehavioralInsightsTeam/edx-platform,TsinghuaX/edx-platform,chauhanhardik/populo_2,PepperPD/edx-pepper-platform,Unow/edx-platform,DNFcode/edx-platform,dsajkl/reqiop,mushtaqak/edx-platform,kmoocdev/edx-platform,romain-li/edx-platform,utecuy/edx-platform,Ayub-Khan/edx-platform,abdoosh00/edraak,longmen21/edx-platform,hmcmooc/muddx-platform,xuxiao19910803/edx-platform,martynovp/edx-platform,benpatterson/edx-platform,nikolas/edx-platform,rhndg/openedx,openfun/edx-platform,sameetb-cuelogic/edx-platform-test,jazkarta/edx-platform,jswope00/GAI,waheedahmed/edx-platform,leansoft/edx-platform,mushtaqak/edx-platform,ampax/edx-platform-backup,solashirai/edx-platform,rue89-tech/edx-platform,alu042/edx-platform,fly19890211/edx-platform,Lektorium-LLC/edx-platform,jamesblunt/edx-platform,jazztpt/edx-platform,cpennington/edx-platform,adoosii/edx-platform,morenopc/edx-platform,chand3040/cloud_that,caesar2164/edx-platform,halvertoluke/edx-platform,OmarIthawi/edx-platform,sameetb-cuelogic/edx-platform-test,xuxiao19910803/edx,simbs/edx-platform,mbareta/edx-platform-ft,mbareta/edx-platform-ft,mtlchun/edx,pku9104038/edx-platform,openfun/edx-platform,polimediaupv/edx-platform,Kalyzee/edx-platform,kmoocdev2/edx-platform,zofuthan/edx-platform,EduPepperPDTesting/pepper2013-testing,pomegranited/edx-platform,mtlchun/edx,ahmadio/edx-platform,rue89-tech/edx-platform,msegado/edx-platform,ampax/edx-platform,kamalx/edx-platform,etzhou/edx-platform,nagyistoce/edx-platform,kamalx/edx-platform,andyzsf/edx,jamesblunt/edx-platform,nttks/jenkins-test,vasyarv/edx-platform,adoosii/edx-platform,eemirtekin/edx-platform,EDUlib/edx-platform,jswope00/griffinx,arifsetiawan/edx-platform,halvertoluke/edx-platform,OmarIthawi/edx-platform,zadgroup/edx-platform,TeachAtTUM/edx-platform,TeachAtTUM/edx-platform,andyzsf/edx,jamiefolsom/edx-platform,zerobatu/edx-platform,appliedx/edx-platform,Kalyzee/edx-platform,jazztpt/edx-platform,Semi-global/edx-platform,Semi-global/edx-platform,pomegranited/edx-platform,eemirtekin/edx-platform,devs1991/test_edx_docmode,Softmotions/edx-platform,sudheerchintala/LearnEraPlatForm,sudheerchintala/LearnEraPlatForm,IITBinterns13/edx-platform-dev,pdehaye/theming-edx-platform,mjg2203/edx-platform-seas,mahendra-r/edx-platform,alu042/edx-platform,shurihell/testasia,xinjiguaike/edx-platform,UOMx/edx-platform,mahendra-r/edx-platform,mjg2203/edx-platform-seas,shubhdev/edxOnBaadal,dkarakats/edx-platform,longmen21/edx-platform,nttks/edx-platform,MakeHer/edx-platform,IndonesiaX/edx-platform,kmoocdev/edx-platform,mahendra-r/edx-platform,nagyistoce/edx-platform,philanthropy-u/edx-platform,mjirayu/sit_academy,appliedx/edx-platform,jonathan-beard/edx-platform,edry/edx-platform,arbrandes/edx-platform,kalebhartje/schoolboost,fintech-circle/edx-platform,JCBarahona/edX,nanolearningllc/edx-platform-cypress-2,pomegranited/edx-platform,ahmadio/edx-platform,rismalrv/edx-platform,ovnicraft/edx-platform,playm2mboy/edx-platform,DNFcode/edx-platform,dsajkl/reqiop,openfun/edx-platform,ubc/edx-platform,chrisndodge/edx-platform,cecep-edu/edx-platform,JioEducation/edx-platform,inares/edx-platform,rismalrv/edx-platform,ferabra/edx-platform,carsongee/edx-platform,doganov/edx-platform,shubhdev/edx-platform,cognitiveclass/edx-platform,antoviaque/edx-platform,romain-li/edx-platform,peterm-itr/edx-platform,philanthropy-u/edx-platform,abdoosh00/edx-rtl-final,synergeticsedx/deployment-wipro,olexiim/edx-platform,pku9104038/edx-platform,shubhdev/edx-platform,ZLLab-Mooc/edx-platform,alu042/edx-platform,JCBarahona/edX,LearnEra/LearnEraPlaftform,jazkarta/edx-platform,IndonesiaX/edx-platform,JioEducation/edx-platform,jruiperezv/ANALYSE,chrisndodge/edx-platform,xuxiao19910803/edx-platform,franosincic/edx-platform,4eek/edx-platform,doismellburning/edx-platform,Stanford-Online/edx-platform,peterm-itr/edx-platform,beni55/edx-platform,etzhou/edx-platform,Stanford-Online/edx-platform,edry/edx-platform,pku9104038/edx-platform,rue89-tech/edx-platform,ovnicraft/edx-platform,yokose-ks/edx-platform,chauhanhardik/populo,marcore/edx-platform,RPI-OPENEDX/edx-platform,alu042/edx-platform,nanolearningllc/edx-platform-cypress-2,marcore/edx-platform,MSOpenTech/edx-platform,chauhanhardik/populo_2,dcosentino/edx-platform,arifsetiawan/edx-platform,naresh21/synergetics-edx-platform,sameetb-cuelogic/edx-platform-test,zerobatu/edx-platform,pdehaye/theming-edx-platform,chand3040/cloud_that,raccoongang/edx-platform,tanmaykm/edx-platform,syjeon/new_edx,pdehaye/theming-edx-platform,beni55/edx-platform,zubair-arbi/edx-platform,motion2015/a3,cyanna/edx-platform,rationalAgent/edx-platform-custom,hamzehd/edx-platform,gsehub/edx-platform,wwj718/edx-platform,jelugbo/tundex,praveen-pal/edx-platform,mjirayu/sit_academy,inares/edx-platform,EduPepperPD/pepper2013,bdero/edx-platform,zubair-arbi/edx-platform,fintech-circle/edx-platform,ZLLab-Mooc/edx-platform,beni55/edx-platform,jbassen/edx-platform,Lektorium-LLC/edx-platform,bigdatauniversity/edx-platform,jbzdak/edx-platform,don-github/edx-platform,carsongee/edx-platform,Shrhawk/edx-platform,halvertoluke/edx-platform,jswope00/griffinx,jjmiranda/edx-platform,arbrandes/edx-platform,openfun/edx-platform,kursitet/edx-platform,don-github/edx-platform,ampax/edx-platform,playm2mboy/edx-platform,don-github/edx-platform,B-MOOC/edx-platform,AkA84/edx-platform,IndonesiaX/edx-platform,torchingloom/edx-platform,rhndg/openedx,LICEF/edx-platform,nanolearningllc/edx-platform-cypress-2,eduNEXT/edx-platform,RPI-OPENEDX/edx-platform,Unow/edx-platform,jjmiranda/edx-platform,defance/edx-platform,shurihell/testasia,doganov/edx-platform,lduarte1991/edx-platform,WatanabeYasumasa/edx-platform,ahmadiga/min_edx,LearnEra/LearnEraPlaftform,motion2015/a3,dsajkl/123,EduPepperPD/pepper2013,motion2015/a3,SivilTaram/edx-platform,pepeportela/edx-platform,vismartltd/edx-platform,jbzdak/edx-platform,shabab12/edx-platform
98d87d447ae0f84bdbd1bee3ecd4a842acfeacbc
ibmcnx/test/loadFunction.py
ibmcnx/test/loadFunction.py
import sys from java.lang import String from java.util import HashSet from java.util import HashMap import java globdict = globals() def loadFilesService(): global globdict exec open("filesAdmin.py").read()
import sys from java.lang import String from java.util import HashSet from java.util import HashMap import java import lotusConnectionsCommonAdmin globdict = globals() def loadFilesService(): global globdict exec open("filesAdmin.py").read()
Customize scripts to work with menu
Customize scripts to work with menu
Python
apache-2.0
stoeps13/ibmcnx2,stoeps13/ibmcnx2
d60117d7c25738ca22bc9bb0cbde82876cf58f5c
common/test/acceptance/pages/studio/course_page.py
common/test/acceptance/pages/studio/course_page.py
""" Base class for pages specific to a course in Studio. """ from bok_choy.page_object import PageObject from . import BASE_URL class CoursePage(PageObject): """ Abstract base class for page objects specific to a course in Studio. """ # Overridden by subclasses to provide the relative path within the course # Does not need to include the leading forward or trailing slash url_path = "" def __init__(self, browser, course_org, course_num, course_run): """ Initialize the page object for the course located at `{course_org}.{course_num}.{course_run}` These identifiers will likely change in the future. """ super(CoursePage, self).__init__(browser) self.course_info = { 'course_org': course_org, 'course_num': course_num, 'course_run': course_run } @property def url(self): """ Construct a URL to the page within the course. """ course_key = "{course_org}/{course_num}/{course_run}".format(**self.course_info) return "/".join([BASE_URL, self.url_path, course_key])
""" Base class for pages specific to a course in Studio. """ import os from opaque_keys.edx.locator import CourseLocator from bok_choy.page_object import PageObject from . import BASE_URL class CoursePage(PageObject): """ Abstract base class for page objects specific to a course in Studio. """ # Overridden by subclasses to provide the relative path within the course # Does not need to include the leading forward or trailing slash url_path = "" def __init__(self, browser, course_org, course_num, course_run): """ Initialize the page object for the course located at `{course_org}.{course_num}.{course_run}` These identifiers will likely change in the future. """ super(CoursePage, self).__init__(browser) self.course_info = { 'course_org': course_org, 'course_num': course_num, 'course_run': course_run } @property def url(self): """ Construct a URL to the page within the course. """ # TODO - is there a better way to make this agnostic to the underlying default module store? default_store = os.environ.get('DEFAULT_STORE', 'draft') course_key = CourseLocator( self.course_info['course_org'], self.course_info['course_num'], self.course_info['course_run'], deprecated=(default_store == 'draft') ) return "/".join([BASE_URL, self.url_path, unicode(course_key)])
Make Studio CoursePage objects generate the correct CourseLocator based on whether the DEFAULT_STORE is set or not
Make Studio CoursePage objects generate the correct CourseLocator based on whether the DEFAULT_STORE is set or not
Python
agpl-3.0
stvstnfrd/edx-platform,playm2mboy/edx-platform,IONISx/edx-platform,jswope00/griffinx,MakeHer/edx-platform,jazkarta/edx-platform-for-isc,knehez/edx-platform,jonathan-beard/edx-platform,dcosentino/edx-platform,jruiperezv/ANALYSE,JCBarahona/edX,edx-solutions/edx-platform,hamzehd/edx-platform,appliedx/edx-platform,shubhdev/edxOnBaadal,kamalx/edx-platform,shashank971/edx-platform,zerobatu/edx-platform,ahmedaljazzar/edx-platform,raccoongang/edx-platform,kxliugang/edx-platform,jzoldak/edx-platform,chauhanhardik/populo,jamiefolsom/edx-platform,pomegranited/edx-platform,ahmedaljazzar/edx-platform,hastexo/edx-platform,eduNEXT/edunext-platform,SravanthiSinha/edx-platform,kmoocdev2/edx-platform,TeachAtTUM/edx-platform,miptliot/edx-platform,OmarIthawi/edx-platform,Edraak/edraak-platform,simbs/edx-platform,zofuthan/edx-platform,knehez/edx-platform,xuxiao19910803/edx,DNFcode/edx-platform,zadgroup/edx-platform,proversity-org/edx-platform,zubair-arbi/edx-platform,eduNEXT/edx-platform,xuxiao19910803/edx,beacloudgenius/edx-platform,4eek/edx-platform,bitifirefly/edx-platform,miptliot/edx-platform,RPI-OPENEDX/edx-platform,motion2015/a3,franosincic/edx-platform,SivilTaram/edx-platform,cselis86/edx-platform,fintech-circle/edx-platform,SravanthiSinha/edx-platform,atsolakid/edx-platform,shabab12/edx-platform,jazztpt/edx-platform,mtlchun/edx,mtlchun/edx,polimediaupv/edx-platform,dkarakats/edx-platform,Kalyzee/edx-platform,proversity-org/edx-platform,procangroup/edx-platform,edx/edx-platform,DNFcode/edx-platform,IndonesiaX/edx-platform,angelapper/edx-platform,synergeticsedx/deployment-wipro,mitocw/edx-platform,jazztpt/edx-platform,CourseTalk/edx-platform,inares/edx-platform,fintech-circle/edx-platform,wwj718/edx-platform,benpatterson/edx-platform,knehez/edx-platform,doganov/edx-platform,unicri/edx-platform,zhenzhai/edx-platform,mjirayu/sit_academy,eestay/edx-platform,bigdatauniversity/edx-platform,jamiefolsom/edx-platform,MSOpenTech/edx-platform,Livit/Livit.Learn.EdX,Edraak/edx-platform,shabab12/edx-platform,J861449197/edx-platform,mbareta/edx-platform-ft,dcosentino/edx-platform,unicri/edx-platform,ahmadio/edx-platform,ampax/edx-platform,BehavioralInsightsTeam/edx-platform,Edraak/edx-platform,kursitet/edx-platform,ampax/edx-platform-backup,appsembler/edx-platform,vismartltd/edx-platform,xuxiao19910803/edx,cselis86/edx-platform,ZLLab-Mooc/edx-platform,beni55/edx-platform,Lektorium-LLC/edx-platform,fly19890211/edx-platform,halvertoluke/edx-platform,vikas1885/test1,jazkarta/edx-platform,chand3040/cloud_that,shashank971/edx-platform,angelapper/edx-platform,arbrandes/edx-platform,motion2015/a3,gsehub/edx-platform,mitocw/edx-platform,rismalrv/edx-platform,romain-li/edx-platform,rismalrv/edx-platform,ESOedX/edx-platform,ovnicraft/edx-platform,vikas1885/test1,don-github/edx-platform,bigdatauniversity/edx-platform,nttks/jenkins-test,eduNEXT/edunext-platform,rhndg/openedx,SivilTaram/edx-platform,ubc/edx-platform,RPI-OPENEDX/edx-platform,shashank971/edx-platform,alexthered/kienhoc-platform,ZLLab-Mooc/edx-platform,cognitiveclass/edx-platform,chrisndodge/edx-platform,dsajkl/123,atsolakid/edx-platform,mcgachey/edx-platform,openfun/edx-platform,jbzdak/edx-platform,UOMx/edx-platform,EDUlib/edx-platform,naresh21/synergetics-edx-platform,mtlchun/edx,jbassen/edx-platform,mitocw/edx-platform,DefyVentures/edx-platform,cecep-edu/edx-platform,zubair-arbi/edx-platform,a-parhom/edx-platform,bitifirefly/edx-platform,adoosii/edx-platform,jamesblunt/edx-platform,shashank971/edx-platform,AkA84/edx-platform,rue89-tech/edx-platform,jazkarta/edx-platform,vasyarv/edx-platform,chrisndodge/edx-platform,sameetb-cuelogic/edx-platform-test,y12uc231/edx-platform,don-github/edx-platform,chudaol/edx-platform,zadgroup/edx-platform,jzoldak/edx-platform,J861449197/edx-platform,y12uc231/edx-platform,fly19890211/edx-platform,kamalx/edx-platform,nanolearningllc/edx-platform-cypress-2,jruiperezv/ANALYSE,jzoldak/edx-platform,wwj718/edx-platform,jamesblunt/edx-platform,jazztpt/edx-platform,mushtaqak/edx-platform,jswope00/griffinx,tiagochiavericosta/edx-platform,Edraak/circleci-edx-platform,ak2703/edx-platform,halvertoluke/edx-platform,waheedahmed/edx-platform,lduarte1991/edx-platform,nanolearningllc/edx-platform-cypress,zhenzhai/edx-platform,ferabra/edx-platform,EDUlib/edx-platform,eduNEXT/edx-platform,shubhdev/edxOnBaadal,antoviaque/edx-platform,peterm-itr/edx-platform,chauhanhardik/populo_2,playm2mboy/edx-platform,shubhdev/edxOnBaadal,waheedahmed/edx-platform,beacloudgenius/edx-platform,Shrhawk/edx-platform,zubair-arbi/edx-platform,Edraak/circleci-edx-platform,mahendra-r/edx-platform,B-MOOC/edx-platform,gymnasium/edx-platform,IONISx/edx-platform,ahmadiga/min_edx,antonve/s4-project-mooc,gsehub/edx-platform,inares/edx-platform,kxliugang/edx-platform,mushtaqak/edx-platform,kmoocdev/edx-platform,ahmadiga/min_edx,etzhou/edx-platform,playm2mboy/edx-platform,dsajkl/reqiop,don-github/edx-platform,ovnicraft/edx-platform,leansoft/edx-platform,fintech-circle/edx-platform,nikolas/edx-platform,vismartltd/edx-platform,motion2015/a3,shurihell/testasia,beacloudgenius/edx-platform,fly19890211/edx-platform,gsehub/edx-platform,jazkarta/edx-platform-for-isc,philanthropy-u/edx-platform,louyihua/edx-platform,Livit/Livit.Learn.EdX,zadgroup/edx-platform,raccoongang/edx-platform,nttks/jenkins-test,B-MOOC/edx-platform,ahmadiga/min_edx,chauhanhardik/populo_2,cselis86/edx-platform,vikas1885/test1,tanmaykm/edx-platform,Stanford-Online/edx-platform,shubhdev/edx-platform,vismartltd/edx-platform,J861449197/edx-platform,rue89-tech/edx-platform,bigdatauniversity/edx-platform,jamesblunt/edx-platform,IONISx/edx-platform,atsolakid/edx-platform,doismellburning/edx-platform,chrisndodge/edx-platform,analyseuc3m/ANALYSE-v1,mjirayu/sit_academy,jolyonb/edx-platform,edry/edx-platform,doganov/edx-platform,jolyonb/edx-platform,10clouds/edx-platform,olexiim/edx-platform,ahmadiga/min_edx,jonathan-beard/edx-platform,jamesblunt/edx-platform,JioEducation/edx-platform,olexiim/edx-platform,wwj718/ANALYSE,prarthitm/edxplatform,nttks/jenkins-test,SravanthiSinha/edx-platform,motion2015/edx-platform,pomegranited/edx-platform,pabloborrego93/edx-platform,cognitiveclass/edx-platform,mtlchun/edx,MakeHer/edx-platform,stvstnfrd/edx-platform,chauhanhardik/populo,dsajkl/123,deepsrijit1105/edx-platform,nagyistoce/edx-platform,teltek/edx-platform,y12uc231/edx-platform,motion2015/a3,waheedahmed/edx-platform,xinjiguaike/edx-platform,alu042/edx-platform,romain-li/edx-platform,arifsetiawan/edx-platform,synergeticsedx/deployment-wipro,nagyistoce/edx-platform,caesar2164/edx-platform,franosincic/edx-platform,stvstnfrd/edx-platform,edry/edx-platform,msegado/edx-platform,caesar2164/edx-platform,knehez/edx-platform,vasyarv/edx-platform,leansoft/edx-platform,jonathan-beard/edx-platform,B-MOOC/edx-platform,Stanford-Online/edx-platform,openfun/edx-platform,B-MOOC/edx-platform,AkA84/edx-platform,nanolearningllc/edx-platform-cypress,andyzsf/edx,rismalrv/edx-platform,dkarakats/edx-platform,appliedx/edx-platform,Semi-global/edx-platform,openfun/edx-platform,motion2015/a3,DefyVentures/edx-platform,Kalyzee/edx-platform,zofuthan/edx-platform,nanolearningllc/edx-platform-cypress-2,teltek/edx-platform,nttks/edx-platform,alu042/edx-platform,alexthered/kienhoc-platform,jswope00/griffinx,caesar2164/edx-platform,atsolakid/edx-platform,chand3040/cloud_that,JCBarahona/edX,ahmadiga/min_edx,valtech-mooc/edx-platform,JCBarahona/edX,edry/edx-platform,leansoft/edx-platform,cpennington/edx-platform,ahmedaljazzar/edx-platform,benpatterson/edx-platform,cognitiveclass/edx-platform,Endika/edx-platform,SivilTaram/edx-platform,jazkarta/edx-platform-for-isc,unicri/edx-platform,arifsetiawan/edx-platform,analyseuc3m/ANALYSE-v1,cselis86/edx-platform,zofuthan/edx-platform,Semi-global/edx-platform,Ayub-Khan/edx-platform,Softmotions/edx-platform,analyseuc3m/ANALYSE-v1,cselis86/edx-platform,arifsetiawan/edx-platform,zofuthan/edx-platform,chand3040/cloud_that,rismalrv/edx-platform,devs1991/test_edx_docmode,ak2703/edx-platform,Edraak/edraak-platform,Shrhawk/edx-platform,antoviaque/edx-platform,benpatterson/edx-platform,motion2015/edx-platform,solashirai/edx-platform,Edraak/edx-platform,cyanna/edx-platform,bitifirefly/edx-platform,TeachAtTUM/edx-platform,itsjeyd/edx-platform,caesar2164/edx-platform,Stanford-Online/edx-platform,Livit/Livit.Learn.EdX,alexthered/kienhoc-platform,angelapper/edx-platform,kursitet/edx-platform,antonve/s4-project-mooc,ferabra/edx-platform,motion2015/edx-platform,ampax/edx-platform,ahmadio/edx-platform,Semi-global/edx-platform,amir-qayyum-khan/edx-platform,shashank971/edx-platform,ZLLab-Mooc/edx-platform,xinjiguaike/edx-platform,procangroup/edx-platform,motion2015/edx-platform,louyihua/edx-platform,jazkarta/edx-platform,philanthropy-u/edx-platform,Edraak/edx-platform,appsembler/edx-platform,sameetb-cuelogic/edx-platform-test,chauhanhardik/populo,y12uc231/edx-platform,vismartltd/edx-platform,cognitiveclass/edx-platform,kursitet/edx-platform,dcosentino/edx-platform,eduNEXT/edx-platform,edx/edx-platform,nanolearningllc/edx-platform-cypress-2,Shrhawk/edx-platform,dsajkl/reqiop,solashirai/edx-platform,ZLLab-Mooc/edx-platform,jbassen/edx-platform,nagyistoce/edx-platform,don-github/edx-platform,Livit/Livit.Learn.EdX,andyzsf/edx,jazkarta/edx-platform-for-isc,cecep-edu/edx-platform,chauhanhardik/populo,4eek/edx-platform,procangroup/edx-platform,Lektorium-LLC/edx-platform,deepsrijit1105/edx-platform,devs1991/test_edx_docmode,xinjiguaike/edx-platform,zadgroup/edx-platform,amir-qayyum-khan/edx-platform,mahendra-r/edx-platform,MSOpenTech/edx-platform,tanmaykm/edx-platform,beacloudgenius/edx-platform,tanmaykm/edx-platform,cyanna/edx-platform,simbs/edx-platform,dsajkl/123,OmarIthawi/edx-platform,vismartltd/edx-platform,xingyepei/edx-platform,shurihell/testasia,naresh21/synergetics-edx-platform,J861449197/edx-platform,MSOpenTech/edx-platform,rue89-tech/edx-platform,prarthitm/edxplatform,doismellburning/edx-platform,doganov/edx-platform,mjirayu/sit_academy,wwj718/edx-platform,etzhou/edx-platform,xinjiguaike/edx-platform,shurihell/testasia,vikas1885/test1,jruiperezv/ANALYSE,nanolearningllc/edx-platform-cypress,UXE/local-edx,appliedx/edx-platform,fly19890211/edx-platform,hastexo/edx-platform,alu042/edx-platform,eemirtekin/edx-platform,adoosii/edx-platform,waheedahmed/edx-platform,MakeHer/edx-platform,kmoocdev/edx-platform,kursitet/edx-platform,RPI-OPENEDX/edx-platform,ampax/edx-platform-backup,xinjiguaike/edx-platform,ESOedX/edx-platform,mbareta/edx-platform-ft,rismalrv/edx-platform,vikas1885/test1,xuxiao19910803/edx,nanolearningllc/edx-platform-cypress-2,iivic/BoiseStateX,shubhdev/edx-platform,valtech-mooc/edx-platform,jruiperezv/ANALYSE,nanolearningllc/edx-platform-cypress,jbzdak/edx-platform,Semi-global/edx-platform,nttks/jenkins-test,chauhanhardik/populo_2,solashirai/edx-platform,xuxiao19910803/edx-platform,eestay/edx-platform,chrisndodge/edx-platform,eestay/edx-platform,mushtaqak/edx-platform,dcosentino/edx-platform,jswope00/griffinx,pepeportela/edx-platform,xingyepei/edx-platform,devs1991/test_edx_docmode,EDUlib/edx-platform,beni55/edx-platform,10clouds/edx-platform,longmen21/edx-platform,romain-li/edx-platform,xuxiao19910803/edx-platform,ferabra/edx-platform,rhndg/openedx,MakeHer/edx-platform,olexiim/edx-platform,etzhou/edx-platform,utecuy/edx-platform,kamalx/edx-platform,zadgroup/edx-platform,simbs/edx-platform,Edraak/circleci-edx-platform,cecep-edu/edx-platform,knehez/edx-platform,prarthitm/edxplatform,marcore/edx-platform,proversity-org/edx-platform,ferabra/edx-platform,jbzdak/edx-platform,BehavioralInsightsTeam/edx-platform,Kalyzee/edx-platform,mushtaqak/edx-platform,shubhdev/edx-platform,wwj718/ANALYSE,solashirai/edx-platform,shabab12/edx-platform,teltek/edx-platform,xuxiao19910803/edx-platform,Ayub-Khan/edx-platform,eestay/edx-platform,philanthropy-u/edx-platform,chudaol/edx-platform,DefyVentures/edx-platform,hamzehd/edx-platform,mjirayu/sit_academy,Softmotions/edx-platform,iivic/BoiseStateX,peterm-itr/edx-platform,deepsrijit1105/edx-platform,antonve/s4-project-mooc,edry/edx-platform,eemirtekin/edx-platform,vasyarv/edx-platform,pomegranited/edx-platform,rue89-tech/edx-platform,jazztpt/edx-platform,nttks/jenkins-test,atsolakid/edx-platform,jamiefolsom/edx-platform,jbzdak/edx-platform,mcgachey/edx-platform,jolyonb/edx-platform,xuxiao19910803/edx-platform,Edraak/edx-platform,CourseTalk/edx-platform,appliedx/edx-platform,gymnasium/edx-platform,ampax/edx-platform,motion2015/edx-platform,pepeportela/edx-platform,openfun/edx-platform,playm2mboy/edx-platform,tiagochiavericosta/edx-platform,jazkarta/edx-platform,jjmiranda/edx-platform,defance/edx-platform,arifsetiawan/edx-platform,ubc/edx-platform,ESOedX/edx-platform,utecuy/edx-platform,doismellburning/edx-platform,jazkarta/edx-platform-for-isc,proversity-org/edx-platform,peterm-itr/edx-platform,itsjeyd/edx-platform,tiagochiavericosta/edx-platform,Semi-global/edx-platform,zerobatu/edx-platform,cpennington/edx-platform,Lektorium-LLC/edx-platform,kamalx/edx-platform,shubhdev/edxOnBaadal,hastexo/edx-platform,kxliugang/edx-platform,longmen21/edx-platform,jelugbo/tundex,beacloudgenius/edx-platform,prarthitm/edxplatform,Edraak/edraak-platform,4eek/edx-platform,CredoReference/edx-platform,don-github/edx-platform,andyzsf/edx,edx-solutions/edx-platform,eestay/edx-platform,halvertoluke/edx-platform,kxliugang/edx-platform,beni55/edx-platform,shubhdev/edx-platform,a-parhom/edx-platform,edx/edx-platform,Stanford-Online/edx-platform,ESOedX/edx-platform,eemirtekin/edx-platform,mjirayu/sit_academy,JioEducation/edx-platform,raccoongang/edx-platform,stvstnfrd/edx-platform,chudaol/edx-platform,JCBarahona/edX,cecep-edu/edx-platform,MSOpenTech/edx-platform,miptliot/edx-platform,kmoocdev/edx-platform,appsembler/edx-platform,y12uc231/edx-platform,valtech-mooc/edx-platform,a-parhom/edx-platform,synergeticsedx/deployment-wipro,fly19890211/edx-platform,zofuthan/edx-platform,mcgachey/edx-platform,SivilTaram/edx-platform,pabloborrego93/edx-platform,deepsrijit1105/edx-platform,ahmadio/edx-platform,zubair-arbi/edx-platform,jolyonb/edx-platform,nagyistoce/edx-platform,nikolas/edx-platform,tanmaykm/edx-platform,IONISx/edx-platform,eemirtekin/edx-platform,dkarakats/edx-platform,DNFcode/edx-platform,chauhanhardik/populo_2,zerobatu/edx-platform,xuxiao19910803/edx,ubc/edx-platform,B-MOOC/edx-platform,devs1991/test_edx_docmode,JioEducation/edx-platform,hamzehd/edx-platform,nanolearningllc/edx-platform-cypress,franosincic/edx-platform,nanolearningllc/edx-platform-cypress-2,shubhdev/openedx,zubair-arbi/edx-platform,raccoongang/edx-platform,chudaol/edx-platform,nttks/edx-platform,Lektorium-LLC/edx-platform,chudaol/edx-platform,ahmadio/edx-platform,jjmiranda/edx-platform,amir-qayyum-khan/edx-platform,mcgachey/edx-platform,kamalx/edx-platform,ovnicraft/edx-platform,Kalyzee/edx-platform,zerobatu/edx-platform,10clouds/edx-platform,martynovp/edx-platform,Ayub-Khan/edx-platform,chauhanhardik/populo_2,edx-solutions/edx-platform,shubhdev/edx-platform,jelugbo/tundex,bigdatauniversity/edx-platform,kmoocdev2/edx-platform,angelapper/edx-platform,Edraak/circleci-edx-platform,jazztpt/edx-platform,ovnicraft/edx-platform,devs1991/test_edx_docmode,IndonesiaX/edx-platform,UXE/local-edx,rhndg/openedx,TeachAtTUM/edx-platform,kmoocdev/edx-platform,antoviaque/edx-platform,franosincic/edx-platform,nikolas/edx-platform,ak2703/edx-platform,nttks/edx-platform,pabloborrego93/edx-platform,zhenzhai/edx-platform,mbareta/edx-platform-ft,lduarte1991/edx-platform,iivic/BoiseStateX,IndonesiaX/edx-platform,alexthered/kienhoc-platform,jbassen/edx-platform,Shrhawk/edx-platform,miptliot/edx-platform,chand3040/cloud_that,UOMx/edx-platform,ak2703/edx-platform,jamesblunt/edx-platform,dsajkl/123,eduNEXT/edunext-platform,MSOpenTech/edx-platform,polimediaupv/edx-platform,wwj718/ANALYSE,eemirtekin/edx-platform,beni55/edx-platform,mahendra-r/edx-platform,leansoft/edx-platform,pabloborrego93/edx-platform,BehavioralInsightsTeam/edx-platform,doismellburning/edx-platform,waheedahmed/edx-platform,bitifirefly/edx-platform,amir-qayyum-khan/edx-platform,vasyarv/edx-platform,wwj718/ANALYSE,leansoft/edx-platform,analyseuc3m/ANALYSE-v1,jruiperezv/ANALYSE,ampax/edx-platform-backup,ubc/edx-platform,defance/edx-platform,mitocw/edx-platform,martynovp/edx-platform,inares/edx-platform,shurihell/testasia,rhndg/openedx,nagyistoce/edx-platform,gymnasium/edx-platform,arbrandes/edx-platform,AkA84/edx-platform,valtech-mooc/edx-platform,defance/edx-platform,kmoocdev2/edx-platform,jonathan-beard/edx-platform,synergeticsedx/deployment-wipro,jazkarta/edx-platform,jbassen/edx-platform,SravanthiSinha/edx-platform,dsajkl/123,Softmotions/edx-platform,louyihua/edx-platform,Edraak/circleci-edx-platform,Kalyzee/edx-platform,MakeHer/edx-platform,marcore/edx-platform,ahmedaljazzar/edx-platform,chauhanhardik/populo,devs1991/test_edx_docmode,antonve/s4-project-mooc,jbassen/edx-platform,Ayub-Khan/edx-platform,kxliugang/edx-platform,openfun/edx-platform,antonve/s4-project-mooc,martynovp/edx-platform,nikolas/edx-platform,cyanna/edx-platform,ahmadio/edx-platform,kmoocdev2/edx-platform,hamzehd/edx-platform,wwj718/edx-platform,mbareta/edx-platform-ft,olexiim/edx-platform,sameetb-cuelogic/edx-platform-test,polimediaupv/edx-platform,CredoReference/edx-platform,Shrhawk/edx-platform,iivic/BoiseStateX,iivic/BoiseStateX,cognitiveclass/edx-platform,cyanna/edx-platform,jjmiranda/edx-platform,defance/edx-platform,olexiim/edx-platform,CourseTalk/edx-platform,shubhdev/openedx,JCBarahona/edX,romain-li/edx-platform,alu042/edx-platform,etzhou/edx-platform,hamzehd/edx-platform,Endika/edx-platform,pepeportela/edx-platform,kmoocdev/edx-platform,tiagochiavericosta/edx-platform,CourseTalk/edx-platform,cpennington/edx-platform,rue89-tech/edx-platform,msegado/edx-platform,BehavioralInsightsTeam/edx-platform,CredoReference/edx-platform,SravanthiSinha/edx-platform,solashirai/edx-platform,xingyepei/edx-platform,rhndg/openedx,utecuy/edx-platform,a-parhom/edx-platform,10clouds/edx-platform,kmoocdev2/edx-platform,antoviaque/edx-platform,Endika/edx-platform,AkA84/edx-platform,shubhdev/edxOnBaadal,lduarte1991/edx-platform,etzhou/edx-platform,OmarIthawi/edx-platform,arifsetiawan/edx-platform,jelugbo/tundex,jamiefolsom/edx-platform,AkA84/edx-platform,longmen21/edx-platform,pepeportela/edx-platform,xuxiao19910803/edx-platform,valtech-mooc/edx-platform,eduNEXT/edunext-platform,shubhdev/openedx,IndonesiaX/edx-platform,nikolas/edx-platform,tiagochiavericosta/edx-platform,zhenzhai/edx-platform,nttks/edx-platform,zerobatu/edx-platform,devs1991/test_edx_docmode,Softmotions/edx-platform,unicri/edx-platform,jelugbo/tundex,hastexo/edx-platform,xingyepei/edx-platform,Ayub-Khan/edx-platform,simbs/edx-platform,halvertoluke/edx-platform,jbzdak/edx-platform,SivilTaram/edx-platform,bitifirefly/edx-platform,ZLLab-Mooc/edx-platform,4eek/edx-platform,DefyVentures/edx-platform,EDUlib/edx-platform,cyanna/edx-platform,TeachAtTUM/edx-platform,eduNEXT/edx-platform,utecuy/edx-platform,JioEducation/edx-platform,sameetb-cuelogic/edx-platform-test,wwj718/edx-platform,edx/edx-platform,mahendra-r/edx-platform,martynovp/edx-platform,dsajkl/reqiop,itsjeyd/edx-platform,doganov/edx-platform,Edraak/edraak-platform,lduarte1991/edx-platform,marcore/edx-platform,teltek/edx-platform,UXE/local-edx,mtlchun/edx,fintech-circle/edx-platform,jzoldak/edx-platform,dcosentino/edx-platform,naresh21/synergetics-edx-platform,polimediaupv/edx-platform,shubhdev/openedx,DNFcode/edx-platform,bigdatauniversity/edx-platform,mcgachey/edx-platform,Softmotions/edx-platform,martynovp/edx-platform,longmen21/edx-platform,unicri/edx-platform,peterm-itr/edx-platform,kursitet/edx-platform,dkarakats/edx-platform,jonathan-beard/edx-platform,inares/edx-platform,playm2mboy/edx-platform,andyzsf/edx,appliedx/edx-platform,jamiefolsom/edx-platform,xingyepei/edx-platform,nttks/edx-platform,cecep-edu/edx-platform,ak2703/edx-platform,IONISx/edx-platform,vasyarv/edx-platform,msegado/edx-platform,dkarakats/edx-platform,doismellburning/edx-platform,gymnasium/edx-platform,IndonesiaX/edx-platform,halvertoluke/edx-platform,shurihell/testasia,devs1991/test_edx_docmode,arbrandes/edx-platform,romain-li/edx-platform,jjmiranda/edx-platform,4eek/edx-platform,ampax/edx-platform,ovnicraft/edx-platform,UOMx/edx-platform,pomegranited/edx-platform,dsajkl/reqiop,louyihua/edx-platform,adoosii/edx-platform,marcore/edx-platform,simbs/edx-platform,msegado/edx-platform,UXE/local-edx,pomegranited/edx-platform,UOMx/edx-platform,CredoReference/edx-platform,shabab12/edx-platform,jelugbo/tundex,adoosii/edx-platform,procangroup/edx-platform,ampax/edx-platform-backup,sameetb-cuelogic/edx-platform-test,DefyVentures/edx-platform,msegado/edx-platform,chand3040/cloud_that,jswope00/griffinx,RPI-OPENEDX/edx-platform,zhenzhai/edx-platform,longmen21/edx-platform,alexthered/kienhoc-platform,ferabra/edx-platform,cpennington/edx-platform,adoosii/edx-platform,wwj718/ANALYSE,DNFcode/edx-platform,OmarIthawi/edx-platform,polimediaupv/edx-platform,Endika/edx-platform,naresh21/synergetics-edx-platform,ampax/edx-platform-backup,ubc/edx-platform,utecuy/edx-platform,benpatterson/edx-platform,beni55/edx-platform,J861449197/edx-platform,mahendra-r/edx-platform,arbrandes/edx-platform,RPI-OPENEDX/edx-platform,edx-solutions/edx-platform,itsjeyd/edx-platform,franosincic/edx-platform,inares/edx-platform,appsembler/edx-platform,shubhdev/openedx,benpatterson/edx-platform,edry/edx-platform,gsehub/edx-platform,philanthropy-u/edx-platform,doganov/edx-platform,mushtaqak/edx-platform
08e54777f2d43243152ba9aa2e3519c3268fbb92
publishconf.py
publishconf.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # from __future__ import unicode_literals import os import sys sys.path.append(os.curdir) from pelicanconf import * SITEURL = 'https://softwarejourneyman.com' RELATIVE_URLS = False FEED_ALL_ATOM = 'feeds/all.atom.xml' CATEGORY_FEED_ATOM = 'feeds/{slug}.atom.xml' DELETE_OUTPUT_DIRECTORY = False DISQUS_SITENAME = "pappasam-github-io" GOOGLE_ANALYTICS = "UA-117115805-1"
#!/usr/bin/env python # -*- coding: utf-8 -*- # from __future__ import unicode_literals import os import sys sys.path.append(os.curdir) from pelicanconf import * SITEURL = 'https://samroeca.com' RELATIVE_URLS = False FEED_ALL_ATOM = 'feeds/all.atom.xml' CATEGORY_FEED_ATOM = 'feeds/{slug}.atom.xml' DELETE_OUTPUT_DIRECTORY = False DISQUS_SITENAME = "pappasam-github-io" GOOGLE_ANALYTICS = "UA-117115805-1"
Add samroeca.com to url pointing
Add samroeca.com to url pointing
Python
mit
pappasam/pappasam.github.io,pappasam/pappasam.github.io
7f317126d7d422b073cb4e4a8698757fe1e763f3
wqflask/wqflask/decorators.py
wqflask/wqflask/decorators.py
"""This module contains gn2 decorators""" from flask import g from functools import wraps def edit_access_required(f): """Use this for endpoints where admins are required""" @wraps(f) def wrap(*args, **kwargs): if g.user_session.record.get(b"user_email_address") not in [ b"labwilliams@gmail.com"]: return "You need to be admin", 401 return f(*args, **kwargs) return wrap
"""This module contains gn2 decorators""" from flask import g from typing import Dict from functools import wraps from utility.hmac import hmac_creation import json import requests def edit_access_required(f): """Use this for endpoints where admins are required""" @wraps(f) def wrap(*args, **kwargs): resource_id: str = "" if kwargs.get("inbredset_id"): # data type: dataset-publish resource_id = hmac_creation("dataset-publish:" f"{kwargs.get('inbredset_id')}:" f"{kwargs.get('name')}") if kwargs.get("dataset_name"): # data type: dataset-probe resource_id = hmac_creation("dataset-probeset:" f"{kwargs.get('dataset_name')}") response: Dict = {} try: _user_id = g.user_session.record.get(b"user_id", "").decode("utf-8") response = json.loads( requests.get("http://localhost:8080/" "available?resource=" f"{resource_id}&user={_user_id}").content) except: response = {} if "edit" not in response.get("data", []): return "You need to be admin", 401 return f(*args, **kwargs) return wrap
Replace hard-coded e-mails with gn-proxy queries
Replace hard-coded e-mails with gn-proxy queries * wqflask/wqflask/decorators.py (edit_access_required.wrap): Query the proxy to see the access rights of a given user.
Python
agpl-3.0
genenetwork/genenetwork2,genenetwork/genenetwork2,pjotrp/genenetwork2,pjotrp/genenetwork2,genenetwork/genenetwork2,pjotrp/genenetwork2,pjotrp/genenetwork2,genenetwork/genenetwork2,pjotrp/genenetwork2
28353efe2802059c1da8b1c81b157dc6e773032e
salt/modules/monit.py
salt/modules/monit.py
''' Salt module to manage monit ''' def version(): ''' List monit version Cli Example:: salt '*' monit.version ''' cmd = 'monit -V' res = __salt__['cmd.run'](cmd) return res.split("\n")[0] def status(): ''' Monit status CLI Example:: salt '*' monit.status ''' cmd = 'monit status' res = __salt__['cmd.run'](cmd) return res.split("\n") def start(): ''' Starts monit CLI Example:: salt '*' monit.start *Note need to add check to insure its running* `ps ax | grep monit | grep -v grep or something` ''' cmd = 'monit' res = __salt__['cmd.run'](cmd) return "Monit started" def stop(): ''' Stop monit CLI Example:: salt '*' monit.stop *Note Needs check as above* ''' def _is_bsd(): return True if __grains__['os'] == 'FreeBSD' else False if _is_bsd(): cmd = "/usr/local/etc/rc.d/monit stop" else: cmd = "/etc/init.d/monit stop" res = __salt__['cmd.run'](cmd) return "Monit Stopped" def monitor_all(): ''' Initializing all monit modules. ''' cmd = 'monit monitor all' res = __salt__['cmd.run'](cmd) if res: return "All Services initaialized" return "Issue starting monitoring on all services" def unmonitor_all(): ''' unmonitor all services. ''' cmd = 'monit unmonitor all' res = __salt__['cmd.run'](cmd) if res: return "All Services unmonitored" return "Issue unmonitoring all services"
''' Monit service module. This module will create a monit type service watcher. ''' import os def start(name): ''' CLI Example:: salt '*' monit.start <service name> ''' cmd = "monit start {0}".format(name) return not __salt__['cmd.retcode'](cmd) def stop(name): ''' Stops service via monit CLI Example:: salt '*' monit.stop <service name> ''' cmd = "monit stop {0}".format(name) return not __salt__['cmd.retcode'](cmd) def restart(name): ''' Restart service via monit CLI Example:: salt '*' monit.restart <service name> ''' cmd = "monit restart {0}".format(name) return not __salt__['cmd.retcode'](cmd)
Check to see if we are going donw the right path
Check to see if we are going donw the right path
Python
apache-2.0
saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt
4ec2b94551858e404f0de6d8ad3827d9c6138491
slurmec2utils/sysinit.py
slurmec2utils/sysinit.py
#!/usr/bin/python from __future__ import absolute_import, print_function import boto.s3 from boto.s3.key import Key from .clusterconfig import ClusterConfiguration from .instanceinfo import get_instance_id def check_munge_
#!/usr/bin/python from __future__ import absolute_import, print_function import boto.s3 from boto.s3.key import Key from .clusterconfig import ClusterConfiguration from .instanceinfo import get_instance_id def get_munge_key(cluster_configuration=None): if cluster_configuration is None: cluster_configuration = ClusterConfiguration()
Fix syntax errors. (preventing install)
Fix syntax errors. (preventing install)
Python
apache-2.0
dacut/slurm-ec2-utils,dacut/slurm-ec2-utils
0464ac83d8aca12193a7629e72b880d5b8e2707a
plinth/modules/first_boot/templatetags/firstboot_extras.py
plinth/modules/first_boot/templatetags/firstboot_extras.py
# # This file is part of Plinth. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # from django import template from plinth import kvstore register = template.Library() @register.simple_tag def firstboot_is_finished(): state = kvstore.get_default('firstboot_state', 0) return state >= 10
# # This file is part of Plinth. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # """ Template tags for first boot module. """ from django import template from plinth import kvstore register = template.Library() @register.simple_tag def firstboot_is_finished(): """Return whether firstboot process is completed.""" state = kvstore.get_default('firstboot_state', 0) return state >= 10
Add doc strings for custom tags
firstboot: Add doc strings for custom tags
Python
agpl-3.0
vignanl/Plinth,freedomboxtwh/Plinth,harry-7/Plinth,kkampardi/Plinth,harry-7/Plinth,freedomboxtwh/Plinth,kkampardi/Plinth,freedomboxtwh/Plinth,freedomboxtwh/Plinth,harry-7/Plinth,vignanl/Plinth,kkampardi/Plinth,vignanl/Plinth,kkampardi/Plinth,vignanl/Plinth,harry-7/Plinth,harry-7/Plinth,kkampardi/Plinth,vignanl/Plinth,freedomboxtwh/Plinth
00229b2ced2f042cdcbb24bfaac4d33051930b86
source/bark/logger.py
source/bark/logger.py
# :coding: utf-8 # :copyright: Copyright (c) 2013 Martin Pengelly-Phillips # :license: See LICENSE.txt. import copy import bark from .log import Log class Logger(Log): '''Helper for emitting logs. A logger can be used to preset common information (such as a name) and then emit :py:class:`~bark.log.Log` records with that information already present. ''' def __init__(self, name, **kw): '''Initialise logger with identifying *name*.''' kw['name'] = name super(Logger, self).__init__(**kw) def log(self, message, **kw): '''Emit a :py:class:`~bark.log.Log` record. A copy of this logger's information is made and then merged with the passed in *kw* arguments before being emitted. ''' log = copy.deepcopy(self) log.update(**kw) log['message'] = message # Call global handle method. bark.handle(log)
# :coding: utf-8 # :copyright: Copyright (c) 2013 Martin Pengelly-Phillips # :license: See LICENSE.txt. import copy import bark from .log import Log class Logger(Log): '''Helper for emitting logs. A logger can be used to preset common information (such as a name) and then emit :py:class:`~bark.log.Log` records with that information already present. ''' def __init__(self, name, _handle=bark.handle, **kw): '''Initialise logger with identifying *name*. If you need to override the default handle then pass in a custom *_handle* ''' kw['name'] = name super(Logger, self).__init__(**kw) self._handle = _handle def log(self, message, **kw): '''Emit a :py:class:`~bark.log.Log` record. A copy of this logger's information is made and then merged with the passed in *kw* arguments before being emitted. ''' log = copy.deepcopy(self) log.update(**kw) log['message'] = message self._handle(log)
Allow handle to be passed in to avoid embedded global reference.
Allow handle to be passed in to avoid embedded global reference.
Python
apache-2.0
4degrees/mill,4degrees/sawmill
d504abc78d94e8af90a5bf8950f3ad4e2d47e5f7
src/ansible/models.py
src/ansible/models.py
from django.db import models class Playbook(models.Model): class Meta: verbose_name_plural = "playbooks" name = models.CharField(max_length=200) path = models.CharField(max_length=200, default="~/") ansible_config = models.CharField(max_length=200, default="~/") inventory = models.CharField(max_length=200, default="hosts") user = models.CharField(max_length=200, default="ubuntu") def __str__(self): return "Playbook name: %s" % self.playbook.name
from django.db import models class Playbook(models.Model): class Meta: verbose_name_plural = "playbooks" name = models.CharField(max_length=200) path = models.CharField(max_length=200, default="~/") ansible_config = models.CharField(max_length=200, default="~/") inventory = models.CharField(max_length=200, default="hosts") user = models.CharField(max_length=200, default="ubuntu") def __str__(self): return "%s" % self.name
Fix string output of Playbook
Fix string output of Playbook
Python
bsd-3-clause
lozadaOmr/ansible-admin,lozadaOmr/ansible-admin,lozadaOmr/ansible-admin
0d1aa7e08ef2572d2e13218d7d8942d8d2a7550e
app/logic/latexprinter.py
app/logic/latexprinter.py
import sympy from sympy.printing.latex import LatexPrinter class GammaLatexPrinter(LatexPrinter): def _needs_function_brackets(self, expr): if expr.func == sympy.Abs: return False return super(GammaLatexPrinter, self)._needs_function_brackets(expr) def latex(expr, **settings): settings['fold_func_brackets'] = True return GammaLatexPrinter(settings).doprint(expr)
import sympy from sympy.printing.latex import LatexPrinter class GammaLatexPrinter(LatexPrinter): def _needs_function_brackets(self, expr): if expr.func == sympy.Abs: return False return super(GammaLatexPrinter, self)._needs_function_brackets(expr) def latex(expr, **settings): settings['fold_func_brackets'] = True settings['inv_trig_style'] = 'power' return GammaLatexPrinter(settings).doprint(expr)
Print inverse trig functions using powers
Print inverse trig functions using powers
Python
bsd-3-clause
bolshoibooze/sympy_gamma,iScienceLuvr/sympy_gamma,debugger22/sympy_gamma,debugger22/sympy_gamma,iScienceLuvr/sympy_gamma,kaichogami/sympy_gamma,bolshoibooze/sympy_gamma,iScienceLuvr/sympy_gamma,kaichogami/sympy_gamma,bolshoibooze/sympy_gamma,github4ry/sympy_gamma,github4ry/sympy_gamma,github4ry/sympy_gamma,kaichogami/sympy_gamma
311b0d5a0baabbb9c1476a156dbae1b919478704
src/upgradegit/cli.py
src/upgradegit/cli.py
import click import requirements import os import re @click.command() @click.option('--file', default='requirements.txt', help='File to upgrade') @click.option('--branch', default='master', help='Branch to upgrade from') def upgrade(file, branch): lines = [] with open(file, 'r') as f: for req in requirements.parse(f): line = '' if (req.uri): reg = r'([0-9a-z]*)(?=(\s+refs\/heads\/'+branch+'))' uri = req.uri.replace('git+ssh://', 'ssh://git@') cmd = 'git ls-remote {} {} HEAD'.format(uri, branch) result = os.popen(cmd).read() result = result.strip() results = re.findall(reg, result) result = results[0][0] line = re.sub(r'\@([0-9a-f]*)(?=(#|$))', '@'+result, req.line) else: name = req.name spec_op = req.specs[0][0] spec_ver = req.specs[0][1] line = '{name}{spec_op}{spec_ver}'.format( name=name, spec_op=spec_op, spec_ver=spec_ver) lines.append(line) with open(file, 'w') as f: for line in lines: f.write(line+'\n') if __name__ == '__main__': upgrade()
import click import requirements import os import re @click.command() @click.option('--file', default='requirements.txt', help='File to upgrade') @click.option('--branch', default='master', help='Branch to upgrade from') def upgrade(file, branch): lines = [] with open(file, 'r') as f: for req in requirements.parse(f): line = '' if (req.uri): reg = r'([0-9a-z]*)(?=(\s+refs\/heads\/'+branch+'))' uri = req.uri.replace('git+ssh://', 'ssh://git@') cmd = 'git ls-remote {} {} HEAD'.format(uri, branch) result = os.popen(cmd).read() result = result.strip() results = re.findall(reg, result) result = results[0][0] line = re.sub(r'.git(?=(#|$))', '.git@'+result, req.line) else: name = req.name spec_op = req.specs[0][0] spec_ver = req.specs[0][1] line = '{name}{spec_op}{spec_ver}'.format( name=name, spec_op=spec_op, spec_ver=spec_ver) lines.append(line) with open(file, 'w') as f: for line in lines: f.write(line+'\n') if __name__ == '__main__': upgrade()
Allow for requirements without a hash
Allow for requirements without a hash
Python
mit
bevanmw/gitupgrade
2ba5f562edb568653574d329a9f1ffbe8b15e7c5
tests/test_caching.py
tests/test_caching.py
import os import tempfile from . import RTRSSTestCase from rtrss import caching, config class CachingTestCase(RTRSSTestCase): def setUp(self): fh, self.filename = tempfile.mkstemp(dir=config.DATA_DIR) os.close(fh) def tearDown(self): os.remove(self.filename) def test_open_for_atomic_write_writes(self): test_data = 'test' with caching.open_for_atomic_write(self.filename) as f: f.write(test_data) with open(self.filename) as f: data = f.read() self.assertEqual(test_data, data) def test_atomic_write_really_atomic(self): test_data = 'test' with caching.open_for_atomic_write(self.filename) as f: f.write(test_data) with open(self.filename, 'w') as f1: f1.write('this will be overwritten') with open(self.filename) as f: data = f.read() self.assertEqual(test_data, data)
import os import tempfile from . import TempDirTestCase from rtrss import caching class CachingTestCase(TempDirTestCase): def setUp(self): super(CachingTestCase, self).setUp() fh, self.filename = tempfile.mkstemp(dir=self.dir.path) os.close(fh) def tearDown(self): os.remove(self.filename) super(CachingTestCase, self).tearDown() def test_open_for_atomic_write_writes(self): test_data = 'test' with caching.open_for_atomic_write(self.filename) as f: f.write(test_data) with open(self.filename) as f: data = f.read() self.assertEqual(test_data, data) def test_atomic_write_really_atomic(self): test_data = 'test' with caching.open_for_atomic_write(self.filename) as f: f.write(test_data) with open(self.filename, 'w') as f1: f1.write('this will be overwritten') with open(self.filename) as f: data = f.read() self.assertEqual(test_data, data)
Update test case to use new base class
Update test case to use new base class
Python
apache-2.0
notapresent/rtrss,notapresent/rtrss,notapresent/rtrss,notapresent/rtrss
9c22b71bade9a4687df49c8c9a1b1a1b81b3286d
src/franz/__init__.py
src/franz/__init__.py
# The version number must follow these rules: # - When the server is released, a client with exactly the same version number # should be released. # - Bugfixes should be released as consecutive post-releases, # that is versions of the form X.Y.Z.postN, where X.Y.Z is # the AG version number and N increases with each fix. # - Code from the development branch may be released any time # with a version of the form X.Y.ZrcN (rc = release candidate). # # When this file is committed to git the version should look like this: # - In any branch that has already been released: X.Y.Z # AG and Python client versions should be the same. # - In a 'stable' branch: X.Y.ZpostN, where X.Y.Z is the PREVIOUS # version of AG. # - In the development branch: X.Y.ZpreN. # # The full range of valid version numbers is described here: # https://www.python.org/dev/peps/pep-0440/ __version__ = u'6.1.3.post1'
# The version number must follow these rules: # - When the server is released, a client with exactly the same version number # should be released. # - Bugfixes should be released as consecutive post-releases, # that is versions of the form X.Y.Z.postN, where X.Y.Z is # the AG version number and N increases with each fix. # - Code from the development branch may be released any time # with a version of the form X.Y.ZrcN (rc = release candidate). # # When this file is committed to git the version should look like this: # - In any branch that has already been released: X.Y.Z # AG and Python client versions should be the same. # - In a 'stable' branch: X.Y.ZpostN, where X.Y.Z is the PREVIOUS # version of AG. # - In the development branch: X.Y.ZpreN. # # The full range of valid version numbers is described here: # https://www.python.org/dev/peps/pep-0440/ __version__ = u'6.1.4'
Set __version__ to 6.1.4 in preparation for the v6.1.4 release
Set __version__ to 6.1.4 in preparation for the v6.1.4 release That is all. Change-Id: I79edd9574995e50c17c346075bf158e6f1d64a0c Reviewed-on: https://gerrit.franz.com:9080/6845 Reviewed-by: Tadeusz Sznuk <4402abb98f9559cbfb6d73029f928227b498069b@franz.com> Reviewed-by: Ahmon Dancy <8f7d8ce2c6797410ae95fecd4c30801ee9f760ac@franz.com> Tested-by: Ahmon Dancy <8f7d8ce2c6797410ae95fecd4c30801ee9f760ac@franz.com>
Python
mit
franzinc/agraph-python,franzinc/agraph-python,franzinc/agraph-python,franzinc/agraph-python
39d45a64221b8146ac318cfeb833f977ad32fe48
app.py
app.py
import eventlet eventlet.monkey_patch() # NOLINT import importlib import sys from weaveserver.main import create_app from weaveserver.core.logger import configure_logging def handle_launch(): import signal from weaveserver.core.config_loader import get_config configure_logging() token = sys.stdin.readline().strip() name = sys.argv[1] module = importlib.import_module(name) meta = module.__meta__ config = get_config(meta.get("config")) app = meta["class"](token, config) signal.signal(signal.SIGTERM, lambda x, y: app.on_service_stop()) signal.signal(signal.SIGINT, lambda x, y: app.on_service_stop()) app.before_service_start() app.on_service_start() def handle_main(): configure_logging() main_app = create_app() main_app.start()
import eventlet eventlet.monkey_patch() # NOLINT import importlib import os import sys from weaveserver.main import create_app from weaveserver.core.logger import configure_logging def handle_launch(): import signal from weaveserver.core.config_loader import get_config configure_logging() token = sys.stdin.readline().strip() name = sys.argv[1] if len(sys.argv) > 2: # This is mostly for plugins. Need to change dir so imports can succeed. os.chdir(sys.argv[2]) sys.path.append(sys.argv[2]) module = importlib.import_module(name) meta = module.__meta__ config = get_config(meta.get("config")) app = meta["class"](token, config) signal.signal(signal.SIGTERM, lambda x, y: app.on_service_stop()) signal.signal(signal.SIGINT, lambda x, y: app.on_service_stop()) app.before_service_start() app.on_service_start() def handle_main(): configure_logging() main_app = create_app() main_app.start()
Support 2nd parameter for weave-launch so that a plugin from any directory can be loaded.
Support 2nd parameter for weave-launch so that a plugin from any directory can be loaded.
Python
mit
supersaiyanmode/HomePiServer,supersaiyanmode/HomePiServer,supersaiyanmode/HomePiServer
435e27f3104cfe6e4f6577c2a5121ae2a6347eb1
tornado_aws/exceptions.py
tornado_aws/exceptions.py
""" The following exceptions may be raised during the course of using :py:class:`tornado_aws.client.AWSClient` and :py:class:`tornado_aws.client.AsyncAWSClient`: """ class AWSClientException(Exception): """Base exception class for AWSClient :ivar msg: The error message """ fmt = 'An error occurred' def __init__(self, **kwargs): super(AWSClientException, self).__init__(self.fmt.format(**kwargs)) class ConfigNotFound(AWSClientException): """The configuration file could not be parsed. :ivar path: The path to the config file """ fmt = 'The config file could not be found ({path})' class ConfigParserError(AWSClientException): """Error raised when parsing a configuration file with :py:class`configparser.RawConfigParser` :ivar path: The path to the config file """ fmt = 'Unable to parse config file ({path})' class NoCredentialsError(AWSClientException): """Raised when the credentials could not be located.""" fmt = 'Credentials not found' class NoProfileError(AWSClientException): """Raised when the specified profile could not be located. :ivar path: The path to the config file :ivar profile: The profile that was specified """ fmt = 'Profile ({profile}) not found ({path})'
""" The following exceptions may be raised during the course of using :py:class:`tornado_aws.client.AWSClient` and :py:class:`tornado_aws.client.AsyncAWSClient`: """ class AWSClientException(Exception): """Base exception class for AWSClient :ivar msg: The error message """ fmt = 'An error occurred' def __init__(self, **kwargs): super(AWSClientException, self).__init__(self.fmt.format(**kwargs)) class AWSError(AWSClientException): """Raised when the credentials could not be located.""" fmt = '{message}' class ConfigNotFound(AWSClientException): """The configuration file could not be parsed. :ivar path: The path to the config file """ fmt = 'The config file could not be found ({path})' class ConfigParserError(AWSClientException): """Error raised when parsing a configuration file with :py:class`configparser.RawConfigParser` :ivar path: The path to the config file """ fmt = 'Unable to parse config file ({path})' class NoCredentialsError(AWSClientException): """Raised when the credentials could not be located.""" fmt = 'Credentials not found' class NoProfileError(AWSClientException): """Raised when the specified profile could not be located. :ivar path: The path to the config file :ivar profile: The profile that was specified """ fmt = 'Profile ({profile}) not found ({path})'
Add a new generic AWS Error exception
Add a new generic AWS Error exception
Python
bsd-3-clause
gmr/tornado-aws,gmr/tornado-aws
35529cfd3f93723e8d60b43f58419385137b9a01
saltapi/cli.py
saltapi/cli.py
''' CLI entry-point for salt-api ''' # Import salt libs from salt.utils.parsers import ( ConfigDirMixIn, DaemonMixIn, LogLevelMixIn, MergeConfigMixIn, OptionParser, OptionParserMeta, PidfileMixin) # Import salt-api libs import saltapi.client import saltapi.config import saltapi.version class SaltAPI(OptionParser, ConfigDirMixIn, LogLevelMixIn, PidfileMixin, DaemonMixIn, MergeConfigMixIn): ''' The cli parser object used to fire up the salt api system. ''' __metaclass__ = OptionParserMeta VERSION = saltapi.version.__version__ def setup_config(self): return saltapi.config.api_config(self.get_config_file_path('master')) def run(self): ''' Run the api ''' self.parse_args() self.process_config_dir() self.daemonize_if_required() self.set_pidfile() client = saltapi.client.SaltAPIClient(self.config) client.run()
''' CLI entry-point for salt-api ''' # Import salt libs from salt.utils.parsers import ( ConfigDirMixIn, DaemonMixIn, LogLevelMixIn, MergeConfigMixIn, OptionParser, OptionParserMeta, PidfileMixin) # Import salt-api libs import saltapi.client import saltapi.config import saltapi.version class SaltAPI(OptionParser, ConfigDirMixIn, LogLevelMixIn, PidfileMixin, DaemonMixIn, MergeConfigMixIn): ''' The cli parser object used to fire up the salt api system. ''' __metaclass__ = OptionParserMeta VERSION = saltapi.version.__version__ def setup_config(self): return saltapi.config.api_config(self.get_config_file_path('master')) def run(self): ''' Run the api ''' self.parse_args() self.daemonize_if_required() self.set_pidfile() client = saltapi.client.SaltAPIClient(self.config) client.run()
Remove unnecessary call to `process_config_dir()`.
Remove unnecessary call to `process_config_dir()`.
Python
apache-2.0
saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt
38b5438ab6823c7aa352a52d4c61944555b80abe
pyramidpayment/scripts/add_demo_data.py
pyramidpayment/scripts/add_demo_data.py
import os import sys import transaction from sqlalchemy import engine_from_config from pyramid.paster import ( get_appsettings, setup_logging, ) from ..models import ( DBSession, Order, ) def usage(argv): cmd = os.path.basename(argv[0]) print('usage: %s <config_uri>\n' '(example: "%s development.ini")' % (cmd, cmd)) sys.exit(1) def main(argv=sys.argv): if len(argv) != 2: usage(argv) config_uri = argv[1] setup_logging(config_uri) settings = get_appsettings(config_uri) engine = engine_from_config(settings, 'sqlalchemy.') DBSession.configure(bind=engine) with transaction.manager: order = Order('order_0001', 1) DBSession.add(order) orders = DBSession.query(Order).all() print len(orders)
import os import sys import transaction from sqlalchemy import engine_from_config from pyramid.paster import ( get_appsettings, setup_logging, ) from ..models import ( DBSession, Order, ) def usage(argv): cmd = os.path.basename(argv[0]) print('usage: %s <config_uri>\n' '(example: "%s development.ini")' % (cmd, cmd)) sys.exit(1) def main(argv=sys.argv): if len(argv) != 2: usage(argv) config_uri = argv[1] setup_logging(config_uri) settings = get_appsettings(config_uri) engine = engine_from_config(settings, 'sqlalchemy.') DBSession.configure(bind=engine) with transaction.manager: for i in range(0,10): order = Order('exref_%s' % i, 1) DBSession.add(order) orders = DBSession.query(Order).all() print len(orders)
Add a little bit of demo data to show what the list_orders view does
Add a little bit of demo data to show what the list_orders view does
Python
mit
rijkstofberg/pyramid.payment
c02b2711f1b18bba85155f8bf402b5b9824b6502
test/test_producer.py
test/test_producer.py
import pytest from kafka import KafkaConsumer, KafkaProducer from test.conftest import version from test.testutil import random_string @pytest.mark.skipif(not version(), reason="No KAFKA_VERSION set") def test_end_to_end(kafka_broker): connect_str = 'localhost:' + str(kafka_broker.port) producer = KafkaProducer(bootstrap_servers=connect_str, max_block_ms=10000, value_serializer=str.encode) consumer = KafkaConsumer(bootstrap_servers=connect_str, consumer_timeout_ms=10000, auto_offset_reset='earliest', value_deserializer=bytes.decode) topic = random_string(5) for i in range(1000): producer.send(topic, 'msg %d' % i) producer.flush() producer.close() consumer.subscribe([topic]) msgs = set() for i in range(1000): try: msgs.add(next(consumer).value) except StopIteration: break assert msgs == set(['msg %d' % i for i in range(1000)])
import pytest from kafka import KafkaConsumer, KafkaProducer from test.conftest import version from test.testutil import random_string @pytest.mark.skipif(not version(), reason="No KAFKA_VERSION set") def test_end_to_end(kafka_broker): connect_str = 'localhost:' + str(kafka_broker.port) producer = KafkaProducer(bootstrap_servers=connect_str, max_block_ms=10000, value_serializer=str.encode) consumer = KafkaConsumer(bootstrap_servers=connect_str, group_id=None, consumer_timeout_ms=10000, auto_offset_reset='earliest', value_deserializer=bytes.decode) topic = random_string(5) for i in range(1000): producer.send(topic, 'msg %d' % i) producer.flush() producer.close() consumer.subscribe([topic]) msgs = set() for i in range(1000): try: msgs.add(next(consumer).value) except StopIteration: break assert msgs == set(['msg %d' % i for i in range(1000)])
Disable auto-commit / group assignment in producer test
Disable auto-commit / group assignment in producer test
Python
apache-2.0
Aloomaio/kafka-python,zackdever/kafka-python,wikimedia/operations-debs-python-kafka,ohmu/kafka-python,ohmu/kafka-python,mumrah/kafka-python,Yelp/kafka-python,Yelp/kafka-python,dpkp/kafka-python,wikimedia/operations-debs-python-kafka,dpkp/kafka-python,scrapinghub/kafka-python,mumrah/kafka-python,zackdever/kafka-python,Aloomaio/kafka-python,scrapinghub/kafka-python,DataDog/kafka-python
84ad348562e64084894e7c033de870a016390134
server/auth/auth.py
server/auth/auth.py
import json from flask import Blueprint, request from flask.ext.login import current_user, logout_user, login_user from flask.ext.restful import Api, Resource, abort from server.models import Lecturer, db auth = Blueprint('auth', __name__) api = Api(auth) class LoginResource(Resource): def get(self): if current_user.is_active: return {'username': current_user.full_name} else: abort(403, message="The user is not logged in") def post(self): email = request.form['email'] password = request.form['password'] user = ( db.session.query(Lecturer) .filter(Lecturer.email == email) .filter(Lecturer.password == password) .first() ) if not user: abort(403, message="Invalid credentials") login_user(user) return {'username': current_user.full_name} class LogoutResource(Resource): def post(self): logout_user() return '', 204 api.add_resource(LoginResource, '/login') api.add_resource(LogoutResource, '/logout')
import json from flask import Blueprint, request from flask.ext.login import current_user, logout_user, login_user from flask.ext.restful import Api, Resource, abort, reqparse from server.models import Lecturer, db auth = Blueprint('auth', __name__) api = Api(auth) class LoginResource(Resource): def get(self): if current_user.is_active: return {'username': current_user.full_name} else: abort(403, message="The user is not logged in") def post(self): argparser = reqparse.RequestParser() argparser.add_argument('email', required=True) argparser.add_argument('password', required=True) args = argparser.parse_args() email = args.email password = args.password user = ( db.session.query(Lecturer) .filter(Lecturer.email == email) .filter(Lecturer.password == password) .first() ) if not user: abort(403, message="Invalid credentials") login_user(user) return {'username': current_user.full_name} class LogoutResource(Resource): def post(self): logout_user() return '', 204 api.add_resource(LoginResource, '/login') api.add_resource(LogoutResource, '/logout')
Fix Login API implementation not parsing JSON POST data
Fix Login API implementation not parsing JSON POST data
Python
mit
MACSIFS/IFS,MACSIFS/IFS,MACSIFS/IFS,MACSIFS/IFS
6f295ef267e715166d89f2584f60667d961f82b5
tests/test_imports.py
tests/test_imports.py
import os import sys # Modify the sys.path to allow tests to be run without # installing the module. test_path = os.path.dirname(os.path.abspath(__file__)) sys.path.insert(1, test_path + '/../') import pypm import pytest def test_patch_replaces_and_restores(): i = __import__ pypm.patch_import() assert i is not __import__ pypm.unpatch_import() assert i is __import__ def test_require_gets_local(): t1_import_test = pypm.require('import_test') assert '.pymodules' in repr(t1_import_test) def test_require_uses_module_cache(): t2_import_test = pypm.require('import_test') t3_import_test = pypm.require('import_test') assert t2_import_test is t3_import_test def test_require_not_conflict_with_import(): setuptools = pypm.require('setuptools') import setuptools as setuptools2 assert setuptools2 is not setuptools @pytest.mark.xfail def test_BUG_require_cannot_override_standard_lib(): re2 = pypm.require('re') assert '.pymodules' in repr(re2)
import os import sys # Modify the sys.path to allow tests to be run without # installing the module. test_path = os.path.dirname(os.path.abspath(__file__)) sys.path.insert(1, test_path + '/../') import require import pytest def test_patch_replaces_and_restores(): i = __import__ require.patch_import() assert i is not __import__ require.unpatch_import() assert i is __import__ def test_require_gets_local(): t1_import_test = require.require('import_test') assert '.pymodules' in repr(t1_import_test) def test_require_uses_module_cache(): t2_import_test = require.require('import_test') t3_import_test = require.require('import_test') assert t2_import_test is t3_import_test def test_require_not_conflict_with_import(): setuptools = require.require('setuptools') import setuptools as setuptools2 assert setuptools2 is not setuptools @pytest.mark.xfail def test_BUG_require_cannot_override_standard_lib(): re2 = require.require('re') assert '.pymodules' in repr(re2)
Change import path in tests to reflect new name
Change import path in tests to reflect new name Signed-off-by: Kevin Conway <3473c1f185ca03eadc40ad288d84425b54fd7d57@gmail.com>
Python
apache-2.0
kevinconway/require.py
645265be1097f463e9d12f2be1a3a4de2b136f0c
tests/test_pooling.py
tests/test_pooling.py
try: import queue except ImportError: import Queue as queue import pylibmc from nose.tools import eq_, ok_ from tests import PylibmcTestCase class PoolTestCase(PylibmcTestCase): pass class ClientPoolTests(PoolTestCase): def test_simple(self): a_str = "a" p = pylibmc.ClientPool(self.mc, 2) with p.reserve() as smc: ok_(smc) ok_(smc.set(a_str, 1)) eq_(smc[a_str], 1) def test_exhaust(self): p = pylibmc.ClientPool(self.mc, 2) with p.reserve() as smc1: with p.reserve() as smc2: self.assertRaises(queue.Empty, p.reserve().__enter__) # TODO Thread-mapped pool tests
try: import queue except ImportError: import Queue as queue import pylibmc from nose.tools import eq_, ok_ from tests import PylibmcTestCase class PoolTestCase(PylibmcTestCase): pass class ClientPoolTests(PoolTestCase): def test_simple(self): a_str = "a" p = pylibmc.ClientPool(self.mc, 2) with p.reserve() as smc: ok_(smc) ok_(smc.set(a_str, 1)) eq_(smc[a_str], 1) def test_exhaust(self): p = pylibmc.ClientPool(self.mc, 2) with p.reserve() as smc1: with p.reserve() as smc2: self.assertRaises(queue.Empty, p.reserve().__enter__) class ThreadMappedPoolTests(PoolTestCase): def test_simple(self): a_str = "a" p = pylibmc.ThreadMappedPool(self.mc) with p.reserve() as smc: ok_(smc) ok_(smc.set(a_str, 1)) eq_(smc[a_str], 1)
Add rudimentary testing for thread-mapped pools
Add rudimentary testing for thread-mapped pools Refs #174
Python
bsd-3-clause
lericson/pylibmc,lericson/pylibmc,lericson/pylibmc
f33bbdaae182eee27ad372a6f0d10e9c7be66a6f
polygraph/types/__init__.py
polygraph/types/__init__.py
from .enum import EnumType from .field import field from .input_object import InputObject from .interface import Interface from .lazy_type import LazyType from .list import List from .nonnull import NonNull from .object_type import ObjectType from .scalar import ID, Boolean, Float, Int, String from .union import Union __all__ = [ "Boolean", "EnumType", "field", "Float", "ID", "InputObject", "Int", "Interface", "LazyType", "List", "NonNull", "ObjectType", "String", "Union", ]
from .enum import EnumType, EnumValue from .field import field from .input_object import InputObject, InputValue from .interface import Interface from .lazy_type import LazyType from .list import List from .nonnull import NonNull from .object_type import ObjectType from .scalar import ID, Boolean, Float, Int, String from .union import Union __all__ = [ "Boolean", "EnumType", "EnumValue", "field", "Float", "ID", "InputObject", "InputValue", "Int", "Interface", "LazyType", "List", "NonNull", "ObjectType", "String", "Union", ]
Fix polygraph.types import to include EnumValue and InputValue
Fix polygraph.types import to include EnumValue and InputValue
Python
mit
polygraph-python/polygraph
7eaa1cf6f8e572ce5b854fffce10b05628c79c0f
tools/marvin/setup.py
tools/marvin/setup.py
#!/usr/bin/env python # Copyright 2012 Citrix Systems, Inc. Licensed under the # Apache License, Version 2.0 (the "License"); you may not use this # file except in compliance with the License. Citrix Systems, Inc. from distutils.core import setup from sys import version if version < "2.7": print "Marvin needs at least python 2.7, found : \n%s"%version else: try: import paramiko except ImportError: print "Marvin requires paramiko to be installed" raise setup(name="Marvin", version="0.1.0", description="Marvin - Python client for testing cloudstack", author="Edison Su", author_email="Edison.Su@citrix.com", maintainer="Prasanna Santhanam", maintainer_email="Prasanna.Santhanam@citrix.com", long_description="Marvin is the cloudstack testclient written around the python unittest framework", platforms=("Any",), url="http://jenkins.cloudstack.org:8080/job/marvin", packages=["marvin", "marvin.cloudstackAPI", "marvin.sandbox", "marvin.pymysql", "marvin.pymysql.constants", "marvin.pymysql.tests"], license="LICENSE.txt", install_requires=[ "Python>=2.7", "paramiko", "nose" ], )
#!/usr/bin/env python # Copyright 2012 Citrix Systems, Inc. Licensed under the # Apache License, Version 2.0 (the "License"); you may not use this # file except in compliance with the License. Citrix Systems, Inc. from distutils.core import setup from sys import version if version < "2.7": print "Marvin needs at least python 2.7, found : \n%s"%version raise setup(name="Marvin", version="0.1.0", description="Marvin - Python client for testing cloudstack", author="Edison Su", author_email="Edison.Su@citrix.com", maintainer="Prasanna Santhanam", maintainer_email="Prasanna.Santhanam@citrix.com", long_description="Marvin is the cloudstack testclient written around the python unittest framework", platforms=("Any",), url="http://jenkins.cloudstack.org:8080/job/marvin", packages=["marvin", "marvin.cloudstackAPI", "marvin.sandbox", "marvin.pymysql", "marvin.pymysql.constants", "marvin.pymysql.tests"], license="LICENSE.txt", install_requires=[ "Python>=2.7", "paramiko", "nose" ], )
Install paramiko as a dependency, don't complain about the requirement
Install paramiko as a dependency, don't complain about the requirement
Python
apache-2.0
mufaddalq/cloudstack-datera-driver,jcshen007/cloudstack,cinderella/incubator-cloudstack,cinderella/incubator-cloudstack,wido/cloudstack,jcshen007/cloudstack,resmo/cloudstack,argv0/cloudstack,mufaddalq/cloudstack-datera-driver,mufaddalq/cloudstack-datera-driver,wido/cloudstack,jcshen007/cloudstack,resmo/cloudstack,DaanHoogland/cloudstack,resmo/cloudstack,mufaddalq/cloudstack-datera-driver,GabrielBrascher/cloudstack,jcshen007/cloudstack,GabrielBrascher/cloudstack,argv0/cloudstack,GabrielBrascher/cloudstack,wido/cloudstack,resmo/cloudstack,DaanHoogland/cloudstack,jcshen007/cloudstack,DaanHoogland/cloudstack,wido/cloudstack,jcshen007/cloudstack,mufaddalq/cloudstack-datera-driver,GabrielBrascher/cloudstack,GabrielBrascher/cloudstack,mufaddalq/cloudstack-datera-driver,argv0/cloudstack,DaanHoogland/cloudstack,wido/cloudstack,resmo/cloudstack,resmo/cloudstack,jcshen007/cloudstack,cinderella/incubator-cloudstack,wido/cloudstack,DaanHoogland/cloudstack,cinderella/incubator-cloudstack,GabrielBrascher/cloudstack,wido/cloudstack,argv0/cloudstack,argv0/cloudstack,DaanHoogland/cloudstack,DaanHoogland/cloudstack,cinderella/incubator-cloudstack,GabrielBrascher/cloudstack,resmo/cloudstack,argv0/cloudstack
d7d1df44e39ad7af91046a61f40b357a9aa9943a
pox.py
pox.py
#!/usr/bin/python # Set default log level import logging logging.basicConfig(level=logging.DEBUG) from pox.core import core import pox.openflow.openflow import pox.topology.topology import pox.openflow.of_01 import pox.dumb_l3_switch.dumb_l3_switch import pox.messenger.messenger # Turn on extra info for event exceptions import pox.lib.revent.revent as revent revent.showEventExceptions = True def startup (): core.register("topology", pox.topology.topology.Topology()) core.register("openflow", pox.openflow.openflow.OpenFlowHub()) core.register("switch", pox.dumb_l3_switch.dumb_l3_switch.dumb_l3_switch()) pox.openflow.of_01.start() pox.messenger.messenger.start() if __name__ == '__main__': try: startup() core.goUp() except: import traceback traceback.print_exc() import code code.interact('Ready.', local=locals()) pox.core.core.quit()
#!/usr/bin/python # Set default log level import logging logging.basicConfig(level=logging.DEBUG) from pox.core import core import pox.openflow.openflow import pox.topology.topology import pox.openflow.of_01 import pox.dumb_l3_switch.dumb_l3_switch import pox.messenger.messenger # Turn on extra info for event exceptions import pox.lib.revent.revent as revent revent.showEventExceptions = True def startup (): core.register("topology", pox.topology.topology.Topology()) core.register("openflow", pox.openflow.openflow.OpenFlowHub()) core.register("switch", pox.dumb_l3_switch.dumb_l3_switch.dumb_l3_switch()) pox.openflow.of_01.start() pox.messenger.messenger.start() if __name__ == '__main__': try: startup() core.goUp() except: import traceback traceback.print_exc() import time time.sleep(1) import code import sys sys.ps1 = "POX> " sys.ps2 = " ... " code.interact('Ready.', local=locals()) pox.core.core.quit()
Add startup delay and change interpreter prompts
Add startup delay and change interpreter prompts The delay is so that hopefully switch connections don't IMMEDIATELY print all over the prompt. We'll do something better eventually.
Python
apache-2.0
adusia/pox,jacobq/csci5221-viro-project,jacobq/csci5221-viro-project,chenyuntc/pox,VamsikrishnaNallabothu/pox,andiwundsam/_of_normalize,andiwundsam/_of_normalize,jacobq/csci5221-viro-project,pthien92/sdn,MurphyMc/pox,denovogroup/pox,chenyuntc/pox,carlye566/IoT-POX,kulawczukmarcin/mypox,MurphyMc/pox,PrincetonUniversity/pox,waltznetworks/pox,waltznetworks/pox,kavitshah8/SDNDeveloper,PrincetonUniversity/pox,MurphyMc/pox,diogommartins/pox,denovogroup/pox,noxrepo/pox,kpengboy/pox-exercise,adusia/pox,xAKLx/pox,chenyuntc/pox,MurphyMc/pox,pthien92/sdn,denovogroup/pox,diogommartins/pox,carlye566/IoT-POX,carlye566/IoT-POX,diogommartins/pox,waltznetworks/pox,waltznetworks/pox,jacobq/csci5221-viro-project,adusia/pox,chenyuntc/pox,kpengboy/pox-exercise,kulawczukmarcin/mypox,denovogroup/pox,kavitshah8/SDNDeveloper,VamsikrishnaNallabothu/pox,noxrepo/pox,PrincetonUniversity/pox,PrincetonUniversity/pox,andiwundsam/_of_normalize,pthien92/sdn,denovogroup/pox,noxrepo/pox,kpengboy/pox-exercise,waltznetworks/pox,kpengboy/pox-exercise,diogommartins/pox,carlye566/IoT-POX,xAKLx/pox,VamsikrishnaNallabothu/pox,pthien92/sdn,xAKLx/pox,adusia/pox,kulawczukmarcin/mypox,pthien92/sdn,xAKLx/pox,kavitshah8/SDNDeveloper,xAKLx/pox,kpengboy/pox-exercise,noxrepo/pox,adusia/pox,MurphyMc/pox,VamsikrishnaNallabothu/pox,kulawczukmarcin/mypox,PrincetonUniversity/pox,andiwundsam/_of_normalize,kavitshah8/SDNDeveloper,carlye566/IoT-POX,jacobq/csci5221-viro-project,diogommartins/pox,chenyuntc/pox,VamsikrishnaNallabothu/pox,kulawczukmarcin/mypox
2644beb974ea9ddb6232af1cc0173fac21a6b30e
run-lala.py
run-lala.py
#!/usr/bin/python2 import ConfigParser import sys import os from lala import Bot def main(): """Main method""" config = ConfigParser.SafeConfigParser() #configfile = os.path.join(os.getenv("XDG_CONFIG_HOME"),"lala","config") configfile = "config.test" config.read(configfile) lalaconfig = config._sections["lala"] if "-d" in sys.argv: debug = True else: debug = False nickserv_password = lalaconfig["nickserv_password"] if "nickserv_password"\ in lalaconfig else None plugins = lalaconfig["plugins"].split(",") bot = Bot( server=lalaconfig["server"], admin=lalaconfig["admin"], port=int(lalaconfig["port"]), nick=lalaconfig["nick"], #channel=lalaconfig["channel"], debug=debug, plugins=plugins, nickserv = nickserv_password ) #try: bot.mainloop() #except RuntimeError, e: #print e if __name__ == '__main__': main()
#!/usr/bin/python2 import ConfigParser import sys import os from lala import Bot def main(): """Main method""" config = ConfigParser.SafeConfigParser() configfile = os.path.join(os.getenv("XDG_CONFIG_HOME"),"lala","config") config.read(configfile) lalaconfig = config._sections["lala"] if "-d" in sys.argv: debug = True else: debug = False nickserv_password = lalaconfig["nickserv_password"] if "nickserv_password"\ in lalaconfig else None plugins = lalaconfig["plugins"].split(",") bot = Bot( server=lalaconfig["server"], admin=lalaconfig["admin"], port=int(lalaconfig["port"]), nick=lalaconfig["nick"], #channel=lalaconfig["channel"], debug=debug, plugins=plugins, nickserv = nickserv_password ) #try: bot.mainloop() #except RuntimeError, e: #print e if __name__ == '__main__': main()
Read the real config file, not config.test
Read the real config file, not config.test
Python
mit
mineo/lala,mineo/lala
fb3fd1625cbf8e8181768748bbbba72fddf90945
webview/js/drag.py
webview/js/drag.py
src = """ (function() { var initialX = 0; var initialY = 0; function onMouseMove(ev) { var x = ev.screenX - initialX; var y = ev.screenY - initialY; window.pywebview._bridge.call('moveWindow', [x, y], 'move'); } function onMouseUp() { window.removeEventListener('mousemove', onMouseMove); } function onMouseDown(ev) { initialX = ev.clientX; initialY = ev.clientY; window.addEventListener('mouseup', onMouseUp); window.addEventListener('mousemove', onMouseMove); } var dragBlocks = document.querySelectorAll('%s'); dragBlocks.forEach(function(dragBlock) { dragBlock.addEventListener('mousedown', onMouseDown); }); })(); """
src = """ (function() { var initialX = 0; var initialY = 0; function onMouseMove(ev) { var x = ev.screenX - initialX; var y = ev.screenY - initialY; window.pywebview._bridge.call('moveWindow', [x, y], 'move'); } function onMouseUp() { window.removeEventListener('mousemove', onMouseMove); } function onMouseDown(ev) { initialX = ev.clientX; initialY = ev.clientY; window.addEventListener('mouseup', onMouseUp); window.addEventListener('mousemove', onMouseMove); } var dragBlocks = document.querySelectorAll('%s'); for(var i=0; i < dragBlocks.length; i++) { dragBlocks[i].addEventListener('mousedown', onMouseDown); } })(); """
Use old JS for loop over forEach for backwards compatibility.
Use old JS for loop over forEach for backwards compatibility.
Python
bsd-3-clause
r0x0r/pywebview,r0x0r/pywebview,r0x0r/pywebview,r0x0r/pywebview,r0x0r/pywebview
8c6940a82b4504786e221f0603b8995db41adcae
reddit2telegram/channels/r_wholesome/app.py
reddit2telegram/channels/r_wholesome/app.py
#encoding:utf-8 subreddit = 'wholesome' t_channel = '@r_wholesome' def send_post(submission, r2t): return r2t.send_simple(submission)
#encoding:utf-8 subreddit = 'wholesome+WholesomeComics+wholesomegifs+wholesomepics+wholesomememes' t_channel = '@r_wholesome' def send_post(submission, r2t): return r2t.send_simple(submission)
Add a few subreddits to @r_wholesome
Add a few subreddits to @r_wholesome
Python
mit
Fillll/reddit2telegram,Fillll/reddit2telegram
ba4589e727a49486134e0cceab842510be9661f4
mobile_app_connector/models/privacy_statement.py
mobile_app_connector/models/privacy_statement.py
# -*- coding: utf-8 -*- ############################################################################## # # Copyright (C) 2019 Compassion CH (http://www.compassion.ch) # @author: Emanuel Cino <ecino@compassion.ch> # @author: Théo Nikles <theo.nikles@gmail.com> # # The licence is in the file __manifest__.py # ############################################################################## from odoo import models, fields class PrivacyStatementAgreement(models.Model): _inherit = 'privacy.statement.agreement' origin_signature = fields.Selection( selection_add=[('mobile_app', 'Mobile App Registration')]) def mobile_get_privacy_notice(self, language, **params): return {'PrivacyNotice': self.env['compassion.privacy.statement'] .with_context(lang=language) .sudo().search([], limit=1).text}
# -*- coding: utf-8 -*- ############################################################################## # # Copyright (C) 2019 Compassion CH (http://www.compassion.ch) # @author: Emanuel Cino <ecino@compassion.ch> # @author: Théo Nikles <theo.nikles@gmail.com> # # The licence is in the file __manifest__.py # ############################################################################## from ..controllers.mobile_app_controller import _get_lang from odoo import models, fields class PrivacyStatementAgreement(models.Model): _inherit = 'privacy.statement.agreement' origin_signature = fields.Selection( selection_add=[('mobile_app', 'Mobile App Registration')]) def mobile_get_privacy_notice(self, **params): lang = _get_lang(self, params) return {'PrivacyNotice': self.env['compassion.privacy.statement'] .with_context(lang=lang) .sudo().search([], limit=1).text}
FIX language of privacy statement
FIX language of privacy statement
Python
agpl-3.0
eicher31/compassion-modules,ecino/compassion-modules,CompassionCH/compassion-modules,ecino/compassion-modules,ecino/compassion-modules,CompassionCH/compassion-modules,CompassionCH/compassion-modules,ecino/compassion-modules,eicher31/compassion-modules,eicher31/compassion-modules,ecino/compassion-modules,CompassionCH/compassion-modules,eicher31/compassion-modules,eicher31/compassion-modules
2e1be817622ff5f3d127c53e09a8c9fb1cc12dfb
icekit_events/plugins/event_content_listing/forms.py
icekit_events/plugins/event_content_listing/forms.py
from icekit.plugins.content_listing.forms import ContentListingAdminForm from icekit_events.models import EventBase from .models import EventContentListingItem class EventContentListingAdminForm(ContentListingAdminForm): class Meta: model = EventContentListingItem fields = '__all__' def filter_content_types(self, content_type_qs): """ Filter the content types selectable to only event subclasses """ valid_ct_ids = [] for ct in content_type_qs: model = ct.model_class() if model and issubclass(model, EventBase): valid_ct_ids.append(ct.id) return content_type_qs.filter(pk__in=valid_ct_ids)
from icekit.plugins.content_listing.forms import ContentListingAdminForm from icekit_events.models import EventBase from .models import EventContentListingItem class EventContentListingAdminForm(ContentListingAdminForm): # TODO Improve admin experience: # - horizontal filter for `limit_to_types` choice # - verbose_name for Content Type # - default (required) value for No Items Message. class Meta: model = EventContentListingItem fields = '__all__' def filter_content_types(self, content_type_qs): """ Filter the content types selectable to only event subclasses """ valid_ct_ids = [] for ct in content_type_qs: model = ct.model_class() if model and issubclass(model, EventBase): valid_ct_ids.append(ct.id) return content_type_qs.filter(pk__in=valid_ct_ids)
Add TODO's for improving admin experience for Event Content Listing
Add TODO's for improving admin experience for Event Content Listing
Python
mit
ic-labs/icekit-events,ic-labs/icekit-events,ic-labs/icekit-events,ic-labs/django-icekit,ic-labs/django-icekit,ic-labs/django-icekit,ic-labs/django-icekit
09687d4704b9b93efc94bf66680af69ab54cfc22
comics/comics/libertymeadows.py
comics/comics/libertymeadows.py
from comics.aggregator.crawler import CreatorsCrawlerBase from comics.core.comic_data import ComicDataBase class ComicData(ComicDataBase): name = "Liberty Meadows" language = "en" url = "http://www.creators.com/comics/liberty-meadows.html" start_date = "1997-03-30" end_date = "2001-12-31" rights = "Frank Cho" class Crawler(CreatorsCrawlerBase): history_capable_date = "2006-11-21" schedule = "Mo,Tu,We,Th,Fr,Sa,Su" time_zone = "US/Pacific" def crawl(self, pub_date): return self.crawl_helper("153", pub_date)
from comics.aggregator.crawler import CreatorsCrawlerBase from comics.core.comic_data import ComicDataBase class ComicData(ComicDataBase): name = "Liberty Meadows" language = "en" url = "http://www.creators.com/comics/liberty-meadows.html" start_date = "1997-03-30" end_date = "2001-12-31" rights = "Frank Cho" class Crawler(CreatorsCrawlerBase): history_capable_date = "2006-10-25" schedule = "Mo,Tu,We,Th,Fr,Sa,Su" time_zone = "US/Pacific" def crawl(self, pub_date): return self.crawl_helper("153", pub_date)
Update history capability for "Liberty Meadows"
Update history capability for "Liberty Meadows"
Python
agpl-3.0
jodal/comics,datagutten/comics,jodal/comics,jodal/comics,jodal/comics,datagutten/comics,datagutten/comics,datagutten/comics
0a56d590a34cfd45ce2280f1818e1ee4fbff5b35
bouncer-plumbing/setup.py
bouncer-plumbing/setup.py
#!/usr/bin/env python2 from setuptools import setup setup( name='bouncer-plumbing', description='Glue scripts to integrate oonib with mlab-ns (simulator).', version='0.1.dev0', author='LeastAuthority', author_email='consultancy@leastauthority.com', license='FIXME', url='https://github.com/LeastAuthority/ooni-support', scripts = [ './collector-to-mlab/getconfig.py', './mlab-to-bouncer/makeconfig.py', ], data_files = [ ('/home/mlab_ooni/bin/', ['collector-to-mlab/get_ipv4.sh']), ], install_requires=[ 'PyYaml', # BUG: Put a version constraint. ], )
#!/usr/bin/env python2 from setuptools import setup setup( name='bouncer-plumbing', description='Glue scripts to integrate oonib with mlab-ns (simulator).', version='0.1.dev0', author='LeastAuthority', author_email='consultancy@leastauthority.com', license='FIXME', url='https://github.com/LeastAuthority/ooni-support', scripts = [ './collector-to-mlab/getconfig.py', './mlab-to-bouncer/makeconfig.py', ], data_files = [ ('/home/mlab_ooni/bin/', ['collector-to-mlab/get_ipv4.sh', 'mlab-to-bouncer/update-bouncer.sh', ], ), ], install_requires=[ 'PyYaml', # BUG: Put a version constraint. ], )
Add ``update_bouncer.sh`` as a data file to the python package for bouncer_plumbing.
Add ``update_bouncer.sh`` as a data file to the python package for bouncer_plumbing.
Python
apache-2.0
m-lab/ooni-support,m-lab/ooni-support,hellais/ooni-support,hellais/ooni-support
73cd4a910c2921f149d381113fd06bcae5d8e6e7
business_rules/actions.py
business_rules/actions.py
import inspect from . import fields from .utils import fn_name_to_pretty_description class BaseActions(object): """ Classes that hold a collection of actions to use with the rules engine should inherit from this. """ @classmethod def get_all_actions(cls): methods = inspect.getmembers(cls) return [{'name': m[0], 'description': m[1].description, 'params': m[1].params } for m in methods if getattr(m[1], 'is_rule_action', False)] def rule_action(description=None, params=None): """ Decorator to make a function into a rule action """ def wrapper(func): # Verify field name is valid valid_fields = [getattr(fields, f) for f in dir(fields) \ if f.startswith("FIELD_")] for param_name, field_type in params.items(): if param_name not in func.func_code.co_varnames: raise AssertionError("Unknown parameter name {0} specified for action {1}".format(param_name, func.__name__)) if field_type not in valid_fields: raise AssertionError("Unknown field type {0} specified for"\ " action {1} param {2}".format( field_type, func.__name__, param_name)) func.is_rule_action = True func.description = description \ or fn_name_to_pretty_description(func.__name__) func.params = params return func return wrapper
import inspect from . import fields from .utils import fn_name_to_pretty_description class BaseActions(object): """ Classes that hold a collection of actions to use with the rules engine should inherit from this. """ @classmethod def get_all_actions(cls): methods = inspect.getmembers(cls) return [{'name': m[0], 'description': m[1].description, 'params': m[1].params } for m in methods if getattr(m[1], 'is_rule_action', False)] def rule_action(description=None, params=None): """ Decorator to make a function into a rule action """ def wrapper(func): # Verify field name is valid valid_fields = [getattr(fields, f) for f in dir(fields) \ if f.startswith("FIELD_")] for param_name, field_type in params.items(): if param_name not in func.__code__.co_varnames: raise AssertionError("Unknown parameter name {0} specified for action {1}".format(param_name, func.__name__)) if field_type not in valid_fields: raise AssertionError("Unknown field type {0} specified for"\ " action {1} param {2}".format( field_type, func.__name__, param_name)) func.is_rule_action = True func.description = description \ or fn_name_to_pretty_description(func.__name__) func.params = params return func return wrapper
Change func_code to __code__ to work with python 3
Change func_code to __code__ to work with python 3
Python
mit
venmo/business-rules,adnymics/business-rules,erikdejonge/business-rules,erikdejonge/business-rules
e5b802b62c3c13aa9d213ddf4f51706921904dd1
src/texture.py
src/texture.py
""" A OpenGL texture class """ from OpenGL.GL import * import pygame class Texture(object): """An OpenGL texture""" def __init__(self, file_): # Load and allocate the texture self.surface = pygame.image.load(file_).convert_alpha() self.__texture = glGenTextures(1) self.reload() def reload(self): # Set up the texture glEnable(GL_TEXTURE_2D) glBindTexture(GL_TEXTURE_2D, self.__texture) glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP) glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP) glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST) glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST) glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, self.w, self.h, 0, GL_RGBA, GL_UNSIGNED_BYTE, pygame.image.tostring(self.surface, "RGBA", True)) def bind(self): glBindTexture(GL_TEXTURE_2D, self.__texture) w = property(lambda self: self.surface.get_width()) h = property(lambda self: self.surface.get_height())
""" A OpenGL texture class """ from OpenGL.GL import * import pygame class Texture(object): """An OpenGL texture""" def __init__(self, file_): """Allocate and load the texture""" self.surface = pygame.image.load(file_).convert_alpha() self.__texture = glGenTextures(1) self.reload() def __del__(self): """Release the texture""" glDeleteTextures([self.__texture]) def reload(self): """Load the texture""" glBindTexture(GL_TEXTURE_2D, self.__texture) glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP) glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP) glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST) glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST) glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, self.w, self.h, 0, GL_RGBA, GL_UNSIGNED_BYTE, pygame.image.tostring(self.surface, "RGBA", True)) def bind(self): """Make the texture active in the current OpenGL context""" glBindTexture(GL_TEXTURE_2D, self.__texture) w = property(lambda self: self.surface.get_width()) h = property(lambda self: self.surface.get_height())
Remove resource leak in Texture
Remove resource leak in Texture This commit adds code to Texture to delete allocated textures when they are garbage collected. Comments in Texture are also updated.
Python
mit
aarmea/mumei,aarmea/mumei,aarmea/mumei
e74c277f6064af64a6c23f1a00f86cc41da77b93
wikipendium/user/forms.py
wikipendium/user/forms.py
from django.forms import Form, CharField, EmailField, ValidationError from django.contrib.auth.models import User class UserChangeForm(Form): username = CharField(max_length=30, label='New username') def clean(self): cleaned_data = super(UserChangeForm, self).clean() if User.objects.filter(username=cleaned_data['username']).count(): raise ValidationError('Username already taken!') return cleaned_data class EmailChangeForm(Form): email = EmailField(max_length=75, label='New email')
from django.forms import Form, CharField, EmailField, ValidationError from django.contrib.auth.models import User class UserChangeForm(Form): username = CharField(max_length=30, label='New username') def clean(self): cleaned_data = super(UserChangeForm, self).clean() if User.objects.filter(username=cleaned_data['username']).count(): raise ValidationError('Username already taken!') return cleaned_data class EmailChangeForm(Form): email = EmailField(max_length=254, label='New email')
Set email max_length to 254 to conform with the model
Set email max_length to 254 to conform with the model
Python
apache-2.0
stianjensen/wikipendium.no,stianjensen/wikipendium.no,stianjensen/wikipendium.no
f44681ffc93ba85add8aeacc55eb8946b03b68a2
1_boilerpipe_lib.py
1_boilerpipe_lib.py
# -*- coding: UTF-8 -*- from boilerpipe.extract import Extractor URL='http://sportv.globo.com/site/eventos/mundial-de-motovelocidade/noticia/2016/06/em-duelo-eletrizante-rossi-vence-marquez-salom-e-homenageado.html' extractor = Extractor(extractor='ArticleExtractor', url=URL) print extractor.getText().encode('utf-8')
# -*- coding: UTF-8 -*- from boilerpipe.extract import Extractor URL='http://sportv.globo.com/site/eventos/mundial-de-motovelocidade/noticia/2016/06/em-duelo-eletrizante-rossi-vence-marquez-salom-e-homenageado.html' # URL='http://grandepremio.uol.com.br/motogp/noticias/rossi-supera-largada-ruim-vence-duelo-com-marquez-e-chega-a-10-vitoria-na-catalunha-lorenzo-abandona' extractor = Extractor(extractor='ArticleExtractor', url=URL) print extractor.getText().encode('utf-8')
Add one more url to example 1
Add one more url to example 1
Python
apache-2.0
fabriciojoc/redes-sociais-web,fabriciojoc/redes-sociais-web
129b4d169f33e46547a7a701e4e50b7dd9fe8468
traits/qt/__init__.py
traits/qt/__init__.py
#------------------------------------------------------------------------------ # Copyright (c) 2010, Enthought Inc # All rights reserved. # # This software is provided without warranty under the terms of the BSD license. # # Author: Enthought Inc # Description: Qt API selector. Can be used to switch between pyQt and PySide #------------------------------------------------------------------------------ import os def prepare_pyqt4(): # Set PySide compatible APIs. import sip sip.setapi('QString', 2) sip.setapi('QVariant', 2) qt_api = os.environ.get('QT_API') if qt_api is None: try: import PySide qt_api = 'pyside' except ImportError: try: prepare_pyqt4() import PyQt4 qt_api = 'pyqt' except ImportError: raise ImportError('Cannot import PySide or PyQt4') elif qt_api == 'pyqt': prepare_pyqt4() elif qt_api != 'pyside': raise RuntimeError('Invalid Qt API %r, valid values are: pyqt or pyside')
#------------------------------------------------------------------------------ # Copyright (c) 2010, Enthought Inc # All rights reserved. # # This software is provided without warranty under the terms of the BSD license. # # Author: Enthought Inc # Description: Qt API selector. Can be used to switch between pyQt and PySide #------------------------------------------------------------------------------ import os def prepare_pyqt4(): # Set PySide compatible APIs. import sip sip.setapi('QString', 2) sip.setapi('QVariant', 2) qt_api = os.environ.get('QT_API') if qt_api is None: try: import PySide qt_api = 'pyside' except ImportError: try: prepare_pyqt4() import PyQt4 qt_api = 'pyqt' except ImportError: raise ImportError('Cannot import PySide or PyQt4') elif qt_api == 'pyqt': prepare_pyqt4() elif qt_api != 'pyside': raise RuntimeError("Invalid Qt API %r, valid values are: 'pyqt' or 'pyside'" % qt_api)
Fix error message for invalid QT_API.
Fix error message for invalid QT_API.
Python
bsd-3-clause
burnpanck/traits,burnpanck/traits
b66143e2984fb390766cf47dd2297a3f06ad26d0
apps/home/views.py
apps/home/views.py
# (c) Crown Owned Copyright, 2016. Dstl. from django.core.urlresolvers import reverse from django.shortcuts import redirect from django.views.generic.base import View from django.contrib.auth import login class Home(View): # Get the homepage. If the user isn't logged in, (we can find no trace # of the user) or they are logged in but somehow don't have a valid slug # then we bounce them to the login page. # Otherwise (for the moment) we take them to the list of links. def get(self, request, *args, **kwargs): userid = request.META.get('HTTP_KEYCLOAK_USERNAME') if userid: try: user = get_user_model().objects.get(userid=userid) except: user = get_user_model().objects.create_user( userid=userid, is_active=True) user.backend = 'django.contrib.auth.backends.ModelBackend' login(self.request, user) self.user = user return redirect(reverse('link-list')) try: u = request.user.slug if (u is not None and u is not ''): return redirect(reverse('link-list')) else: return redirect(reverse('login')) except: return redirect(reverse('login'))
# (c) Crown Owned Copyright, 2016. Dstl. from django.core.urlresolvers import reverse from django.shortcuts import redirect from django.views.generic.base import View from django.contrib.auth import login from django.contrib.auth import get_user_model class Home(View): # Get the homepage. If the user isn't logged in, (we can find no trace # of the user) or they are logged in but somehow don't have a valid slug # then we bounce them to the login page. # Otherwise (for the moment) we take them to the list of links. def get(self, request, *args, **kwargs): userid = request.META.get('HTTP_KEYCLOAK_USERNAME') if userid: try: user = get_user_model().objects.get(userid=userid) except: user = get_user_model().objects.create_user( userid=userid, is_active=True) user.backend = 'django.contrib.auth.backends.ModelBackend' login(self.request, user) self.user = user return redirect(reverse('link-list')) try: u = request.user.slug if (u is not None and u is not ''): return redirect(reverse('link-list')) else: return redirect(reverse('login')) except: return redirect(reverse('login'))
Add import statement for get_user_model.
Add import statement for get_user_model.
Python
mit
dstl/lighthouse,dstl/lighthouse,dstl/lighthouse,dstl/lighthouse,dstl/lighthouse
5170406e6af03b586c159b661402d4e391606e44
marketpulse/main/__init__.py
marketpulse/main/__init__.py
import moneyed FFXOS_ACTIVITY_NAME = 'Submit FirefoxOS device price' def get_currency_choices(): return sorted([(currency, data.name) for currency, data in moneyed.CURRENCIES.items()])
import moneyed FFXOS_ACTIVITY_NAME = 'Submit FirefoxOS device price' def get_currency_choices(): return sorted(((currency, data.name) for currency, data in moneyed.CURRENCIES.items()))
Make currency choices a tuple.
Make currency choices a tuple.
Python
mpl-2.0
akatsoulas/marketpulse,johngian/marketpulse,johngian/marketpulse,akatsoulas/marketpulse,mozilla/marketpulse,johngian/marketpulse,johngian/marketpulse,mozilla/marketpulse,akatsoulas/marketpulse,mozilla/marketpulse,akatsoulas/marketpulse,mozilla/marketpulse
0e2bc0546af406543feb2e66e0aeaac0b2d0270d
mopidy_spotify/translator.py
mopidy_spotify/translator.py
from __future__ import unicode_literals from mopidy import models import spotify def to_track(sp_track): if not sp_track.is_loaded: return if sp_track.error != spotify.ErrorType.OK: return if sp_track.availability != spotify.TrackAvailability.AVAILABLE: return # TODO artists # TODO album # TODO date from album # TODO bitrate return models.Track( uri=sp_track.link.uri, name=sp_track.name, length=sp_track.duration, track_no=sp_track.index) def to_playlist(sp_playlist, folders=None, username=None): if not isinstance(sp_playlist, spotify.Playlist): return if not sp_playlist.is_loaded: return name = sp_playlist.name if name is None: name = 'Starred' # TODO Reverse order of tracks in starred playlists? if folders is not None: name = '/'.join(folders + [name]) if username is not None and sp_playlist.owner.canonical_name != username: name = '%s by %s' % (name, sp_playlist.owner.canonical_name) tracks = [to_track(sp_track) for sp_track in sp_playlist.tracks] tracks = filter(None, tracks) return models.Playlist( uri=sp_playlist.link.uri, name=name, tracks=tracks)
from __future__ import unicode_literals from mopidy import models import spotify def to_track(sp_track): if not sp_track.is_loaded: return # TODO Return placeholder "[loading]" track? if sp_track.error != spotify.ErrorType.OK: return # TODO Return placeholder "[error]" track? if sp_track.availability != spotify.TrackAvailability.AVAILABLE: return # TODO Return placeholder "[unavailable]" track? # TODO artists # TODO album # TODO date from album # TODO bitrate return models.Track( uri=sp_track.link.uri, name=sp_track.name, length=sp_track.duration, track_no=sp_track.index) def to_playlist(sp_playlist, folders=None, username=None): if not isinstance(sp_playlist, spotify.Playlist): return if not sp_playlist.is_loaded: return # TODO Return placeholder "[loading]" playlist? name = sp_playlist.name if name is None: name = 'Starred' # TODO Reverse order of tracks in starred playlists? if folders is not None: name = '/'.join(folders + [name]) if username is not None and sp_playlist.owner.canonical_name != username: name = '%s by %s' % (name, sp_playlist.owner.canonical_name) tracks = [to_track(sp_track) for sp_track in sp_playlist.tracks] tracks = filter(None, tracks) return models.Playlist( uri=sp_playlist.link.uri, name=name, tracks=tracks)
Add TODOs on how to expose non-playable tracks
Add TODOs on how to expose non-playable tracks
Python
apache-2.0
jodal/mopidy-spotify,mopidy/mopidy-spotify,kingosticks/mopidy-spotify
f9332afe031f4d7875b8c6dd53392a46a198fc9e
evaluation/packages/utils.py
evaluation/packages/utils.py
# Compute the distance between points of cloud assigned to a primitive # Return an array with len=len(assign) def distanceToPrimitives(cloud, assign, primitives): return [ [primVar.distanceTo(cloud[a[0]]) for primVar in primitives if primVar.uid == a[1]] for a in assign]
# Compute the distance between points of cloud assigned to a primitive # Return an array with len=len(assign) def distanceToPrimitives(cloud, assign, primitives): return [ [primVar.distanceTo(cloud[a[0]]) for primVar in primitives if primVar.uid == a[1]] for a in assign] import packages.orderedSet as orderedSet def parseAngles(strAngle): angles = orderedSet.OrderedSet() angles.add(0.) if len(strAngle) == 1: strAngle = strAngle[0].split(',') for genAngle in strAngle: a = float(genAngle) while a <= 180.: angles.add(a) a+= float(genAngle) return angles
Add method to parse angle command line arguments
Add method to parse angle command line arguments
Python
apache-2.0
amonszpart/globOpt,NUAAXXY/globOpt,amonszpart/globOpt,NUAAXXY/globOpt,amonszpart/globOpt,amonszpart/globOpt,amonszpart/globOpt,NUAAXXY/globOpt,NUAAXXY/globOpt,NUAAXXY/globOpt,amonszpart/globOpt,NUAAXXY/globOpt
21368fc9354e3c55132a0d42a734802c00466cb6
blimpy/__init__.py
blimpy/__init__.py
from __future__ import absolute_import try: from . import waterfall from .waterfall import Waterfall from .guppi import GuppiRaw from . import utils from . import fil2h5 from . import h52fil from . import h5diag from . import bl_scrunch from . import calcload from . import rawhdr from . import stax from . import stix from . import match_fils from blimpy.io import file_wrapper except: print("Warning: At least one utility could not be imported!") from pkg_resources import get_distribution, DistributionNotFound try: __version__ = get_distribution('blimpy').version except DistributionNotFound: __version__ = '0.0.0 - please install via pip/setup.py'
from __future__ import absolute_import try: from . import waterfall from .waterfall import Waterfall from .guppi import GuppiRaw from . import utils from . import fil2h5 from . import h52fil from . import h5diag from . import bl_scrunch from . import calcload from . import rawhdr from . import stax from . import stix from . import match_fils from . import dsamp from blimpy.io import file_wrapper except: print("Warning: At least one utility could not be imported!") from pkg_resources import get_distribution, DistributionNotFound try: __version__ = get_distribution('blimpy').version except DistributionNotFound: __version__ = '0.0.0 - please install via pip/setup.py'
Make dsamp a visible component of blimpy
Make dsamp a visible component of blimpy
Python
bsd-3-clause
UCBerkeleySETI/blimpy,UCBerkeleySETI/blimpy
a6fda9344461424d9da4f70772443a2a283a8da1
test/test_client.py
test/test_client.py
import unittest import delighted class ClientTest(unittest.TestCase): def test_instantiating_client_requires_api_key(self): self.assertRaises(ValueError, lambda: delighted.Client()) delighted.Client(api_key='abc123')
import unittest import delighted class ClientTest(unittest.TestCase): def test_instantiating_client_requires_api_key(self): original_api_key = delighted.api_key try: delighted.api_key = None self.assertRaises(ValueError, lambda: delighted.Client()) delighted.Client(api_key='abc123') except: delighted.api_key = original_api_key
Make no-api-key test more reliable
Make no-api-key test more reliable
Python
mit
mkdynamic/delighted-python,delighted/delighted-python,kaeawc/delighted-python
45990438d22dc15cdd62f85e541f929ca88eed6b
ggp-base/src_py/random_gamer.py
ggp-base/src_py/random_gamer.py
''' @author: Sam ''' import random from org.ggp.base.util.statemachine import MachineState from org.ggp.base.util.statemachine.implementation.prover import ProverStateMachine from org.ggp.base.player.gamer.statemachine import StateMachineGamer from org.ggp.base.player.gamer.statemachine.reflex.event import ReflexMoveSelectionEvent class PythonRandomGamer(StateMachineGamer): def getName(self): pass def stateMachineMetaGame(self, timeout): pass def stateMachineSelectMove(self, timeout): moves = self.getStateMachine().getLegalMoves(self.getCurrentState(), self.getRole()) selection = random.choice(moves) self.notifyObservers(ReflexMoveSelectionEvent(moves, selection, 1)) return selection def stateMachineStop(self): pass def stateMachineAbort(self): pass def getInitialStateMachine(self): return ProverStateMachine()
''' @author: Sam ''' import random from org.ggp.base.util.statemachine import MachineState from org.ggp.base.util.statemachine.implementation.prover import ProverStateMachine from org.ggp.base.player.gamer.statemachine import StateMachineGamer class PythonRandomGamer(StateMachineGamer): def getName(self): pass def stateMachineMetaGame(self, timeout): pass def stateMachineSelectMove(self, timeout): moves = self.getStateMachine().getLegalMoves(self.getCurrentState(), self.getRole()) selection = random.choice(moves) return selection def stateMachineStop(self): pass def stateMachineAbort(self): pass def getInitialStateMachine(self): return ProverStateMachine()
Fix a bug in the example python gamer.
Fix a bug in the example python gamer. git-svn-id: 4739e81c2fe647bfb539b919360e2c658e6121ea@552 716a755e-b13f-cedc-210d-596dafc6fb9b
Python
bsd-3-clause
cerebro/ggp-base,cerebro/ggp-base
9548247251399a4fbe7a140c5d8db64e8dd71b46
cobe/instatrace.py
cobe/instatrace.py
# Copyright (C) 2010 Peter Teichman import datetime import math import os import time def singleton(cls): instances = {} def getinstance(): if cls not in instances: instances[cls] = cls() return instances[cls] return getinstance @singleton class Instatrace: def __init__(self): self._fd = None def init(self, filename): if self._fd is not None: self._fd.close() if filename is None: self._fd = None else: # rotate logs if os.path.exists(filename): now = datetime.datetime.now() stamp = now.strftime("%Y-%m-%d.%H%M%S") os.rename(filename, "%s.%s" % (filename, stamp)) self._fd = open(filename, "w") def is_enabled(self): return self._fd is not None def now(self): """Microsecond resolution, integer now""" if not self.is_enabled(): return 0 return int(time.time()*100000) def now_ms(self): """Millisecond resolution, integer now""" if not self.is_enabled(): return 0 return int(time.time()*1000) def trace(self, statName, statValue, userData=None): if not self.is_enabled(): return extra = "" if userData is not None: extra = " " + repr(userData) self._fd.write("%s %d%s\n" % (statName, statValue, extra)) self._fd.flush()
# Copyright (C) 2010 Peter Teichman import datetime import math import os import time def singleton(cls): instances = {} def getinstance(): if cls not in instances: instances[cls] = cls() return instances[cls] return getinstance @singleton class Instatrace: def __init__(self): self._fd = None def init(self, filename): if self._fd is not None: self._fd.close() if filename is None: self._fd = None else: # rotate logs if os.path.exists(filename): now = datetime.datetime.now() stamp = now.strftime("%Y-%m-%d.%H%M%S") os.rename(filename, "%s.%s" % (filename, stamp)) self._fd = open(filename, "w") def is_enabled(self): return self._fd is not None def now(self): """Microsecond resolution, integer now""" if not self.is_enabled(): return 0 return int(time.time()*100000) def now_ms(self): """Millisecond resolution, integer now""" if not self.is_enabled(): return 0 return int(time.time()*1000) def trace(self, statName, statValue, userData=None): if not self.is_enabled(): return extra = "" if userData is not None: extra = " " + repr(userData) self._fd.write("%s %d%s\n" % (statName, statValue, extra))
Remove a debugging flush() after every trace
Remove a debugging flush() after every trace
Python
mit
wodim/cobe-ng,wodim/cobe-ng,tiagochiavericosta/cobe,LeMagnesium/cobe,LeMagnesium/cobe,DarkMio/cobe,pteichman/cobe,meska/cobe,meska/cobe,pteichman/cobe,DarkMio/cobe,tiagochiavericosta/cobe
a456449c5a30ea9ad9af308ea407246425ad288e
students/crobison/session04/file_lab.py
students/crobison/session04/file_lab.py
# Charles Robison # 2016.10.21 # File Lab #!/usr/bin/env python import os cwd = os.getcwd() # write a program which prints the full path to all files # in the current directory, one per line for item in os.listdir(cwd): print(cwd + "/" + item) # write a program which copies a file from a source, to a # destination (without using shutil, or the OS copy command) file = open('file_lab01.txt', 'r') file_text = file.read() file_new = open('file_lab02.txt', 'w') file_new.write(file_text) file.close() file_new.close() # advanced: make it work for any size file: i.e. don’t read # the entire contents of the file into memory at once. file = open('file_lab01.txt', 'r') file_new = open('file_lab02.txt', 'w') file_text = file.readline() for line in file_text: file_new.write(line) line = file.readline() file.close() file_new.close() # not working correctl, second try: print('second try:') file_new = open('file_labe02.txt', 'w') with open('file_lab01.txt', 'r') as f: for line in f: file_text = f.readline() file_new.write(line) file_new.close()
# Charles Robison # 2016.10.21 # File Lab #!/usr/bin/env python import os cwd = os.getcwd() # write a program which prints the full path to all files # in the current directory, one per line for item in os.listdir(cwd): print(cwd + "/" + item) # write a program which copies a file from a source, to a # destination (without using shutil, or the OS copy command) file = open('file_lab01.txt', 'r') file_text = file.read() file_new = open('file_lab02.txt', 'w') file_new.write(file_text) file.close() file_new.close() # advanced: make it work for any size file: i.e. don’t read # the entire contents of the file into memory at once. with open('file_lab01.txt','r') as r, open('file_lab02.txt', 'w') as w: for line in r: w.write(line) r.close() w.close()
Fix section to read and write large files.
Fix section to read and write large files.
Python
unlicense
UWPCE-PythonCert/IntroPython2016,weidnem/IntroPython2016,Baumelbi/IntroPython2016,UWPCE-PythonCert/IntroPython2016,weidnem/IntroPython2016,Baumelbi/IntroPython2016,UWPCE-PythonCert/IntroPython2016,weidnem/IntroPython2016
818fdb1a2d2cfbe0ef3de66443eb726c4b0cead5
test/cli/test_cmd_piper.py
test/cli/test_cmd_piper.py
from piper import build from piper.db import core as db from piper.cli import cmd_piper import mock class TestEntry(object): @mock.patch('piper.cli.cmd_piper.CLIBase') def test_calls(self, clibase): self.mock = mock.Mock() cmd_piper.entry(self.mock) clibase.assert_called_once_with( 'piper', (build.ExecCLI, db.DbCLI), args=self.mock ) clibase.return_value.entry.assert_called_once_with() @mock.patch('piper.cli.cmd_piper.CLIBase') def test_return_value(self, clibase): ret = cmd_piper.entry() assert ret is clibase.return_value.entry.return_value
from piper import build from piper.db import core as db from piper.cli import cmd_piper from piper.cli.cli import CLIBase import mock class TestEntry(object): @mock.patch('piper.cli.cmd_piper.CLIBase') def test_calls(self, clibase): self.mock = mock.Mock() cmd_piper.entry(self.mock) clibase.assert_called_once_with( 'piper', (build.ExecCLI, db.DbCLI), args=self.mock ) clibase.return_value.entry.assert_called_once_with() @mock.patch('piper.cli.cmd_piper.CLIBase') def test_return_value(self, clibase): ret = cmd_piper.entry() assert ret is clibase.return_value.entry.return_value class TestEntryIntegration(object): def test_db_init(self): args = ['db', 'init'] cli = CLIBase('piper', (db.DbCLI,), args=args) db.DbCLI.db = mock.Mock() cli.entry() db.DbCLI.db.init.assert_called_once_with(cli.config)
Add integration test for db init
Add integration test for db init
Python
mit
thiderman/piper
2d889811b35e9f922f3ec9a6276e44d380ed6c14
python-pscheduler/pscheduler/pscheduler/filestring.py
python-pscheduler/pscheduler/pscheduler/filestring.py
""" Functions for retrieving strings from files """ import os def string_from_file(string, strip=True): """ Return an unaltered string or the contents of a file if the string begins with @ and the rest of it points at a path. If 'strip' is True, remove leading and trailing whitespace (default behavior). """ if string[0] != "@": value = string else: with open(string[1:], 'r') as content: value = content.read() return value.strip() if strip else value if __name__ == "__main__": print string_from_file("Plain string") print string_from_file("@/etc/fstab") try: print string_from_file("@/invalid/path") except Exception as ex: print "FAILED: " + str(ex)
""" Functions for retrieving strings from files """ import os def string_from_file(string, strip=True): """ Return an unaltered string or the contents of a file if the string begins with @ and the rest of it points at a path. If 'strip' is True, remove leading and trailing whitespace (default behavior). """ if string[0] != "@": value = string else: path = os.path.expanduser(string[1:]) with open(path, 'r') as content: value = content.read() return value.strip() if strip else value if __name__ == "__main__": print string_from_file("Plain string") print string_from_file("@/etc/fstab") print string_from_file("@~/.bashrc") try: print string_from_file("@/invalid/path") except Exception as ex: print "FAILED: " + str(ex)
Expand ~ and ~xxx at the start of filenames.
Expand ~ and ~xxx at the start of filenames.
Python
apache-2.0
perfsonar/pscheduler,mfeit-internet2/pscheduler-dev,perfsonar/pscheduler,perfsonar/pscheduler,perfsonar/pscheduler,mfeit-internet2/pscheduler-dev
2a756beeae4deaa2cb2f3e2ee9216cc135344a66
tests/bindings/python/scoring/test-scoring_result.py
tests/bindings/python/scoring/test-scoring_result.py
#!@PYTHON_EXECUTABLE@ #ckwg +5 # Copyright 2011 by Kitware, Inc. All Rights Reserved. Please refer to # KITWARE_LICENSE.TXT for licensing information, or contact General Counsel, # Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065. def test_import(): try: import vistk.pipeline_util.bake except: test_error("Failed to import the bake module") def test_api_calls(path): from vistk.scoring import scoring_result result = scoring_result.ScoringResult(1, 1, 1) result.hit_count result.miss_count result.truth_count result.percent_detection() result.precision() result + result def main(testname): if testname == 'import': test_import() elif testname == 'api_calls': test_api_calls() else: test_error("No such test '%s'" % testname) if __name__ == '__main__': import os import sys if not len(sys.argv) == 5: test_error("Expected four arguments") sys.exit(1) testname = sys.argv[1] os.chdir(sys.argv[2]) sys.path.append(sys.argv[3]) from vistk.test.test import * try: main(testname) except BaseException as e: test_error("Unexpected exception: %s" % str(e))
#!@PYTHON_EXECUTABLE@ #ckwg +5 # Copyright 2011 by Kitware, Inc. All Rights Reserved. Please refer to # KITWARE_LICENSE.TXT for licensing information, or contact General Counsel, # Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065. def test_import(): try: import vistk.pipeline_util.bake except: test_error("Failed to import the bake module") def test_api_calls(path): from vistk.scoring import scoring_result result = scoring_result.ScoringResult(1, 1, 1) result.hit_count result.miss_count result.truth_count result.percent_detection() result.precision() result + result def main(testname): if testname == 'import': test_import() elif testname == 'api_calls': test_api_calls() else: test_error("No such test '%s'" % testname) if __name__ == '__main__': import os import sys if not len(sys.argv) == 4: test_error("Expected three arguments") sys.exit(1) testname = sys.argv[1] os.chdir(sys.argv[2]) sys.path.append(sys.argv[3]) from vistk.test.test import * try: main(testname) except BaseException as e: test_error("Unexpected exception: %s" % str(e))
Fix the expected argument check in scoring tests
Fix the expected argument check in scoring tests
Python
bsd-3-clause
Kitware/sprokit,Kitware/sprokit,Kitware/sprokit,linus-sherrill/sprokit,mathstuf/sprokit,Kitware/sprokit,mathstuf/sprokit,linus-sherrill/sprokit,mathstuf/sprokit,linus-sherrill/sprokit,linus-sherrill/sprokit,mathstuf/sprokit
f8f0667a519ac3307e8aa26c501e5ff2c379eacb
inselect/lib/metadata_library.py
inselect/lib/metadata_library.py
import importlib import pkgutil import sys from collections import OrderedDict from inselect.lib.metadata import MetadataTemplate from inselect.lib.utils import debug_print _library = None def library(): """Returns a list of MetadataTemplate instances """ global _library if not _library: _library = _load_library() return _library def _load_library(): # Import everything inselect.lib.templates that has a 'template' name # that is an instance of MetadataTemplate. # Returns an instance of OrderedDict with items sorted by key. try: templates = importlib.import_module('.lib.templates', 'inselect') except ImportError,e: debug_print(e) else: library = {} for loader, name, is_pkg in pkgutil.iter_modules(templates.__path__): try: pkg = importlib.import_module('{0}.{1}'.format(templates.__name__, name)) except ImportError,e: debug_print(u'Error importing [{0}]: [{1}]'.format(name, e)) else: template = getattr(pkg, 'template', None) if isinstance(template, MetadataTemplate): debug_print('Loaded MetadataTemplate from [{0}]'.format(name)) # TODO Raise if duplicated name library[template.name] = template else: msg = u'Not an instance of MetadataTemplate [{0}]' debug_print(msg.format(name)) return OrderedDict(sorted(library.iteritems()))
import importlib import pkgutil import sys from collections import OrderedDict from inselect.lib.metadata import MetadataTemplate from inselect.lib.utils import debug_print from inselect.lib.templates import dwc, price if True: _library = {} for template in [p.template for p in (dwc, price)]: _library[template.name] = template _library = OrderedDict(sorted(_library.iteritems())) def library(): return _library else: # More flexible solution that breaks with frozen build on OS X using # PyInstaller _library = None def library(): """Returns a list of MetadataTemplate instances """ global _library if not _library: _library = _load_library() return _library def _load_library(): # Import everything inselect.lib.templates that has a 'template' name # that is an instance of MetadataTemplate. # Returns an instance of OrderedDict with items sorted by key. templates = importlib.import_module('inselect.lib.templates') library = {} for loader, name, is_pkg in pkgutil.iter_modules(templates.__path__): try: pkg = importlib.import_module('{0}.{1}'.format(templates.__name__, name)) except ImportError,e: debug_print(u'Error importing [{0}]: [{1}]'.format(name, e)) else: template = getattr(pkg, 'template', None) if isinstance(template, MetadataTemplate): debug_print('Loaded MetadataTemplate from [{0}]'.format(name)) # TODO Raise if duplicated name library[template.name] = template else: msg = u'Not an instance of MetadataTemplate [{0}]' debug_print(msg.format(name)) return OrderedDict(sorted(library.iteritems()))
Fix metadata template import on OS X
Fix metadata template import on OS X
Python
bsd-3-clause
NaturalHistoryMuseum/inselect,NaturalHistoryMuseum/inselect
256dc6da740050f71615f00924cd85346aaa1e99
rotational-cipher/rotational_cipher.py
rotational-cipher/rotational_cipher.py
import string UPPER = string.ascii_uppercase LOWER = string.ascii_lowercase def rotate(s, n): rules = shift_rules(n) return "".join(map(lambda k: rules.get(k, k), s)) def shift_rules(n): shifted = UPPER[n:] + UPPER[:n] + LOWER[n:] + LOWER[:n] return {k:v for k,v in zip(UPPER+LOWER, shifted)}
import string UPPER = string.ascii_uppercase LOWER = string.ascii_lowercase def rotate(s, n): rules = shift_rules(n) return "".join(rules.get(ch, ch) for ch in s) def shift_rules(n): shifted = UPPER[n:] + UPPER[:n] + LOWER[n:] + LOWER[:n] return {k:v for k,v in zip(UPPER+LOWER, shifted)}
Use a comprehension instead of a lambda function
Use a comprehension instead of a lambda function
Python
agpl-3.0
CubicComet/exercism-python-solutions
bf7daa5f6695f6150d65646592ffb47b35fb45db
setup.py
setup.py
from setuptools import setup, find_packages setup( name='lightstep', version='2.2.0', description='LightStep Python OpenTracing Implementation', long_description='', author='LightStep', license='', install_requires=['thrift==0.9.2', 'jsonpickle', 'pytest', 'basictracer>=2.2,<2.3', 'opentracing>=1.2,<1.3'], tests_require=['sphinx', 'sphinx-epytext'], classifiers=[ 'Operating System :: OS Independent', 'Programming Language :: Python :: 2', ], keywords=[ 'opentracing', 'lightstep', 'traceguide', 'tracing', 'microservices', 'distributed' ], packages=find_packages(exclude=['docs*', 'tests*', 'sample*']), )
from setuptools import setup, find_packages setup( name='lightstep', version='2.2.0', description='LightStep Python OpenTracing Implementation', long_description='', author='LightStep', license='', install_requires=['thrift==0.9.2', 'jsonpickle', 'pytest', 'basictracer>=2.2,<2.3'], tests_require=['sphinx', 'sphinx-epytext'], classifiers=[ 'Operating System :: OS Independent', 'Programming Language :: Python :: 2', ], keywords=[ 'opentracing', 'lightstep', 'traceguide', 'tracing', 'microservices', 'distributed' ], packages=find_packages(exclude=['docs*', 'tests*', 'sample*']), )
Remove explicit OT dep; we get it via basictracer
Remove explicit OT dep; we get it via basictracer
Python
mit
lightstephq/lightstep-tracer-python
5a098961137a7ac3296cf836dd02b238d57eeee4
setup.py
setup.py
#!/usr/bin/env python try: from setuptools import setup, find_packages from setuptools.command.test import test except ImportError: from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages from setuptools.command.test import test class mytest(test): def run(self, *args, **kwargs): from runtests import runtests runtests() setup( name='nexus', version='0.1.2', author='David Cramer', author_email='dcramer@gmail.com', url='http://github.com/dcramer/nexus', description = 'An extendable admin interface', packages=find_packages(), zip_safe=False, install_requires=[ 'Django', 'South', ], test_suite = 'nexus.tests', include_package_data=True, cmdclass={"test": mytest}, classifiers=[ 'Framework :: Django', 'Intended Audience :: Developers', 'Intended Audience :: System Administrators', 'Operating System :: OS Independent', 'Topic :: Software Development' ], )
#!/usr/bin/env python try: from setuptools import setup, find_packages from setuptools.command.test import test except ImportError: from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages from setuptools.command.test import test class mytest(test): def run(self, *args, **kwargs): from runtests import runtests runtests() setup( name='nexus', version='0.1.2', author='David Cramer', author_email='dcramer@gmail.com', url='http://github.com/dcramer/nexus', description = 'An extendable admin interface', packages=find_packages(), zip_safe=False, install_requires=[], tests_require = [ 'Django', 'South', ], test_suite = 'nexus.tests', include_package_data=True, cmdclass={"test": mytest}, classifiers=[ 'Framework :: Django', 'Intended Audience :: Developers', 'Intended Audience :: System Administrators', 'Operating System :: OS Independent', 'Topic :: Software Development' ], )
Move Django and South to test requirements
Move Django and South to test requirements
Python
apache-2.0
blueprinthealth/nexus,blueprinthealth/nexus,graingert/nexus,disqus/nexus,YPlan/nexus,blueprinthealth/nexus,brilliant-org/nexus,graingert/nexus,disqus/nexus,brilliant-org/nexus,YPlan/nexus,brilliant-org/nexus,graingert/nexus,roverdotcom/nexus,Raekkeri/nexus,YPlan/nexus,disqus/nexus,roverdotcom/nexus,roverdotcom/nexus,Raekkeri/nexus
7ba1d4970a20580c27b928ec6ed7da7dfb1dcb04
setup.py
setup.py
from codecs import open as codecs_open from setuptools import setup, find_packages # Get the long description from the relevant file with codecs_open('README.rst', encoding='utf-8') as f: long_description = f.read() setup(name='borica', version='0.0.1', description=u"Python integration for Borica", long_description=long_description, classifiers=[], keywords='', author=u"Jordan Jambazov", author_email='jordan.jambazov@era.io', url='https://github.com/IOEra/borica', license='MIT', packages=find_packages(exclude=['ez_setup', 'examples', 'tests']), include_package_data=True, zip_safe=False, install_requires=[ 'click', 'pycrypto', ], extras_require={ 'test': ['pytest'], }, entry_points=""" [console_scripts] borica=borica.scripts.cli:cli """ )
from codecs import open as codecs_open from setuptools import setup, find_packages # Get the long description from the relevant file with codecs_open('README.md', encoding='utf-8') as f: long_description = f.read() setup(name='borica', version='0.0.1', description=u"Python integration for Borica", long_description=long_description, classifiers=[], keywords='', author=u"Jordan Jambazov", author_email='jordan.jambazov@era.io', url='https://github.com/IOEra/borica', license='MIT', packages=find_packages(exclude=['ez_setup', 'examples', 'tests']), include_package_data=True, zip_safe=False, install_requires=[ 'click', 'pycrypto', ], extras_require={ 'test': ['pytest'], }, entry_points=""" [console_scripts] borica=borica.scripts.cli:cli """ )
Fix issue - load README.md, not .rst
Fix issue - load README.md, not .rst
Python
mit
IOEra/borica
c2c3a3fc339c131d0cf873a98a986c4668564c56
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import os from setuptools import setup root = os.path.abspath(os.path.dirname(__file__)) version = __import__('pyelevator').__version__ with open(os.path.join(root, 'README.md')) as f: README = f.read() setup( name='py-elevator', version=version, license='BSD', description = 'Python client for key/value database Elevator', long_description=README, author='Oleiade', author_email='tcrevon@gmail.com', url='http://github.com/oleiade/py-elevator', classifiers=[ 'Development Status :: 0.0.1', 'Environment :: Unix-like Systems', 'Programming Language :: Python', 'Operating System :: Unix-like', ], keywords='py-elevator elevator leveldb database key-value', packages=[ 'pyelevator', 'pyelevator.utils' ], package_dir={'': '.'}, install_requires=[ 'pyzmq>=2.1.11', 'msgpack-python' ], )
#!/usr/bin/env python # -*- coding: utf-8 -*- import os from setuptools import setup root = os.path.abspath(os.path.dirname(__file__)) version = __import__('pyelevator').__version__ with open(os.path.join(root, 'README.md')) as f: README = f.read() setup( name='py-elevator', version=version, license='MIT', description = 'Python client for key/value database Elevator', long_description=README, author='Oleiade', author_email='tcrevon@gmail.com', url='http://github.com/oleiade/py-elevator', classifiers=[ 'Development Status :: 0.4', 'Environment :: Unix-like Systems', 'Programming Language :: Python', 'Operating System :: Unix-like', ], keywords='py-elevator elevator leveldb database key-value', packages=[ 'pyelevator', 'pyelevator.utils', ], package_dir={'': '.'}, install_requires=[ 'pyzmq>=2.1.11', 'msgpack-python' ], )
Fix : MIT license + version update
Fix : MIT license + version update
Python
mit
oleiade/py-elevator
21dc71068d894f4a9876cfa7b4a0496fa715f9e1
setup.py
setup.py
from setuptools import setup, find_packages setup( name='vaquero', version='0.0.1', description="A tool for iterative and interactive data wrangling.", long_description="See: `github repo <https://github.com/jbn/vaquero>`_.", url="https://github.com/jbn/vaquero", author="John Bjorn Nelson", author_email="jbn@pathdependent.com", license="MIT", classifiers=[ "Development Status :: 3 - Alpha", "Intended Audience :: Science/Research", "Topic :: Scientific/Engineering :: Information Analysis", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", ], keywords=["data analysis", "data science", "elt"], packages=find_packages(exclude=["contrib", "docs", "tests*"]), install_requires=[ 'jmespath', 'numpy', 'pandas', ] )
from setuptools import setup, find_packages setup( name='vaquero', version='0.0.2', description="A tool for iterative and interactive data wrangling.", long_description="See: `github repo <https://github.com/jbn/vaquero>`_.", url="https://github.com/jbn/vaquero", author="John Bjorn Nelson", author_email="jbn@pathdependent.com", license="MIT", classifiers=[ "Development Status :: 3 - Alpha", "Intended Audience :: Science/Research", "Topic :: Scientific/Engineering :: Information Analysis", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", ], keywords=["data analysis", "data science", "elt"], packages=find_packages(exclude=["contrib", "docs", "tests*"]), install_requires=[ 'jmespath', 'numpy', 'pandas', ] )
Bump version to release bugfixes
Bump version to release bugfixes
Python
mit
jbn/vaquero
f1df5f74699a152d8dc2cac8e4dcf80a1523ca99
setup.py
setup.py
from distutils.core import setup setup(name='dshelpers', version='1.3.0', description="Provides some helper functions used by the ScraperWiki Data Services team.", long_description="Provides some helper functions used by the ScraperWiki Data Services team.", classifiers=["Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.4", ], author="ScraperWiki Limited", author_email='dataservices@scraperwiki.com', url='https://github.com/scraperwiki/data-services-helpers', license='BSD', py_modules=['dshelpers'], install_requires=['requests', 'requests_cache', 'mock', 'nose', 'scraperwiki'], )
from distutils.core import setup setup(name='dshelpers', version='1.3.0', description="Provides some helper functions used by The Sensible Code Company's Data Services team.", long_description="Provides some helper functions used by the The Sensible Code Company's Data Services team.", classifiers=["Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.4", ], author="The Sensible Code Company Limited", author_email='dataservices@sensiblecode.io', url='https://github.com/scraperwiki/data-services-helpers', license='BSD', py_modules=['dshelpers'], install_requires=['requests', 'requests_cache', 'mock', 'nose', 'scraperwiki'], )
Rename ScraperWiki to Sensible Code in README
Rename ScraperWiki to Sensible Code in README
Python
bsd-2-clause
scraperwiki/data-services-helpers
76daca993e2c237e77a377aa5a264499d85057d4
setup.py
setup.py
from distutils.core import setup import bugspots setup( name="bugspots", version=bugspots.__version__, description="Identify hot spots in a codebase with the bug prediction \ algorithm used at Google", long_description=bugspots.__doc__, author=bugspots.__author__, author_email="bmbslice@gmail.com", url="http://pypi.python.org/pypi/bugspots", py_modules=["bugspots"], license=bugspots.__license__, platforms="Unix", classifiers=[ "Development Status :: 4 - Beta", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: ISC License (ISCL)", "Natural Language :: English", "Operating System :: Unix", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: Implementation :: CPython", "Topic :: Software Development :: Bug Tracking", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Utilities" ] )
from distutils.core import setup import bugspots setup( name="bugspots", version=bugspots.__version__, description="""Identify hot spots in a codebase with the bug prediction algorithm used at Google.""", long_description=bugspots.__doc__, author=bugspots.__author__, author_email="bmbslice@gmail.com", url="http://pypi.python.org/pypi/bugspots", py_modules=["bugspots"], license=bugspots.__license__, platforms="Unix", classifiers=[ "Development Status :: 4 - Beta", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: ISC License (ISCL)", "Natural Language :: English", "Operating System :: Unix", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: Implementation :: CPython", "Topic :: Software Development :: Bug Tracking", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Utilities" ] )
Use triple-quotes for long strings
Use triple-quotes for long strings
Python
isc
d0vs/bugspots
3f347ac0d0ccdc08d011660e649a9ec2e24be91d
setup.py
setup.py
from setuptools import setup, find_packages long_description = open('README.rst').read() packages = find_packages(exclude=['tests", "tests.*']) setup( name='pyflare', version='1.0.0b', packages=packages, url='https://github.com/jlinn/pyflare', license='LICENSE.txt', author='Joe Linn', author_email='', description="An adapter for CloudFlare's client API", long_description=long_description, install_requires=['requests'], classifiers=[ 'Intended Audience :: Developers', 'Development Status :: 4 - Beta', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Topic :: Internet :: WWW/HTTP' ] )
from setuptools import setup, find_packages long_description = open('README.rst').read() packages = find_packages(exclude=['tests", "tests.*']) setup( name='pyflare', version='1.0.0', packages=packages, url='https://github.com/jlinn/pyflare', license='LICENSE.txt', author='Joe Linn', author_email='', description="An adapter for CloudFlare's client API", long_description=long_description, install_requires=['requests'], classifiers=[ 'Intended Audience :: Developers', 'Development Status :: 5 - Production/Stable', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Topic :: Internet :: WWW/HTTP' ] )
Change version number to 1.0.0 and development status to stable
Change version number to 1.0.0 and development status to stable
Python
apache-2.0
getlantern/pyflare,gnowxilef/pyflare,Inikup/pyflare,jlinn/pyflare
15569862d3e66c9b8434fe2e5cacdf5671df9dd3
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup setup( name = 'nepho', version = '0.2.0', url = 'http://github.com/huit/nepho', description = 'Simplified cloud orchestration tool for constructing virtual data centers', packages = ['nepho', 'nepho.aws'], author = 'Harvard University Information Technology', author_email = 'ithelp@harvard.edu', license = 'MIT', scripts = ['bin/nepho'], package_data = { 'nepho': [ 'data/scenarios/*', ], 'nepho.aws': [ 'data/patterns/*/*.cf', 'data/drivers/*.sh' ] }, install_requires = [ 'argparse>=1.2', 'boto>=2.0', 'awscli>=1.2.3', 'Jinja2', 'PyYAML', 'cement>=2.0', 'termcolor', 'gitpython==0.3.2.RC1', 'requests>=1.2.3', 'ply==3.4', 'vagrant==0.4.0' ], )
#!/usr/bin/env python from setuptools import setup setup( name = 'nepho', version = '0.2.0', url = 'http://github.com/huit/nepho', description = 'Simplified cloud orchestration tool for constructing virtual data centers', packages = ['nepho', 'nepho.aws'], author = 'Harvard University Information Technology', author_email = 'ithelp@harvard.edu', license = 'MIT', scripts = ['bin/nepho'], package_data = { 'nepho': [ 'data/scenarios/*', ], 'nepho.aws': [ 'data/patterns/*/*.cf', 'data/drivers/*.sh' ] }, install_requires = [ 'argparse>=1.2', 'boto>=2.0', 'awscli>=1.2.3', 'Jinja2', 'PyYAML', 'cement>=2.0', 'termcolor', 'gitpython==0.3.2.RC1', 'requests>=1.2.3', 'ply==3.4', 'python-vagrant==0.4.0' ], )
Update name of vagrant module
Update name of vagrant module Changed to python-vagrant to get python setup.py to work
Python
mit
huit/nepho,cloudlets/nepho,cloudlets/nepho
b7dc1da7962369c8c54b2f6c1345ccd812df1ab9
setup.py
setup.py
from setuptools import setup setup( name='firetv', version='1.0.5.dev', description='Communicate with an Amazon Fire TV device via ADB over a network.', url='https://github.com/happyleavesaoc/python-firetv/', license='MIT', author='happyleaves', author_email='happyleaves.tfr@gmail.com', packages=['firetv'], install_requires=['https://github.com/JeffLIrion/python-adb/zipball/master#adb==1.3.0.dev'], extras_require={ 'firetv-server': ['Flask>=0.10.1', 'PyYAML>=3.12'] }, entry_points={ 'console_scripts': [ 'firetv-server = firetv.__main__:main' ] }, classifiers=[ 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python :: 2', ] )
from setuptools import setup setup( name='firetv', version='1.0.5.dev', description='Communicate with an Amazon Fire TV device via ADB over a network.', url='https://github.com/happyleavesaoc/python-firetv/', license='MIT', author='happyleaves', author_email='happyleaves.tfr@gmail.com', packages=['firetv'], install_requires=['adb==1.3.0.dev'], extras_require={ 'firetv-server': ['Flask>=0.10.1', 'PyYAML>=3.12'] }, entry_points={ 'console_scripts': [ 'firetv-server = firetv.__main__:main' ] }, classifiers=[ 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python :: 2', ] )
Remove github link from 'install_requires'
Remove github link from 'install_requires'
Python
mit
happyleavesaoc/python-firetv
8a1d7f78abaca3cf912585bb2eb46ba0576e4b65
setup.py
setup.py
import os from setuptools import setup NAME = 'archivable' PACKAGES = ['archivable'] DESCRIPTION = 'Archivable class-decorator for django models which supports uniqueness' URL = "https://github.com/potatolondon/archivable" LONG_DESCRIPTION = open(os.path.join(os.path.dirname(__file__), 'README.md')).read() AUTHOR = 'Potato London Ltd.' EXTRAS = { "test": ["mock", "coverage==3.7.1"], } setup( name=NAME, version='0.1.0', packages=PACKAGES, # metadata for upload to PyPI author=AUTHOR, description=DESCRIPTION, long_description=LONG_DESCRIPTION, keywords=["django", "archivable", "uniqueness"], url=URL, classifiers=[ 'Development Status :: 3 - Alpha', 'Framework :: Django', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python', ], include_package_data=True, extras_require=EXTRAS, tests_require=EXTRAS['test'], )
import os from setuptools import setup NAME = 'archivable' PACKAGES = ['archivable'] DESCRIPTION = 'A class-decorator for archivable django-models' URL = "https://github.com/potatolondon/archivable" LONG_DESCRIPTION = open(os.path.join(os.path.dirname(__file__), 'README.md')).read() AUTHOR = 'Potato London Ltd.' EXTRAS = { "test": ["mock", "coverage==3.7.1"], } setup( name=NAME, version='0.1.0', packages=PACKAGES, # metadata for upload to PyPI author=AUTHOR, description=DESCRIPTION, long_description=LONG_DESCRIPTION, keywords=["django", "archivable", "uniqueness"], url=URL, classifiers=[ 'Development Status :: 3 - Alpha', 'Framework :: Django', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python', ], include_package_data=True, extras_require=EXTRAS, tests_require=EXTRAS['test'], )
Update description to match readme
Update description to match readme
Python
mit
potatolondon/archivable,potatolondon/archivable
84ec490f1fa0eb477f0a35f14f70f3c9425d8c42
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup setup( name="htmlgen", version="1.1.0", description="HTML 5 Generator", long_description=open("README.rst").read(), author="Sebastian Rittau", author_email="srittau@rittau.biz", url="https://github.com/srittau/python-htmlgen", packages=["htmlgen", "test_htmlgen"], package_data={"htmlgen": ["*.pyi", "py.typed"]}, python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", tests_require=["asserts >= 0.8.0, < 0.9", "typing"], license="MIT", classifiers=[ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Internet :: WWW/HTTP :: WSGI", "Topic :: Text Processing :: Markup :: HTML", ], )
#!/usr/bin/env python from setuptools import setup setup( name="htmlgen", version="1.1.0", description="HTML 5 Generator", long_description=open("README.rst").read(), author="Sebastian Rittau", author_email="srittau@rittau.biz", url="https://github.com/srittau/python-htmlgen", packages=["htmlgen", "test_htmlgen"], package_data={"htmlgen": ["*.pyi", "py.typed"]}, python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", tests_require=["asserts >= 0.8.0, < 0.9", "typing"], license="MIT", classifiers=[ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Internet :: WWW/HTTP :: WSGI", "Topic :: Text Processing :: Markup :: HTML", ], )
Mark as supporting Python 3.7
Mark as supporting Python 3.7
Python
mit
srittau/python-htmlgen
1f9c23a9cd421ed41b8bc95d2a753301478f3bcd
setup.py
setup.py
#!/usr/bin/env python3 from setuptools import setup setup( name="pyintesishome", version="1.8.1", description="A python3 library for running asynchronus communications with IntesisHome Smart AC Controllers", url="https://github.com/jnimmo/pyIntesisHome", author="James Nimmo", author_email="james@nimmo.net.nz", license="MIT", install_requires=["aiohttp>=3.7.4,<4"], packages=["pyintesishome"], classifiers=[ "Development Status :: 3 - Alpha", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Scientific/Engineering :: Interface Engine/Protocol Translator", ], )
#!/usr/bin/env python3 from setuptools import setup setup( name="pyintesishome", version="1.8.2", description="A python3 library for running asynchronus communications with IntesisHome Smart AC Controllers", url="https://github.com/jnimmo/pyIntesisHome", author="James Nimmo", author_email="james@nimmo.net.nz", license="MIT", install_requires=["aiohttp>=3.7.4,<4"], packages=["pyintesishome"], classifiers=[ "Development Status :: 3 - Alpha", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Scientific/Engineering :: Interface Engine/Protocol Translator", ], )
Update key map to add 192
Update key map to add 192
Python
mit
jnimmo/pyIntesisHome
7159908eb64ebe4a1d0b94435e8d2ba318b44b63
setup.py
setup.py
from setuptools import setup import re import os import requests def get_pip_version(pkginfo_url): pkginfo = requests.get(pkginfo_url).text for record in pkginfo.split('\n'): if record.startswith('Version'): current_version = str(record).split(':',1) return (current_version[1]).strip() if os.path.isfile('branch_master'): current_version = get_pip_version('https://pypi.python.org/pypi?name=taskcat&:action=display_pkginfo') else: current_version = get_pip_version('https://testpypi.python.org/pypi?name=taskcat&:action=display_pkginfo') new_version =re.sub('\d$', lambda x: str(int(x.group(0)) + 1), current_version) setup( name='taskcat', packages=['taskcat'], description='An OpenSource Cloudformation Deployment Framework', author='Tony Vattathil, Santiago Cardenas, Shivansh Singh', author_email='tonynv@amazon.com, sancard@amazon.com, sshvans@amazon.com', url='https://aws-quickstart.github.io/taskcat/', version=new_version, license='Apache License 2.0', download_url='https://github.com/aws-quickstart/taskcat/tarball/master', classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Topic :: Software Development :: Libraries', ], keywords=['aws', 'cloudformation', 'cloud', 'cloudformation testing', 'cloudformation deploy', 'taskcat'], install_requires=['boto3', 'pyfiglet', 'pyyaml', 'tabulate', 'yattag'] )
from setuptools import setup setup( name='taskcat', packages=['taskcat'], description='An OpenSource Cloudformation Deployment Framework', author='Tony Vattathil, Santiago Cardenas, Shivansh Singh', author_email='tonynv@amazon.com, sancard@amazon.com, sshvans@amazon.com', url='https://aws-quickstart.github.io/taskcat/', version='0.0.0.dev11', license='Apache License 2.0', download_url='https://github.com/aws-quickstart/taskcat/tarball/master', classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Topic :: Software Development :: Libraries', ], keywords=['aws', 'cloudformation', 'cloud', 'cloudformation testing', 'cloudformation deploy', 'taskcat'], install_requires=['boto3', 'pyfiglet', 'pyyaml', 'tabulate', 'yattag'] )
Revert Auto Version (Versioning is now managed by CI)
Revert Auto Version (Versioning is now managed by CI)
Python
apache-2.0
aws-quickstart/taskcat,aws-quickstart/taskcat,aws-quickstart/taskcat
6353a3d1443c717b2d2e804190153f8be605c2f1
setup.py
setup.py
# encoding: utf-8 from distutils.core import setup with open('README.rst') as readme: long_description = readme.read() setup( name='udiskie', version='0.4.2', description='Removable disk automounter for udisks', long_description=long_description, author='Byron Clark', author_email='byron@theclarkfamily.name', maintainer='Thomas Gläßle', maintainer_email='t_glaessle@gmx.de', url='https://github.com/coldfix/udiskie', license='MIT', packages=[ 'udiskie', ], scripts=[ 'bin/udiskie', 'bin/udiskie-umount', ], )
# encoding: utf-8 from distutils.core import setup with open('README.rst') as readme: long_description = readme.read() setup( name='udiskie', version='0.4.2', description='Removable disk automounter for udisks', long_description=long_description, author='Byron Clark', author_email='byron@theclarkfamily.name', maintainer='Thomas Gläßle', maintainer_email='t_glaessle@gmx.de', url='https://github.com/coldfix/udiskie', license='MIT', packages=[ 'udiskie', ], scripts=[ 'bin/udiskie', 'bin/udiskie-umount', 'bin/udiskie-mount' ], )
Include udiskie-mount in binary distribution
Include udiskie-mount in binary distribution
Python
mit
khardix/udiskie,pstray/udiskie,coldfix/udiskie,coldfix/udiskie,mathstuf/udiskie,pstray/udiskie
733951caa67fef1e8949e4efe7c9e5790a3dee1b
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup setup( name='pycron', version='1.0.0', description='Simple cron-like parser, which determines if current datetime matches conditions.', author='Kimmo Huoman', author_email='kipenroskaposti@gmail.com', license='MIT', keywords='cron parser', url='https://github.com/kipe/pycron', packages=[ 'pycron', ], setup_requires=['nose>=1.0'], tests_require=[ "arrow>=0.12.0", "coverage>=4.4.2", "coveralls>=1.2.0", "Delorean>=0.6.0", "nose>=1.0", "pendulum>=1.3.2", "pytz>=2017.3", "udatetime>=0.0.14" ] )
#!/usr/bin/env python from setuptools import setup setup( name='pycron', version='3.0.0', description='Simple cron-like parser, which determines if current datetime matches conditions.', author='Kimmo Huoman', author_email='kipenroskaposti@gmail.com', license='MIT', keywords='cron parser', url='https://github.com/kipe/pycron', packages=[ 'pycron', ], python_requires='>=3.4', tests_require=[ "arrow>=0.12.0", "coverage>=4.4.2", "coveralls>=1.2.0", "Delorean>=0.6.0", "nose>=1.0", "pendulum>=1.3.2", "pytz>=2017.3", "udatetime>=0.0.14" ] )
Remove support for Python 2, bump version to 3.0.0
Remove support for Python 2, bump version to 3.0.0
Python
mit
kipe/pycron
a7bc07b6dd66957af98a74140c17a329238510bc
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """Setup configuration.""" from setuptools import setup, find_packages if __name__ == "__main__": setup( name='ephypype', # version=VERSION, version='0.1.dev0', packages=find_packages(), author=['David Meunier', 'Annalisa Pascarella', 'Dmitrii Altukhov'], description='Definition of functions used\ as Node for electrophy (EEG/MEG)\ pipelines within nipype framework', lisence='BSD 3', install_requires=['mne>=0.16', 'nipype', 'configparser', 'h5py'] )
#!/usr/bin/env python # -*- coding: utf-8 -*- """Setup configuration.""" from setuptools import setup, find_packages import ephypype VERSION = ephypype.__version__ if __name__ == "__main__": setup( name='ephypype', version=VERSION, packages=find_packages(), author=['David Meunier', 'Annalisa Pascarella', 'Dmitrii Altukhov'], description='Definition of functions used\ as Node for electrophy (EEG/MEG)\ pipelines within nipype framework', lisence='BSD 3', install_requires=['mne>=0.14', 'nipype', 'configparser', 'h5py'] )
Revert "fix import loop in local installation; update mne dependency version"
Revert "fix import loop in local installation; update mne dependency version"
Python
bsd-3-clause
neuropycon/ephypype
82cb12c07e05814f8ef46554d08c5e818ab5f406
openprescribing/frontend/management/commands/resend_confirmation_emails.py
openprescribing/frontend/management/commands/resend_confirmation_emails.py
from allauth.account.utils import send_email_confirmation from django.conf import settings from django.core.management.base import BaseCommand from django.test import RequestFactory from frontend.models import User class Command(BaseCommand): """Command to resend confirmation emails to unverified users with emails filtered by the `email_contains` option. The message in the confirmation emails is defined in templates at `account/email/email_confirmation_message`. To override the standard message when running this command, alter the templates in `openprescribing/template_overrides/` and execute this command with custom settings, thus: python manage.py resend_confirmation_emails \ --email_contains=fred.bloggs \ --settings=openprescribing.settings.templateoverride """ def add_arguments(self, parser): parser.add_argument('--email_contains') def handle(self, *args, **options): users = User.objects.filter( emailaddress__verified=False, emailaddress__email__contains=options['email_contains']) request = RequestFactory().get('/') request.environ['SERVER_NAME'] = settings.ALLOWED_HOSTS[0] for user in users: print "Resending to", user send_email_confirmation(request, user)
from allauth.account.utils import send_email_confirmation from django.conf import settings from django.core.management.base import BaseCommand from django.test import RequestFactory from frontend.models import User class Command(BaseCommand): """Command to resend confirmation emails to unverified users with emails filtered by the `email_contains` option. The message in the confirmation emails is defined in templates at `account/email/email_confirmation_message`. To override the standard message when running this command, alter the templates in `openprescribing/template_overrides/` and execute this command with custom settings, thus: python manage.py resend_confirmation_emails \ --email_contains=fred.bloggs \ --settings=openprescribing.settings.templateoverride """ def add_arguments(self, parser): parser.add_argument('--email_contains') parser.add_argument('--sent_log') def handle(self, *args, **options): users = User.objects.filter( emailaddress__verified=False, emailaddress__email__contains=options['email_contains']) request = RequestFactory().get('/') request.environ['SERVER_NAME'] = settings.ALLOWED_HOSTS[0] with open(options['sent_log'], 'a+') as f: f.seek(0) already_sent = set(f.read().strip().splitlines()) for user in users: email = user.email if email in already_sent: print 'Skipping', user continue f.write(email+'\n') f.flush() print "Resending to", user send_email_confirmation(request, user)
Add a simple log file to prevent double sending
Add a simple log file to prevent double sending
Python
mit
ebmdatalab/openprescribing,annapowellsmith/openpresc,ebmdatalab/openprescribing,ebmdatalab/openprescribing,annapowellsmith/openpresc,annapowellsmith/openpresc,ebmdatalab/openprescribing,annapowellsmith/openpresc
4da632a986c3a43f75c7df64f27a90bbf7ff8039
setup.py
setup.py
#!/usr/bin/env python import sys from setuptools import setup from shortuuid import __version__ assert sys.version >= "2.5", "Requires Python v2.5 or above." classifiers = [ "License :: OSI Approved :: BSD License", "Programming Language :: Python", "Programming Language :: Python :: 2.5", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Software Development :: Libraries :: Python Modules", ] setup( name="shortuuid", version=__version__, author="Stochastic Technologies", author_email="info@stochastictechnologies.com", url="https://github.com/stochastic-technologies/shortuuid/", description="A generator library for concise, " "unambiguous and URL-safe UUIDs.", long_description="A library that generates short, pretty, " "unambiguous unique IDs " "by using an extensive, case-sensitive alphabet and omitting " "similar-looking letters and numbers.", license="BSD", classifiers=classifiers, packages=["shortuuid"], test_suite="shortuuid.tests", tests_require=[], )
#!/usr/bin/env python import sys from setuptools import setup from shortuuid import __version__ assert sys.version >= "2.5", "Requires Python v2.5 or above." classifiers = [ "License :: OSI Approved :: BSD License", "Programming Language :: Python", "Programming Language :: Python :: 2.5", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Software Development :: Libraries :: Python Modules", ] setup( name="shortuuid", version=__version__, author="Stochastic Technologies", author_email="info@stochastictechnologies.com", url="https://github.com/stochastic-technologies/shortuuid/", description="A generator library for concise, " "unambiguous and URL-safe UUIDs.", long_description="A library that generates short, pretty, " "unambiguous unique IDs " "by using an extensive, case-sensitive alphabet and omitting " "similar-looking letters and numbers.", license="BSD", classifiers=classifiers, packages=["shortuuid"], test_suite="shortuuid.tests", tests_require=[], )
Add Python 3.7 to the classifiers
Add Python 3.7 to the classifiers
Python
bsd-3-clause
stochastic-technologies/shortuuid,skorokithakis/shortuuid
9c24fdecf6b56eea88515afce962e65bc60255d5
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup setup( name='soccer-cli', version='0.0.3.1', description='Soccer for Hackers.', author='Archit Verma', license='MIT', classifiers=[ # How mature is this project? Common values are # 3 - Alpha # 4 - Beta # 5 - Production/Stable 'Development Status :: 3 - Alpha', # Indicate who your project is intended for 'Intended Audience :: Developers', 'Topic :: Software Development :: Build Tools', # Pick your license as you wish (should match "license" above) 'License :: OSI Approved :: MIT License', # Specify the Python versions you support here. In particular, ensure # that you indicate whether you support Python 2, Python 3 or both. 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', ], keywords = "soccer football espn scores live tool cli", author_email='architv07@gmail.com', url='https://github.com/architv/soccer-cli', scripts=['main.py', 'leagueids.py', 'authtoken.py', 'teamnames.py', 'liveapi.py'], install_requires=[ "click==5.0", "requests==2.7.0", ], entry_points = { 'console_scripts': [ 'soccer = main:main' ], } )
#!/usr/bin/env python from setuptools import setup import sys setup( name='soccer-cli', version='0.0.3.1', description='Soccer for Hackers.', author='Archit Verma', license='MIT', classifiers=[ # How mature is this project? Common values are # 3 - Alpha # 4 - Beta # 5 - Production/Stable 'Development Status :: 3 - Alpha', # Indicate who your project is intended for 'Intended Audience :: Developers', 'Topic :: Software Development :: Build Tools', # Pick your license as you wish (should match "license" above) 'License :: OSI Approved :: MIT License', # Specify the Python versions you support here. In particular, ensure # that you indicate whether you support Python 2, Python 3 or both. 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', ], keywords = "soccer football espn scores live tool cli", author_email='architv07@gmail.com', url='https://github.com/architv/soccer-cli', scripts=['main.py', 'leagueids.py', 'authtoken.py', 'teamnames.py', 'liveapi.py'], install_requires=[ "click==5.0", "requests==2.7.0", ] + ["colorama==0.3.3"] if "win" in sys.platform else [], entry_points = { 'console_scripts': [ 'soccer = main:main' ], } )
Add color support for Windows
Add color support for Windows http://click.pocoo.org/5/utils/#ansi-colors
Python
mit
architv/soccer-cli,migueldvb/soccer-cli,Saturn/soccer-cli,saisai/soccer-cli,nare469/soccer-cli,littmus/soccer-cli,suhussai/soccer-cli,ueg1990/soccer-cli,thurask/soccer-cli,carlosvargas/soccer-cli
6199b64659327e1b45670af79e87306b44f20f56
setup.py
setup.py
# coding: utf-8 from os.path import join, dirname from setuptools import setup with open(join(dirname(__file__), 'README.rst')) as f: long_description = f.read() setup( name='django-speedinfo', version='1.3', packages=['speedinfo', 'speedinfo.migrations'], include_package_data=True, license='MIT', description='Live profiling tool for Django framework to measure views performance', long_description=long_description, url='https://github.com/catcombo/django-speedinfo', author='Evgeniy Krysanov', author_email='evgeniy.krysanov@gmail.com', classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'Environment :: Web Environment', 'Framework :: Django', 'Framework :: Django :: 1.8', 'Framework :: Django :: 1.9', 'Framework :: Django :: 1.10', 'Framework :: Django :: 1.11', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.6', 'Topic :: Internet :: WWW/HTTP', 'Topic :: Internet :: WWW/HTTP :: Dynamic Content', ], keywords='django profiler views performance', )
# coding: utf-8 from os.path import join, dirname from setuptools import setup with open(join(dirname(__file__), 'README.rst')) as f: long_description = f.read() setup( name='django-speedinfo', version='1.3.1', packages=['speedinfo', 'speedinfo.migrations'], include_package_data=True, license='MIT', description='Live profiling tool for Django framework to measure views performance', long_description=long_description, url='https://github.com/catcombo/django-speedinfo', author='Evgeniy Krysanov', author_email='evgeniy.krysanov@gmail.com', classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'Environment :: Web Environment', 'Framework :: Django', 'Framework :: Django :: 1.8', 'Framework :: Django :: 1.9', 'Framework :: Django :: 1.10', 'Framework :: Django :: 1.11', 'Framework :: Django :: 2.0', 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.6', 'Topic :: Internet :: WWW/HTTP', 'Topic :: Internet :: WWW/HTTP :: Dynamic Content', ], keywords='django profiler views performance', )
Bump version number to 1.3.1.
Bump version number to 1.3.1.
Python
mit
catcombo/django-speedinfo,catcombo/django-speedinfo,catcombo/django-speedinfo
88be6fc33fb43290382e7ba06c6375e37ffb2ae1
setup.py
setup.py
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. """Setup defines metadata for the python Chatbase Module.""" from setuptools import setup setup(name='chatbase', version='0.1', description='Python module for interacting with Chatbase APIs', url='https://chatbase.com/documentation', author='Google Inc.', author_email='chatbase-feedback@google.com', license='Apache-2.0', packages=['chatbase'], zip_safe=False)
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. """Setup defines metadata for the python Chatbase Module.""" from setuptools import setup setup(name='chatbase', version='0.1', description='Python module for interacting with Chatbase APIs', url='https://chatbase.com/documentation', author='Google Inc.', author_email='chatbase-feedback@google.com', license='Apache-2.0', packages=['chatbase'], install_requires=['requests'], zip_safe=False)
Add requests to dep list
Add requests to dep list
Python
apache-2.0
google/chatbase-python
11f0b3bcb8f5a4d813036bd135a02fdad49cca14
setup.py
setup.py
""" setup.py for limits """ __author__ = "Ali-Akber Saifee" __email__ = "ali@indydevs.org" __copyright__ = "Copyright 2015, Ali-Akber Saifee" from setuptools import setup, find_packages import os this_dir = os.path.abspath(os.path.dirname(__file__)) REQUIREMENTS = filter(None, open( os.path.join(this_dir, 'requirements', 'main.txt')).read().splitlines()) import versioneer versioneer.versionfile_source = "limits/_version.py" versioneer.versionfile_build = "limits/version.py" versioneer.tag_prefix = "" versioneer.parentdir_prefix = "limits-" setup( name='limits', author=__author__, author_email=__email__, license="MIT", url="https://limits.readthedocs.org", zip_safe=False, version=versioneer.get_version(), cmdclass=versioneer.get_cmdclass(), install_requires=REQUIREMENTS, classifiers=[k for k in open('CLASSIFIERS').read().split('\n') if k], description='Rate limiting utilities', long_description=open('README.rst').read() + open('HISTORY.rst').read(), packages=find_packages(exclude=["tests*"]), )
""" setup.py for limits """ __author__ = "Ali-Akber Saifee" __email__ = "ali@indydevs.org" __copyright__ = "Copyright 2015, Ali-Akber Saifee" from setuptools import setup, find_packages import os this_dir = os.path.abspath(os.path.dirname(__file__)) REQUIREMENTS = [ k for k in open( os.path.join(this_dir, 'requirements', 'main.txt') ).read().splitlines() if k.strip() ] import versioneer versioneer.versionfile_source = "limits/_version.py" versioneer.versionfile_build = "limits/version.py" versioneer.tag_prefix = "" versioneer.parentdir_prefix = "limits-" setup( name='limits', author=__author__, author_email=__email__, license="MIT", url="https://limits.readthedocs.org", zip_safe=False, version=versioneer.get_version(), cmdclass=versioneer.get_cmdclass(), install_requires=REQUIREMENTS, classifiers=[k for k in open('CLASSIFIERS').read().split('\n') if k], description='Rate limiting utilities', long_description=open('README.rst').read() + open('HISTORY.rst').read(), packages=find_packages(exclude=["tests*"]), )
Use a list comprehension instead of filter for listing requirements
Use a list comprehension instead of filter for listing requirements
Python
mit
alisaifee/limits,alisaifee/limits
0cd64a96cd42c6b085b24c1710b33f966cb191f8
setup.py
setup.py
from setuptools import setup setup( name="ticket_auth", version='0.1.1', description='Ticket authentication system similar to mod_auth_tkt used by Apache', packages=['ticket_auth'], author='Gnarly Chicken', author_email='gnarlychicken@gmx.com', test_suite='tests', url='https://github.com/gnarlychicken/ticket_auth', license='MIT', classifiers=[ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'Topic :: Internet :: WWW/HTTP :: Session', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 3 :: Only', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', ], keywords='mod_auth_tkt authentication session ticket')
from setuptools import setup setup( name="ticket_auth", version='0.1.2', description='Ticket authentication system similar to mod_auth_tkt used by Apache', packages=['ticket_auth'], author='Gnarly Chicken', author_email='gnarlychicken@gmx.com', test_suite='tests', url='https://github.com/gnarlychicken/ticket_auth', license='MIT', classifiers=[ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'Topic :: Internet :: WWW/HTTP :: Session', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 3 :: Only', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', ], keywords='mod_auth_tkt authentication session ticket')
Update of version information in preparation for release of 0.1.2
Update of version information in preparation for release of 0.1.2
Python
mit
gnarlychicken/ticket_auth
b68dc05da35fda968c612e1e388737fe4956bf6e
setup.py
setup.py
# coding=utf-8 import setuptools import octoprint_setuptools parameters = octoprint_setuptools.create_plugin_setup_parameters( identifier="octobullet", name="OctoPrint-Pushbullet", version="0.1.0", description="Pushes notifications about finished print jobs via Pushbullet", author="Gina Häußge", mail="osd@foosel.net", url="http://github.com/OctoPrint/OctoPrint-Pushbullet", requires=[ "OctoPrint", "requests", "pushbullet.py==dev" ] ) parameters["dependency_links"] = [ "https://github.com/foosel/pushbullet.py/archive/master.zip#egg=pushbullet.py-dev" ] setuptools.setup(**parameters)
# coding=utf-8 import setuptools import octoprint_setuptools parameters = octoprint_setuptools.create_plugin_setup_parameters( identifier="octobullet", name="OctoPrint-Pushbullet", version="0.1.1", description="Pushes notifications about finished print jobs via Pushbullet", author="Gina Häußge", mail="osd@foosel.net", url="http://github.com/OctoPrint/OctoPrint-Pushbullet", requires=[ "OctoPrint", "requests", "pushbullet.py==dev" ] ) parameters["dependency_links"] = [ "https://github.com/foosel/pushbullet.py/archive/master.zip#egg=pushbullet.py-dev" ] setuptools.setup(**parameters)
Use patched version of pushbullet.py for now
Use patched version of pushbullet.py for now Official one uses pip.req.parse_requirements, which might or might not work depending on the system's pip version...
Python
agpl-3.0
nicanor-romero/OctoPrint-Pushbullet,spapadim/OctoPrint-Pushbullet,OctoPrint/OctoPrint-Pushbullet,OctoPrint/OctoPrint-Pushbullet,OctoPrint/OctoPrint-Pushbullet
c64759244f7f0a99701ef632156699919c81bb89
setup.py
setup.py
from __future__ import print_function from setuptools import setup from os.path import join, dirname, abspath def main(): reqs_file = join(dirname(abspath(__file__)), 'requirements.txt') with open(reqs_file) as f: requirements = [req.strip() for req in f.readlines()] setup( name='pgcontents', version='0.2', description="A Postgres-backed ContentsManager for IPython.", author="Scott Sanderson", author_email="ssanderson@quantopian.com", packages=[ 'pgcontents', 'pgcontents/alembic', 'pgcontents/alembic/versions', 'pgcontents/tests/', 'pgcontents/utils/', ], license='Apache 2.0', include_package_data=True, zip_safe=False, url="https://github.com/quantopian/pgcontents", classifiers=[ 'Development Status :: 3 - Alpha', 'Framework :: IPython', 'License :: OSI Approved :: Apache Software License', 'Natural Language :: English', 'Operating System :: OS Independent', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python', 'Topic :: Database', ], install_requires=requirements, scripts=[ 'bin/pgcontents', ], ) if __name__ == '__main__': main()
from __future__ import print_function from setuptools import setup from os.path import join, dirname, abspath import sys long_description = '' if 'upload' in sys.argv or '--long-description' in sys.argv: with open('README.rst') as f: long_description = f.read() def main(): reqs_file = join(dirname(abspath(__file__)), 'requirements.txt') with open(reqs_file) as f: requirements = [req.strip() for req in f.readlines()] setup( name='pgcontents', version='0.2', description="A Postgres-backed ContentsManager for IPython.", long_description=long_description, author="Scott Sanderson", author_email="ssanderson@quantopian.com", packages=[ 'pgcontents', 'pgcontents/alembic', 'pgcontents/alembic/versions', 'pgcontents/tests/', 'pgcontents/utils/', ], license='Apache 2.0', include_package_data=True, zip_safe=False, url="https://github.com/quantopian/pgcontents", classifiers=[ 'Development Status :: 3 - Alpha', 'Framework :: IPython', 'License :: OSI Approved :: Apache Software License', 'Natural Language :: English', 'Operating System :: OS Independent', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python', 'Topic :: Database', ], install_requires=requirements, scripts=[ 'bin/pgcontents', ], ) if __name__ == '__main__': main()
Add long description for upload.
DEV: Add long description for upload.
Python
apache-2.0
quantopian/pgcontents
fb22e5fef7ca7fb1d2e6cc4a26af452c3a629f7e
setup.py
setup.py
'''setup script for this module''' from setuptools import setup def readme(): '''pull iin the readme file for the long description''' with open('README.md') as rfile: return rfile.read() setup( name='chamberconnectlibrary', version='2.1.2', description='A library for interfacing with Espec North America chambers', long_description=readme(), url='https://github.com/EspecNorthAmerica/ChamberConnectLibrary', author='Espec North America', author_email='mmetzler@espec.com', license='MIT', packages=['chamberconnectlibrary'], install_requires=['pyserial'], zip_safe=False, keywords='Espec P300 SCP220 F4T F4', include_package_data=True, scripts=['bin/chamberconnectlibrary-test.py'] )
'''setup script for this module''' from setuptools import setup def readme(): '''pull iin the readme file for the long description''' with open('README.md') as rfile: return rfile.read() setup( name='chamberconnectlibrary', version='2.1.3', description='A library for interfacing with Espec North America chambers', long_description=readme(), url='https://github.com/EspecNorthAmerica/ChamberConnectLibrary', author='Espec North America', author_email='mmetzler@espec.com', license='MIT', packages=['chamberconnectlibrary'], install_requires=['pyserial'], zip_safe=False, keywords='Espec P300 SCP220 F4T F4', include_package_data=True, scripts=['bin/chamberconnectlibrary-test.py'] )
Correct pypi package; file naming was wrong.
Correct pypi package; file naming was wrong.
Python
mit
EspecNorthAmerica/ChamberConnectLibrary
5a971cc7fecf05ce3f38bf1fcd48592ef04554ff
setup.py
setup.py
try: from setuptools import setup, find_packages except ImportError: from distutils.core import setup import numpy as np setup(name='parcels', version='0.0.1', description="""Framework for Lagrangian tracking of virtual ocean particles in the petascale age.""", author="Imperial College London", packages=['parcels'], )
try: from setuptools import setup, find_packages except ImportError: from distutils.core import setup import numpy as np setup(name='parcels', version='0.0.1', description="""Framework for Lagrangian tracking of virtual ocean particles in the petascale age.""", author="Imperial College London", packages=find_packages(exclude=['docs', 'examples', 'indlude', 'scripts', 'tests']), )
Automate package discovery to include sub-packages
Setup: Automate package discovery to include sub-packages
Python
mit
OceanPARCELS/parcels,OceanPARCELS/parcels
da9c1a6b728c8d04b7dedc8e6d5c64864194c14f
setup.py
setup.py
import os from setuptools import setup, find_packages with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme: README = readme.read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='django-imgix', version='0.2', packages=find_packages(), include_package_data=True, license='BSD License', # example license description='Django app to generate imgix urls in your templates.', long_description=README, url='https://github.com/pancentric/django-imgix', author='Pancentric Ltd', author_email='devops@pancentric.com', install_requires=[ 'django>=1.4.0', 'imgix>=1.0.0', ], classifiers=[ 'Environment :: Web Environment', 'Framework :: Django', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Operating System :: OS Independent', 'Programming Language :: Python', # Replace these appropriately if you are stuck on Python 2. 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.4', 'Topic :: Internet :: WWW/HTTP', 'Topic :: Internet :: WWW/HTTP :: Dynamic Content', ], )
import os from setuptools import setup, find_packages with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme: README = readme.read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='django-imgix', version='0.2.0', packages=find_packages(), include_package_data=True, license='BSD License', # example license description='Django app to generate imgix urls in your templates.', long_description=README, url='https://github.com/pancentric/django-imgix', author='Pancentric Ltd', author_email='devops@pancentric.com', install_requires=[ 'django>=1.4.0', 'imgix>=1.0.0', ], classifiers=[ 'Environment :: Web Environment', 'Framework :: Django', 'Intended Audience :: Developers', 'License :: OSI Approved :: BSD License', 'Operating System :: OS Independent', 'Programming Language :: Python', # Replace these appropriately if you are stuck on Python 2. 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.4', 'Topic :: Internet :: WWW/HTTP', 'Topic :: Internet :: WWW/HTTP :: Dynamic Content', ], )
Add .0 to version number.
Add .0 to version number.
Python
isc
pancentric/django-imgix
5403b06920ad95b6b8ea0037d728f685e06424f6
setup.py
setup.py
from setuptools import setup setup( name='tangled.mako', version='0.1a3.dev0', description='Tangled Mako integration', long_description=open('README.rst').read(), url='http://tangledframework.org/', download_url='https://github.com/TangledWeb/tangled.mako/tags', author='Wyatt Baldwin', author_email='self@wyattbaldwin.com', include_package_data=True, packages=[ 'tangled', 'tangled.mako', 'tangled.mako.tests', ], install_requires=[ 'tangled.web>=0.1a5', 'Mako>=0.9.1', ], extras_require={ 'dev': [ 'tangled.web[dev]>=0.1a5', ], }, classifiers=[ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', ], )
from setuptools import setup setup( name='tangled.mako', version='0.1a3.dev0', description='Tangled Mako integration', long_description=open('README.rst').read(), url='http://tangledframework.org/', download_url='https://github.com/TangledWeb/tangled.mako/tags', author='Wyatt Baldwin', author_email='self@wyattbaldwin.com', include_package_data=True, packages=[ 'tangled', 'tangled.mako', 'tangled.mako.tests', ], install_requires=[ 'tangled.web>=0.1a5', 'Mako>=1.0', ], extras_require={ 'dev': [ 'tangled.web[dev]>=0.1a5', ], }, classifiers=[ 'Development Status :: 3 - Alpha', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', ], )
Upgrade Mako from 0.9.1 to 1.0
Upgrade Mako from 0.9.1 to 1.0
Python
mit
TangledWeb/tangled.mako
a437c2157aa1dfc20a37fde7f3b791cf4a496aec
setup.py
setup.py
# Copyright 2013 TellApart, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # # ============================================================================= # # setup.py for the commandr package. # from distutils.core import setup setup( name='commandr', version='1.0dev', packages=['commandr'], author='Kevin Ballard', author_email='kevin@tellapart.com', url='http://pypi.python.org/pypi/commandr/', license='')
# Copyright 2013 TellApart, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # # ============================================================================= # # setup.py for the commandr package. # from distutils.core import setup setup( name='commandr', version='1.0', packages=['commandr'], author='Kevin Ballard', author_email='kevin@tellapart.com', url='http://pypi.python.org/pypi/commandr/', license='')
Set release version to 1.0
Set release version to 1.0
Python
apache-2.0
tellapart/commandr,tellapart/commandr