commit
stringlengths
40
40
old_file
stringlengths
4
118
new_file
stringlengths
4
118
old_contents
stringlengths
0
2.94k
new_contents
stringlengths
1
4.43k
subject
stringlengths
15
444
message
stringlengths
16
3.45k
lang
stringclasses
1 value
license
stringclasses
13 values
repos
stringlengths
5
43.2k
prompt
stringlengths
17
4.58k
response
stringlengths
1
4.43k
prompt_tagged
stringlengths
58
4.62k
response_tagged
stringlengths
1
4.43k
text
stringlengths
132
7.29k
text_tagged
stringlengths
173
7.33k
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 ...
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...
Use raw string for regular expression.
Use raw string for regular expression.
Python
bsd-2-clause
Jarn/jarn.mkrelease
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 ...
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...
<commit_before>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) retu...
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...
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 ...
<commit_before>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) retu...
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 ...
#!/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('TASKQU...
Fix up logging and env vars.
Fix up logging and env vars.
Python
mit
grow/buildbot,grow/buildbot,grow/buildbot
#!/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 ...
#!/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('TASKQU...
<commit_before>#!/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 PROJE...
#!/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('TASKQU...
#!/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 ...
<commit_before>#!/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 PROJE...
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) ...
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_ke...
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
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) ...
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_ke...
<commit_before>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(), keyle...
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_ke...
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) ...
<commit_before>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(), keyle...
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, contex...
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, contex...
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-a...
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, contex...
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, contex...
<commit_before>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...
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, contex...
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, contex...
<commit_before>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...
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
#!/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(']') Update p...
#!/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(']')
<commit_before>#!/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)) prin...
#!/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(']')
#!/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(']') Update p...
<commit_before>#!/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)) prin...
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 = '{...
#!/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() ...
Change a report data format
Change a report data format
Python
mit
yunbademo/yunba-smarthome,yunbademo/yunba-smarthome
#!/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 = '{...
#!/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() ...
<commit_before>#!/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()...
#!/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() ...
#!/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 = '{...
<commit_before>#!/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()...
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 deb...
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.ru...
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
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 deb...
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.ru...
<commit_before>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...
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.ru...
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 deb...
<commit_before>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...
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 cla...
# 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 cla...
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
# 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 cla...
# 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 cla...
<commit_before># 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_...
# 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 cla...
# 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 cla...
<commit_before># 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_...
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='lat...
""" 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='lat...
Replace deprecated login/logout function-based views
Replace deprecated login/logout function-based views
Python
mit
jomoore/threepins,jomoore/threepins,jomoore/threepins
""" 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='lat...
""" 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='lat...
<commit_before>""" 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.la...
""" 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='lat...
""" 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='lat...
<commit_before>""" 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.la...
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.QAppli...
# -*- 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.setAttr...
Add configparser import to avoid windows packager error
Add configparser import to avoid windows packager error
Python
mit
lakewik/storj-gui-client
# -*- 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.QAppli...
# -*- 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.setAttr...
<commit_before># -*- 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...
# -*- 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.setAttr...
# -*- 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.QAppli...
<commit_before># -*- 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...
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) ...
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
class FeedForwardNet: pass Add main code and feed forward net class It can XOR, but sin function still fails
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) ...
<commit_before>class FeedForwardNet: pass <commit_msg>Add main code and feed forward net class It can XOR, but sin function still fails<commit_after>
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) ...
class FeedForwardNet: pass Add main code and feed forward net class It can XOR, but sin function still failsfrom layers import InputLayer, Layer, OutputLayer import math import random class FeedForwardNet(object): def __init__(self, inlayersize, layersize, outlayersize): self._inlayer = InputLayer(inl...
<commit_before>class FeedForwardNet: pass <commit_msg>Add main code and feed forward net class It can XOR, but sin function still fails<commit_after>from layers import InputLayer, Layer, OutputLayer import math import random class FeedForwardNet(object): def __init__(self, inlayersize, layersize, outlayersize...
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 ...
###### # 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 ...
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
###### # 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 ...
###### # 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 ...
<commit_before>###### # 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: ...
###### # 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 ...
###### # 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 ...
<commit_before>###### # 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: ...
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, \ ...
#!/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')] ==...
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
#!/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, \ ...
#!/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')] ==...
<commit_before>#!/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, la...
#!/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')] ==...
#!/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, \ ...
<commit_before>#!/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, la...
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
# -*- 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'), ) Update to Django 1.11.19 including ...
# -*- 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'), )
<commit_before># -*- 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'), ) <commit_msg>Update t...
# -*- 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'), )
# -*- 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'), ) Update to Django 1.11.19 including ...
<commit_before># -*- 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'), ) <commit_msg>Update t...
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....
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....
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
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....
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....
<commit_before> 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(): ...
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....
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....
<commit_before> 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(): ...
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...
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...
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
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...
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...
<commit_before>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 th...
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...
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...
<commit_before>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 th...
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'...
""" 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_KEY...
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,Shrh...
""" 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'...
""" 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_KEY...
<commit_before>""" 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 = ['r...
""" 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_KEY...
""" 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'...
<commit_before>""" 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 = ['r...
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
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() Customize scripts to work with menu
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()
<commit_before> 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() <commit_msg>Customize scripts to work with menu<commit_after>
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()
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() Customize scripts to work with menu import sys from java.lang import String from java.util import Hash...
<commit_before> 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() <commit_msg>Customize scripts to work with menu<commit_after> import sys from java.lang...
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 th...
""" 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. """ # Ove...
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...
""" 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 th...
""" 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. """ # Ove...
<commit_before>""" 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...
""" 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. """ # Ove...
""" 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 th...
<commit_before>""" 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...
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_...
#!/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_DIR...
Add samroeca.com to url pointing
Add samroeca.com to url pointing
Python
mit
pappasam/pappasam.github.io,pappasam/pappasam.github.io
#!/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_...
#!/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_DIR...
<commit_before>#!/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}.ato...
#!/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_DIR...
#!/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_...
<commit_before>#!/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}.ato...
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"labwilli...
"""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): ...
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
"""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"labwilli...
"""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): ...
<commit_before>"""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 [ ...
"""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): ...
"""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"labwilli...
<commit_before>"""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 [ ...
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 ...
''' 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 servic...
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
''' 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 ...
''' 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 servic...
<commit_before>''' 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 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 servic...
''' 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 ...
<commit_before>''' 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 '*...
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_configuratio...
Fix syntax errors. (preventing install)
Fix syntax errors. (preventing install)
Python
apache-2.0
dacut/slurm-ec2-utils,dacut/slurm-ec2-utils
#!/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_ Fix syntax errors. (preventing install)
#!/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_configuratio...
<commit_before>#!/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_ <commit_msg>Fix syntax errors. (preventing install)<commit_after>
#!/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_configuratio...
#!/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_ Fix syntax errors. (preventing install)#!/usr/bin/python from __future__ import absolute_import,...
<commit_before>#!/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_ <commit_msg>Fix syntax errors. (preventing install)<commit_after>#!/usr/bin/pytho...
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 distribute...
# # 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 distribute...
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,f...
# # 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 distribute...
# # 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 distribute...
<commit_before># # 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 progra...
# # 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 distribute...
# # 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 distribute...
<commit_before># # 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 progra...
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`...
# :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`...
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
# :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`...
# :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`...
<commit_before># :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:...
# :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`...
# :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`...
<commit_before># :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:...
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.CharFie...
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.CharFie...
Fix string output of Playbook
Fix string output of Playbook
Python
bsd-3-clause
lozadaOmr/ansible-admin,lozadaOmr/ansible-admin,lozadaOmr/ansible-admin
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.CharFie...
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.CharFie...
<commit_before>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 =...
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.CharFie...
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.CharFie...
<commit_before>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 =...
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): set...
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): set...
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/s...
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): set...
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): set...
<commit_before>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, **set...
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): set...
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): set...
<commit_before>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, **set...
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 requi...
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 requi...
Allow for requirements without a hash
Allow for requirements without a hash
Python
mit
bevanmw/gitupgrade
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 requi...
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 requi...
<commit_before>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: f...
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 requi...
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 requi...
<commit_before>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: f...
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_at...
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(s...
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
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_at...
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(s...
<commit_before>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 t...
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(s...
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_at...
<commit_before>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 t...
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 increa...
# 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 increa...
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 <8f7d8ce2c6797410ae95fecd4c30801ee9f...
Python
mit
franzinc/agraph-python,franzinc/agraph-python,franzinc/agraph-python,franzinc/agraph-python
# 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 increa...
# 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 increa...
<commit_before># 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 numb...
# 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 increa...
# 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 increa...
<commit_before># 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 numb...
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....
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 = ...
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
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....
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 = ...
<commit_before>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() tok...
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 = ...
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....
<commit_before>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() tok...
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'...
""" 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'...
Add a new generic AWS Error exception
Add a new generic AWS Error exception
Python
bsd-3-clause
gmr/tornado-aws,gmr/tornado-aws
""" 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'...
""" 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'...
<commit_before>""" 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 ...
""" 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'...
""" 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'...
<commit_before>""" 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 ...
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 cl...
''' 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 cl...
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
''' 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 cl...
''' 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 cl...
<commit_before>''' 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 salta...
''' 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 cl...
''' 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 cl...
<commit_before>''' 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 salta...
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' '(ex...
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' '(ex...
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
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' '(ex...
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' '(ex...
<commit_before>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'...
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' '(ex...
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' '(ex...
<commit_before>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'...
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 = KafkaProdu...
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 = KafkaProdu...
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,A...
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 = KafkaProdu...
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 = KafkaProdu...
<commit_before>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) produc...
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 = KafkaProdu...
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 = KafkaProdu...
<commit_before>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) produc...
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): ...
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)...
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
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): ...
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)...
<commit_before>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(...
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)...
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): ...
<commit_before>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(...
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() asser...
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() ...
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
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() asser...
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() ...
<commit_before>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_impo...
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() ...
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() asser...
<commit_before>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_impo...
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...
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...
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
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...
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...
<commit_before>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.Cli...
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...
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...
<commit_before>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.Cli...
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 ...
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 fr...
Fix polygraph.types import to include EnumValue and InputValue
Fix polygraph.types import to include EnumValue and InputValue
Python
mit
polygraph-python/polygraph
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 ...
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 fr...
<commit_before>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 .unio...
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 fr...
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 ...
<commit_before>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 .unio...
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 ...
#!/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 ...
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,DaanH...
#!/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 ...
#!/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 ...
<commit_before>#!/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 "M...
#!/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 ...
#!/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 ...
<commit_before>#!/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 "M...
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 except...
#!/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 except...
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/...
#!/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 except...
#!/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 except...
<commit_before>#!/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 f...
#!/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 except...
#!/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 except...
<commit_before>#!/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 f...
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 = confi...
#!/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" ...
Read the real config file, not config.test
Read the real config file, not config.test
Python
mit
mineo/lala,mineo/lala
#!/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 = confi...
#!/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" ...
<commit_before>#!/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) lal...
#!/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" ...
#!/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 = confi...
<commit_before>#!/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) lal...
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('mou...
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('mou...
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
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('mou...
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('mou...
<commit_before>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.removeEve...
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('mou...
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('mou...
<commit_before>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.removeEve...
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
#encoding:utf-8 subreddit = 'wholesome' t_channel = '@r_wholesome' def send_post(submission, r2t): return r2t.send_simple(submission) Add a few subreddits to @r_wholesome
#encoding:utf-8 subreddit = 'wholesome+WholesomeComics+wholesomegifs+wholesomepics+wholesomememes' t_channel = '@r_wholesome' def send_post(submission, r2t): return r2t.send_simple(submission)
<commit_before>#encoding:utf-8 subreddit = 'wholesome' t_channel = '@r_wholesome' def send_post(submission, r2t): return r2t.send_simple(submission) <commit_msg>Add a few subreddits to @r_wholesome<commit_after>
#encoding:utf-8 subreddit = 'wholesome+WholesomeComics+wholesomegifs+wholesomepics+wholesomememes' t_channel = '@r_wholesome' def send_post(submission, r2t): return r2t.send_simple(submission)
#encoding:utf-8 subreddit = 'wholesome' t_channel = '@r_wholesome' def send_post(submission, r2t): return r2t.send_simple(submission) Add a few subreddits to @r_wholesome#encoding:utf-8 subreddit = 'wholesome+WholesomeComics+wholesomegifs+wholesomepics+wholesomememes' t_channel = '@r_wholesome' def send_post(...
<commit_before>#encoding:utf-8 subreddit = 'wholesome' t_channel = '@r_wholesome' def send_post(submission, r2t): return r2t.send_simple(submission) <commit_msg>Add a few subreddits to @r_wholesome<commit_after>#encoding:utf-8 subreddit = 'wholesome+WholesomeComics+wholesomegifs+wholesomepics+wholesomememes' t_...
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 #...
# -*- 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 #...
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/co...
# -*- 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 #...
# -*- 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 #...
<commit_before># -*- 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 __...
# -*- 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 #...
# -*- 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 #...
<commit_before># -*- 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 __...
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 fi...
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 ...
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
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 fi...
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 ...
<commit_before>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...
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 ...
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 fi...
<commit_before>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...
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" righ...
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" righ...
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
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" righ...
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" righ...
<commit_before>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-...
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" righ...
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" righ...
<commit_before>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-...
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.co...
#!/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.co...
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
#!/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.co...
#!/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.co...
<commit_before>#!/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='ht...
#!/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.co...
#!/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.co...
<commit_before>#!/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='ht...
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)...
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)...
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
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)...
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)...
<commit_before>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....
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)...
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)...
<commit_before>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....
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...
""" 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__...
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
""" 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...
""" 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__...
<commit_before>""" 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() ...
""" 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__...
""" 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...
<commit_before>""" 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() ...
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(u...
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(u...
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
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(u...
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(u...
<commit_before>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.o...
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(u...
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(u...
<commit_before>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.o...
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-marque...
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
# -*- 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-marque...
<commit_before># -*- 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(...
# -*- 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-marque...
# -*- 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...
<commit_before># -*- 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(...
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 ...
#------------------------------------------------------------------------------ # 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 ...
Fix error message for invalid QT_API.
Fix error message for invalid QT_API.
Python
bsd-3-clause
burnpanck/traits,burnpanck/traits
#------------------------------------------------------------------------------ # 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 ...
#------------------------------------------------------------------------------ # 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 ...
<commit_before>#------------------------------------------------------------------------------ # 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 be...
#------------------------------------------------------------------------------ # 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 ...
#------------------------------------------------------------------------------ # 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 ...
<commit_before>#------------------------------------------------------------------------------ # 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 be...
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 us...
# (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 log...
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
# (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 us...
# (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 log...
<commit_before># (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 ...
# (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 log...
# (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 us...
<commit_before># (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 ...
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
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.
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()))
<commit_before>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()]) <commit_msg>Make currency choices a tuple.<commit_after>
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.import moneyed FFXOS_ACTIVITY_NAME = 'Submit FirefoxOS device price' def get_currency_choices...
<commit_before>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()]) <commit_msg>Make currency choices a tuple.<commit_after>import moneyed FFXOS_ACTIVITY_NAME = 'Submit FirefoxOS...
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 artis...
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_t...
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
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 artis...
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_t...
<commit_before>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 ...
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_t...
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 artis...
<commit_before>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 ...
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...
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
# 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] Add method to parse angle command line argu...
# 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...
<commit_before> # 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] <commit_msg>Add method to pa...
# 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...
# 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] Add method to parse angle command line argu...
<commit_before> # 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] <commit_msg>Add method to pa...
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 rawhd...
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 rawhd...
Make dsamp a visible component of blimpy
Make dsamp a visible component of blimpy
Python
bsd-3-clause
UCBerkeleySETI/blimpy,UCBerkeleySETI/blimpy
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 rawhd...
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 rawhd...
<commit_before>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...
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 rawhd...
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 rawhd...
<commit_before>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...
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.C...
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
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') Make no-api-key test more reliable
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.C...
<commit_before>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') <commit_msg>Make no-api-key test more reliable<commit_after>
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.C...
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') Make no-api-key test more reliableimport unittest import delighted class Cli...
<commit_before>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') <commit_msg>Make no-api-key test more reliable<commit_after>impo...
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...
''' @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(...
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
''' @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...
''' @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(...
<commit_before>''' @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.refl...
''' @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(...
''' @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...
<commit_before>''' @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.refl...
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__(se...
# 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__(se...
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
# 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__(se...
# 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__(se...
<commit_before># 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: ...
# 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__(se...
# 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__(se...
<commit_before># 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: ...
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 # destinat...
# 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 # destinat...
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
# 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 # destinat...
# 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 # destinat...
<commit_before># 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, ...
# 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 # destinat...
# 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 # destinat...
<commit_before># 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, ...
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( ...
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) c...
Add integration test for db init
Add integration test for db init
Python
mit
thiderman/piper
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( ...
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) c...
<commit_before>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_calle...
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) c...
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( ...
<commit_before>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_calle...
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 beh...
""" 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 beh...
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
""" 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 beh...
""" 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 beh...
<commit_before>""" 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 ...
""" 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 beh...
""" 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 beh...
<commit_before>""" 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 ...
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...
#!@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...
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
#!@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...
#!@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...
<commit_before>#!@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....
#!@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...
#!@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...
<commit_before>#!@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....
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: _l...
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)]: _libr...
Fix metadata template import on OS X
Fix metadata template import on OS X
Python
bsd-3-clause
NaturalHistoryMuseum/inselect,NaturalHistoryMuseum/inselect
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: _l...
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)]: _libr...
<commit_before>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 _libr...
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)]: _libr...
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: _l...
<commit_before>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 _libr...
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
import string UPPER = string.ascii_uppercase LOWER = string.ascii_lowercase def rotate(s, n): rules = shift_rules(n) return "".join(map(lambda k: rules.get(k, k), s)) def shift_rules(n): shifted = UPPER[n:] + UPPER[:n] + LOWER[n:] + LOWER[:n] return {k:v for k,v in zip(UPPER+LOWER, shifted)} Use a...
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)}
<commit_before>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, ...
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)}
import string UPPER = string.ascii_uppercase LOWER = string.ascii_lowercase def rotate(s, n): rules = shift_rules(n) return "".join(map(lambda k: rules.get(k, k), s)) def shift_rules(n): shifted = UPPER[n:] + UPPER[:n] + LOWER[n:] + LOWER[:n] return {k:v for k,v in zip(UPPER+LOWER, shifted)} Use a...
<commit_before>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, ...
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', ...
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', ...
Remove explicit OT dep; we get it via basictracer
Remove explicit OT dep; we get it via basictracer
Python
mit
lightstephq/lightstep-tracer-python
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', ...
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', ...
<commit_before>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', ...
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', ...
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', ...
<commit_before>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', ...
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): ...
#!/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): ...
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,Ra...
#!/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): ...
#!/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): ...
<commit_before>#!/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 my...
#!/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): ...
#!/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): ...
<commit_before>#!/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 my...
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", ...
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", ...
Fix issue - load README.md, not .rst
Fix issue - load README.md, not .rst
Python
mit
IOEra/borica
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", ...
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", ...
<commit_before>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 integratio...
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", ...
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", ...
<commit_before>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 integratio...
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, licens...
#!/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, licens...
Fix : MIT license + version update
Fix : MIT license + version update
Python
mit
oleiade/py-elevator
#!/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, licens...
#!/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, licens...
<commit_before>#!/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=vers...
#!/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, licens...
#!/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, licens...
<commit_before>#!/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=vers...
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", ...
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", ...
Bump version to release bugfixes
Bump version to release bugfixes
Python
mit
jbn/vaquero
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", ...
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", ...
<commit_before>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 Bj...
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", ...
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", ...
<commit_before>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 Bj...
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...
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.", classifie...
Rename ScraperWiki to Sensible Code in README
Rename ScraperWiki to Sensible Code in README
Python
bsd-2-clause
scraperwiki/data-services-helpers
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...
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.", classifie...
<commit_before>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=["Developm...
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.", classifie...
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...
<commit_before>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=["Developm...
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:/...
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="htt...
Use triple-quotes for long strings
Use triple-quotes for long strings
Python
isc
d0vs/bugspots
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:/...
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="htt...
<commit_before>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...
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="htt...
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:/...
<commit_before>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...
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', aut...
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', auth...
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
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', aut...
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', auth...
<commit_before>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...
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', auth...
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', aut...
<commit_before>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...
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 ...
#!/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 ...
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
#!/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 ...
#!/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 ...
<commit_before>#!/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'],...
#!/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 ...
#!/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 ...
<commit_before>#!/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'],...
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', ...
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', ...
Remove github link from 'install_requires'
Remove github link from 'install_requires'
Python
mit
happyleavesaoc/python-firetv
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', ...
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', ...
<commit_before>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@...
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', ...
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', ...
<commit_before>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@...
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 = '...
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.' EXT...
Update description to match readme
Update description to match readme
Python
mit
potatolondon/archivable,potatolondon/archivable
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 = '...
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.' EXT...
<commit_before>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')).re...
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.' EXT...
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 = '...
<commit_before>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')).re...
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", package...
#!/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", package...
Mark as supporting Python 3.7
Mark as supporting Python 3.7
Python
mit
srittau/python-htmlgen
#!/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", package...
#!/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", package...
<commit_before>#!/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-htmlge...
#!/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", package...
#!/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", package...
<commit_before>#!/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-htmlge...
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="jame...
#!/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="jame...
Update key map to add 192
Update key map to add 192
Python
mit
jnimmo/pyIntesisHome
#!/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="jame...
#!/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="jame...
<commit_before>#!/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", aut...
#!/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="jame...
#!/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="jame...
<commit_before>#!/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", aut...
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])....
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-quicks...
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
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])....
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-quicks...
<commit_before>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 (curre...
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-quicks...
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])....
<commit_before>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 (curre...
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@t...
# 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@t...
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
# 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@t...
# 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@t...
<commit_before># 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...
# 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@t...
# 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@t...
<commit_before># 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...
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', ...
#!/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', ...
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
#!/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', ...
#!/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', ...
<commit_before>#!/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=...
#!/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', ...
#!/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', ...
<commit_before>#!/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=...
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', ...
#!/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'...
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
#!/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', ...
#!/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'...
<commit_before>#!/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', ...
#!/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'...
#!/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', ...
<commit_before>#!/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', ...
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 ...
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 ...
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
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 ...
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 ...
<commit_before>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 ...
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 ...
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 ...
<commit_before>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 ...
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", "Program...
#!/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", "Program...
Add Python 3.7 to the classifiers
Add Python 3.7 to the classifiers
Python
bsd-3-clause
stochastic-technologies/shortuuid,skorokithakis/shortuuid
#!/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", "Program...
#!/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", "Program...
<commit_before>#!/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...
#!/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", "Program...
#!/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", "Program...
<commit_before>#!/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...
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 'D...
#!/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/St...
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
#!/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 'D...
#!/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/St...
<commit_before>#!/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 - Productio...
#!/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/St...
#!/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 'D...
<commit_before>#!/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 - Productio...
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=...
# 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, licens...
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
# 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=...
# 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, licens...
<commit_before># 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=Tru...
# 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, licens...
# 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=...
<commit_before># 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=Tru...
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, ...
# 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, ...
Add requests to dep list
Add requests to dep list
Python
apache-2.0
google/chatbase-python
# 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, ...
# 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, ...
<commit_before># 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 ...
# 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, ...
# 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, ...
<commit_before># 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 ...
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, 'requ...
""" 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_di...
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
""" 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, 'requ...
""" 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_di...
<commit_before>""" 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(...
""" 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_di...
""" 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, 'requ...
<commit_before>""" 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(...
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.c...
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.c...
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
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.c...
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.c...
<commit_before>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='h...
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.c...
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.c...
<commit_before>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='h...
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...
# 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...
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
# 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...
# 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...
<commit_before># 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", m...
# 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...
# 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...
<commit_before># 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", m...
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='pgconten...
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(...
Add long description for upload.
DEV: Add long description for upload.
Python
apache-2.0
quantopian/pgcontents
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='pgconten...
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(...
<commit_before>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( ...
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(...
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='pgconten...
<commit_before>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( ...
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 Espe...
'''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 Espe...
Correct pypi package; file naming was wrong.
Correct pypi package; file naming was wrong.
Python
mit
EspecNorthAmerica/ChamberConnectLibrary
'''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 Espe...
'''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 Espe...
<commit_before>'''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 interf...
'''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 Espe...
'''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 Espe...
<commit_before>'''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 interf...
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 ...
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 ...
Automate package discovery to include sub-packages
Setup: Automate package discovery to include sub-packages
Python
mit
OceanPARCELS/parcels,OceanPARCELS/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 ...
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 ...
<commit_before>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="Im...
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 ...
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 ...
<commit_before>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="Im...
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', versi...
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', versi...
Add .0 to version number.
Add .0 to version number.
Python
isc
pancentric/django-imgix
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', versi...
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', versi...
<commit_before>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-im...
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', versi...
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', versi...
<commit_before>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-im...
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', ...
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', ...
Upgrade Mako from 0.9.1 to 1.0
Upgrade Mako from 0.9.1 to 1.0
Python
mit
TangledWeb/tangled.mako
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', ...
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', ...
<commit_before>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='Wyat...
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', ...
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', ...
<commit_before>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='Wyat...
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 writi...
# 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 writi...
Set release version to 1.0
Set release version to 1.0
Python
apache-2.0
tellapart/commandr,tellapart/commandr
# 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 writi...
# 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 writi...
<commit_before># 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 agr...
# 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 writi...
# 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 writi...
<commit_before># 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 agr...
4283035101ec8423126c340423be74d73f9b4184
setup.py
setup.py
from distutils.core import setup setup( name = 'pybenchmark', packages = ['pybenchmark'], # this must be the same as the name above version = '0.0.3', description = 'A benchmark utility used in performance tests.', author = 'Eugene Duboviy', author_email = 'eugene.dubovoy@gmail.com', url = 'https://github...
from distutils.core import setup setup( name = 'pybenchmark', packages = ['pybenchmark'], # this must be the same as the name above version = '0.0.4', description = 'A benchmark utility used in performance tests.', author = 'Eugene Duboviy', author_email = 'eugene.dubovoy@gmail.com', url = 'https://github...
Add a new version to put repo on PyPI
Add a new version to put repo on PyPI
Python
mit
duboviy/pybenchmark
from distutils.core import setup setup( name = 'pybenchmark', packages = ['pybenchmark'], # this must be the same as the name above version = '0.0.3', description = 'A benchmark utility used in performance tests.', author = 'Eugene Duboviy', author_email = 'eugene.dubovoy@gmail.com', url = 'https://github...
from distutils.core import setup setup( name = 'pybenchmark', packages = ['pybenchmark'], # this must be the same as the name above version = '0.0.4', description = 'A benchmark utility used in performance tests.', author = 'Eugene Duboviy', author_email = 'eugene.dubovoy@gmail.com', url = 'https://github...
<commit_before>from distutils.core import setup setup( name = 'pybenchmark', packages = ['pybenchmark'], # this must be the same as the name above version = '0.0.3', description = 'A benchmark utility used in performance tests.', author = 'Eugene Duboviy', author_email = 'eugene.dubovoy@gmail.com', url = ...
from distutils.core import setup setup( name = 'pybenchmark', packages = ['pybenchmark'], # this must be the same as the name above version = '0.0.4', description = 'A benchmark utility used in performance tests.', author = 'Eugene Duboviy', author_email = 'eugene.dubovoy@gmail.com', url = 'https://github...
from distutils.core import setup setup( name = 'pybenchmark', packages = ['pybenchmark'], # this must be the same as the name above version = '0.0.3', description = 'A benchmark utility used in performance tests.', author = 'Eugene Duboviy', author_email = 'eugene.dubovoy@gmail.com', url = 'https://github...
<commit_before>from distutils.core import setup setup( name = 'pybenchmark', packages = ['pybenchmark'], # this must be the same as the name above version = '0.0.3', description = 'A benchmark utility used in performance tests.', author = 'Eugene Duboviy', author_email = 'eugene.dubovoy@gmail.com', url = ...
39e9b81fb2ebbe6da4b8056678834bb593205ccb
setup.py
setup.py
from setuptools import setup setup( name='crm114', version='2.0.2', author='Brian Cline', author_email='brian.cline@gmail.com', description=('Python wrapper classes for the CRM-114 Discriminator ' '(http://crm114.sourceforge.net/)'), license = 'MIT', keywords = 'crm114 tex...
from setuptools import setup VERSION = '2.0.2' VERSION_TAG = 'v%s' % VERSION README_URL = ('https://github.com/briancline/crm114-python' '/blob/%s/README.md' % VERSION_TAG) setup( name='crm114', version=VERSION, author='Brian Cline', author_email='brian.cline@gmail.com', description=...
Use globals for major bits of package data
Use globals for major bits of package data
Python
mit
briancline/crm114-python
from setuptools import setup setup( name='crm114', version='2.0.2', author='Brian Cline', author_email='brian.cline@gmail.com', description=('Python wrapper classes for the CRM-114 Discriminator ' '(http://crm114.sourceforge.net/)'), license = 'MIT', keywords = 'crm114 tex...
from setuptools import setup VERSION = '2.0.2' VERSION_TAG = 'v%s' % VERSION README_URL = ('https://github.com/briancline/crm114-python' '/blob/%s/README.md' % VERSION_TAG) setup( name='crm114', version=VERSION, author='Brian Cline', author_email='brian.cline@gmail.com', description=...
<commit_before>from setuptools import setup setup( name='crm114', version='2.0.2', author='Brian Cline', author_email='brian.cline@gmail.com', description=('Python wrapper classes for the CRM-114 Discriminator ' '(http://crm114.sourceforge.net/)'), license = 'MIT', keyword...
from setuptools import setup VERSION = '2.0.2' VERSION_TAG = 'v%s' % VERSION README_URL = ('https://github.com/briancline/crm114-python' '/blob/%s/README.md' % VERSION_TAG) setup( name='crm114', version=VERSION, author='Brian Cline', author_email='brian.cline@gmail.com', description=...
from setuptools import setup setup( name='crm114', version='2.0.2', author='Brian Cline', author_email='brian.cline@gmail.com', description=('Python wrapper classes for the CRM-114 Discriminator ' '(http://crm114.sourceforge.net/)'), license = 'MIT', keywords = 'crm114 tex...
<commit_before>from setuptools import setup setup( name='crm114', version='2.0.2', author='Brian Cline', author_email='brian.cline@gmail.com', description=('Python wrapper classes for the CRM-114 Discriminator ' '(http://crm114.sourceforge.net/)'), license = 'MIT', keyword...