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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4eca24ce59e9bffd0b8eb56ed75a16ccf9dfed89 | tensorflow_datasets/proto/__init__.py | tensorflow_datasets/proto/__init__.py | # coding=utf-8
# Copyright 2021 The TensorFlow Datasets Authors.
#
# 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 appl... | # coding=utf-8
# Copyright 2021 The TensorFlow Datasets Authors.
#
# 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 appl... | Fix waymo open dataset proto import. | Fix waymo open dataset proto import.
PiperOrigin-RevId: 355350302
| Python | apache-2.0 | tensorflow/datasets,tensorflow/datasets,tensorflow/datasets,tensorflow/datasets,tensorflow/datasets | # coding=utf-8
# Copyright 2021 The TensorFlow Datasets Authors.
#
# 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 appl... | # coding=utf-8
# Copyright 2021 The TensorFlow Datasets Authors.
#
# 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 appl... | <commit_before># coding=utf-8
# Copyright 2021 The TensorFlow Datasets Authors.
#
# 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 r... | # coding=utf-8
# Copyright 2021 The TensorFlow Datasets Authors.
#
# 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 appl... | # coding=utf-8
# Copyright 2021 The TensorFlow Datasets Authors.
#
# 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 appl... | <commit_before># coding=utf-8
# Copyright 2021 The TensorFlow Datasets Authors.
#
# 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 r... |
64f43c5b78d667054f288b382a98dc55710216de | units/calculation.py | units/calculation.py |
import operator
from pyparsing import Forward, Group, Literal, nums, Suppress, Word
expression_stack = []
def push_first(tokens):
expression_stack.append(tokens[0])
"""
atom :: '0'..'9'+ | '(' expression ')'
term :: atom [ ('*' | '/') atom ]*
expression :: term [ ('+' | '-') term ]*
"""
expression = F... |
import operator
from pyparsing import Forward, Group, Literal, nums, Suppress, Word
expression_stack = []
def push_first(tokens):
expression_stack.append(tokens[0])
"""
atom :: '0'..'9'+ | '(' expression ')'
term :: atom [ ('*' | '/') atom ]*
expression :: term [ ('+' | '-') term ]*
"""
expression = F... | Add type hint to calculate function | [Units] Add type hint to calculate function
| Python | mit | Harmon758/Harmonbot,Harmon758/Harmonbot |
import operator
from pyparsing import Forward, Group, Literal, nums, Suppress, Word
expression_stack = []
def push_first(tokens):
expression_stack.append(tokens[0])
"""
atom :: '0'..'9'+ | '(' expression ')'
term :: atom [ ('*' | '/') atom ]*
expression :: term [ ('+' | '-') term ]*
"""
expression = F... |
import operator
from pyparsing import Forward, Group, Literal, nums, Suppress, Word
expression_stack = []
def push_first(tokens):
expression_stack.append(tokens[0])
"""
atom :: '0'..'9'+ | '(' expression ')'
term :: atom [ ('*' | '/') atom ]*
expression :: term [ ('+' | '-') term ]*
"""
expression = F... | <commit_before>
import operator
from pyparsing import Forward, Group, Literal, nums, Suppress, Word
expression_stack = []
def push_first(tokens):
expression_stack.append(tokens[0])
"""
atom :: '0'..'9'+ | '(' expression ')'
term :: atom [ ('*' | '/') atom ]*
expression :: term [ ('+' | '-') term ]*
"""... |
import operator
from pyparsing import Forward, Group, Literal, nums, Suppress, Word
expression_stack = []
def push_first(tokens):
expression_stack.append(tokens[0])
"""
atom :: '0'..'9'+ | '(' expression ')'
term :: atom [ ('*' | '/') atom ]*
expression :: term [ ('+' | '-') term ]*
"""
expression = F... |
import operator
from pyparsing import Forward, Group, Literal, nums, Suppress, Word
expression_stack = []
def push_first(tokens):
expression_stack.append(tokens[0])
"""
atom :: '0'..'9'+ | '(' expression ')'
term :: atom [ ('*' | '/') atom ]*
expression :: term [ ('+' | '-') term ]*
"""
expression = F... | <commit_before>
import operator
from pyparsing import Forward, Group, Literal, nums, Suppress, Word
expression_stack = []
def push_first(tokens):
expression_stack.append(tokens[0])
"""
atom :: '0'..'9'+ | '(' expression ')'
term :: atom [ ('*' | '/') atom ]*
expression :: term [ ('+' | '-') term ]*
"""... |
121c886dfe02ed8cd71075a03e268d51bcb137fc | institutions/respondants/search_indexes.py | institutions/respondants/search_indexes.py | from haystack import indexes
from respondants.models import Institution
class InstitutionIndex(indexes.SearchIndex, indexes.Indexable):
"""Search Index associated with an institution. Allows for searching by
name or lender id"""
text = indexes.CharField(document=True, model_attr='name')
text_auto = i... | from haystack import indexes
from respondants.models import Institution
class InstitutionIndex(indexes.SearchIndex, indexes.Indexable):
"""Search Index associated with an institution. Allows for searching by
name or lender id"""
text = indexes.CharField(document=True, model_attr='name')
text_auto = i... | Revert "adding 2013 to search query" | Revert "adding 2013 to search query"
| Python | cc0-1.0 | mehtadev17/mapusaurus,mehtadev17/mapusaurus,mehtadev17/mapusaurus | from haystack import indexes
from respondants.models import Institution
class InstitutionIndex(indexes.SearchIndex, indexes.Indexable):
"""Search Index associated with an institution. Allows for searching by
name or lender id"""
text = indexes.CharField(document=True, model_attr='name')
text_auto = i... | from haystack import indexes
from respondants.models import Institution
class InstitutionIndex(indexes.SearchIndex, indexes.Indexable):
"""Search Index associated with an institution. Allows for searching by
name or lender id"""
text = indexes.CharField(document=True, model_attr='name')
text_auto = i... | <commit_before>from haystack import indexes
from respondants.models import Institution
class InstitutionIndex(indexes.SearchIndex, indexes.Indexable):
"""Search Index associated with an institution. Allows for searching by
name or lender id"""
text = indexes.CharField(document=True, model_attr='name')
... | from haystack import indexes
from respondants.models import Institution
class InstitutionIndex(indexes.SearchIndex, indexes.Indexable):
"""Search Index associated with an institution. Allows for searching by
name or lender id"""
text = indexes.CharField(document=True, model_attr='name')
text_auto = i... | from haystack import indexes
from respondants.models import Institution
class InstitutionIndex(indexes.SearchIndex, indexes.Indexable):
"""Search Index associated with an institution. Allows for searching by
name or lender id"""
text = indexes.CharField(document=True, model_attr='name')
text_auto = i... | <commit_before>from haystack import indexes
from respondants.models import Institution
class InstitutionIndex(indexes.SearchIndex, indexes.Indexable):
"""Search Index associated with an institution. Allows for searching by
name or lender id"""
text = indexes.CharField(document=True, model_attr='name')
... |
09f429e76a7b2cd49ea66b70d314bb4510971a5f | gui.py | gui.py | import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk
class MainWindow(Gtk.Window):
def __init__(self):
Gtk.Window.__init__(self, title="")
win = MainWindow()
win.connect("delete-event", Gtk.main_quit)
win.show_all()
Gtk.main()
| import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk
class MainWindow(Gtk.Window):
def __init__(self):
Gtk.Window.__init__(self, title="Text Playing Game")
self.set_border_width(10)
self.set_size_request(500, 400)
win = MainWindow()
win.connect("delete-event", Gtk.ma... | Set GUI title and size | Set GUI title
and size
| Python | mit | Giovanni21M/Text-Playing-Game | import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk
class MainWindow(Gtk.Window):
def __init__(self):
Gtk.Window.__init__(self, title="")
win = MainWindow()
win.connect("delete-event", Gtk.main_quit)
win.show_all()
Gtk.main()
Set GUI title
and size | import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk
class MainWindow(Gtk.Window):
def __init__(self):
Gtk.Window.__init__(self, title="Text Playing Game")
self.set_border_width(10)
self.set_size_request(500, 400)
win = MainWindow()
win.connect("delete-event", Gtk.ma... | <commit_before>import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk
class MainWindow(Gtk.Window):
def __init__(self):
Gtk.Window.__init__(self, title="")
win = MainWindow()
win.connect("delete-event", Gtk.main_quit)
win.show_all()
Gtk.main()
<commit_msg>Set GUI title
and size<commit... | import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk
class MainWindow(Gtk.Window):
def __init__(self):
Gtk.Window.__init__(self, title="Text Playing Game")
self.set_border_width(10)
self.set_size_request(500, 400)
win = MainWindow()
win.connect("delete-event", Gtk.ma... | import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk
class MainWindow(Gtk.Window):
def __init__(self):
Gtk.Window.__init__(self, title="")
win = MainWindow()
win.connect("delete-event", Gtk.main_quit)
win.show_all()
Gtk.main()
Set GUI title
and sizeimport gi
gi.require_version('Gtk'... | <commit_before>import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk
class MainWindow(Gtk.Window):
def __init__(self):
Gtk.Window.__init__(self, title="")
win = MainWindow()
win.connect("delete-event", Gtk.main_quit)
win.show_all()
Gtk.main()
<commit_msg>Set GUI title
and size<commit... |
e1d2dcf05d4f22168a567d6460bba467ccb0e28c | bbb/adc.py | bbb/adc.py | """ Access ADCs vias SysFS interface """
import glob
class adc(object):
def __init__(self, num):
self.num = num
# need to read a glob here, since numbering is not consistent
# TODO: verify num is reasonable (0-6)
self.sysfs = glob.glob('/sys/devices/ocp.*/helper.*/AIN' + str(num))[0]
def __str__... | """ Access ADCs vias SysFS interface """
import glob
class adc(object):
def __init__(self, num, repeat=8):
self.num = num
# need to read a glob here, since numbering is not consistent
# TODO: verify num is reasonable (0-6)
self.sysfs = glob.glob('/sys/devices/ocp.*/helper.*/AIN' + str(num))[0]
... | Add parameter to specificy ADC read repeats | Add parameter to specificy ADC read repeats
| Python | mit | IEEERobotics/pybbb,jschornick/pybbb | """ Access ADCs vias SysFS interface """
import glob
class adc(object):
def __init__(self, num):
self.num = num
# need to read a glob here, since numbering is not consistent
# TODO: verify num is reasonable (0-6)
self.sysfs = glob.glob('/sys/devices/ocp.*/helper.*/AIN' + str(num))[0]
def __str__... | """ Access ADCs vias SysFS interface """
import glob
class adc(object):
def __init__(self, num, repeat=8):
self.num = num
# need to read a glob here, since numbering is not consistent
# TODO: verify num is reasonable (0-6)
self.sysfs = glob.glob('/sys/devices/ocp.*/helper.*/AIN' + str(num))[0]
... | <commit_before>""" Access ADCs vias SysFS interface """
import glob
class adc(object):
def __init__(self, num):
self.num = num
# need to read a glob here, since numbering is not consistent
# TODO: verify num is reasonable (0-6)
self.sysfs = glob.glob('/sys/devices/ocp.*/helper.*/AIN' + str(num))[0]... | """ Access ADCs vias SysFS interface """
import glob
class adc(object):
def __init__(self, num, repeat=8):
self.num = num
# need to read a glob here, since numbering is not consistent
# TODO: verify num is reasonable (0-6)
self.sysfs = glob.glob('/sys/devices/ocp.*/helper.*/AIN' + str(num))[0]
... | """ Access ADCs vias SysFS interface """
import glob
class adc(object):
def __init__(self, num):
self.num = num
# need to read a glob here, since numbering is not consistent
# TODO: verify num is reasonable (0-6)
self.sysfs = glob.glob('/sys/devices/ocp.*/helper.*/AIN' + str(num))[0]
def __str__... | <commit_before>""" Access ADCs vias SysFS interface """
import glob
class adc(object):
def __init__(self, num):
self.num = num
# need to read a glob here, since numbering is not consistent
# TODO: verify num is reasonable (0-6)
self.sysfs = glob.glob('/sys/devices/ocp.*/helper.*/AIN' + str(num))[0]... |
f08997e6395c268d47acc39f1a53bf9365dcb94f | noxfile.py | noxfile.py | """Automation using nox.
"""
import nox
nox.options.sessions = ["dev"]
nox.options.reuse_existing_virtualenvs = True
nox.options.error_on_external_run = True
@nox.session(python="3.5")
def dev(session):
session.install("-r", "requirements.txt")
session.run("python", "manage.py", *session.posargs)
@nox.se... | """Automation using nox.
"""
import nox
nox.options.sessions = ["dev"]
nox.options.reuse_existing_virtualenvs = True
nox.options.error_on_external_run = True
@nox.session(python="3.5")
def dev(session):
session.install("-r", "requirements.txt")
session.run("python", "manage.py", *session.posargs)
@nox.se... | Add Python 2.7 to nox test environment | test: Add Python 2.7 to nox test environment
It is needed for sanity checking the code against the current
deployment environment.
Signed-off-by: Nabarun Pal <[email protected]>
| Python | mit | pythonindia/junction,pythonindia/junction,pythonindia/junction,pythonindia/junction | """Automation using nox.
"""
import nox
nox.options.sessions = ["dev"]
nox.options.reuse_existing_virtualenvs = True
nox.options.error_on_external_run = True
@nox.session(python="3.5")
def dev(session):
session.install("-r", "requirements.txt")
session.run("python", "manage.py", *session.posargs)
@nox.se... | """Automation using nox.
"""
import nox
nox.options.sessions = ["dev"]
nox.options.reuse_existing_virtualenvs = True
nox.options.error_on_external_run = True
@nox.session(python="3.5")
def dev(session):
session.install("-r", "requirements.txt")
session.run("python", "manage.py", *session.posargs)
@nox.se... | <commit_before>"""Automation using nox.
"""
import nox
nox.options.sessions = ["dev"]
nox.options.reuse_existing_virtualenvs = True
nox.options.error_on_external_run = True
@nox.session(python="3.5")
def dev(session):
session.install("-r", "requirements.txt")
session.run("python", "manage.py", *session.pos... | """Automation using nox.
"""
import nox
nox.options.sessions = ["dev"]
nox.options.reuse_existing_virtualenvs = True
nox.options.error_on_external_run = True
@nox.session(python="3.5")
def dev(session):
session.install("-r", "requirements.txt")
session.run("python", "manage.py", *session.posargs)
@nox.se... | """Automation using nox.
"""
import nox
nox.options.sessions = ["dev"]
nox.options.reuse_existing_virtualenvs = True
nox.options.error_on_external_run = True
@nox.session(python="3.5")
def dev(session):
session.install("-r", "requirements.txt")
session.run("python", "manage.py", *session.posargs)
@nox.se... | <commit_before>"""Automation using nox.
"""
import nox
nox.options.sessions = ["dev"]
nox.options.reuse_existing_virtualenvs = True
nox.options.error_on_external_run = True
@nox.session(python="3.5")
def dev(session):
session.install("-r", "requirements.txt")
session.run("python", "manage.py", *session.pos... |
c1e5c98995898148396d5a3d19cd6f390aa681de | is_irred.py | is_irred.py | # tests to determine whether a polynomial is irreducible over a finite field
import numpy
def eisenstein(poly, p):
"""
returns true if poly is irreducible by Eisenstein's sufficient condition:
p is prime
p does not divide the leading coefficient
p divides every other coefficient
p squared doe... | # tests to determine whether a polynomial is irreducible over Q[x]
from fractions import Fraction
import numpy
def is_prime(num):
"""
return True if num is a prime
:param num: int
:return: Bool
"""
return True
def rational_root(poly):
"""
rational root test
:param poly: numpy.po... | Add rational root test stub | Add rational root test stub
| Python | mit | richardmillson/galois | # tests to determine whether a polynomial is irreducible over a finite field
import numpy
def eisenstein(poly, p):
"""
returns true if poly is irreducible by Eisenstein's sufficient condition:
p is prime
p does not divide the leading coefficient
p divides every other coefficient
p squared doe... | # tests to determine whether a polynomial is irreducible over Q[x]
from fractions import Fraction
import numpy
def is_prime(num):
"""
return True if num is a prime
:param num: int
:return: Bool
"""
return True
def rational_root(poly):
"""
rational root test
:param poly: numpy.po... | <commit_before># tests to determine whether a polynomial is irreducible over a finite field
import numpy
def eisenstein(poly, p):
"""
returns true if poly is irreducible by Eisenstein's sufficient condition:
p is prime
p does not divide the leading coefficient
p divides every other coefficient
... | # tests to determine whether a polynomial is irreducible over Q[x]
from fractions import Fraction
import numpy
def is_prime(num):
"""
return True if num is a prime
:param num: int
:return: Bool
"""
return True
def rational_root(poly):
"""
rational root test
:param poly: numpy.po... | # tests to determine whether a polynomial is irreducible over a finite field
import numpy
def eisenstein(poly, p):
"""
returns true if poly is irreducible by Eisenstein's sufficient condition:
p is prime
p does not divide the leading coefficient
p divides every other coefficient
p squared doe... | <commit_before># tests to determine whether a polynomial is irreducible over a finite field
import numpy
def eisenstein(poly, p):
"""
returns true if poly is irreducible by Eisenstein's sufficient condition:
p is prime
p does not divide the leading coefficient
p divides every other coefficient
... |
26bd5e00cf30446860438cc5796ec348aecf7e2b | product_configurator/models/stock.py | product_configurator/models/stock.py | # -*- coding: utf-8 -*-
from odoo import models, fields
class StockMove(models.Model):
_inherit = 'stock.move'
product_id = fields.Many2one(domain=[('config_ok', '=', False)])
| # -*- coding: utf-8 -*-
from ast import literal_eval
from odoo import models, fields
class StockMove(models.Model):
_inherit = 'stock.move'
def _get_product_domain(self):
if literal_eval(self.env['ir.config_parameter'].sudo().get_param('product_configurator.product_selectable', default='False')):
... | Put configurable product in Picking list | Put configurable product in Picking list
| Python | agpl-3.0 | microcom/odoo-product-configurator,microcom/odoo-product-configurator,microcom/odoo-product-configurator | # -*- coding: utf-8 -*-
from odoo import models, fields
class StockMove(models.Model):
_inherit = 'stock.move'
product_id = fields.Many2one(domain=[('config_ok', '=', False)])
Put configurable product in Picking list | # -*- coding: utf-8 -*-
from ast import literal_eval
from odoo import models, fields
class StockMove(models.Model):
_inherit = 'stock.move'
def _get_product_domain(self):
if literal_eval(self.env['ir.config_parameter'].sudo().get_param('product_configurator.product_selectable', default='False')):
... | <commit_before># -*- coding: utf-8 -*-
from odoo import models, fields
class StockMove(models.Model):
_inherit = 'stock.move'
product_id = fields.Many2one(domain=[('config_ok', '=', False)])
<commit_msg>Put configurable product in Picking list<commit_after> | # -*- coding: utf-8 -*-
from ast import literal_eval
from odoo import models, fields
class StockMove(models.Model):
_inherit = 'stock.move'
def _get_product_domain(self):
if literal_eval(self.env['ir.config_parameter'].sudo().get_param('product_configurator.product_selectable', default='False')):
... | # -*- coding: utf-8 -*-
from odoo import models, fields
class StockMove(models.Model):
_inherit = 'stock.move'
product_id = fields.Many2one(domain=[('config_ok', '=', False)])
Put configurable product in Picking list# -*- coding: utf-8 -*-
from ast import literal_eval
from odoo import models, fields
clas... | <commit_before># -*- coding: utf-8 -*-
from odoo import models, fields
class StockMove(models.Model):
_inherit = 'stock.move'
product_id = fields.Many2one(domain=[('config_ok', '=', False)])
<commit_msg>Put configurable product in Picking list<commit_after># -*- coding: utf-8 -*-
from ast import literal_ev... |
453e95de00317329234a600f33613d4aecd8254d | enocean/consolelogger.py | enocean/consolelogger.py | # -*- encoding: utf-8 -*-
from __future__ import print_function, unicode_literals, division
import logging
def init_logging(level=logging.DEBUG,logsize=1024,logcount=5):
formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
logger = logging.getLogger('enocean')
logger.setL... | # -*- encoding: utf-8 -*-
from __future__ import print_function, unicode_literals, division
import logging
def init_logging(level=logging.DEBUG, log_to_file=False, logsize=1024, logcount=5):
formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
logger = logging.getLogger('enoc... | Make logging to file optional, PEP8-fixes. | Make logging to file optional, PEP8-fixes.
| Python | mit | Ethal/enocean,kipe/enocean,kipe/enocean,Ethal/enocean | # -*- encoding: utf-8 -*-
from __future__ import print_function, unicode_literals, division
import logging
def init_logging(level=logging.DEBUG,logsize=1024,logcount=5):
formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
logger = logging.getLogger('enocean')
logger.setL... | # -*- encoding: utf-8 -*-
from __future__ import print_function, unicode_literals, division
import logging
def init_logging(level=logging.DEBUG, log_to_file=False, logsize=1024, logcount=5):
formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
logger = logging.getLogger('enoc... | <commit_before># -*- encoding: utf-8 -*-
from __future__ import print_function, unicode_literals, division
import logging
def init_logging(level=logging.DEBUG,logsize=1024,logcount=5):
formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
logger = logging.getLogger('enocean')
... | # -*- encoding: utf-8 -*-
from __future__ import print_function, unicode_literals, division
import logging
def init_logging(level=logging.DEBUG, log_to_file=False, logsize=1024, logcount=5):
formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
logger = logging.getLogger('enoc... | # -*- encoding: utf-8 -*-
from __future__ import print_function, unicode_literals, division
import logging
def init_logging(level=logging.DEBUG,logsize=1024,logcount=5):
formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
logger = logging.getLogger('enocean')
logger.setL... | <commit_before># -*- encoding: utf-8 -*-
from __future__ import print_function, unicode_literals, division
import logging
def init_logging(level=logging.DEBUG,logsize=1024,logcount=5):
formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
logger = logging.getLogger('enocean')
... |
6c143fd230aa37d6cb3f7a023b97cc32fc3b9369 | yunity/models/entities.py | yunity/models/entities.py | from django.db.models import TextField, ForeignKey, FloatField, DateTimeField, ManyToManyField
from yunity.models.utils import BaseModel, MaxLengthCharField
class Versionable(BaseModel):
pass
class Metadata(BaseModel):
key = MaxLengthCharField()
value = TextField()
class Category(BaseModel):
name ... | from django.db.models import TextField, ForeignKey, FloatField, DateTimeField, ManyToManyField
from yunity.models.utils import BaseModel, MaxLengthCharField
class Versionable(BaseModel):
pass
class Metadata(BaseModel):
key = MaxLengthCharField()
value = TextField()
class Category(BaseModel):
name ... | Revert "Remove some trailing whitespace" | Revert "Remove some trailing whitespace"
This reverts commit bb4dc625bb0e2317ca15528f517a2d56a91ab32d.
| Python | agpl-3.0 | yunity/yunity-core,yunity/foodsaving-backend,yunity/foodsaving-backend,yunity/foodsaving-backend,yunity/yunity-core | from django.db.models import TextField, ForeignKey, FloatField, DateTimeField, ManyToManyField
from yunity.models.utils import BaseModel, MaxLengthCharField
class Versionable(BaseModel):
pass
class Metadata(BaseModel):
key = MaxLengthCharField()
value = TextField()
class Category(BaseModel):
name ... | from django.db.models import TextField, ForeignKey, FloatField, DateTimeField, ManyToManyField
from yunity.models.utils import BaseModel, MaxLengthCharField
class Versionable(BaseModel):
pass
class Metadata(BaseModel):
key = MaxLengthCharField()
value = TextField()
class Category(BaseModel):
name ... | <commit_before>from django.db.models import TextField, ForeignKey, FloatField, DateTimeField, ManyToManyField
from yunity.models.utils import BaseModel, MaxLengthCharField
class Versionable(BaseModel):
pass
class Metadata(BaseModel):
key = MaxLengthCharField()
value = TextField()
class Category(BaseMo... | from django.db.models import TextField, ForeignKey, FloatField, DateTimeField, ManyToManyField
from yunity.models.utils import BaseModel, MaxLengthCharField
class Versionable(BaseModel):
pass
class Metadata(BaseModel):
key = MaxLengthCharField()
value = TextField()
class Category(BaseModel):
name ... | from django.db.models import TextField, ForeignKey, FloatField, DateTimeField, ManyToManyField
from yunity.models.utils import BaseModel, MaxLengthCharField
class Versionable(BaseModel):
pass
class Metadata(BaseModel):
key = MaxLengthCharField()
value = TextField()
class Category(BaseModel):
name ... | <commit_before>from django.db.models import TextField, ForeignKey, FloatField, DateTimeField, ManyToManyField
from yunity.models.utils import BaseModel, MaxLengthCharField
class Versionable(BaseModel):
pass
class Metadata(BaseModel):
key = MaxLengthCharField()
value = TextField()
class Category(BaseMo... |
311989f227278ce9d433ab2852b50ffcdee188d6 | npc.py | npc.py | #!/usr/bin/env python3.5
import npc
import sys
if __name__ == '__main__':
npc.cli(sys.argv[1:])
| #!/usr/bin/env python3.5
"""
Executable entry point for the NPC CLI interface.
"""
import sys
import npc
if __name__ == '__main__':
npc.cli(sys.argv[1:])
| Add module docstring and reorder imports | Add module docstring and reorder imports
| Python | mit | aurule/npc,aurule/npc | #!/usr/bin/env python3.5
import npc
import sys
if __name__ == '__main__':
npc.cli(sys.argv[1:])
Add module docstring and reorder imports | #!/usr/bin/env python3.5
"""
Executable entry point for the NPC CLI interface.
"""
import sys
import npc
if __name__ == '__main__':
npc.cli(sys.argv[1:])
| <commit_before>#!/usr/bin/env python3.5
import npc
import sys
if __name__ == '__main__':
npc.cli(sys.argv[1:])
<commit_msg>Add module docstring and reorder imports<commit_after> | #!/usr/bin/env python3.5
"""
Executable entry point for the NPC CLI interface.
"""
import sys
import npc
if __name__ == '__main__':
npc.cli(sys.argv[1:])
| #!/usr/bin/env python3.5
import npc
import sys
if __name__ == '__main__':
npc.cli(sys.argv[1:])
Add module docstring and reorder imports#!/usr/bin/env python3.5
"""
Executable entry point for the NPC CLI interface.
"""
import sys
import npc
if __name__ == '__main__':
npc.cli(sys.argv[1:])
| <commit_before>#!/usr/bin/env python3.5
import npc
import sys
if __name__ == '__main__':
npc.cli(sys.argv[1:])
<commit_msg>Add module docstring and reorder imports<commit_after>#!/usr/bin/env python3.5
"""
Executable entry point for the NPC CLI interface.
"""
import sys
import npc
if __name__ == '__main__':
... |
9825d76b6bff7e04d1e277539ece6bda928b648b | wtl/wtlib/forms.py | wtl/wtlib/forms.py | from django import forms
from wtl.wtgithub.worker import GithubWorker
class AnalyzeForm(forms.Form):
git_url = forms.CharField()
def analyze(self):
worker = GithubWorker()
self.repository, self.project = worker.analyze_repo(self.cleaned_data['git_url'])
return self.repository, self.p... | from django import forms
from django.forms.util import ErrorList
from django.utils.translation import ugettext_lazy as _
from github import UnknownObjectException
from wtl.wtgithub.worker import GithubWorker
class AnalyzeForm(forms.Form):
git_url = forms.CharField()
def analyze(self):
if 'git_url' n... | Validate repo exists in `AnalyzeForm` | Validate repo exists in `AnalyzeForm`
| Python | mit | elegion/djangodash2013,elegion/djangodash2013 | from django import forms
from wtl.wtgithub.worker import GithubWorker
class AnalyzeForm(forms.Form):
git_url = forms.CharField()
def analyze(self):
worker = GithubWorker()
self.repository, self.project = worker.analyze_repo(self.cleaned_data['git_url'])
return self.repository, self.p... | from django import forms
from django.forms.util import ErrorList
from django.utils.translation import ugettext_lazy as _
from github import UnknownObjectException
from wtl.wtgithub.worker import GithubWorker
class AnalyzeForm(forms.Form):
git_url = forms.CharField()
def analyze(self):
if 'git_url' n... | <commit_before>from django import forms
from wtl.wtgithub.worker import GithubWorker
class AnalyzeForm(forms.Form):
git_url = forms.CharField()
def analyze(self):
worker = GithubWorker()
self.repository, self.project = worker.analyze_repo(self.cleaned_data['git_url'])
return self.rep... | from django import forms
from django.forms.util import ErrorList
from django.utils.translation import ugettext_lazy as _
from github import UnknownObjectException
from wtl.wtgithub.worker import GithubWorker
class AnalyzeForm(forms.Form):
git_url = forms.CharField()
def analyze(self):
if 'git_url' n... | from django import forms
from wtl.wtgithub.worker import GithubWorker
class AnalyzeForm(forms.Form):
git_url = forms.CharField()
def analyze(self):
worker = GithubWorker()
self.repository, self.project = worker.analyze_repo(self.cleaned_data['git_url'])
return self.repository, self.p... | <commit_before>from django import forms
from wtl.wtgithub.worker import GithubWorker
class AnalyzeForm(forms.Form):
git_url = forms.CharField()
def analyze(self):
worker = GithubWorker()
self.repository, self.project = worker.analyze_repo(self.cleaned_data['git_url'])
return self.rep... |
8132a4320425045b3642fa6a1d1343d1a4aa6463 | tests/testinfra/test_installation.py | tests/testinfra/test_installation.py | """
Role tests
"""
import pytest
# To run all the tests on given docker images:
pytestmark = pytest.mark.docker_images(
'infopen/ubuntu-trusty-ssh:0.1.0',
'infopen/ubuntu-xenial-ssh-py27:0.2.0'
)
def test_packages(SystemInfo, Package):
assert Package('ntp').is_installed
| """
Role tests
"""
import pytest
# To run all the tests on given docker images:
pytestmark = pytest.mark.docker_images(
'infopen/ubuntu-trusty-ssh:0.1.0',
'infopen/ubuntu-xenial-ssh-py27:develop'
)
def test_packages(SystemInfo, Package):
assert Package('ntp').is_installed
| Add Updated docker image with iproute2 package | Add Updated docker image with iproute2 package
| Python | mit | infOpen/ansible-role-ntp | """
Role tests
"""
import pytest
# To run all the tests on given docker images:
pytestmark = pytest.mark.docker_images(
'infopen/ubuntu-trusty-ssh:0.1.0',
'infopen/ubuntu-xenial-ssh-py27:0.2.0'
)
def test_packages(SystemInfo, Package):
assert Package('ntp').is_installed
Add Updated docker image with ipr... | """
Role tests
"""
import pytest
# To run all the tests on given docker images:
pytestmark = pytest.mark.docker_images(
'infopen/ubuntu-trusty-ssh:0.1.0',
'infopen/ubuntu-xenial-ssh-py27:develop'
)
def test_packages(SystemInfo, Package):
assert Package('ntp').is_installed
| <commit_before>"""
Role tests
"""
import pytest
# To run all the tests on given docker images:
pytestmark = pytest.mark.docker_images(
'infopen/ubuntu-trusty-ssh:0.1.0',
'infopen/ubuntu-xenial-ssh-py27:0.2.0'
)
def test_packages(SystemInfo, Package):
assert Package('ntp').is_installed
<commit_msg>Add Up... | """
Role tests
"""
import pytest
# To run all the tests on given docker images:
pytestmark = pytest.mark.docker_images(
'infopen/ubuntu-trusty-ssh:0.1.0',
'infopen/ubuntu-xenial-ssh-py27:develop'
)
def test_packages(SystemInfo, Package):
assert Package('ntp').is_installed
| """
Role tests
"""
import pytest
# To run all the tests on given docker images:
pytestmark = pytest.mark.docker_images(
'infopen/ubuntu-trusty-ssh:0.1.0',
'infopen/ubuntu-xenial-ssh-py27:0.2.0'
)
def test_packages(SystemInfo, Package):
assert Package('ntp').is_installed
Add Updated docker image with ipr... | <commit_before>"""
Role tests
"""
import pytest
# To run all the tests on given docker images:
pytestmark = pytest.mark.docker_images(
'infopen/ubuntu-trusty-ssh:0.1.0',
'infopen/ubuntu-xenial-ssh-py27:0.2.0'
)
def test_packages(SystemInfo, Package):
assert Package('ntp').is_installed
<commit_msg>Add Up... |
43135538ac08a6a64ae8da935e188224999a1a16 | indy_node/server/validator_info_tool.py | indy_node/server/validator_info_tool.py | import importlib
from indy_node.__metadata__ import __version__ as node_pgk_version
from plenum.server.validator_info_tool import none_on_fail, \
ValidatorNodeInfoTool as PlenumValidatorNodeInfoTool
class ValidatorNodeInfoTool(PlenumValidatorNodeInfoTool):
@property
def info(self):
info = super(... | import importlib
from indy_node.__metadata__ import __version__ as node_pgk_version
from plenum.server.validator_info_tool import none_on_fail, \
ValidatorNodeInfoTool as PlenumValidatorNodeInfoTool
class ValidatorNodeInfoTool(PlenumValidatorNodeInfoTool):
@property
def info(self):
info = super(... | Add new dict format into node validator-info | [INDY-1175] Add new dict format into node validator-info
Signed-off-by: Andrew Nikitin <[email protected]>
| Python | apache-2.0 | spivachuk/sovrin-node,spivachuk/sovrin-node,spivachuk/sovrin-node,spivachuk/sovrin-node | import importlib
from indy_node.__metadata__ import __version__ as node_pgk_version
from plenum.server.validator_info_tool import none_on_fail, \
ValidatorNodeInfoTool as PlenumValidatorNodeInfoTool
class ValidatorNodeInfoTool(PlenumValidatorNodeInfoTool):
@property
def info(self):
info = super(... | import importlib
from indy_node.__metadata__ import __version__ as node_pgk_version
from plenum.server.validator_info_tool import none_on_fail, \
ValidatorNodeInfoTool as PlenumValidatorNodeInfoTool
class ValidatorNodeInfoTool(PlenumValidatorNodeInfoTool):
@property
def info(self):
info = super(... | <commit_before>import importlib
from indy_node.__metadata__ import __version__ as node_pgk_version
from plenum.server.validator_info_tool import none_on_fail, \
ValidatorNodeInfoTool as PlenumValidatorNodeInfoTool
class ValidatorNodeInfoTool(PlenumValidatorNodeInfoTool):
@property
def info(self):
... | import importlib
from indy_node.__metadata__ import __version__ as node_pgk_version
from plenum.server.validator_info_tool import none_on_fail, \
ValidatorNodeInfoTool as PlenumValidatorNodeInfoTool
class ValidatorNodeInfoTool(PlenumValidatorNodeInfoTool):
@property
def info(self):
info = super(... | import importlib
from indy_node.__metadata__ import __version__ as node_pgk_version
from plenum.server.validator_info_tool import none_on_fail, \
ValidatorNodeInfoTool as PlenumValidatorNodeInfoTool
class ValidatorNodeInfoTool(PlenumValidatorNodeInfoTool):
@property
def info(self):
info = super(... | <commit_before>import importlib
from indy_node.__metadata__ import __version__ as node_pgk_version
from plenum.server.validator_info_tool import none_on_fail, \
ValidatorNodeInfoTool as PlenumValidatorNodeInfoTool
class ValidatorNodeInfoTool(PlenumValidatorNodeInfoTool):
@property
def info(self):
... |
5b9024ea424abe6494f6e26f72f7838c189eea3c | kuryr/common/exceptions.py | kuryr/common/exceptions.py | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | Modify KuryrException extend Exception appropriately | Modify KuryrException extend Exception appropriately
This patch modifies KuryrException call the initializer of the super
class. This fixes Kuryr not to return the empty error response.
Change-Id: I728a24df6f20a81090c98aac46be22f3d27cd884
Signed-off-by: Taku Fukushima <[email protected]... | Python | apache-2.0 | midonet/kuryr,celebdor/kuryr-libnetwork,celebdor/kuryr,celebdor/kuryr-libnetwork,celebdor/kuryr,openstack/kuryr,openstack/kuryr,midonet/kuryr,celebdor/kuryr-libnetwork,midonet/kuryr | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | <commit_before># Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# dist... | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | <commit_before># Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# dist... |
ea287349360f6102369df3bdc8efb64a684a95ca | program/templatetags/timeslots.py | program/templatetags/timeslots.py | from django import template
from datetime import datetime, time, timedelta
register = template.Library()
@register.simple_tag
def height(start, end):
if start.year == 2020 and int(start.strftime('%V')) >= 5 and start.hour == 12 and start.minute == 0:
return '30'
else:
return '%d' % ((end - s... | from django import template
from datetime import datetime, time, timedelta
register = template.Library()
@register.simple_tag
def height(start, end):
if start.year == 2020 and int(start.strftime('%V')) >= 5 and start.hour == 12 and start.minute == 0:
if end.minute == 5:
return '30'
r... | Add exception to to return extended height of the show | Add exception to to return extended height of the show
| Python | unknown | radio-helsinki-graz/pv,radio-helsinki-graz/pv,nnrcschmdt/helsinki,radio-helsinki-graz/pv,nnrcschmdt/helsinki,nnrcschmdt/helsinki | from django import template
from datetime import datetime, time, timedelta
register = template.Library()
@register.simple_tag
def height(start, end):
if start.year == 2020 and int(start.strftime('%V')) >= 5 and start.hour == 12 and start.minute == 0:
return '30'
else:
return '%d' % ((end - s... | from django import template
from datetime import datetime, time, timedelta
register = template.Library()
@register.simple_tag
def height(start, end):
if start.year == 2020 and int(start.strftime('%V')) >= 5 and start.hour == 12 and start.minute == 0:
if end.minute == 5:
return '30'
r... | <commit_before>from django import template
from datetime import datetime, time, timedelta
register = template.Library()
@register.simple_tag
def height(start, end):
if start.year == 2020 and int(start.strftime('%V')) >= 5 and start.hour == 12 and start.minute == 0:
return '30'
else:
return '... | from django import template
from datetime import datetime, time, timedelta
register = template.Library()
@register.simple_tag
def height(start, end):
if start.year == 2020 and int(start.strftime('%V')) >= 5 and start.hour == 12 and start.minute == 0:
if end.minute == 5:
return '30'
r... | from django import template
from datetime import datetime, time, timedelta
register = template.Library()
@register.simple_tag
def height(start, end):
if start.year == 2020 and int(start.strftime('%V')) >= 5 and start.hour == 12 and start.minute == 0:
return '30'
else:
return '%d' % ((end - s... | <commit_before>from django import template
from datetime import datetime, time, timedelta
register = template.Library()
@register.simple_tag
def height(start, end):
if start.year == 2020 and int(start.strftime('%V')) >= 5 and start.hour == 12 and start.minute == 0:
return '30'
else:
return '... |
aa6e5e93406cc614d1935f0ee61f28dbc955c2c0 | forms.py | forms.py | from flask_wtf import Form
from flask_wtf.csrf import CsrfProtect
from wtforms import StringField, IntegerField, SelectField, BooleanField
csrf = CsrfProtect()
class Submission(Form):
submission = StringField('Submission URL')
comments = BooleanField('Include comments')
comments_style = SelectField('Comm... | from flask_wtf import Form
from flask_wtf.csrf import CsrfProtect
from wtforms import StringField, IntegerField, SelectField, BooleanField
csrf = CsrfProtect()
class Submission(Form):
submission = StringField('Submission URL')
comments = BooleanField('Include comments')
comments_style = SelectField('Comm... | Make numbers the default comments style | Make numbers the default comments style
| Python | mit | JamieMagee/reddit2kindle,JamieMagee/reddit2kindle | from flask_wtf import Form
from flask_wtf.csrf import CsrfProtect
from wtforms import StringField, IntegerField, SelectField, BooleanField
csrf = CsrfProtect()
class Submission(Form):
submission = StringField('Submission URL')
comments = BooleanField('Include comments')
comments_style = SelectField('Comm... | from flask_wtf import Form
from flask_wtf.csrf import CsrfProtect
from wtforms import StringField, IntegerField, SelectField, BooleanField
csrf = CsrfProtect()
class Submission(Form):
submission = StringField('Submission URL')
comments = BooleanField('Include comments')
comments_style = SelectField('Comm... | <commit_before>from flask_wtf import Form
from flask_wtf.csrf import CsrfProtect
from wtforms import StringField, IntegerField, SelectField, BooleanField
csrf = CsrfProtect()
class Submission(Form):
submission = StringField('Submission URL')
comments = BooleanField('Include comments')
comments_style = Se... | from flask_wtf import Form
from flask_wtf.csrf import CsrfProtect
from wtforms import StringField, IntegerField, SelectField, BooleanField
csrf = CsrfProtect()
class Submission(Form):
submission = StringField('Submission URL')
comments = BooleanField('Include comments')
comments_style = SelectField('Comm... | from flask_wtf import Form
from flask_wtf.csrf import CsrfProtect
from wtforms import StringField, IntegerField, SelectField, BooleanField
csrf = CsrfProtect()
class Submission(Form):
submission = StringField('Submission URL')
comments = BooleanField('Include comments')
comments_style = SelectField('Comm... | <commit_before>from flask_wtf import Form
from flask_wtf.csrf import CsrfProtect
from wtforms import StringField, IntegerField, SelectField, BooleanField
csrf = CsrfProtect()
class Submission(Form):
submission = StringField('Submission URL')
comments = BooleanField('Include comments')
comments_style = Se... |
e3bbaf9421bdc5e0ac538c57a9821b5dba0382ef | dataviva/apps/title/models.py | dataviva/apps/title/models.py | from dataviva import db
class GraphTitle(db.Model):
__tablename__ = 'graph_title'
id = db.Column(db.Integer, primary_key=True)
title_en = db.Column(db.String(255))
subtitle_en = db.Column(db.String(255))
title_pt = db.Column(db.String(255))
subtitle_pt = db.Column(db.String(255))
dataset =... | from dataviva import db
class GraphTitle(db.Model):
__tablename__ = 'graph_title'
id = db.Column(db.Integer, primary_key=True)
title_en = db.Column(db.String(255))
subtitle_en = db.Column(db.String(255))
title_pt = db.Column(db.String(255))
subtitle_pt = db.Column(db.String(255))
dataset =... | Add column to title model | Add column to title model
| Python | mit | DataViva/dataviva-site,DataViva/dataviva-site,DataViva/dataviva-site,DataViva/dataviva-site | from dataviva import db
class GraphTitle(db.Model):
__tablename__ = 'graph_title'
id = db.Column(db.Integer, primary_key=True)
title_en = db.Column(db.String(255))
subtitle_en = db.Column(db.String(255))
title_pt = db.Column(db.String(255))
subtitle_pt = db.Column(db.String(255))
dataset =... | from dataviva import db
class GraphTitle(db.Model):
__tablename__ = 'graph_title'
id = db.Column(db.Integer, primary_key=True)
title_en = db.Column(db.String(255))
subtitle_en = db.Column(db.String(255))
title_pt = db.Column(db.String(255))
subtitle_pt = db.Column(db.String(255))
dataset =... | <commit_before>from dataviva import db
class GraphTitle(db.Model):
__tablename__ = 'graph_title'
id = db.Column(db.Integer, primary_key=True)
title_en = db.Column(db.String(255))
subtitle_en = db.Column(db.String(255))
title_pt = db.Column(db.String(255))
subtitle_pt = db.Column(db.String(255)... | from dataviva import db
class GraphTitle(db.Model):
__tablename__ = 'graph_title'
id = db.Column(db.Integer, primary_key=True)
title_en = db.Column(db.String(255))
subtitle_en = db.Column(db.String(255))
title_pt = db.Column(db.String(255))
subtitle_pt = db.Column(db.String(255))
dataset =... | from dataviva import db
class GraphTitle(db.Model):
__tablename__ = 'graph_title'
id = db.Column(db.Integer, primary_key=True)
title_en = db.Column(db.String(255))
subtitle_en = db.Column(db.String(255))
title_pt = db.Column(db.String(255))
subtitle_pt = db.Column(db.String(255))
dataset =... | <commit_before>from dataviva import db
class GraphTitle(db.Model):
__tablename__ = 'graph_title'
id = db.Column(db.Integer, primary_key=True)
title_en = db.Column(db.String(255))
subtitle_en = db.Column(db.String(255))
title_pt = db.Column(db.String(255))
subtitle_pt = db.Column(db.String(255)... |
1ac468723c4b94840f8f4799b289709554264b58 | src/job_api/python/cloudi_job_api.py | src/job_api/python/cloudi_job_api.py | # -*- coding: utf-8; Mode: python; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
# ex: set softtabstop=4 tabstop=4 shiftwidth=4 expandtab fileencoding=utf-8:
import sys, os
sys.path.append(
os.path.sep.join(
os.path.dirname(os.path.abspath(__file__))
.split(os.path.sep) + ['jso... | # -*- coding: utf-8; Mode: python; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
# ex: set softtabstop=4 tabstop=4 shiftwidth=4 expandtab fileencoding=utf-8:
import sys, os
sys.path.append(
os.path.sep.join(
os.path.dirname(os.path.abspath(__file__))
.split(os.path.sep) + ['jso... | Switch the CloudI Job API to use the binary output misultin job, instead of the list output one... both work. | Switch the CloudI Job API to use the binary output misultin job, instead of the list output one... both work.
| Python | mit | CloudI/CloudI,CloudI/CloudI,CloudI/CloudI,CloudI/CloudI,CloudI/CloudI,CloudI/CloudI,CloudI/CloudI,CloudI/CloudI,CloudI/CloudI,CloudI/CloudI,CloudI/CloudI | # -*- coding: utf-8; Mode: python; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
# ex: set softtabstop=4 tabstop=4 shiftwidth=4 expandtab fileencoding=utf-8:
import sys, os
sys.path.append(
os.path.sep.join(
os.path.dirname(os.path.abspath(__file__))
.split(os.path.sep) + ['jso... | # -*- coding: utf-8; Mode: python; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
# ex: set softtabstop=4 tabstop=4 shiftwidth=4 expandtab fileencoding=utf-8:
import sys, os
sys.path.append(
os.path.sep.join(
os.path.dirname(os.path.abspath(__file__))
.split(os.path.sep) + ['jso... | <commit_before># -*- coding: utf-8; Mode: python; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
# ex: set softtabstop=4 tabstop=4 shiftwidth=4 expandtab fileencoding=utf-8:
import sys, os
sys.path.append(
os.path.sep.join(
os.path.dirname(os.path.abspath(__file__))
.split(os.pa... | # -*- coding: utf-8; Mode: python; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
# ex: set softtabstop=4 tabstop=4 shiftwidth=4 expandtab fileencoding=utf-8:
import sys, os
sys.path.append(
os.path.sep.join(
os.path.dirname(os.path.abspath(__file__))
.split(os.path.sep) + ['jso... | # -*- coding: utf-8; Mode: python; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
# ex: set softtabstop=4 tabstop=4 shiftwidth=4 expandtab fileencoding=utf-8:
import sys, os
sys.path.append(
os.path.sep.join(
os.path.dirname(os.path.abspath(__file__))
.split(os.path.sep) + ['jso... | <commit_before># -*- coding: utf-8; Mode: python; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
# ex: set softtabstop=4 tabstop=4 shiftwidth=4 expandtab fileencoding=utf-8:
import sys, os
sys.path.append(
os.path.sep.join(
os.path.dirname(os.path.abspath(__file__))
.split(os.pa... |
2f055184a3832d4a44b151f6c3caf4089e80aa6d | devicehive/device_hive_api.py | devicehive/device_hive_api.py | from devicehive.handler import Handler
from devicehive.device_hive import DeviceHive
class ApiCallHandler(Handler):
"""Api call handler class."""
def __init__(self, api, call, *call_args, **call_kwargs):
super(ApiCallHandler, self).__init__(api)
self._call = call
self._call_args = cal... | from devicehive.handler import Handler
from devicehive.device_hive import DeviceHive
class ApiCallHandler(Handler):
"""Api call handler class."""
def __init__(self, api, call, *call_args, **call_kwargs):
super(ApiCallHandler, self).__init__(api)
self._call = call
self._call_args = cal... | Add get_property, set_property and delete_property functions | Add get_property, set_property and delete_property functions
| Python | apache-2.0 | devicehive/devicehive-python | from devicehive.handler import Handler
from devicehive.device_hive import DeviceHive
class ApiCallHandler(Handler):
"""Api call handler class."""
def __init__(self, api, call, *call_args, **call_kwargs):
super(ApiCallHandler, self).__init__(api)
self._call = call
self._call_args = cal... | from devicehive.handler import Handler
from devicehive.device_hive import DeviceHive
class ApiCallHandler(Handler):
"""Api call handler class."""
def __init__(self, api, call, *call_args, **call_kwargs):
super(ApiCallHandler, self).__init__(api)
self._call = call
self._call_args = cal... | <commit_before>from devicehive.handler import Handler
from devicehive.device_hive import DeviceHive
class ApiCallHandler(Handler):
"""Api call handler class."""
def __init__(self, api, call, *call_args, **call_kwargs):
super(ApiCallHandler, self).__init__(api)
self._call = call
self._... | from devicehive.handler import Handler
from devicehive.device_hive import DeviceHive
class ApiCallHandler(Handler):
"""Api call handler class."""
def __init__(self, api, call, *call_args, **call_kwargs):
super(ApiCallHandler, self).__init__(api)
self._call = call
self._call_args = cal... | from devicehive.handler import Handler
from devicehive.device_hive import DeviceHive
class ApiCallHandler(Handler):
"""Api call handler class."""
def __init__(self, api, call, *call_args, **call_kwargs):
super(ApiCallHandler, self).__init__(api)
self._call = call
self._call_args = cal... | <commit_before>from devicehive.handler import Handler
from devicehive.device_hive import DeviceHive
class ApiCallHandler(Handler):
"""Api call handler class."""
def __init__(self, api, call, *call_args, **call_kwargs):
super(ApiCallHandler, self).__init__(api)
self._call = call
self._... |
e435832edccd3444a90763386d8c81ab9f595cf7 | tests/test_cli_search.py | tests/test_cli_search.py | # -*- coding: utf-8 -*-
import pathlib
import json
import pytest
@pytest.fixture
def templates_file():
return 'tests/templates.json'
def scenarios():
yield ['django', 'docker'], ['cookiecutter-django']
yield ['pytest'], [
'cookiecutter-pylibrary',
'cookiecutter-pypackage',
'co... | # -*- coding: utf-8 -*-
import pathlib
import json
import pytest
@pytest.fixture
def templates_file():
return 'tests/templates.json'
def scenarios():
yield ['django', 'docker'], ['cookiecutter-django']
yield ['pytest'], [
'cookiecutter-pylibrary',
'cookiecutter-pypackage',
'co... | Implement a search test for when there is no matching template | Implement a search test for when there is no matching template
| Python | bsd-3-clause | hackebrot/cibopath | # -*- coding: utf-8 -*-
import pathlib
import json
import pytest
@pytest.fixture
def templates_file():
return 'tests/templates.json'
def scenarios():
yield ['django', 'docker'], ['cookiecutter-django']
yield ['pytest'], [
'cookiecutter-pylibrary',
'cookiecutter-pypackage',
'co... | # -*- coding: utf-8 -*-
import pathlib
import json
import pytest
@pytest.fixture
def templates_file():
return 'tests/templates.json'
def scenarios():
yield ['django', 'docker'], ['cookiecutter-django']
yield ['pytest'], [
'cookiecutter-pylibrary',
'cookiecutter-pypackage',
'co... | <commit_before># -*- coding: utf-8 -*-
import pathlib
import json
import pytest
@pytest.fixture
def templates_file():
return 'tests/templates.json'
def scenarios():
yield ['django', 'docker'], ['cookiecutter-django']
yield ['pytest'], [
'cookiecutter-pylibrary',
'cookiecutter-pypackag... | # -*- coding: utf-8 -*-
import pathlib
import json
import pytest
@pytest.fixture
def templates_file():
return 'tests/templates.json'
def scenarios():
yield ['django', 'docker'], ['cookiecutter-django']
yield ['pytest'], [
'cookiecutter-pylibrary',
'cookiecutter-pypackage',
'co... | # -*- coding: utf-8 -*-
import pathlib
import json
import pytest
@pytest.fixture
def templates_file():
return 'tests/templates.json'
def scenarios():
yield ['django', 'docker'], ['cookiecutter-django']
yield ['pytest'], [
'cookiecutter-pylibrary',
'cookiecutter-pypackage',
'co... | <commit_before># -*- coding: utf-8 -*-
import pathlib
import json
import pytest
@pytest.fixture
def templates_file():
return 'tests/templates.json'
def scenarios():
yield ['django', 'docker'], ['cookiecutter-django']
yield ['pytest'], [
'cookiecutter-pylibrary',
'cookiecutter-pypackag... |
e3145b956b8e77bc214c699749460bba2d394fef | tests/viewport-widget.py | tests/viewport-widget.py | #!/usr/bin/env python3
import pyglet
import glooey
window = pyglet.window.Window()
batch = pyglet.graphics.Batch()
cursor = pyglet.image.load('cursor-image.png')
hotspot = 4, 24
root = glooey.PanningGui(window, cursor, hotspot, batch=batch)
viewport = glooey.Viewport()
content = glooey.Grid(5, 5, padding=50)
menu =... | #!/usr/bin/env python3
import pyglet
import glooey
window = pyglet.window.Window()
batch = pyglet.graphics.Batch()
cursor = pyglet.image.load('cursor-image.png')
hotspot = 4, 24
root = glooey.PanningGui(window, cursor, hotspot, batch=batch)
viewport = glooey.Viewport()
content = glooey.Grid(5, 5, padding=50)
menu =... | Test a non-square Viewport child. | Test a non-square Viewport child.
| Python | mit | kxgames/glooey,kxgames/glooey | #!/usr/bin/env python3
import pyglet
import glooey
window = pyglet.window.Window()
batch = pyglet.graphics.Batch()
cursor = pyglet.image.load('cursor-image.png')
hotspot = 4, 24
root = glooey.PanningGui(window, cursor, hotspot, batch=batch)
viewport = glooey.Viewport()
content = glooey.Grid(5, 5, padding=50)
menu =... | #!/usr/bin/env python3
import pyglet
import glooey
window = pyglet.window.Window()
batch = pyglet.graphics.Batch()
cursor = pyglet.image.load('cursor-image.png')
hotspot = 4, 24
root = glooey.PanningGui(window, cursor, hotspot, batch=batch)
viewport = glooey.Viewport()
content = glooey.Grid(5, 5, padding=50)
menu =... | <commit_before>#!/usr/bin/env python3
import pyglet
import glooey
window = pyglet.window.Window()
batch = pyglet.graphics.Batch()
cursor = pyglet.image.load('cursor-image.png')
hotspot = 4, 24
root = glooey.PanningGui(window, cursor, hotspot, batch=batch)
viewport = glooey.Viewport()
content = glooey.Grid(5, 5, pad... | #!/usr/bin/env python3
import pyglet
import glooey
window = pyglet.window.Window()
batch = pyglet.graphics.Batch()
cursor = pyglet.image.load('cursor-image.png')
hotspot = 4, 24
root = glooey.PanningGui(window, cursor, hotspot, batch=batch)
viewport = glooey.Viewport()
content = glooey.Grid(5, 5, padding=50)
menu =... | #!/usr/bin/env python3
import pyglet
import glooey
window = pyglet.window.Window()
batch = pyglet.graphics.Batch()
cursor = pyglet.image.load('cursor-image.png')
hotspot = 4, 24
root = glooey.PanningGui(window, cursor, hotspot, batch=batch)
viewport = glooey.Viewport()
content = glooey.Grid(5, 5, padding=50)
menu =... | <commit_before>#!/usr/bin/env python3
import pyglet
import glooey
window = pyglet.window.Window()
batch = pyglet.graphics.Batch()
cursor = pyglet.image.load('cursor-image.png')
hotspot = 4, 24
root = glooey.PanningGui(window, cursor, hotspot, batch=batch)
viewport = glooey.Viewport()
content = glooey.Grid(5, 5, pad... |
c6cd8ae243c07fa80d54207c334883585eca0d97 | var/spack/packages/libffi/package.py | var/spack/packages/libffi/package.py | from spack import *
class Libffi(Package):
"""The libffi library provides a portable, high level programming
interface to various calling conventions. This allows a programmer
to call any function specified by a call interface description at
run time."""
homepage = "https://sourceware.org/libffi/"
... | from spack import *
class Libffi(Package):
"""The libffi library provides a portable, high level programming
interface to various calling conventions. This allows a programmer
to call any function specified by a call interface description at
run time."""
homepage = "https://sourceware.org/libffi/"
... | Use more recent version of libffi. 3.1 has a known bug that is fixed in current version | Use more recent version of libffi. 3.1 has a known bug that is fixed in current version
| Python | lgpl-2.1 | krafczyk/spack,LLNL/spack,matthiasdiener/spack,mfherbst/spack,iulian787/spack,iulian787/spack,tmerrick1/spack,lgarren/spack,EmreAtes/spack,tmerrick1/spack,LLNL/spack,iulian787/spack,krafczyk/spack,TheTimmy/spack,TheTimmy/spack,LLNL/spack,EmreAtes/spack,mfherbst/spack,tmerrick1/spack,iulian787/spack,matthiasdiener/spack... | from spack import *
class Libffi(Package):
"""The libffi library provides a portable, high level programming
interface to various calling conventions. This allows a programmer
to call any function specified by a call interface description at
run time."""
homepage = "https://sourceware.org/libffi/"
... | from spack import *
class Libffi(Package):
"""The libffi library provides a portable, high level programming
interface to various calling conventions. This allows a programmer
to call any function specified by a call interface description at
run time."""
homepage = "https://sourceware.org/libffi/"
... | <commit_before>from spack import *
class Libffi(Package):
"""The libffi library provides a portable, high level programming
interface to various calling conventions. This allows a programmer
to call any function specified by a call interface description at
run time."""
homepage = "https://sourcewar... | from spack import *
class Libffi(Package):
"""The libffi library provides a portable, high level programming
interface to various calling conventions. This allows a programmer
to call any function specified by a call interface description at
run time."""
homepage = "https://sourceware.org/libffi/"
... | from spack import *
class Libffi(Package):
"""The libffi library provides a portable, high level programming
interface to various calling conventions. This allows a programmer
to call any function specified by a call interface description at
run time."""
homepage = "https://sourceware.org/libffi/"
... | <commit_before>from spack import *
class Libffi(Package):
"""The libffi library provides a portable, high level programming
interface to various calling conventions. This allows a programmer
to call any function specified by a call interface description at
run time."""
homepage = "https://sourcewar... |
debcec2e64e85aafec3a11860042401e9d9955a7 | metafunctions/tests/test_star.py | metafunctions/tests/test_star.py | from metafunctions.util import node, star
from metafunctions.tests.util import BaseTestCase
class TestUnit(BaseTestCase):
def test_simple_star(self):
@node
def f(*args):
return args
cmp = (a | b) | star(f)
self.assertEqual(cmp('_'), ('_', 'a', 'b'))
def test_str_r... | from metafunctions.util import node, star
from metafunctions.tests.util import BaseTestCase
class TestUnit(BaseTestCase):
def test_simple_star(self):
@node
def f(*args):
return args
cmp = (a | b) | star(f)
self.assertEqual(cmp('_'), ('_', 'a', 'b'))
def test_str_r... | Add more expected star str | Add more expected star str
| Python | mit | ForeverWintr/metafunctions | from metafunctions.util import node, star
from metafunctions.tests.util import BaseTestCase
class TestUnit(BaseTestCase):
def test_simple_star(self):
@node
def f(*args):
return args
cmp = (a | b) | star(f)
self.assertEqual(cmp('_'), ('_', 'a', 'b'))
def test_str_r... | from metafunctions.util import node, star
from metafunctions.tests.util import BaseTestCase
class TestUnit(BaseTestCase):
def test_simple_star(self):
@node
def f(*args):
return args
cmp = (a | b) | star(f)
self.assertEqual(cmp('_'), ('_', 'a', 'b'))
def test_str_r... | <commit_before>from metafunctions.util import node, star
from metafunctions.tests.util import BaseTestCase
class TestUnit(BaseTestCase):
def test_simple_star(self):
@node
def f(*args):
return args
cmp = (a | b) | star(f)
self.assertEqual(cmp('_'), ('_', 'a', 'b'))
... | from metafunctions.util import node, star
from metafunctions.tests.util import BaseTestCase
class TestUnit(BaseTestCase):
def test_simple_star(self):
@node
def f(*args):
return args
cmp = (a | b) | star(f)
self.assertEqual(cmp('_'), ('_', 'a', 'b'))
def test_str_r... | from metafunctions.util import node, star
from metafunctions.tests.util import BaseTestCase
class TestUnit(BaseTestCase):
def test_simple_star(self):
@node
def f(*args):
return args
cmp = (a | b) | star(f)
self.assertEqual(cmp('_'), ('_', 'a', 'b'))
def test_str_r... | <commit_before>from metafunctions.util import node, star
from metafunctions.tests.util import BaseTestCase
class TestUnit(BaseTestCase):
def test_simple_star(self):
@node
def f(*args):
return args
cmp = (a | b) | star(f)
self.assertEqual(cmp('_'), ('_', 'a', 'b'))
... |
1cff4ec8cdac7253be979936a1b06c5bc8264195 | misc/sample_project/ser/snake.py | misc/sample_project/ser/snake.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
__all__ = ('is_snake',)
def is_snake(word):
if not word.isalpha():
raise ValueError("String '{}' is not a word")
if word.lower() == 'python':
return True
if word.lower() == 'питон':
return True
return False
de... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
__all__ = ('is_snake',)
def is_snake(word):
"""Checks if an animal is a snake
Parameters
----------
word : str
Animal name
Returns
-------
bool
Example
-------
Check if a bear is a snake
>>> from... | Add doctest to the sample project | Add doctest to the sample project
| Python | mit | hombit/scientific_python,hombit/scientific_python,hombit/scientific_python,hombit/scientific_python,hombit/scientific_python | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
__all__ = ('is_snake',)
def is_snake(word):
if not word.isalpha():
raise ValueError("String '{}' is not a word")
if word.lower() == 'python':
return True
if word.lower() == 'питон':
return True
return False
de... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
__all__ = ('is_snake',)
def is_snake(word):
"""Checks if an animal is a snake
Parameters
----------
word : str
Animal name
Returns
-------
bool
Example
-------
Check if a bear is a snake
>>> from... | <commit_before># -*- coding: utf-8 -*-
from __future__ import unicode_literals
__all__ = ('is_snake',)
def is_snake(word):
if not word.isalpha():
raise ValueError("String '{}' is not a word")
if word.lower() == 'python':
return True
if word.lower() == 'питон':
return True
re... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
__all__ = ('is_snake',)
def is_snake(word):
"""Checks if an animal is a snake
Parameters
----------
word : str
Animal name
Returns
-------
bool
Example
-------
Check if a bear is a snake
>>> from... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
__all__ = ('is_snake',)
def is_snake(word):
if not word.isalpha():
raise ValueError("String '{}' is not a word")
if word.lower() == 'python':
return True
if word.lower() == 'питон':
return True
return False
de... | <commit_before># -*- coding: utf-8 -*-
from __future__ import unicode_literals
__all__ = ('is_snake',)
def is_snake(word):
if not word.isalpha():
raise ValueError("String '{}' is not a word")
if word.lower() == 'python':
return True
if word.lower() == 'питон':
return True
re... |
57cc05d5cf61779994656aaacc53f8fcccc25ca3 | ade25/assetmanager/tool.py | ade25/assetmanager/tool.py | # -*- coding: utf-8 -*-
"""Module providing an image asset asignment factory."""
class AssetAssignmentTool(object):
""" Factory providing CRUD oparations for project assets """
| # -*- coding: utf-8 -*-
"""Module providing an image asset asignment factory."""
import json
import time
from plone import api
from Products.CMFPlone.utils import safe_unicode
from zope.lifecycleevent import modified
class AssetAssignmentTool(object):
""" Factory providing CRUD oparations for project assets """
... | Move create method as example implementation | Move create method as example implementation
Copy method/function from exusting tool integration for reference
concerning the layout of the json object
| Python | mit | ade25/ade25.assetmanager | # -*- coding: utf-8 -*-
"""Module providing an image asset asignment factory."""
class AssetAssignmentTool(object):
""" Factory providing CRUD oparations for project assets """
Move create method as example implementation
Copy method/function from exusting tool integration for reference
concerning the layout of ... | # -*- coding: utf-8 -*-
"""Module providing an image asset asignment factory."""
import json
import time
from plone import api
from Products.CMFPlone.utils import safe_unicode
from zope.lifecycleevent import modified
class AssetAssignmentTool(object):
""" Factory providing CRUD oparations for project assets """
... | <commit_before># -*- coding: utf-8 -*-
"""Module providing an image asset asignment factory."""
class AssetAssignmentTool(object):
""" Factory providing CRUD oparations for project assets """
<commit_msg>Move create method as example implementation
Copy method/function from exusting tool integration for referenc... | # -*- coding: utf-8 -*-
"""Module providing an image asset asignment factory."""
import json
import time
from plone import api
from Products.CMFPlone.utils import safe_unicode
from zope.lifecycleevent import modified
class AssetAssignmentTool(object):
""" Factory providing CRUD oparations for project assets """
... | # -*- coding: utf-8 -*-
"""Module providing an image asset asignment factory."""
class AssetAssignmentTool(object):
""" Factory providing CRUD oparations for project assets """
Move create method as example implementation
Copy method/function from exusting tool integration for reference
concerning the layout of ... | <commit_before># -*- coding: utf-8 -*-
"""Module providing an image asset asignment factory."""
class AssetAssignmentTool(object):
""" Factory providing CRUD oparations for project assets """
<commit_msg>Move create method as example implementation
Copy method/function from exusting tool integration for referenc... |
7f396cfd88fd08466db2f9cd77bf40e91345d2a2 | nodeconductor/core/authentication.py | nodeconductor/core/authentication.py | from __future__ import unicode_literals
import nodeconductor.logging.middleware
import rest_framework.authentication
def user_capturing_auth(auth):
class CapturingAuthentication(auth):
def authenticate(self, request):
result = super(CapturingAuthentication, self).authenticate(request)
... | from __future__ import unicode_literals
from django.utils.translation import ugettext_lazy as _
import rest_framework.authentication
from rest_framework import exceptions
import nodeconductor.logging.middleware
TOKEN_KEY = 'x-auth-token'
class TokenAuthentication(rest_framework.authentication.TokenAuthentication)... | Use get parameter in token auth (nc-544) | Use get parameter in token auth (nc-544)
| Python | mit | opennode/nodeconductor,opennode/nodeconductor,opennode/nodeconductor | from __future__ import unicode_literals
import nodeconductor.logging.middleware
import rest_framework.authentication
def user_capturing_auth(auth):
class CapturingAuthentication(auth):
def authenticate(self, request):
result = super(CapturingAuthentication, self).authenticate(request)
... | from __future__ import unicode_literals
from django.utils.translation import ugettext_lazy as _
import rest_framework.authentication
from rest_framework import exceptions
import nodeconductor.logging.middleware
TOKEN_KEY = 'x-auth-token'
class TokenAuthentication(rest_framework.authentication.TokenAuthentication)... | <commit_before>from __future__ import unicode_literals
import nodeconductor.logging.middleware
import rest_framework.authentication
def user_capturing_auth(auth):
class CapturingAuthentication(auth):
def authenticate(self, request):
result = super(CapturingAuthentication, self).authenticate(... | from __future__ import unicode_literals
from django.utils.translation import ugettext_lazy as _
import rest_framework.authentication
from rest_framework import exceptions
import nodeconductor.logging.middleware
TOKEN_KEY = 'x-auth-token'
class TokenAuthentication(rest_framework.authentication.TokenAuthentication)... | from __future__ import unicode_literals
import nodeconductor.logging.middleware
import rest_framework.authentication
def user_capturing_auth(auth):
class CapturingAuthentication(auth):
def authenticate(self, request):
result = super(CapturingAuthentication, self).authenticate(request)
... | <commit_before>from __future__ import unicode_literals
import nodeconductor.logging.middleware
import rest_framework.authentication
def user_capturing_auth(auth):
class CapturingAuthentication(auth):
def authenticate(self, request):
result = super(CapturingAuthentication, self).authenticate(... |
2c204e02607e75d0cfb696a1dfbaa1b7997fbb55 | sections/transportation/ferrys.py | sections/transportation/ferrys.py | # from . import has_required_data_maker, obtain_data_maker
PATH = 'ferry_paths.json'
def has_required_data(data_dir):
return False
# def obtain_data(data_dir):
# with open(join(data_dir, PATH), 'w') as fh:
# json.dump(get_paths(['Railways']).tolist(), fh)
| import requests
from ..image_provider import ImageProvider
PATH = 'ferry_paths.json'
BASE = 'http://journeyplanner.silverrailtech.com/JourneyPlannerService/V2'
DATASET = 'PerthRestricted'
class FerryImageProvider(ImageProvider):
def has_required_data(self):
return self.data_dir_exists(PATH)
def obt... | Work on ferry routes display | Work on ferry routes display
Will either need to pull data from google, or aggregate if we want to do
all those in australia
| Python | mit | Mause/statistical_atlas_of_au | # from . import has_required_data_maker, obtain_data_maker
PATH = 'ferry_paths.json'
def has_required_data(data_dir):
return False
# def obtain_data(data_dir):
# with open(join(data_dir, PATH), 'w') as fh:
# json.dump(get_paths(['Railways']).tolist(), fh)
Work on ferry routes display
Will either n... | import requests
from ..image_provider import ImageProvider
PATH = 'ferry_paths.json'
BASE = 'http://journeyplanner.silverrailtech.com/JourneyPlannerService/V2'
DATASET = 'PerthRestricted'
class FerryImageProvider(ImageProvider):
def has_required_data(self):
return self.data_dir_exists(PATH)
def obt... | <commit_before># from . import has_required_data_maker, obtain_data_maker
PATH = 'ferry_paths.json'
def has_required_data(data_dir):
return False
# def obtain_data(data_dir):
# with open(join(data_dir, PATH), 'w') as fh:
# json.dump(get_paths(['Railways']).tolist(), fh)
<commit_msg>Work on ferry ro... | import requests
from ..image_provider import ImageProvider
PATH = 'ferry_paths.json'
BASE = 'http://journeyplanner.silverrailtech.com/JourneyPlannerService/V2'
DATASET = 'PerthRestricted'
class FerryImageProvider(ImageProvider):
def has_required_data(self):
return self.data_dir_exists(PATH)
def obt... | # from . import has_required_data_maker, obtain_data_maker
PATH = 'ferry_paths.json'
def has_required_data(data_dir):
return False
# def obtain_data(data_dir):
# with open(join(data_dir, PATH), 'w') as fh:
# json.dump(get_paths(['Railways']).tolist(), fh)
Work on ferry routes display
Will either n... | <commit_before># from . import has_required_data_maker, obtain_data_maker
PATH = 'ferry_paths.json'
def has_required_data(data_dir):
return False
# def obtain_data(data_dir):
# with open(join(data_dir, PATH), 'w') as fh:
# json.dump(get_paths(['Railways']).tolist(), fh)
<commit_msg>Work on ferry ro... |
2bd8b3ad7eeb9a08f726e2e28582612e83bce9ab | ac_mediator/local_settings.example.py | ac_mediator/local_settings.example.py | DEBUG = True
ALLOWED_HOSTS = []
SECRET_KEY = '090d2#wtg&q2@o+l%cvc&4)r4x5fr9o#r^qz3%0bemyecshn31'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'ac_mediator',
'USER': '',
'PASSWORD': '',
}
}
BASE_URL = 'http://localhost:8000'
| import os
DEBUG = True
ALLOWED_HOSTS = []
SECRET_KEY = '090d2#wtg&q2@o+l%cvc&4)r4x5fr9o#r^qz3%0bemyecshn31'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'ac_mediator',
'USER': 'postgres',
'PASSWORD': 'postgres',
'HOST': os.getenv('D... | Update local settings for compatibility with docker | Update local settings for compatibility with docker
| Python | apache-2.0 | AudioCommons/ac-mediator,AudioCommons/ac-mediator,AudioCommons/ac-mediator | DEBUG = True
ALLOWED_HOSTS = []
SECRET_KEY = '090d2#wtg&q2@o+l%cvc&4)r4x5fr9o#r^qz3%0bemyecshn31'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'ac_mediator',
'USER': '',
'PASSWORD': '',
}
}
BASE_URL = 'http://localhost:8000'
Update loca... | import os
DEBUG = True
ALLOWED_HOSTS = []
SECRET_KEY = '090d2#wtg&q2@o+l%cvc&4)r4x5fr9o#r^qz3%0bemyecshn31'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'ac_mediator',
'USER': 'postgres',
'PASSWORD': 'postgres',
'HOST': os.getenv('D... | <commit_before>DEBUG = True
ALLOWED_HOSTS = []
SECRET_KEY = '090d2#wtg&q2@o+l%cvc&4)r4x5fr9o#r^qz3%0bemyecshn31'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'ac_mediator',
'USER': '',
'PASSWORD': '',
}
}
BASE_URL = 'http://localhost:80... | import os
DEBUG = True
ALLOWED_HOSTS = []
SECRET_KEY = '090d2#wtg&q2@o+l%cvc&4)r4x5fr9o#r^qz3%0bemyecshn31'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'ac_mediator',
'USER': 'postgres',
'PASSWORD': 'postgres',
'HOST': os.getenv('D... | DEBUG = True
ALLOWED_HOSTS = []
SECRET_KEY = '090d2#wtg&q2@o+l%cvc&4)r4x5fr9o#r^qz3%0bemyecshn31'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'ac_mediator',
'USER': '',
'PASSWORD': '',
}
}
BASE_URL = 'http://localhost:8000'
Update loca... | <commit_before>DEBUG = True
ALLOWED_HOSTS = []
SECRET_KEY = '090d2#wtg&q2@o+l%cvc&4)r4x5fr9o#r^qz3%0bemyecshn31'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'ac_mediator',
'USER': '',
'PASSWORD': '',
}
}
BASE_URL = 'http://localhost:80... |
ff23541ce41bb20f5f535026238d8dd879e8a894 | drf_enum_field/fields.py | drf_enum_field/fields.py | from rest_framework.fields import ChoiceField
class EnumField(ChoiceField):
default_error_messages = {
'invalid': ("No matching enum type.",)
}
def __init__(self, **kwargs):
self.enum_type = kwargs.pop("enum_type")
kwargs.pop("choices", None)
super(EnumField, self).__init_... | from django.utils.translation import ugettext_lazy as _
from rest_framework.fields import ChoiceField
class EnumField(ChoiceField):
default_error_messages = {
'invalid': _("No matching enum type.")
}
def __init__(self, **kwargs):
self.enum_type = kwargs.pop("enum_type")
kwargs.pop... | Return translation instead of tuple | Return translation instead of tuple
Fixes Attributerror: 'tuple' object has no attribute 'format' when POSTing with no value for an Enum field. | Python | mit | seebass/drf-enum-field | from rest_framework.fields import ChoiceField
class EnumField(ChoiceField):
default_error_messages = {
'invalid': ("No matching enum type.",)
}
def __init__(self, **kwargs):
self.enum_type = kwargs.pop("enum_type")
kwargs.pop("choices", None)
super(EnumField, self).__init_... | from django.utils.translation import ugettext_lazy as _
from rest_framework.fields import ChoiceField
class EnumField(ChoiceField):
default_error_messages = {
'invalid': _("No matching enum type.")
}
def __init__(self, **kwargs):
self.enum_type = kwargs.pop("enum_type")
kwargs.pop... | <commit_before>from rest_framework.fields import ChoiceField
class EnumField(ChoiceField):
default_error_messages = {
'invalid': ("No matching enum type.",)
}
def __init__(self, **kwargs):
self.enum_type = kwargs.pop("enum_type")
kwargs.pop("choices", None)
super(EnumField... | from django.utils.translation import ugettext_lazy as _
from rest_framework.fields import ChoiceField
class EnumField(ChoiceField):
default_error_messages = {
'invalid': _("No matching enum type.")
}
def __init__(self, **kwargs):
self.enum_type = kwargs.pop("enum_type")
kwargs.pop... | from rest_framework.fields import ChoiceField
class EnumField(ChoiceField):
default_error_messages = {
'invalid': ("No matching enum type.",)
}
def __init__(self, **kwargs):
self.enum_type = kwargs.pop("enum_type")
kwargs.pop("choices", None)
super(EnumField, self).__init_... | <commit_before>from rest_framework.fields import ChoiceField
class EnumField(ChoiceField):
default_error_messages = {
'invalid': ("No matching enum type.",)
}
def __init__(self, **kwargs):
self.enum_type = kwargs.pop("enum_type")
kwargs.pop("choices", None)
super(EnumField... |
3814db4e512fb0822b455afc77566e526a3a6afe | examples/example_helper.py | examples/example_helper.py | import json
import os
import shutil
from scipy_data_fitting import Plot
def save_example_fit(fit):
"""
Save fit result to a json file and a plot to an svg file.
"""
json_directory = os.path.join('examples', 'json')
plot_directory = os.path.join('examples', 'plots')
if not os.path.isdir(json_dir... | import json
import os
import shutil
import sys
sys.path.insert(0, os.path.abspath('.'))
from scipy_data_fitting import Plot
def save_example_fit(fit):
"""
Save fit result to a json file and a plot to an svg file.
"""
json_directory = os.path.join('examples', 'json')
plot_directory = os.path.join(... | Fix examples by adding package to path | Fix examples by adding package to path
| Python | mit | razor-x/scipy-data_fitting | import json
import os
import shutil
from scipy_data_fitting import Plot
def save_example_fit(fit):
"""
Save fit result to a json file and a plot to an svg file.
"""
json_directory = os.path.join('examples', 'json')
plot_directory = os.path.join('examples', 'plots')
if not os.path.isdir(json_dir... | import json
import os
import shutil
import sys
sys.path.insert(0, os.path.abspath('.'))
from scipy_data_fitting import Plot
def save_example_fit(fit):
"""
Save fit result to a json file and a plot to an svg file.
"""
json_directory = os.path.join('examples', 'json')
plot_directory = os.path.join(... | <commit_before>import json
import os
import shutil
from scipy_data_fitting import Plot
def save_example_fit(fit):
"""
Save fit result to a json file and a plot to an svg file.
"""
json_directory = os.path.join('examples', 'json')
plot_directory = os.path.join('examples', 'plots')
if not os.path... | import json
import os
import shutil
import sys
sys.path.insert(0, os.path.abspath('.'))
from scipy_data_fitting import Plot
def save_example_fit(fit):
"""
Save fit result to a json file and a plot to an svg file.
"""
json_directory = os.path.join('examples', 'json')
plot_directory = os.path.join(... | import json
import os
import shutil
from scipy_data_fitting import Plot
def save_example_fit(fit):
"""
Save fit result to a json file and a plot to an svg file.
"""
json_directory = os.path.join('examples', 'json')
plot_directory = os.path.join('examples', 'plots')
if not os.path.isdir(json_dir... | <commit_before>import json
import os
import shutil
from scipy_data_fitting import Plot
def save_example_fit(fit):
"""
Save fit result to a json file and a plot to an svg file.
"""
json_directory = os.path.join('examples', 'json')
plot_directory = os.path.join('examples', 'plots')
if not os.path... |
6b204b6013b516c1f312ac19097dcdc068f85b93 | tools/grit/grit/extern/FP.py | tools/grit/grit/extern/FP.py | #!/usr/bin/python2.2
# Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import md5
"""64-bit fingerprint support for strings.
Usage:
from extern import FP
print 'Fingerprint is %ld' % FP.Fi... | #!/usr/bin/python
# Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import md5
"""64-bit fingerprint support for strings.
Usage:
from extern import FP
print 'Fingerprint is %ld' % FP.Finge... | Remove version number from Python shebang. | Remove version number from Python shebang.
On special request from someone trying to purge python2.2 from code indexed
internally at Google.
git-svn-id: dd90618784b6a4b323ea0c23a071cb1c9e6f2ac7@7071 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
| Python | bsd-3-clause | wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser | #!/usr/bin/python2.2
# Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import md5
"""64-bit fingerprint support for strings.
Usage:
from extern import FP
print 'Fingerprint is %ld' % FP.Fi... | #!/usr/bin/python
# Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import md5
"""64-bit fingerprint support for strings.
Usage:
from extern import FP
print 'Fingerprint is %ld' % FP.Finge... | <commit_before>#!/usr/bin/python2.2
# Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import md5
"""64-bit fingerprint support for strings.
Usage:
from extern import FP
print 'Fingerprint ... | #!/usr/bin/python
# Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import md5
"""64-bit fingerprint support for strings.
Usage:
from extern import FP
print 'Fingerprint is %ld' % FP.Finge... | #!/usr/bin/python2.2
# Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import md5
"""64-bit fingerprint support for strings.
Usage:
from extern import FP
print 'Fingerprint is %ld' % FP.Fi... | <commit_before>#!/usr/bin/python2.2
# Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import md5
"""64-bit fingerprint support for strings.
Usage:
from extern import FP
print 'Fingerprint ... |
0056d2e4667810af45a820e6b8893c49e2f1cf49 | salt/utils/verify.py | salt/utils/verify.py | '''
A few checks to make sure the environment is sane
'''
# Original Author: Jeff Schroeder <[email protected]>
import logging
log = logging.getLogger(__name__)
__all__ = ('zmq_version', 'run')
def zmq_version():
'''ZeroMQ python bindings >= 2.1.9 are required'''
import zmq
ver = zmq.__version__... | '''
A few checks to make sure the environment is sane
'''
# Original Author: Jeff Schroeder <[email protected]>
import logging
log = logging.getLogger(__name__)
__all__ = ('zmq_version', 'check_root', 'run')
def zmq_version():
'''ZeroMQ python bindings >= 2.1.9 are required'''
import zmq
ver = z... | Make check_root use proper logging and exit cleanly | Make check_root use proper logging and exit cleanly
| Python | apache-2.0 | saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt | '''
A few checks to make sure the environment is sane
'''
# Original Author: Jeff Schroeder <[email protected]>
import logging
log = logging.getLogger(__name__)
__all__ = ('zmq_version', 'run')
def zmq_version():
'''ZeroMQ python bindings >= 2.1.9 are required'''
import zmq
ver = zmq.__version__... | '''
A few checks to make sure the environment is sane
'''
# Original Author: Jeff Schroeder <[email protected]>
import logging
log = logging.getLogger(__name__)
__all__ = ('zmq_version', 'check_root', 'run')
def zmq_version():
'''ZeroMQ python bindings >= 2.1.9 are required'''
import zmq
ver = z... | <commit_before>'''
A few checks to make sure the environment is sane
'''
# Original Author: Jeff Schroeder <[email protected]>
import logging
log = logging.getLogger(__name__)
__all__ = ('zmq_version', 'run')
def zmq_version():
'''ZeroMQ python bindings >= 2.1.9 are required'''
import zmq
ver = ... | '''
A few checks to make sure the environment is sane
'''
# Original Author: Jeff Schroeder <[email protected]>
import logging
log = logging.getLogger(__name__)
__all__ = ('zmq_version', 'check_root', 'run')
def zmq_version():
'''ZeroMQ python bindings >= 2.1.9 are required'''
import zmq
ver = z... | '''
A few checks to make sure the environment is sane
'''
# Original Author: Jeff Schroeder <[email protected]>
import logging
log = logging.getLogger(__name__)
__all__ = ('zmq_version', 'run')
def zmq_version():
'''ZeroMQ python bindings >= 2.1.9 are required'''
import zmq
ver = zmq.__version__... | <commit_before>'''
A few checks to make sure the environment is sane
'''
# Original Author: Jeff Schroeder <[email protected]>
import logging
log = logging.getLogger(__name__)
__all__ = ('zmq_version', 'run')
def zmq_version():
'''ZeroMQ python bindings >= 2.1.9 are required'''
import zmq
ver = ... |
476c97edf8489be59d5e96ce36aa9214ae4ca00c | run_tracker.py | run_tracker.py | import sys, json
from cloudtracker import main as tracker_main
def run_tracker(input):
print( " Running the cloud-tracking algorithm... " )
print( " Input dir: \"" + input + "\" \n" )
# Read .json configuration file
with open('model_config.json', 'r') as json_file:
config = json.load(json... | import sys, json
from cloudtracker.main import main
from cloudtracker.load_config import config
from cloudtracker.load_config import c
def run_tracker():
print( " Running the cloud-tracking algorithm... " )
# Print out model parameters from config.json
print( " \n Model parameters: " )
print( " ... | Read model parameters and output at the beginning | Read model parameters and output at the beginning
| Python | bsd-2-clause | lorenghoh/loh_tracker | import sys, json
from cloudtracker import main as tracker_main
def run_tracker(input):
print( " Running the cloud-tracking algorithm... " )
print( " Input dir: \"" + input + "\" \n" )
# Read .json configuration file
with open('model_config.json', 'r') as json_file:
config = json.load(json... | import sys, json
from cloudtracker.main import main
from cloudtracker.load_config import config
from cloudtracker.load_config import c
def run_tracker():
print( " Running the cloud-tracking algorithm... " )
# Print out model parameters from config.json
print( " \n Model parameters: " )
print( " ... | <commit_before>import sys, json
from cloudtracker import main as tracker_main
def run_tracker(input):
print( " Running the cloud-tracking algorithm... " )
print( " Input dir: \"" + input + "\" \n" )
# Read .json configuration file
with open('model_config.json', 'r') as json_file:
config =... | import sys, json
from cloudtracker.main import main
from cloudtracker.load_config import config
from cloudtracker.load_config import c
def run_tracker():
print( " Running the cloud-tracking algorithm... " )
# Print out model parameters from config.json
print( " \n Model parameters: " )
print( " ... | import sys, json
from cloudtracker import main as tracker_main
def run_tracker(input):
print( " Running the cloud-tracking algorithm... " )
print( " Input dir: \"" + input + "\" \n" )
# Read .json configuration file
with open('model_config.json', 'r') as json_file:
config = json.load(json... | <commit_before>import sys, json
from cloudtracker import main as tracker_main
def run_tracker(input):
print( " Running the cloud-tracking algorithm... " )
print( " Input dir: \"" + input + "\" \n" )
# Read .json configuration file
with open('model_config.json', 'r') as json_file:
config =... |
f312b856046cb46255971bcd30b8c418d7040455 | __openerp__.py | __openerp__.py | # -*- coding: utf-8 -*-
{
'name': 'Human Employee Streamline',
'version': '1.2',
'author': 'XCG Consulting',
'category': 'Human Resources',
'description': """ enchancements to the hr module to
streamline its usage
""",
'website': 'http://www.openerp-experts.com',
'depends': [
... | # -*- coding: utf-8 -*-
{
'name': 'Human Employee Streamline',
'version': '1.2',
'author': 'XCG Consulting',
'category': 'Human Resources',
'description': """ enchancements to the hr module to
streamline its usage
""",
'website': 'http://www.openerp-experts.com',
'depends': [
... | Add dependencies on hr_contract as it should have been done | Add dependencies on hr_contract as it should have been done
| Python | agpl-3.0 | xcgd/hr_streamline | # -*- coding: utf-8 -*-
{
'name': 'Human Employee Streamline',
'version': '1.2',
'author': 'XCG Consulting',
'category': 'Human Resources',
'description': """ enchancements to the hr module to
streamline its usage
""",
'website': 'http://www.openerp-experts.com',
'depends': [
... | # -*- coding: utf-8 -*-
{
'name': 'Human Employee Streamline',
'version': '1.2',
'author': 'XCG Consulting',
'category': 'Human Resources',
'description': """ enchancements to the hr module to
streamline its usage
""",
'website': 'http://www.openerp-experts.com',
'depends': [
... | <commit_before># -*- coding: utf-8 -*-
{
'name': 'Human Employee Streamline',
'version': '1.2',
'author': 'XCG Consulting',
'category': 'Human Resources',
'description': """ enchancements to the hr module to
streamline its usage
""",
'website': 'http://www.openerp-experts.com',
'depe... | # -*- coding: utf-8 -*-
{
'name': 'Human Employee Streamline',
'version': '1.2',
'author': 'XCG Consulting',
'category': 'Human Resources',
'description': """ enchancements to the hr module to
streamline its usage
""",
'website': 'http://www.openerp-experts.com',
'depends': [
... | # -*- coding: utf-8 -*-
{
'name': 'Human Employee Streamline',
'version': '1.2',
'author': 'XCG Consulting',
'category': 'Human Resources',
'description': """ enchancements to the hr module to
streamline its usage
""",
'website': 'http://www.openerp-experts.com',
'depends': [
... | <commit_before># -*- coding: utf-8 -*-
{
'name': 'Human Employee Streamline',
'version': '1.2',
'author': 'XCG Consulting',
'category': 'Human Resources',
'description': """ enchancements to the hr module to
streamline its usage
""",
'website': 'http://www.openerp-experts.com',
'depe... |
206c687570233c4d71063f1c688c25bbbd9847ab | tests/test_system.py | tests/test_system.py | import datetime
from decimal import Decimal
from mock import Mock
import ubersmith.order
# TODO: setup/teardown module with default request handler
# TODO: mock out requests library vs mocking out request handler
def test_order_list():
handler = Mock()
response = {
"60": {
"client_id": ... | import datetime
from decimal import Decimal
import json
from mock import Mock
import ubersmith
import ubersmith.api
import ubersmith.order
def setup_module():
ubersmith.init(**{
'base_url': '',
'username': '',
'password': '',
})
def teardown_module():
ubersmith.api._DEFAULT_REQ... | Refactor system tests to mock out requests library vs mocking out request handler. | Refactor system tests to mock out requests library vs mocking out request handler.
| Python | mit | jasonkeene/python-ubersmith,hivelocity/python-ubersmith,jasonkeene/python-ubersmith,hivelocity/python-ubersmith | import datetime
from decimal import Decimal
from mock import Mock
import ubersmith.order
# TODO: setup/teardown module with default request handler
# TODO: mock out requests library vs mocking out request handler
def test_order_list():
handler = Mock()
response = {
"60": {
"client_id": ... | import datetime
from decimal import Decimal
import json
from mock import Mock
import ubersmith
import ubersmith.api
import ubersmith.order
def setup_module():
ubersmith.init(**{
'base_url': '',
'username': '',
'password': '',
})
def teardown_module():
ubersmith.api._DEFAULT_REQ... | <commit_before>import datetime
from decimal import Decimal
from mock import Mock
import ubersmith.order
# TODO: setup/teardown module with default request handler
# TODO: mock out requests library vs mocking out request handler
def test_order_list():
handler = Mock()
response = {
"60": {
... | import datetime
from decimal import Decimal
import json
from mock import Mock
import ubersmith
import ubersmith.api
import ubersmith.order
def setup_module():
ubersmith.init(**{
'base_url': '',
'username': '',
'password': '',
})
def teardown_module():
ubersmith.api._DEFAULT_REQ... | import datetime
from decimal import Decimal
from mock import Mock
import ubersmith.order
# TODO: setup/teardown module with default request handler
# TODO: mock out requests library vs mocking out request handler
def test_order_list():
handler = Mock()
response = {
"60": {
"client_id": ... | <commit_before>import datetime
from decimal import Decimal
from mock import Mock
import ubersmith.order
# TODO: setup/teardown module with default request handler
# TODO: mock out requests library vs mocking out request handler
def test_order_list():
handler = Mock()
response = {
"60": {
... |
238d03c83431c60011d1aad1759acefc9d5c218e | index.py | index.py | # the lolbot core
# (c) 2017 S Stewart under MIT License
# -*- coding: utf-8 -*-
# obviously, logging
import json
import logging
import time
import subprocess
import aiohttp
import discord
from discord.ext import commands
logging.basicConfig(format='[%(levelname)s] - %(message)s', level=logging.INFO)
try:
confi... | # the lolbot core
# (c) 2017 S Stewart under MIT License
# -*- coding: utf-8 -*-
# built in modules go first.
import json
import logging
import time
# import the rest
import aiohttp
import discord
from discord.ext import commands
logging.basicConfig(format='[%(levelname)s] - %(message)s', level=logging.INFO)
tr... | Merge manually, because vim exec is retarded | [merge] Merge manually, because vim exec is retarded
| Python | mit | tilda/lolbot,xshotD/lolbot,xshotD/lolbot,tilda/lolbot,tilda/lolbot,xshotD/lolbot | # the lolbot core
# (c) 2017 S Stewart under MIT License
# -*- coding: utf-8 -*-
# obviously, logging
import json
import logging
import time
import subprocess
import aiohttp
import discord
from discord.ext import commands
logging.basicConfig(format='[%(levelname)s] - %(message)s', level=logging.INFO)
try:
confi... | # the lolbot core
# (c) 2017 S Stewart under MIT License
# -*- coding: utf-8 -*-
# built in modules go first.
import json
import logging
import time
# import the rest
import aiohttp
import discord
from discord.ext import commands
logging.basicConfig(format='[%(levelname)s] - %(message)s', level=logging.INFO)
tr... | <commit_before># the lolbot core
# (c) 2017 S Stewart under MIT License
# -*- coding: utf-8 -*-
# obviously, logging
import json
import logging
import time
import subprocess
import aiohttp
import discord
from discord.ext import commands
logging.basicConfig(format='[%(levelname)s] - %(message)s', level=logging.INFO... | # the lolbot core
# (c) 2017 S Stewart under MIT License
# -*- coding: utf-8 -*-
# built in modules go first.
import json
import logging
import time
# import the rest
import aiohttp
import discord
from discord.ext import commands
logging.basicConfig(format='[%(levelname)s] - %(message)s', level=logging.INFO)
tr... | # the lolbot core
# (c) 2017 S Stewart under MIT License
# -*- coding: utf-8 -*-
# obviously, logging
import json
import logging
import time
import subprocess
import aiohttp
import discord
from discord.ext import commands
logging.basicConfig(format='[%(levelname)s] - %(message)s', level=logging.INFO)
try:
confi... | <commit_before># the lolbot core
# (c) 2017 S Stewart under MIT License
# -*- coding: utf-8 -*-
# obviously, logging
import json
import logging
import time
import subprocess
import aiohttp
import discord
from discord.ext import commands
logging.basicConfig(format='[%(levelname)s] - %(message)s', level=logging.INFO... |
adcd6637da7fd545683a6b89ad49ed22669b33dd | repeatMacro.py | repeatMacro.py | #
# Sivakumar Kailasam and lowliet
#
import sublime, sublime_plugin
class RepeatMacroCommand(sublime_plugin.TextCommand):
def run(self, edit):
self.view.window().show_input_panel("Repeat count or [Enter] to run till end of file", "", self.__execute, None, None)
def __execute(self, text):
if... | #
# Sivakumar Kailasam and lowliet
#
import sublime, sublime_plugin
class RepeatMacroCommand(sublime_plugin.TextCommand):
def run(self, edit):
self.view.window().show_input_panel("Repeat count or [Enter] to run till end of file", "", self.__execute, None, None)
def __execute(self, text):
if... | Fix 'Number too big' weirdness | Fix 'Number too big' weirdness
| Python | mit | sivakumar-kailasam/Repeat-Macro | #
# Sivakumar Kailasam and lowliet
#
import sublime, sublime_plugin
class RepeatMacroCommand(sublime_plugin.TextCommand):
def run(self, edit):
self.view.window().show_input_panel("Repeat count or [Enter] to run till end of file", "", self.__execute, None, None)
def __execute(self, text):
if... | #
# Sivakumar Kailasam and lowliet
#
import sublime, sublime_plugin
class RepeatMacroCommand(sublime_plugin.TextCommand):
def run(self, edit):
self.view.window().show_input_panel("Repeat count or [Enter] to run till end of file", "", self.__execute, None, None)
def __execute(self, text):
if... | <commit_before>#
# Sivakumar Kailasam and lowliet
#
import sublime, sublime_plugin
class RepeatMacroCommand(sublime_plugin.TextCommand):
def run(self, edit):
self.view.window().show_input_panel("Repeat count or [Enter] to run till end of file", "", self.__execute, None, None)
def __execute(self, te... | #
# Sivakumar Kailasam and lowliet
#
import sublime, sublime_plugin
class RepeatMacroCommand(sublime_plugin.TextCommand):
def run(self, edit):
self.view.window().show_input_panel("Repeat count or [Enter] to run till end of file", "", self.__execute, None, None)
def __execute(self, text):
if... | #
# Sivakumar Kailasam and lowliet
#
import sublime, sublime_plugin
class RepeatMacroCommand(sublime_plugin.TextCommand):
def run(self, edit):
self.view.window().show_input_panel("Repeat count or [Enter] to run till end of file", "", self.__execute, None, None)
def __execute(self, text):
if... | <commit_before>#
# Sivakumar Kailasam and lowliet
#
import sublime, sublime_plugin
class RepeatMacroCommand(sublime_plugin.TextCommand):
def run(self, edit):
self.view.window().show_input_panel("Repeat count or [Enter] to run till end of file", "", self.__execute, None, None)
def __execute(self, te... |
254a1a0b0c438c0f913b80af16b96fc54b3a58bd | app/tests/test_fixtures.py | app/tests/test_fixtures.py | """
Test fixtures.
:copyright: (c) 2017 Derek M. Frank
:license: MPL-2.0
"""
from flask import Flask # type: ignore
def test_simple_app(app):
"""Verify basic application."""
assert isinstance(app, Flask)
def test_simple_config(config):
"""Verify basic application configuration."""
assert isinstan... | """
Test fixtures.
:copyright: (c) 2017 Derek M. Frank
:license: MPL-2.0
"""
from flask import Flask # type: ignore
def test_simple_app(app):
"""Verify basic application."""
assert isinstance(app, Flask)
def test_simple_config(config):
"""Verify basic application configuration."""
assert isinstan... | Merge fixture tests to reduce live servers and time | refactor(app-tests): Merge fixture tests to reduce live servers and time
| Python | mpl-2.0 | defrank/roshi | """
Test fixtures.
:copyright: (c) 2017 Derek M. Frank
:license: MPL-2.0
"""
from flask import Flask # type: ignore
def test_simple_app(app):
"""Verify basic application."""
assert isinstance(app, Flask)
def test_simple_config(config):
"""Verify basic application configuration."""
assert isinstan... | """
Test fixtures.
:copyright: (c) 2017 Derek M. Frank
:license: MPL-2.0
"""
from flask import Flask # type: ignore
def test_simple_app(app):
"""Verify basic application."""
assert isinstance(app, Flask)
def test_simple_config(config):
"""Verify basic application configuration."""
assert isinstan... | <commit_before>"""
Test fixtures.
:copyright: (c) 2017 Derek M. Frank
:license: MPL-2.0
"""
from flask import Flask # type: ignore
def test_simple_app(app):
"""Verify basic application."""
assert isinstance(app, Flask)
def test_simple_config(config):
"""Verify basic application configuration."""
... | """
Test fixtures.
:copyright: (c) 2017 Derek M. Frank
:license: MPL-2.0
"""
from flask import Flask # type: ignore
def test_simple_app(app):
"""Verify basic application."""
assert isinstance(app, Flask)
def test_simple_config(config):
"""Verify basic application configuration."""
assert isinstan... | """
Test fixtures.
:copyright: (c) 2017 Derek M. Frank
:license: MPL-2.0
"""
from flask import Flask # type: ignore
def test_simple_app(app):
"""Verify basic application."""
assert isinstance(app, Flask)
def test_simple_config(config):
"""Verify basic application configuration."""
assert isinstan... | <commit_before>"""
Test fixtures.
:copyright: (c) 2017 Derek M. Frank
:license: MPL-2.0
"""
from flask import Flask # type: ignore
def test_simple_app(app):
"""Verify basic application."""
assert isinstance(app, Flask)
def test_simple_config(config):
"""Verify basic application configuration."""
... |
0da7c7931f7abc8775087aab5054cfea63120f60 | scripts/dumpcmaps.py | scripts/dumpcmaps.py | import numpy as np
import Image
def makeImage(cmap, fname):
cmarr = (cmap*255).astype(np.uint8)
im = Image.fromarray(cmarr[np.newaxis])
im.save(fname)
def cmList(additional):
cmaps = {}
values = np.linspace(0, 1, 256)
from matplotlib import cm, colors
for cmname in dir(cm):
cmap = ... | import numpy as np
import Image
import scipy.io as sio
def makeImage(cmap, fname):
cmarr = (cmap*255).astype(np.uint8)
im = Image.fromarray(cmarr[np.newaxis])
im.save(fname)
def cmList(additional):
cmaps = {}
values = np.linspace(0, 1, 256)
from matplotlib import cm, colors
for cmname in d... | Add all the J* colormaps | Add all the J* colormaps
| Python | bsd-2-clause | gallantlab/pycortex,smerdis/pycortex,smerdis/pycortex,CVML/pycortex,gallantlab/pycortex,CVML/pycortex,smerdis/pycortex,CVML/pycortex,CVML/pycortex,CVML/pycortex,gallantlab/pycortex,smerdis/pycortex,smerdis/pycortex,gallantlab/pycortex,gallantlab/pycortex | import numpy as np
import Image
def makeImage(cmap, fname):
cmarr = (cmap*255).astype(np.uint8)
im = Image.fromarray(cmarr[np.newaxis])
im.save(fname)
def cmList(additional):
cmaps = {}
values = np.linspace(0, 1, 256)
from matplotlib import cm, colors
for cmname in dir(cm):
cmap = ... | import numpy as np
import Image
import scipy.io as sio
def makeImage(cmap, fname):
cmarr = (cmap*255).astype(np.uint8)
im = Image.fromarray(cmarr[np.newaxis])
im.save(fname)
def cmList(additional):
cmaps = {}
values = np.linspace(0, 1, 256)
from matplotlib import cm, colors
for cmname in d... | <commit_before>import numpy as np
import Image
def makeImage(cmap, fname):
cmarr = (cmap*255).astype(np.uint8)
im = Image.fromarray(cmarr[np.newaxis])
im.save(fname)
def cmList(additional):
cmaps = {}
values = np.linspace(0, 1, 256)
from matplotlib import cm, colors
for cmname in dir(cm):
... | import numpy as np
import Image
import scipy.io as sio
def makeImage(cmap, fname):
cmarr = (cmap*255).astype(np.uint8)
im = Image.fromarray(cmarr[np.newaxis])
im.save(fname)
def cmList(additional):
cmaps = {}
values = np.linspace(0, 1, 256)
from matplotlib import cm, colors
for cmname in d... | import numpy as np
import Image
def makeImage(cmap, fname):
cmarr = (cmap*255).astype(np.uint8)
im = Image.fromarray(cmarr[np.newaxis])
im.save(fname)
def cmList(additional):
cmaps = {}
values = np.linspace(0, 1, 256)
from matplotlib import cm, colors
for cmname in dir(cm):
cmap = ... | <commit_before>import numpy as np
import Image
def makeImage(cmap, fname):
cmarr = (cmap*255).astype(np.uint8)
im = Image.fromarray(cmarr[np.newaxis])
im.save(fname)
def cmList(additional):
cmaps = {}
values = np.linspace(0, 1, 256)
from matplotlib import cm, colors
for cmname in dir(cm):
... |
b470cb1825f5d54ff4a48875a216dbb0cdf44eb7 | apps/innovate/tests/test_views.py | apps/innovate/tests/test_views.py | from django.core.urlresolvers import reverse
from django.test import Client
from projects.models import Project
from innovate import urls
def test_routes():
c = Client()
for pattern in urls.urlpatterns:
response = c.get(reverse(pattern.name))
assert response.status_code == 301
assert ... | from django.core.urlresolvers import reverse
from django.test import Client
from django.test.client import RequestFactory
from projects.models import Project
from innovate import urls
from innovate.views import handle404, handle500
def test_routes():
c = Client()
for pattern in urls.urlpatterns:
resp... | Add tests for the 404 and 500 error handlers. | Add tests for the 404 and 500 error handlers.
| Python | bsd-3-clause | mozilla/betafarm,mozilla/betafarm,mozilla/betafarm,mozilla/betafarm | from django.core.urlresolvers import reverse
from django.test import Client
from projects.models import Project
from innovate import urls
def test_routes():
c = Client()
for pattern in urls.urlpatterns:
response = c.get(reverse(pattern.name))
assert response.status_code == 301
assert ... | from django.core.urlresolvers import reverse
from django.test import Client
from django.test.client import RequestFactory
from projects.models import Project
from innovate import urls
from innovate.views import handle404, handle500
def test_routes():
c = Client()
for pattern in urls.urlpatterns:
resp... | <commit_before>from django.core.urlresolvers import reverse
from django.test import Client
from projects.models import Project
from innovate import urls
def test_routes():
c = Client()
for pattern in urls.urlpatterns:
response = c.get(reverse(pattern.name))
assert response.status_code == 301
... | from django.core.urlresolvers import reverse
from django.test import Client
from django.test.client import RequestFactory
from projects.models import Project
from innovate import urls
from innovate.views import handle404, handle500
def test_routes():
c = Client()
for pattern in urls.urlpatterns:
resp... | from django.core.urlresolvers import reverse
from django.test import Client
from projects.models import Project
from innovate import urls
def test_routes():
c = Client()
for pattern in urls.urlpatterns:
response = c.get(reverse(pattern.name))
assert response.status_code == 301
assert ... | <commit_before>from django.core.urlresolvers import reverse
from django.test import Client
from projects.models import Project
from innovate import urls
def test_routes():
c = Client()
for pattern in urls.urlpatterns:
response = c.get(reverse(pattern.name))
assert response.status_code == 301
... |
307a125dc21e31fdf06862dafb30f8283db6c8a2 | python/custom_type.py | python/custom_type.py | import math
class Circle:
def __init__(self, radius):
self.radius = radius
def area(self):
return math.pi * self.radius * self.radius
c = Circle(10)
assert(type(c) == Circle)
assert(type(Circle) == type)
assert(str(type(Circle.area)) == "<class 'function'>")
assert(str(type(c.area)) == "<cla... | import math
class Circle:
def __init__(self, radius):
self.radius = radius
def area(self):
return math.pi * self.radius * self.radius
c = Circle(10)
assert(type(c) == Circle) # Circle is a type!
assert(type(Circle) == type) # It really is!
assert(str(type(Circle.area)) == ... | Tidy up Python class example | Tidy up Python class example
| Python | mit | rtoal/polyglot,rtoal/polyglot,rtoal/polyglot,rtoal/polyglot,rtoal/polyglot,rtoal/polyglot,rtoal/ple,rtoal/polyglot,rtoal/ple,rtoal/ple,rtoal/ple,rtoal/ple,rtoal/polyglot,rtoal/polyglot,rtoal/polyglot,rtoal/polyglot,rtoal/polyglot,rtoal/ple,rtoal/ple,rtoal/ple,rtoal/ple,rtoal/ple,rtoal/ple,rtoal/polyglot,rtoal/ple,rtoal... | import math
class Circle:
def __init__(self, radius):
self.radius = radius
def area(self):
return math.pi * self.radius * self.radius
c = Circle(10)
assert(type(c) == Circle)
assert(type(Circle) == type)
assert(str(type(Circle.area)) == "<class 'function'>")
assert(str(type(c.area)) == "<cla... | import math
class Circle:
def __init__(self, radius):
self.radius = radius
def area(self):
return math.pi * self.radius * self.radius
c = Circle(10)
assert(type(c) == Circle) # Circle is a type!
assert(type(Circle) == type) # It really is!
assert(str(type(Circle.area)) == ... | <commit_before>import math
class Circle:
def __init__(self, radius):
self.radius = radius
def area(self):
return math.pi * self.radius * self.radius
c = Circle(10)
assert(type(c) == Circle)
assert(type(Circle) == type)
assert(str(type(Circle.area)) == "<class 'function'>")
assert(str(type(c.... | import math
class Circle:
def __init__(self, radius):
self.radius = radius
def area(self):
return math.pi * self.radius * self.radius
c = Circle(10)
assert(type(c) == Circle) # Circle is a type!
assert(type(Circle) == type) # It really is!
assert(str(type(Circle.area)) == ... | import math
class Circle:
def __init__(self, radius):
self.radius = radius
def area(self):
return math.pi * self.radius * self.radius
c = Circle(10)
assert(type(c) == Circle)
assert(type(Circle) == type)
assert(str(type(Circle.area)) == "<class 'function'>")
assert(str(type(c.area)) == "<cla... | <commit_before>import math
class Circle:
def __init__(self, radius):
self.radius = radius
def area(self):
return math.pi * self.radius * self.radius
c = Circle(10)
assert(type(c) == Circle)
assert(type(Circle) == type)
assert(str(type(Circle.area)) == "<class 'function'>")
assert(str(type(c.... |
cd9e0d6226f9a37a9a99062a42f21aaa53e0351f | heufybot/connection.py | heufybot/connection.py | from twisted.words.protocols import irc
class HeufyBotConnection(irc.IRC):
def __init__(self, protocol):
self.protocol = protocol
self.nick = "PyHeufyBot" # TODO This will be set by a configuration at some point
self.ident = "PyHeufyBot" # TODO This will be set by a configuration at some... | from twisted.words.protocols import irc
class HeufyBotConnection(irc.IRC):
def __init__(self, protocol):
self.protocol = protocol
self.nick = "PyHeufyBot" # TODO This will be set by a configuration at some point
self.ident = "PyHeufyBot" # TODO This will be set by a configuration at some... | Implement the QUIT command and disconnect | Implement the QUIT command and disconnect
| Python | mit | Heufneutje/PyHeufyBot,Heufneutje/PyHeufyBot | from twisted.words.protocols import irc
class HeufyBotConnection(irc.IRC):
def __init__(self, protocol):
self.protocol = protocol
self.nick = "PyHeufyBot" # TODO This will be set by a configuration at some point
self.ident = "PyHeufyBot" # TODO This will be set by a configuration at some... | from twisted.words.protocols import irc
class HeufyBotConnection(irc.IRC):
def __init__(self, protocol):
self.protocol = protocol
self.nick = "PyHeufyBot" # TODO This will be set by a configuration at some point
self.ident = "PyHeufyBot" # TODO This will be set by a configuration at some... | <commit_before>from twisted.words.protocols import irc
class HeufyBotConnection(irc.IRC):
def __init__(self, protocol):
self.protocol = protocol
self.nick = "PyHeufyBot" # TODO This will be set by a configuration at some point
self.ident = "PyHeufyBot" # TODO This will be set by a config... | from twisted.words.protocols import irc
class HeufyBotConnection(irc.IRC):
def __init__(self, protocol):
self.protocol = protocol
self.nick = "PyHeufyBot" # TODO This will be set by a configuration at some point
self.ident = "PyHeufyBot" # TODO This will be set by a configuration at some... | from twisted.words.protocols import irc
class HeufyBotConnection(irc.IRC):
def __init__(self, protocol):
self.protocol = protocol
self.nick = "PyHeufyBot" # TODO This will be set by a configuration at some point
self.ident = "PyHeufyBot" # TODO This will be set by a configuration at some... | <commit_before>from twisted.words.protocols import irc
class HeufyBotConnection(irc.IRC):
def __init__(self, protocol):
self.protocol = protocol
self.nick = "PyHeufyBot" # TODO This will be set by a configuration at some point
self.ident = "PyHeufyBot" # TODO This will be set by a config... |
860ab088e081390ca21b29029af1f398a97c7913 | astroquery/tests/test_besancon.py | astroquery/tests/test_besancon.py | from astroquery import besancon
import asciitable
from astropy.io.ascii.tests.common import assert_equal
# SKIP - don't run tests because Besancon folks don't want them (based on the fact that [email protected] is now rejected)
# def test_besancon_reader():
# #assert os.path.exists('besancon_test.txt')
# B = asci... | #from astroquery import besancon
#import asciitable
#from astropy.io.ascii.tests.common import assert_equal
# SKIP - don't run tests because Besancon folks don't want them (based on the fact that [email protected] is now rejected)
# def test_besancon_reader():
# #assert os.path.exists('besancon_test.txt')
# B = a... | Resolve 58; no tests for besancon | Resolve 58; no tests for besancon
| Python | bsd-3-clause | ceb8/astroquery,imbasimba/astroquery,ceb8/astroquery,imbasimba/astroquery | from astroquery import besancon
import asciitable
from astropy.io.ascii.tests.common import assert_equal
# SKIP - don't run tests because Besancon folks don't want them (based on the fact that [email protected] is now rejected)
# def test_besancon_reader():
# #assert os.path.exists('besancon_test.txt')
# B = asci... | #from astroquery import besancon
#import asciitable
#from astropy.io.ascii.tests.common import assert_equal
# SKIP - don't run tests because Besancon folks don't want them (based on the fact that [email protected] is now rejected)
# def test_besancon_reader():
# #assert os.path.exists('besancon_test.txt')
# B = a... | <commit_before>from astroquery import besancon
import asciitable
from astropy.io.ascii.tests.common import assert_equal
# SKIP - don't run tests because Besancon folks don't want them (based on the fact that [email protected] is now rejected)
# def test_besancon_reader():
# #assert os.path.exists('besancon_test.txt')... | #from astroquery import besancon
#import asciitable
#from astropy.io.ascii.tests.common import assert_equal
# SKIP - don't run tests because Besancon folks don't want them (based on the fact that [email protected] is now rejected)
# def test_besancon_reader():
# #assert os.path.exists('besancon_test.txt')
# B = a... | from astroquery import besancon
import asciitable
from astropy.io.ascii.tests.common import assert_equal
# SKIP - don't run tests because Besancon folks don't want them (based on the fact that [email protected] is now rejected)
# def test_besancon_reader():
# #assert os.path.exists('besancon_test.txt')
# B = asci... | <commit_before>from astroquery import besancon
import asciitable
from astropy.io.ascii.tests.common import assert_equal
# SKIP - don't run tests because Besancon folks don't want them (based on the fact that [email protected] is now rejected)
# def test_besancon_reader():
# #assert os.path.exists('besancon_test.txt')... |
2e1b189727616b4c93ad4244299530c738304428 | httpobs/scanner/utils.py | httpobs/scanner/utils.py | import socket
import tld
def valid_hostname(hostname: str) -> bool:
"""
:param hostname: The hostname requested in the scan
:return: True if it's a valid hostname (fqdn in DNS that's not an IP address), False otherwise
"""
# First, let's try to see if it's an IPv4 address
try:
soc... | import socket
def valid_hostname(hostname: str):
"""
:param hostname: The hostname requested in the scan
:return: Hostname if it's valid, otherwise None
"""
# First, let's try to see if it's an IPv4 address
try:
socket.inet_aton(hostname) # inet_aton() will throw an exception if ... | Remove TLD check, allow for www | Remove TLD check, allow for www
| Python | mpl-2.0 | april/http-observatory,april/http-observatory,april/http-observatory,mozilla/http-observatory,mozilla/http-observatory,mozilla/http-observatory | import socket
import tld
def valid_hostname(hostname: str) -> bool:
"""
:param hostname: The hostname requested in the scan
:return: True if it's a valid hostname (fqdn in DNS that's not an IP address), False otherwise
"""
# First, let's try to see if it's an IPv4 address
try:
soc... | import socket
def valid_hostname(hostname: str):
"""
:param hostname: The hostname requested in the scan
:return: Hostname if it's valid, otherwise None
"""
# First, let's try to see if it's an IPv4 address
try:
socket.inet_aton(hostname) # inet_aton() will throw an exception if ... | <commit_before>import socket
import tld
def valid_hostname(hostname: str) -> bool:
"""
:param hostname: The hostname requested in the scan
:return: True if it's a valid hostname (fqdn in DNS that's not an IP address), False otherwise
"""
# First, let's try to see if it's an IPv4 address
t... | import socket
def valid_hostname(hostname: str):
"""
:param hostname: The hostname requested in the scan
:return: Hostname if it's valid, otherwise None
"""
# First, let's try to see if it's an IPv4 address
try:
socket.inet_aton(hostname) # inet_aton() will throw an exception if ... | import socket
import tld
def valid_hostname(hostname: str) -> bool:
"""
:param hostname: The hostname requested in the scan
:return: True if it's a valid hostname (fqdn in DNS that's not an IP address), False otherwise
"""
# First, let's try to see if it's an IPv4 address
try:
soc... | <commit_before>import socket
import tld
def valid_hostname(hostname: str) -> bool:
"""
:param hostname: The hostname requested in the scan
:return: True if it's a valid hostname (fqdn in DNS that's not an IP address), False otherwise
"""
# First, let's try to see if it's an IPv4 address
t... |
2b48e786c3e2439876ff41fc82bd814b42d40ca4 | app.py | app.py | from flask import Flask
import socket
app = Flask(__name__)
@app.route("/")
def index():
return "Hello from FLASK. My Hostname is: %s \n" % (socket.gethostname())
if __name__ == "__main__":
app.run(host='0.0.0.0')
| #!/usr/bin/env python
from flask import Flask
app = Flask(__name__)
@app.route("/")
def index():
return "Hello from FLASK"
if __name__ == "__main__":
app.run(host='0.0.0.0')
| Revert "Added the output for hostname" | Revert "Added the output for hostname"
This reverts commit 490fa2d10d8a61ede28b794ed446e569f2f30318.
| Python | bsd-2-clause | vioan/minflask | from flask import Flask
import socket
app = Flask(__name__)
@app.route("/")
def index():
return "Hello from FLASK. My Hostname is: %s \n" % (socket.gethostname())
if __name__ == "__main__":
app.run(host='0.0.0.0')
Revert "Added the output for hostname"
This reverts commit 490fa2d10d8a61ede28b794ed446e569f... | #!/usr/bin/env python
from flask import Flask
app = Flask(__name__)
@app.route("/")
def index():
return "Hello from FLASK"
if __name__ == "__main__":
app.run(host='0.0.0.0')
| <commit_before>from flask import Flask
import socket
app = Flask(__name__)
@app.route("/")
def index():
return "Hello from FLASK. My Hostname is: %s \n" % (socket.gethostname())
if __name__ == "__main__":
app.run(host='0.0.0.0')
<commit_msg>Revert "Added the output for hostname"
This reverts commit 490fa2... | #!/usr/bin/env python
from flask import Flask
app = Flask(__name__)
@app.route("/")
def index():
return "Hello from FLASK"
if __name__ == "__main__":
app.run(host='0.0.0.0')
| from flask import Flask
import socket
app = Flask(__name__)
@app.route("/")
def index():
return "Hello from FLASK. My Hostname is: %s \n" % (socket.gethostname())
if __name__ == "__main__":
app.run(host='0.0.0.0')
Revert "Added the output for hostname"
This reverts commit 490fa2d10d8a61ede28b794ed446e569f... | <commit_before>from flask import Flask
import socket
app = Flask(__name__)
@app.route("/")
def index():
return "Hello from FLASK. My Hostname is: %s \n" % (socket.gethostname())
if __name__ == "__main__":
app.run(host='0.0.0.0')
<commit_msg>Revert "Added the output for hostname"
This reverts commit 490fa2... |
c7a424cb3fb0a037cda04c30d44606515aed829d | chrome/test/functional/test_pyauto.py | chrome/test/functional/test_pyauto.py | #!/usr/bin/env python
# Copyright (c) 2011 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import unittest
import pyauto_functional # Must be imported before pyauto
import pyauto
class PyAutoTest(pyauto.PyUITest):
""... | #!/usr/bin/env python
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import unittest
import pyauto_functional # Must be imported before pyauto
import pyauto
class PyAutoTest(pyauto.PyUITest):
""... | Update testSetCustomChromeFlags to only append to chrome flags, not override | Update testSetCustomChromeFlags to only append to chrome flags, not override
This is in keeping with the spirit of the ExtraChromeFlags() method. Whenever
it's overridden, it should only ever append to the list of chrome flags,
never completely override it.
BUG=None
TEST=None
[email protected]
Review URL... | Python | bsd-3-clause | Jonekee/chromium.src,pozdnyakov/chromium-crosswalk,timopulkkinen/BubbleFish,patrickm/chromium.src,littlstar/chromium.src,hujiajie/pa-chromium,jaruba/chromium.src,hgl888/chromium-crosswalk,hujiajie/pa-chromium,junmin-zhu/chromium-rivertrail,PeterWangIntel/chromium-crosswalk,keishi/chromium,jaruba/chromium.src,junmin-zhu... | #!/usr/bin/env python
# Copyright (c) 2011 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import unittest
import pyauto_functional # Must be imported before pyauto
import pyauto
class PyAutoTest(pyauto.PyUITest):
""... | #!/usr/bin/env python
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import unittest
import pyauto_functional # Must be imported before pyauto
import pyauto
class PyAutoTest(pyauto.PyUITest):
""... | <commit_before>#!/usr/bin/env python
# Copyright (c) 2011 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import unittest
import pyauto_functional # Must be imported before pyauto
import pyauto
class PyAutoTest(pyauto.... | #!/usr/bin/env python
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import unittest
import pyauto_functional # Must be imported before pyauto
import pyauto
class PyAutoTest(pyauto.PyUITest):
""... | #!/usr/bin/env python
# Copyright (c) 2011 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import unittest
import pyauto_functional # Must be imported before pyauto
import pyauto
class PyAutoTest(pyauto.PyUITest):
""... | <commit_before>#!/usr/bin/env python
# Copyright (c) 2011 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import unittest
import pyauto_functional # Must be imported before pyauto
import pyauto
class PyAutoTest(pyauto.... |
6c03955a7ef5cea7733daae0aa4895607b40de97 | src/collectors/heartbeat/heartbeat.py | src/collectors/heartbeat/heartbeat.py | # coding=utf-8
"""
Send a value of 1 as a heartbeat every time this collector is invoked.
#### Dependencies
None
#### Usage
Add the collector config as :
enabled = True
path = netuitive
Metrics are collected as :
- metrics.heartbeat
Netuitive Change History
========================
DVG 2016/11/14 In... | # coding=utf-8
"""
Send a value of 1 as a heartbeat every time this collector is invoked.
#### Dependencies
None
#### Usage
Add the collector config as :
enabled = True
path = netuitive
Metrics are collected as :
- metrics.heartbeat
Netuitive Change History
========================
DVG 2016/11/14 In... | Update the HeartbeatCollector to send in Metricly checks | Update the HeartbeatCollector to send in Metricly checks
| Python | mit | Netuitive/netuitive-diamond,Netuitive/netuitive-diamond,Netuitive/netuitive-diamond,Netuitive/netuitive-diamond | # coding=utf-8
"""
Send a value of 1 as a heartbeat every time this collector is invoked.
#### Dependencies
None
#### Usage
Add the collector config as :
enabled = True
path = netuitive
Metrics are collected as :
- metrics.heartbeat
Netuitive Change History
========================
DVG 2016/11/14 In... | # coding=utf-8
"""
Send a value of 1 as a heartbeat every time this collector is invoked.
#### Dependencies
None
#### Usage
Add the collector config as :
enabled = True
path = netuitive
Metrics are collected as :
- metrics.heartbeat
Netuitive Change History
========================
DVG 2016/11/14 In... | <commit_before># coding=utf-8
"""
Send a value of 1 as a heartbeat every time this collector is invoked.
#### Dependencies
None
#### Usage
Add the collector config as :
enabled = True
path = netuitive
Metrics are collected as :
- metrics.heartbeat
Netuitive Change History
========================
DVG 201... | # coding=utf-8
"""
Send a value of 1 as a heartbeat every time this collector is invoked.
#### Dependencies
None
#### Usage
Add the collector config as :
enabled = True
path = netuitive
Metrics are collected as :
- metrics.heartbeat
Netuitive Change History
========================
DVG 2016/11/14 In... | # coding=utf-8
"""
Send a value of 1 as a heartbeat every time this collector is invoked.
#### Dependencies
None
#### Usage
Add the collector config as :
enabled = True
path = netuitive
Metrics are collected as :
- metrics.heartbeat
Netuitive Change History
========================
DVG 2016/11/14 In... | <commit_before># coding=utf-8
"""
Send a value of 1 as a heartbeat every time this collector is invoked.
#### Dependencies
None
#### Usage
Add the collector config as :
enabled = True
path = netuitive
Metrics are collected as :
- metrics.heartbeat
Netuitive Change History
========================
DVG 201... |
03d7ac3697d19b387287d8bcbf166f5cdc7e97f3 | spec/object_mother.py | spec/object_mother.py | from functools import partial
from mamba.example_group import ExampleGroup, PendingExampleGroup
from mamba.example import Example, PendingExample
IRRELEVANT_SUBJECT='irrelevant subject'
def an_example_group(subject=IRRELEVANT_SUBJECT):
return ExampleGroup(IRRELEVANT_SUBJECT)
def a_pending_example_group(subjec... | from functools import partial
from mamba.example_group import ExampleGroup, PendingExampleGroup
from mamba.example import Example, PendingExample
IRRELEVANT_SUBJECT='irrelevant subject'
def an_example_group(subject=IRRELEVANT_SUBJECT):
return ExampleGroup(IRRELEVANT_SUBJECT)
def a_pending_example_group(subjec... | Add a line to end of file | Add a line to end of file
| Python | mit | eferro/mamba,jaimegildesagredo/mamba,markng/mamba,dex4er/mamba,alejandrodob/mamba,nestorsalceda/mamba,angelsanz/mamba | from functools import partial
from mamba.example_group import ExampleGroup, PendingExampleGroup
from mamba.example import Example, PendingExample
IRRELEVANT_SUBJECT='irrelevant subject'
def an_example_group(subject=IRRELEVANT_SUBJECT):
return ExampleGroup(IRRELEVANT_SUBJECT)
def a_pending_example_group(subjec... | from functools import partial
from mamba.example_group import ExampleGroup, PendingExampleGroup
from mamba.example import Example, PendingExample
IRRELEVANT_SUBJECT='irrelevant subject'
def an_example_group(subject=IRRELEVANT_SUBJECT):
return ExampleGroup(IRRELEVANT_SUBJECT)
def a_pending_example_group(subjec... | <commit_before>from functools import partial
from mamba.example_group import ExampleGroup, PendingExampleGroup
from mamba.example import Example, PendingExample
IRRELEVANT_SUBJECT='irrelevant subject'
def an_example_group(subject=IRRELEVANT_SUBJECT):
return ExampleGroup(IRRELEVANT_SUBJECT)
def a_pending_examp... | from functools import partial
from mamba.example_group import ExampleGroup, PendingExampleGroup
from mamba.example import Example, PendingExample
IRRELEVANT_SUBJECT='irrelevant subject'
def an_example_group(subject=IRRELEVANT_SUBJECT):
return ExampleGroup(IRRELEVANT_SUBJECT)
def a_pending_example_group(subjec... | from functools import partial
from mamba.example_group import ExampleGroup, PendingExampleGroup
from mamba.example import Example, PendingExample
IRRELEVANT_SUBJECT='irrelevant subject'
def an_example_group(subject=IRRELEVANT_SUBJECT):
return ExampleGroup(IRRELEVANT_SUBJECT)
def a_pending_example_group(subjec... | <commit_before>from functools import partial
from mamba.example_group import ExampleGroup, PendingExampleGroup
from mamba.example import Example, PendingExample
IRRELEVANT_SUBJECT='irrelevant subject'
def an_example_group(subject=IRRELEVANT_SUBJECT):
return ExampleGroup(IRRELEVANT_SUBJECT)
def a_pending_examp... |
8831254691cec37266282b89e9a603f98142ead0 | sessionhack.py | sessionhack.py | import traceback
import sys
class SessionHackException(Exception):
"""
Raised when something goes wrong.
"""
class SessionHack(object):
"""
The SessionHack middleware is used to catch any exceptions that occur;
this makes debugging easier. Typically debugging can be painful because
... | import traceback
import sys
class SessionHackException(Exception):
"""
Raised when something goes wrong.
"""
class SessionHack(object):
"""
The SessionHack middleware is used to catch any exceptions that occur;
this makes debugging easier. Typically debugging can be painful because
... | Fix encoding on error page. | pyroTorrent: Fix encoding on error page.
| Python | agpl-3.0 | MerlijnWajer/pyroTorrent,MerlijnWajer/pyroTorrent | import traceback
import sys
class SessionHackException(Exception):
"""
Raised when something goes wrong.
"""
class SessionHack(object):
"""
The SessionHack middleware is used to catch any exceptions that occur;
this makes debugging easier. Typically debugging can be painful because
... | import traceback
import sys
class SessionHackException(Exception):
"""
Raised when something goes wrong.
"""
class SessionHack(object):
"""
The SessionHack middleware is used to catch any exceptions that occur;
this makes debugging easier. Typically debugging can be painful because
... | <commit_before>import traceback
import sys
class SessionHackException(Exception):
"""
Raised when something goes wrong.
"""
class SessionHack(object):
"""
The SessionHack middleware is used to catch any exceptions that occur;
this makes debugging easier. Typically debugging can be pain... | import traceback
import sys
class SessionHackException(Exception):
"""
Raised when something goes wrong.
"""
class SessionHack(object):
"""
The SessionHack middleware is used to catch any exceptions that occur;
this makes debugging easier. Typically debugging can be painful because
... | import traceback
import sys
class SessionHackException(Exception):
"""
Raised when something goes wrong.
"""
class SessionHack(object):
"""
The SessionHack middleware is used to catch any exceptions that occur;
this makes debugging easier. Typically debugging can be painful because
... | <commit_before>import traceback
import sys
class SessionHackException(Exception):
"""
Raised when something goes wrong.
"""
class SessionHack(object):
"""
The SessionHack middleware is used to catch any exceptions that occur;
this makes debugging easier. Typically debugging can be pain... |
6440680668d10f2d135914532d34249d96ec75c5 | registration/forms.py | registration/forms.py | from django import forms
from registration import constants
class CompanyForm(forms.Form):
company_number = forms.CharField(
label='Company number',
help_text=('This is the 8-digit number on the company certificate of '
'incorporation.'),
max_length=8,
min_lengt... | from django import forms
from registration import constants
class CompanyForm(forms.Form):
company_number = forms.CharField(
label='Company number',
help_text=('This is the 8-digit number on the company certificate of '
'incorporation.'),
max_length=8,
min_lengt... | Add TODO comment for char limits | Add TODO comment for char limits
| Python | mit | uktrade/directory-ui-supplier,uktrade/directory-ui-supplier,uktrade/directory-ui-supplier | from django import forms
from registration import constants
class CompanyForm(forms.Form):
company_number = forms.CharField(
label='Company number',
help_text=('This is the 8-digit number on the company certificate of '
'incorporation.'),
max_length=8,
min_lengt... | from django import forms
from registration import constants
class CompanyForm(forms.Form):
company_number = forms.CharField(
label='Company number',
help_text=('This is the 8-digit number on the company certificate of '
'incorporation.'),
max_length=8,
min_lengt... | <commit_before>from django import forms
from registration import constants
class CompanyForm(forms.Form):
company_number = forms.CharField(
label='Company number',
help_text=('This is the 8-digit number on the company certificate of '
'incorporation.'),
max_length=8,
... | from django import forms
from registration import constants
class CompanyForm(forms.Form):
company_number = forms.CharField(
label='Company number',
help_text=('This is the 8-digit number on the company certificate of '
'incorporation.'),
max_length=8,
min_lengt... | from django import forms
from registration import constants
class CompanyForm(forms.Form):
company_number = forms.CharField(
label='Company number',
help_text=('This is the 8-digit number on the company certificate of '
'incorporation.'),
max_length=8,
min_lengt... | <commit_before>from django import forms
from registration import constants
class CompanyForm(forms.Form):
company_number = forms.CharField(
label='Company number',
help_text=('This is the 8-digit number on the company certificate of '
'incorporation.'),
max_length=8,
... |
d5ff70922ca22673cbdbadcd8cf745f81f47e7c1 | app.py | app.py | #!/usr/bin/env python3
import os
import flask
class BlogAPI:
def __init__(self):
self.app = flask.Flask(__name__)
self.log = self.app.logger
self.app.config.update(dict(
DATABASE=os.path.join(self.app.root_path, 'blog.db'),
PORT=8080,
))
@self.app.... | #!/usr/bin/env python3
import os
import flask
import sqlite3
from flask import request
import json
class BlogAPI:
def __init__(self):
self.app = flask.Flask(__name__)
self.log = self.app.logger
self.app.config.update(dict(
DATABASE=os.path.join(self.app.root_path, 'blog.db'),... | Implement API endpoints with flask | Implement API endpoints with flask
| Python | mit | stormbeta/blogapi-example,stormbeta/blogapi-example | #!/usr/bin/env python3
import os
import flask
class BlogAPI:
def __init__(self):
self.app = flask.Flask(__name__)
self.log = self.app.logger
self.app.config.update(dict(
DATABASE=os.path.join(self.app.root_path, 'blog.db'),
PORT=8080,
))
@self.app.... | #!/usr/bin/env python3
import os
import flask
import sqlite3
from flask import request
import json
class BlogAPI:
def __init__(self):
self.app = flask.Flask(__name__)
self.log = self.app.logger
self.app.config.update(dict(
DATABASE=os.path.join(self.app.root_path, 'blog.db'),... | <commit_before>#!/usr/bin/env python3
import os
import flask
class BlogAPI:
def __init__(self):
self.app = flask.Flask(__name__)
self.log = self.app.logger
self.app.config.update(dict(
DATABASE=os.path.join(self.app.root_path, 'blog.db'),
PORT=8080,
))
... | #!/usr/bin/env python3
import os
import flask
import sqlite3
from flask import request
import json
class BlogAPI:
def __init__(self):
self.app = flask.Flask(__name__)
self.log = self.app.logger
self.app.config.update(dict(
DATABASE=os.path.join(self.app.root_path, 'blog.db'),... | #!/usr/bin/env python3
import os
import flask
class BlogAPI:
def __init__(self):
self.app = flask.Flask(__name__)
self.log = self.app.logger
self.app.config.update(dict(
DATABASE=os.path.join(self.app.root_path, 'blog.db'),
PORT=8080,
))
@self.app.... | <commit_before>#!/usr/bin/env python3
import os
import flask
class BlogAPI:
def __init__(self):
self.app = flask.Flask(__name__)
self.log = self.app.logger
self.app.config.update(dict(
DATABASE=os.path.join(self.app.root_path, 'blog.db'),
PORT=8080,
))
... |
e28f0accf06462ba365151de571d3d781e62fa9a | skylines/__init__.py | skylines/__init__.py | from flask import Flask
from flask.ext.babel import Babel
from flask.ext.assets import Environment
def create_app():
app = Flask(__name__, static_folder='public')
babel = Babel(app)
assets = Environment(app)
return app
app = create_app()
import skylines.views
| from flask import Flask
from flask.ext.babel import Babel
from flask.ext.assets import Environment
from webassets.loaders import PythonLoader
def create_app():
app = Flask(__name__, static_folder='public')
babel = Babel(app)
bundles = PythonLoader('skylines.assets.bundles').load_bundles()
assets = En... | Load asset bundles into webassets environment | flask: Load asset bundles into webassets environment
| Python | agpl-3.0 | Turbo87/skylines,snip/skylines,TobiasLohner/SkyLines,RBE-Avionik/skylines,kerel-fs/skylines,Harry-R/skylines,Harry-R/skylines,RBE-Avionik/skylines,TobiasLohner/SkyLines,RBE-Avionik/skylines,TobiasLohner/SkyLines,Turbo87/skylines,kerel-fs/skylines,snip/skylines,Turbo87/skylines,snip/skylines,Harry-R/skylines,RBE-Avionik... | from flask import Flask
from flask.ext.babel import Babel
from flask.ext.assets import Environment
def create_app():
app = Flask(__name__, static_folder='public')
babel = Babel(app)
assets = Environment(app)
return app
app = create_app()
import skylines.views
flask: Load asset bundles into webassets... | from flask import Flask
from flask.ext.babel import Babel
from flask.ext.assets import Environment
from webassets.loaders import PythonLoader
def create_app():
app = Flask(__name__, static_folder='public')
babel = Babel(app)
bundles = PythonLoader('skylines.assets.bundles').load_bundles()
assets = En... | <commit_before>from flask import Flask
from flask.ext.babel import Babel
from flask.ext.assets import Environment
def create_app():
app = Flask(__name__, static_folder='public')
babel = Babel(app)
assets = Environment(app)
return app
app = create_app()
import skylines.views
<commit_msg>flask: Load a... | from flask import Flask
from flask.ext.babel import Babel
from flask.ext.assets import Environment
from webassets.loaders import PythonLoader
def create_app():
app = Flask(__name__, static_folder='public')
babel = Babel(app)
bundles = PythonLoader('skylines.assets.bundles').load_bundles()
assets = En... | from flask import Flask
from flask.ext.babel import Babel
from flask.ext.assets import Environment
def create_app():
app = Flask(__name__, static_folder='public')
babel = Babel(app)
assets = Environment(app)
return app
app = create_app()
import skylines.views
flask: Load asset bundles into webassets... | <commit_before>from flask import Flask
from flask.ext.babel import Babel
from flask.ext.assets import Environment
def create_app():
app = Flask(__name__, static_folder='public')
babel = Babel(app)
assets = Environment(app)
return app
app = create_app()
import skylines.views
<commit_msg>flask: Load a... |
9291216b1b2dde182f29cecfc7b6288ade60608b | spec/helper.py | spec/helper.py | from pygametemplate import Game
from example_view import ExampleView
class TestGame(Game):
"""An altered Game class for testing purposes."""
def __init__(self, StartingView, resolution):
super(TestGame, self).__init__(StartingView, resolution)
game = TestGame(ExampleView, (1280, 720))
| from pygametemplate import Game
from example_view import ExampleView
class TestGame(Game): # TODO: remove this useless class
"""An altered Game class for testing purposes."""
def __init__(self, StartingView, resolution):
super(TestGame, self).__init__(StartingView, resolution)
game = TestGame(Exam... | Add TODO comment for removing TestGame class (doesn't do anything now) | Add TODO comment for removing TestGame class (doesn't do anything now)
| Python | mit | AndyDeany/pygame-template | from pygametemplate import Game
from example_view import ExampleView
class TestGame(Game):
"""An altered Game class for testing purposes."""
def __init__(self, StartingView, resolution):
super(TestGame, self).__init__(StartingView, resolution)
game = TestGame(ExampleView, (1280, 720))
Add TODO comme... | from pygametemplate import Game
from example_view import ExampleView
class TestGame(Game): # TODO: remove this useless class
"""An altered Game class for testing purposes."""
def __init__(self, StartingView, resolution):
super(TestGame, self).__init__(StartingView, resolution)
game = TestGame(Exam... | <commit_before>from pygametemplate import Game
from example_view import ExampleView
class TestGame(Game):
"""An altered Game class for testing purposes."""
def __init__(self, StartingView, resolution):
super(TestGame, self).__init__(StartingView, resolution)
game = TestGame(ExampleView, (1280, 720))... | from pygametemplate import Game
from example_view import ExampleView
class TestGame(Game): # TODO: remove this useless class
"""An altered Game class for testing purposes."""
def __init__(self, StartingView, resolution):
super(TestGame, self).__init__(StartingView, resolution)
game = TestGame(Exam... | from pygametemplate import Game
from example_view import ExampleView
class TestGame(Game):
"""An altered Game class for testing purposes."""
def __init__(self, StartingView, resolution):
super(TestGame, self).__init__(StartingView, resolution)
game = TestGame(ExampleView, (1280, 720))
Add TODO comme... | <commit_before>from pygametemplate import Game
from example_view import ExampleView
class TestGame(Game):
"""An altered Game class for testing purposes."""
def __init__(self, StartingView, resolution):
super(TestGame, self).__init__(StartingView, resolution)
game = TestGame(ExampleView, (1280, 720))... |
ae3d07788bb5f95127d83c837976e46d369f0629 | salt/runners/state.py | salt/runners/state.py | '''
Execute overstate functions
'''
# Import salt libs
import salt.overstate
import salt.output
def over(env='base', os_fn=None):
'''
Execute an overstate sequence to orchestrate the executing of states
over a group of systems
'''
overstate = salt.overstate.OverState(__opts__, env, os_fn)
for... | '''
Execute overstate functions
'''
# Import salt libs
import salt.overstate
import salt.output
def over(env='base', os_fn=None):
'''
Execute an overstate sequence to orchestrate the executing of states
over a group of systems
'''
stage_num = 0
overstate = salt.overstate.OverState(__opts__, e... | Make output data cleaner on the eyes :) | Make output data cleaner on the eyes :)
| Python | apache-2.0 | saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt | '''
Execute overstate functions
'''
# Import salt libs
import salt.overstate
import salt.output
def over(env='base', os_fn=None):
'''
Execute an overstate sequence to orchestrate the executing of states
over a group of systems
'''
overstate = salt.overstate.OverState(__opts__, env, os_fn)
for... | '''
Execute overstate functions
'''
# Import salt libs
import salt.overstate
import salt.output
def over(env='base', os_fn=None):
'''
Execute an overstate sequence to orchestrate the executing of states
over a group of systems
'''
stage_num = 0
overstate = salt.overstate.OverState(__opts__, e... | <commit_before>'''
Execute overstate functions
'''
# Import salt libs
import salt.overstate
import salt.output
def over(env='base', os_fn=None):
'''
Execute an overstate sequence to orchestrate the executing of states
over a group of systems
'''
overstate = salt.overstate.OverState(__opts__, env,... | '''
Execute overstate functions
'''
# Import salt libs
import salt.overstate
import salt.output
def over(env='base', os_fn=None):
'''
Execute an overstate sequence to orchestrate the executing of states
over a group of systems
'''
stage_num = 0
overstate = salt.overstate.OverState(__opts__, e... | '''
Execute overstate functions
'''
# Import salt libs
import salt.overstate
import salt.output
def over(env='base', os_fn=None):
'''
Execute an overstate sequence to orchestrate the executing of states
over a group of systems
'''
overstate = salt.overstate.OverState(__opts__, env, os_fn)
for... | <commit_before>'''
Execute overstate functions
'''
# Import salt libs
import salt.overstate
import salt.output
def over(env='base', os_fn=None):
'''
Execute an overstate sequence to orchestrate the executing of states
over a group of systems
'''
overstate = salt.overstate.OverState(__opts__, env,... |
38a4629e034f00c65979910109b34499c077687b | plasmapy/utils/import_helpers.py | plasmapy/utils/import_helpers.py | import importlib
import warnings
from distutils.version import LooseVersion
def check_versions(minimum_versions):
"""Raises an ImportError if a dependent package is not installed
and at the required version number, or provides a warning if the
version of the dependent package cannot be found."""
for ... | import importlib
import warnings
import distutils.version as dv
def check_versions(minimum_versions):
"""Raises an ImportError if a dependent package is not installed
and at the required version number, or provides a warning if the
version of the dependent package cannot be found."""
for module_name i... | Make namespaces more clear in input_helpers.py | Make namespaces more clear in input_helpers.py
| Python | bsd-3-clause | StanczakDominik/PlasmaPy | import importlib
import warnings
from distutils.version import LooseVersion
def check_versions(minimum_versions):
"""Raises an ImportError if a dependent package is not installed
and at the required version number, or provides a warning if the
version of the dependent package cannot be found."""
for ... | import importlib
import warnings
import distutils.version as dv
def check_versions(minimum_versions):
"""Raises an ImportError if a dependent package is not installed
and at the required version number, or provides a warning if the
version of the dependent package cannot be found."""
for module_name i... | <commit_before>import importlib
import warnings
from distutils.version import LooseVersion
def check_versions(minimum_versions):
"""Raises an ImportError if a dependent package is not installed
and at the required version number, or provides a warning if the
version of the dependent package cannot be foun... | import importlib
import warnings
import distutils.version as dv
def check_versions(minimum_versions):
"""Raises an ImportError if a dependent package is not installed
and at the required version number, or provides a warning if the
version of the dependent package cannot be found."""
for module_name i... | import importlib
import warnings
from distutils.version import LooseVersion
def check_versions(minimum_versions):
"""Raises an ImportError if a dependent package is not installed
and at the required version number, or provides a warning if the
version of the dependent package cannot be found."""
for ... | <commit_before>import importlib
import warnings
from distutils.version import LooseVersion
def check_versions(minimum_versions):
"""Raises an ImportError if a dependent package is not installed
and at the required version number, or provides a warning if the
version of the dependent package cannot be foun... |
8348cf481dc098cb5cf583dd86a6923c9c03d5f5 | freight/utils/auth.py | freight/utils/auth.py | from __future__ import absolute_import
from flask import current_app, request, session
from freight.models import User
from freight.testutils.fixtures import Fixtures
NOT_SET = object()
def get_current_user():
"""
Return the currently authenticated user based on their active session.
Will return a dum... | from __future__ import absolute_import
from flask import current_app, request, session
from freight.models import User
NOT_SET = object()
def get_current_user():
"""
Return the currently authenticated user based on their active session.
Will return a dummy user if in development mode.
"""
if ge... | Move fixture import to only be in DEV | Move fixture import to only be in DEV
| Python | apache-2.0 | getsentry/freight,getsentry/freight,getsentry/freight,getsentry/freight,getsentry/freight | from __future__ import absolute_import
from flask import current_app, request, session
from freight.models import User
from freight.testutils.fixtures import Fixtures
NOT_SET = object()
def get_current_user():
"""
Return the currently authenticated user based on their active session.
Will return a dum... | from __future__ import absolute_import
from flask import current_app, request, session
from freight.models import User
NOT_SET = object()
def get_current_user():
"""
Return the currently authenticated user based on their active session.
Will return a dummy user if in development mode.
"""
if ge... | <commit_before>from __future__ import absolute_import
from flask import current_app, request, session
from freight.models import User
from freight.testutils.fixtures import Fixtures
NOT_SET = object()
def get_current_user():
"""
Return the currently authenticated user based on their active session.
Wi... | from __future__ import absolute_import
from flask import current_app, request, session
from freight.models import User
NOT_SET = object()
def get_current_user():
"""
Return the currently authenticated user based on their active session.
Will return a dummy user if in development mode.
"""
if ge... | from __future__ import absolute_import
from flask import current_app, request, session
from freight.models import User
from freight.testutils.fixtures import Fixtures
NOT_SET = object()
def get_current_user():
"""
Return the currently authenticated user based on their active session.
Will return a dum... | <commit_before>from __future__ import absolute_import
from flask import current_app, request, session
from freight.models import User
from freight.testutils.fixtures import Fixtures
NOT_SET = object()
def get_current_user():
"""
Return the currently authenticated user based on their active session.
Wi... |
310ed88c1e0e5014d28f9221363693fe3d729d6b | irrigator_pro/common/views.py | irrigator_pro/common/views.py | from django.shortcuts import render
# Create your views here.
| from django.forms import ModelForm
from common.models import Audit
class AuditForm(ModelForm):
class Meta:
model = Audit
exclude = ( 'cdate',
'mdate',
'cuser',
'muser',
)
def save(self, *args, **kwargs):
kwargs['commit... | Create abstract AuditForm class to be used by Forms by classes that inherit from Audit model. | Create abstract AuditForm class to be used by Forms by classes that inherit from Audit model.
| Python | mit | warnes/irrigatorpro,warnes/irrigatorpro,warnes/irrigatorpro,warnes/irrigatorpro | from django.shortcuts import render
# Create your views here.
Create abstract AuditForm class to be used by Forms by classes that inherit from Audit model. | from django.forms import ModelForm
from common.models import Audit
class AuditForm(ModelForm):
class Meta:
model = Audit
exclude = ( 'cdate',
'mdate',
'cuser',
'muser',
)
def save(self, *args, **kwargs):
kwargs['commit... | <commit_before>from django.shortcuts import render
# Create your views here.
<commit_msg>Create abstract AuditForm class to be used by Forms by classes that inherit from Audit model.<commit_after> | from django.forms import ModelForm
from common.models import Audit
class AuditForm(ModelForm):
class Meta:
model = Audit
exclude = ( 'cdate',
'mdate',
'cuser',
'muser',
)
def save(self, *args, **kwargs):
kwargs['commit... | from django.shortcuts import render
# Create your views here.
Create abstract AuditForm class to be used by Forms by classes that inherit from Audit model.from django.forms import ModelForm
from common.models import Audit
class AuditForm(ModelForm):
class Meta:
model = Audit
exclude = ( 'cdate',
... | <commit_before>from django.shortcuts import render
# Create your views here.
<commit_msg>Create abstract AuditForm class to be used by Forms by classes that inherit from Audit model.<commit_after>from django.forms import ModelForm
from common.models import Audit
class AuditForm(ModelForm):
class Meta:
mod... |
15c60a2380498706a973f23c745a109094670888 | arches/__init__.py | arches/__init__.py | from __future__ import absolute_import
from arches.setup import get_version
try:
from .celery import app as celery_app
except ModuleNotFoundError as e:
print(e)
VERSION = (6, 0, 0, "beta", 0) # VERSION[3] options = "alpha", "beta", "rc", or "final"
__version__ = get_version(VERSION)
# This will make sure t... | from __future__ import absolute_import
from arches.setup import get_version
try:
from .celery import app as celery_app
except ModuleNotFoundError as e:
print(e)
VERSION = (6, 0, 0, "final", 0) # VERSION[3] options = "alpha", "beta", "rc", or "final"
__version__ = get_version(VERSION)
# This will make sure ... | Make release version final for 6.0.0 | Make release version final for 6.0.0
| Python | agpl-3.0 | archesproject/arches,archesproject/arches,archesproject/arches,archesproject/arches | from __future__ import absolute_import
from arches.setup import get_version
try:
from .celery import app as celery_app
except ModuleNotFoundError as e:
print(e)
VERSION = (6, 0, 0, "beta", 0) # VERSION[3] options = "alpha", "beta", "rc", or "final"
__version__ = get_version(VERSION)
# This will make sure t... | from __future__ import absolute_import
from arches.setup import get_version
try:
from .celery import app as celery_app
except ModuleNotFoundError as e:
print(e)
VERSION = (6, 0, 0, "final", 0) # VERSION[3] options = "alpha", "beta", "rc", or "final"
__version__ = get_version(VERSION)
# This will make sure ... | <commit_before>from __future__ import absolute_import
from arches.setup import get_version
try:
from .celery import app as celery_app
except ModuleNotFoundError as e:
print(e)
VERSION = (6, 0, 0, "beta", 0) # VERSION[3] options = "alpha", "beta", "rc", or "final"
__version__ = get_version(VERSION)
# This w... | from __future__ import absolute_import
from arches.setup import get_version
try:
from .celery import app as celery_app
except ModuleNotFoundError as e:
print(e)
VERSION = (6, 0, 0, "final", 0) # VERSION[3] options = "alpha", "beta", "rc", or "final"
__version__ = get_version(VERSION)
# This will make sure ... | from __future__ import absolute_import
from arches.setup import get_version
try:
from .celery import app as celery_app
except ModuleNotFoundError as e:
print(e)
VERSION = (6, 0, 0, "beta", 0) # VERSION[3] options = "alpha", "beta", "rc", or "final"
__version__ = get_version(VERSION)
# This will make sure t... | <commit_before>from __future__ import absolute_import
from arches.setup import get_version
try:
from .celery import app as celery_app
except ModuleNotFoundError as e:
print(e)
VERSION = (6, 0, 0, "beta", 0) # VERSION[3] options = "alpha", "beta", "rc", or "final"
__version__ = get_version(VERSION)
# This w... |
98b5cc41ac2eab72cd312c3f5af94053c3c0d420 | pycket/impersonators/__init__.py | pycket/impersonators/__init__.py |
from pycket import config
if not config.hidden_classes:
from pycket.impersonators.hidden_classes import *
else:
from pycket.impersonators.baseline import *
|
from pycket import config
if config.hidden_classes:
from pycket.impersonators.hidden_classes import *
else:
from pycket.impersonators.baseline import *
| Use hidden classes by default | Use hidden classes by default
| Python | mit | samth/pycket,pycket/pycket,pycket/pycket,samth/pycket,cderici/pycket,magnusmorton/pycket,magnusmorton/pycket,cderici/pycket,cderici/pycket,samth/pycket,pycket/pycket,magnusmorton/pycket |
from pycket import config
if not config.hidden_classes:
from pycket.impersonators.hidden_classes import *
else:
from pycket.impersonators.baseline import *
Use hidden classes by default |
from pycket import config
if config.hidden_classes:
from pycket.impersonators.hidden_classes import *
else:
from pycket.impersonators.baseline import *
| <commit_before>
from pycket import config
if not config.hidden_classes:
from pycket.impersonators.hidden_classes import *
else:
from pycket.impersonators.baseline import *
<commit_msg>Use hidden classes by default<commit_after> |
from pycket import config
if config.hidden_classes:
from pycket.impersonators.hidden_classes import *
else:
from pycket.impersonators.baseline import *
|
from pycket import config
if not config.hidden_classes:
from pycket.impersonators.hidden_classes import *
else:
from pycket.impersonators.baseline import *
Use hidden classes by default
from pycket import config
if config.hidden_classes:
from pycket.impersonators.hidden_classes import *
else:
from py... | <commit_before>
from pycket import config
if not config.hidden_classes:
from pycket.impersonators.hidden_classes import *
else:
from pycket.impersonators.baseline import *
<commit_msg>Use hidden classes by default<commit_after>
from pycket import config
if config.hidden_classes:
from pycket.impersonators.... |
4e1b5e0df263e1d7746cf44c1896c9452f0454e4 | src/filmyou/models.py | src/filmyou/models.py | from django.db import models
class Person(models.Model):
name = models.CharField(max_length=80)
def __unicode__(self):
return self.name
class Genre(models.Model):
name = models.CharField(max_length=40)
def __unicode__(self):
return self.name
class Movie(models.Model):
movie_id... | from django.db import models
class Person(models.Model):
person_id = models.PositiveIntegerField(primary_key=True)
name = models.CharField(max_length=120)
def __unicode__(self):
return self.name
class Genre(models.Model):
genre_id = models.PositiveIntegerField(primary_key=True)
name = m... | Update model to fit data properly. | Update model to fit data properly.
There are some huge titles...
| Python | apache-2.0 | dvalcarce/filmyou-web,dvalcarce/filmyou-web,dvalcarce/filmyou-web | from django.db import models
class Person(models.Model):
name = models.CharField(max_length=80)
def __unicode__(self):
return self.name
class Genre(models.Model):
name = models.CharField(max_length=40)
def __unicode__(self):
return self.name
class Movie(models.Model):
movie_id... | from django.db import models
class Person(models.Model):
person_id = models.PositiveIntegerField(primary_key=True)
name = models.CharField(max_length=120)
def __unicode__(self):
return self.name
class Genre(models.Model):
genre_id = models.PositiveIntegerField(primary_key=True)
name = m... | <commit_before>from django.db import models
class Person(models.Model):
name = models.CharField(max_length=80)
def __unicode__(self):
return self.name
class Genre(models.Model):
name = models.CharField(max_length=40)
def __unicode__(self):
return self.name
class Movie(models.Model... | from django.db import models
class Person(models.Model):
person_id = models.PositiveIntegerField(primary_key=True)
name = models.CharField(max_length=120)
def __unicode__(self):
return self.name
class Genre(models.Model):
genre_id = models.PositiveIntegerField(primary_key=True)
name = m... | from django.db import models
class Person(models.Model):
name = models.CharField(max_length=80)
def __unicode__(self):
return self.name
class Genre(models.Model):
name = models.CharField(max_length=40)
def __unicode__(self):
return self.name
class Movie(models.Model):
movie_id... | <commit_before>from django.db import models
class Person(models.Model):
name = models.CharField(max_length=80)
def __unicode__(self):
return self.name
class Genre(models.Model):
name = models.CharField(max_length=40)
def __unicode__(self):
return self.name
class Movie(models.Model... |
00680e5b6b6a5d1a16e8563c4ed2b5ca5e751901 | shopping_app/utils/helpers.py | shopping_app/utils/helpers.py | import os
import random
import string
from datetime import date, datetime
def random_name():
return ''.join([random.choice(string.ascii_lowercase + string.digits) for n in range(20)])
def json_serial(obj):
"""JSON serializer for objects not serializable by default json code"""
if isinstance(obj, (datet... | import os
import random
import string
from datetime import date, datetime
def random_name():
return ''.join([random.choice(string.ascii_lowercase + string.digits) for n in range(20)])
def json_serial(obj):
"""JSON serializer for objects not serializable by default json code"""
if isinstance(obj, (datet... | Update secret key generator to exclude pantuations | Update secret key generator to exclude pantuations
| Python | mit | gr1d99/shopping-list,gr1d99/shopping-list,gr1d99/shopping-list | import os
import random
import string
from datetime import date, datetime
def random_name():
return ''.join([random.choice(string.ascii_lowercase + string.digits) for n in range(20)])
def json_serial(obj):
"""JSON serializer for objects not serializable by default json code"""
if isinstance(obj, (datet... | import os
import random
import string
from datetime import date, datetime
def random_name():
return ''.join([random.choice(string.ascii_lowercase + string.digits) for n in range(20)])
def json_serial(obj):
"""JSON serializer for objects not serializable by default json code"""
if isinstance(obj, (datet... | <commit_before>import os
import random
import string
from datetime import date, datetime
def random_name():
return ''.join([random.choice(string.ascii_lowercase + string.digits) for n in range(20)])
def json_serial(obj):
"""JSON serializer for objects not serializable by default json code"""
if isinsta... | import os
import random
import string
from datetime import date, datetime
def random_name():
return ''.join([random.choice(string.ascii_lowercase + string.digits) for n in range(20)])
def json_serial(obj):
"""JSON serializer for objects not serializable by default json code"""
if isinstance(obj, (datet... | import os
import random
import string
from datetime import date, datetime
def random_name():
return ''.join([random.choice(string.ascii_lowercase + string.digits) for n in range(20)])
def json_serial(obj):
"""JSON serializer for objects not serializable by default json code"""
if isinstance(obj, (datet... | <commit_before>import os
import random
import string
from datetime import date, datetime
def random_name():
return ''.join([random.choice(string.ascii_lowercase + string.digits) for n in range(20)])
def json_serial(obj):
"""JSON serializer for objects not serializable by default json code"""
if isinsta... |
6e8e84fad2036b7df32376b617c97cb1a2144e94 | shopping_app/utils/helpers.py | shopping_app/utils/helpers.py | import os
import random
import string
from datetime import date, datetime
def random_name():
return ''.join([random.choice(string.ascii_lowercase + string.digits) for n in range(20)])
def json_serial(obj):
"""JSON serializer for objects not serializable by default json code"""
if isinstance(obj, (datet... | import os
import random
import string
from datetime import date, datetime
def random_name():
return ''.join([random.choice(string.ascii_lowercase + string.digits) for n in range(20)])
def json_serial(obj):
"""JSON serializer for objects not serializable by default json code"""
if isinstance(obj, (datet... | Update secret file from to | Update secret file from to
| Python | mit | gr1d99/shopping-list,gr1d99/shopping-list,gr1d99/shopping-list | import os
import random
import string
from datetime import date, datetime
def random_name():
return ''.join([random.choice(string.ascii_lowercase + string.digits) for n in range(20)])
def json_serial(obj):
"""JSON serializer for objects not serializable by default json code"""
if isinstance(obj, (datet... | import os
import random
import string
from datetime import date, datetime
def random_name():
return ''.join([random.choice(string.ascii_lowercase + string.digits) for n in range(20)])
def json_serial(obj):
"""JSON serializer for objects not serializable by default json code"""
if isinstance(obj, (datet... | <commit_before>import os
import random
import string
from datetime import date, datetime
def random_name():
return ''.join([random.choice(string.ascii_lowercase + string.digits) for n in range(20)])
def json_serial(obj):
"""JSON serializer for objects not serializable by default json code"""
if isinsta... | import os
import random
import string
from datetime import date, datetime
def random_name():
return ''.join([random.choice(string.ascii_lowercase + string.digits) for n in range(20)])
def json_serial(obj):
"""JSON serializer for objects not serializable by default json code"""
if isinstance(obj, (datet... | import os
import random
import string
from datetime import date, datetime
def random_name():
return ''.join([random.choice(string.ascii_lowercase + string.digits) for n in range(20)])
def json_serial(obj):
"""JSON serializer for objects not serializable by default json code"""
if isinstance(obj, (datet... | <commit_before>import os
import random
import string
from datetime import date, datetime
def random_name():
return ''.join([random.choice(string.ascii_lowercase + string.digits) for n in range(20)])
def json_serial(obj):
"""JSON serializer for objects not serializable by default json code"""
if isinsta... |
e1b1b4ce02b3504c406208e77df01cf9a047924c | src/ansible/views.py | src/ansible/views.py | from django.shortcuts import get_object_or_404, render
from django.http import HttpResponseRedirect, HttpResponse
from formtools.wizard.views import SessionWizardView
from ansible.models import Github
def index(request):
return HttpResponse("200")
class PlaybookWizard(SessionWizardView):
def get_form_initial(... | from django.shortcuts import get_object_or_404, render
from django.http import HttpResponseRedirect, HttpResponse
from formtools.wizard.views import SessionWizardView
from ansible.models import Github, Playbook
import sys
def index(request):
return HttpResponse("200")
class PlaybookWizard(SessionWizardView):
... | Save form data to DB on each step | Save form data to DB on each step
| Python | bsd-3-clause | lozadaOmr/ansible-admin,lozadaOmr/ansible-admin,lozadaOmr/ansible-admin | from django.shortcuts import get_object_or_404, render
from django.http import HttpResponseRedirect, HttpResponse
from formtools.wizard.views import SessionWizardView
from ansible.models import Github
def index(request):
return HttpResponse("200")
class PlaybookWizard(SessionWizardView):
def get_form_initial(... | from django.shortcuts import get_object_or_404, render
from django.http import HttpResponseRedirect, HttpResponse
from formtools.wizard.views import SessionWizardView
from ansible.models import Github, Playbook
import sys
def index(request):
return HttpResponse("200")
class PlaybookWizard(SessionWizardView):
... | <commit_before>from django.shortcuts import get_object_or_404, render
from django.http import HttpResponseRedirect, HttpResponse
from formtools.wizard.views import SessionWizardView
from ansible.models import Github
def index(request):
return HttpResponse("200")
class PlaybookWizard(SessionWizardView):
def ge... | from django.shortcuts import get_object_or_404, render
from django.http import HttpResponseRedirect, HttpResponse
from formtools.wizard.views import SessionWizardView
from ansible.models import Github, Playbook
import sys
def index(request):
return HttpResponse("200")
class PlaybookWizard(SessionWizardView):
... | from django.shortcuts import get_object_or_404, render
from django.http import HttpResponseRedirect, HttpResponse
from formtools.wizard.views import SessionWizardView
from ansible.models import Github
def index(request):
return HttpResponse("200")
class PlaybookWizard(SessionWizardView):
def get_form_initial(... | <commit_before>from django.shortcuts import get_object_or_404, render
from django.http import HttpResponseRedirect, HttpResponse
from formtools.wizard.views import SessionWizardView
from ansible.models import Github
def index(request):
return HttpResponse("200")
class PlaybookWizard(SessionWizardView):
def ge... |
8155ecbb94696f5ffe1990948f0a60dcc0552ec3 | odbc2csv.py | odbc2csv.py | import pypyodbc
import csv
conn = pypyodbc.connect("DSN=")
cur = conn.cursor()
tables = []
cur.execute("select * from sys.tables")
for row in cur.fetchall():
tables.append(row[0])
for table in tables:
cur.execute("select * from %s" % table)
column_names = []
for d in cur.description:
colu... | import pypyodbc
import csv
conn = pypyodbc.connect("DSN=")
cur = conn.cursor()
tables = []
cur.execute("select * from sys.tables")
for row in cur.fetchall():
tables.append(row[0])
for table in tables:
cur.execute("select * from %s" % table)
column_names = []
for d in cur.description:
colu... | Write binary for CSV file. | Write binary for CSV file. | Python | isc | wablair/misc_scripts,wablair/misc_scripts,wablair/misc_scripts,wablair/misc_scripts | import pypyodbc
import csv
conn = pypyodbc.connect("DSN=")
cur = conn.cursor()
tables = []
cur.execute("select * from sys.tables")
for row in cur.fetchall():
tables.append(row[0])
for table in tables:
cur.execute("select * from %s" % table)
column_names = []
for d in cur.description:
colu... | import pypyodbc
import csv
conn = pypyodbc.connect("DSN=")
cur = conn.cursor()
tables = []
cur.execute("select * from sys.tables")
for row in cur.fetchall():
tables.append(row[0])
for table in tables:
cur.execute("select * from %s" % table)
column_names = []
for d in cur.description:
colu... | <commit_before>import pypyodbc
import csv
conn = pypyodbc.connect("DSN=")
cur = conn.cursor()
tables = []
cur.execute("select * from sys.tables")
for row in cur.fetchall():
tables.append(row[0])
for table in tables:
cur.execute("select * from %s" % table)
column_names = []
for d in cur.descriptio... | import pypyodbc
import csv
conn = pypyodbc.connect("DSN=")
cur = conn.cursor()
tables = []
cur.execute("select * from sys.tables")
for row in cur.fetchall():
tables.append(row[0])
for table in tables:
cur.execute("select * from %s" % table)
column_names = []
for d in cur.description:
colu... | import pypyodbc
import csv
conn = pypyodbc.connect("DSN=")
cur = conn.cursor()
tables = []
cur.execute("select * from sys.tables")
for row in cur.fetchall():
tables.append(row[0])
for table in tables:
cur.execute("select * from %s" % table)
column_names = []
for d in cur.description:
colu... | <commit_before>import pypyodbc
import csv
conn = pypyodbc.connect("DSN=")
cur = conn.cursor()
tables = []
cur.execute("select * from sys.tables")
for row in cur.fetchall():
tables.append(row[0])
for table in tables:
cur.execute("select * from %s" % table)
column_names = []
for d in cur.descriptio... |
ef5a6507c7c409ce3aeca3ac3c61960cbad32ce5 | tests/test_memcache.py | tests/test_memcache.py | #!/usr/bin/env python
# coding=utf8
from simplekv.memory.memcachestore import MemcacheStore
from basic_store import BasicStore, TTLStore
import pytest
memcache = pytest.importorskip('memcache')
class TestMemcacheStore(TTLStore, BasicStore):
@pytest.yield_fixture()
def store(self):
mc = memcache.Cl... | #!/usr/bin/env python
# coding=utf8
from simplekv.memory.memcachestore import MemcacheStore
from basic_store import BasicStore, TTLStore
import pytest
memcache = pytest.importorskip('memcache')
class TestMemcacheStore(TTLStore, BasicStore):
@pytest.yield_fixture()
def store(self):
mc = memcache.Cl... | Disable more tests on memcache. | Disable more tests on memcache.
| Python | mit | mbr/simplekv,fmarczin/simplekv,mbr/simplekv,fmarczin/simplekv,karteek/simplekv,karteek/simplekv | #!/usr/bin/env python
# coding=utf8
from simplekv.memory.memcachestore import MemcacheStore
from basic_store import BasicStore, TTLStore
import pytest
memcache = pytest.importorskip('memcache')
class TestMemcacheStore(TTLStore, BasicStore):
@pytest.yield_fixture()
def store(self):
mc = memcache.Cl... | #!/usr/bin/env python
# coding=utf8
from simplekv.memory.memcachestore import MemcacheStore
from basic_store import BasicStore, TTLStore
import pytest
memcache = pytest.importorskip('memcache')
class TestMemcacheStore(TTLStore, BasicStore):
@pytest.yield_fixture()
def store(self):
mc = memcache.Cl... | <commit_before>#!/usr/bin/env python
# coding=utf8
from simplekv.memory.memcachestore import MemcacheStore
from basic_store import BasicStore, TTLStore
import pytest
memcache = pytest.importorskip('memcache')
class TestMemcacheStore(TTLStore, BasicStore):
@pytest.yield_fixture()
def store(self):
m... | #!/usr/bin/env python
# coding=utf8
from simplekv.memory.memcachestore import MemcacheStore
from basic_store import BasicStore, TTLStore
import pytest
memcache = pytest.importorskip('memcache')
class TestMemcacheStore(TTLStore, BasicStore):
@pytest.yield_fixture()
def store(self):
mc = memcache.Cl... | #!/usr/bin/env python
# coding=utf8
from simplekv.memory.memcachestore import MemcacheStore
from basic_store import BasicStore, TTLStore
import pytest
memcache = pytest.importorskip('memcache')
class TestMemcacheStore(TTLStore, BasicStore):
@pytest.yield_fixture()
def store(self):
mc = memcache.Cl... | <commit_before>#!/usr/bin/env python
# coding=utf8
from simplekv.memory.memcachestore import MemcacheStore
from basic_store import BasicStore, TTLStore
import pytest
memcache = pytest.importorskip('memcache')
class TestMemcacheStore(TTLStore, BasicStore):
@pytest.yield_fixture()
def store(self):
m... |
69fb681cd27b43cc2d5500fcca89df3744b3661c | tests/test_registry.py | tests/test_registry.py | import pytest
from web_test_base import *
class TestIATIRegistry(WebTestBase):
requests_to_load = {
'IATI Registry Homepage - http, no www': {
'url': 'http://iatiregistry.org/'
}
, 'IATI Registry Homepage - http, with www': {
'url': 'http://www.iatiregistry.org/'
... | import pytest
from web_test_base import *
class TestIATIRegistry(WebTestBase):
requests_to_load = {
'IATI Registry Homepage - http, no www': {
'url': 'http://iatiregistry.org/'
}
, 'IATI Registry Homepage - http, with www': {
'url': 'http://www.iatiregistry.org/'
... | Add test for registry registration form | Add test for registry registration form
This adds a test to ensure that the registry registration page
has a registration form with the expected method and number of
inputs.
| Python | mit | IATI/IATI-Website-Tests | import pytest
from web_test_base import *
class TestIATIRegistry(WebTestBase):
requests_to_load = {
'IATI Registry Homepage - http, no www': {
'url': 'http://iatiregistry.org/'
}
, 'IATI Registry Homepage - http, with www': {
'url': 'http://www.iatiregistry.org/'
... | import pytest
from web_test_base import *
class TestIATIRegistry(WebTestBase):
requests_to_load = {
'IATI Registry Homepage - http, no www': {
'url': 'http://iatiregistry.org/'
}
, 'IATI Registry Homepage - http, with www': {
'url': 'http://www.iatiregistry.org/'
... | <commit_before>import pytest
from web_test_base import *
class TestIATIRegistry(WebTestBase):
requests_to_load = {
'IATI Registry Homepage - http, no www': {
'url': 'http://iatiregistry.org/'
}
, 'IATI Registry Homepage - http, with www': {
'url': 'http://www.iatireg... | import pytest
from web_test_base import *
class TestIATIRegistry(WebTestBase):
requests_to_load = {
'IATI Registry Homepage - http, no www': {
'url': 'http://iatiregistry.org/'
}
, 'IATI Registry Homepage - http, with www': {
'url': 'http://www.iatiregistry.org/'
... | import pytest
from web_test_base import *
class TestIATIRegistry(WebTestBase):
requests_to_load = {
'IATI Registry Homepage - http, no www': {
'url': 'http://iatiregistry.org/'
}
, 'IATI Registry Homepage - http, with www': {
'url': 'http://www.iatiregistry.org/'
... | <commit_before>import pytest
from web_test_base import *
class TestIATIRegistry(WebTestBase):
requests_to_load = {
'IATI Registry Homepage - http, no www': {
'url': 'http://iatiregistry.org/'
}
, 'IATI Registry Homepage - http, with www': {
'url': 'http://www.iatireg... |
c0673083709d08f80672cfa58623a667e0edeffa | reddit_adzerk/adzerkads.py | reddit_adzerk/adzerkads.py | from pylons import c, g
from r2.lib.pages import Ads as BaseAds
class Ads(BaseAds):
def __init__(self):
BaseAds.__init__(self)
adzerk_test_srs = g.live_config.get("adzerk_test_srs")
if adzerk_test_srs and c.site.name in adzerk_test_srs:
url_key = "adzerk_https_url" if c.secure... | from urllib import quote
from pylons import c, g
from r2.lib.pages import Ads as BaseAds
class Ads(BaseAds):
def __init__(self):
BaseAds.__init__(self)
adzerk_test_srs = g.live_config.get("adzerk_test_srs")
if adzerk_test_srs and c.site.name in adzerk_test_srs:
url_key = "adz... | Add subreddit query param to adzerk frame. | Add subreddit query param to adzerk frame.
For tracking / targeting.
| Python | bsd-3-clause | madbook/reddit-plugin-adzerk,madbook/reddit-plugin-adzerk,madbook/reddit-plugin-adzerk | from pylons import c, g
from r2.lib.pages import Ads as BaseAds
class Ads(BaseAds):
def __init__(self):
BaseAds.__init__(self)
adzerk_test_srs = g.live_config.get("adzerk_test_srs")
if adzerk_test_srs and c.site.name in adzerk_test_srs:
url_key = "adzerk_https_url" if c.secure... | from urllib import quote
from pylons import c, g
from r2.lib.pages import Ads as BaseAds
class Ads(BaseAds):
def __init__(self):
BaseAds.__init__(self)
adzerk_test_srs = g.live_config.get("adzerk_test_srs")
if adzerk_test_srs and c.site.name in adzerk_test_srs:
url_key = "adz... | <commit_before>from pylons import c, g
from r2.lib.pages import Ads as BaseAds
class Ads(BaseAds):
def __init__(self):
BaseAds.__init__(self)
adzerk_test_srs = g.live_config.get("adzerk_test_srs")
if adzerk_test_srs and c.site.name in adzerk_test_srs:
url_key = "adzerk_https_u... | from urllib import quote
from pylons import c, g
from r2.lib.pages import Ads as BaseAds
class Ads(BaseAds):
def __init__(self):
BaseAds.__init__(self)
adzerk_test_srs = g.live_config.get("adzerk_test_srs")
if adzerk_test_srs and c.site.name in adzerk_test_srs:
url_key = "adz... | from pylons import c, g
from r2.lib.pages import Ads as BaseAds
class Ads(BaseAds):
def __init__(self):
BaseAds.__init__(self)
adzerk_test_srs = g.live_config.get("adzerk_test_srs")
if adzerk_test_srs and c.site.name in adzerk_test_srs:
url_key = "adzerk_https_url" if c.secure... | <commit_before>from pylons import c, g
from r2.lib.pages import Ads as BaseAds
class Ads(BaseAds):
def __init__(self):
BaseAds.__init__(self)
adzerk_test_srs = g.live_config.get("adzerk_test_srs")
if adzerk_test_srs and c.site.name in adzerk_test_srs:
url_key = "adzerk_https_u... |
7e63e514c041ccc12ff5caa01fb4f6684727788b | src/PerformerIndexEntry.py | src/PerformerIndexEntry.py | from BaseIndexEntry import BaseIndexEntry
class PerformerIndexEntry(BaseIndexEntry):
def __init__(self, name, titles, number):
super(PerformerIndexEntry, self).__init__(name, titles, number)
# Set the performer number on each of the titles
for title in self._titles:
title.per... | from BaseIndexEntry import BaseIndexEntry
class PerformerIndexEntry(BaseIndexEntry):
'''A class to hold index data for performers.
Performers have titles and albums.
'''
def __init__(self, name, titles, number):
super(PerformerIndexEntry, self).__init__(name, titles, number)
# Set t... | Store references to albums, add new methods. | Store references to albums, add new methods.
| Python | apache-2.0 | chrrrisw/kmel_db,chrrrisw/kmel_db | from BaseIndexEntry import BaseIndexEntry
class PerformerIndexEntry(BaseIndexEntry):
def __init__(self, name, titles, number):
super(PerformerIndexEntry, self).__init__(name, titles, number)
# Set the performer number on each of the titles
for title in self._titles:
title.per... | from BaseIndexEntry import BaseIndexEntry
class PerformerIndexEntry(BaseIndexEntry):
'''A class to hold index data for performers.
Performers have titles and albums.
'''
def __init__(self, name, titles, number):
super(PerformerIndexEntry, self).__init__(name, titles, number)
# Set t... | <commit_before>from BaseIndexEntry import BaseIndexEntry
class PerformerIndexEntry(BaseIndexEntry):
def __init__(self, name, titles, number):
super(PerformerIndexEntry, self).__init__(name, titles, number)
# Set the performer number on each of the titles
for title in self._titles:
... | from BaseIndexEntry import BaseIndexEntry
class PerformerIndexEntry(BaseIndexEntry):
'''A class to hold index data for performers.
Performers have titles and albums.
'''
def __init__(self, name, titles, number):
super(PerformerIndexEntry, self).__init__(name, titles, number)
# Set t... | from BaseIndexEntry import BaseIndexEntry
class PerformerIndexEntry(BaseIndexEntry):
def __init__(self, name, titles, number):
super(PerformerIndexEntry, self).__init__(name, titles, number)
# Set the performer number on each of the titles
for title in self._titles:
title.per... | <commit_before>from BaseIndexEntry import BaseIndexEntry
class PerformerIndexEntry(BaseIndexEntry):
def __init__(self, name, titles, number):
super(PerformerIndexEntry, self).__init__(name, titles, number)
# Set the performer number on each of the titles
for title in self._titles:
... |
605013815867798a30261e57066163581575832f | tinycart/middleware.py | tinycart/middleware.py | from django.utils.functional import SimpleLazyObject
from tinycart.models import Cart
class CartMiddleware(object):
def process_request(self, request):
request.cart = SimpleLazyObject(
lambda: Cart.objects.get_for_request(request)
)
class HTTPMethodOverrideMiddleware(object):
a... | from django.utils.functional import SimpleLazyObject
from tinycart.models import Cart
class CartMiddleware(object):
def process_request(self, request):
request.cart = SimpleLazyObject(
lambda: Cart.objects.get_for_request(request)
)
class HTTPMethodOverrideMiddleware(object):
a... | Handle encoding in Content-Type header correctly in HTTPMethodOverrideMiddleware | Handle encoding in Content-Type header correctly in HTTPMethodOverrideMiddleware
| Python | bsd-3-clause | vinay13/django-tinycart,trilan/django-tinycart,vinay13/django-tinycart | from django.utils.functional import SimpleLazyObject
from tinycart.models import Cart
class CartMiddleware(object):
def process_request(self, request):
request.cart = SimpleLazyObject(
lambda: Cart.objects.get_for_request(request)
)
class HTTPMethodOverrideMiddleware(object):
a... | from django.utils.functional import SimpleLazyObject
from tinycart.models import Cart
class CartMiddleware(object):
def process_request(self, request):
request.cart = SimpleLazyObject(
lambda: Cart.objects.get_for_request(request)
)
class HTTPMethodOverrideMiddleware(object):
a... | <commit_before>from django.utils.functional import SimpleLazyObject
from tinycart.models import Cart
class CartMiddleware(object):
def process_request(self, request):
request.cart = SimpleLazyObject(
lambda: Cart.objects.get_for_request(request)
)
class HTTPMethodOverrideMiddleware(... | from django.utils.functional import SimpleLazyObject
from tinycart.models import Cart
class CartMiddleware(object):
def process_request(self, request):
request.cart = SimpleLazyObject(
lambda: Cart.objects.get_for_request(request)
)
class HTTPMethodOverrideMiddleware(object):
a... | from django.utils.functional import SimpleLazyObject
from tinycart.models import Cart
class CartMiddleware(object):
def process_request(self, request):
request.cart = SimpleLazyObject(
lambda: Cart.objects.get_for_request(request)
)
class HTTPMethodOverrideMiddleware(object):
a... | <commit_before>from django.utils.functional import SimpleLazyObject
from tinycart.models import Cart
class CartMiddleware(object):
def process_request(self, request):
request.cart = SimpleLazyObject(
lambda: Cart.objects.get_for_request(request)
)
class HTTPMethodOverrideMiddleware(... |
44fd433eec5126bdeac28df2827b452cd2e6bb1a | pavement.py | pavement.py | from paver.easy import sh, task
config = """# replace pass with values you would like to overwrite from DefaultConfig in
# default_config.py. Values you do not explicitly overwrite will be inherited
# from DefaultConfig. At the very least, you must set secret_key and
# tmdb_api_key.
from default_config import Defaul... | import os.path
from paver.easy import sh, task
config = """# replace pass with values you would like to overwrite from DefaultConfig in
# default_config.py. Values you do not explicitly overwrite will be inherited
# from DefaultConfig. At the very least, you must set secret_key and
# tmdb_api_key.
from default_confi... | Check for existing config before writing default | Check for existing config before writing default
| Python | mit | simon-andrews/movieman2,simon-andrews/movieman2 | from paver.easy import sh, task
config = """# replace pass with values you would like to overwrite from DefaultConfig in
# default_config.py. Values you do not explicitly overwrite will be inherited
# from DefaultConfig. At the very least, you must set secret_key and
# tmdb_api_key.
from default_config import Defaul... | import os.path
from paver.easy import sh, task
config = """# replace pass with values you would like to overwrite from DefaultConfig in
# default_config.py. Values you do not explicitly overwrite will be inherited
# from DefaultConfig. At the very least, you must set secret_key and
# tmdb_api_key.
from default_confi... | <commit_before>from paver.easy import sh, task
config = """# replace pass with values you would like to overwrite from DefaultConfig in
# default_config.py. Values you do not explicitly overwrite will be inherited
# from DefaultConfig. At the very least, you must set secret_key and
# tmdb_api_key.
from default_confi... | import os.path
from paver.easy import sh, task
config = """# replace pass with values you would like to overwrite from DefaultConfig in
# default_config.py. Values you do not explicitly overwrite will be inherited
# from DefaultConfig. At the very least, you must set secret_key and
# tmdb_api_key.
from default_confi... | from paver.easy import sh, task
config = """# replace pass with values you would like to overwrite from DefaultConfig in
# default_config.py. Values you do not explicitly overwrite will be inherited
# from DefaultConfig. At the very least, you must set secret_key and
# tmdb_api_key.
from default_config import Defaul... | <commit_before>from paver.easy import sh, task
config = """# replace pass with values you would like to overwrite from DefaultConfig in
# default_config.py. Values you do not explicitly overwrite will be inherited
# from DefaultConfig. At the very least, you must set secret_key and
# tmdb_api_key.
from default_confi... |
bd43c574411d3cc1fa730b792d7648f3dfc799b5 | bibpy/entry/base.py | bibpy/entry/base.py | # -*- coding: utf-8 -*-
"""Base class for all types of entries."""
class BaseEntry(object):
"""Base class for all types of entries."""
def format(self, **options):
raise NotImplementedError()
@property
def entry_type(self):
raise NotImplementedError()
@property
def entry_ke... | # -*- coding: utf-8 -*-
"""Base class for all types of entries."""
class BaseEntry(object):
"""Base class for all types of entries."""
def format(self, **options):
raise NotImplementedError()
@property
def entry_type(self):
raise NotImplementedError()
@property
def entry_ke... | Implement __unicode__ for entry objects | Implement __unicode__ for entry objects
| Python | mit | MisanthropicBit/bibpy,MisanthropicBit/bibpy | # -*- coding: utf-8 -*-
"""Base class for all types of entries."""
class BaseEntry(object):
"""Base class for all types of entries."""
def format(self, **options):
raise NotImplementedError()
@property
def entry_type(self):
raise NotImplementedError()
@property
def entry_ke... | # -*- coding: utf-8 -*-
"""Base class for all types of entries."""
class BaseEntry(object):
"""Base class for all types of entries."""
def format(self, **options):
raise NotImplementedError()
@property
def entry_type(self):
raise NotImplementedError()
@property
def entry_ke... | <commit_before># -*- coding: utf-8 -*-
"""Base class for all types of entries."""
class BaseEntry(object):
"""Base class for all types of entries."""
def format(self, **options):
raise NotImplementedError()
@property
def entry_type(self):
raise NotImplementedError()
@property
... | # -*- coding: utf-8 -*-
"""Base class for all types of entries."""
class BaseEntry(object):
"""Base class for all types of entries."""
def format(self, **options):
raise NotImplementedError()
@property
def entry_type(self):
raise NotImplementedError()
@property
def entry_ke... | # -*- coding: utf-8 -*-
"""Base class for all types of entries."""
class BaseEntry(object):
"""Base class for all types of entries."""
def format(self, **options):
raise NotImplementedError()
@property
def entry_type(self):
raise NotImplementedError()
@property
def entry_ke... | <commit_before># -*- coding: utf-8 -*-
"""Base class for all types of entries."""
class BaseEntry(object):
"""Base class for all types of entries."""
def format(self, **options):
raise NotImplementedError()
@property
def entry_type(self):
raise NotImplementedError()
@property
... |
12791da5f9e4a19e670dcf8459572517d0f467cd | comics/urls.py | comics/urls.py | from __future__ import absolute_import
from django.conf import settings
from django.conf.urls import include, patterns
from django.contrib import admin
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.views.generic.base import TemplateView
admin.autodiscover()
urlpatterns = patterns(''... | from __future__ import absolute_import
from django.conf import settings
from django.conf.urls import include, patterns
from django.contrib import admin
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.views.generic.base import TemplateView
admin.autodiscover()
urlpatterns = patterns(
... | Fix all warnings in top-level urlconf | flake8: Fix all warnings in top-level urlconf
| Python | agpl-3.0 | jodal/comics,datagutten/comics,jodal/comics,datagutten/comics,jodal/comics,jodal/comics,datagutten/comics,datagutten/comics | from __future__ import absolute_import
from django.conf import settings
from django.conf.urls import include, patterns
from django.contrib import admin
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.views.generic.base import TemplateView
admin.autodiscover()
urlpatterns = patterns(''... | from __future__ import absolute_import
from django.conf import settings
from django.conf.urls import include, patterns
from django.contrib import admin
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.views.generic.base import TemplateView
admin.autodiscover()
urlpatterns = patterns(
... | <commit_before>from __future__ import absolute_import
from django.conf import settings
from django.conf.urls import include, patterns
from django.contrib import admin
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.views.generic.base import TemplateView
admin.autodiscover()
urlpattern... | from __future__ import absolute_import
from django.conf import settings
from django.conf.urls import include, patterns
from django.contrib import admin
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.views.generic.base import TemplateView
admin.autodiscover()
urlpatterns = patterns(
... | from __future__ import absolute_import
from django.conf import settings
from django.conf.urls import include, patterns
from django.contrib import admin
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.views.generic.base import TemplateView
admin.autodiscover()
urlpatterns = patterns(''... | <commit_before>from __future__ import absolute_import
from django.conf import settings
from django.conf.urls import include, patterns
from django.contrib import admin
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.views.generic.base import TemplateView
admin.autodiscover()
urlpattern... |
5bffcac159bc28adaf03b05ca75cd7387aad3240 | linked-list/linked-list.py | linked-list/linked-list.py | # LINKED LIST
# define constructor
class Node(object):
def __init__(self, data):
self.data = data
self.next = None
| # LINKED LIST
# define constructor
class Node(object):
def __init__(self, data):
self.data = data
self.next = None
class LinkedList(object):
def __init__(self, head=None):
self.head = head
| Set up linked list class | Set up linked list class
| Python | mit | derekmpham/interview-prep,derekmpham/interview-prep | # LINKED LIST
# define constructor
class Node(object):
def __init__(self, data):
self.data = data
self.next = None
Set up linked list class | # LINKED LIST
# define constructor
class Node(object):
def __init__(self, data):
self.data = data
self.next = None
class LinkedList(object):
def __init__(self, head=None):
self.head = head
| <commit_before># LINKED LIST
# define constructor
class Node(object):
def __init__(self, data):
self.data = data
self.next = None
<commit_msg>Set up linked list class<commit_after> | # LINKED LIST
# define constructor
class Node(object):
def __init__(self, data):
self.data = data
self.next = None
class LinkedList(object):
def __init__(self, head=None):
self.head = head
| # LINKED LIST
# define constructor
class Node(object):
def __init__(self, data):
self.data = data
self.next = None
Set up linked list class# LINKED LIST
# define constructor
class Node(object):
def __init__(self, data):
self.data = data
self.next = None
class LinkedList(object):
def __init__(self, head=No... | <commit_before># LINKED LIST
# define constructor
class Node(object):
def __init__(self, data):
self.data = data
self.next = None
<commit_msg>Set up linked list class<commit_after># LINKED LIST
# define constructor
class Node(object):
def __init__(self, data):
self.data = data
self.next = None
class Linked... |
7e7281bf4b5b6e1bc0284e5d8915a3f740a231dd | setup.py | setup.py | #!/usr/bin/env python
import octo
from distutils.core import setup
if __name__ == "__main__":
with open('README.rst') as file:
long_description = file.read()
setup(name='Octo',
version=octo.__version__,
description=octo.__doc__,
long_description=long_description,
author=octo.__author_... | #!/usr/bin/env python
import octo
from distutils.core import setup
if __name__ == "__main__":
with open('README.rst') as file:
long_description = file.read()
setup(name='Octo',
version=octo.__version__,
description=octo.__doc__,
long_description=long_description,
author=octo.__author_... | Add "Programming Language :: Python :: 2.7" PyPi trove classifier | Add "Programming Language :: Python :: 2.7" PyPi trove classifier
| Python | bsd-2-clause | zoni/octo | #!/usr/bin/env python
import octo
from distutils.core import setup
if __name__ == "__main__":
with open('README.rst') as file:
long_description = file.read()
setup(name='Octo',
version=octo.__version__,
description=octo.__doc__,
long_description=long_description,
author=octo.__author_... | #!/usr/bin/env python
import octo
from distutils.core import setup
if __name__ == "__main__":
with open('README.rst') as file:
long_description = file.read()
setup(name='Octo',
version=octo.__version__,
description=octo.__doc__,
long_description=long_description,
author=octo.__author_... | <commit_before>#!/usr/bin/env python
import octo
from distutils.core import setup
if __name__ == "__main__":
with open('README.rst') as file:
long_description = file.read()
setup(name='Octo',
version=octo.__version__,
description=octo.__doc__,
long_description=long_description,
author... | #!/usr/bin/env python
import octo
from distutils.core import setup
if __name__ == "__main__":
with open('README.rst') as file:
long_description = file.read()
setup(name='Octo',
version=octo.__version__,
description=octo.__doc__,
long_description=long_description,
author=octo.__author_... | #!/usr/bin/env python
import octo
from distutils.core import setup
if __name__ == "__main__":
with open('README.rst') as file:
long_description = file.read()
setup(name='Octo',
version=octo.__version__,
description=octo.__doc__,
long_description=long_description,
author=octo.__author_... | <commit_before>#!/usr/bin/env python
import octo
from distutils.core import setup
if __name__ == "__main__":
with open('README.rst') as file:
long_description = file.read()
setup(name='Octo',
version=octo.__version__,
description=octo.__doc__,
long_description=long_description,
author... |
926479dcaf2c1c4d2b1827b4b6d61bb8289cd7ac | setup.py | setup.py | from distutils.core import setup
with open('README.md') as description:
long_description = description.read()
setup(
name='rmr_django',
version='0.0.1',
author='Rinat Khabibiev',
author_email='[email protected]',
packages=[
'rmr',
'rmr/django',
'rmr/django/middleware',... | from distutils.core import setup
with open('README.md') as description:
long_description = description.read()
setup(
name='rmr_django',
version='0.0.1',
author='Rinat Khabibiev',
author_email='[email protected]',
packages=[
'rmr',
'rmr/django',
'rmr/django/middleware',... | Revert "install_requires is a list now, not iterator" | Revert "install_requires is a list now, not iterator"
This reverts commit d36bcafb69a67d623c9e28f7dad5113783246419.
| Python | mit | RedMadRobot/rmr_django | from distutils.core import setup
with open('README.md') as description:
long_description = description.read()
setup(
name='rmr_django',
version='0.0.1',
author='Rinat Khabibiev',
author_email='[email protected]',
packages=[
'rmr',
'rmr/django',
'rmr/django/middleware',... | from distutils.core import setup
with open('README.md') as description:
long_description = description.read()
setup(
name='rmr_django',
version='0.0.1',
author='Rinat Khabibiev',
author_email='[email protected]',
packages=[
'rmr',
'rmr/django',
'rmr/django/middleware',... | <commit_before>from distutils.core import setup
with open('README.md') as description:
long_description = description.read()
setup(
name='rmr_django',
version='0.0.1',
author='Rinat Khabibiev',
author_email='[email protected]',
packages=[
'rmr',
'rmr/django',
'rmr/djan... | from distutils.core import setup
with open('README.md') as description:
long_description = description.read()
setup(
name='rmr_django',
version='0.0.1',
author='Rinat Khabibiev',
author_email='[email protected]',
packages=[
'rmr',
'rmr/django',
'rmr/django/middleware',... | from distutils.core import setup
with open('README.md') as description:
long_description = description.read()
setup(
name='rmr_django',
version='0.0.1',
author='Rinat Khabibiev',
author_email='[email protected]',
packages=[
'rmr',
'rmr/django',
'rmr/django/middleware',... | <commit_before>from distutils.core import setup
with open('README.md') as description:
long_description = description.read()
setup(
name='rmr_django',
version='0.0.1',
author='Rinat Khabibiev',
author_email='[email protected]',
packages=[
'rmr',
'rmr/django',
'rmr/djan... |
5d15610105c6c5f56b31ae5ba581245cc54ad256 | setup.py | setup.py | import codecs
from os import path
from textwrap import dedent
from setuptools import setup
here = path.abspath(path.dirname(__file__))
with codecs.open(path.join(here, "README.rst"), encoding='utf-8') as f:
long_description = f.read()
setup(
name='python-jsonstore',
use_scm_version=True,
description... | import codecs
from os import path
from textwrap import dedent
from setuptools import setup
here = path.abspath(path.dirname(__file__))
with codecs.open(path.join(here, "README.rst"), encoding='utf-8') as f:
long_description = f.read()
setup(
name='python-jsonstore',
use_scm_version=True,
description... | Fix long description content type | Fix long description content type
| Python | mit | Code0x58/python-jsonstore | import codecs
from os import path
from textwrap import dedent
from setuptools import setup
here = path.abspath(path.dirname(__file__))
with codecs.open(path.join(here, "README.rst"), encoding='utf-8') as f:
long_description = f.read()
setup(
name='python-jsonstore',
use_scm_version=True,
description... | import codecs
from os import path
from textwrap import dedent
from setuptools import setup
here = path.abspath(path.dirname(__file__))
with codecs.open(path.join(here, "README.rst"), encoding='utf-8') as f:
long_description = f.read()
setup(
name='python-jsonstore',
use_scm_version=True,
description... | <commit_before>import codecs
from os import path
from textwrap import dedent
from setuptools import setup
here = path.abspath(path.dirname(__file__))
with codecs.open(path.join(here, "README.rst"), encoding='utf-8') as f:
long_description = f.read()
setup(
name='python-jsonstore',
use_scm_version=True,
... | import codecs
from os import path
from textwrap import dedent
from setuptools import setup
here = path.abspath(path.dirname(__file__))
with codecs.open(path.join(here, "README.rst"), encoding='utf-8') as f:
long_description = f.read()
setup(
name='python-jsonstore',
use_scm_version=True,
description... | import codecs
from os import path
from textwrap import dedent
from setuptools import setup
here = path.abspath(path.dirname(__file__))
with codecs.open(path.join(here, "README.rst"), encoding='utf-8') as f:
long_description = f.read()
setup(
name='python-jsonstore',
use_scm_version=True,
description... | <commit_before>import codecs
from os import path
from textwrap import dedent
from setuptools import setup
here = path.abspath(path.dirname(__file__))
with codecs.open(path.join(here, "README.rst"), encoding='utf-8') as f:
long_description = f.read()
setup(
name='python-jsonstore',
use_scm_version=True,
... |
910da5e31c04cf8e3063297317f1b9ced0a79be1 | setup.py | setup.py | """
pip-tools keeps your pinned dependencies fresh.
"""
import sys
from setuptools import setup
setup(
name='pip-tools',
version='0.2',
url='https://github.com/nvie/pip-tools/',
license='BSD',
author='Vincent Driessen',
author_email='[email protected]',
description=__doc__,
#package... | """
pip-tools keeps your pinned dependencies fresh.
"""
import sys
from setuptools import setup
def get_dependencies():
deps = []
if sys.version_info < (2, 7):
deps += ['argparse']
return deps
setup(
name='pip-tools',
version='0.2',
url='https://github.com/nvie/pip-tools/',
licen... | Make argparse an optional dependency (and avoid pinning in a library). | Make argparse an optional dependency (and avoid pinning in a library).
| Python | bsd-2-clause | suutari-ai/prequ,suutari/prequ,suutari/prequ | """
pip-tools keeps your pinned dependencies fresh.
"""
import sys
from setuptools import setup
setup(
name='pip-tools',
version='0.2',
url='https://github.com/nvie/pip-tools/',
license='BSD',
author='Vincent Driessen',
author_email='[email protected]',
description=__doc__,
#package... | """
pip-tools keeps your pinned dependencies fresh.
"""
import sys
from setuptools import setup
def get_dependencies():
deps = []
if sys.version_info < (2, 7):
deps += ['argparse']
return deps
setup(
name='pip-tools',
version='0.2',
url='https://github.com/nvie/pip-tools/',
licen... | <commit_before>"""
pip-tools keeps your pinned dependencies fresh.
"""
import sys
from setuptools import setup
setup(
name='pip-tools',
version='0.2',
url='https://github.com/nvie/pip-tools/',
license='BSD',
author='Vincent Driessen',
author_email='[email protected]',
description=__doc_... | """
pip-tools keeps your pinned dependencies fresh.
"""
import sys
from setuptools import setup
def get_dependencies():
deps = []
if sys.version_info < (2, 7):
deps += ['argparse']
return deps
setup(
name='pip-tools',
version='0.2',
url='https://github.com/nvie/pip-tools/',
licen... | """
pip-tools keeps your pinned dependencies fresh.
"""
import sys
from setuptools import setup
setup(
name='pip-tools',
version='0.2',
url='https://github.com/nvie/pip-tools/',
license='BSD',
author='Vincent Driessen',
author_email='[email protected]',
description=__doc__,
#package... | <commit_before>"""
pip-tools keeps your pinned dependencies fresh.
"""
import sys
from setuptools import setup
setup(
name='pip-tools',
version='0.2',
url='https://github.com/nvie/pip-tools/',
license='BSD',
author='Vincent Driessen',
author_email='[email protected]',
description=__doc_... |
705ddfba46334f5bc00387281bd9360ca49afa04 | setup.py | setup.py | # coding=utf-8
import sys
cmdclass = {}
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
else:
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def initialize_options(self):
TestCommand.initialize_options(self... | # coding=utf-8
import sys
cmdclass = {}
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
else:
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def initialize_options(self):
TestCommand.initialize_options(self... | Remove requests dependency upper version constraint | Remove requests dependency upper version constraint
Removes the undocumented and outdated upper version constraint
for the requests dependency.
| Python | mit | AntagonistHQ/openprovider.py | # coding=utf-8
import sys
cmdclass = {}
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
else:
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def initialize_options(self):
TestCommand.initialize_options(self... | # coding=utf-8
import sys
cmdclass = {}
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
else:
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def initialize_options(self):
TestCommand.initialize_options(self... | <commit_before># coding=utf-8
import sys
cmdclass = {}
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
else:
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def initialize_options(self):
TestCommand.initiali... | # coding=utf-8
import sys
cmdclass = {}
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
else:
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def initialize_options(self):
TestCommand.initialize_options(self... | # coding=utf-8
import sys
cmdclass = {}
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
else:
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def initialize_options(self):
TestCommand.initialize_options(self... | <commit_before># coding=utf-8
import sys
cmdclass = {}
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
else:
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def initialize_options(self):
TestCommand.initiali... |
e2e2a0ac1d36c304f6dffc7c15d37ff17225a23e | setup.py | setup.py | #!/usr/bin/python
from distutils.core import setup
from glob import glob
# Scripts whose names end in a-z or 1-9 (avoids emacs backup files)
scripts = glob('scripts/*[a-z,1-9]')
setup(name='vasputil',
version='5.7',
description='VASP utilities',
author='Janne Blomqvist',
author_email='Janne.B... | #!/usr/bin/python
from distutils.core import setup
from glob import glob
# Scripts whose names end in a-z or 1-9 (avoids emacs backup files)
scripts = glob('scripts/*[a-z,1-9]')
setup(name='vasputil',
version='master',
description='VASP utilities',
author='Janne Blomqvist',
author_email='Jann... | Change version to master branch | Change version to master branch
| Python | lgpl-2.1 | jabl/vasputil,oren88/vasputil,oren88/vasputil,jabl/vasputil | #!/usr/bin/python
from distutils.core import setup
from glob import glob
# Scripts whose names end in a-z or 1-9 (avoids emacs backup files)
scripts = glob('scripts/*[a-z,1-9]')
setup(name='vasputil',
version='5.7',
description='VASP utilities',
author='Janne Blomqvist',
author_email='Janne.B... | #!/usr/bin/python
from distutils.core import setup
from glob import glob
# Scripts whose names end in a-z or 1-9 (avoids emacs backup files)
scripts = glob('scripts/*[a-z,1-9]')
setup(name='vasputil',
version='master',
description='VASP utilities',
author='Janne Blomqvist',
author_email='Jann... | <commit_before>#!/usr/bin/python
from distutils.core import setup
from glob import glob
# Scripts whose names end in a-z or 1-9 (avoids emacs backup files)
scripts = glob('scripts/*[a-z,1-9]')
setup(name='vasputil',
version='5.7',
description='VASP utilities',
author='Janne Blomqvist',
author... | #!/usr/bin/python
from distutils.core import setup
from glob import glob
# Scripts whose names end in a-z or 1-9 (avoids emacs backup files)
scripts = glob('scripts/*[a-z,1-9]')
setup(name='vasputil',
version='master',
description='VASP utilities',
author='Janne Blomqvist',
author_email='Jann... | #!/usr/bin/python
from distutils.core import setup
from glob import glob
# Scripts whose names end in a-z or 1-9 (avoids emacs backup files)
scripts = glob('scripts/*[a-z,1-9]')
setup(name='vasputil',
version='5.7',
description='VASP utilities',
author='Janne Blomqvist',
author_email='Janne.B... | <commit_before>#!/usr/bin/python
from distutils.core import setup
from glob import glob
# Scripts whose names end in a-z or 1-9 (avoids emacs backup files)
scripts = glob('scripts/*[a-z,1-9]')
setup(name='vasputil',
version='5.7',
description='VASP utilities',
author='Janne Blomqvist',
author... |
b3802d06436943c4146735c412efcf9e0f19af03 | setup.py | setup.py | # coding=utf-8
from setuptools import setup, find_packages
setup(
name="django-celery-transactions",
version="0.1.2",
description="Django transaction support for Celery tasks.",
long_description="See https://github.com/chrisdoble/django-celery-transactions",
author="Chris Doble",
author_email=... | # coding=utf-8
from setuptools import setup, find_packages
setup(
name="django-celery-transactions",
version="0.1.3",
description="Django transaction support for Celery tasks.",
long_description="See https://github.com/chrisdoble/django-celery-transactions",
author="Chris Doble",
author_email=... | Reduce version requirements, bump to v0.1.3. | Reduce version requirements, bump to v0.1.3.
| Python | bsd-2-clause | stored/django-celery-transactions,bradleyayers/django-celery-transactions,roverdotcom/django-celery-transactions,fellowshipofone/django-celery-transactions | # coding=utf-8
from setuptools import setup, find_packages
setup(
name="django-celery-transactions",
version="0.1.2",
description="Django transaction support for Celery tasks.",
long_description="See https://github.com/chrisdoble/django-celery-transactions",
author="Chris Doble",
author_email=... | # coding=utf-8
from setuptools import setup, find_packages
setup(
name="django-celery-transactions",
version="0.1.3",
description="Django transaction support for Celery tasks.",
long_description="See https://github.com/chrisdoble/django-celery-transactions",
author="Chris Doble",
author_email=... | <commit_before># coding=utf-8
from setuptools import setup, find_packages
setup(
name="django-celery-transactions",
version="0.1.2",
description="Django transaction support for Celery tasks.",
long_description="See https://github.com/chrisdoble/django-celery-transactions",
author="Chris Doble",
... | # coding=utf-8
from setuptools import setup, find_packages
setup(
name="django-celery-transactions",
version="0.1.3",
description="Django transaction support for Celery tasks.",
long_description="See https://github.com/chrisdoble/django-celery-transactions",
author="Chris Doble",
author_email=... | # coding=utf-8
from setuptools import setup, find_packages
setup(
name="django-celery-transactions",
version="0.1.2",
description="Django transaction support for Celery tasks.",
long_description="See https://github.com/chrisdoble/django-celery-transactions",
author="Chris Doble",
author_email=... | <commit_before># coding=utf-8
from setuptools import setup, find_packages
setup(
name="django-celery-transactions",
version="0.1.2",
description="Django transaction support for Celery tasks.",
long_description="See https://github.com/chrisdoble/django-celery-transactions",
author="Chris Doble",
... |
11d9294323bb975549608a1889e0f6616c54431d | setup.py | setup.py | import re
from setuptools import setup
with open('nexmo/__init__.py', 'r') as fd:
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', fd.read(), re.MULTILINE).group(1)
setup(name='nexmo',
version=version,
description='Nexmo Client Library for Python',
long_description='This is the Py... | import re
from setuptools import setup
with open('nexmo/__init__.py', 'r') as fd:
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', fd.read(), re.MULTILINE).group(1)
setup(name='nexmo',
version=version,
description='Nexmo Client Library for Python',
long_description='This is the Py... | Add Python 3.6 as a supported version. | Add Python 3.6 as a supported version.
| Python | mit | Nexmo/nexmo-python | import re
from setuptools import setup
with open('nexmo/__init__.py', 'r') as fd:
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', fd.read(), re.MULTILINE).group(1)
setup(name='nexmo',
version=version,
description='Nexmo Client Library for Python',
long_description='This is the Py... | import re
from setuptools import setup
with open('nexmo/__init__.py', 'r') as fd:
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', fd.read(), re.MULTILINE).group(1)
setup(name='nexmo',
version=version,
description='Nexmo Client Library for Python',
long_description='This is the Py... | <commit_before>import re
from setuptools import setup
with open('nexmo/__init__.py', 'r') as fd:
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', fd.read(), re.MULTILINE).group(1)
setup(name='nexmo',
version=version,
description='Nexmo Client Library for Python',
long_description=... | import re
from setuptools import setup
with open('nexmo/__init__.py', 'r') as fd:
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', fd.read(), re.MULTILINE).group(1)
setup(name='nexmo',
version=version,
description='Nexmo Client Library for Python',
long_description='This is the Py... | import re
from setuptools import setup
with open('nexmo/__init__.py', 'r') as fd:
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', fd.read(), re.MULTILINE).group(1)
setup(name='nexmo',
version=version,
description='Nexmo Client Library for Python',
long_description='This is the Py... | <commit_before>import re
from setuptools import setup
with open('nexmo/__init__.py', 'r') as fd:
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', fd.read(), re.MULTILINE).group(1)
setup(name='nexmo',
version=version,
description='Nexmo Client Library for Python',
long_description=... |
177c4d85c6110890ef1c6085bbe0fb6ae8b332a7 | setup.py | setup.py | #!/usr/bin/env python
from os import path
from setuptools import setup, find_packages
def read(name):
return open(path.join(path.dirname(__file__), name)).read()
setup(
name='django-basic-stats',
description=("django-basic-stats is a simple traffic statistics application. "
"It show late... | #!/usr/bin/env python
from os import path
from setuptools import setup, find_packages
def read(name):
return open(path.join(path.dirname(__file__), name)).read()
setup(
name='django-basic-stats',
description=("django-basic-stats is a simple traffic statistics application. "
"It show late... | Install templates with the egg. | Install templates with the egg.
| Python | mit | riklaunim/django-basic-stats,riklaunim/django-basic-stats | #!/usr/bin/env python
from os import path
from setuptools import setup, find_packages
def read(name):
return open(path.join(path.dirname(__file__), name)).read()
setup(
name='django-basic-stats',
description=("django-basic-stats is a simple traffic statistics application. "
"It show late... | #!/usr/bin/env python
from os import path
from setuptools import setup, find_packages
def read(name):
return open(path.join(path.dirname(__file__), name)).read()
setup(
name='django-basic-stats',
description=("django-basic-stats is a simple traffic statistics application. "
"It show late... | <commit_before>#!/usr/bin/env python
from os import path
from setuptools import setup, find_packages
def read(name):
return open(path.join(path.dirname(__file__), name)).read()
setup(
name='django-basic-stats',
description=("django-basic-stats is a simple traffic statistics application. "
... | #!/usr/bin/env python
from os import path
from setuptools import setup, find_packages
def read(name):
return open(path.join(path.dirname(__file__), name)).read()
setup(
name='django-basic-stats',
description=("django-basic-stats is a simple traffic statistics application. "
"It show late... | #!/usr/bin/env python
from os import path
from setuptools import setup, find_packages
def read(name):
return open(path.join(path.dirname(__file__), name)).read()
setup(
name='django-basic-stats',
description=("django-basic-stats is a simple traffic statistics application. "
"It show late... | <commit_before>#!/usr/bin/env python
from os import path
from setuptools import setup, find_packages
def read(name):
return open(path.join(path.dirname(__file__), name)).read()
setup(
name='django-basic-stats',
description=("django-basic-stats is a simple traffic statistics application. "
... |
bd5c1416f356382e5e5b991c29fd0876c845e206 | setup.py | setup.py | from setuptools import setup
with open('README.rst') as f:
long_desc = f.read()
setup(
name='ttrss-python',
version='0.4',
description='A client library for the Tiny Tiny RSS web API',
long_description=long_desc,
url='https://github.com/Vassius/ttrss-python',
author... | from setuptools import setup
with open('README.rst') as f:
long_desc = f.read()
setup(
name='ttrss-python',
version='0.5',
description='A client library for the Tiny Tiny RSS web API',
long_description=long_desc,
url='https://github.com/Vassius/ttrss-python',
author... | Bump version number to 0.5 | Bump version number to 0.5
| Python | mit | Vassius/ttrss-python | from setuptools import setup
with open('README.rst') as f:
long_desc = f.read()
setup(
name='ttrss-python',
version='0.4',
description='A client library for the Tiny Tiny RSS web API',
long_description=long_desc,
url='https://github.com/Vassius/ttrss-python',
author... | from setuptools import setup
with open('README.rst') as f:
long_desc = f.read()
setup(
name='ttrss-python',
version='0.5',
description='A client library for the Tiny Tiny RSS web API',
long_description=long_desc,
url='https://github.com/Vassius/ttrss-python',
author... | <commit_before>from setuptools import setup
with open('README.rst') as f:
long_desc = f.read()
setup(
name='ttrss-python',
version='0.4',
description='A client library for the Tiny Tiny RSS web API',
long_description=long_desc,
url='https://github.com/Vassius/ttrss-python',... | from setuptools import setup
with open('README.rst') as f:
long_desc = f.read()
setup(
name='ttrss-python',
version='0.5',
description='A client library for the Tiny Tiny RSS web API',
long_description=long_desc,
url='https://github.com/Vassius/ttrss-python',
author... | from setuptools import setup
with open('README.rst') as f:
long_desc = f.read()
setup(
name='ttrss-python',
version='0.4',
description='A client library for the Tiny Tiny RSS web API',
long_description=long_desc,
url='https://github.com/Vassius/ttrss-python',
author... | <commit_before>from setuptools import setup
with open('README.rst') as f:
long_desc = f.read()
setup(
name='ttrss-python',
version='0.4',
description='A client library for the Tiny Tiny RSS web API',
long_description=long_desc,
url='https://github.com/Vassius/ttrss-python',... |
b9dd839b2b5287ba31416ef4e3746dc46bd812c2 | setup.py | setup.py | # -*- coding: utf-8 -*-
import os
from setuptools import setup
def read(fname):
try:
return open(os.path.join(os.path.dirname(__file__), fname)).read()
except Exception:
return ""
setup(
name="todoist-python",
version="8.1.2",
packages=["todoist", "todoist.managers"],
author... | # -*- coding: utf-8 -*-
import os
from setuptools import setup
def read(fname):
try:
return open(os.path.join(os.path.dirname(__file__), fname)).read()
except Exception:
return ""
setup(
name="todoist-python",
version="8.1.3",
packages=["todoist", "todoist.managers"],
author... | Update the author name and bump version | Update the author name and bump version
This new version should fix the problem of installing `typing`.
| Python | mit | Doist/todoist-python | # -*- coding: utf-8 -*-
import os
from setuptools import setup
def read(fname):
try:
return open(os.path.join(os.path.dirname(__file__), fname)).read()
except Exception:
return ""
setup(
name="todoist-python",
version="8.1.2",
packages=["todoist", "todoist.managers"],
author... | # -*- coding: utf-8 -*-
import os
from setuptools import setup
def read(fname):
try:
return open(os.path.join(os.path.dirname(__file__), fname)).read()
except Exception:
return ""
setup(
name="todoist-python",
version="8.1.3",
packages=["todoist", "todoist.managers"],
author... | <commit_before># -*- coding: utf-8 -*-
import os
from setuptools import setup
def read(fname):
try:
return open(os.path.join(os.path.dirname(__file__), fname)).read()
except Exception:
return ""
setup(
name="todoist-python",
version="8.1.2",
packages=["todoist", "todoist.manager... | # -*- coding: utf-8 -*-
import os
from setuptools import setup
def read(fname):
try:
return open(os.path.join(os.path.dirname(__file__), fname)).read()
except Exception:
return ""
setup(
name="todoist-python",
version="8.1.3",
packages=["todoist", "todoist.managers"],
author... | # -*- coding: utf-8 -*-
import os
from setuptools import setup
def read(fname):
try:
return open(os.path.join(os.path.dirname(__file__), fname)).read()
except Exception:
return ""
setup(
name="todoist-python",
version="8.1.2",
packages=["todoist", "todoist.managers"],
author... | <commit_before># -*- coding: utf-8 -*-
import os
from setuptools import setup
def read(fname):
try:
return open(os.path.join(os.path.dirname(__file__), fname)).read()
except Exception:
return ""
setup(
name="todoist-python",
version="8.1.2",
packages=["todoist", "todoist.manager... |
63c8f5f56c9fc14258be62be41a42525cd616a81 | setup.py | setup.py | from distutils.core import setup
setup(
name='docker-pipeline',
version='1.0.0',
packages=[''],
url='https://github.com/Duke-GCB/docker-pipeline',
license='MIT',
author='dcl9',
author_email='[email protected]',
description='Run docker containers in sequence, for reproducible computatio... | from distutils.core import setup
setup(
name='docker-pipeline',
version='1.0.0',
packages=[''],
package_data={'': ['docker-pipeline-wrapper.sh']},
include_package_data=True,
url='https://github.com/Duke-GCB/docker-pipeline',
license='MIT',
author='dcl9',
author_email='dan.leehr@duke... | Include wrapper script in dist | Include wrapper script in dist
| Python | mit | Duke-GCB/docker-pipeline,Duke-GCB/docker-pipeline | from distutils.core import setup
setup(
name='docker-pipeline',
version='1.0.0',
packages=[''],
url='https://github.com/Duke-GCB/docker-pipeline',
license='MIT',
author='dcl9',
author_email='[email protected]',
description='Run docker containers in sequence, for reproducible computatio... | from distutils.core import setup
setup(
name='docker-pipeline',
version='1.0.0',
packages=[''],
package_data={'': ['docker-pipeline-wrapper.sh']},
include_package_data=True,
url='https://github.com/Duke-GCB/docker-pipeline',
license='MIT',
author='dcl9',
author_email='dan.leehr@duke... | <commit_before>from distutils.core import setup
setup(
name='docker-pipeline',
version='1.0.0',
packages=[''],
url='https://github.com/Duke-GCB/docker-pipeline',
license='MIT',
author='dcl9',
author_email='[email protected]',
description='Run docker containers in sequence, for reproduc... | from distutils.core import setup
setup(
name='docker-pipeline',
version='1.0.0',
packages=[''],
package_data={'': ['docker-pipeline-wrapper.sh']},
include_package_data=True,
url='https://github.com/Duke-GCB/docker-pipeline',
license='MIT',
author='dcl9',
author_email='dan.leehr@duke... | from distutils.core import setup
setup(
name='docker-pipeline',
version='1.0.0',
packages=[''],
url='https://github.com/Duke-GCB/docker-pipeline',
license='MIT',
author='dcl9',
author_email='[email protected]',
description='Run docker containers in sequence, for reproducible computatio... | <commit_before>from distutils.core import setup
setup(
name='docker-pipeline',
version='1.0.0',
packages=[''],
url='https://github.com/Duke-GCB/docker-pipeline',
license='MIT',
author='dcl9',
author_email='[email protected]',
description='Run docker containers in sequence, for reproduc... |
4e4ea022b75a9c0208a2ae9560ffb7fc5d306381 | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup, find_packages
from distutils.core import Extension
VERSION = '1.0.5'
LONG_DESCRIPTION = """
A numerical geometric algebra module for python. BSD License.
"""
setup(name='clifford',
version=VERSION,
license='bsd',
description='Numerical Geometric Algebra Module',
... | #!/usr/bin/env python
from setuptools import setup, find_packages
from distutils.core import Extension
VERSION = '1.0.5'
LONG_DESCRIPTION = """
A numerical geometric algebra module for python. BSD License.
"""
setup(
name='clifford',
version=VERSION,
license='bsd',
description='Numerical Geometric Alge... | Add PyPI classifiers and python_requires | Add PyPI classifiers and python_requires
| Python | bsd-3-clause | arsenovic/clifford,arsenovic/clifford | #!/usr/bin/env python
from setuptools import setup, find_packages
from distutils.core import Extension
VERSION = '1.0.5'
LONG_DESCRIPTION = """
A numerical geometric algebra module for python. BSD License.
"""
setup(name='clifford',
version=VERSION,
license='bsd',
description='Numerical Geometric Algebra Module',
... | #!/usr/bin/env python
from setuptools import setup, find_packages
from distutils.core import Extension
VERSION = '1.0.5'
LONG_DESCRIPTION = """
A numerical geometric algebra module for python. BSD License.
"""
setup(
name='clifford',
version=VERSION,
license='bsd',
description='Numerical Geometric Alge... | <commit_before>#!/usr/bin/env python
from setuptools import setup, find_packages
from distutils.core import Extension
VERSION = '1.0.5'
LONG_DESCRIPTION = """
A numerical geometric algebra module for python. BSD License.
"""
setup(name='clifford',
version=VERSION,
license='bsd',
description='Numerical Geometric Alg... | #!/usr/bin/env python
from setuptools import setup, find_packages
from distutils.core import Extension
VERSION = '1.0.5'
LONG_DESCRIPTION = """
A numerical geometric algebra module for python. BSD License.
"""
setup(
name='clifford',
version=VERSION,
license='bsd',
description='Numerical Geometric Alge... | #!/usr/bin/env python
from setuptools import setup, find_packages
from distutils.core import Extension
VERSION = '1.0.5'
LONG_DESCRIPTION = """
A numerical geometric algebra module for python. BSD License.
"""
setup(name='clifford',
version=VERSION,
license='bsd',
description='Numerical Geometric Algebra Module',
... | <commit_before>#!/usr/bin/env python
from setuptools import setup, find_packages
from distutils.core import Extension
VERSION = '1.0.5'
LONG_DESCRIPTION = """
A numerical geometric algebra module for python. BSD License.
"""
setup(name='clifford',
version=VERSION,
license='bsd',
description='Numerical Geometric Alg... |
46546e0e58868ca24329073e12c744a4802b2bd5 | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup
import os
# Utility function to read README file
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='iss',
version='2.7.1',
description="Ideally Single Source app for MemberSuite data.",
author='AASHE... | #!/usr/bin/env python
from setuptools import setup
import os
# Utility function to read README file
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='iss',
version='2.7.1',
description="Ideally Single Source app for MemberSuite data.",
author='AASHE... | Upgrade to v0.4.6 of membersuire_api_client | Upgrade to v0.4.6 of membersuire_api_client
| Python | mit | AASHE/iss | #!/usr/bin/env python
from setuptools import setup
import os
# Utility function to read README file
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='iss',
version='2.7.1',
description="Ideally Single Source app for MemberSuite data.",
author='AASHE... | #!/usr/bin/env python
from setuptools import setup
import os
# Utility function to read README file
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='iss',
version='2.7.1',
description="Ideally Single Source app for MemberSuite data.",
author='AASHE... | <commit_before>#!/usr/bin/env python
from setuptools import setup
import os
# Utility function to read README file
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='iss',
version='2.7.1',
description="Ideally Single Source app for MemberSuite data.",
... | #!/usr/bin/env python
from setuptools import setup
import os
# Utility function to read README file
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='iss',
version='2.7.1',
description="Ideally Single Source app for MemberSuite data.",
author='AASHE... | #!/usr/bin/env python
from setuptools import setup
import os
# Utility function to read README file
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='iss',
version='2.7.1',
description="Ideally Single Source app for MemberSuite data.",
author='AASHE... | <commit_before>#!/usr/bin/env python
from setuptools import setup
import os
# Utility function to read README file
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='iss',
version='2.7.1',
description="Ideally Single Source app for MemberSuite data.",
... |
1b805f4b288c8336512c8b195de645e50e04a414 | setup.py | setup.py | #!/usr/bin/env python
# coding=utf8
import os
from setuptools import setup, find_packages
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name='legitfs',
version='0.4.dev1',
description=('A read-only FUSE-based filesystem allowing you to browse '
... | #!/usr/bin/env python
# coding=utf8
import os
from setuptools import setup, find_packages
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name='legitfs',
version='0.4.0.0dev',
description=('A read-only FUSE-based filesystem allowing you to browse '
... | Switch version to semantic versioning. | Switch version to semantic versioning.
| Python | mit | mbr/legitfs | #!/usr/bin/env python
# coding=utf8
import os
from setuptools import setup, find_packages
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name='legitfs',
version='0.4.dev1',
description=('A read-only FUSE-based filesystem allowing you to browse '
... | #!/usr/bin/env python
# coding=utf8
import os
from setuptools import setup, find_packages
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name='legitfs',
version='0.4.0.0dev',
description=('A read-only FUSE-based filesystem allowing you to browse '
... | <commit_before>#!/usr/bin/env python
# coding=utf8
import os
from setuptools import setup, find_packages
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name='legitfs',
version='0.4.dev1',
description=('A read-only FUSE-based filesystem allowing you to bro... | #!/usr/bin/env python
# coding=utf8
import os
from setuptools import setup, find_packages
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name='legitfs',
version='0.4.0.0dev',
description=('A read-only FUSE-based filesystem allowing you to browse '
... | #!/usr/bin/env python
# coding=utf8
import os
from setuptools import setup, find_packages
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name='legitfs',
version='0.4.dev1',
description=('A read-only FUSE-based filesystem allowing you to browse '
... | <commit_before>#!/usr/bin/env python
# coding=utf8
import os
from setuptools import setup, find_packages
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name='legitfs',
version='0.4.dev1',
description=('A read-only FUSE-based filesystem allowing you to bro... |
df038a485a2aaf80bcfbd872e94ffb87bcb5b33c | testinfra/__init__.py | testinfra/__init__.py | # coding: utf-8
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# dist... | # coding: utf-8
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# dist... | Add warning about unmaintained python2 | Add warning about unmaintained python2
| Python | apache-2.0 | philpep/testinfra | # coding: utf-8
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# dist... | # coding: utf-8
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# dist... | <commit_before># coding: utf-8
# 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, ... | # coding: utf-8
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# dist... | # coding: utf-8
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# dist... | <commit_before># coding: utf-8
# 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, ... |
3d5d46c5b50829f8494af0be84e87867aeaff7eb | setup.py | setup.py | # -*- coding: utf-8 -*-
import os
from setuptools import setup
def read(fname):
try:
return open(os.path.join(os.path.dirname(__file__), fname)).read()
except:
return ''
setup(
name='todoist-python',
version='0.2.22',
packages=['todoist', 'todoist.managers'],
author='Doist Team... | # -*- coding: utf-8 -*-
import os
from setuptools import setup
def read(fname):
try:
return open(os.path.join(os.path.dirname(__file__), fname)).read()
except:
return ''
setup(
name='todoist-python',
version='0.2.23',
packages=['todoist', 'todoist.managers'],
author='Doist Team... | Update the PyPI version to 0.2.23. | Update the PyPI version to 0.2.23.
| Python | mit | Doist/todoist-python | # -*- coding: utf-8 -*-
import os
from setuptools import setup
def read(fname):
try:
return open(os.path.join(os.path.dirname(__file__), fname)).read()
except:
return ''
setup(
name='todoist-python',
version='0.2.22',
packages=['todoist', 'todoist.managers'],
author='Doist Team... | # -*- coding: utf-8 -*-
import os
from setuptools import setup
def read(fname):
try:
return open(os.path.join(os.path.dirname(__file__), fname)).read()
except:
return ''
setup(
name='todoist-python',
version='0.2.23',
packages=['todoist', 'todoist.managers'],
author='Doist Team... | <commit_before># -*- coding: utf-8 -*-
import os
from setuptools import setup
def read(fname):
try:
return open(os.path.join(os.path.dirname(__file__), fname)).read()
except:
return ''
setup(
name='todoist-python',
version='0.2.22',
packages=['todoist', 'todoist.managers'],
aut... | # -*- coding: utf-8 -*-
import os
from setuptools import setup
def read(fname):
try:
return open(os.path.join(os.path.dirname(__file__), fname)).read()
except:
return ''
setup(
name='todoist-python',
version='0.2.23',
packages=['todoist', 'todoist.managers'],
author='Doist Team... | # -*- coding: utf-8 -*-
import os
from setuptools import setup
def read(fname):
try:
return open(os.path.join(os.path.dirname(__file__), fname)).read()
except:
return ''
setup(
name='todoist-python',
version='0.2.22',
packages=['todoist', 'todoist.managers'],
author='Doist Team... | <commit_before># -*- coding: utf-8 -*-
import os
from setuptools import setup
def read(fname):
try:
return open(os.path.join(os.path.dirname(__file__), fname)).read()
except:
return ''
setup(
name='todoist-python',
version='0.2.22',
packages=['todoist', 'todoist.managers'],
aut... |
945c731fbd956d21c810d46778b67f7c8382458f | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
setup(
name='Redis-Sentinel-Url',
py_modules=['redis_sentinel_url'],
version='1.0.0',
install_requires=['redis>=2.10.3'],
tests_require=['mock', 'nose'],
test_suite='nose.collector',
description='A factory for redis ... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
setup(
name='Redis-Sentinel-Url',
py_modules=['redis_sentinel_url'],
version='1.0.0',
install_requires=['redis>=2.10.3'],
tests_require=['mock', 'nose'],
test_suite='nose.collector',
description='A factory for redis ... | Add Python 3.6 to classifiers | Add Python 3.6 to classifiers
| Python | apache-2.0 | exponea/redis-sentinel-url | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
setup(
name='Redis-Sentinel-Url',
py_modules=['redis_sentinel_url'],
version='1.0.0',
install_requires=['redis>=2.10.3'],
tests_require=['mock', 'nose'],
test_suite='nose.collector',
description='A factory for redis ... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
setup(
name='Redis-Sentinel-Url',
py_modules=['redis_sentinel_url'],
version='1.0.0',
install_requires=['redis>=2.10.3'],
tests_require=['mock', 'nose'],
test_suite='nose.collector',
description='A factory for redis ... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
setup(
name='Redis-Sentinel-Url',
py_modules=['redis_sentinel_url'],
version='1.0.0',
install_requires=['redis>=2.10.3'],
tests_require=['mock', 'nose'],
test_suite='nose.collector',
description='A fac... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
setup(
name='Redis-Sentinel-Url',
py_modules=['redis_sentinel_url'],
version='1.0.0',
install_requires=['redis>=2.10.3'],
tests_require=['mock', 'nose'],
test_suite='nose.collector',
description='A factory for redis ... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
setup(
name='Redis-Sentinel-Url',
py_modules=['redis_sentinel_url'],
version='1.0.0',
install_requires=['redis>=2.10.3'],
tests_require=['mock', 'nose'],
test_suite='nose.collector',
description='A factory for redis ... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
setup(
name='Redis-Sentinel-Url',
py_modules=['redis_sentinel_url'],
version='1.0.0',
install_requires=['redis>=2.10.3'],
tests_require=['mock', 'nose'],
test_suite='nose.collector',
description='A fac... |
0c0c11da08a05ee0b1de4cfc74003f31358a294b | setup.py | setup.py | from setuptools import setup
setup(
name='firetv',
version='1.0.6',
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='[email protected]',
pac... | from setuptools import setup
setup(
name='firetv',
version='1.0.6',
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='[email protected]',
pac... | Change requirement from 'adb>1.3.0' to 'adb-homeassistant' | Change requirement from 'adb>1.3.0' to 'adb-homeassistant' | Python | mit | happyleavesaoc/python-firetv | from setuptools import setup
setup(
name='firetv',
version='1.0.6',
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='[email protected]',
pac... | from setuptools import setup
setup(
name='firetv',
version='1.0.6',
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='[email protected]',
pac... | <commit_before>from setuptools import setup
setup(
name='firetv',
version='1.0.6',
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@gmai... | from setuptools import setup
setup(
name='firetv',
version='1.0.6',
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='[email protected]',
pac... | from setuptools import setup
setup(
name='firetv',
version='1.0.6',
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='[email protected]',
pac... | <commit_before>from setuptools import setup
setup(
name='firetv',
version='1.0.6',
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@gmai... |
779bc379a3c4d9b0a40c5ad7aa042cdb422efdd5 | package_name/__meta__.py | package_name/__meta__.py | name = 'package-name'
path = name.lower().replace("-", "_").replace(" ", "_")
version = '0.0.0'
author = 'Author Name'
author_email = ''
description = ''
url = '' # project homepage
license = 'MIT' # See https://choosealicense.com
| name = 'package-name' # See https://www.python.org/dev/peps/pep-0008/
path = name.lower().replace("-", "_").replace(" ", "_")
version = '0.1.0' # See https://www.python.org/dev/peps/pep-0440/ and https://semver.org/
author = 'Author Name'
author_email = ''
description = '' # One-liner
url = '' # your project homepa... | Add descriptions/links for meta fields | DOC: Add descriptions/links for meta fields
| Python | mit | scottclowe/python-ci,scottclowe/python-continuous-integration,scottclowe/python-ci,scottclowe/python-continuous-integration | name = 'package-name'
path = name.lower().replace("-", "_").replace(" ", "_")
version = '0.0.0'
author = 'Author Name'
author_email = ''
description = ''
url = '' # project homepage
license = 'MIT' # See https://choosealicense.com
DOC: Add descriptions/links for meta fields | name = 'package-name' # See https://www.python.org/dev/peps/pep-0008/
path = name.lower().replace("-", "_").replace(" ", "_")
version = '0.1.0' # See https://www.python.org/dev/peps/pep-0440/ and https://semver.org/
author = 'Author Name'
author_email = ''
description = '' # One-liner
url = '' # your project homepa... | <commit_before>name = 'package-name'
path = name.lower().replace("-", "_").replace(" ", "_")
version = '0.0.0'
author = 'Author Name'
author_email = ''
description = ''
url = '' # project homepage
license = 'MIT' # See https://choosealicense.com
<commit_msg>DOC: Add descriptions/links for meta fields<commit_after> | name = 'package-name' # See https://www.python.org/dev/peps/pep-0008/
path = name.lower().replace("-", "_").replace(" ", "_")
version = '0.1.0' # See https://www.python.org/dev/peps/pep-0440/ and https://semver.org/
author = 'Author Name'
author_email = ''
description = '' # One-liner
url = '' # your project homepa... | name = 'package-name'
path = name.lower().replace("-", "_").replace(" ", "_")
version = '0.0.0'
author = 'Author Name'
author_email = ''
description = ''
url = '' # project homepage
license = 'MIT' # See https://choosealicense.com
DOC: Add descriptions/links for meta fieldsname = 'package-name' # See https://www.pyt... | <commit_before>name = 'package-name'
path = name.lower().replace("-", "_").replace(" ", "_")
version = '0.0.0'
author = 'Author Name'
author_email = ''
description = ''
url = '' # project homepage
license = 'MIT' # See https://choosealicense.com
<commit_msg>DOC: Add descriptions/links for meta fields<commit_after>nam... |
94208e6fa4a611d32a00dc6b353fbe17ba3b3978 | setup.py | setup.py | from setuptools import setup, find_packages
import sys
if sys.hexversion < 0x02070000:
sys.exit("Python 2.7 or newer is required to use this package.")
setup(
name="legato",
version="1.0",
author="S[&]T",
author_email="[email protected]",
url="http://stcorp.nl/",
description="Task trigger dae... | from setuptools import setup, find_packages
import sys
if sys.hexversion < 0x02070000:
sys.exit("Python 2.7 or newer is required to use this package.")
setup(
name="legato",
version="1.0",
author="S[&]T",
author_email="[email protected]",
url="http://stcorp.nl/",
description="Task trigger dae... | Remove warning: file legato.py (for module legato) not found during installation | Remove warning: file legato.py (for module legato) not found during installation | Python | bsd-3-clause | stcorp/legato | from setuptools import setup, find_packages
import sys
if sys.hexversion < 0x02070000:
sys.exit("Python 2.7 or newer is required to use this package.")
setup(
name="legato",
version="1.0",
author="S[&]T",
author_email="[email protected]",
url="http://stcorp.nl/",
description="Task trigger dae... | from setuptools import setup, find_packages
import sys
if sys.hexversion < 0x02070000:
sys.exit("Python 2.7 or newer is required to use this package.")
setup(
name="legato",
version="1.0",
author="S[&]T",
author_email="[email protected]",
url="http://stcorp.nl/",
description="Task trigger dae... | <commit_before>from setuptools import setup, find_packages
import sys
if sys.hexversion < 0x02070000:
sys.exit("Python 2.7 or newer is required to use this package.")
setup(
name="legato",
version="1.0",
author="S[&]T",
author_email="[email protected]",
url="http://stcorp.nl/",
description="T... | from setuptools import setup, find_packages
import sys
if sys.hexversion < 0x02070000:
sys.exit("Python 2.7 or newer is required to use this package.")
setup(
name="legato",
version="1.0",
author="S[&]T",
author_email="[email protected]",
url="http://stcorp.nl/",
description="Task trigger dae... | from setuptools import setup, find_packages
import sys
if sys.hexversion < 0x02070000:
sys.exit("Python 2.7 or newer is required to use this package.")
setup(
name="legato",
version="1.0",
author="S[&]T",
author_email="[email protected]",
url="http://stcorp.nl/",
description="Task trigger dae... | <commit_before>from setuptools import setup, find_packages
import sys
if sys.hexversion < 0x02070000:
sys.exit("Python 2.7 or newer is required to use this package.")
setup(
name="legato",
version="1.0",
author="S[&]T",
author_email="[email protected]",
url="http://stcorp.nl/",
description="T... |
8bb1172a67ad978e11f5b3f24828b130ff61def7 | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import find_packages, setup
with open("README.md") as readme_file:
readme = readme_file.read()
requirements = ["Pillow>=5.3.0", "numpy>=1.15.4", "Click>=7.0"]
setup(
author="Ryan Gibson",
author_email="[email protected]",
name... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import find_packages, setup
with open("README.md") as readme_file:
readme = readme_file.read()
requirements = ["Pillow>=5.3.0", "numpy>=1.15.4", "Click>=7.0"]
setup(
author="Ryan Gibson",
author_email="[email protected]",
name... | Remove support for end-of-life Python 3.6 in next release | Remove support for end-of-life Python 3.6 in next release
Checked again just now and we are still waiting on Python 3.10 stability | Python | mit | ragibson/Steganography | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import find_packages, setup
with open("README.md") as readme_file:
readme = readme_file.read()
requirements = ["Pillow>=5.3.0", "numpy>=1.15.4", "Click>=7.0"]
setup(
author="Ryan Gibson",
author_email="[email protected]",
name... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import find_packages, setup
with open("README.md") as readme_file:
readme = readme_file.read()
requirements = ["Pillow>=5.3.0", "numpy>=1.15.4", "Click>=7.0"]
setup(
author="Ryan Gibson",
author_email="[email protected]",
name... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import find_packages, setup
with open("README.md") as readme_file:
readme = readme_file.read()
requirements = ["Pillow>=5.3.0", "numpy>=1.15.4", "Click>=7.0"]
setup(
author="Ryan Gibson",
author_email="ryanalexandergibson@gmail... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import find_packages, setup
with open("README.md") as readme_file:
readme = readme_file.read()
requirements = ["Pillow>=5.3.0", "numpy>=1.15.4", "Click>=7.0"]
setup(
author="Ryan Gibson",
author_email="[email protected]",
name... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import find_packages, setup
with open("README.md") as readme_file:
readme = readme_file.read()
requirements = ["Pillow>=5.3.0", "numpy>=1.15.4", "Click>=7.0"]
setup(
author="Ryan Gibson",
author_email="[email protected]",
name... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import find_packages, setup
with open("README.md") as readme_file:
readme = readme_file.read()
requirements = ["Pillow>=5.3.0", "numpy>=1.15.4", "Click>=7.0"]
setup(
author="Ryan Gibson",
author_email="ryanalexandergibson@gmail... |
1a0e78756843819a1634c80da8d2cdb8ed4a7bc5 | setup.py | setup.py | #!/usr/bin/env python
from distutils.core import setup
from clusterjob import __version__
setup(name='clusterjob',
version=__version__,
description='Manage traditional HPC cluster workflows in Python',
author='Michael Goerz',
author_email='[email protected]',
url='https://github.com/goe... | #!/usr/bin/env python
from distutils.core import setup
from clusterjob import __version__
try:
# In Python >3.3, 'mock' is part of the standard library
import unittest.mock
mock_package = []
except ImportError:
# In other versions, it has be to be installed as an exernal package
mock_package = ['mo... | Install mock package when not in stdlib | Install mock package when not in stdlib
| Python | mit | goerz/clusterjob,goerz/clusterjob | #!/usr/bin/env python
from distutils.core import setup
from clusterjob import __version__
setup(name='clusterjob',
version=__version__,
description='Manage traditional HPC cluster workflows in Python',
author='Michael Goerz',
author_email='[email protected]',
url='https://github.com/goe... | #!/usr/bin/env python
from distutils.core import setup
from clusterjob import __version__
try:
# In Python >3.3, 'mock' is part of the standard library
import unittest.mock
mock_package = []
except ImportError:
# In other versions, it has be to be installed as an exernal package
mock_package = ['mo... | <commit_before>#!/usr/bin/env python
from distutils.core import setup
from clusterjob import __version__
setup(name='clusterjob',
version=__version__,
description='Manage traditional HPC cluster workflows in Python',
author='Michael Goerz',
author_email='[email protected]',
url='https:/... | #!/usr/bin/env python
from distutils.core import setup
from clusterjob import __version__
try:
# In Python >3.3, 'mock' is part of the standard library
import unittest.mock
mock_package = []
except ImportError:
# In other versions, it has be to be installed as an exernal package
mock_package = ['mo... | #!/usr/bin/env python
from distutils.core import setup
from clusterjob import __version__
setup(name='clusterjob',
version=__version__,
description='Manage traditional HPC cluster workflows in Python',
author='Michael Goerz',
author_email='[email protected]',
url='https://github.com/goe... | <commit_before>#!/usr/bin/env python
from distutils.core import setup
from clusterjob import __version__
setup(name='clusterjob',
version=__version__,
description='Manage traditional HPC cluster workflows in Python',
author='Michael Goerz',
author_email='[email protected]',
url='https:/... |
7aa7adff5e5be48bde6ded05c4599fa0c9eb39bf | setup.py | setup.py | #!/usr/bin/env python2.6
import os
import setuptools
def find_files(path):
return [os.path.join(path, f) for f in os.listdir(path)]
setuptools.setup(
name='workspace-tools',
version='0.7.3',
author='Max Zheng',
author_email='maxzheng.os @t gmail.com',
home_page='https://github.com/maxzheng/workspace-... | #!/usr/bin/env python2.6
import os
import setuptools
def find_files(path):
return [os.path.join(path, f) for f in os.listdir(path)]
setuptools.setup(
name='workspace-tools',
version='0.7.3',
author='Max Zheng',
author_email='maxzheng.os @t gmail.com',
summary='Tools to simplify working with multiple ... | Use url instead of home_page | Use url instead of home_page
| Python | mit | maxzheng/workspace-tools | #!/usr/bin/env python2.6
import os
import setuptools
def find_files(path):
return [os.path.join(path, f) for f in os.listdir(path)]
setuptools.setup(
name='workspace-tools',
version='0.7.3',
author='Max Zheng',
author_email='maxzheng.os @t gmail.com',
home_page='https://github.com/maxzheng/workspace-... | #!/usr/bin/env python2.6
import os
import setuptools
def find_files(path):
return [os.path.join(path, f) for f in os.listdir(path)]
setuptools.setup(
name='workspace-tools',
version='0.7.3',
author='Max Zheng',
author_email='maxzheng.os @t gmail.com',
summary='Tools to simplify working with multiple ... | <commit_before>#!/usr/bin/env python2.6
import os
import setuptools
def find_files(path):
return [os.path.join(path, f) for f in os.listdir(path)]
setuptools.setup(
name='workspace-tools',
version='0.7.3',
author='Max Zheng',
author_email='maxzheng.os @t gmail.com',
home_page='https://github.com/maxz... | #!/usr/bin/env python2.6
import os
import setuptools
def find_files(path):
return [os.path.join(path, f) for f in os.listdir(path)]
setuptools.setup(
name='workspace-tools',
version='0.7.3',
author='Max Zheng',
author_email='maxzheng.os @t gmail.com',
summary='Tools to simplify working with multiple ... | #!/usr/bin/env python2.6
import os
import setuptools
def find_files(path):
return [os.path.join(path, f) for f in os.listdir(path)]
setuptools.setup(
name='workspace-tools',
version='0.7.3',
author='Max Zheng',
author_email='maxzheng.os @t gmail.com',
home_page='https://github.com/maxzheng/workspace-... | <commit_before>#!/usr/bin/env python2.6
import os
import setuptools
def find_files(path):
return [os.path.join(path, f) for f in os.listdir(path)]
setuptools.setup(
name='workspace-tools',
version='0.7.3',
author='Max Zheng',
author_email='maxzheng.os @t gmail.com',
home_page='https://github.com/maxz... |
6e4561533bd2ab435e12edb45501bf0e155fa193 | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name='django-simple-history',
version='1.1.3.post1',
description='Store model history and view/revert changes from admin site.',
author='Corey Bertram',
author_email='[email protected]',
mantainer='Trey Hunner',
url='https://github.com/treyhun... | from setuptools import setup, find_packages
long_description = open('README.rst').read() + open('CHANGES.rst').read()
setup(
name='django-simple-history',
version='1.1.3.post1',
description='Store model history and view/revert changes from admin site.',
long_description=long_description,
author=... | Use README.rst and CHANGES.rst for description | Use README.rst and CHANGES.rst for description
| Python | bsd-3-clause | pombredanne/django-simple-history,emergence/django-simple-history,emergence/django-simple-history,treyhunner/django-simple-history,luzfcb/django-simple-history,pombredanne/django-simple-history,luzfcb/django-simple-history,treyhunner/django-simple-history | from setuptools import setup, find_packages
setup(
name='django-simple-history',
version='1.1.3.post1',
description='Store model history and view/revert changes from admin site.',
author='Corey Bertram',
author_email='[email protected]',
mantainer='Trey Hunner',
url='https://github.com/treyhun... | from setuptools import setup, find_packages
long_description = open('README.rst').read() + open('CHANGES.rst').read()
setup(
name='django-simple-history',
version='1.1.3.post1',
description='Store model history and view/revert changes from admin site.',
long_description=long_description,
author=... | <commit_before>from setuptools import setup, find_packages
setup(
name='django-simple-history',
version='1.1.3.post1',
description='Store model history and view/revert changes from admin site.',
author='Corey Bertram',
author_email='[email protected]',
mantainer='Trey Hunner',
url='https://git... | from setuptools import setup, find_packages
long_description = open('README.rst').read() + open('CHANGES.rst').read()
setup(
name='django-simple-history',
version='1.1.3.post1',
description='Store model history and view/revert changes from admin site.',
long_description=long_description,
author=... | from setuptools import setup, find_packages
setup(
name='django-simple-history',
version='1.1.3.post1',
description='Store model history and view/revert changes from admin site.',
author='Corey Bertram',
author_email='[email protected]',
mantainer='Trey Hunner',
url='https://github.com/treyhun... | <commit_before>from setuptools import setup, find_packages
setup(
name='django-simple-history',
version='1.1.3.post1',
description='Store model history and view/revert changes from admin site.',
author='Corey Bertram',
author_email='[email protected]',
mantainer='Trey Hunner',
url='https://git... |
12efe7dcc3734ca300c841d3c9e95010da6e39b9 | setup.py | setup.py | #!/usr/bin/env python
# coding=utf-8
import os
from setuptools import setup, find_packages
from eodatasets import __version__ as version
# Append TeamCity build number if it gives us one.
if 'BUILD_NUMBER' in os.environ and version.endswith('b'):
version += '' + os.environ['BUILD_NUMBER']
setup(
name="eodat... | #!/usr/bin/env python
# coding=utf-8
import os
from setuptools import setup, find_packages
from eodatasets import __version__ as version
# Append TeamCity build number if it gives us one.
if 'BUILD_NUMBER' in os.environ and version.endswith('b'):
version += '' + os.environ['BUILD_NUMBER']
setup(
name="eodat... | Include metadata tables in package. | Include metadata tables in package.
| Python | apache-2.0 | jeremyh/eo-datasets,GeoscienceAustralia/eo-datasets,GeoscienceAustralia/eo-datasets,jeremyh/eo-datasets | #!/usr/bin/env python
# coding=utf-8
import os
from setuptools import setup, find_packages
from eodatasets import __version__ as version
# Append TeamCity build number if it gives us one.
if 'BUILD_NUMBER' in os.environ and version.endswith('b'):
version += '' + os.environ['BUILD_NUMBER']
setup(
name="eodat... | #!/usr/bin/env python
# coding=utf-8
import os
from setuptools import setup, find_packages
from eodatasets import __version__ as version
# Append TeamCity build number if it gives us one.
if 'BUILD_NUMBER' in os.environ and version.endswith('b'):
version += '' + os.environ['BUILD_NUMBER']
setup(
name="eodat... | <commit_before>#!/usr/bin/env python
# coding=utf-8
import os
from setuptools import setup, find_packages
from eodatasets import __version__ as version
# Append TeamCity build number if it gives us one.
if 'BUILD_NUMBER' in os.environ and version.endswith('b'):
version += '' + os.environ['BUILD_NUMBER']
setup(
... | #!/usr/bin/env python
# coding=utf-8
import os
from setuptools import setup, find_packages
from eodatasets import __version__ as version
# Append TeamCity build number if it gives us one.
if 'BUILD_NUMBER' in os.environ and version.endswith('b'):
version += '' + os.environ['BUILD_NUMBER']
setup(
name="eodat... | #!/usr/bin/env python
# coding=utf-8
import os
from setuptools import setup, find_packages
from eodatasets import __version__ as version
# Append TeamCity build number if it gives us one.
if 'BUILD_NUMBER' in os.environ and version.endswith('b'):
version += '' + os.environ['BUILD_NUMBER']
setup(
name="eodat... | <commit_before>#!/usr/bin/env python
# coding=utf-8
import os
from setuptools import setup, find_packages
from eodatasets import __version__ as version
# Append TeamCity build number if it gives us one.
if 'BUILD_NUMBER' in os.environ and version.endswith('b'):
version += '' + os.environ['BUILD_NUMBER']
setup(
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.