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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b7c52258d39e5c0ee8fba2be87e8e671e0c583c3 | xclib/postfix_io.py | xclib/postfix_io.py | # Only supports isuser request for Postfix virtual mailbox maps
import sys
import re
import logging
# Message formats described in `../doc/Protocol.md`
class postfix_io:
@classmethod
def read_request(cls, infd, outfd):
# "for line in sys.stdin:" would be more concise but adds unwanted buffering
... | # Only supports isuser request for Postfix virtual mailbox maps
import sys
import re
import logging
# Message formats described in `../doc/Protocol.md`
class postfix_io:
@classmethod
def read_request(cls, infd, outfd):
# "for line in sys.stdin:" would be more concise but adds unwanted buffering
... | Add quit command to postfix | Add quit command to postfix
| Python | mit | jsxc/xmpp-cloud-auth,jsxc/xmpp-cloud-auth,jsxc/xmpp-cloud-auth,jsxc/xmpp-cloud-auth | # Only supports isuser request for Postfix virtual mailbox maps
import sys
import re
import logging
# Message formats described in `../doc/Protocol.md`
class postfix_io:
@classmethod
def read_request(cls, infd, outfd):
# "for line in sys.stdin:" would be more concise but adds unwanted buffering
... | # Only supports isuser request for Postfix virtual mailbox maps
import sys
import re
import logging
# Message formats described in `../doc/Protocol.md`
class postfix_io:
@classmethod
def read_request(cls, infd, outfd):
# "for line in sys.stdin:" would be more concise but adds unwanted buffering
... | <commit_before># Only supports isuser request for Postfix virtual mailbox maps
import sys
import re
import logging
# Message formats described in `../doc/Protocol.md`
class postfix_io:
@classmethod
def read_request(cls, infd, outfd):
# "for line in sys.stdin:" would be more concise but adds unwanted b... | # Only supports isuser request for Postfix virtual mailbox maps
import sys
import re
import logging
# Message formats described in `../doc/Protocol.md`
class postfix_io:
@classmethod
def read_request(cls, infd, outfd):
# "for line in sys.stdin:" would be more concise but adds unwanted buffering
... | # Only supports isuser request for Postfix virtual mailbox maps
import sys
import re
import logging
# Message formats described in `../doc/Protocol.md`
class postfix_io:
@classmethod
def read_request(cls, infd, outfd):
# "for line in sys.stdin:" would be more concise but adds unwanted buffering
... | <commit_before># Only supports isuser request for Postfix virtual mailbox maps
import sys
import re
import logging
# Message formats described in `../doc/Protocol.md`
class postfix_io:
@classmethod
def read_request(cls, infd, outfd):
# "for line in sys.stdin:" would be more concise but adds unwanted b... |
cc5e75078c707ee2b5622700a0ad2890969193c1 | opencademy/model/openacademy_course.py | opencademy/model/openacademy_course.py | from openerp import fields, models
'''
This module create model of Course
'''
class Course(models.Model):
'''
This class create model of Course
'''
_name = 'openacademy.course'
name = fields.Char(string='Title', required=True) # field reserved to identified name rec
description = fields.Te... | from openerp import api, fields, models
'''
This module create model of Course
'''
class Course(models.Model):
'''
This class create model of Course
'''
_name = 'openacademy.course'
name = fields.Char(string='Title', required=True) # field reserved to identified name rec
description = fiel... | Modify copy method into inherit | [REF] openacademy: Modify copy method into inherit
| Python | apache-2.0 | LihanHA/opencademy-project | from openerp import fields, models
'''
This module create model of Course
'''
class Course(models.Model):
'''
This class create model of Course
'''
_name = 'openacademy.course'
name = fields.Char(string='Title', required=True) # field reserved to identified name rec
description = fields.Te... | from openerp import api, fields, models
'''
This module create model of Course
'''
class Course(models.Model):
'''
This class create model of Course
'''
_name = 'openacademy.course'
name = fields.Char(string='Title', required=True) # field reserved to identified name rec
description = fiel... | <commit_before>from openerp import fields, models
'''
This module create model of Course
'''
class Course(models.Model):
'''
This class create model of Course
'''
_name = 'openacademy.course'
name = fields.Char(string='Title', required=True) # field reserved to identified name rec
descript... | from openerp import api, fields, models
'''
This module create model of Course
'''
class Course(models.Model):
'''
This class create model of Course
'''
_name = 'openacademy.course'
name = fields.Char(string='Title', required=True) # field reserved to identified name rec
description = fiel... | from openerp import fields, models
'''
This module create model of Course
'''
class Course(models.Model):
'''
This class create model of Course
'''
_name = 'openacademy.course'
name = fields.Char(string='Title', required=True) # field reserved to identified name rec
description = fields.Te... | <commit_before>from openerp import fields, models
'''
This module create model of Course
'''
class Course(models.Model):
'''
This class create model of Course
'''
_name = 'openacademy.course'
name = fields.Char(string='Title', required=True) # field reserved to identified name rec
descript... |
a9f40d7549c43e3e7faf90c79f19a290761d2e08 | src/tests/ggrc/__init__.py | src/tests/ggrc/__init__.py | # Copyright (C) 2013 Google Inc., authors, and contributors <see AUTHORS file>
# Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
# Created By: david@reciprocitylabs.com
# Maintained By: david@reciprocitylabs.com
from flask.ext.testing import TestCase as BaseTestCase
from ggrc import db
fro... | # Copyright (C) 2013 Google Inc., authors, and contributors <see AUTHORS file>
# Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
# Created By: david@reciprocitylabs.com
# Maintained By: david@reciprocitylabs.com
from flask.ext.testing import TestCase as BaseTestCase
from ggrc import db
fro... | Allow Google AppEngine Memcache stub to be used for running unit tests including calls to caching layer | Allow Google AppEngine Memcache stub to be used for running unit tests including calls to caching layer
| Python | apache-2.0 | hyperNURb/ggrc-core,prasannav7/ggrc-core,vladan-m/ggrc-core,josthkko/ggrc-core,andrei-karalionak/ggrc-core,NejcZupec/ggrc-core,prasannav7/ggrc-core,AleksNeStu/ggrc-core,j0gurt/ggrc-core,uskudnik/ggrc-core,prasannav7/ggrc-core,josthkko/ggrc-core,edofic/ggrc-core,edofic/ggrc-core,NejcZupec/ggrc-core,NejcZupec/ggrc-core,p... | # Copyright (C) 2013 Google Inc., authors, and contributors <see AUTHORS file>
# Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
# Created By: david@reciprocitylabs.com
# Maintained By: david@reciprocitylabs.com
from flask.ext.testing import TestCase as BaseTestCase
from ggrc import db
fro... | # Copyright (C) 2013 Google Inc., authors, and contributors <see AUTHORS file>
# Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
# Created By: david@reciprocitylabs.com
# Maintained By: david@reciprocitylabs.com
from flask.ext.testing import TestCase as BaseTestCase
from ggrc import db
fro... | <commit_before># Copyright (C) 2013 Google Inc., authors, and contributors <see AUTHORS file>
# Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
# Created By: david@reciprocitylabs.com
# Maintained By: david@reciprocitylabs.com
from flask.ext.testing import TestCase as BaseTestCase
from ggr... | # Copyright (C) 2013 Google Inc., authors, and contributors <see AUTHORS file>
# Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
# Created By: david@reciprocitylabs.com
# Maintained By: david@reciprocitylabs.com
from flask.ext.testing import TestCase as BaseTestCase
from ggrc import db
fro... | # Copyright (C) 2013 Google Inc., authors, and contributors <see AUTHORS file>
# Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
# Created By: david@reciprocitylabs.com
# Maintained By: david@reciprocitylabs.com
from flask.ext.testing import TestCase as BaseTestCase
from ggrc import db
fro... | <commit_before># Copyright (C) 2013 Google Inc., authors, and contributors <see AUTHORS file>
# Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
# Created By: david@reciprocitylabs.com
# Maintained By: david@reciprocitylabs.com
from flask.ext.testing import TestCase as BaseTestCase
from ggr... |
3be9ef4c2ec4c2b10503633c55fd1634f4d5debb | comics/search/indexes.py | comics/search/indexes.py | from django.template.loader import get_template
from django.template import Context
from haystack import indexes
from haystack import site
from comics.core.models import Image
class ImageIndex(indexes.SearchIndex):
document = indexes.CharField(document=True, use_template=True)
rendered = indexes.CharField(in... | from django.template.loader import get_template
from django.template import Context
from haystack import indexes
from haystack import site
from comics.core.models import Image
class ImageIndex(indexes.SearchIndex):
document = indexes.CharField(document=True, use_template=True)
rendered = indexes.CharField(in... | Add get_updated_field to search index | Add get_updated_field to search index
| Python | agpl-3.0 | jodal/comics,jodal/comics,klette/comics,datagutten/comics,jodal/comics,datagutten/comics,jodal/comics,datagutten/comics,klette/comics,klette/comics,datagutten/comics | from django.template.loader import get_template
from django.template import Context
from haystack import indexes
from haystack import site
from comics.core.models import Image
class ImageIndex(indexes.SearchIndex):
document = indexes.CharField(document=True, use_template=True)
rendered = indexes.CharField(in... | from django.template.loader import get_template
from django.template import Context
from haystack import indexes
from haystack import site
from comics.core.models import Image
class ImageIndex(indexes.SearchIndex):
document = indexes.CharField(document=True, use_template=True)
rendered = indexes.CharField(in... | <commit_before>from django.template.loader import get_template
from django.template import Context
from haystack import indexes
from haystack import site
from comics.core.models import Image
class ImageIndex(indexes.SearchIndex):
document = indexes.CharField(document=True, use_template=True)
rendered = index... | from django.template.loader import get_template
from django.template import Context
from haystack import indexes
from haystack import site
from comics.core.models import Image
class ImageIndex(indexes.SearchIndex):
document = indexes.CharField(document=True, use_template=True)
rendered = indexes.CharField(in... | from django.template.loader import get_template
from django.template import Context
from haystack import indexes
from haystack import site
from comics.core.models import Image
class ImageIndex(indexes.SearchIndex):
document = indexes.CharField(document=True, use_template=True)
rendered = indexes.CharField(in... | <commit_before>from django.template.loader import get_template
from django.template import Context
from haystack import indexes
from haystack import site
from comics.core.models import Image
class ImageIndex(indexes.SearchIndex):
document = indexes.CharField(document=True, use_template=True)
rendered = index... |
3fde2a6fe3064bab2cfc7adf040f0f4c91f89865 | whack/hashes.py | whack/hashes.py | import os
import hashlib
class Hasher(object):
def __init__(self):
self._hash = hashlib.sha1()
def update(self, arg):
self._hash.update(_sha1(arg))
def update_with_dir(self, dir_path):
for file_path in _all_files(dir_path):
self.update(os.path.relpath(file_path... | import os
import hashlib
class Hasher(object):
def __init__(self):
self._hash = hashlib.sha1()
def update(self, arg):
self._hash.update(_sha1(arg))
def update_with_dir(self, dir_path):
for file_path in _all_files(dir_path):
self.update(os.path.relpath(file_path... | Sort files before hashing to ensure consistency | Sort files before hashing to ensure consistency
| Python | bsd-2-clause | mwilliamson/whack | import os
import hashlib
class Hasher(object):
def __init__(self):
self._hash = hashlib.sha1()
def update(self, arg):
self._hash.update(_sha1(arg))
def update_with_dir(self, dir_path):
for file_path in _all_files(dir_path):
self.update(os.path.relpath(file_path... | import os
import hashlib
class Hasher(object):
def __init__(self):
self._hash = hashlib.sha1()
def update(self, arg):
self._hash.update(_sha1(arg))
def update_with_dir(self, dir_path):
for file_path in _all_files(dir_path):
self.update(os.path.relpath(file_path... | <commit_before>import os
import hashlib
class Hasher(object):
def __init__(self):
self._hash = hashlib.sha1()
def update(self, arg):
self._hash.update(_sha1(arg))
def update_with_dir(self, dir_path):
for file_path in _all_files(dir_path):
self.update(os.path.re... | import os
import hashlib
class Hasher(object):
def __init__(self):
self._hash = hashlib.sha1()
def update(self, arg):
self._hash.update(_sha1(arg))
def update_with_dir(self, dir_path):
for file_path in _all_files(dir_path):
self.update(os.path.relpath(file_path... | import os
import hashlib
class Hasher(object):
def __init__(self):
self._hash = hashlib.sha1()
def update(self, arg):
self._hash.update(_sha1(arg))
def update_with_dir(self, dir_path):
for file_path in _all_files(dir_path):
self.update(os.path.relpath(file_path... | <commit_before>import os
import hashlib
class Hasher(object):
def __init__(self):
self._hash = hashlib.sha1()
def update(self, arg):
self._hash.update(_sha1(arg))
def update_with_dir(self, dir_path):
for file_path in _all_files(dir_path):
self.update(os.path.re... |
2b7de99f1de941c66dd282efbdf423e95c104cc9 | mysite/missions/management/commands/svn_precommit.py | mysite/missions/management/commands/svn_precommit.py | from django.core.management import BaseCommand, CommandError
from mysite.missions import controllers
import sys
class Command(BaseCommand):
args = '<repo_path> <txn_id>'
help = 'SVN pre-commit hook for mission repositories'
def handle(self, *args, **options):
# This management command is called fr... | from django.core.management import BaseCommand, CommandError
from mysite.missions import controllers
import sys
class Command(BaseCommand):
args = '<repo_path> <txn_id>'
help = 'SVN pre-commit hook for mission repositories'
def handle(self, *args, **options):
# This management command is called fr... | Make the error message stand out more for the user when we reject an svn commit. | Make the error message stand out more for the user when we reject an svn commit.
| Python | agpl-3.0 | SnappleCap/oh-mainline,heeraj123/oh-mainline,Changaco/oh-mainline,mzdaniel/oh-mainline,sudheesh001/oh-mainline,nirmeshk/oh-mainline,vipul-sharma20/oh-mainline,mzdaniel/oh-mainline,mzdaniel/oh-mainline,Changaco/oh-mainline,Changaco/oh-mainline,eeshangarg/oh-mainline,eeshangarg/oh-mainline,SnappleCap/oh-mainline,moijes12... | from django.core.management import BaseCommand, CommandError
from mysite.missions import controllers
import sys
class Command(BaseCommand):
args = '<repo_path> <txn_id>'
help = 'SVN pre-commit hook for mission repositories'
def handle(self, *args, **options):
# This management command is called fr... | from django.core.management import BaseCommand, CommandError
from mysite.missions import controllers
import sys
class Command(BaseCommand):
args = '<repo_path> <txn_id>'
help = 'SVN pre-commit hook for mission repositories'
def handle(self, *args, **options):
# This management command is called fr... | <commit_before>from django.core.management import BaseCommand, CommandError
from mysite.missions import controllers
import sys
class Command(BaseCommand):
args = '<repo_path> <txn_id>'
help = 'SVN pre-commit hook for mission repositories'
def handle(self, *args, **options):
# This management comma... | from django.core.management import BaseCommand, CommandError
from mysite.missions import controllers
import sys
class Command(BaseCommand):
args = '<repo_path> <txn_id>'
help = 'SVN pre-commit hook for mission repositories'
def handle(self, *args, **options):
# This management command is called fr... | from django.core.management import BaseCommand, CommandError
from mysite.missions import controllers
import sys
class Command(BaseCommand):
args = '<repo_path> <txn_id>'
help = 'SVN pre-commit hook for mission repositories'
def handle(self, *args, **options):
# This management command is called fr... | <commit_before>from django.core.management import BaseCommand, CommandError
from mysite.missions import controllers
import sys
class Command(BaseCommand):
args = '<repo_path> <txn_id>'
help = 'SVN pre-commit hook for mission repositories'
def handle(self, *args, **options):
# This management comma... |
30db1d30bc79e121109206ca2bd3b264ca725283 | bluebottle/utils/staticfiles_finders.py | bluebottle/utils/staticfiles_finders.py | from django.utils._os import safe_join
import os
from django.conf import settings
from django.contrib.staticfiles.finders import FileSystemFinder
from bluebottle.clients.models import Client
class TenantStaticFilesFinder(FileSystemFinder):
def find(self, path, all=False):
"""
Looks for files in ... | from django.utils._os import safe_join
import os
from django.conf import settings
from django.contrib.staticfiles.finders import FileSystemFinder
from bluebottle.clients.models import Client
class TenantStaticFilesFinder(FileSystemFinder):
def find(self, path, all=False):
"""
Looks for files in ... | CHange settings name for tenant dir | CHange settings name for tenant dir
| Python | bsd-3-clause | jfterpstra/bluebottle,onepercentclub/bluebottle,onepercentclub/bluebottle,jfterpstra/bluebottle,jfterpstra/bluebottle,onepercentclub/bluebottle,jfterpstra/bluebottle,onepercentclub/bluebottle,onepercentclub/bluebottle | from django.utils._os import safe_join
import os
from django.conf import settings
from django.contrib.staticfiles.finders import FileSystemFinder
from bluebottle.clients.models import Client
class TenantStaticFilesFinder(FileSystemFinder):
def find(self, path, all=False):
"""
Looks for files in ... | from django.utils._os import safe_join
import os
from django.conf import settings
from django.contrib.staticfiles.finders import FileSystemFinder
from bluebottle.clients.models import Client
class TenantStaticFilesFinder(FileSystemFinder):
def find(self, path, all=False):
"""
Looks for files in ... | <commit_before>from django.utils._os import safe_join
import os
from django.conf import settings
from django.contrib.staticfiles.finders import FileSystemFinder
from bluebottle.clients.models import Client
class TenantStaticFilesFinder(FileSystemFinder):
def find(self, path, all=False):
"""
Look... | from django.utils._os import safe_join
import os
from django.conf import settings
from django.contrib.staticfiles.finders import FileSystemFinder
from bluebottle.clients.models import Client
class TenantStaticFilesFinder(FileSystemFinder):
def find(self, path, all=False):
"""
Looks for files in ... | from django.utils._os import safe_join
import os
from django.conf import settings
from django.contrib.staticfiles.finders import FileSystemFinder
from bluebottle.clients.models import Client
class TenantStaticFilesFinder(FileSystemFinder):
def find(self, path, all=False):
"""
Looks for files in ... | <commit_before>from django.utils._os import safe_join
import os
from django.conf import settings
from django.contrib.staticfiles.finders import FileSystemFinder
from bluebottle.clients.models import Client
class TenantStaticFilesFinder(FileSystemFinder):
def find(self, path, all=False):
"""
Look... |
b0701205f0b96645d3643bab5188f349cd604603 | binaries/streamer_binaries/__init__.py | binaries/streamer_binaries/__init__.py | import os
__version__ = '0.5.0'
# Module level variables.
ffmpeg = ''
"""The path to the installed FFmpeg binary."""
ffprobe = ''
"""The path to the installed FFprobe binary."""
packager = ''
"""The path to the installed Shaka Packager binary."""
# Get the directory path where this __init__.py file resides.
_dir_p... | import os
import platform
__version__ = '0.5.0'
# Get the directory path where this __init__.py file resides.
_dir_path = os.path.abspath(os.path.dirname(__file__))
# Compute the part of the file name that indicates the OS.
_os = {
'Linux': 'linux',
'Windows': 'win',
'Darwin': 'osx',
}[platform.system()]
# C... | Fix usage of local streamer_binaries module | build: Fix usage of local streamer_binaries module
The old code would search the directory for the binary to use. This
worked fine if the package were installed, but when adding the module
path to PYTHONPATH, this technique would fail because the folder would
have executables for all architetures.
Now we will comput... | Python | apache-2.0 | shaka-project/shaka-streamer,shaka-project/shaka-streamer | import os
__version__ = '0.5.0'
# Module level variables.
ffmpeg = ''
"""The path to the installed FFmpeg binary."""
ffprobe = ''
"""The path to the installed FFprobe binary."""
packager = ''
"""The path to the installed Shaka Packager binary."""
# Get the directory path where this __init__.py file resides.
_dir_p... | import os
import platform
__version__ = '0.5.0'
# Get the directory path where this __init__.py file resides.
_dir_path = os.path.abspath(os.path.dirname(__file__))
# Compute the part of the file name that indicates the OS.
_os = {
'Linux': 'linux',
'Windows': 'win',
'Darwin': 'osx',
}[platform.system()]
# C... | <commit_before>import os
__version__ = '0.5.0'
# Module level variables.
ffmpeg = ''
"""The path to the installed FFmpeg binary."""
ffprobe = ''
"""The path to the installed FFprobe binary."""
packager = ''
"""The path to the installed Shaka Packager binary."""
# Get the directory path where this __init__.py file ... | import os
import platform
__version__ = '0.5.0'
# Get the directory path where this __init__.py file resides.
_dir_path = os.path.abspath(os.path.dirname(__file__))
# Compute the part of the file name that indicates the OS.
_os = {
'Linux': 'linux',
'Windows': 'win',
'Darwin': 'osx',
}[platform.system()]
# C... | import os
__version__ = '0.5.0'
# Module level variables.
ffmpeg = ''
"""The path to the installed FFmpeg binary."""
ffprobe = ''
"""The path to the installed FFprobe binary."""
packager = ''
"""The path to the installed Shaka Packager binary."""
# Get the directory path where this __init__.py file resides.
_dir_p... | <commit_before>import os
__version__ = '0.5.0'
# Module level variables.
ffmpeg = ''
"""The path to the installed FFmpeg binary."""
ffprobe = ''
"""The path to the installed FFprobe binary."""
packager = ''
"""The path to the installed Shaka Packager binary."""
# Get the directory path where this __init__.py file ... |
d57670995709ae60e9cbed575b1ac9e63cba113a | src/env.py | src/env.py | class Environment:
def __init__(self, par=None, bnd=None):
if bnd:
self.binds = bnd
else:
self.binds = {}
self.parent = par
if par:
self.level = self.parent.level + 1
else:
self.level = 0
def get(self,... | class Environment:
def __init__(self, par=None, bnd=None):
if bnd:
self.binds = bnd
else:
self.binds = {}
self.parent = par
if par:
self.level = self.parent.level + 1
else:
self.level = 0
def get(self,... | Raise an error when a symbol cannot be found | Raise an error when a symbol cannot be found
| Python | mit | readevalprintlove/lithp,fogus/lithp,fogus/lithp,readevalprintlove/lithp,magomsk/lithp,readevalprintlove/lithp,fogus/lithp,magomsk/lithp,magomsk/lithp | class Environment:
def __init__(self, par=None, bnd=None):
if bnd:
self.binds = bnd
else:
self.binds = {}
self.parent = par
if par:
self.level = self.parent.level + 1
else:
self.level = 0
def get(self,... | class Environment:
def __init__(self, par=None, bnd=None):
if bnd:
self.binds = bnd
else:
self.binds = {}
self.parent = par
if par:
self.level = self.parent.level + 1
else:
self.level = 0
def get(self,... | <commit_before>class Environment:
def __init__(self, par=None, bnd=None):
if bnd:
self.binds = bnd
else:
self.binds = {}
self.parent = par
if par:
self.level = self.parent.level + 1
else:
self.level = 0
... | class Environment:
def __init__(self, par=None, bnd=None):
if bnd:
self.binds = bnd
else:
self.binds = {}
self.parent = par
if par:
self.level = self.parent.level + 1
else:
self.level = 0
def get(self,... | class Environment:
def __init__(self, par=None, bnd=None):
if bnd:
self.binds = bnd
else:
self.binds = {}
self.parent = par
if par:
self.level = self.parent.level + 1
else:
self.level = 0
def get(self,... | <commit_before>class Environment:
def __init__(self, par=None, bnd=None):
if bnd:
self.binds = bnd
else:
self.binds = {}
self.parent = par
if par:
self.level = self.parent.level + 1
else:
self.level = 0
... |
b8193a26f0a09ea1cba08046432a02a5e263eb29 | examples/svg-path.py | examples/svg-path.py | # -----------------------------------------------------------------------------
# Copyright (c) 2009-2016 Nicolas P. Rougier. All rights reserved.
# Distributed under the (new) BSD License.
# -----------------------------------------------------------------------------
import re
import numpy as np
from glumpy import ap... | # -----------------------------------------------------------------------------
# Copyright (c) 2009-2016 Nicolas P. Rougier. All rights reserved.
# Distributed under the (new) BSD License.
# -----------------------------------------------------------------------------
import re
import numpy as np
from glumpy import ap... | Switch back the good agg version (instead of agg+) | Switch back the good agg version (instead of agg+)
| Python | bsd-3-clause | glumpy/glumpy,glumpy/glumpy | # -----------------------------------------------------------------------------
# Copyright (c) 2009-2016 Nicolas P. Rougier. All rights reserved.
# Distributed under the (new) BSD License.
# -----------------------------------------------------------------------------
import re
import numpy as np
from glumpy import ap... | # -----------------------------------------------------------------------------
# Copyright (c) 2009-2016 Nicolas P. Rougier. All rights reserved.
# Distributed under the (new) BSD License.
# -----------------------------------------------------------------------------
import re
import numpy as np
from glumpy import ap... | <commit_before># -----------------------------------------------------------------------------
# Copyright (c) 2009-2016 Nicolas P. Rougier. All rights reserved.
# Distributed under the (new) BSD License.
# -----------------------------------------------------------------------------
import re
import numpy as np
from g... | # -----------------------------------------------------------------------------
# Copyright (c) 2009-2016 Nicolas P. Rougier. All rights reserved.
# Distributed under the (new) BSD License.
# -----------------------------------------------------------------------------
import re
import numpy as np
from glumpy import ap... | # -----------------------------------------------------------------------------
# Copyright (c) 2009-2016 Nicolas P. Rougier. All rights reserved.
# Distributed under the (new) BSD License.
# -----------------------------------------------------------------------------
import re
import numpy as np
from glumpy import ap... | <commit_before># -----------------------------------------------------------------------------
# Copyright (c) 2009-2016 Nicolas P. Rougier. All rights reserved.
# Distributed under the (new) BSD License.
# -----------------------------------------------------------------------------
import re
import numpy as np
from g... |
d54544ecf6469eedce80d6d3180aa826c1fcc19a | cpgintegrate/__init__.py | cpgintegrate/__init__.py | import pandas
import traceback
import typing
def process_files(file_iterator: typing.Iterator[typing.IO], processor: typing.Callable) -> pandas.DataFrame:
def get_frames():
for file in file_iterator:
df = processor(file)
yield (df
.assign(Source=getattr(file, 'n... | import pandas
import typing
def process_files(file_iterator: typing.Iterator[typing.IO], processor: typing.Callable) -> pandas.DataFrame:
def get_frames():
for file in file_iterator:
source = getattr(file, 'name', None)
subject_id = getattr(file, 'cpgintegrate_subject_id', None)
... | Add file source and subjectID to processing exceptions | Add file source and subjectID to processing exceptions
| Python | agpl-3.0 | PointyShinyBurning/cpgintegrate | import pandas
import traceback
import typing
def process_files(file_iterator: typing.Iterator[typing.IO], processor: typing.Callable) -> pandas.DataFrame:
def get_frames():
for file in file_iterator:
df = processor(file)
yield (df
.assign(Source=getattr(file, 'n... | import pandas
import typing
def process_files(file_iterator: typing.Iterator[typing.IO], processor: typing.Callable) -> pandas.DataFrame:
def get_frames():
for file in file_iterator:
source = getattr(file, 'name', None)
subject_id = getattr(file, 'cpgintegrate_subject_id', None)
... | <commit_before>import pandas
import traceback
import typing
def process_files(file_iterator: typing.Iterator[typing.IO], processor: typing.Callable) -> pandas.DataFrame:
def get_frames():
for file in file_iterator:
df = processor(file)
yield (df
.assign(Source=g... | import pandas
import typing
def process_files(file_iterator: typing.Iterator[typing.IO], processor: typing.Callable) -> pandas.DataFrame:
def get_frames():
for file in file_iterator:
source = getattr(file, 'name', None)
subject_id = getattr(file, 'cpgintegrate_subject_id', None)
... | import pandas
import traceback
import typing
def process_files(file_iterator: typing.Iterator[typing.IO], processor: typing.Callable) -> pandas.DataFrame:
def get_frames():
for file in file_iterator:
df = processor(file)
yield (df
.assign(Source=getattr(file, 'n... | <commit_before>import pandas
import traceback
import typing
def process_files(file_iterator: typing.Iterator[typing.IO], processor: typing.Callable) -> pandas.DataFrame:
def get_frames():
for file in file_iterator:
df = processor(file)
yield (df
.assign(Source=g... |
4c5ce80d469619de6a324bd779c6884f6070106f | homepage/__init__.py | homepage/__init__.py | """
hello/__init__.py
------------------
Initializes Flask application and brings all components together.
"""
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_misaka import Misaka
# Create application object
app = Flask(__name__, instance_relative_config=True,
static... | """
hello/__init__.py
------------------
Initializes Flask application and brings all components together.
"""
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_misaka import Misaka
# Create application object
app = Flask(__name__, instance_relative_config=True,
static... | Fix static url path error. | Fix static url path error.
| Python | mit | kennyng/kennyng.org,kennyng/kennyng.org,kennyng/kennyng.org,kennyng/kennyng.org | """
hello/__init__.py
------------------
Initializes Flask application and brings all components together.
"""
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_misaka import Misaka
# Create application object
app = Flask(__name__, instance_relative_config=True,
static... | """
hello/__init__.py
------------------
Initializes Flask application and brings all components together.
"""
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_misaka import Misaka
# Create application object
app = Flask(__name__, instance_relative_config=True,
static... | <commit_before>"""
hello/__init__.py
------------------
Initializes Flask application and brings all components together.
"""
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_misaka import Misaka
# Create application object
app = Flask(__name__, instance_relative_config=True,
... | """
hello/__init__.py
------------------
Initializes Flask application and brings all components together.
"""
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_misaka import Misaka
# Create application object
app = Flask(__name__, instance_relative_config=True,
static... | """
hello/__init__.py
------------------
Initializes Flask application and brings all components together.
"""
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_misaka import Misaka
# Create application object
app = Flask(__name__, instance_relative_config=True,
static... | <commit_before>"""
hello/__init__.py
------------------
Initializes Flask application and brings all components together.
"""
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_misaka import Misaka
# Create application object
app = Flask(__name__, instance_relative_config=True,
... |
0480c304488e4c8bb9908babafa13745b007ee0a | setup.py | setup.py | #!/usr/bin/env python
# Licensed under a 3-clause BSD style license - see LICENSE.rst
# NOTE: most of the configuration, including the version number,
# is defined in setup.cfg
import sys
from distutils.version import LooseVersion
import setuptools
from setuptools import setup
if LooseVersion(setuptools.__version__... | #!/usr/bin/env python
# Licensed under a 3-clause BSD style license - see LICENSE.rst
# NOTE: most of the configuration, including the version number,
# is defined in setup.cfg
import os
import sys
from distutils.version import LooseVersion
import setuptools
from setuptools import setup
if LooseVersion(setuptools._... | Fix pip installs of astropy-helpers | Fix pip installs of astropy-helpers | Python | bsd-3-clause | astropy/astropy-helpers,astropy/astropy-helpers | #!/usr/bin/env python
# Licensed under a 3-clause BSD style license - see LICENSE.rst
# NOTE: most of the configuration, including the version number,
# is defined in setup.cfg
import sys
from distutils.version import LooseVersion
import setuptools
from setuptools import setup
if LooseVersion(setuptools.__version__... | #!/usr/bin/env python
# Licensed under a 3-clause BSD style license - see LICENSE.rst
# NOTE: most of the configuration, including the version number,
# is defined in setup.cfg
import os
import sys
from distutils.version import LooseVersion
import setuptools
from setuptools import setup
if LooseVersion(setuptools._... | <commit_before>#!/usr/bin/env python
# Licensed under a 3-clause BSD style license - see LICENSE.rst
# NOTE: most of the configuration, including the version number,
# is defined in setup.cfg
import sys
from distutils.version import LooseVersion
import setuptools
from setuptools import setup
if LooseVersion(setupto... | #!/usr/bin/env python
# Licensed under a 3-clause BSD style license - see LICENSE.rst
# NOTE: most of the configuration, including the version number,
# is defined in setup.cfg
import os
import sys
from distutils.version import LooseVersion
import setuptools
from setuptools import setup
if LooseVersion(setuptools._... | #!/usr/bin/env python
# Licensed under a 3-clause BSD style license - see LICENSE.rst
# NOTE: most of the configuration, including the version number,
# is defined in setup.cfg
import sys
from distutils.version import LooseVersion
import setuptools
from setuptools import setup
if LooseVersion(setuptools.__version__... | <commit_before>#!/usr/bin/env python
# Licensed under a 3-clause BSD style license - see LICENSE.rst
# NOTE: most of the configuration, including the version number,
# is defined in setup.cfg
import sys
from distutils.version import LooseVersion
import setuptools
from setuptools import setup
if LooseVersion(setupto... |
45348030b5dee0f83632671c26d0ef63287160bb | setup.py | setup.py | from os.path import join, dirname
from setuptools import setup
import django_ponydebugger
with open(join(dirname(__file__), 'README.rst')) as f:
readme = f.read()
with open(join(dirname(__file__), 'LICENSE')) as f:
license = f.read()
setup(
name='django-ponydebugger',
version=django_ponydebugger.__... | import os
from setuptools import setup
import django_ponydebugger
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as f:
readme = f.read()
setup(
name='django-ponydebugger',
version=django_ponydebugger.__version__,
description='PonyDebugger support for Django',
long_description=r... | Use a short string for the license. | Use a short string for the license.
| Python | mit | educreations/django-ponydebugger | from os.path import join, dirname
from setuptools import setup
import django_ponydebugger
with open(join(dirname(__file__), 'README.rst')) as f:
readme = f.read()
with open(join(dirname(__file__), 'LICENSE')) as f:
license = f.read()
setup(
name='django-ponydebugger',
version=django_ponydebugger.__... | import os
from setuptools import setup
import django_ponydebugger
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as f:
readme = f.read()
setup(
name='django-ponydebugger',
version=django_ponydebugger.__version__,
description='PonyDebugger support for Django',
long_description=r... | <commit_before>from os.path import join, dirname
from setuptools import setup
import django_ponydebugger
with open(join(dirname(__file__), 'README.rst')) as f:
readme = f.read()
with open(join(dirname(__file__), 'LICENSE')) as f:
license = f.read()
setup(
name='django-ponydebugger',
version=django_... | import os
from setuptools import setup
import django_ponydebugger
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as f:
readme = f.read()
setup(
name='django-ponydebugger',
version=django_ponydebugger.__version__,
description='PonyDebugger support for Django',
long_description=r... | from os.path import join, dirname
from setuptools import setup
import django_ponydebugger
with open(join(dirname(__file__), 'README.rst')) as f:
readme = f.read()
with open(join(dirname(__file__), 'LICENSE')) as f:
license = f.read()
setup(
name='django-ponydebugger',
version=django_ponydebugger.__... | <commit_before>from os.path import join, dirname
from setuptools import setup
import django_ponydebugger
with open(join(dirname(__file__), 'README.rst')) as f:
readme = f.read()
with open(join(dirname(__file__), 'LICENSE')) as f:
license = f.read()
setup(
name='django-ponydebugger',
version=django_... |
f74bc34f40ac746d501e164ea4fd31eda4bf4b21 | setup.py | setup.py | from setuptools import setup
entry_points = {
'console_scripts': [
'whatportis=whatportis.main:run',
]
}
requirements = open('requirements.txt').read()
readme = open('README.rst').read()
setup(
name="whatportis",
version="0.3",
url='http://github.com/ncrocfer/whatportis',
author='Nicol... | from setuptools import setup
entry_points = {
'console_scripts': [
'whatportis=whatportis.main:run',
]
}
requirements = open('requirements.txt').read()
readme = open('README.rst').read()
setup(
name="whatportis",
version="0.4",
url='http://github.com/ncrocfer/whatportis',
author='Nicol... | Update version (0.3 -> 0.4) | Update version (0.3 -> 0.4)
| Python | mit | ncrocfer/whatportis | from setuptools import setup
entry_points = {
'console_scripts': [
'whatportis=whatportis.main:run',
]
}
requirements = open('requirements.txt').read()
readme = open('README.rst').read()
setup(
name="whatportis",
version="0.3",
url='http://github.com/ncrocfer/whatportis',
author='Nicol... | from setuptools import setup
entry_points = {
'console_scripts': [
'whatportis=whatportis.main:run',
]
}
requirements = open('requirements.txt').read()
readme = open('README.rst').read()
setup(
name="whatportis",
version="0.4",
url='http://github.com/ncrocfer/whatportis',
author='Nicol... | <commit_before>from setuptools import setup
entry_points = {
'console_scripts': [
'whatportis=whatportis.main:run',
]
}
requirements = open('requirements.txt').read()
readme = open('README.rst').read()
setup(
name="whatportis",
version="0.3",
url='http://github.com/ncrocfer/whatportis',
... | from setuptools import setup
entry_points = {
'console_scripts': [
'whatportis=whatportis.main:run',
]
}
requirements = open('requirements.txt').read()
readme = open('README.rst').read()
setup(
name="whatportis",
version="0.4",
url='http://github.com/ncrocfer/whatportis',
author='Nicol... | from setuptools import setup
entry_points = {
'console_scripts': [
'whatportis=whatportis.main:run',
]
}
requirements = open('requirements.txt').read()
readme = open('README.rst').read()
setup(
name="whatportis",
version="0.3",
url='http://github.com/ncrocfer/whatportis',
author='Nicol... | <commit_before>from setuptools import setup
entry_points = {
'console_scripts': [
'whatportis=whatportis.main:run',
]
}
requirements = open('requirements.txt').read()
readme = open('README.rst').read()
setup(
name="whatportis",
version="0.3",
url='http://github.com/ncrocfer/whatportis',
... |
16812eadadecdb4449f796f453e891d1adecf95d | setup.py | setup.py | #!/usr/bin/python -tt
# -*- coding: utf-8 -*-
from setuptools import find_packages, setup
import kitchen.release
setup(name='kitchen',
version=kitchen.release.__version__,
description=kitchen.release.DESCRIPTION,
author=kitchen.release.AUTHOR,
author_email=kitchen.release.EMAIL,
license=... | #!/usr/bin/python -tt
# -*- coding: utf-8 -*-
from setuptools import find_packages, setup
import kitchen.release
setup(name='kitchen',
version=kitchen.release.__version__,
description=kitchen.release.DESCRIPTION,
author=kitchen.release.AUTHOR,
author_email=kitchen.release.EMAIL,
license=... | Add Python-2.7 as a platform kitchen runs on | Add Python-2.7 as a platform kitchen runs on
| Python | lgpl-2.1 | fedora-infra/kitchen,fedora-infra/kitchen | #!/usr/bin/python -tt
# -*- coding: utf-8 -*-
from setuptools import find_packages, setup
import kitchen.release
setup(name='kitchen',
version=kitchen.release.__version__,
description=kitchen.release.DESCRIPTION,
author=kitchen.release.AUTHOR,
author_email=kitchen.release.EMAIL,
license=... | #!/usr/bin/python -tt
# -*- coding: utf-8 -*-
from setuptools import find_packages, setup
import kitchen.release
setup(name='kitchen',
version=kitchen.release.__version__,
description=kitchen.release.DESCRIPTION,
author=kitchen.release.AUTHOR,
author_email=kitchen.release.EMAIL,
license=... | <commit_before>#!/usr/bin/python -tt
# -*- coding: utf-8 -*-
from setuptools import find_packages, setup
import kitchen.release
setup(name='kitchen',
version=kitchen.release.__version__,
description=kitchen.release.DESCRIPTION,
author=kitchen.release.AUTHOR,
author_email=kitchen.release.EMAIL,... | #!/usr/bin/python -tt
# -*- coding: utf-8 -*-
from setuptools import find_packages, setup
import kitchen.release
setup(name='kitchen',
version=kitchen.release.__version__,
description=kitchen.release.DESCRIPTION,
author=kitchen.release.AUTHOR,
author_email=kitchen.release.EMAIL,
license=... | #!/usr/bin/python -tt
# -*- coding: utf-8 -*-
from setuptools import find_packages, setup
import kitchen.release
setup(name='kitchen',
version=kitchen.release.__version__,
description=kitchen.release.DESCRIPTION,
author=kitchen.release.AUTHOR,
author_email=kitchen.release.EMAIL,
license=... | <commit_before>#!/usr/bin/python -tt
# -*- coding: utf-8 -*-
from setuptools import find_packages, setup
import kitchen.release
setup(name='kitchen',
version=kitchen.release.__version__,
description=kitchen.release.DESCRIPTION,
author=kitchen.release.AUTHOR,
author_email=kitchen.release.EMAIL,... |
375657de7eff50c182bd78196d22101a1a8bcb91 | setup.py | setup.py | """ Drupdates setup script. """
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name='Drupdates',
description='Drupal updates scripts',
author='Jim Taylor',
url='https://github.com/jalama/drupdates',
download_url='https://github.com/jalama/drupd... | """ Drupdates setup script. """
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name='Drupdates',
description='Drupal updates scripts',
author='Jim Taylor',
url='https://github.com/jalama/drupdates',
download_url='https://github.com/jalama/drupd... | Update Development Status to stable | Update Development Status to stable
| Python | mit | jalama/drupdates | """ Drupdates setup script. """
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name='Drupdates',
description='Drupal updates scripts',
author='Jim Taylor',
url='https://github.com/jalama/drupdates',
download_url='https://github.com/jalama/drupd... | """ Drupdates setup script. """
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name='Drupdates',
description='Drupal updates scripts',
author='Jim Taylor',
url='https://github.com/jalama/drupdates',
download_url='https://github.com/jalama/drupd... | <commit_before>""" Drupdates setup script. """
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name='Drupdates',
description='Drupal updates scripts',
author='Jim Taylor',
url='https://github.com/jalama/drupdates',
download_url='https://github.c... | """ Drupdates setup script. """
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name='Drupdates',
description='Drupal updates scripts',
author='Jim Taylor',
url='https://github.com/jalama/drupdates',
download_url='https://github.com/jalama/drupd... | """ Drupdates setup script. """
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name='Drupdates',
description='Drupal updates scripts',
author='Jim Taylor',
url='https://github.com/jalama/drupdates',
download_url='https://github.com/jalama/drupd... | <commit_before>""" Drupdates setup script. """
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name='Drupdates',
description='Drupal updates scripts',
author='Jim Taylor',
url='https://github.com/jalama/drupdates',
download_url='https://github.c... |
162d5514145f3797e0b9fb6dd19c948d9ddc82b1 | setup.py | setup.py | """ crmngr setup module. """
from setuptools import setup, find_packages
from crmngr.version import __version__
setup(
name='crmngr',
author='Andre Keller',
author_email='andre.keller@vshn.ch',
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended ... | """ crmngr setup module. """
from pathlib import Path
import re
from setuptools import setup, find_packages
# Read version from crmngr/version.py
# we do not import, as this fails if dependencies from install_depends are not
# available
with open(Path('./crmngr/version.py')) as version_file:
VERSION_REGEX = re.co... | Change version lookup for packaging. | Change version lookup for packaging.
The current approach imports the version directly from crmngr. This
is a problem if the build environment does not have crmngr runtime
libraries installed and leads to having unnecessary build dependencies.
The new approach extracts the version from the python file directly,
allowi... | Python | bsd-3-clause | vshn/crmngr | """ crmngr setup module. """
from setuptools import setup, find_packages
from crmngr.version import __version__
setup(
name='crmngr',
author='Andre Keller',
author_email='andre.keller@vshn.ch',
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended ... | """ crmngr setup module. """
from pathlib import Path
import re
from setuptools import setup, find_packages
# Read version from crmngr/version.py
# we do not import, as this fails if dependencies from install_depends are not
# available
with open(Path('./crmngr/version.py')) as version_file:
VERSION_REGEX = re.co... | <commit_before>""" crmngr setup module. """
from setuptools import setup, find_packages
from crmngr.version import __version__
setup(
name='crmngr',
author='Andre Keller',
author_email='andre.keller@vshn.ch',
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
... | """ crmngr setup module. """
from pathlib import Path
import re
from setuptools import setup, find_packages
# Read version from crmngr/version.py
# we do not import, as this fails if dependencies from install_depends are not
# available
with open(Path('./crmngr/version.py')) as version_file:
VERSION_REGEX = re.co... | """ crmngr setup module. """
from setuptools import setup, find_packages
from crmngr.version import __version__
setup(
name='crmngr',
author='Andre Keller',
author_email='andre.keller@vshn.ch',
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended ... | <commit_before>""" crmngr setup module. """
from setuptools import setup, find_packages
from crmngr.version import __version__
setup(
name='crmngr',
author='Andre Keller',
author_email='andre.keller@vshn.ch',
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
... |
15e493c5402d07cb735fb8773ad499d1e5b19e19 | setup.py | setup.py | from setuptools import setup, find_packages
version = '0.2'
setup(
name='ckanext-oaipmh',
version=version,
description="OAI-PMH harvester for CKAN",
long_description="""\
""",
classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
keywords='',
au... | from setuptools import setup, find_packages
version = '0.2'
setup(
name='ckanext-oaipmh',
version=version,
description="OAI-PMH harvester for CKAN",
long_description="""\
""",
classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
keywords='',
au... | Update author to CSC - IT Center for Science Ltd. | Update author to CSC - IT Center for Science Ltd.
| Python | agpl-3.0 | kata-csc/ckanext-oaipmh,kata-csc/ckanext-oaipmh,kata-csc/ckanext-oaipmh | from setuptools import setup, find_packages
version = '0.2'
setup(
name='ckanext-oaipmh',
version=version,
description="OAI-PMH harvester for CKAN",
long_description="""\
""",
classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
keywords='',
au... | from setuptools import setup, find_packages
version = '0.2'
setup(
name='ckanext-oaipmh',
version=version,
description="OAI-PMH harvester for CKAN",
long_description="""\
""",
classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
keywords='',
au... | <commit_before>from setuptools import setup, find_packages
version = '0.2'
setup(
name='ckanext-oaipmh',
version=version,
description="OAI-PMH harvester for CKAN",
long_description="""\
""",
classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
keyw... | from setuptools import setup, find_packages
version = '0.2'
setup(
name='ckanext-oaipmh',
version=version,
description="OAI-PMH harvester for CKAN",
long_description="""\
""",
classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
keywords='',
au... | from setuptools import setup, find_packages
version = '0.2'
setup(
name='ckanext-oaipmh',
version=version,
description="OAI-PMH harvester for CKAN",
long_description="""\
""",
classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
keywords='',
au... | <commit_before>from setuptools import setup, find_packages
version = '0.2'
setup(
name='ckanext-oaipmh',
version=version,
description="OAI-PMH harvester for CKAN",
long_description="""\
""",
classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
keyw... |
fe5ddba257885aa166bd71696a6eeefad153e66a | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import sockjsroom
# Setup library
setup(
# Pypi name
name = "sockjsroom",
# Release version
version = sockjsroom.__version__,
# Associated package
packages = find_packages(),
# Author
author... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import sockjsroom
# Setup library
setup(
# Pypi name
name = "sockjsroom",
# Release version
version = sockjsroom.__version__,
# Associated package
packages = find_packages(),
# Author
author... | Switch to OSI license for Pypi | Switch to OSI license for Pypi
| Python | mit | Deisss/python-sockjsroom,Deisss/python-sockjsroom,Deisss/python-sockjsroom | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import sockjsroom
# Setup library
setup(
# Pypi name
name = "sockjsroom",
# Release version
version = sockjsroom.__version__,
# Associated package
packages = find_packages(),
# Author
author... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import sockjsroom
# Setup library
setup(
# Pypi name
name = "sockjsroom",
# Release version
version = sockjsroom.__version__,
# Associated package
packages = find_packages(),
# Author
author... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import sockjsroom
# Setup library
setup(
# Pypi name
name = "sockjsroom",
# Release version
version = sockjsroom.__version__,
# Associated package
packages = find_packages(),
# Au... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import sockjsroom
# Setup library
setup(
# Pypi name
name = "sockjsroom",
# Release version
version = sockjsroom.__version__,
# Associated package
packages = find_packages(),
# Author
author... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import sockjsroom
# Setup library
setup(
# Pypi name
name = "sockjsroom",
# Release version
version = sockjsroom.__version__,
# Associated package
packages = find_packages(),
# Author
author... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import sockjsroom
# Setup library
setup(
# Pypi name
name = "sockjsroom",
# Release version
version = sockjsroom.__version__,
# Associated package
packages = find_packages(),
# Au... |
64e2e80570268c2be47198495334ccffcd387b35 | setup.py | setup.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import codecs
from setuptools import setup, find_packages
setup(
name='Venom',
version='1.0.0a1',
packages=find_packages(exclude=['*tests*']),
url='https://github.com/biosustain/venom',
license='MIT',
author='Lars Schöning',
au... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import codecs
from setuptools import setup, find_packages
setup(
name='venom',
version='1.0.0a1',
packages=find_packages(exclude=['*tests*']),
url='https://github.com/biosustain/venom',
license='MIT',
author='Lars Schöning',
au... | Add 'ujson' requirement for tests & aiohttp | Add 'ujson' requirement for tests & aiohttp
| Python | mit | biosustain/venom | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import codecs
from setuptools import setup, find_packages
setup(
name='Venom',
version='1.0.0a1',
packages=find_packages(exclude=['*tests*']),
url='https://github.com/biosustain/venom',
license='MIT',
author='Lars Schöning',
au... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import codecs
from setuptools import setup, find_packages
setup(
name='venom',
version='1.0.0a1',
packages=find_packages(exclude=['*tests*']),
url='https://github.com/biosustain/venom',
license='MIT',
author='Lars Schöning',
au... | <commit_before># -*- coding: utf-8 -*-
from __future__ import unicode_literals
import codecs
from setuptools import setup, find_packages
setup(
name='Venom',
version='1.0.0a1',
packages=find_packages(exclude=['*tests*']),
url='https://github.com/biosustain/venom',
license='MIT',
author='Lars Sc... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import codecs
from setuptools import setup, find_packages
setup(
name='venom',
version='1.0.0a1',
packages=find_packages(exclude=['*tests*']),
url='https://github.com/biosustain/venom',
license='MIT',
author='Lars Schöning',
au... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import codecs
from setuptools import setup, find_packages
setup(
name='Venom',
version='1.0.0a1',
packages=find_packages(exclude=['*tests*']),
url='https://github.com/biosustain/venom',
license='MIT',
author='Lars Schöning',
au... | <commit_before># -*- coding: utf-8 -*-
from __future__ import unicode_literals
import codecs
from setuptools import setup, find_packages
setup(
name='Venom',
version='1.0.0a1',
packages=find_packages(exclude=['*tests*']),
url='https://github.com/biosustain/venom',
license='MIT',
author='Lars Sc... |
8a630fc6e33a76def9d8288a3d04fcacbc3e1d03 | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
rack-ddnsm
~~~~~
Dynamic DNS metadata for Rackspace Cloud DNS,
manages TXT records containing metadata in the format of title,desc,data.
:copyright: (c) 2015 by Alex Edwards.
:license: MIT, see LICENSE for more details.
:repo: <https://gi... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
rack-ddnsm
~~~~~
Dynamic DNS metadata for Rackspace Cloud DNS,
manages TXT records containing metadata in the format of title,desc,data.
:copyright: (c) 2015 by Alex Edwards.
:license: MIT, see LICENSE for more details.
:repo: <https://gi... | Fix other names of packages | Fix other names of packages
| Python | mit | sunshinekitty/rack-ddnsm | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
rack-ddnsm
~~~~~
Dynamic DNS metadata for Rackspace Cloud DNS,
manages TXT records containing metadata in the format of title,desc,data.
:copyright: (c) 2015 by Alex Edwards.
:license: MIT, see LICENSE for more details.
:repo: <https://gi... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
rack-ddnsm
~~~~~
Dynamic DNS metadata for Rackspace Cloud DNS,
manages TXT records containing metadata in the format of title,desc,data.
:copyright: (c) 2015 by Alex Edwards.
:license: MIT, see LICENSE for more details.
:repo: <https://gi... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
rack-ddnsm
~~~~~
Dynamic DNS metadata for Rackspace Cloud DNS,
manages TXT records containing metadata in the format of title,desc,data.
:copyright: (c) 2015 by Alex Edwards.
:license: MIT, see LICENSE for more details.
:re... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
rack-ddnsm
~~~~~
Dynamic DNS metadata for Rackspace Cloud DNS,
manages TXT records containing metadata in the format of title,desc,data.
:copyright: (c) 2015 by Alex Edwards.
:license: MIT, see LICENSE for more details.
:repo: <https://gi... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
rack-ddnsm
~~~~~
Dynamic DNS metadata for Rackspace Cloud DNS,
manages TXT records containing metadata in the format of title,desc,data.
:copyright: (c) 2015 by Alex Edwards.
:license: MIT, see LICENSE for more details.
:repo: <https://gi... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
rack-ddnsm
~~~~~
Dynamic DNS metadata for Rackspace Cloud DNS,
manages TXT records containing metadata in the format of title,desc,data.
:copyright: (c) 2015 by Alex Edwards.
:license: MIT, see LICENSE for more details.
:re... |
68ca61ec2206b83cca34a319a472961793771407 | setup.py | setup.py | import os
from distutils.core import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def package_data(package):
package_data = []
for dirpath, dirnames, filenames in os.walk(
os.path.join(os.path.dirname(__file__), package)):
for i, dirname in ... | import os
from distutils.core import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='django-linkcheck',
version='0.1.0',
description="A Django app that will analyze and report on links in any "
"model that you register with it.",
... | Use static definition for package data. | Use static definition for package data. | Python | bsd-3-clause | Ixxy-Open-Source/django-linkcheck-old,claudep/django-linkcheck,Ixxy-Open-Source/django-linkcheck-old,claudep/django-linkcheck,AASHE/django-linkcheck,yvess/django-linkcheck,DjangoAdminHackers/django-linkcheck,DjangoAdminHackers/django-linkcheck | import os
from distutils.core import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def package_data(package):
package_data = []
for dirpath, dirnames, filenames in os.walk(
os.path.join(os.path.dirname(__file__), package)):
for i, dirname in ... | import os
from distutils.core import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='django-linkcheck',
version='0.1.0',
description="A Django app that will analyze and report on links in any "
"model that you register with it.",
... | <commit_before>import os
from distutils.core import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def package_data(package):
package_data = []
for dirpath, dirnames, filenames in os.walk(
os.path.join(os.path.dirname(__file__), package)):
for... | import os
from distutils.core import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='django-linkcheck',
version='0.1.0',
description="A Django app that will analyze and report on links in any "
"model that you register with it.",
... | import os
from distutils.core import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def package_data(package):
package_data = []
for dirpath, dirnames, filenames in os.walk(
os.path.join(os.path.dirname(__file__), package)):
for i, dirname in ... | <commit_before>import os
from distutils.core import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def package_data(package):
package_data = []
for dirpath, dirnames, filenames in os.walk(
os.path.join(os.path.dirname(__file__), package)):
for... |
27851b9f2371853f1386d0033d0b9b2d0ef74b75 | setup.py | setup.py | import sys
from setuptools import setup
# To use a consistent encoding
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long description from the relevant file
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
from setup... | import sys
from setuptools import setup
# To use a consistent encoding
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long description from the relevant file
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
from setup... | Include templates in package distribution | Include templates in package distribution
| Python | bsd-2-clause | fusionbox/django-verified-email-change,fusionbox/django-verified-email-change | import sys
from setuptools import setup
# To use a consistent encoding
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long description from the relevant file
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
from setup... | import sys
from setuptools import setup
# To use a consistent encoding
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long description from the relevant file
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
from setup... | <commit_before>import sys
from setuptools import setup
# To use a consistent encoding
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long description from the relevant file
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read... | import sys
from setuptools import setup
# To use a consistent encoding
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long description from the relevant file
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
from setup... | import sys
from setuptools import setup
# To use a consistent encoding
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long description from the relevant file
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
from setup... | <commit_before>import sys
from setuptools import setup
# To use a consistent encoding
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long description from the relevant file
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read... |
a28923d292abcb4b509b4a7eb95bdf2982c90bab | setup.py | setup.py | # coding: utf-8
from __future__ import unicode_literals
from setuptools import setup, find_packages
from os.path import dirname, join
def main():
base_dir = dirname(__file__)
setup(
name='genty',
version='0.0.1',
description='Allows you to run a test with multiple data sets',
... | # coding: utf-8
from __future__ import unicode_literals
from setuptools import setup, find_packages
from os.path import dirname, join
def main():
base_dir = dirname(__file__)
setup(
name='genty',
version='0.0.1',
description='Allows you to run a test with multiple data sets',
... | Add "box.text" back to namespaced package | Add "box.text" back to namespaced package
| Python | apache-2.0 | box/genty,box/genty | # coding: utf-8
from __future__ import unicode_literals
from setuptools import setup, find_packages
from os.path import dirname, join
def main():
base_dir = dirname(__file__)
setup(
name='genty',
version='0.0.1',
description='Allows you to run a test with multiple data sets',
... | # coding: utf-8
from __future__ import unicode_literals
from setuptools import setup, find_packages
from os.path import dirname, join
def main():
base_dir = dirname(__file__)
setup(
name='genty',
version='0.0.1',
description='Allows you to run a test with multiple data sets',
... | <commit_before># coding: utf-8
from __future__ import unicode_literals
from setuptools import setup, find_packages
from os.path import dirname, join
def main():
base_dir = dirname(__file__)
setup(
name='genty',
version='0.0.1',
description='Allows you to run a test with multiple data ... | # coding: utf-8
from __future__ import unicode_literals
from setuptools import setup, find_packages
from os.path import dirname, join
def main():
base_dir = dirname(__file__)
setup(
name='genty',
version='0.0.1',
description='Allows you to run a test with multiple data sets',
... | # coding: utf-8
from __future__ import unicode_literals
from setuptools import setup, find_packages
from os.path import dirname, join
def main():
base_dir = dirname(__file__)
setup(
name='genty',
version='0.0.1',
description='Allows you to run a test with multiple data sets',
... | <commit_before># coding: utf-8
from __future__ import unicode_literals
from setuptools import setup, find_packages
from os.path import dirname, join
def main():
base_dir = dirname(__file__)
setup(
name='genty',
version='0.0.1',
description='Allows you to run a test with multiple data ... |
de548682a8cae05fac4b303d08ec321fb683cc63 | setup.py | setup.py |
from setuptools import setup
setup(
name="public-drive-urls",
version='0.4.0',
author="Brian Peterson",
author_email="bepetersn@gmail.com",
description="Find Google Drive download URLs from a file's sharing URL",
license="MIT",
url='https://github.com/bepetersn/public-drive-urls/',
py_... |
from setuptools import setup
setup(
name="public-drive-urls",
version='1.0.0',
author="Brian Peterson",
author_email="bepetersn@gmail.com",
description="Find Google Drive download URLs from a file's sharing URL",
license="MIT",
url='https://github.com/bepetersn/public-drive-urls/',
py_... | Bump version to a major number now that it's tested and we broke some APIs | Bump version to a major number now that it's tested and we broke some APIs
| Python | mit | bepetersn/public-drive-urls |
from setuptools import setup
setup(
name="public-drive-urls",
version='0.4.0',
author="Brian Peterson",
author_email="bepetersn@gmail.com",
description="Find Google Drive download URLs from a file's sharing URL",
license="MIT",
url='https://github.com/bepetersn/public-drive-urls/',
py_... |
from setuptools import setup
setup(
name="public-drive-urls",
version='1.0.0',
author="Brian Peterson",
author_email="bepetersn@gmail.com",
description="Find Google Drive download URLs from a file's sharing URL",
license="MIT",
url='https://github.com/bepetersn/public-drive-urls/',
py_... | <commit_before>
from setuptools import setup
setup(
name="public-drive-urls",
version='0.4.0',
author="Brian Peterson",
author_email="bepetersn@gmail.com",
description="Find Google Drive download URLs from a file's sharing URL",
license="MIT",
url='https://github.com/bepetersn/public-drive-... |
from setuptools import setup
setup(
name="public-drive-urls",
version='1.0.0',
author="Brian Peterson",
author_email="bepetersn@gmail.com",
description="Find Google Drive download URLs from a file's sharing URL",
license="MIT",
url='https://github.com/bepetersn/public-drive-urls/',
py_... |
from setuptools import setup
setup(
name="public-drive-urls",
version='0.4.0',
author="Brian Peterson",
author_email="bepetersn@gmail.com",
description="Find Google Drive download URLs from a file's sharing URL",
license="MIT",
url='https://github.com/bepetersn/public-drive-urls/',
py_... | <commit_before>
from setuptools import setup
setup(
name="public-drive-urls",
version='0.4.0',
author="Brian Peterson",
author_email="bepetersn@gmail.com",
description="Find Google Drive download URLs from a file's sharing URL",
license="MIT",
url='https://github.com/bepetersn/public-drive-... |
b9dbf4861f1c8b8ae70a130617d1913ef4efb539 | setup.py | setup.py | from distutils.core import setup
from setuptools import find_packages
VERSION = '0.1.4'
setup(
name='spockbot',
description='High level Python framework for building Minecraft '
'clients and bots',
license='MIT',
long_description=open('README.rst').read(),
version=VERSION,
url... | from distutils.core import setup
from setuptools import find_packages
VERSION = '0.2.0'
setup(
name='spockbot',
description='High level Python framework for building Minecraft '
'clients and bots',
license='MIT',
long_description=open('README.rst').read(),
version=VERSION,
url... | Increase version number so we can start adding 1.9 support | Increase version number so we can start adding 1.9 support
| Python | mit | Gjum/SpockBot,SpockBotMC/SpockBot | from distutils.core import setup
from setuptools import find_packages
VERSION = '0.1.4'
setup(
name='spockbot',
description='High level Python framework for building Minecraft '
'clients and bots',
license='MIT',
long_description=open('README.rst').read(),
version=VERSION,
url... | from distutils.core import setup
from setuptools import find_packages
VERSION = '0.2.0'
setup(
name='spockbot',
description='High level Python framework for building Minecraft '
'clients and bots',
license='MIT',
long_description=open('README.rst').read(),
version=VERSION,
url... | <commit_before>from distutils.core import setup
from setuptools import find_packages
VERSION = '0.1.4'
setup(
name='spockbot',
description='High level Python framework for building Minecraft '
'clients and bots',
license='MIT',
long_description=open('README.rst').read(),
version=V... | from distutils.core import setup
from setuptools import find_packages
VERSION = '0.2.0'
setup(
name='spockbot',
description='High level Python framework for building Minecraft '
'clients and bots',
license='MIT',
long_description=open('README.rst').read(),
version=VERSION,
url... | from distutils.core import setup
from setuptools import find_packages
VERSION = '0.1.4'
setup(
name='spockbot',
description='High level Python framework for building Minecraft '
'clients and bots',
license='MIT',
long_description=open('README.rst').read(),
version=VERSION,
url... | <commit_before>from distutils.core import setup
from setuptools import find_packages
VERSION = '0.1.4'
setup(
name='spockbot',
description='High level Python framework for building Minecraft '
'clients and bots',
license='MIT',
long_description=open('README.rst').read(),
version=V... |
d89f7d742813b70d7bccdf90e9722d727599f977 | setup.py | setup.py | import os.path
from setuptools import find_packages
from setuptools import setup
version_path = os.path.join(os.path.dirname(__file__), 'VERSION')
with open(version_path) as fh:
version = fh.read().strip()
setup(name='vector-datasource',
version=version,
description="",
long_description="""\
"""... | import os.path
from setuptools import find_packages
from setuptools import setup
version_path = os.path.join(os.path.dirname(__file__), 'VERSION')
with open(version_path) as fh:
version = fh.read().strip()
setup(name='vector-datasource',
version=version,
description="",
long_description="""\
"""... | Add shapefile library, used for shapefile-based fixtures. | Add shapefile library, used for shapefile-based fixtures.
| Python | mit | mapzen/vector-datasource,mapzen/vector-datasource,mapzen/vector-datasource | import os.path
from setuptools import find_packages
from setuptools import setup
version_path = os.path.join(os.path.dirname(__file__), 'VERSION')
with open(version_path) as fh:
version = fh.read().strip()
setup(name='vector-datasource',
version=version,
description="",
long_description="""\
"""... | import os.path
from setuptools import find_packages
from setuptools import setup
version_path = os.path.join(os.path.dirname(__file__), 'VERSION')
with open(version_path) as fh:
version = fh.read().strip()
setup(name='vector-datasource',
version=version,
description="",
long_description="""\
"""... | <commit_before>import os.path
from setuptools import find_packages
from setuptools import setup
version_path = os.path.join(os.path.dirname(__file__), 'VERSION')
with open(version_path) as fh:
version = fh.read().strip()
setup(name='vector-datasource',
version=version,
description="",
long_descr... | import os.path
from setuptools import find_packages
from setuptools import setup
version_path = os.path.join(os.path.dirname(__file__), 'VERSION')
with open(version_path) as fh:
version = fh.read().strip()
setup(name='vector-datasource',
version=version,
description="",
long_description="""\
"""... | import os.path
from setuptools import find_packages
from setuptools import setup
version_path = os.path.join(os.path.dirname(__file__), 'VERSION')
with open(version_path) as fh:
version = fh.read().strip()
setup(name='vector-datasource',
version=version,
description="",
long_description="""\
"""... | <commit_before>import os.path
from setuptools import find_packages
from setuptools import setup
version_path = os.path.join(os.path.dirname(__file__), 'VERSION')
with open(version_path) as fh:
version = fh.read().strip()
setup(name='vector-datasource',
version=version,
description="",
long_descr... |
00b822d2523708f333e214fc7f507ef3bf1ca865 | setup.py | setup.py | import os
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
from pypvwatts.__version__ import VERSION
setup(
name='pypvwatts',
version=VERSION,
author='Miguel Paolino',
author_email='mpaolino@gmail.com',
url='https://github.com/mpaolino/pypvwatts',
... | import os
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
from pypvwatts.__version__ import VERSION
setup(
name='pypvwatts',
version=VERSION,
author='Miguel Paolino',
author_email='mpaolino@gmail.com',
url='https://github.com/mpaolino/pypvwatts',
... | Make sure we require at least python 2.7 | Make sure we require at least python 2.7
| Python | mit | mpaolino/pypvwatts | import os
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
from pypvwatts.__version__ import VERSION
setup(
name='pypvwatts',
version=VERSION,
author='Miguel Paolino',
author_email='mpaolino@gmail.com',
url='https://github.com/mpaolino/pypvwatts',
... | import os
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
from pypvwatts.__version__ import VERSION
setup(
name='pypvwatts',
version=VERSION,
author='Miguel Paolino',
author_email='mpaolino@gmail.com',
url='https://github.com/mpaolino/pypvwatts',
... | <commit_before>import os
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
from pypvwatts.__version__ import VERSION
setup(
name='pypvwatts',
version=VERSION,
author='Miguel Paolino',
author_email='mpaolino@gmail.com',
url='https://github.com/mpaolino/... | import os
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
from pypvwatts.__version__ import VERSION
setup(
name='pypvwatts',
version=VERSION,
author='Miguel Paolino',
author_email='mpaolino@gmail.com',
url='https://github.com/mpaolino/pypvwatts',
... | import os
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
from pypvwatts.__version__ import VERSION
setup(
name='pypvwatts',
version=VERSION,
author='Miguel Paolino',
author_email='mpaolino@gmail.com',
url='https://github.com/mpaolino/pypvwatts',
... | <commit_before>import os
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
from pypvwatts.__version__ import VERSION
setup(
name='pypvwatts',
version=VERSION,
author='Miguel Paolino',
author_email='mpaolino@gmail.com',
url='https://github.com/mpaolino/... |
eb4ed4f0b1086a1f5322078d91d2132582a487e7 | setup.py | setup.py | import os
import setuptools
README = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'README.rst')
setuptools.setup(
name='theanets',
version='0.8.0pre',
packages=setuptools.find_packages(),
author='Leif Johnson',
author_email='leif@lmjohns3.com',
description='Feedforward and recurren... | import os
import setuptools
README = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'README.rst')
setuptools.setup(
name='theanets',
version='0.8.0pre',
packages=setuptools.find_packages(),
author='Leif Johnson',
author_email='leif@lmjohns3.com',
description='Feedforward and recurren... | Add a temporary dependency on nose-parameterized. | Add a temporary dependency on nose-parameterized.
| Python | mit | chrinide/theanets,lmjohns3/theanets | import os
import setuptools
README = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'README.rst')
setuptools.setup(
name='theanets',
version='0.8.0pre',
packages=setuptools.find_packages(),
author='Leif Johnson',
author_email='leif@lmjohns3.com',
description='Feedforward and recurren... | import os
import setuptools
README = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'README.rst')
setuptools.setup(
name='theanets',
version='0.8.0pre',
packages=setuptools.find_packages(),
author='Leif Johnson',
author_email='leif@lmjohns3.com',
description='Feedforward and recurren... | <commit_before>import os
import setuptools
README = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'README.rst')
setuptools.setup(
name='theanets',
version='0.8.0pre',
packages=setuptools.find_packages(),
author='Leif Johnson',
author_email='leif@lmjohns3.com',
description='Feedforwa... | import os
import setuptools
README = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'README.rst')
setuptools.setup(
name='theanets',
version='0.8.0pre',
packages=setuptools.find_packages(),
author='Leif Johnson',
author_email='leif@lmjohns3.com',
description='Feedforward and recurren... | import os
import setuptools
README = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'README.rst')
setuptools.setup(
name='theanets',
version='0.8.0pre',
packages=setuptools.find_packages(),
author='Leif Johnson',
author_email='leif@lmjohns3.com',
description='Feedforward and recurren... | <commit_before>import os
import setuptools
README = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'README.rst')
setuptools.setup(
name='theanets',
version='0.8.0pre',
packages=setuptools.find_packages(),
author='Leif Johnson',
author_email='leif@lmjohns3.com',
description='Feedforwa... |
936cc203637475c57c2ed26a6fa31167c7e4ebda | setup.py | setup.py | # Copyright (c) 2008-2009 Simplistix Ltd
# See license.txt for license details.
import os
from setuptools import setup, find_packages
name = 'testfixtures'
base_dir = os.path.dirname(__file__)
setup(
name=name,
version=file(os.path.join(base_dir,name,'version.txt')).read().strip(),
author='Chris Withers'... | # Copyright (c) 2008-2009 Simplistix Ltd
# See license.txt for license details.
import os
from setuptools import setup, find_packages
name = 'testfixtures'
base_dir = os.path.dirname(__file__)
setup(
name=name,
version=file(os.path.join(base_dir,name,'version.txt')).read().strip(),
author='Chris Withers'... | Use Manuel instead of doctest. Missed a bit :-( | Use Manuel instead of doctest. Missed a bit :-(
| Python | mit | nebulans/testfixtures,Simplistix/testfixtures | # Copyright (c) 2008-2009 Simplistix Ltd
# See license.txt for license details.
import os
from setuptools import setup, find_packages
name = 'testfixtures'
base_dir = os.path.dirname(__file__)
setup(
name=name,
version=file(os.path.join(base_dir,name,'version.txt')).read().strip(),
author='Chris Withers'... | # Copyright (c) 2008-2009 Simplistix Ltd
# See license.txt for license details.
import os
from setuptools import setup, find_packages
name = 'testfixtures'
base_dir = os.path.dirname(__file__)
setup(
name=name,
version=file(os.path.join(base_dir,name,'version.txt')).read().strip(),
author='Chris Withers'... | <commit_before># Copyright (c) 2008-2009 Simplistix Ltd
# See license.txt for license details.
import os
from setuptools import setup, find_packages
name = 'testfixtures'
base_dir = os.path.dirname(__file__)
setup(
name=name,
version=file(os.path.join(base_dir,name,'version.txt')).read().strip(),
author=... | # Copyright (c) 2008-2009 Simplistix Ltd
# See license.txt for license details.
import os
from setuptools import setup, find_packages
name = 'testfixtures'
base_dir = os.path.dirname(__file__)
setup(
name=name,
version=file(os.path.join(base_dir,name,'version.txt')).read().strip(),
author='Chris Withers'... | # Copyright (c) 2008-2009 Simplistix Ltd
# See license.txt for license details.
import os
from setuptools import setup, find_packages
name = 'testfixtures'
base_dir = os.path.dirname(__file__)
setup(
name=name,
version=file(os.path.join(base_dir,name,'version.txt')).read().strip(),
author='Chris Withers'... | <commit_before># Copyright (c) 2008-2009 Simplistix Ltd
# See license.txt for license details.
import os
from setuptools import setup, find_packages
name = 'testfixtures'
base_dir = os.path.dirname(__file__)
setup(
name=name,
version=file(os.path.join(base_dir,name,'version.txt')).read().strip(),
author=... |
d1d0576b94ce000a77e08bd8353f5c1c10b0839f | setup.py | setup.py | #!/usr/bin/env python
from distutils.core import setup
setup(
name = 'AudioTranscode',
version = '1.0',
packages = ['audioTranscode'],
scripts = ['transcode'],
author = 'Jeffrey Aylesworth',
author_email = 'jeffrey@aylesworth.ca',
license = 'MIT',
url = 'http://github.com/jeffayle/Trans... | #!/usr/bin/env python
from distutils.core import setup
setup(
name = 'AudioTranscode',
version = '1.0',
packages = ['audioTranscode','audioTranscode.encoders','audioTranscode.decoders'],
scripts = ['transcode'],
author = 'Jeffrey Aylesworth',
author_email = 'jeffrey@aylesworth.ca',
license ... | Include .encoders and .decoders packages with the distribution | Include .encoders and .decoders packages with the distribution | Python | isc | jeffayle/Transcode | #!/usr/bin/env python
from distutils.core import setup
setup(
name = 'AudioTranscode',
version = '1.0',
packages = ['audioTranscode'],
scripts = ['transcode'],
author = 'Jeffrey Aylesworth',
author_email = 'jeffrey@aylesworth.ca',
license = 'MIT',
url = 'http://github.com/jeffayle/Trans... | #!/usr/bin/env python
from distutils.core import setup
setup(
name = 'AudioTranscode',
version = '1.0',
packages = ['audioTranscode','audioTranscode.encoders','audioTranscode.decoders'],
scripts = ['transcode'],
author = 'Jeffrey Aylesworth',
author_email = 'jeffrey@aylesworth.ca',
license ... | <commit_before>#!/usr/bin/env python
from distutils.core import setup
setup(
name = 'AudioTranscode',
version = '1.0',
packages = ['audioTranscode'],
scripts = ['transcode'],
author = 'Jeffrey Aylesworth',
author_email = 'jeffrey@aylesworth.ca',
license = 'MIT',
url = 'http://github.com... | #!/usr/bin/env python
from distutils.core import setup
setup(
name = 'AudioTranscode',
version = '1.0',
packages = ['audioTranscode','audioTranscode.encoders','audioTranscode.decoders'],
scripts = ['transcode'],
author = 'Jeffrey Aylesworth',
author_email = 'jeffrey@aylesworth.ca',
license ... | #!/usr/bin/env python
from distutils.core import setup
setup(
name = 'AudioTranscode',
version = '1.0',
packages = ['audioTranscode'],
scripts = ['transcode'],
author = 'Jeffrey Aylesworth',
author_email = 'jeffrey@aylesworth.ca',
license = 'MIT',
url = 'http://github.com/jeffayle/Trans... | <commit_before>#!/usr/bin/env python
from distutils.core import setup
setup(
name = 'AudioTranscode',
version = '1.0',
packages = ['audioTranscode'],
scripts = ['transcode'],
author = 'Jeffrey Aylesworth',
author_email = 'jeffrey@aylesworth.ca',
license = 'MIT',
url = 'http://github.com... |
a214b216ba260977eace4c9aff260089dd761a8f | setup.py | setup.py | """setup.py"""
#pylint:disable=line-too-long
from codecs import open as codecs_open
try:
from setuptools import setup
except ImportError:
from distutils.core import setup #pylint:disable=import-error,no-name-in-module
with codecs_open('README.rst', 'r', 'utf-8') as f:
readme = f.read()
with codecs_open(... | """setup.py"""
#pylint:disable=line-too-long
from codecs import open as codecs_open
try:
from setuptools import setup
except ImportError:
from distutils.core import setup #pylint:disable=import-error,no-name-in-module
with codecs_open('README.rst', 'r', 'utf-8') as f:
readme = f.read()
with codecs_open(... | Add python versions to Trove classifiers | Add python versions to Trove classifiers
| Python | mit | bcb/jsonrpcserver | """setup.py"""
#pylint:disable=line-too-long
from codecs import open as codecs_open
try:
from setuptools import setup
except ImportError:
from distutils.core import setup #pylint:disable=import-error,no-name-in-module
with codecs_open('README.rst', 'r', 'utf-8') as f:
readme = f.read()
with codecs_open(... | """setup.py"""
#pylint:disable=line-too-long
from codecs import open as codecs_open
try:
from setuptools import setup
except ImportError:
from distutils.core import setup #pylint:disable=import-error,no-name-in-module
with codecs_open('README.rst', 'r', 'utf-8') as f:
readme = f.read()
with codecs_open(... | <commit_before>"""setup.py"""
#pylint:disable=line-too-long
from codecs import open as codecs_open
try:
from setuptools import setup
except ImportError:
from distutils.core import setup #pylint:disable=import-error,no-name-in-module
with codecs_open('README.rst', 'r', 'utf-8') as f:
readme = f.read()
wi... | """setup.py"""
#pylint:disable=line-too-long
from codecs import open as codecs_open
try:
from setuptools import setup
except ImportError:
from distutils.core import setup #pylint:disable=import-error,no-name-in-module
with codecs_open('README.rst', 'r', 'utf-8') as f:
readme = f.read()
with codecs_open(... | """setup.py"""
#pylint:disable=line-too-long
from codecs import open as codecs_open
try:
from setuptools import setup
except ImportError:
from distutils.core import setup #pylint:disable=import-error,no-name-in-module
with codecs_open('README.rst', 'r', 'utf-8') as f:
readme = f.read()
with codecs_open(... | <commit_before>"""setup.py"""
#pylint:disable=line-too-long
from codecs import open as codecs_open
try:
from setuptools import setup
except ImportError:
from distutils.core import setup #pylint:disable=import-error,no-name-in-module
with codecs_open('README.rst', 'r', 'utf-8') as f:
readme = f.read()
wi... |
60b8e2ce0196b44321d847f6610a29218ebb91b2 | setup.py | setup.py | from setuptools import find_packages
import os.path as op
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
here = op.abspath(op.dirname(__file__))
# Get metadata from the AFQ/version.py file:
ver_file = op.join(here, 'AFQ', 'version.py')
with open(ver_file) as f:
ex... | from setuptools import find_packages
import os.path as op
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
here = op.abspath(op.dirname(__file__))
# Get metadata from the AFQ/version.py file:
ver_file = op.join(here, 'AFQ', 'version.py')
with open(ver_file) as f:
ex... | Make this one-char variable name a two-char. | Make this one-char variable name a two-char.
| Python | bsd-2-clause | yeatmanlab/pyAFQ,yeatmanlab/pyAFQ,arokem/pyAFQ,arokem/pyAFQ | from setuptools import find_packages
import os.path as op
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
here = op.abspath(op.dirname(__file__))
# Get metadata from the AFQ/version.py file:
ver_file = op.join(here, 'AFQ', 'version.py')
with open(ver_file) as f:
ex... | from setuptools import find_packages
import os.path as op
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
here = op.abspath(op.dirname(__file__))
# Get metadata from the AFQ/version.py file:
ver_file = op.join(here, 'AFQ', 'version.py')
with open(ver_file) as f:
ex... | <commit_before>from setuptools import find_packages
import os.path as op
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
here = op.abspath(op.dirname(__file__))
# Get metadata from the AFQ/version.py file:
ver_file = op.join(here, 'AFQ', 'version.py')
with open(ver_fil... | from setuptools import find_packages
import os.path as op
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
here = op.abspath(op.dirname(__file__))
# Get metadata from the AFQ/version.py file:
ver_file = op.join(here, 'AFQ', 'version.py')
with open(ver_file) as f:
ex... | from setuptools import find_packages
import os.path as op
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
here = op.abspath(op.dirname(__file__))
# Get metadata from the AFQ/version.py file:
ver_file = op.join(here, 'AFQ', 'version.py')
with open(ver_file) as f:
ex... | <commit_before>from setuptools import find_packages
import os.path as op
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
here = op.abspath(op.dirname(__file__))
# Get metadata from the AFQ/version.py file:
ver_file = op.join(here, 'AFQ', 'version.py')
with open(ver_fil... |
a334611a1bb159489d06a4e67fc0b7f4690b1701 | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
gifshare - A command-line tool to upload images to S3.
Run with `python setup.py install` to install gifshare into your default
Python environment.
"""
from setuptools import setup
import os.path
HERE = os.path.dirname(__file__)
setup(
name="gifshare",
ver... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
gifshare - A command-line tool to upload images to S3.
"""
from setuptools import setup
import os.path
HERE = os.path.dirname(__file__)
setup(
name="gifshare",
version="0.0.4",
description="Store images in S3",
long_description=__doc__,
author='... | Remove install information because it's picked up by PyPI | Remove install information because it's picked up by PyPI
| Python | mit | judy2k/gifshare | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
gifshare - A command-line tool to upload images to S3.
Run with `python setup.py install` to install gifshare into your default
Python environment.
"""
from setuptools import setup
import os.path
HERE = os.path.dirname(__file__)
setup(
name="gifshare",
ver... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
gifshare - A command-line tool to upload images to S3.
"""
from setuptools import setup
import os.path
HERE = os.path.dirname(__file__)
setup(
name="gifshare",
version="0.0.4",
description="Store images in S3",
long_description=__doc__,
author='... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
gifshare - A command-line tool to upload images to S3.
Run with `python setup.py install` to install gifshare into your default
Python environment.
"""
from setuptools import setup
import os.path
HERE = os.path.dirname(__file__)
setup(
name="gif... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
gifshare - A command-line tool to upload images to S3.
"""
from setuptools import setup
import os.path
HERE = os.path.dirname(__file__)
setup(
name="gifshare",
version="0.0.4",
description="Store images in S3",
long_description=__doc__,
author='... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
gifshare - A command-line tool to upload images to S3.
Run with `python setup.py install` to install gifshare into your default
Python environment.
"""
from setuptools import setup
import os.path
HERE = os.path.dirname(__file__)
setup(
name="gifshare",
ver... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
gifshare - A command-line tool to upload images to S3.
Run with `python setup.py install` to install gifshare into your default
Python environment.
"""
from setuptools import setup
import os.path
HERE = os.path.dirname(__file__)
setup(
name="gif... |
ef7f0090bfb7f37fa584123520b02f69a3a392a0 | setup.py | setup.py | #
# Copyright 2013 by Arnold Krille <arnold@arnoldarts.de>
#
# 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 ... | #
# Copyright 2013 by Arnold Krille <arnold@arnoldarts.de>
#
# 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 ... | Fix inclusion of static files into the package | Fix inclusion of static files into the package
and increase the version-number a bit.
| Python | apache-2.0 | kampfschlaefer/mezzanine-workout,kampfschlaefer/mezzanine-workout,kampfschlaefer/mezzanine-workout | #
# Copyright 2013 by Arnold Krille <arnold@arnoldarts.de>
#
# 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 ... | #
# Copyright 2013 by Arnold Krille <arnold@arnoldarts.de>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ... | <commit_before>#
# Copyright 2013 by Arnold Krille <arnold@arnoldarts.de>
#
# 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
#
# Unle... | #
# Copyright 2013 by Arnold Krille <arnold@arnoldarts.de>
#
# 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 ... | #
# Copyright 2013 by Arnold Krille <arnold@arnoldarts.de>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ... | <commit_before>#
# Copyright 2013 by Arnold Krille <arnold@arnoldarts.de>
#
# 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
#
# Unle... |
0e167005c4a948aa101684b41b8c40c2523b1628 | setup.py | setup.py | from setuptools import setup
BLOCKS = [
'mentoring = mentoring:MentoringBlock',
'answer = mentoring:AnswerBlock',
'quizz = mentoring:QuizzBlock',
'tip = mentoring:QuizzTipBlock',
]
setup(
name='xblock-mentoring',
version='0.1',
description='XBlock - Mentoring',
packages=['mentoring'],
... | from setuptools import setup
BLOCKS = [
'mentoring = mentoring:MentoringBlock',
'answer = mentoring:AnswerBlock',
'quizz = mentoring:QuizzBlock',
'tip = mentoring:QuizzTipBlock',
]
setup(
name='xblock-mentoring',
version='0.1',
description='XBlock - Mentoring',
packages=['mentoring'],
... | Remove hack that registered the XBlock as a XModule for the LMS | Remove hack that registered the XBlock as a XModule for the LMS
| Python | agpl-3.0 | gsehub/xblock-mentoring,open-craft/xblock-mentoring,gsehub/xblock-mentoring,gsehub/xblock-mentoring,proversity-org/problem-builder,proversity-org/problem-builder,edx-solutions/xblock-mentoring,proversity-org/problem-builder,edx-solutions/xblock-mentoring,open-craft/xblock-mentoring,open-craft/xblock-mentoring,edx-solut... | from setuptools import setup
BLOCKS = [
'mentoring = mentoring:MentoringBlock',
'answer = mentoring:AnswerBlock',
'quizz = mentoring:QuizzBlock',
'tip = mentoring:QuizzTipBlock',
]
setup(
name='xblock-mentoring',
version='0.1',
description='XBlock - Mentoring',
packages=['mentoring'],
... | from setuptools import setup
BLOCKS = [
'mentoring = mentoring:MentoringBlock',
'answer = mentoring:AnswerBlock',
'quizz = mentoring:QuizzBlock',
'tip = mentoring:QuizzTipBlock',
]
setup(
name='xblock-mentoring',
version='0.1',
description='XBlock - Mentoring',
packages=['mentoring'],
... | <commit_before>from setuptools import setup
BLOCKS = [
'mentoring = mentoring:MentoringBlock',
'answer = mentoring:AnswerBlock',
'quizz = mentoring:QuizzBlock',
'tip = mentoring:QuizzTipBlock',
]
setup(
name='xblock-mentoring',
version='0.1',
description='XBlock - Mentoring',
packages=... | from setuptools import setup
BLOCKS = [
'mentoring = mentoring:MentoringBlock',
'answer = mentoring:AnswerBlock',
'quizz = mentoring:QuizzBlock',
'tip = mentoring:QuizzTipBlock',
]
setup(
name='xblock-mentoring',
version='0.1',
description='XBlock - Mentoring',
packages=['mentoring'],
... | from setuptools import setup
BLOCKS = [
'mentoring = mentoring:MentoringBlock',
'answer = mentoring:AnswerBlock',
'quizz = mentoring:QuizzBlock',
'tip = mentoring:QuizzTipBlock',
]
setup(
name='xblock-mentoring',
version='0.1',
description='XBlock - Mentoring',
packages=['mentoring'],
... | <commit_before>from setuptools import setup
BLOCKS = [
'mentoring = mentoring:MentoringBlock',
'answer = mentoring:AnswerBlock',
'quizz = mentoring:QuizzBlock',
'tip = mentoring:QuizzTipBlock',
]
setup(
name='xblock-mentoring',
version='0.1',
description='XBlock - Mentoring',
packages=... |
09e8511e54a8fc5a558281f4af42b4540293f0d1 | setup.py | setup.py | from setuptools import setup, find_packages
version = '0.6.1'
setup(
name='ckanext-oaipmh',
version=version,
description="OAI-PMH server and harvester for CKAN",
long_description="""\
""",
classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
keywor... | from setuptools import setup, find_packages
version = '0.6.2'
setup(
name='ckanext-oaipmh',
version=version,
description="OAI-PMH server and harvester for CKAN",
long_description="""\
""",
classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
keywor... | Update version number to 0.6.2 | Update version number to 0.6.2
| Python | agpl-3.0 | kata-csc/ckanext-oaipmh,kata-csc/ckanext-oaipmh,kata-csc/ckanext-oaipmh | from setuptools import setup, find_packages
version = '0.6.1'
setup(
name='ckanext-oaipmh',
version=version,
description="OAI-PMH server and harvester for CKAN",
long_description="""\
""",
classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
keywor... | from setuptools import setup, find_packages
version = '0.6.2'
setup(
name='ckanext-oaipmh',
version=version,
description="OAI-PMH server and harvester for CKAN",
long_description="""\
""",
classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
keywor... | <commit_before>from setuptools import setup, find_packages
version = '0.6.1'
setup(
name='ckanext-oaipmh',
version=version,
description="OAI-PMH server and harvester for CKAN",
long_description="""\
""",
classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classif... | from setuptools import setup, find_packages
version = '0.6.2'
setup(
name='ckanext-oaipmh',
version=version,
description="OAI-PMH server and harvester for CKAN",
long_description="""\
""",
classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
keywor... | from setuptools import setup, find_packages
version = '0.6.1'
setup(
name='ckanext-oaipmh',
version=version,
description="OAI-PMH server and harvester for CKAN",
long_description="""\
""",
classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
keywor... | <commit_before>from setuptools import setup, find_packages
version = '0.6.1'
setup(
name='ckanext-oaipmh',
version=version,
description="OAI-PMH server and harvester for CKAN",
long_description="""\
""",
classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classif... |
4f889e4f42d831f2a12fccdd1956f77a8032563c | setup.py | setup.py | from setuptools import setup
setup(name='azurerm',
version='0.5.3',
description='Azure Resource Manager REST wrappers',
url='http://github.com/gbowerman/azurerm',
author='sendmarsh',
author_email='guybo@outlook.com',
license='MIT',
packages=['azurerm'],
install_requires=... | from setuptools import setup
setup(name='azurerm',
version='0.5.4',
description='Azure Resource Manager REST wrappers',
url='http://github.com/gbowerman/azurerm',
author='sendmarsh',
author_email='guybo@outlook.com',
license='MIT',
packages=['azurerm'],
install_requires=... | Update with new azurerm version | Update with new azurerm version
| Python | mit | gbowerman/azurerm | from setuptools import setup
setup(name='azurerm',
version='0.5.3',
description='Azure Resource Manager REST wrappers',
url='http://github.com/gbowerman/azurerm',
author='sendmarsh',
author_email='guybo@outlook.com',
license='MIT',
packages=['azurerm'],
install_requires=... | from setuptools import setup
setup(name='azurerm',
version='0.5.4',
description='Azure Resource Manager REST wrappers',
url='http://github.com/gbowerman/azurerm',
author='sendmarsh',
author_email='guybo@outlook.com',
license='MIT',
packages=['azurerm'],
install_requires=... | <commit_before>from setuptools import setup
setup(name='azurerm',
version='0.5.3',
description='Azure Resource Manager REST wrappers',
url='http://github.com/gbowerman/azurerm',
author='sendmarsh',
author_email='guybo@outlook.com',
license='MIT',
packages=['azurerm'],
in... | from setuptools import setup
setup(name='azurerm',
version='0.5.4',
description='Azure Resource Manager REST wrappers',
url='http://github.com/gbowerman/azurerm',
author='sendmarsh',
author_email='guybo@outlook.com',
license='MIT',
packages=['azurerm'],
install_requires=... | from setuptools import setup
setup(name='azurerm',
version='0.5.3',
description='Azure Resource Manager REST wrappers',
url='http://github.com/gbowerman/azurerm',
author='sendmarsh',
author_email='guybo@outlook.com',
license='MIT',
packages=['azurerm'],
install_requires=... | <commit_before>from setuptools import setup
setup(name='azurerm',
version='0.5.3',
description='Azure Resource Manager REST wrappers',
url='http://github.com/gbowerman/azurerm',
author='sendmarsh',
author_email='guybo@outlook.com',
license='MIT',
packages=['azurerm'],
in... |
055d9e2b74e997d6f744c15fe1b1e19bcd3203d4 | setup.py | setup.py | #!/usr/bin/env python3
from setuptools import setup, find_packages
setup(
name='ppp_questionparsing_grammatical',
version='0.4.7',
description='Natural language processing module for the PPP.',
url='https://github.com/ProjetPP/PPP-QuestionParsing-Grammatical',
author='Projet Pensées Profondes',
... | #!/usr/bin/env python3
from setuptools import setup, find_packages
setup(
name='ppp_questionparsing_grammatical',
version='0.4.7',
description='Natural language processing module for the PPP.',
url='https://github.com/ProjetPP/PPP-QuestionParsing-Grammatical',
author='Projet Pensées Profondes',
... | Fix version numbers of libraries. | Fix version numbers of libraries.
| Python | agpl-3.0 | ProjetPP/PPP-QuestionParsing-Grammatical,ProjetPP/PPP-QuestionParsing-Grammatical | #!/usr/bin/env python3
from setuptools import setup, find_packages
setup(
name='ppp_questionparsing_grammatical',
version='0.4.7',
description='Natural language processing module for the PPP.',
url='https://github.com/ProjetPP/PPP-QuestionParsing-Grammatical',
author='Projet Pensées Profondes',
... | #!/usr/bin/env python3
from setuptools import setup, find_packages
setup(
name='ppp_questionparsing_grammatical',
version='0.4.7',
description='Natural language processing module for the PPP.',
url='https://github.com/ProjetPP/PPP-QuestionParsing-Grammatical',
author='Projet Pensées Profondes',
... | <commit_before>#!/usr/bin/env python3
from setuptools import setup, find_packages
setup(
name='ppp_questionparsing_grammatical',
version='0.4.7',
description='Natural language processing module for the PPP.',
url='https://github.com/ProjetPP/PPP-QuestionParsing-Grammatical',
author='Projet Pensées... | #!/usr/bin/env python3
from setuptools import setup, find_packages
setup(
name='ppp_questionparsing_grammatical',
version='0.4.7',
description='Natural language processing module for the PPP.',
url='https://github.com/ProjetPP/PPP-QuestionParsing-Grammatical',
author='Projet Pensées Profondes',
... | #!/usr/bin/env python3
from setuptools import setup, find_packages
setup(
name='ppp_questionparsing_grammatical',
version='0.4.7',
description='Natural language processing module for the PPP.',
url='https://github.com/ProjetPP/PPP-QuestionParsing-Grammatical',
author='Projet Pensées Profondes',
... | <commit_before>#!/usr/bin/env python3
from setuptools import setup, find_packages
setup(
name='ppp_questionparsing_grammatical',
version='0.4.7',
description='Natural language processing module for the PPP.',
url='https://github.com/ProjetPP/PPP-QuestionParsing-Grammatical',
author='Projet Pensées... |
ea0058f3c360f8b1f847edab77aa650761ea8e77 | setup.py | setup.py | from setuptools import setup
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except(IOError, ImportError):
long_description = open('README.md').read()
setup(
name="xonsh-apt-tabcomplete",
version="0.1.3",
license="BSD",
url="https://github.com/DangerOnTheRanger... | from setuptools import setup
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except(IOError, ImportError):
long_description = open('README.md').read()
setup(
name="xonsh-apt-tabcomplete",
version="0.1.6",
license="BSD",
url="https://github.com/DangerOnTheRanger... | Update patch-level version number, upload to pypi | Update patch-level version number, upload to pypi
| Python | bsd-2-clause | DangerOnTheRanger/xonsh-apt-tabcomplete | from setuptools import setup
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except(IOError, ImportError):
long_description = open('README.md').read()
setup(
name="xonsh-apt-tabcomplete",
version="0.1.3",
license="BSD",
url="https://github.com/DangerOnTheRanger... | from setuptools import setup
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except(IOError, ImportError):
long_description = open('README.md').read()
setup(
name="xonsh-apt-tabcomplete",
version="0.1.6",
license="BSD",
url="https://github.com/DangerOnTheRanger... | <commit_before>from setuptools import setup
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except(IOError, ImportError):
long_description = open('README.md').read()
setup(
name="xonsh-apt-tabcomplete",
version="0.1.3",
license="BSD",
url="https://github.com/Da... | from setuptools import setup
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except(IOError, ImportError):
long_description = open('README.md').read()
setup(
name="xonsh-apt-tabcomplete",
version="0.1.6",
license="BSD",
url="https://github.com/DangerOnTheRanger... | from setuptools import setup
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except(IOError, ImportError):
long_description = open('README.md').read()
setup(
name="xonsh-apt-tabcomplete",
version="0.1.3",
license="BSD",
url="https://github.com/DangerOnTheRanger... | <commit_before>from setuptools import setup
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except(IOError, ImportError):
long_description = open('README.md').read()
setup(
name="xonsh-apt-tabcomplete",
version="0.1.3",
license="BSD",
url="https://github.com/Da... |
bba064cc84bf7d0b7b4b7410a6a333af0609730c | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name='autobuilder',
version='1.0.2',
packages=find_packages(),
license='MIT',
author='Matt Madison',
author_email='matt@madison.systems',
entry_points={
'console_scripts': [
'update-sstate-mirror = autobuilder.scripts.up... | from setuptools import setup, find_packages
setup(
name='autobuilder',
version='1.0.3',
packages=find_packages(),
license='MIT',
author='Matt Madison',
author_email='matt@madison.systems',
entry_points={
'console_scripts': [
'update-sstate-mirror = autobuilder.scripts.up... | Add 'treq' as a requirement for GitHubStatusPush. | Add 'treq' as a requirement for GitHubStatusPush.
| Python | mit | madisongh/autobuilder | from setuptools import setup, find_packages
setup(
name='autobuilder',
version='1.0.2',
packages=find_packages(),
license='MIT',
author='Matt Madison',
author_email='matt@madison.systems',
entry_points={
'console_scripts': [
'update-sstate-mirror = autobuilder.scripts.up... | from setuptools import setup, find_packages
setup(
name='autobuilder',
version='1.0.3',
packages=find_packages(),
license='MIT',
author='Matt Madison',
author_email='matt@madison.systems',
entry_points={
'console_scripts': [
'update-sstate-mirror = autobuilder.scripts.up... | <commit_before>from setuptools import setup, find_packages
setup(
name='autobuilder',
version='1.0.2',
packages=find_packages(),
license='MIT',
author='Matt Madison',
author_email='matt@madison.systems',
entry_points={
'console_scripts': [
'update-sstate-mirror = autobui... | from setuptools import setup, find_packages
setup(
name='autobuilder',
version='1.0.3',
packages=find_packages(),
license='MIT',
author='Matt Madison',
author_email='matt@madison.systems',
entry_points={
'console_scripts': [
'update-sstate-mirror = autobuilder.scripts.up... | from setuptools import setup, find_packages
setup(
name='autobuilder',
version='1.0.2',
packages=find_packages(),
license='MIT',
author='Matt Madison',
author_email='matt@madison.systems',
entry_points={
'console_scripts': [
'update-sstate-mirror = autobuilder.scripts.up... | <commit_before>from setuptools import setup, find_packages
setup(
name='autobuilder',
version='1.0.2',
packages=find_packages(),
license='MIT',
author='Matt Madison',
author_email='matt@madison.systems',
entry_points={
'console_scripts': [
'update-sstate-mirror = autobui... |
5c8754aefa0a0b2f9e49d95970475a66a6de9510 | start.py | start.py | from core.computer import Computer
from time import sleep
from console import start as start_console
# Initialize computer instance
computer = Computer()
computer.start_monitoring()
computer.processor.start_monitoring()
for mem in computer.nonvolatile_memory:
mem.start_monitoring()
computer.virtual_memory.start_mo... | from core.computer import Computer
from time import sleep
from console import start as start_console
# Initialize computer instance
computer = Computer()
computer.start_monitoring()
computer.processor.start_monitoring()
for mem in computer.nonvolatile_memory:
mem.start_monitoring()
computer.virtual_memory.start_mo... | Stop monitoring computer on shutdown. | Stop monitoring computer on shutdown.
| Python | bsd-3-clause | uzumaxy/pyspectator | from core.computer import Computer
from time import sleep
from console import start as start_console
# Initialize computer instance
computer = Computer()
computer.start_monitoring()
computer.processor.start_monitoring()
for mem in computer.nonvolatile_memory:
mem.start_monitoring()
computer.virtual_memory.start_mo... | from core.computer import Computer
from time import sleep
from console import start as start_console
# Initialize computer instance
computer = Computer()
computer.start_monitoring()
computer.processor.start_monitoring()
for mem in computer.nonvolatile_memory:
mem.start_monitoring()
computer.virtual_memory.start_mo... | <commit_before>from core.computer import Computer
from time import sleep
from console import start as start_console
# Initialize computer instance
computer = Computer()
computer.start_monitoring()
computer.processor.start_monitoring()
for mem in computer.nonvolatile_memory:
mem.start_monitoring()
computer.virtual_... | from core.computer import Computer
from time import sleep
from console import start as start_console
# Initialize computer instance
computer = Computer()
computer.start_monitoring()
computer.processor.start_monitoring()
for mem in computer.nonvolatile_memory:
mem.start_monitoring()
computer.virtual_memory.start_mo... | from core.computer import Computer
from time import sleep
from console import start as start_console
# Initialize computer instance
computer = Computer()
computer.start_monitoring()
computer.processor.start_monitoring()
for mem in computer.nonvolatile_memory:
mem.start_monitoring()
computer.virtual_memory.start_mo... | <commit_before>from core.computer import Computer
from time import sleep
from console import start as start_console
# Initialize computer instance
computer = Computer()
computer.start_monitoring()
computer.processor.start_monitoring()
for mem in computer.nonvolatile_memory:
mem.start_monitoring()
computer.virtual_... |
340cbe542b89515033b6da40cf6cd6f761cfba9f | src/constants.py | src/constants.py | #!/usr/bin/env python
TRAJECTORY = 'linear'
CONTROLLER = 'pid'
if TRAJECTORY == 'linear':
SIMULATION_TIME_IN_SECONDS = 80.0
elif TRAJECTORY == 'circular':
SIMULATION_TIME_IN_SECONDS = 120.0
elif TRAJECTORY == 'squared':
SIMULATION_TIME_IN_SECONDS = 160.0
DELTA_T = 0.1 # this is the sampling time
STEPS = i... | #!/usr/bin/env python
TRAJECTORY = 'linear'
CONTROLLER = 'pid'
if TRAJECTORY == 'linear':
SIMULATION_TIME_IN_SECONDS = 60.0
elif TRAJECTORY == 'circular':
SIMULATION_TIME_IN_SECONDS = 120.0
elif TRAJECTORY == 'squared':
SIMULATION_TIME_IN_SECONDS = 160.0
DELTA_T = 0.1 # this is the sampling time
STEPS = i... | Change simulation time of linear trajectory to 60 seconds | Change simulation time of linear trajectory to 60 seconds
| Python | mit | bit0001/trajectory_tracking,bit0001/trajectory_tracking | #!/usr/bin/env python
TRAJECTORY = 'linear'
CONTROLLER = 'pid'
if TRAJECTORY == 'linear':
SIMULATION_TIME_IN_SECONDS = 80.0
elif TRAJECTORY == 'circular':
SIMULATION_TIME_IN_SECONDS = 120.0
elif TRAJECTORY == 'squared':
SIMULATION_TIME_IN_SECONDS = 160.0
DELTA_T = 0.1 # this is the sampling time
STEPS = i... | #!/usr/bin/env python
TRAJECTORY = 'linear'
CONTROLLER = 'pid'
if TRAJECTORY == 'linear':
SIMULATION_TIME_IN_SECONDS = 60.0
elif TRAJECTORY == 'circular':
SIMULATION_TIME_IN_SECONDS = 120.0
elif TRAJECTORY == 'squared':
SIMULATION_TIME_IN_SECONDS = 160.0
DELTA_T = 0.1 # this is the sampling time
STEPS = i... | <commit_before>#!/usr/bin/env python
TRAJECTORY = 'linear'
CONTROLLER = 'pid'
if TRAJECTORY == 'linear':
SIMULATION_TIME_IN_SECONDS = 80.0
elif TRAJECTORY == 'circular':
SIMULATION_TIME_IN_SECONDS = 120.0
elif TRAJECTORY == 'squared':
SIMULATION_TIME_IN_SECONDS = 160.0
DELTA_T = 0.1 # this is the sampling... | #!/usr/bin/env python
TRAJECTORY = 'linear'
CONTROLLER = 'pid'
if TRAJECTORY == 'linear':
SIMULATION_TIME_IN_SECONDS = 60.0
elif TRAJECTORY == 'circular':
SIMULATION_TIME_IN_SECONDS = 120.0
elif TRAJECTORY == 'squared':
SIMULATION_TIME_IN_SECONDS = 160.0
DELTA_T = 0.1 # this is the sampling time
STEPS = i... | #!/usr/bin/env python
TRAJECTORY = 'linear'
CONTROLLER = 'pid'
if TRAJECTORY == 'linear':
SIMULATION_TIME_IN_SECONDS = 80.0
elif TRAJECTORY == 'circular':
SIMULATION_TIME_IN_SECONDS = 120.0
elif TRAJECTORY == 'squared':
SIMULATION_TIME_IN_SECONDS = 160.0
DELTA_T = 0.1 # this is the sampling time
STEPS = i... | <commit_before>#!/usr/bin/env python
TRAJECTORY = 'linear'
CONTROLLER = 'pid'
if TRAJECTORY == 'linear':
SIMULATION_TIME_IN_SECONDS = 80.0
elif TRAJECTORY == 'circular':
SIMULATION_TIME_IN_SECONDS = 120.0
elif TRAJECTORY == 'squared':
SIMULATION_TIME_IN_SECONDS = 160.0
DELTA_T = 0.1 # this is the sampling... |
746420daec76bf605f0da57902bb60b2cb17c87d | bcbio/bed/__init__.py | bcbio/bed/__init__.py | import pybedtools as bt
import six
def concat(bed_files, catted=None):
"""
recursively concat a set of BED files, returning a
sorted bedtools object of the result
"""
bed_files = [x for x in bed_files if x]
if len(bed_files) == 0:
if catted:
# move to a .bed extension for do... | import pybedtools as bt
import six
def concat(bed_files, catted=None):
"""
recursively concat a set of BED files, returning a
sorted bedtools object of the result
"""
bed_files = [x for x in bed_files if x]
if len(bed_files) == 0:
if catted:
# move to a .bed extension for do... | Return None if no bed file exists to be opened. | Return None if no bed file exists to be opened.
| Python | mit | guillermo-carrasco/bcbio-nextgen,biocyberman/bcbio-nextgen,lbeltrame/bcbio-nextgen,chapmanb/bcbio-nextgen,mjafin/bcbio-nextgen,elkingtonmcb/bcbio-nextgen,a113n/bcbio-nextgen,Cyberbio-Lab/bcbio-nextgen,guillermo-carrasco/bcbio-nextgen,vladsaveliev/bcbio-nextgen,brainstorm/bcbio-nextgen,chapmanb/bcbio-nextgen,lbeltrame/b... | import pybedtools as bt
import six
def concat(bed_files, catted=None):
"""
recursively concat a set of BED files, returning a
sorted bedtools object of the result
"""
bed_files = [x for x in bed_files if x]
if len(bed_files) == 0:
if catted:
# move to a .bed extension for do... | import pybedtools as bt
import six
def concat(bed_files, catted=None):
"""
recursively concat a set of BED files, returning a
sorted bedtools object of the result
"""
bed_files = [x for x in bed_files if x]
if len(bed_files) == 0:
if catted:
# move to a .bed extension for do... | <commit_before>import pybedtools as bt
import six
def concat(bed_files, catted=None):
"""
recursively concat a set of BED files, returning a
sorted bedtools object of the result
"""
bed_files = [x for x in bed_files if x]
if len(bed_files) == 0:
if catted:
# move to a .bed e... | import pybedtools as bt
import six
def concat(bed_files, catted=None):
"""
recursively concat a set of BED files, returning a
sorted bedtools object of the result
"""
bed_files = [x for x in bed_files if x]
if len(bed_files) == 0:
if catted:
# move to a .bed extension for do... | import pybedtools as bt
import six
def concat(bed_files, catted=None):
"""
recursively concat a set of BED files, returning a
sorted bedtools object of the result
"""
bed_files = [x for x in bed_files if x]
if len(bed_files) == 0:
if catted:
# move to a .bed extension for do... | <commit_before>import pybedtools as bt
import six
def concat(bed_files, catted=None):
"""
recursively concat a set of BED files, returning a
sorted bedtools object of the result
"""
bed_files = [x for x in bed_files if x]
if len(bed_files) == 0:
if catted:
# move to a .bed e... |
8d4f3f63b3d38156759319d32a63d34413c77a71 | steel/fields/mixin.py | steel/fields/mixin.py | from gettext import gettext as _
class Fixed:
_("A mixin that ensures the presence of a predetermined value")
def __init__(self, value, *args, **kwargs):
self.value = value
super(Fixed, self).__init__(*args, **kwargs)
def encode(self, value):
# Always encode the fixed value
... | from gettext import gettext as _
class Fixed:
_("A mixin that ensures the presence of a predetermined value")
def __init__(self, value, *args, **kwargs):
self.value = value
super(Fixed, self).__init__(*args, **kwargs)
def encode(self, value):
# Always encode the fixed value
... | Mark another string for translation | Mark another string for translation
| Python | bsd-3-clause | gulopine/steel-experiment | from gettext import gettext as _
class Fixed:
_("A mixin that ensures the presence of a predetermined value")
def __init__(self, value, *args, **kwargs):
self.value = value
super(Fixed, self).__init__(*args, **kwargs)
def encode(self, value):
# Always encode the fixed value
... | from gettext import gettext as _
class Fixed:
_("A mixin that ensures the presence of a predetermined value")
def __init__(self, value, *args, **kwargs):
self.value = value
super(Fixed, self).__init__(*args, **kwargs)
def encode(self, value):
# Always encode the fixed value
... | <commit_before>from gettext import gettext as _
class Fixed:
_("A mixin that ensures the presence of a predetermined value")
def __init__(self, value, *args, **kwargs):
self.value = value
super(Fixed, self).__init__(*args, **kwargs)
def encode(self, value):
# Always encode the fi... | from gettext import gettext as _
class Fixed:
_("A mixin that ensures the presence of a predetermined value")
def __init__(self, value, *args, **kwargs):
self.value = value
super(Fixed, self).__init__(*args, **kwargs)
def encode(self, value):
# Always encode the fixed value
... | from gettext import gettext as _
class Fixed:
_("A mixin that ensures the presence of a predetermined value")
def __init__(self, value, *args, **kwargs):
self.value = value
super(Fixed, self).__init__(*args, **kwargs)
def encode(self, value):
# Always encode the fixed value
... | <commit_before>from gettext import gettext as _
class Fixed:
_("A mixin that ensures the presence of a predetermined value")
def __init__(self, value, *args, **kwargs):
self.value = value
super(Fixed, self).__init__(*args, **kwargs)
def encode(self, value):
# Always encode the fi... |
1d448b65840509c5f21abb7f5ad65a6ce20b139c | packs/travisci/actions/lib/action.py | packs/travisci/actions/lib/action.py | from st2actions.runners.pythonrunner import Action
import requests
class TravisCI(Action):
def __init__(self, config):
super(TravisCI, self).__init__(config)
def _init_header(self):
travis_header = {
'User_Agent': self.config['User-Agent'],
'Accept': self.config['Accep... | import requests
from st2actions.runners.pythonrunner import Action
API_URL = 'https://api.travis-ci.org'
HEADERS_ACCEPT = 'application/vnd.travis-ci.2+json'
HEADERS_HOST = ''
class TravisCI(Action):
def __init__(self, config):
super(TravisCI, self).__init__(config)
def _get_auth_headers(self):
... | Remove unnecessary values from the config - those should just be constants. | Remove unnecessary values from the config - those should just be constants.
| Python | apache-2.0 | StackStorm/st2contrib,StackStorm/st2contrib,pidah/st2contrib,pidah/st2contrib,pearsontechnology/st2contrib,StackStorm/st2contrib,pearsontechnology/st2contrib,tonybaloney/st2contrib,psychopenguin/st2contrib,digideskio/st2contrib,pearsontechnology/st2contrib,lmEshoo/st2contrib,tonybaloney/st2contrib,tonybaloney/st2contri... | from st2actions.runners.pythonrunner import Action
import requests
class TravisCI(Action):
def __init__(self, config):
super(TravisCI, self).__init__(config)
def _init_header(self):
travis_header = {
'User_Agent': self.config['User-Agent'],
'Accept': self.config['Accep... | import requests
from st2actions.runners.pythonrunner import Action
API_URL = 'https://api.travis-ci.org'
HEADERS_ACCEPT = 'application/vnd.travis-ci.2+json'
HEADERS_HOST = ''
class TravisCI(Action):
def __init__(self, config):
super(TravisCI, self).__init__(config)
def _get_auth_headers(self):
... | <commit_before>from st2actions.runners.pythonrunner import Action
import requests
class TravisCI(Action):
def __init__(self, config):
super(TravisCI, self).__init__(config)
def _init_header(self):
travis_header = {
'User_Agent': self.config['User-Agent'],
'Accept': sel... | import requests
from st2actions.runners.pythonrunner import Action
API_URL = 'https://api.travis-ci.org'
HEADERS_ACCEPT = 'application/vnd.travis-ci.2+json'
HEADERS_HOST = ''
class TravisCI(Action):
def __init__(self, config):
super(TravisCI, self).__init__(config)
def _get_auth_headers(self):
... | from st2actions.runners.pythonrunner import Action
import requests
class TravisCI(Action):
def __init__(self, config):
super(TravisCI, self).__init__(config)
def _init_header(self):
travis_header = {
'User_Agent': self.config['User-Agent'],
'Accept': self.config['Accep... | <commit_before>from st2actions.runners.pythonrunner import Action
import requests
class TravisCI(Action):
def __init__(self, config):
super(TravisCI, self).__init__(config)
def _init_header(self):
travis_header = {
'User_Agent': self.config['User-Agent'],
'Accept': sel... |
ea8d96219748bacc7bedbb93f5e20f3648d5748a | microscopes/lda/testutil.py | microscopes/lda/testutil.py | """Test helpers specific to LDA
"""
import numpy as np
import itertools as it
from microscopes.common.testutil import permutation_iter
def toy_dataset(defn):
"""Generate a toy variadic dataset for HDP-LDA
"""
lengths = 1 + np.random.poisson(lam=1.0, size=defn.n)
def mkrow(nwords):
return ... | """Test helpers specific to LDA
"""
import numpy as np
import itertools as it
from microscopes.common.testutil import permutation_iter
def toy_dataset(defn):
"""Generate a toy variadic dataset for HDP-LDA
"""
lengths = 1 + np.random.poisson(lam=10, size=defn.n)
def mkrow(nwords):
return n... | Increase size of test docs | Increase size of test docs
| Python | bsd-3-clause | datamicroscopes/lda,datamicroscopes/lda,datamicroscopes/lda | """Test helpers specific to LDA
"""
import numpy as np
import itertools as it
from microscopes.common.testutil import permutation_iter
def toy_dataset(defn):
"""Generate a toy variadic dataset for HDP-LDA
"""
lengths = 1 + np.random.poisson(lam=1.0, size=defn.n)
def mkrow(nwords):
return ... | """Test helpers specific to LDA
"""
import numpy as np
import itertools as it
from microscopes.common.testutil import permutation_iter
def toy_dataset(defn):
"""Generate a toy variadic dataset for HDP-LDA
"""
lengths = 1 + np.random.poisson(lam=10, size=defn.n)
def mkrow(nwords):
return n... | <commit_before>"""Test helpers specific to LDA
"""
import numpy as np
import itertools as it
from microscopes.common.testutil import permutation_iter
def toy_dataset(defn):
"""Generate a toy variadic dataset for HDP-LDA
"""
lengths = 1 + np.random.poisson(lam=1.0, size=defn.n)
def mkrow(nwords):
... | """Test helpers specific to LDA
"""
import numpy as np
import itertools as it
from microscopes.common.testutil import permutation_iter
def toy_dataset(defn):
"""Generate a toy variadic dataset for HDP-LDA
"""
lengths = 1 + np.random.poisson(lam=10, size=defn.n)
def mkrow(nwords):
return n... | """Test helpers specific to LDA
"""
import numpy as np
import itertools as it
from microscopes.common.testutil import permutation_iter
def toy_dataset(defn):
"""Generate a toy variadic dataset for HDP-LDA
"""
lengths = 1 + np.random.poisson(lam=1.0, size=defn.n)
def mkrow(nwords):
return ... | <commit_before>"""Test helpers specific to LDA
"""
import numpy as np
import itertools as it
from microscopes.common.testutil import permutation_iter
def toy_dataset(defn):
"""Generate a toy variadic dataset for HDP-LDA
"""
lengths = 1 + np.random.poisson(lam=1.0, size=defn.n)
def mkrow(nwords):
... |
8232832bbae07c485b5600542c09c5eb5adef7ff | ceilometer/service.py | ceilometer/service.py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
#
# Copyright © 2012 eNovance <licensing@enovance.com>
#
# Author: Julien Danjou <julien@danjou.info>
#
# 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 Lice... | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
#
# Copyright © 2012 eNovance <licensing@enovance.com>
#
# Author: Julien Danjou <julien@danjou.info>
#
# 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 Lice... | Configure nova.flags as well as openstack.common.cfg | Configure nova.flags as well as openstack.common.cfg
Because we are using nova classes directly (Service, Manager, etc.)
we need to initialize the configuration modules that those
classes use.
Change-Id: Idafd4a8346fc59332114ea7536893470bf9eaff8
| Python | apache-2.0 | eayunstack/ceilometer,citrix-openstack-build/ceilometer,rickerc/ceilometer_audit,r-mibu/ceilometer,chungg/aodh,sileht/aodh,m1093782566/openstack_org_ceilometer,citrix-openstack-build/ceilometer,pczerkas/aodh,froyobin/ceilometer,luogangyi/Ceilometer-oVirt,idegtiarov/ceilometer,maestro-hybrid-cloud/ceilometer,tanglei528/... | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
#
# Copyright © 2012 eNovance <licensing@enovance.com>
#
# Author: Julien Danjou <julien@danjou.info>
#
# 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 Lice... | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
#
# Copyright © 2012 eNovance <licensing@enovance.com>
#
# Author: Julien Danjou <julien@danjou.info>
#
# 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 Lice... | <commit_before>#!/usr/bin/env python
# -*- encoding: utf-8 -*-
#
# Copyright © 2012 eNovance <licensing@enovance.com>
#
# Author: Julien Danjou <julien@danjou.info>
#
# 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 c... | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
#
# Copyright © 2012 eNovance <licensing@enovance.com>
#
# Author: Julien Danjou <julien@danjou.info>
#
# 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 Lice... | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
#
# Copyright © 2012 eNovance <licensing@enovance.com>
#
# Author: Julien Danjou <julien@danjou.info>
#
# 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 Lice... | <commit_before>#!/usr/bin/env python
# -*- encoding: utf-8 -*-
#
# Copyright © 2012 eNovance <licensing@enovance.com>
#
# Author: Julien Danjou <julien@danjou.info>
#
# 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 c... |
ed8a5b8f34614997a13cdcda03dc4988c1cf4090 | urls.py | urls.py | from django.conf.urls.defaults import patterns, include, url
from django.contrib import admin
from okupy.login.views import *
admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'okupy.views.home', name='home'),
# url(r'^okupy/', include('okupy.foo.urls')),
# Uncomment the admin/... | from django.conf.urls.defaults import patterns, include, url
from django.contrib import admin
from okupy.login.views import *
admin.autodiscover()
urlpatterns = patterns('',
url(r'^$', mylogin)
url(r'^admin/', include(admin.site.urls)),
)
| Remove comments, properly enable admin panel | Remove comments, properly enable admin panel
| Python | agpl-3.0 | gentoo/identity.gentoo.org,dastergon/identity.gentoo.org,gentoo/identity.gentoo.org,dastergon/identity.gentoo.org | from django.conf.urls.defaults import patterns, include, url
from django.contrib import admin
from okupy.login.views import *
admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'okupy.views.home', name='home'),
# url(r'^okupy/', include('okupy.foo.urls')),
# Uncomment the admin/... | from django.conf.urls.defaults import patterns, include, url
from django.contrib import admin
from okupy.login.views import *
admin.autodiscover()
urlpatterns = patterns('',
url(r'^$', mylogin)
url(r'^admin/', include(admin.site.urls)),
)
| <commit_before>from django.conf.urls.defaults import patterns, include, url
from django.contrib import admin
from okupy.login.views import *
admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'okupy.views.home', name='home'),
# url(r'^okupy/', include('okupy.foo.urls')),
# Uncom... | from django.conf.urls.defaults import patterns, include, url
from django.contrib import admin
from okupy.login.views import *
admin.autodiscover()
urlpatterns = patterns('',
url(r'^$', mylogin)
url(r'^admin/', include(admin.site.urls)),
)
| from django.conf.urls.defaults import patterns, include, url
from django.contrib import admin
from okupy.login.views import *
admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'okupy.views.home', name='home'),
# url(r'^okupy/', include('okupy.foo.urls')),
# Uncomment the admin/... | <commit_before>from django.conf.urls.defaults import patterns, include, url
from django.contrib import admin
from okupy.login.views import *
admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'okupy.views.home', name='home'),
# url(r'^okupy/', include('okupy.foo.urls')),
# Uncom... |
68eb1bd58b84c1937f6f8d15bb9ea9f02a402e22 | tests/cdscommon.py | tests/cdscommon.py |
import hashlib
import os
import shutil
import cdsapi
SAMPLE_DATA_FOLDER = os.path.join(os.path.dirname(__file__), 'sample-data')
EXTENSIONS = {'grib': '.grib', 'netcdf': '.nc'}
def ensure_data(dataset, request, folder=SAMPLE_DATA_FOLDER, name='{uuid}.grib'):
request_text = str(sorted(request.items())).encode('... |
import hashlib
import os
import shutil
import cdsapi
SAMPLE_DATA_FOLDER = os.path.join(os.path.dirname(__file__), 'sample-data')
EXTENSIONS = {'grib': '.grib', 'netcdf': '.nc'}
def ensure_data(dataset, request, folder=SAMPLE_DATA_FOLDER, name='{uuid}.grib'):
request_text = str(sorted(request.items())).encode('... | Drop impossible to get right code. | Drop impossible to get right code.
| Python | apache-2.0 | ecmwf/cfgrib |
import hashlib
import os
import shutil
import cdsapi
SAMPLE_DATA_FOLDER = os.path.join(os.path.dirname(__file__), 'sample-data')
EXTENSIONS = {'grib': '.grib', 'netcdf': '.nc'}
def ensure_data(dataset, request, folder=SAMPLE_DATA_FOLDER, name='{uuid}.grib'):
request_text = str(sorted(request.items())).encode('... |
import hashlib
import os
import shutil
import cdsapi
SAMPLE_DATA_FOLDER = os.path.join(os.path.dirname(__file__), 'sample-data')
EXTENSIONS = {'grib': '.grib', 'netcdf': '.nc'}
def ensure_data(dataset, request, folder=SAMPLE_DATA_FOLDER, name='{uuid}.grib'):
request_text = str(sorted(request.items())).encode('... | <commit_before>
import hashlib
import os
import shutil
import cdsapi
SAMPLE_DATA_FOLDER = os.path.join(os.path.dirname(__file__), 'sample-data')
EXTENSIONS = {'grib': '.grib', 'netcdf': '.nc'}
def ensure_data(dataset, request, folder=SAMPLE_DATA_FOLDER, name='{uuid}.grib'):
request_text = str(sorted(request.ite... |
import hashlib
import os
import shutil
import cdsapi
SAMPLE_DATA_FOLDER = os.path.join(os.path.dirname(__file__), 'sample-data')
EXTENSIONS = {'grib': '.grib', 'netcdf': '.nc'}
def ensure_data(dataset, request, folder=SAMPLE_DATA_FOLDER, name='{uuid}.grib'):
request_text = str(sorted(request.items())).encode('... |
import hashlib
import os
import shutil
import cdsapi
SAMPLE_DATA_FOLDER = os.path.join(os.path.dirname(__file__), 'sample-data')
EXTENSIONS = {'grib': '.grib', 'netcdf': '.nc'}
def ensure_data(dataset, request, folder=SAMPLE_DATA_FOLDER, name='{uuid}.grib'):
request_text = str(sorted(request.items())).encode('... | <commit_before>
import hashlib
import os
import shutil
import cdsapi
SAMPLE_DATA_FOLDER = os.path.join(os.path.dirname(__file__), 'sample-data')
EXTENSIONS = {'grib': '.grib', 'netcdf': '.nc'}
def ensure_data(dataset, request, folder=SAMPLE_DATA_FOLDER, name='{uuid}.grib'):
request_text = str(sorted(request.ite... |
db6b869eae416e72fa30b1d7271b0ed1d7dc1a55 | sqlalchemy_json/__init__.py | sqlalchemy_json/__init__.py | from sqlalchemy.ext.mutable import (
Mutable,
MutableDict)
from sqlalchemy_utils.types.json import JSONType
from . track import (
TrackedDict,
TrackedList)
__all__ = 'MutableJson', 'NestedMutableJson'
class NestedMutableDict(TrackedDict, Mutable):
@classmethod
def coerce(cls, key, value):
... | from sqlalchemy.ext.mutable import (
Mutable,
MutableDict)
from sqlalchemy_utils.types.json import JSONType
from . track import (
TrackedDict,
TrackedList)
__all__ = 'MutableJson', 'NestedMutableJson'
class NestedMutableDict(TrackedDict, Mutable):
@classmethod
def coerce(cls, key, value):
... | Fix error when setting JSON value to be `None` | Fix error when setting JSON value to be `None`
Previously this would raise an attribute error as `None` does not
have the `coerce` attribute.
| Python | bsd-2-clause | edelooff/sqlalchemy-json | from sqlalchemy.ext.mutable import (
Mutable,
MutableDict)
from sqlalchemy_utils.types.json import JSONType
from . track import (
TrackedDict,
TrackedList)
__all__ = 'MutableJson', 'NestedMutableJson'
class NestedMutableDict(TrackedDict, Mutable):
@classmethod
def coerce(cls, key, value):
... | from sqlalchemy.ext.mutable import (
Mutable,
MutableDict)
from sqlalchemy_utils.types.json import JSONType
from . track import (
TrackedDict,
TrackedList)
__all__ = 'MutableJson', 'NestedMutableJson'
class NestedMutableDict(TrackedDict, Mutable):
@classmethod
def coerce(cls, key, value):
... | <commit_before>from sqlalchemy.ext.mutable import (
Mutable,
MutableDict)
from sqlalchemy_utils.types.json import JSONType
from . track import (
TrackedDict,
TrackedList)
__all__ = 'MutableJson', 'NestedMutableJson'
class NestedMutableDict(TrackedDict, Mutable):
@classmethod
def coerce(cls, ... | from sqlalchemy.ext.mutable import (
Mutable,
MutableDict)
from sqlalchemy_utils.types.json import JSONType
from . track import (
TrackedDict,
TrackedList)
__all__ = 'MutableJson', 'NestedMutableJson'
class NestedMutableDict(TrackedDict, Mutable):
@classmethod
def coerce(cls, key, value):
... | from sqlalchemy.ext.mutable import (
Mutable,
MutableDict)
from sqlalchemy_utils.types.json import JSONType
from . track import (
TrackedDict,
TrackedList)
__all__ = 'MutableJson', 'NestedMutableJson'
class NestedMutableDict(TrackedDict, Mutable):
@classmethod
def coerce(cls, key, value):
... | <commit_before>from sqlalchemy.ext.mutable import (
Mutable,
MutableDict)
from sqlalchemy_utils.types.json import JSONType
from . track import (
TrackedDict,
TrackedList)
__all__ = 'MutableJson', 'NestedMutableJson'
class NestedMutableDict(TrackedDict, Mutable):
@classmethod
def coerce(cls, ... |
edf95105b7522b115dd4d3882ed57e707126c6af | timepiece/admin.py | timepiece/admin.py | from django.contrib import admin
from django.contrib.auth.models import Permission
from django.contrib.contenttypes.models import ContentType
class PermissionAdmin(admin.ModelAdmin):
list_display = ['__unicode__', 'codename']
list_filter = ['content_type__app_label']
class ContentTypeAdmin(admin.ModelAdmin)... | from django.contrib import admin
from django.contrib.auth.models import Permission
from django.contrib.contenttypes.models import ContentType
class PermissionAdmin(admin.ModelAdmin):
list_display = ['content_type', 'codename', 'name']
list_filter = ['content_type__app_label']
class ContentTypeAdmin(admin.Mo... | Update Python/Django: Remove unnecessary reference to __unicode__ | Update Python/Django: Remove unnecessary reference to __unicode__
| Python | mit | BocuStudio/django-timepiece,caktus/django-timepiece,arbitrahj/django-timepiece,caktus/django-timepiece,arbitrahj/django-timepiece,BocuStudio/django-timepiece,caktus/django-timepiece,BocuStudio/django-timepiece,arbitrahj/django-timepiece | from django.contrib import admin
from django.contrib.auth.models import Permission
from django.contrib.contenttypes.models import ContentType
class PermissionAdmin(admin.ModelAdmin):
list_display = ['__unicode__', 'codename']
list_filter = ['content_type__app_label']
class ContentTypeAdmin(admin.ModelAdmin)... | from django.contrib import admin
from django.contrib.auth.models import Permission
from django.contrib.contenttypes.models import ContentType
class PermissionAdmin(admin.ModelAdmin):
list_display = ['content_type', 'codename', 'name']
list_filter = ['content_type__app_label']
class ContentTypeAdmin(admin.Mo... | <commit_before>from django.contrib import admin
from django.contrib.auth.models import Permission
from django.contrib.contenttypes.models import ContentType
class PermissionAdmin(admin.ModelAdmin):
list_display = ['__unicode__', 'codename']
list_filter = ['content_type__app_label']
class ContentTypeAdmin(ad... | from django.contrib import admin
from django.contrib.auth.models import Permission
from django.contrib.contenttypes.models import ContentType
class PermissionAdmin(admin.ModelAdmin):
list_display = ['content_type', 'codename', 'name']
list_filter = ['content_type__app_label']
class ContentTypeAdmin(admin.Mo... | from django.contrib import admin
from django.contrib.auth.models import Permission
from django.contrib.contenttypes.models import ContentType
class PermissionAdmin(admin.ModelAdmin):
list_display = ['__unicode__', 'codename']
list_filter = ['content_type__app_label']
class ContentTypeAdmin(admin.ModelAdmin)... | <commit_before>from django.contrib import admin
from django.contrib.auth.models import Permission
from django.contrib.contenttypes.models import ContentType
class PermissionAdmin(admin.ModelAdmin):
list_display = ['__unicode__', 'codename']
list_filter = ['content_type__app_label']
class ContentTypeAdmin(ad... |
20017da43fe1bf5287b33d9d2fc7f597850bb5b5 | readthedocs/settings/proxito/base.py | readthedocs/settings/proxito/base.py | """
Base settings for Proxito
Some of these settings will eventually be backported into the main settings file,
but currently we have them to be able to run the site with the old middleware for
a staged rollout of the proxito code.
"""
class CommunityProxitoSettingsMixin:
ROOT_URLCONF = 'readthedocs.proxito.urls... | """
Base settings for Proxito
Some of these settings will eventually be backported into the main settings file,
but currently we have them to be able to run the site with the old middleware for
a staged rollout of the proxito code.
"""
class CommunityProxitoSettingsMixin:
ROOT_URLCONF = 'readthedocs.proxito.url... | Expand the logic in our proxito mixin. | Expand the logic in our proxito mixin.
This makes proxito mixin match production for .com/.org
in the areas where we are overriding the same things.
| Python | mit | rtfd/readthedocs.org,rtfd/readthedocs.org,rtfd/readthedocs.org,rtfd/readthedocs.org | """
Base settings for Proxito
Some of these settings will eventually be backported into the main settings file,
but currently we have them to be able to run the site with the old middleware for
a staged rollout of the proxito code.
"""
class CommunityProxitoSettingsMixin:
ROOT_URLCONF = 'readthedocs.proxito.urls... | """
Base settings for Proxito
Some of these settings will eventually be backported into the main settings file,
but currently we have them to be able to run the site with the old middleware for
a staged rollout of the proxito code.
"""
class CommunityProxitoSettingsMixin:
ROOT_URLCONF = 'readthedocs.proxito.url... | <commit_before>"""
Base settings for Proxito
Some of these settings will eventually be backported into the main settings file,
but currently we have them to be able to run the site with the old middleware for
a staged rollout of the proxito code.
"""
class CommunityProxitoSettingsMixin:
ROOT_URLCONF = 'readthedo... | """
Base settings for Proxito
Some of these settings will eventually be backported into the main settings file,
but currently we have them to be able to run the site with the old middleware for
a staged rollout of the proxito code.
"""
class CommunityProxitoSettingsMixin:
ROOT_URLCONF = 'readthedocs.proxito.url... | """
Base settings for Proxito
Some of these settings will eventually be backported into the main settings file,
but currently we have them to be able to run the site with the old middleware for
a staged rollout of the proxito code.
"""
class CommunityProxitoSettingsMixin:
ROOT_URLCONF = 'readthedocs.proxito.urls... | <commit_before>"""
Base settings for Proxito
Some of these settings will eventually be backported into the main settings file,
but currently we have them to be able to run the site with the old middleware for
a staged rollout of the proxito code.
"""
class CommunityProxitoSettingsMixin:
ROOT_URLCONF = 'readthedo... |
b021fa0335414d3693aabf4c32b7219f0ba33369 | holviapi/tests/test_api_idempotent.py | holviapi/tests/test_api_idempotent.py | # -*- coding: utf-8 -*-
import os
import pytest
import holviapi
@pytest.fixture
def connection():
pool = os.environ.get('HOLVI_POOL', None)
key = os.environ.get('HOLVI_KEY', None)
if not pool or not key:
raise RuntimeError("HOLVI_POOL and HOLVI_KEY must be in ENV for these tests")
cnc = holviap... | # -*- coding: utf-8 -*-
import os
import pytest
import holviapi
@pytest.fixture
def connection():
pool = os.environ.get('HOLVI_POOL', None)
key = os.environ.get('HOLVI_KEY', None)
if not pool or not key:
raise RuntimeError("HOLVI_POOL and HOLVI_KEY must be in ENV for these tests")
cnc = holviap... | Add more tests against live API | Add more tests against live API
| Python | mit | rambo/python-holviapi,rambo/python-holviapi | # -*- coding: utf-8 -*-
import os
import pytest
import holviapi
@pytest.fixture
def connection():
pool = os.environ.get('HOLVI_POOL', None)
key = os.environ.get('HOLVI_KEY', None)
if not pool or not key:
raise RuntimeError("HOLVI_POOL and HOLVI_KEY must be in ENV for these tests")
cnc = holviap... | # -*- coding: utf-8 -*-
import os
import pytest
import holviapi
@pytest.fixture
def connection():
pool = os.environ.get('HOLVI_POOL', None)
key = os.environ.get('HOLVI_KEY', None)
if not pool or not key:
raise RuntimeError("HOLVI_POOL and HOLVI_KEY must be in ENV for these tests")
cnc = holviap... | <commit_before># -*- coding: utf-8 -*-
import os
import pytest
import holviapi
@pytest.fixture
def connection():
pool = os.environ.get('HOLVI_POOL', None)
key = os.environ.get('HOLVI_KEY', None)
if not pool or not key:
raise RuntimeError("HOLVI_POOL and HOLVI_KEY must be in ENV for these tests")
... | # -*- coding: utf-8 -*-
import os
import pytest
import holviapi
@pytest.fixture
def connection():
pool = os.environ.get('HOLVI_POOL', None)
key = os.environ.get('HOLVI_KEY', None)
if not pool or not key:
raise RuntimeError("HOLVI_POOL and HOLVI_KEY must be in ENV for these tests")
cnc = holviap... | # -*- coding: utf-8 -*-
import os
import pytest
import holviapi
@pytest.fixture
def connection():
pool = os.environ.get('HOLVI_POOL', None)
key = os.environ.get('HOLVI_KEY', None)
if not pool or not key:
raise RuntimeError("HOLVI_POOL and HOLVI_KEY must be in ENV for these tests")
cnc = holviap... | <commit_before># -*- coding: utf-8 -*-
import os
import pytest
import holviapi
@pytest.fixture
def connection():
pool = os.environ.get('HOLVI_POOL', None)
key = os.environ.get('HOLVI_KEY', None)
if not pool or not key:
raise RuntimeError("HOLVI_POOL and HOLVI_KEY must be in ENV for these tests")
... |
183548fcd094482e1ef3147e530d7eedac4685be | launch_control/commands/dispatcher.py | launch_control/commands/dispatcher.py | """
Module with LaunchControlDispatcher - the command dispatcher
"""
import argparse
from .interface import Command
class LaunchControlDispatcher(object):
"""
Class implementing command line interface for launch control
"""
def __init__(self):
self.parser = argparse.ArgumentParser(
... | """
Module with LaunchControlDispatcher - the command dispatcher
"""
import argparse
from .interface import Command
class LaunchControlDispatcher(object):
"""
Class implementing command line interface for launch control
"""
def __init__(self):
self.parser = argparse.ArgumentParser(
... | Add ability to pass explicit arguments to LaunchControlDispatcher | Add ability to pass explicit arguments to LaunchControlDispatcher
| Python | agpl-3.0 | OSSystems/lava-server,OSSystems/lava-server,OSSystems/lava-server,Linaro/lava-server,Linaro/lava-server,Linaro/lava-server,Linaro/lava-server | """
Module with LaunchControlDispatcher - the command dispatcher
"""
import argparse
from .interface import Command
class LaunchControlDispatcher(object):
"""
Class implementing command line interface for launch control
"""
def __init__(self):
self.parser = argparse.ArgumentParser(
... | """
Module with LaunchControlDispatcher - the command dispatcher
"""
import argparse
from .interface import Command
class LaunchControlDispatcher(object):
"""
Class implementing command line interface for launch control
"""
def __init__(self):
self.parser = argparse.ArgumentParser(
... | <commit_before>"""
Module with LaunchControlDispatcher - the command dispatcher
"""
import argparse
from .interface import Command
class LaunchControlDispatcher(object):
"""
Class implementing command line interface for launch control
"""
def __init__(self):
self.parser = argparse.ArgumentPa... | """
Module with LaunchControlDispatcher - the command dispatcher
"""
import argparse
from .interface import Command
class LaunchControlDispatcher(object):
"""
Class implementing command line interface for launch control
"""
def __init__(self):
self.parser = argparse.ArgumentParser(
... | """
Module with LaunchControlDispatcher - the command dispatcher
"""
import argparse
from .interface import Command
class LaunchControlDispatcher(object):
"""
Class implementing command line interface for launch control
"""
def __init__(self):
self.parser = argparse.ArgumentParser(
... | <commit_before>"""
Module with LaunchControlDispatcher - the command dispatcher
"""
import argparse
from .interface import Command
class LaunchControlDispatcher(object):
"""
Class implementing command line interface for launch control
"""
def __init__(self):
self.parser = argparse.ArgumentPa... |
ce639400d48462bdc593e20d13979c33ed4c7fe9 | commands/globaladd.py | commands/globaladd.py | from devbot import chat
def call(message: str, name, protocol, cfg, commands):
if ' ' in message:
chat.say('/msg {} Sorry, that was not a valid player name: It contains spaces.'.format(name))
return
chat.say('/msg {} Invited {} to GlobalChat'.format(name, message))
chat.say_wrap('/msg {}'.... | from devbot import chat
def call(message: str, name, protocol, cfg, commands):
if message is '':
chat.say('/msg {} {}'.format(name, commands['help']['globaladd'].format('globaladd')))
return
if ' ' in message:
chat.say('/msg {} Sorry, that was not a valid player name: It contains spac... | Fix missing command crash with gadd | Fix missing command crash with gadd
| Python | mit | Ameliorate/DevotedBot,Ameliorate/DevotedBot | from devbot import chat
def call(message: str, name, protocol, cfg, commands):
if ' ' in message:
chat.say('/msg {} Sorry, that was not a valid player name: It contains spaces.'.format(name))
return
chat.say('/msg {} Invited {} to GlobalChat'.format(name, message))
chat.say_wrap('/msg {}'.... | from devbot import chat
def call(message: str, name, protocol, cfg, commands):
if message is '':
chat.say('/msg {} {}'.format(name, commands['help']['globaladd'].format('globaladd')))
return
if ' ' in message:
chat.say('/msg {} Sorry, that was not a valid player name: It contains spac... | <commit_before>from devbot import chat
def call(message: str, name, protocol, cfg, commands):
if ' ' in message:
chat.say('/msg {} Sorry, that was not a valid player name: It contains spaces.'.format(name))
return
chat.say('/msg {} Invited {} to GlobalChat'.format(name, message))
chat.say_... | from devbot import chat
def call(message: str, name, protocol, cfg, commands):
if message is '':
chat.say('/msg {} {}'.format(name, commands['help']['globaladd'].format('globaladd')))
return
if ' ' in message:
chat.say('/msg {} Sorry, that was not a valid player name: It contains spac... | from devbot import chat
def call(message: str, name, protocol, cfg, commands):
if ' ' in message:
chat.say('/msg {} Sorry, that was not a valid player name: It contains spaces.'.format(name))
return
chat.say('/msg {} Invited {} to GlobalChat'.format(name, message))
chat.say_wrap('/msg {}'.... | <commit_before>from devbot import chat
def call(message: str, name, protocol, cfg, commands):
if ' ' in message:
chat.say('/msg {} Sorry, that was not a valid player name: It contains spaces.'.format(name))
return
chat.say('/msg {} Invited {} to GlobalChat'.format(name, message))
chat.say_... |
300e946cd72561c69141f65768debed9d0682abb | utils/run_tests.py | utils/run_tests.py | #!/usr/bin/env python
"""
Run Arista Transcode Tests
==========================
Generate test files in various formats and transcode them to all available
output devices and qualities.
"""
import os
import subprocess
import sys
sys.path.append(os.path.dirname(os.path.dirname(__file__)))
import arista; arista.init... | #!/usr/bin/env python
"""
Run Arista Transcode Tests
==========================
Generate test files in various formats and transcode them to all available
output devices and qualities.
"""
import os
import subprocess
import sys
sys.path.append(os.path.dirname(os.path.dirname(__file__)))
import arista; arista.init... | Update test runner syntax to the new arista-transcode syntax and always output a status report even if the user stops the tests early. | Update test runner syntax to the new arista-transcode syntax and always output a status report even if the user stops the tests early.
| Python | lgpl-2.1 | danielgtaylor/arista,danielgtaylor/arista | #!/usr/bin/env python
"""
Run Arista Transcode Tests
==========================
Generate test files in various formats and transcode them to all available
output devices and qualities.
"""
import os
import subprocess
import sys
sys.path.append(os.path.dirname(os.path.dirname(__file__)))
import arista; arista.init... | #!/usr/bin/env python
"""
Run Arista Transcode Tests
==========================
Generate test files in various formats and transcode them to all available
output devices and qualities.
"""
import os
import subprocess
import sys
sys.path.append(os.path.dirname(os.path.dirname(__file__)))
import arista; arista.init... | <commit_before>#!/usr/bin/env python
"""
Run Arista Transcode Tests
==========================
Generate test files in various formats and transcode them to all available
output devices and qualities.
"""
import os
import subprocess
import sys
sys.path.append(os.path.dirname(os.path.dirname(__file__)))
import aris... | #!/usr/bin/env python
"""
Run Arista Transcode Tests
==========================
Generate test files in various formats and transcode them to all available
output devices and qualities.
"""
import os
import subprocess
import sys
sys.path.append(os.path.dirname(os.path.dirname(__file__)))
import arista; arista.init... | #!/usr/bin/env python
"""
Run Arista Transcode Tests
==========================
Generate test files in various formats and transcode them to all available
output devices and qualities.
"""
import os
import subprocess
import sys
sys.path.append(os.path.dirname(os.path.dirname(__file__)))
import arista; arista.init... | <commit_before>#!/usr/bin/env python
"""
Run Arista Transcode Tests
==========================
Generate test files in various formats and transcode them to all available
output devices and qualities.
"""
import os
import subprocess
import sys
sys.path.append(os.path.dirname(os.path.dirname(__file__)))
import aris... |
b4e5a284201d6d25607ff54aedcf6082e8a4d621 | st2client/st2client/models/reactor.py | st2client/st2client/models/reactor.py | # Licensed to the StackStorm, Inc ('StackStorm') under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use th... | # Licensed to the StackStorm, Inc ('StackStorm') under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use th... | Add Trigger model to client and alias it as TriggerSpecification. | Add Trigger model to client and alias it as TriggerSpecification.
| Python | apache-2.0 | pinterb/st2,peak6/st2,pixelrebel/st2,jtopjian/st2,pixelrebel/st2,alfasin/st2,pinterb/st2,Itxaka/st2,Plexxi/st2,lakshmi-kannan/st2,Itxaka/st2,grengojbo/st2,Plexxi/st2,jtopjian/st2,punalpatel/st2,punalpatel/st2,Plexxi/st2,nzlosh/st2,armab/st2,StackStorm/st2,punalpatel/st2,dennybaa/st2,nzlosh/st2,pixelrebel/st2,peak6/st2,... | # Licensed to the StackStorm, Inc ('StackStorm') under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use th... | # Licensed to the StackStorm, Inc ('StackStorm') under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use th... | <commit_before># Licensed to the StackStorm, Inc ('StackStorm') under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you... | # Licensed to the StackStorm, Inc ('StackStorm') under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use th... | # Licensed to the StackStorm, Inc ('StackStorm') under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use th... | <commit_before># Licensed to the StackStorm, Inc ('StackStorm') under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you... |
0903b18d1e4213cb88aa8cfcd0eb473ae54aa40b | shop/models/fields.py | shop/models/fields.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import connection
from shop.apps import get_tuple_version
try:
if str(connection.vendor) == 'postgresql':
import psycopg2
psycopg2_version = get_tuple_version(psycopg2.__version__[:5])
with connection.cursor()... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.conf import settings
if settings.DATABASES['default']['ENGINE'] == 'django.db.backends.postgresql':
from django.contrib.postgres.fields import JSONField as _JSONField
else:
from jsonfield.fields import JSONField as _JSONField
class... | Fix and simplify the JSONfield wrapper code | Fix and simplify the JSONfield wrapper code
| Python | bsd-3-clause | jrief/django-shop,awesto/django-shop,nimbis/django-shop,khchine5/django-shop,jrief/django-shop,nimbis/django-shop,awesto/django-shop,nimbis/django-shop,khchine5/django-shop,divio/django-shop,nimbis/django-shop,jrief/django-shop,divio/django-shop,awesto/django-shop,divio/django-shop,khchine5/django-shop,khchine5/django-... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import connection
from shop.apps import get_tuple_version
try:
if str(connection.vendor) == 'postgresql':
import psycopg2
psycopg2_version = get_tuple_version(psycopg2.__version__[:5])
with connection.cursor()... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.conf import settings
if settings.DATABASES['default']['ENGINE'] == 'django.db.backends.postgresql':
from django.contrib.postgres.fields import JSONField as _JSONField
else:
from jsonfield.fields import JSONField as _JSONField
class... | <commit_before># -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import connection
from shop.apps import get_tuple_version
try:
if str(connection.vendor) == 'postgresql':
import psycopg2
psycopg2_version = get_tuple_version(psycopg2.__version__[:5])
with conn... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.conf import settings
if settings.DATABASES['default']['ENGINE'] == 'django.db.backends.postgresql':
from django.contrib.postgres.fields import JSONField as _JSONField
else:
from jsonfield.fields import JSONField as _JSONField
class... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import connection
from shop.apps import get_tuple_version
try:
if str(connection.vendor) == 'postgresql':
import psycopg2
psycopg2_version = get_tuple_version(psycopg2.__version__[:5])
with connection.cursor()... | <commit_before># -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import connection
from shop.apps import get_tuple_version
try:
if str(connection.vendor) == 'postgresql':
import psycopg2
psycopg2_version = get_tuple_version(psycopg2.__version__[:5])
with conn... |
e33b0e36d3e6dd7d374f1cf8846324275da0d331 | tweets/models.py | tweets/models.py | from django.conf import settings
from django.db import models
class HashTag(models.Model):
# The hash tag length can't be more than the body length minus the `#`
text = models.CharField(max_length=139)
def __str__(self):
return self.text
class Message(models.Model):
user = models.ForeignKey... | from django.conf import settings
from django.db import models
class Hashtag(models.Model):
# The hash tag length can't be more than the body length minus the `#`
text = models.CharField(max_length=139)
def __str__(self):
return self.text
class Message(models.Model):
user = models.ForeignKey... | Adjust hashtag to be consistently one word | Adjust hashtag to be consistently one word
| Python | mit | pennomi/openwest2015-twitter-clone,pennomi/openwest2015-twitter-clone,pennomi/openwest2015-twitter-clone | from django.conf import settings
from django.db import models
class HashTag(models.Model):
# The hash tag length can't be more than the body length minus the `#`
text = models.CharField(max_length=139)
def __str__(self):
return self.text
class Message(models.Model):
user = models.ForeignKey... | from django.conf import settings
from django.db import models
class Hashtag(models.Model):
# The hash tag length can't be more than the body length minus the `#`
text = models.CharField(max_length=139)
def __str__(self):
return self.text
class Message(models.Model):
user = models.ForeignKey... | <commit_before>from django.conf import settings
from django.db import models
class HashTag(models.Model):
# The hash tag length can't be more than the body length minus the `#`
text = models.CharField(max_length=139)
def __str__(self):
return self.text
class Message(models.Model):
user = mo... | from django.conf import settings
from django.db import models
class Hashtag(models.Model):
# The hash tag length can't be more than the body length minus the `#`
text = models.CharField(max_length=139)
def __str__(self):
return self.text
class Message(models.Model):
user = models.ForeignKey... | from django.conf import settings
from django.db import models
class HashTag(models.Model):
# The hash tag length can't be more than the body length minus the `#`
text = models.CharField(max_length=139)
def __str__(self):
return self.text
class Message(models.Model):
user = models.ForeignKey... | <commit_before>from django.conf import settings
from django.db import models
class HashTag(models.Model):
# The hash tag length can't be more than the body length minus the `#`
text = models.CharField(max_length=139)
def __str__(self):
return self.text
class Message(models.Model):
user = mo... |
458211091f4408136a4eb6e6a06849d93c3ede8a | tests/test_convert.py | tests/test_convert.py | import pytest # type: ignore
from hypothesis import given
from ppb_vector import Vector2
from utils import vector_likes, vectors
class V(Vector2): pass
@pytest.mark.parametrize('vector_like', vector_likes(), ids=lambda x: type(x).__name__) # type: ignore
@pytest.mark.parametrize('cls', [Vector2, V]) # type: ignore
... | import pytest # type: ignore
from hypothesis import given
from ppb_vector import Vector2
from utils import vector_likes, vectors
class V(Vector2): pass
@pytest.mark.parametrize('vector_like', vector_likes(), ids=lambda x: type(x).__name__) # type: ignore
@pytest.mark.parametrize('cls', [Vector2, V]) # type: ignore
... | Add a list conversion test | tests/convert: Add a list conversion test
| Python | artistic-2.0 | ppb/ppb-vector,ppb/ppb-vector | import pytest # type: ignore
from hypothesis import given
from ppb_vector import Vector2
from utils import vector_likes, vectors
class V(Vector2): pass
@pytest.mark.parametrize('vector_like', vector_likes(), ids=lambda x: type(x).__name__) # type: ignore
@pytest.mark.parametrize('cls', [Vector2, V]) # type: ignore
... | import pytest # type: ignore
from hypothesis import given
from ppb_vector import Vector2
from utils import vector_likes, vectors
class V(Vector2): pass
@pytest.mark.parametrize('vector_like', vector_likes(), ids=lambda x: type(x).__name__) # type: ignore
@pytest.mark.parametrize('cls', [Vector2, V]) # type: ignore
... | <commit_before>import pytest # type: ignore
from hypothesis import given
from ppb_vector import Vector2
from utils import vector_likes, vectors
class V(Vector2): pass
@pytest.mark.parametrize('vector_like', vector_likes(), ids=lambda x: type(x).__name__) # type: ignore
@pytest.mark.parametrize('cls', [Vector2, V]) ... | import pytest # type: ignore
from hypothesis import given
from ppb_vector import Vector2
from utils import vector_likes, vectors
class V(Vector2): pass
@pytest.mark.parametrize('vector_like', vector_likes(), ids=lambda x: type(x).__name__) # type: ignore
@pytest.mark.parametrize('cls', [Vector2, V]) # type: ignore
... | import pytest # type: ignore
from hypothesis import given
from ppb_vector import Vector2
from utils import vector_likes, vectors
class V(Vector2): pass
@pytest.mark.parametrize('vector_like', vector_likes(), ids=lambda x: type(x).__name__) # type: ignore
@pytest.mark.parametrize('cls', [Vector2, V]) # type: ignore
... | <commit_before>import pytest # type: ignore
from hypothesis import given
from ppb_vector import Vector2
from utils import vector_likes, vectors
class V(Vector2): pass
@pytest.mark.parametrize('vector_like', vector_likes(), ids=lambda x: type(x).__name__) # type: ignore
@pytest.mark.parametrize('cls', [Vector2, V]) ... |
3739b760e2ddf2a741dd6b4683780ffbd11ef33c | osrframework/__init__.py | osrframework/__init__.py | # -*- coding: cp1252 -*-
#
##################################################################################
#
# Copyright 2014-2017 Félix Brezo and Yaiza Rubio (i3visio, contacto@i3visio.com)
#
# OSRFramework is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public Lic... | # -*- coding: cp1252 -*-
#
##################################################################################
#
# Copyright 2014-2017 Félix Brezo and Yaiza Rubio (i3visio, contacto@i3visio.com)
#
# OSRFramework is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public Lic... | Prepare 0.15.0rc8 to release it as 0.15.0 | Prepare 0.15.0rc8 to release it as 0.15.0
| Python | agpl-3.0 | i3visio/osrframework | # -*- coding: cp1252 -*-
#
##################################################################################
#
# Copyright 2014-2017 Félix Brezo and Yaiza Rubio (i3visio, contacto@i3visio.com)
#
# OSRFramework is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public Lic... | # -*- coding: cp1252 -*-
#
##################################################################################
#
# Copyright 2014-2017 Félix Brezo and Yaiza Rubio (i3visio, contacto@i3visio.com)
#
# OSRFramework is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public Lic... | <commit_before># -*- coding: cp1252 -*-
#
##################################################################################
#
# Copyright 2014-2017 Félix Brezo and Yaiza Rubio (i3visio, contacto@i3visio.com)
#
# OSRFramework is free software: you can redistribute it and/or modify
# it under the terms of the GNU Gen... | # -*- coding: cp1252 -*-
#
##################################################################################
#
# Copyright 2014-2017 Félix Brezo and Yaiza Rubio (i3visio, contacto@i3visio.com)
#
# OSRFramework is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public Lic... | # -*- coding: cp1252 -*-
#
##################################################################################
#
# Copyright 2014-2017 Félix Brezo and Yaiza Rubio (i3visio, contacto@i3visio.com)
#
# OSRFramework is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public Lic... | <commit_before># -*- coding: cp1252 -*-
#
##################################################################################
#
# Copyright 2014-2017 Félix Brezo and Yaiza Rubio (i3visio, contacto@i3visio.com)
#
# OSRFramework is free software: you can redistribute it and/or modify
# it under the terms of the GNU Gen... |
bd8901c18a6722660e7af742260ae4b8317a064b | youtube/tasks.py | youtube/tasks.py | import subprocess
import os
from pathlib import Path
from invoke import task
@task
def update(ctx):
"""
Update youtube-dl
"""
cmd = ['pipenv', 'update', 'youtube-dl']
subprocess.call(cmd)
@task
def clean(ctx):
"""
Clean up files
"""
import main
def rm(file_):
if file_.exists():
os.r... | import subprocess
import os
from pathlib import Path
from invoke import task
@task
def update(ctx):
"""
Update dependencies such as youtube-dl, etc.
"""
subprocess.call(['pipenv', 'update'])
@task
def clean(ctx):
"""
Clean up files
"""
import main
def rm(file_):
if file_.exists():
os.... | Update task now updates all dependencies | Update task now updates all dependencies
| Python | apache-2.0 | feihong/chinese-music-processors,feihong/chinese-music-processors | import subprocess
import os
from pathlib import Path
from invoke import task
@task
def update(ctx):
"""
Update youtube-dl
"""
cmd = ['pipenv', 'update', 'youtube-dl']
subprocess.call(cmd)
@task
def clean(ctx):
"""
Clean up files
"""
import main
def rm(file_):
if file_.exists():
os.r... | import subprocess
import os
from pathlib import Path
from invoke import task
@task
def update(ctx):
"""
Update dependencies such as youtube-dl, etc.
"""
subprocess.call(['pipenv', 'update'])
@task
def clean(ctx):
"""
Clean up files
"""
import main
def rm(file_):
if file_.exists():
os.... | <commit_before>import subprocess
import os
from pathlib import Path
from invoke import task
@task
def update(ctx):
"""
Update youtube-dl
"""
cmd = ['pipenv', 'update', 'youtube-dl']
subprocess.call(cmd)
@task
def clean(ctx):
"""
Clean up files
"""
import main
def rm(file_):
if file_.exist... | import subprocess
import os
from pathlib import Path
from invoke import task
@task
def update(ctx):
"""
Update dependencies such as youtube-dl, etc.
"""
subprocess.call(['pipenv', 'update'])
@task
def clean(ctx):
"""
Clean up files
"""
import main
def rm(file_):
if file_.exists():
os.... | import subprocess
import os
from pathlib import Path
from invoke import task
@task
def update(ctx):
"""
Update youtube-dl
"""
cmd = ['pipenv', 'update', 'youtube-dl']
subprocess.call(cmd)
@task
def clean(ctx):
"""
Clean up files
"""
import main
def rm(file_):
if file_.exists():
os.r... | <commit_before>import subprocess
import os
from pathlib import Path
from invoke import task
@task
def update(ctx):
"""
Update youtube-dl
"""
cmd = ['pipenv', 'update', 'youtube-dl']
subprocess.call(cmd)
@task
def clean(ctx):
"""
Clean up files
"""
import main
def rm(file_):
if file_.exist... |
ec6a8374fd0e1411b52bfcb12e2a8a599d025287 | src/AppiumLibrary/keywords/_logging.py | src/AppiumLibrary/keywords/_logging.py | # -*- coding: utf-8 -*-
import os
import sys
from robot.variables import GLOBAL_VARIABLES
from robot.api import logger
from keywordgroup import KeywordGroup
class _LoggingKeywords(KeywordGroup):
# Private
def _debug(self, message):
logger.debug(message)
def _get_log_dir(self):
... | # -*- coding: utf-8 -*-
import os
import sys
from robot.libraries.BuiltIn import BuiltIn
from robot.api import logger
from keywordgroup import KeywordGroup
class _LoggingKeywords(KeywordGroup):
# Private
def _debug(self, message):
logger.debug(message)
def _get_log_dir(self):
... | Update BuiltIn library reference for RF 2.9 compatibility | Update BuiltIn library reference for RF 2.9 compatibility
| Python | apache-2.0 | jollychang/robotframework-appiumlibrary,yahman72/robotframework-appiumlibrary,lzhang1/robotframework-appiumlibrary,Meallia/robotframework-appiumlibrary,minhnguyenphuonghoang/robotframework-appiumlibrary,valaxy/robotframework-appiumlibrary,serhatbolsu/robotframework-appiumlibrary | # -*- coding: utf-8 -*-
import os
import sys
from robot.variables import GLOBAL_VARIABLES
from robot.api import logger
from keywordgroup import KeywordGroup
class _LoggingKeywords(KeywordGroup):
# Private
def _debug(self, message):
logger.debug(message)
def _get_log_dir(self):
... | # -*- coding: utf-8 -*-
import os
import sys
from robot.libraries.BuiltIn import BuiltIn
from robot.api import logger
from keywordgroup import KeywordGroup
class _LoggingKeywords(KeywordGroup):
# Private
def _debug(self, message):
logger.debug(message)
def _get_log_dir(self):
... | <commit_before># -*- coding: utf-8 -*-
import os
import sys
from robot.variables import GLOBAL_VARIABLES
from robot.api import logger
from keywordgroup import KeywordGroup
class _LoggingKeywords(KeywordGroup):
# Private
def _debug(self, message):
logger.debug(message)
def _get_lo... | # -*- coding: utf-8 -*-
import os
import sys
from robot.libraries.BuiltIn import BuiltIn
from robot.api import logger
from keywordgroup import KeywordGroup
class _LoggingKeywords(KeywordGroup):
# Private
def _debug(self, message):
logger.debug(message)
def _get_log_dir(self):
... | # -*- coding: utf-8 -*-
import os
import sys
from robot.variables import GLOBAL_VARIABLES
from robot.api import logger
from keywordgroup import KeywordGroup
class _LoggingKeywords(KeywordGroup):
# Private
def _debug(self, message):
logger.debug(message)
def _get_log_dir(self):
... | <commit_before># -*- coding: utf-8 -*-
import os
import sys
from robot.variables import GLOBAL_VARIABLES
from robot.api import logger
from keywordgroup import KeywordGroup
class _LoggingKeywords(KeywordGroup):
# Private
def _debug(self, message):
logger.debug(message)
def _get_lo... |
532df8a669d7e54125c102ef4821272dc24aab23 | weasyprint/logger.py | weasyprint/logger.py | # coding: utf-8
"""
weasyprint.logging
------------------
Logging setup.
The rest of the code gets the logger through this module rather than
``logging.getLogger`` to make sure that it is configured.
:copyright: Copyright 2011-2014 Simon Sapin and contributors, see AUTHORS.
:license: BSD,... | # coding: utf-8
"""
weasyprint.logging
------------------
Logging setup.
The rest of the code gets the logger through this module rather than
``logging.getLogger`` to make sure that it is configured.
:copyright: Copyright 2011-2014 Simon Sapin and contributors, see AUTHORS.
:license: BSD,... | Add a better default formatter for logs | Add a better default formatter for logs
| Python | bsd-3-clause | Kozea/WeasyPrint,Kozea/WeasyPrint | # coding: utf-8
"""
weasyprint.logging
------------------
Logging setup.
The rest of the code gets the logger through this module rather than
``logging.getLogger`` to make sure that it is configured.
:copyright: Copyright 2011-2014 Simon Sapin and contributors, see AUTHORS.
:license: BSD,... | # coding: utf-8
"""
weasyprint.logging
------------------
Logging setup.
The rest of the code gets the logger through this module rather than
``logging.getLogger`` to make sure that it is configured.
:copyright: Copyright 2011-2014 Simon Sapin and contributors, see AUTHORS.
:license: BSD,... | <commit_before># coding: utf-8
"""
weasyprint.logging
------------------
Logging setup.
The rest of the code gets the logger through this module rather than
``logging.getLogger`` to make sure that it is configured.
:copyright: Copyright 2011-2014 Simon Sapin and contributors, see AUTHORS.
... | # coding: utf-8
"""
weasyprint.logging
------------------
Logging setup.
The rest of the code gets the logger through this module rather than
``logging.getLogger`` to make sure that it is configured.
:copyright: Copyright 2011-2014 Simon Sapin and contributors, see AUTHORS.
:license: BSD,... | # coding: utf-8
"""
weasyprint.logging
------------------
Logging setup.
The rest of the code gets the logger through this module rather than
``logging.getLogger`` to make sure that it is configured.
:copyright: Copyright 2011-2014 Simon Sapin and contributors, see AUTHORS.
:license: BSD,... | <commit_before># coding: utf-8
"""
weasyprint.logging
------------------
Logging setup.
The rest of the code gets the logger through this module rather than
``logging.getLogger`` to make sure that it is configured.
:copyright: Copyright 2011-2014 Simon Sapin and contributors, see AUTHORS.
... |
14b8a2a689414e65efda9b466db430ed09f777d5 | panoptes_client/utils.py | panoptes_client/utils.py | from __future__ import absolute_import, division, print_function
from builtins import range
import functools
ITERABLE_TYPES = (
list,
set,
tuple,
)
try:
from numpy import ndarray
ITERABLE_TYPES = ITERABLE_TYPES + (ndarray,)
except ImportError:
pass
def isiterable(v):
return isinstance(... | from __future__ import absolute_import, division, print_function
from builtins import range
import functools
ITERABLE_TYPES = (
list,
set,
tuple,
)
MISSING_POSITIONAL_ERR = 'Required positional argument (pos 1) not found'
try:
from numpy import ndarray
ITERABLE_TYPES = ITERABLE_TYPES + (ndarray... | Raise TypeError if positional batchable argument is missing | Raise TypeError if positional batchable argument is missing
e.g. if it's erroneously been passed as a named argument.
| Python | apache-2.0 | zooniverse/panoptes-python-client | from __future__ import absolute_import, division, print_function
from builtins import range
import functools
ITERABLE_TYPES = (
list,
set,
tuple,
)
try:
from numpy import ndarray
ITERABLE_TYPES = ITERABLE_TYPES + (ndarray,)
except ImportError:
pass
def isiterable(v):
return isinstance(... | from __future__ import absolute_import, division, print_function
from builtins import range
import functools
ITERABLE_TYPES = (
list,
set,
tuple,
)
MISSING_POSITIONAL_ERR = 'Required positional argument (pos 1) not found'
try:
from numpy import ndarray
ITERABLE_TYPES = ITERABLE_TYPES + (ndarray... | <commit_before>from __future__ import absolute_import, division, print_function
from builtins import range
import functools
ITERABLE_TYPES = (
list,
set,
tuple,
)
try:
from numpy import ndarray
ITERABLE_TYPES = ITERABLE_TYPES + (ndarray,)
except ImportError:
pass
def isiterable(v):
ret... | from __future__ import absolute_import, division, print_function
from builtins import range
import functools
ITERABLE_TYPES = (
list,
set,
tuple,
)
MISSING_POSITIONAL_ERR = 'Required positional argument (pos 1) not found'
try:
from numpy import ndarray
ITERABLE_TYPES = ITERABLE_TYPES + (ndarray... | from __future__ import absolute_import, division, print_function
from builtins import range
import functools
ITERABLE_TYPES = (
list,
set,
tuple,
)
try:
from numpy import ndarray
ITERABLE_TYPES = ITERABLE_TYPES + (ndarray,)
except ImportError:
pass
def isiterable(v):
return isinstance(... | <commit_before>from __future__ import absolute_import, division, print_function
from builtins import range
import functools
ITERABLE_TYPES = (
list,
set,
tuple,
)
try:
from numpy import ndarray
ITERABLE_TYPES = ITERABLE_TYPES + (ndarray,)
except ImportError:
pass
def isiterable(v):
ret... |
6049a916ea3adfe4ef8a7ae9dbfc918b69907ef4 | OnionLauncher/main.py | OnionLauncher/main.py | import sys
from PyQt5.QtWidgets import QApplication, QMainWindow
from PyQt5.uic import loadUi
class MainWindow(QMainWindow):
def __init__(self, *args):
super(MainWindow, self).__init__(*args)
loadUi("ui_files/main.ui", self)
self.tbAdd.clicked.connect(self.addRow)
self.tbRemove.clicked.connect(self.removeRo... | import sys
from PyQt5.QtWidgets import QApplication, QMainWindow
from PyQt5.uic import loadUi
class MainWindow(QMainWindow):
def __init__(self, *args):
super(MainWindow, self).__init__(*args)
loadUi("ui_files/main.ui", self)
buttons = {
self.tbAdd: self.addRow,
self.tbRemove: self.removeRow,
self.btn... | Put mouse clicks in it's own dictionary | Put mouse clicks in it's own dictionary
| Python | bsd-2-clause | neelchauhan/OnionLauncher | import sys
from PyQt5.QtWidgets import QApplication, QMainWindow
from PyQt5.uic import loadUi
class MainWindow(QMainWindow):
def __init__(self, *args):
super(MainWindow, self).__init__(*args)
loadUi("ui_files/main.ui", self)
self.tbAdd.clicked.connect(self.addRow)
self.tbRemove.clicked.connect(self.removeRo... | import sys
from PyQt5.QtWidgets import QApplication, QMainWindow
from PyQt5.uic import loadUi
class MainWindow(QMainWindow):
def __init__(self, *args):
super(MainWindow, self).__init__(*args)
loadUi("ui_files/main.ui", self)
buttons = {
self.tbAdd: self.addRow,
self.tbRemove: self.removeRow,
self.btn... | <commit_before>import sys
from PyQt5.QtWidgets import QApplication, QMainWindow
from PyQt5.uic import loadUi
class MainWindow(QMainWindow):
def __init__(self, *args):
super(MainWindow, self).__init__(*args)
loadUi("ui_files/main.ui", self)
self.tbAdd.clicked.connect(self.addRow)
self.tbRemove.clicked.connec... | import sys
from PyQt5.QtWidgets import QApplication, QMainWindow
from PyQt5.uic import loadUi
class MainWindow(QMainWindow):
def __init__(self, *args):
super(MainWindow, self).__init__(*args)
loadUi("ui_files/main.ui", self)
buttons = {
self.tbAdd: self.addRow,
self.tbRemove: self.removeRow,
self.btn... | import sys
from PyQt5.QtWidgets import QApplication, QMainWindow
from PyQt5.uic import loadUi
class MainWindow(QMainWindow):
def __init__(self, *args):
super(MainWindow, self).__init__(*args)
loadUi("ui_files/main.ui", self)
self.tbAdd.clicked.connect(self.addRow)
self.tbRemove.clicked.connect(self.removeRo... | <commit_before>import sys
from PyQt5.QtWidgets import QApplication, QMainWindow
from PyQt5.uic import loadUi
class MainWindow(QMainWindow):
def __init__(self, *args):
super(MainWindow, self).__init__(*args)
loadUi("ui_files/main.ui", self)
self.tbAdd.clicked.connect(self.addRow)
self.tbRemove.clicked.connec... |
5e2021b33cc9e45e9e6ddfaa1aee928c583b868e | pskb_website/__init__.py | pskb_website/__init__.py | import os
from flask import Flask
from flask.ext.sqlalchemy import SQLAlchemy
app = Flask(__name__)
# Running on heroku
if 'HEROKU' in os.environ:
from example_config import HEROKU_ENV_REQUIREMENTS
# example_config.py provides a blueprint for which variables to look for in
# the environment and set in o... | import os
from flask import Flask
from flask.ext.sqlalchemy import SQLAlchemy
app = Flask(__name__)
# Running on heroku
if 'HEROKU' in os.environ:
from example_config import HEROKU_ENV_REQUIREMENTS
# example_config.py provides a blueprint for which variables to look for in
# the environment and set in o... | Print heroku if debug is true | Print heroku if debug is true
| Python | agpl-3.0 | paulocheque/guides-cms,paulocheque/guides-cms,paulocheque/guides-cms,pluralsight/guides-cms,pluralsight/guides-cms,pluralsight/guides-cms | import os
from flask import Flask
from flask.ext.sqlalchemy import SQLAlchemy
app = Flask(__name__)
# Running on heroku
if 'HEROKU' in os.environ:
from example_config import HEROKU_ENV_REQUIREMENTS
# example_config.py provides a blueprint for which variables to look for in
# the environment and set in o... | import os
from flask import Flask
from flask.ext.sqlalchemy import SQLAlchemy
app = Flask(__name__)
# Running on heroku
if 'HEROKU' in os.environ:
from example_config import HEROKU_ENV_REQUIREMENTS
# example_config.py provides a blueprint for which variables to look for in
# the environment and set in o... | <commit_before>import os
from flask import Flask
from flask.ext.sqlalchemy import SQLAlchemy
app = Flask(__name__)
# Running on heroku
if 'HEROKU' in os.environ:
from example_config import HEROKU_ENV_REQUIREMENTS
# example_config.py provides a blueprint for which variables to look for in
# the environme... | import os
from flask import Flask
from flask.ext.sqlalchemy import SQLAlchemy
app = Flask(__name__)
# Running on heroku
if 'HEROKU' in os.environ:
from example_config import HEROKU_ENV_REQUIREMENTS
# example_config.py provides a blueprint for which variables to look for in
# the environment and set in o... | import os
from flask import Flask
from flask.ext.sqlalchemy import SQLAlchemy
app = Flask(__name__)
# Running on heroku
if 'HEROKU' in os.environ:
from example_config import HEROKU_ENV_REQUIREMENTS
# example_config.py provides a blueprint for which variables to look for in
# the environment and set in o... | <commit_before>import os
from flask import Flask
from flask.ext.sqlalchemy import SQLAlchemy
app = Flask(__name__)
# Running on heroku
if 'HEROKU' in os.environ:
from example_config import HEROKU_ENV_REQUIREMENTS
# example_config.py provides a blueprint for which variables to look for in
# the environme... |
8a827d3e86cf2f6b9d36812e7058560ae120d4b2 | tests/test_watson.py | tests/test_watson.py | from pywatson.watson import Watson
class TestWatson:
def test_init(self, config):
watson = Watson(url=config['url'], username=config['username'], password=config['password'])
| from pywatson.answer.answer import Answer
from pywatson.watson import Watson
class TestWatson:
def test_ask_question_basic(self, watson):
answer = watson.ask_question('What is the Labour Code?')
assert type(answer) is Answer
| Add failing test for ask_question | Add failing test for ask_question
| Python | mit | sherlocke/pywatson | from pywatson.watson import Watson
class TestWatson:
def test_init(self, config):
watson = Watson(url=config['url'], username=config['username'], password=config['password'])
Add failing test for ask_question | from pywatson.answer.answer import Answer
from pywatson.watson import Watson
class TestWatson:
def test_ask_question_basic(self, watson):
answer = watson.ask_question('What is the Labour Code?')
assert type(answer) is Answer
| <commit_before>from pywatson.watson import Watson
class TestWatson:
def test_init(self, config):
watson = Watson(url=config['url'], username=config['username'], password=config['password'])
<commit_msg>Add failing test for ask_question<commit_after> | from pywatson.answer.answer import Answer
from pywatson.watson import Watson
class TestWatson:
def test_ask_question_basic(self, watson):
answer = watson.ask_question('What is the Labour Code?')
assert type(answer) is Answer
| from pywatson.watson import Watson
class TestWatson:
def test_init(self, config):
watson = Watson(url=config['url'], username=config['username'], password=config['password'])
Add failing test for ask_questionfrom pywatson.answer.answer import Answer
from pywatson.watson import Watson
class TestWatson:
... | <commit_before>from pywatson.watson import Watson
class TestWatson:
def test_init(self, config):
watson = Watson(url=config['url'], username=config['username'], password=config['password'])
<commit_msg>Add failing test for ask_question<commit_after>from pywatson.answer.answer import Answer
from pywatson.w... |
7153c2be456084dfdd7cc346d62a6eb0fcaa2a31 | teuthology/config.py | teuthology/config.py | import os
import yaml
import logging
CONF_FILE = os.path.join(os.environ['HOME'], '.teuthology.yaml')
log = logging.getLogger(__name__)
class _Config(object):
"""
This class is intended to unify teuthology's many configuration files and
objects. Currently it serves as a convenient interface to
~/.te... | import os
import yaml
import logging
CONF_FILE = os.path.join(os.environ['HOME'], '.teuthology.yaml')
log = logging.getLogger(__name__)
class _Config(object):
"""
This class is intended to unify teuthology's many configuration files and
objects. Currently it serves as a convenient interface to
~/.te... | Add doc noting Inktank's lockserver URL | Add doc noting Inktank's lockserver URL
Since I just removed it from lockstatus.py.
| Python | mit | t-miyamae/teuthology,robbat2/teuthology,michaelsevilla/teuthology,michaelsevilla/teuthology,t-miyamae/teuthology,zhouyuan/teuthology,ivotron/teuthology,dreamhost/teuthology,ktdreyer/teuthology,dmick/teuthology,SUSE/teuthology,SUSE/teuthology,yghannam/teuthology,dmick/teuthology,dmick/teuthology,caibo2014/teuthology,cep... | import os
import yaml
import logging
CONF_FILE = os.path.join(os.environ['HOME'], '.teuthology.yaml')
log = logging.getLogger(__name__)
class _Config(object):
"""
This class is intended to unify teuthology's many configuration files and
objects. Currently it serves as a convenient interface to
~/.te... | import os
import yaml
import logging
CONF_FILE = os.path.join(os.environ['HOME'], '.teuthology.yaml')
log = logging.getLogger(__name__)
class _Config(object):
"""
This class is intended to unify teuthology's many configuration files and
objects. Currently it serves as a convenient interface to
~/.te... | <commit_before>import os
import yaml
import logging
CONF_FILE = os.path.join(os.environ['HOME'], '.teuthology.yaml')
log = logging.getLogger(__name__)
class _Config(object):
"""
This class is intended to unify teuthology's many configuration files and
objects. Currently it serves as a convenient interfa... | import os
import yaml
import logging
CONF_FILE = os.path.join(os.environ['HOME'], '.teuthology.yaml')
log = logging.getLogger(__name__)
class _Config(object):
"""
This class is intended to unify teuthology's many configuration files and
objects. Currently it serves as a convenient interface to
~/.te... | import os
import yaml
import logging
CONF_FILE = os.path.join(os.environ['HOME'], '.teuthology.yaml')
log = logging.getLogger(__name__)
class _Config(object):
"""
This class is intended to unify teuthology's many configuration files and
objects. Currently it serves as a convenient interface to
~/.te... | <commit_before>import os
import yaml
import logging
CONF_FILE = os.path.join(os.environ['HOME'], '.teuthology.yaml')
log = logging.getLogger(__name__)
class _Config(object):
"""
This class is intended to unify teuthology's many configuration files and
objects. Currently it serves as a convenient interfa... |
685e0f7abb8658fe9ba0c54907f084561707c9cc | website/members/urls.py | website/members/urls.py | from django.conf.urls import url, include
from members import views
urlpatterns = [
url(r'^profile/$', views.profile, name='profile'),
# Views given by django auth library
url(r'', include('django.contrib.auth.urls')),
] | from django.conf.urls import url, include
from members import views
urlpatterns = [
url(r'^profile/$', views.profile, name='profile'),
# Views given by django auth library
url(r'', include('django.contrib.auth.urls')),
]
| Add newline at the end of the file | :green_heart: Add newline at the end of the file
| Python | agpl-3.0 | Dekker1/moore,Dekker1/moore,UTNkar/moore,UTNkar/moore,UTNkar/moore,Dekker1/moore,Dekker1/moore,UTNkar/moore | from django.conf.urls import url, include
from members import views
urlpatterns = [
url(r'^profile/$', views.profile, name='profile'),
# Views given by django auth library
url(r'', include('django.contrib.auth.urls')),
]:green_heart: Add newline at the end of the file | from django.conf.urls import url, include
from members import views
urlpatterns = [
url(r'^profile/$', views.profile, name='profile'),
# Views given by django auth library
url(r'', include('django.contrib.auth.urls')),
]
| <commit_before>from django.conf.urls import url, include
from members import views
urlpatterns = [
url(r'^profile/$', views.profile, name='profile'),
# Views given by django auth library
url(r'', include('django.contrib.auth.urls')),
]<commit_msg>:green_heart: Add newline at the end of the file<commit_af... | from django.conf.urls import url, include
from members import views
urlpatterns = [
url(r'^profile/$', views.profile, name='profile'),
# Views given by django auth library
url(r'', include('django.contrib.auth.urls')),
]
| from django.conf.urls import url, include
from members import views
urlpatterns = [
url(r'^profile/$', views.profile, name='profile'),
# Views given by django auth library
url(r'', include('django.contrib.auth.urls')),
]:green_heart: Add newline at the end of the filefrom django.conf.urls import url, inc... | <commit_before>from django.conf.urls import url, include
from members import views
urlpatterns = [
url(r'^profile/$', views.profile, name='profile'),
# Views given by django auth library
url(r'', include('django.contrib.auth.urls')),
]<commit_msg>:green_heart: Add newline at the end of the file<commit_af... |
de324cc798da8694bab510efd51de4bfda528df7 | zinnia/views/entries.py | zinnia/views/entries.py | """Views for Zinnia entries"""
from django.views.generic.dates import BaseDateDetailView
from zinnia.models.entry import Entry
from zinnia.views.mixins.archives import ArchiveMixin
from zinnia.views.mixins.entry_protection import EntryProtectionMixin
from zinnia.views.mixins.callable_queryset import CallableQuerysetMi... | """Views for Zinnia entries"""
from django.views.generic.dates import BaseDateDetailView
from zinnia.models.entry import Entry
from zinnia.views.mixins.archives import ArchiveMixin
from zinnia.views.mixins.entry_preview import EntryPreviewMixin
from zinnia.views.mixins.entry_protection import EntryProtectionMixin
from... | Implement the EntryPreviewMixin in the EntryDetail view | Implement the EntryPreviewMixin in the EntryDetail view
| Python | bsd-3-clause | Maplecroft/django-blog-zinnia,ZuluPro/django-blog-zinnia,petecummings/django-blog-zinnia,Maplecroft/django-blog-zinnia,ZuluPro/django-blog-zinnia,petecummings/django-blog-zinnia,petecummings/django-blog-zinnia,aorzh/django-blog-zinnia,extertioner/django-blog-zinnia,Maplecroft/django-blog-zinnia,ghachey/django-blog-zinn... | """Views for Zinnia entries"""
from django.views.generic.dates import BaseDateDetailView
from zinnia.models.entry import Entry
from zinnia.views.mixins.archives import ArchiveMixin
from zinnia.views.mixins.entry_protection import EntryProtectionMixin
from zinnia.views.mixins.callable_queryset import CallableQuerysetMi... | """Views for Zinnia entries"""
from django.views.generic.dates import BaseDateDetailView
from zinnia.models.entry import Entry
from zinnia.views.mixins.archives import ArchiveMixin
from zinnia.views.mixins.entry_preview import EntryPreviewMixin
from zinnia.views.mixins.entry_protection import EntryProtectionMixin
from... | <commit_before>"""Views for Zinnia entries"""
from django.views.generic.dates import BaseDateDetailView
from zinnia.models.entry import Entry
from zinnia.views.mixins.archives import ArchiveMixin
from zinnia.views.mixins.entry_protection import EntryProtectionMixin
from zinnia.views.mixins.callable_queryset import Cal... | """Views for Zinnia entries"""
from django.views.generic.dates import BaseDateDetailView
from zinnia.models.entry import Entry
from zinnia.views.mixins.archives import ArchiveMixin
from zinnia.views.mixins.entry_preview import EntryPreviewMixin
from zinnia.views.mixins.entry_protection import EntryProtectionMixin
from... | """Views for Zinnia entries"""
from django.views.generic.dates import BaseDateDetailView
from zinnia.models.entry import Entry
from zinnia.views.mixins.archives import ArchiveMixin
from zinnia.views.mixins.entry_protection import EntryProtectionMixin
from zinnia.views.mixins.callable_queryset import CallableQuerysetMi... | <commit_before>"""Views for Zinnia entries"""
from django.views.generic.dates import BaseDateDetailView
from zinnia.models.entry import Entry
from zinnia.views.mixins.archives import ArchiveMixin
from zinnia.views.mixins.entry_protection import EntryProtectionMixin
from zinnia.views.mixins.callable_queryset import Cal... |
e93a321e3d137fb21a42d0e0bfd257a537be05d3 | diy/parerga/config.py | diy/parerga/config.py | # -*- set coding: utf-8 -*-
import os
# directories constants
PARERGA_ROOT_DIR = os.path.dirname(os.path.abspath(__file__))
PARERGA_ENTRY_DIR = os.path.join(PARERGA_ROOT_DIR, "p")
PARERGA_STATIC_DIR = os.path.join(PARERGA_ROOT_DIR, "static")
PARERGA_TEMPLATE_DIR = os.path.join(PARERGA_ROOT_DIR, "templates")
# databa... | # -*- set coding: utf-8 -*-
import os
# directories constants
PARERGA_ROOT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
PARERGA_ENTRY_DIR = os.path.join(PARERGA_ROOT_DIR, "p")
PARERGA_STATIC_DIR = os.path.join(PARERGA_ROOT_DIR, "static")
PARERGA_TEMPLATE_DIR = os.path.join(PARERGA_ROOT_DIR, "temp... | Update path vars for the new source location | Update path vars for the new source location
| Python | bsd-3-clause | nadirs/parerga,nadirs/parerga | # -*- set coding: utf-8 -*-
import os
# directories constants
PARERGA_ROOT_DIR = os.path.dirname(os.path.abspath(__file__))
PARERGA_ENTRY_DIR = os.path.join(PARERGA_ROOT_DIR, "p")
PARERGA_STATIC_DIR = os.path.join(PARERGA_ROOT_DIR, "static")
PARERGA_TEMPLATE_DIR = os.path.join(PARERGA_ROOT_DIR, "templates")
# databa... | # -*- set coding: utf-8 -*-
import os
# directories constants
PARERGA_ROOT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
PARERGA_ENTRY_DIR = os.path.join(PARERGA_ROOT_DIR, "p")
PARERGA_STATIC_DIR = os.path.join(PARERGA_ROOT_DIR, "static")
PARERGA_TEMPLATE_DIR = os.path.join(PARERGA_ROOT_DIR, "temp... | <commit_before># -*- set coding: utf-8 -*-
import os
# directories constants
PARERGA_ROOT_DIR = os.path.dirname(os.path.abspath(__file__))
PARERGA_ENTRY_DIR = os.path.join(PARERGA_ROOT_DIR, "p")
PARERGA_STATIC_DIR = os.path.join(PARERGA_ROOT_DIR, "static")
PARERGA_TEMPLATE_DIR = os.path.join(PARERGA_ROOT_DIR, "templa... | # -*- set coding: utf-8 -*-
import os
# directories constants
PARERGA_ROOT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
PARERGA_ENTRY_DIR = os.path.join(PARERGA_ROOT_DIR, "p")
PARERGA_STATIC_DIR = os.path.join(PARERGA_ROOT_DIR, "static")
PARERGA_TEMPLATE_DIR = os.path.join(PARERGA_ROOT_DIR, "temp... | # -*- set coding: utf-8 -*-
import os
# directories constants
PARERGA_ROOT_DIR = os.path.dirname(os.path.abspath(__file__))
PARERGA_ENTRY_DIR = os.path.join(PARERGA_ROOT_DIR, "p")
PARERGA_STATIC_DIR = os.path.join(PARERGA_ROOT_DIR, "static")
PARERGA_TEMPLATE_DIR = os.path.join(PARERGA_ROOT_DIR, "templates")
# databa... | <commit_before># -*- set coding: utf-8 -*-
import os
# directories constants
PARERGA_ROOT_DIR = os.path.dirname(os.path.abspath(__file__))
PARERGA_ENTRY_DIR = os.path.join(PARERGA_ROOT_DIR, "p")
PARERGA_STATIC_DIR = os.path.join(PARERGA_ROOT_DIR, "static")
PARERGA_TEMPLATE_DIR = os.path.join(PARERGA_ROOT_DIR, "templa... |
37ddf8b41ee770a27c4eb59d27fc74fea60faaee | scipy/io/matlab/setup.py | scipy/io/matlab/setup.py | #!/usr/bin/env python
def configuration(parent_package='',top_path=None):
from numpy.distutils.misc_util import Configuration
config = Configuration('matlab', parent_package, top_path)
config.add_data_dir('tests')
return config
if __name__ == '__main__':
from numpy.distutils.core import setup
... | #!/usr/bin/env python
def configuration(parent_package='io',top_path=None):
from numpy.distutils.misc_util import Configuration
config = Configuration('matlab', parent_package, top_path)
config.add_data_dir('tests')
return config
if __name__ == '__main__':
from numpy.distutils.core import setup
... | Fix parent package of io.matlab. | Fix parent package of io.matlab.
| Python | bsd-3-clause | anielsen001/scipy,kleskjr/scipy,WarrenWeckesser/scipy,cpaulik/scipy,felipebetancur/scipy,dominicelse/scipy,Shaswat27/scipy,arokem/scipy,aarchiba/scipy,ilayn/scipy,fernand/scipy,piyush0609/scipy,surhudm/scipy,sauliusl/scipy,mtrbean/scipy,petebachant/scipy,Gillu13/scipy,argriffing/scipy,sonnyhu/scipy,jor-/scipy,arokem/sc... | #!/usr/bin/env python
def configuration(parent_package='',top_path=None):
from numpy.distutils.misc_util import Configuration
config = Configuration('matlab', parent_package, top_path)
config.add_data_dir('tests')
return config
if __name__ == '__main__':
from numpy.distutils.core import setup
... | #!/usr/bin/env python
def configuration(parent_package='io',top_path=None):
from numpy.distutils.misc_util import Configuration
config = Configuration('matlab', parent_package, top_path)
config.add_data_dir('tests')
return config
if __name__ == '__main__':
from numpy.distutils.core import setup
... | <commit_before>#!/usr/bin/env python
def configuration(parent_package='',top_path=None):
from numpy.distutils.misc_util import Configuration
config = Configuration('matlab', parent_package, top_path)
config.add_data_dir('tests')
return config
if __name__ == '__main__':
from numpy.distutils.core im... | #!/usr/bin/env python
def configuration(parent_package='io',top_path=None):
from numpy.distutils.misc_util import Configuration
config = Configuration('matlab', parent_package, top_path)
config.add_data_dir('tests')
return config
if __name__ == '__main__':
from numpy.distutils.core import setup
... | #!/usr/bin/env python
def configuration(parent_package='',top_path=None):
from numpy.distutils.misc_util import Configuration
config = Configuration('matlab', parent_package, top_path)
config.add_data_dir('tests')
return config
if __name__ == '__main__':
from numpy.distutils.core import setup
... | <commit_before>#!/usr/bin/env python
def configuration(parent_package='',top_path=None):
from numpy.distutils.misc_util import Configuration
config = Configuration('matlab', parent_package, top_path)
config.add_data_dir('tests')
return config
if __name__ == '__main__':
from numpy.distutils.core im... |
624d6e4fc5455720badf4315e06f423eb60411ab | scripts/init_tree.py | scripts/init_tree.py | import os
import shutil
def main():
cwd = os.getcwd()
if not cwd.endswith(os.path.join('FRENSIE', 'scripts')):
print 'This script must be run in \"FRENSIE/scipts\"'
print 'Your CWD is', cwd
return 1
os.chdir('../../')
os.mkdir('frensie_build_tree')
#os.renames('FRENSIE'... | import os
import shutil
def main():
cwd = os.getcwd()
if not cwd.endswith(os.path.join('FRENSIE', 'scripts')):
print 'This script must be run in \"FRENSIE/scipts\"'
print 'Your CWD is', cwd
return 1
os.chdir('../../')
os.mkdir('frensie_build_tree')
#os.renames('FRENSIE'... | Update to copy new scripts | Update to copy new scripts
| Python | bsd-3-clause | lkersting/SCR-2123,lkersting/SCR-2123,lkersting/SCR-2123,lkersting/SCR-2123 | import os
import shutil
def main():
cwd = os.getcwd()
if not cwd.endswith(os.path.join('FRENSIE', 'scripts')):
print 'This script must be run in \"FRENSIE/scipts\"'
print 'Your CWD is', cwd
return 1
os.chdir('../../')
os.mkdir('frensie_build_tree')
#os.renames('FRENSIE'... | import os
import shutil
def main():
cwd = os.getcwd()
if not cwd.endswith(os.path.join('FRENSIE', 'scripts')):
print 'This script must be run in \"FRENSIE/scipts\"'
print 'Your CWD is', cwd
return 1
os.chdir('../../')
os.mkdir('frensie_build_tree')
#os.renames('FRENSIE'... | <commit_before>import os
import shutil
def main():
cwd = os.getcwd()
if not cwd.endswith(os.path.join('FRENSIE', 'scripts')):
print 'This script must be run in \"FRENSIE/scipts\"'
print 'Your CWD is', cwd
return 1
os.chdir('../../')
os.mkdir('frensie_build_tree')
#os.re... | import os
import shutil
def main():
cwd = os.getcwd()
if not cwd.endswith(os.path.join('FRENSIE', 'scripts')):
print 'This script must be run in \"FRENSIE/scipts\"'
print 'Your CWD is', cwd
return 1
os.chdir('../../')
os.mkdir('frensie_build_tree')
#os.renames('FRENSIE'... | import os
import shutil
def main():
cwd = os.getcwd()
if not cwd.endswith(os.path.join('FRENSIE', 'scripts')):
print 'This script must be run in \"FRENSIE/scipts\"'
print 'Your CWD is', cwd
return 1
os.chdir('../../')
os.mkdir('frensie_build_tree')
#os.renames('FRENSIE'... | <commit_before>import os
import shutil
def main():
cwd = os.getcwd()
if not cwd.endswith(os.path.join('FRENSIE', 'scripts')):
print 'This script must be run in \"FRENSIE/scipts\"'
print 'Your CWD is', cwd
return 1
os.chdir('../../')
os.mkdir('frensie_build_tree')
#os.re... |
0338f8c66f14d6dbf43a2583ba17a8ae7d690466 | apps/survey/urls.py | apps/survey/urls.py | from django.conf.urls.defaults import *
from . import views
urlpatterns = patterns('',
url(r'^profile/$', views.profile_index, name='survey_profile'),
url(r'^profile/electric/$', views.profile_electric, name='survey_profile_electric'),
url(r'^profile/intake/$', views.survey_intake, name='survey_profile_in... | from django.conf.urls.defaults import *
from . import views
urlpatterns = patterns('',
url(r'^profile/$', views.profile_index, name='survey_profile'),
url(r'^profile/electric/$', views.profile_electric, name='survey_profile_electric'),
#url(r'^profile/intake/$', views.survey_intake, name='survey_profile_i... | Modify call to personal surveis | Modify call to personal surveis
| Python | agpl-3.0 | chispita/epiwork,chispita/epiwork,chispita/epiwork,chispita/epiwork,chispita/epiwork,chispita/epiwork,chispita/epiwork | from django.conf.urls.defaults import *
from . import views
urlpatterns = patterns('',
url(r'^profile/$', views.profile_index, name='survey_profile'),
url(r'^profile/electric/$', views.profile_electric, name='survey_profile_electric'),
url(r'^profile/intake/$', views.survey_intake, name='survey_profile_in... | from django.conf.urls.defaults import *
from . import views
urlpatterns = patterns('',
url(r'^profile/$', views.profile_index, name='survey_profile'),
url(r'^profile/electric/$', views.profile_electric, name='survey_profile_electric'),
#url(r'^profile/intake/$', views.survey_intake, name='survey_profile_i... | <commit_before>from django.conf.urls.defaults import *
from . import views
urlpatterns = patterns('',
url(r'^profile/$', views.profile_index, name='survey_profile'),
url(r'^profile/electric/$', views.profile_electric, name='survey_profile_electric'),
url(r'^profile/intake/$', views.survey_intake, name='su... | from django.conf.urls.defaults import *
from . import views
urlpatterns = patterns('',
url(r'^profile/$', views.profile_index, name='survey_profile'),
url(r'^profile/electric/$', views.profile_electric, name='survey_profile_electric'),
#url(r'^profile/intake/$', views.survey_intake, name='survey_profile_i... | from django.conf.urls.defaults import *
from . import views
urlpatterns = patterns('',
url(r'^profile/$', views.profile_index, name='survey_profile'),
url(r'^profile/electric/$', views.profile_electric, name='survey_profile_electric'),
url(r'^profile/intake/$', views.survey_intake, name='survey_profile_in... | <commit_before>from django.conf.urls.defaults import *
from . import views
urlpatterns = patterns('',
url(r'^profile/$', views.profile_index, name='survey_profile'),
url(r'^profile/electric/$', views.profile_electric, name='survey_profile_electric'),
url(r'^profile/intake/$', views.survey_intake, name='su... |
2724b4dd7ed350baeae0a8e0ef53475f40b1208b | project_generator/tools/makearmclang.py | project_generator/tools/makearmclang.py | # Copyright 2020 Chris Reed
#
# 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, s... | # Copyright 2020 Chris Reed
#
# 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, s... | Enable linker preprocessing for armclang. | Enable linker preprocessing for armclang.
This should be temporary; for some reason the .sct cpp shebang isn't working for me. Same result in any case.
| Python | apache-2.0 | project-generator/project_generator | # Copyright 2020 Chris Reed
#
# 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, s... | # Copyright 2020 Chris Reed
#
# 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, s... | <commit_before># Copyright 2020 Chris Reed
#
# 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 t... | # Copyright 2020 Chris Reed
#
# 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, s... | # Copyright 2020 Chris Reed
#
# 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, s... | <commit_before># Copyright 2020 Chris Reed
#
# 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 t... |
9ae5ea3876fae6ef0bc092d87c71d9ea86040cf7 | InvenTree/company/api.py | InvenTree/company/api.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django_filters.rest_framework import DjangoFilterBackend
from rest_framework import filters
from rest_framework import generics, permissions
from django.conf.urls import url
from .models import Company
from .serializers import CompanySerializer
c... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django_filters.rest_framework import DjangoFilterBackend
from rest_framework import filters
from rest_framework import generics, permissions
from django.conf.urls import url
from .models import Company
from .serializers import CompanySerializer
c... | Add RUD endpoint for Company | Add RUD endpoint for Company
| Python | mit | SchrodingersGat/InvenTree,SchrodingersGat/InvenTree,inventree/InvenTree,inventree/InvenTree,inventree/InvenTree,SchrodingersGat/InvenTree,inventree/InvenTree,SchrodingersGat/InvenTree | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django_filters.rest_framework import DjangoFilterBackend
from rest_framework import filters
from rest_framework import generics, permissions
from django.conf.urls import url
from .models import Company
from .serializers import CompanySerializer
c... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django_filters.rest_framework import DjangoFilterBackend
from rest_framework import filters
from rest_framework import generics, permissions
from django.conf.urls import url
from .models import Company
from .serializers import CompanySerializer
c... | <commit_before># -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django_filters.rest_framework import DjangoFilterBackend
from rest_framework import filters
from rest_framework import generics, permissions
from django.conf.urls import url
from .models import Company
from .serializers import Compan... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django_filters.rest_framework import DjangoFilterBackend
from rest_framework import filters
from rest_framework import generics, permissions
from django.conf.urls import url
from .models import Company
from .serializers import CompanySerializer
c... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django_filters.rest_framework import DjangoFilterBackend
from rest_framework import filters
from rest_framework import generics, permissions
from django.conf.urls import url
from .models import Company
from .serializers import CompanySerializer
c... | <commit_before># -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django_filters.rest_framework import DjangoFilterBackend
from rest_framework import filters
from rest_framework import generics, permissions
from django.conf.urls import url
from .models import Company
from .serializers import Compan... |
a8818e2058fdfaec7f283a5115619d42d23b7dde | anchorhub/builtin/github/writer.py | anchorhub/builtin/github/writer.py | """
File that initializes a Writer object designed for GitHub style markdown files.
"""
from anchorhub.writer import Writer
from anchorhub.builtin.github.wstrategies import MarkdownATXWriterStrategy, \
MarkdownSetextWriterStrategy, MarkdownInlineLinkWriterStrategy
import anchorhub.builtin.github.switches as ghswit... | """
File that initializes a Writer object designed for GitHub style markdown files.
"""
from anchorhub.writer import Writer
from anchorhub.builtin.github.wstrategies import MarkdownATXWriterStrategy, \
MarkdownSetextWriterStrategy, MarkdownInlineLinkWriterStrategy
import anchorhub.builtin.github.switches as ghswit... | Use Setext strategy in GitHub built in Writer | Use Setext strategy in GitHub built in Writer
| Python | apache-2.0 | samjabrahams/anchorhub | """
File that initializes a Writer object designed for GitHub style markdown files.
"""
from anchorhub.writer import Writer
from anchorhub.builtin.github.wstrategies import MarkdownATXWriterStrategy, \
MarkdownSetextWriterStrategy, MarkdownInlineLinkWriterStrategy
import anchorhub.builtin.github.switches as ghswit... | """
File that initializes a Writer object designed for GitHub style markdown files.
"""
from anchorhub.writer import Writer
from anchorhub.builtin.github.wstrategies import MarkdownATXWriterStrategy, \
MarkdownSetextWriterStrategy, MarkdownInlineLinkWriterStrategy
import anchorhub.builtin.github.switches as ghswit... | <commit_before>"""
File that initializes a Writer object designed for GitHub style markdown files.
"""
from anchorhub.writer import Writer
from anchorhub.builtin.github.wstrategies import MarkdownATXWriterStrategy, \
MarkdownSetextWriterStrategy, MarkdownInlineLinkWriterStrategy
import anchorhub.builtin.github.swi... | """
File that initializes a Writer object designed for GitHub style markdown files.
"""
from anchorhub.writer import Writer
from anchorhub.builtin.github.wstrategies import MarkdownATXWriterStrategy, \
MarkdownSetextWriterStrategy, MarkdownInlineLinkWriterStrategy
import anchorhub.builtin.github.switches as ghswit... | """
File that initializes a Writer object designed for GitHub style markdown files.
"""
from anchorhub.writer import Writer
from anchorhub.builtin.github.wstrategies import MarkdownATXWriterStrategy, \
MarkdownSetextWriterStrategy, MarkdownInlineLinkWriterStrategy
import anchorhub.builtin.github.switches as ghswit... | <commit_before>"""
File that initializes a Writer object designed for GitHub style markdown files.
"""
from anchorhub.writer import Writer
from anchorhub.builtin.github.wstrategies import MarkdownATXWriterStrategy, \
MarkdownSetextWriterStrategy, MarkdownInlineLinkWriterStrategy
import anchorhub.builtin.github.swi... |
c154d79ba13d95f3240efd9eb4725cf9fc16060f | forms.py | forms.py | from flask_wtf import Form
from wtforms import StringField, PasswordField
from wtforms.validators import DataRequired, Email
class Login(Form):
username = StringField('Username', validators=[DataRequired()])
password = PasswordField('Password', validators=[DataRequired()])
| from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField
from wtforms.validators import DataRequired, Email
class Login(FlaskForm):
username = StringField('Username', validators=[DataRequired()])
password = PasswordField('Password', validators=[DataRequired()])
| Change deprecated flask_wtf.Form with flask_wtf.FlaskForm | Change deprecated flask_wtf.Form with flask_wtf.FlaskForm
| Python | mit | openedoo/module_employee,openedoo/module_employee,openedoo/module_employee | from flask_wtf import Form
from wtforms import StringField, PasswordField
from wtforms.validators import DataRequired, Email
class Login(Form):
username = StringField('Username', validators=[DataRequired()])
password = PasswordField('Password', validators=[DataRequired()])
Change deprecated flask_wtf.Form wit... | from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField
from wtforms.validators import DataRequired, Email
class Login(FlaskForm):
username = StringField('Username', validators=[DataRequired()])
password = PasswordField('Password', validators=[DataRequired()])
| <commit_before>from flask_wtf import Form
from wtforms import StringField, PasswordField
from wtforms.validators import DataRequired, Email
class Login(Form):
username = StringField('Username', validators=[DataRequired()])
password = PasswordField('Password', validators=[DataRequired()])
<commit_msg>Change de... | from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField
from wtforms.validators import DataRequired, Email
class Login(FlaskForm):
username = StringField('Username', validators=[DataRequired()])
password = PasswordField('Password', validators=[DataRequired()])
| from flask_wtf import Form
from wtforms import StringField, PasswordField
from wtforms.validators import DataRequired, Email
class Login(Form):
username = StringField('Username', validators=[DataRequired()])
password = PasswordField('Password', validators=[DataRequired()])
Change deprecated flask_wtf.Form wit... | <commit_before>from flask_wtf import Form
from wtforms import StringField, PasswordField
from wtforms.validators import DataRequired, Email
class Login(Form):
username = StringField('Username', validators=[DataRequired()])
password = PasswordField('Password', validators=[DataRequired()])
<commit_msg>Change de... |
e6400b1cce8f35466818e2424adf11e7b18aba6f | sknn/tests/test_rules.py | sknn/tests/test_rules.py | import unittest
from nose.tools import (assert_is_not_none, assert_false, assert_raises, assert_equal)
import numpy as np
from sknn.mlp import MultiLayerPerceptronRegressor as MLPR
class TestLearningRules(unittest.TestCase):
def test_default(self):
self._run(MLPR(layers=[("Linear",)],
... | import unittest
from nose.tools import (assert_is_not_none, assert_false, assert_raises, assert_equal)
import numpy as np
from sknn.mlp import MultiLayerPerceptronRegressor as MLPR
class TestLearningRules(unittest.TestCase):
def test_default(self):
self._run(MLPR(layers=[("Linear",)],
... | Build fix for syntax error in test files. | Build fix for syntax error in test files.
| Python | bsd-3-clause | IndraVikas/scikit-neuralnetwork,gticket/scikit-neuralnetwork,agomariz/scikit-neuralnetwork,freakynit/scikit-neuralnetwork,KhanSuleyman/scikit-neuralnetwork,capitancambio/scikit-neuralnetwork,aigamedev/scikit-neuralnetwork | import unittest
from nose.tools import (assert_is_not_none, assert_false, assert_raises, assert_equal)
import numpy as np
from sknn.mlp import MultiLayerPerceptronRegressor as MLPR
class TestLearningRules(unittest.TestCase):
def test_default(self):
self._run(MLPR(layers=[("Linear",)],
... | import unittest
from nose.tools import (assert_is_not_none, assert_false, assert_raises, assert_equal)
import numpy as np
from sknn.mlp import MultiLayerPerceptronRegressor as MLPR
class TestLearningRules(unittest.TestCase):
def test_default(self):
self._run(MLPR(layers=[("Linear",)],
... | <commit_before>import unittest
from nose.tools import (assert_is_not_none, assert_false, assert_raises, assert_equal)
import numpy as np
from sknn.mlp import MultiLayerPerceptronRegressor as MLPR
class TestLearningRules(unittest.TestCase):
def test_default(self):
self._run(MLPR(layers=[("Linear",)],
... | import unittest
from nose.tools import (assert_is_not_none, assert_false, assert_raises, assert_equal)
import numpy as np
from sknn.mlp import MultiLayerPerceptronRegressor as MLPR
class TestLearningRules(unittest.TestCase):
def test_default(self):
self._run(MLPR(layers=[("Linear",)],
... | import unittest
from nose.tools import (assert_is_not_none, assert_false, assert_raises, assert_equal)
import numpy as np
from sknn.mlp import MultiLayerPerceptronRegressor as MLPR
class TestLearningRules(unittest.TestCase):
def test_default(self):
self._run(MLPR(layers=[("Linear",)],
... | <commit_before>import unittest
from nose.tools import (assert_is_not_none, assert_false, assert_raises, assert_equal)
import numpy as np
from sknn.mlp import MultiLayerPerceptronRegressor as MLPR
class TestLearningRules(unittest.TestCase):
def test_default(self):
self._run(MLPR(layers=[("Linear",)],
... |
ce95e50b7cb3ef9bbabddb033352aacb96b9237a | pywikibot/families/wikivoyage_family.py | pywikibot/families/wikivoyage_family.py | # -*- coding: utf-8 -*-
"""Family module for Wikivoyage."""
#
# (C) Pywikibot team, 2012-2016
#
# Distributed under the terms of the MIT license.
#
from __future__ import absolute_import, unicode_literals
__version__ = '$Id$'
# The new wikivoyage family that is hosted at wikimedia
from pywikibot import family
clas... | # -*- coding: utf-8 -*-
"""Family module for Wikivoyage."""
#
# (C) Pywikibot team, 2012-2016
#
# Distributed under the terms of the MIT license.
#
# The new wikivoyage family that is hosted at wikimedia
from __future__ import absolute_import, unicode_literals
from pywikibot import family
__version__ = '$Id$'
class... | Add fi:wikivoyage and sort by current article count | Add fi:wikivoyage and sort by current article count
Fix also pycodestyle (former PEP8) E402 problem
Bug: T153470
Change-Id: Id9bc980c7a9cfb21063597a3d5eae11c31d8040c
| Python | mit | Darkdadaah/pywikibot-core,magul/pywikibot-core,jayvdb/pywikibot-core,hasteur/g13bot_tools_new,happy5214/pywikibot-core,magul/pywikibot-core,happy5214/pywikibot-core,Darkdadaah/pywikibot-core,npdoty/pywikibot,wikimedia/pywikibot-core,PersianWikipedia/pywikibot-core,hasteur/g13bot_tools_new,jayvdb/pywikibot-core,hasteur/... | # -*- coding: utf-8 -*-
"""Family module for Wikivoyage."""
#
# (C) Pywikibot team, 2012-2016
#
# Distributed under the terms of the MIT license.
#
from __future__ import absolute_import, unicode_literals
__version__ = '$Id$'
# The new wikivoyage family that is hosted at wikimedia
from pywikibot import family
clas... | # -*- coding: utf-8 -*-
"""Family module for Wikivoyage."""
#
# (C) Pywikibot team, 2012-2016
#
# Distributed under the terms of the MIT license.
#
# The new wikivoyage family that is hosted at wikimedia
from __future__ import absolute_import, unicode_literals
from pywikibot import family
__version__ = '$Id$'
class... | <commit_before># -*- coding: utf-8 -*-
"""Family module for Wikivoyage."""
#
# (C) Pywikibot team, 2012-2016
#
# Distributed under the terms of the MIT license.
#
from __future__ import absolute_import, unicode_literals
__version__ = '$Id$'
# The new wikivoyage family that is hosted at wikimedia
from pywikibot impor... | # -*- coding: utf-8 -*-
"""Family module for Wikivoyage."""
#
# (C) Pywikibot team, 2012-2016
#
# Distributed under the terms of the MIT license.
#
# The new wikivoyage family that is hosted at wikimedia
from __future__ import absolute_import, unicode_literals
from pywikibot import family
__version__ = '$Id$'
class... | # -*- coding: utf-8 -*-
"""Family module for Wikivoyage."""
#
# (C) Pywikibot team, 2012-2016
#
# Distributed under the terms of the MIT license.
#
from __future__ import absolute_import, unicode_literals
__version__ = '$Id$'
# The new wikivoyage family that is hosted at wikimedia
from pywikibot import family
clas... | <commit_before># -*- coding: utf-8 -*-
"""Family module for Wikivoyage."""
#
# (C) Pywikibot team, 2012-2016
#
# Distributed under the terms of the MIT license.
#
from __future__ import absolute_import, unicode_literals
__version__ = '$Id$'
# The new wikivoyage family that is hosted at wikimedia
from pywikibot impor... |
9cc15bc4a7ed8efb82071fa19e9d1ada8771a87d | app/soc/views/helper/decorators.py | app/soc/views/helper/decorators.py | #!/usr/bin/python2.5
#
# Copyright 2008 the Melange 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 applicable... | #!/usr/bin/python2.5
#
# Copyright 2008 the Melange 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 applicable... | Remove not needed request argument in view decorator. | Remove not needed request argument in view decorator.
Patch by: Pawel Solyga
Review by: to-be-reviewed
| Python | apache-2.0 | MatthewWilkes/mw4068-packaging,MatthewWilkes/mw4068-packaging,MatthewWilkes/mw4068-packaging,MatthewWilkes/mw4068-packaging | #!/usr/bin/python2.5
#
# Copyright 2008 the Melange 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 applicable... | #!/usr/bin/python2.5
#
# Copyright 2008 the Melange 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 applicable... | <commit_before>#!/usr/bin/python2.5
#
# Copyright 2008 the Melange 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 require... | #!/usr/bin/python2.5
#
# Copyright 2008 the Melange 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 applicable... | #!/usr/bin/python2.5
#
# Copyright 2008 the Melange 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 applicable... | <commit_before>#!/usr/bin/python2.5
#
# Copyright 2008 the Melange 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 require... |
8f59e540cef27ae658f2e01a6a5bf7d765e76ae7 | constance/base.py | constance/base.py | from . import settings, utils
from django.conf import settings as django_settings
class Config(object):
"""
The global config wrapper that handles the backend.
"""
def __init__(self):
super(Config, self).__setattr__('_backend',
utils.import_module_attr(settings.BACKEND)())
def... | from . import settings, utils
from leonardo import settings as django_settings
class Config(object):
"""
The global config wrapper that handles the backend.
"""
def __init__(self):
super(Config, self).__setattr__('_backend',
utils.import_module_attr(settings.BACKEND)())
def ge... | Use leonardo settings instead of django settings. | Use leonardo settings instead of django settings.
| Python | bsd-3-clause | django-leonardo/django-constance,django-leonardo/django-constance | from . import settings, utils
from django.conf import settings as django_settings
class Config(object):
"""
The global config wrapper that handles the backend.
"""
def __init__(self):
super(Config, self).__setattr__('_backend',
utils.import_module_attr(settings.BACKEND)())
def... | from . import settings, utils
from leonardo import settings as django_settings
class Config(object):
"""
The global config wrapper that handles the backend.
"""
def __init__(self):
super(Config, self).__setattr__('_backend',
utils.import_module_attr(settings.BACKEND)())
def ge... | <commit_before>from . import settings, utils
from django.conf import settings as django_settings
class Config(object):
"""
The global config wrapper that handles the backend.
"""
def __init__(self):
super(Config, self).__setattr__('_backend',
utils.import_module_attr(settings.BACKE... | from . import settings, utils
from leonardo import settings as django_settings
class Config(object):
"""
The global config wrapper that handles the backend.
"""
def __init__(self):
super(Config, self).__setattr__('_backend',
utils.import_module_attr(settings.BACKEND)())
def ge... | from . import settings, utils
from django.conf import settings as django_settings
class Config(object):
"""
The global config wrapper that handles the backend.
"""
def __init__(self):
super(Config, self).__setattr__('_backend',
utils.import_module_attr(settings.BACKEND)())
def... | <commit_before>from . import settings, utils
from django.conf import settings as django_settings
class Config(object):
"""
The global config wrapper that handles the backend.
"""
def __init__(self):
super(Config, self).__setattr__('_backend',
utils.import_module_attr(settings.BACKE... |
38216f9d1b875c31b97c80bb9217557e67c92ff3 | spicedham/backend.py | spicedham/backend.py | class BaseBackend(object):
"""
A base class for backend plugins.
"""
def __init__(self, config):
pass
def reset(self):
"""
Resets the training data to a blank slate.
"""
raise NotImplementedError()
def get_key(self, classifier, key, default=None):
... | class BaseBackend(object):
"""
A base class for backend plugins.
"""
def __init__(self, config):
pass
def reset(self):
"""
Resets the training data to a blank slate.
"""
raise NotImplementedError()
def get_key(self, classification_type, classifier, key... | Add classifier type to the base class | Add classifier type to the base class
| Python | mpl-2.0 | mozilla/spicedham,mozilla/spicedham | class BaseBackend(object):
"""
A base class for backend plugins.
"""
def __init__(self, config):
pass
def reset(self):
"""
Resets the training data to a blank slate.
"""
raise NotImplementedError()
def get_key(self, classifier, key, default=None):
... | class BaseBackend(object):
"""
A base class for backend plugins.
"""
def __init__(self, config):
pass
def reset(self):
"""
Resets the training data to a blank slate.
"""
raise NotImplementedError()
def get_key(self, classification_type, classifier, key... | <commit_before>class BaseBackend(object):
"""
A base class for backend plugins.
"""
def __init__(self, config):
pass
def reset(self):
"""
Resets the training data to a blank slate.
"""
raise NotImplementedError()
def get_key(self, classifier, key, defau... | class BaseBackend(object):
"""
A base class for backend plugins.
"""
def __init__(self, config):
pass
def reset(self):
"""
Resets the training data to a blank slate.
"""
raise NotImplementedError()
def get_key(self, classification_type, classifier, key... | class BaseBackend(object):
"""
A base class for backend plugins.
"""
def __init__(self, config):
pass
def reset(self):
"""
Resets the training data to a blank slate.
"""
raise NotImplementedError()
def get_key(self, classifier, key, default=None):
... | <commit_before>class BaseBackend(object):
"""
A base class for backend plugins.
"""
def __init__(self, config):
pass
def reset(self):
"""
Resets the training data to a blank slate.
"""
raise NotImplementedError()
def get_key(self, classifier, key, defau... |
ba2f2d7e53f0ffc58c882d78f1b8bc9a468eb164 | predicates.py | predicates.py | class OneOf:
def __init__(self, members):
self.members = members
def __call__(self, candidate):
if candidate in self.members:
return True
return "%s not in %s" % (candidate, self.members)
def __repr__(self):
return "one of %s" % ', '.join(self.members)
def oneof(*members):
return OneOf(members)
class... | class OneOf:
def __init__(self, members):
self.members = members
def __call__(self, candidate):
if candidate in self.members:
return True
return "%s not in %s" % (candidate, self.members)
def __repr__(self):
return "one of %s" % ', '.join(map(repr, self.members))
def oneof(*members):
return OneOf(memb... | Fix problem rendering oneof() predicate when the members aren't strings | Fix problem rendering oneof() predicate when the members aren't strings
| Python | mit | mrozekma/pytypecheck | class OneOf:
def __init__(self, members):
self.members = members
def __call__(self, candidate):
if candidate in self.members:
return True
return "%s not in %s" % (candidate, self.members)
def __repr__(self):
return "one of %s" % ', '.join(self.members)
def oneof(*members):
return OneOf(members)
class... | class OneOf:
def __init__(self, members):
self.members = members
def __call__(self, candidate):
if candidate in self.members:
return True
return "%s not in %s" % (candidate, self.members)
def __repr__(self):
return "one of %s" % ', '.join(map(repr, self.members))
def oneof(*members):
return OneOf(memb... | <commit_before>class OneOf:
def __init__(self, members):
self.members = members
def __call__(self, candidate):
if candidate in self.members:
return True
return "%s not in %s" % (candidate, self.members)
def __repr__(self):
return "one of %s" % ', '.join(self.members)
def oneof(*members):
return OneOf(... | class OneOf:
def __init__(self, members):
self.members = members
def __call__(self, candidate):
if candidate in self.members:
return True
return "%s not in %s" % (candidate, self.members)
def __repr__(self):
return "one of %s" % ', '.join(map(repr, self.members))
def oneof(*members):
return OneOf(memb... | class OneOf:
def __init__(self, members):
self.members = members
def __call__(self, candidate):
if candidate in self.members:
return True
return "%s not in %s" % (candidate, self.members)
def __repr__(self):
return "one of %s" % ', '.join(self.members)
def oneof(*members):
return OneOf(members)
class... | <commit_before>class OneOf:
def __init__(self, members):
self.members = members
def __call__(self, candidate):
if candidate in self.members:
return True
return "%s not in %s" % (candidate, self.members)
def __repr__(self):
return "one of %s" % ', '.join(self.members)
def oneof(*members):
return OneOf(... |
7955e777d6ba3bbbd104bd3916f131ab7fa8f8b5 | asyncmongo/__init__.py | asyncmongo/__init__.py | #!/bin/env python
#
# Copyright 2010 bit.ly
#
# 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... | #!/bin/env python
#
# Copyright 2010 bit.ly
#
# 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... | Support Sort Order For TEXT Index | Support Sort Order For TEXT Index
| Python | apache-2.0 | RealGeeks/asyncmongo | #!/bin/env python
#
# Copyright 2010 bit.ly
#
# 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... | #!/bin/env python
#
# Copyright 2010 bit.ly
#
# 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... | <commit_before>#!/bin/env python
#
# Copyright 2010 bit.ly
#
# 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 applicabl... | #!/bin/env python
#
# Copyright 2010 bit.ly
#
# 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... | #!/bin/env python
#
# Copyright 2010 bit.ly
#
# 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... | <commit_before>#!/bin/env python
#
# Copyright 2010 bit.ly
#
# 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 applicabl... |
26efd98c88a627f76ebd0865053353eb7a30e3bb | .glerbl/repo_conf.py | .glerbl/repo_conf.py | checks = {
'pre-commit': [
# BEFORE_COMMIT in the root of the working tree can be used as
# reminder to do something before the next commit.
"no_before_commit",
# We only allow ASCII filenames.
"no_non_ascii_filenames",
# We don't allow trailing whitespaces.
... | import sys
import os
dirname = os.path.dirname(__file__)
python_path = os.path.join(os.path.dirname(dirname), "selenium_test", "lib")
if "PYTHONPATH" not in os.environ:
os.environ["PYTHONPATH"] = python_path
else:
os.environ["PYTHONPATH"] = python_path + ":" + os.environ["PYTHONPATH"]
checks = {
'pre-com... | Modify PYTHONPATH so that pylint is able to find wedutil. | Modify PYTHONPATH so that pylint is able to find wedutil.
| Python | mpl-2.0 | mangalam-research/wed,slattery/wed,lddubeau/wed,slattery/wed,mangalam-research/wed,slattery/wed,mangalam-research/wed,lddubeau/wed,mangalam-research/wed,lddubeau/wed,lddubeau/wed | checks = {
'pre-commit': [
# BEFORE_COMMIT in the root of the working tree can be used as
# reminder to do something before the next commit.
"no_before_commit",
# We only allow ASCII filenames.
"no_non_ascii_filenames",
# We don't allow trailing whitespaces.
... | import sys
import os
dirname = os.path.dirname(__file__)
python_path = os.path.join(os.path.dirname(dirname), "selenium_test", "lib")
if "PYTHONPATH" not in os.environ:
os.environ["PYTHONPATH"] = python_path
else:
os.environ["PYTHONPATH"] = python_path + ":" + os.environ["PYTHONPATH"]
checks = {
'pre-com... | <commit_before>checks = {
'pre-commit': [
# BEFORE_COMMIT in the root of the working tree can be used as
# reminder to do something before the next commit.
"no_before_commit",
# We only allow ASCII filenames.
"no_non_ascii_filenames",
# We don't allow trailing white... | import sys
import os
dirname = os.path.dirname(__file__)
python_path = os.path.join(os.path.dirname(dirname), "selenium_test", "lib")
if "PYTHONPATH" not in os.environ:
os.environ["PYTHONPATH"] = python_path
else:
os.environ["PYTHONPATH"] = python_path + ":" + os.environ["PYTHONPATH"]
checks = {
'pre-com... | checks = {
'pre-commit': [
# BEFORE_COMMIT in the root of the working tree can be used as
# reminder to do something before the next commit.
"no_before_commit",
# We only allow ASCII filenames.
"no_non_ascii_filenames",
# We don't allow trailing whitespaces.
... | <commit_before>checks = {
'pre-commit': [
# BEFORE_COMMIT in the root of the working tree can be used as
# reminder to do something before the next commit.
"no_before_commit",
# We only allow ASCII filenames.
"no_non_ascii_filenames",
# We don't allow trailing white... |
9952a0e7dce1dbe39921c42ae938f890d88fcc10 | lib/rpnpy/__init__.py | lib/rpnpy/__init__.py | import sys
import ctypes as _ct
if sys.version_info < (3,):
integer_types = (int, long,)
range = xrange
else:
integer_types = (int,)
long = int
# xrange = range
C_WCHAR2CHAR = lambda x: bytes(str(x).encode('ascii'))
C_WCHAR2CHAR.__doc__ = 'Convert str to bytes'
C_CHAR2WCHAR = lambda x: str(x.deco... | import sys
import ctypes as _ct
if sys.version_info < (3,):
integer_types = (int, long,)
range = xrange
else:
integer_types = (int,)
long = int
range = range
C_WCHAR2CHAR = lambda x: bytes(str(x).encode('ascii'))
C_WCHAR2CHAR.__doc__ = 'Convert str to bytes'
C_CHAR2WCHAR = lambda x: str(x.decode(... | Add missing rpnpy.range reference for Python 3. | Add missing rpnpy.range reference for Python 3.
Signed-off-by: Stephane_Chamberland <1054841519c328088796c1f3c72c14f95c4efe35@science.gc.ca>
(cherry picked from commit 23860277c006d9635dedcaaa5e065c7aad199d8c)
| Python | lgpl-2.1 | meteokid/python-rpn,meteokid/python-rpn,meteokid/python-rpn,meteokid/python-rpn | import sys
import ctypes as _ct
if sys.version_info < (3,):
integer_types = (int, long,)
range = xrange
else:
integer_types = (int,)
long = int
# xrange = range
C_WCHAR2CHAR = lambda x: bytes(str(x).encode('ascii'))
C_WCHAR2CHAR.__doc__ = 'Convert str to bytes'
C_CHAR2WCHAR = lambda x: str(x.deco... | import sys
import ctypes as _ct
if sys.version_info < (3,):
integer_types = (int, long,)
range = xrange
else:
integer_types = (int,)
long = int
range = range
C_WCHAR2CHAR = lambda x: bytes(str(x).encode('ascii'))
C_WCHAR2CHAR.__doc__ = 'Convert str to bytes'
C_CHAR2WCHAR = lambda x: str(x.decode(... | <commit_before>import sys
import ctypes as _ct
if sys.version_info < (3,):
integer_types = (int, long,)
range = xrange
else:
integer_types = (int,)
long = int
# xrange = range
C_WCHAR2CHAR = lambda x: bytes(str(x).encode('ascii'))
C_WCHAR2CHAR.__doc__ = 'Convert str to bytes'
C_CHAR2WCHAR = lambd... | import sys
import ctypes as _ct
if sys.version_info < (3,):
integer_types = (int, long,)
range = xrange
else:
integer_types = (int,)
long = int
range = range
C_WCHAR2CHAR = lambda x: bytes(str(x).encode('ascii'))
C_WCHAR2CHAR.__doc__ = 'Convert str to bytes'
C_CHAR2WCHAR = lambda x: str(x.decode(... | import sys
import ctypes as _ct
if sys.version_info < (3,):
integer_types = (int, long,)
range = xrange
else:
integer_types = (int,)
long = int
# xrange = range
C_WCHAR2CHAR = lambda x: bytes(str(x).encode('ascii'))
C_WCHAR2CHAR.__doc__ = 'Convert str to bytes'
C_CHAR2WCHAR = lambda x: str(x.deco... | <commit_before>import sys
import ctypes as _ct
if sys.version_info < (3,):
integer_types = (int, long,)
range = xrange
else:
integer_types = (int,)
long = int
# xrange = range
C_WCHAR2CHAR = lambda x: bytes(str(x).encode('ascii'))
C_WCHAR2CHAR.__doc__ = 'Convert str to bytes'
C_CHAR2WCHAR = lambd... |
017d099ee598da94d1ca6118d6c66b006de7b1c1 | names.py | names.py | import re
# A regular expression is a string like what you see below between the quote
# marks, and the ``re`` module interprets it as a pattern. Each regular
# expression describes a small program that takes another string as input and
# returns information about that string. See
# http://docs.python.org/library/re.... | import re
# A regular expression is a string like what you see below between the quote
# marks, and the ``re`` module interprets it as a pattern. Each regular
# expression describes a small program that takes another string as input and
# returns information about that string. See
# http://docs.python.org/library/re.... | Remove last reference to generators | Remove last reference to generators
| Python | unlicense | wkschwartz/first-last | import re
# A regular expression is a string like what you see below between the quote
# marks, and the ``re`` module interprets it as a pattern. Each regular
# expression describes a small program that takes another string as input and
# returns information about that string. See
# http://docs.python.org/library/re.... | import re
# A regular expression is a string like what you see below between the quote
# marks, and the ``re`` module interprets it as a pattern. Each regular
# expression describes a small program that takes another string as input and
# returns information about that string. See
# http://docs.python.org/library/re.... | <commit_before>import re
# A regular expression is a string like what you see below between the quote
# marks, and the ``re`` module interprets it as a pattern. Each regular
# expression describes a small program that takes another string as input and
# returns information about that string. See
# http://docs.python.... | import re
# A regular expression is a string like what you see below between the quote
# marks, and the ``re`` module interprets it as a pattern. Each regular
# expression describes a small program that takes another string as input and
# returns information about that string. See
# http://docs.python.org/library/re.... | import re
# A regular expression is a string like what you see below between the quote
# marks, and the ``re`` module interprets it as a pattern. Each regular
# expression describes a small program that takes another string as input and
# returns information about that string. See
# http://docs.python.org/library/re.... | <commit_before>import re
# A regular expression is a string like what you see below between the quote
# marks, and the ``re`` module interprets it as a pattern. Each regular
# expression describes a small program that takes another string as input and
# returns information about that string. See
# http://docs.python.... |
7bd1a1db924ffbe23e66e178e0044229f3d207cd | navpy.py | navpy.py | import numpy as np
def eul2quat(rotAngle1,rotAngle2,rotAngle3,
input_unit='rad',rotation_sequence='ZYX'):
"""
"""
"""
# INPUT CHECK
rotAngle1 = np.array(rotAngle1)
rotAngle2 = np.array(rotAngle2)
rotAngle3 = np.array(rotAngle3)
if(len(rotAngle1.shape)==0):
r... | Add eul2quat function. Currently only accept scalar. Need to do input checking. | Add eul2quat function. Currently only accept scalar. Need to do input checking.
| Python | bsd-3-clause | hamid-m/NavPy,adhika/NavPy,NavPy/NavPy | Add eul2quat function. Currently only accept scalar. Need to do input checking. | import numpy as np
def eul2quat(rotAngle1,rotAngle2,rotAngle3,
input_unit='rad',rotation_sequence='ZYX'):
"""
"""
"""
# INPUT CHECK
rotAngle1 = np.array(rotAngle1)
rotAngle2 = np.array(rotAngle2)
rotAngle3 = np.array(rotAngle3)
if(len(rotAngle1.shape)==0):
r... | <commit_before><commit_msg>Add eul2quat function. Currently only accept scalar. Need to do input checking.<commit_after> | import numpy as np
def eul2quat(rotAngle1,rotAngle2,rotAngle3,
input_unit='rad',rotation_sequence='ZYX'):
"""
"""
"""
# INPUT CHECK
rotAngle1 = np.array(rotAngle1)
rotAngle2 = np.array(rotAngle2)
rotAngle3 = np.array(rotAngle3)
if(len(rotAngle1.shape)==0):
r... | Add eul2quat function. Currently only accept scalar. Need to do input checking.import numpy as np
def eul2quat(rotAngle1,rotAngle2,rotAngle3,
input_unit='rad',rotation_sequence='ZYX'):
"""
"""
"""
# INPUT CHECK
rotAngle1 = np.array(rotAngle1)
rotAngle2 = np.array(rotAngle2)... | <commit_before><commit_msg>Add eul2quat function. Currently only accept scalar. Need to do input checking.<commit_after>import numpy as np
def eul2quat(rotAngle1,rotAngle2,rotAngle3,
input_unit='rad',rotation_sequence='ZYX'):
"""
"""
"""
# INPUT CHECK
rotAngle1 = np.array(rotAn... | |
7608d0e89781f70fcb49e7dc3ee5cd57a094f18c | rx/__init__.py | rx/__init__.py | from .observable import Observable
from .anonymousobservable import AnonymousObservable
from .observer import Observer
from . import checkedobserver
from . import linq
from . import backpressure
try:
from asyncio import Future
except ImportError:
Future = None
# Rx configuration dictionary
config = {
"Fut... | from threading import Lock
from .observable import Observable
from .anonymousobservable import AnonymousObservable
from .observer import Observer
from . import checkedobserver
from . import linq
from . import backpressure
try:
from asyncio import Future
except ImportError:
Future = None
# Rx configuration di... | Make it possible to set custom Lock | Make it possible to set custom Lock
| Python | mit | ReactiveX/RxPY,ReactiveX/RxPY,dbrattli/RxPY | from .observable import Observable
from .anonymousobservable import AnonymousObservable
from .observer import Observer
from . import checkedobserver
from . import linq
from . import backpressure
try:
from asyncio import Future
except ImportError:
Future = None
# Rx configuration dictionary
config = {
"Fut... | from threading import Lock
from .observable import Observable
from .anonymousobservable import AnonymousObservable
from .observer import Observer
from . import checkedobserver
from . import linq
from . import backpressure
try:
from asyncio import Future
except ImportError:
Future = None
# Rx configuration di... | <commit_before>from .observable import Observable
from .anonymousobservable import AnonymousObservable
from .observer import Observer
from . import checkedobserver
from . import linq
from . import backpressure
try:
from asyncio import Future
except ImportError:
Future = None
# Rx configuration dictionary
conf... | from threading import Lock
from .observable import Observable
from .anonymousobservable import AnonymousObservable
from .observer import Observer
from . import checkedobserver
from . import linq
from . import backpressure
try:
from asyncio import Future
except ImportError:
Future = None
# Rx configuration di... | from .observable import Observable
from .anonymousobservable import AnonymousObservable
from .observer import Observer
from . import checkedobserver
from . import linq
from . import backpressure
try:
from asyncio import Future
except ImportError:
Future = None
# Rx configuration dictionary
config = {
"Fut... | <commit_before>from .observable import Observable
from .anonymousobservable import AnonymousObservable
from .observer import Observer
from . import checkedobserver
from . import linq
from . import backpressure
try:
from asyncio import Future
except ImportError:
Future = None
# Rx configuration dictionary
conf... |
6f918da14582b31586c6fd9ef60259be9b05b314 | filter_plugins/to_ini.py | filter_plugins/to_ini.py | def to_ini(databases = []):
"""
Custom ansible filter to print out pgbouncer database connection settings
from a list of variable objects.
"""
s = ''
for db in databases:
for alias, config in db.iteritems():
s = s + str(alias) + ' = '
for key, value in config.iter... | def to_ini(databases = []):
"""
Custom ansible filter to print out pgbouncer database connection settings
from a list of variable objects.
"""
s = ''
for db in databases:
for alias, config in db.items():
s = s + str(alias) + ' = '
for key, value in config.items():... | Change iteritems to items for changes made in python 3 | Change iteritems to items for changes made in python 3
| Python | mit | jradtilbrook/ansible-role-pgbouncer | def to_ini(databases = []):
"""
Custom ansible filter to print out pgbouncer database connection settings
from a list of variable objects.
"""
s = ''
for db in databases:
for alias, config in db.iteritems():
s = s + str(alias) + ' = '
for key, value in config.iter... | def to_ini(databases = []):
"""
Custom ansible filter to print out pgbouncer database connection settings
from a list of variable objects.
"""
s = ''
for db in databases:
for alias, config in db.items():
s = s + str(alias) + ' = '
for key, value in config.items():... | <commit_before>def to_ini(databases = []):
"""
Custom ansible filter to print out pgbouncer database connection settings
from a list of variable objects.
"""
s = ''
for db in databases:
for alias, config in db.iteritems():
s = s + str(alias) + ' = '
for key, value... | def to_ini(databases = []):
"""
Custom ansible filter to print out pgbouncer database connection settings
from a list of variable objects.
"""
s = ''
for db in databases:
for alias, config in db.items():
s = s + str(alias) + ' = '
for key, value in config.items():... | def to_ini(databases = []):
"""
Custom ansible filter to print out pgbouncer database connection settings
from a list of variable objects.
"""
s = ''
for db in databases:
for alias, config in db.iteritems():
s = s + str(alias) + ' = '
for key, value in config.iter... | <commit_before>def to_ini(databases = []):
"""
Custom ansible filter to print out pgbouncer database connection settings
from a list of variable objects.
"""
s = ''
for db in databases:
for alias, config in db.iteritems():
s = s + str(alias) + ' = '
for key, value... |
0353b9876967c0eb2fc742e8cbbd7a085a764312 | bio_hansel/__init__.py | bio_hansel/__init__.py | # -*- coding: utf-8 -*-
__version__ = '2.1.0'
program_name = 'bio_hansel'
program_summary = 'Subtype microbial genomes using SNV targeting k-mer subtyping schemes.'
program_desc = program_summary + '''
Includes schemes for Salmonella enterica spp. enterica serovar Heidelberg and Enteritidis subtyping.
Developed by Gen... | # -*- coding: utf-8 -*-
__version__ = '2.1.1'
program_name = 'bio_hansel'
program_summary = 'Subtype microbial genomes using SNV targeting k-mer subtyping schemes.'
program_desc = program_summary + '''
Includes schemes for Salmonella enterica spp. enterica serovar Heidelberg and Enteritidis subtyping.
Developed by Gen... | Patch version bump to v2.1.1 | Patch version bump to v2.1.1 | Python | apache-2.0 | phac-nml/bio_hansel | # -*- coding: utf-8 -*-
__version__ = '2.1.0'
program_name = 'bio_hansel'
program_summary = 'Subtype microbial genomes using SNV targeting k-mer subtyping schemes.'
program_desc = program_summary + '''
Includes schemes for Salmonella enterica spp. enterica serovar Heidelberg and Enteritidis subtyping.
Developed by Gen... | # -*- coding: utf-8 -*-
__version__ = '2.1.1'
program_name = 'bio_hansel'
program_summary = 'Subtype microbial genomes using SNV targeting k-mer subtyping schemes.'
program_desc = program_summary + '''
Includes schemes for Salmonella enterica spp. enterica serovar Heidelberg and Enteritidis subtyping.
Developed by Gen... | <commit_before># -*- coding: utf-8 -*-
__version__ = '2.1.0'
program_name = 'bio_hansel'
program_summary = 'Subtype microbial genomes using SNV targeting k-mer subtyping schemes.'
program_desc = program_summary + '''
Includes schemes for Salmonella enterica spp. enterica serovar Heidelberg and Enteritidis subtyping.
D... | # -*- coding: utf-8 -*-
__version__ = '2.1.1'
program_name = 'bio_hansel'
program_summary = 'Subtype microbial genomes using SNV targeting k-mer subtyping schemes.'
program_desc = program_summary + '''
Includes schemes for Salmonella enterica spp. enterica serovar Heidelberg and Enteritidis subtyping.
Developed by Gen... | # -*- coding: utf-8 -*-
__version__ = '2.1.0'
program_name = 'bio_hansel'
program_summary = 'Subtype microbial genomes using SNV targeting k-mer subtyping schemes.'
program_desc = program_summary + '''
Includes schemes for Salmonella enterica spp. enterica serovar Heidelberg and Enteritidis subtyping.
Developed by Gen... | <commit_before># -*- coding: utf-8 -*-
__version__ = '2.1.0'
program_name = 'bio_hansel'
program_summary = 'Subtype microbial genomes using SNV targeting k-mer subtyping schemes.'
program_desc = program_summary + '''
Includes schemes for Salmonella enterica spp. enterica serovar Heidelberg and Enteritidis subtyping.
D... |
b200dec97f5aca7653a7ca219159d1f4acee15b1 | dsub/_dsub_version.py | dsub/_dsub_version.py | # Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | # Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | Update dsub version to 0.3.5.dev0 | Update dsub version to 0.3.5.dev0
PiperOrigin-RevId: 272470402
| Python | apache-2.0 | DataBiosphere/dsub,DataBiosphere/dsub | # Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | # Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | <commit_before># Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... | # Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | # Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | <commit_before># Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... |
ca707d8e62a896a4702121faee02ff8d2491a842 | grep_redone/grep/grep.py | grep_redone/grep/grep.py | import os
class Searcher(object):
"""Searches files in dirs for specified string."""
def __init__(self, currentdir, string_to_search_for):
self.currentdir = currentdir
self.string_to_search_for = string_to_search_for
self.get_files_in_currentdir()
def search_files_in_d... | import os
from clint.textui import colored
class Searcher(object):
"""Searches files in dirs for specified string."""
def __init__(self, currentdir, string_to_search_for):
self.currentdir = currentdir
self.string_to_search_for = string_to_search_for
self.get_files_in_currentdi... | Add basic output of found lines | Add basic output of found lines
| Python | bsd-2-clause | florianbegusch/simple_grep,florianbegusch/simple_grep | import os
class Searcher(object):
"""Searches files in dirs for specified string."""
def __init__(self, currentdir, string_to_search_for):
self.currentdir = currentdir
self.string_to_search_for = string_to_search_for
self.get_files_in_currentdir()
def search_files_in_d... | import os
from clint.textui import colored
class Searcher(object):
"""Searches files in dirs for specified string."""
def __init__(self, currentdir, string_to_search_for):
self.currentdir = currentdir
self.string_to_search_for = string_to_search_for
self.get_files_in_currentdi... | <commit_before>import os
class Searcher(object):
"""Searches files in dirs for specified string."""
def __init__(self, currentdir, string_to_search_for):
self.currentdir = currentdir
self.string_to_search_for = string_to_search_for
self.get_files_in_currentdir()
def se... | import os
from clint.textui import colored
class Searcher(object):
"""Searches files in dirs for specified string."""
def __init__(self, currentdir, string_to_search_for):
self.currentdir = currentdir
self.string_to_search_for = string_to_search_for
self.get_files_in_currentdi... | import os
class Searcher(object):
"""Searches files in dirs for specified string."""
def __init__(self, currentdir, string_to_search_for):
self.currentdir = currentdir
self.string_to_search_for = string_to_search_for
self.get_files_in_currentdir()
def search_files_in_d... | <commit_before>import os
class Searcher(object):
"""Searches files in dirs for specified string."""
def __init__(self, currentdir, string_to_search_for):
self.currentdir = currentdir
self.string_to_search_for = string_to_search_for
self.get_files_in_currentdir()
def se... |
0aa61fb32df9ae3ef9c465f4b246edf04897cd14 | staticfiles/views.py | staticfiles/views.py | """
Views and functions for serving static files. These are only to be used during
development, and SHOULD NOT be used in a production setting.
"""
from django.views.static import serve as django_serve
from staticfiles.resolvers import resolve
def serve(request, path, show_indexes=False):
"""
Serve static fi... | """
Views and functions for serving static files. These are only to be used during
development, and SHOULD NOT be used in a production setting.
"""
from django import http
from django.views.static import serve as django_serve
from staticfiles.resolvers import resolve
def serve(request, path, show_indexes=False):
... | Make the staticfiles serve view raise a 404 for paths which could not be resolved. | Make the staticfiles serve view raise a 404 for paths which could not be resolved.
| Python | bsd-3-clause | tusbar/django-staticfiles,jezdez-archive/django-staticfiles,tusbar/django-staticfiles | """
Views and functions for serving static files. These are only to be used during
development, and SHOULD NOT be used in a production setting.
"""
from django.views.static import serve as django_serve
from staticfiles.resolvers import resolve
def serve(request, path, show_indexes=False):
"""
Serve static fi... | """
Views and functions for serving static files. These are only to be used during
development, and SHOULD NOT be used in a production setting.
"""
from django import http
from django.views.static import serve as django_serve
from staticfiles.resolvers import resolve
def serve(request, path, show_indexes=False):
... | <commit_before>"""
Views and functions for serving static files. These are only to be used during
development, and SHOULD NOT be used in a production setting.
"""
from django.views.static import serve as django_serve
from staticfiles.resolvers import resolve
def serve(request, path, show_indexes=False):
"""
... | """
Views and functions for serving static files. These are only to be used during
development, and SHOULD NOT be used in a production setting.
"""
from django import http
from django.views.static import serve as django_serve
from staticfiles.resolvers import resolve
def serve(request, path, show_indexes=False):
... | """
Views and functions for serving static files. These are only to be used during
development, and SHOULD NOT be used in a production setting.
"""
from django.views.static import serve as django_serve
from staticfiles.resolvers import resolve
def serve(request, path, show_indexes=False):
"""
Serve static fi... | <commit_before>"""
Views and functions for serving static files. These are only to be used during
development, and SHOULD NOT be used in a production setting.
"""
from django.views.static import serve as django_serve
from staticfiles.resolvers import resolve
def serve(request, path, show_indexes=False):
"""
... |
e640ed3770cd3c3dbab90866a77449d17a633704 | wcsaxes/wcs_utils.py | wcsaxes/wcs_utils.py | # Adapted from Astropy core package until 1.0 is released
#
# Copyright (c) 2011-2014, Astropy Developers
#
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code mus... | import numpy as np
| Remove old LICENSE that was there for astropy-ported code | Remove old LICENSE that was there for astropy-ported code
| Python | bsd-3-clause | stargaser/astropy,stargaser/astropy,saimn/astropy,astropy/astropy,DougBurke/astropy,aleksandr-bakanov/astropy,pllim/astropy,mhvk/astropy,AustereCuriosity/astropy,StuartLittlefair/astropy,bsipocz/astropy,tbabej/astropy,StuartLittlefair/astropy,AustereCuriosity/astropy,larrybradley/astropy,larrybradley/astropy,joergdietr... | # Adapted from Astropy core package until 1.0 is released
#
# Copyright (c) 2011-2014, Astropy Developers
#
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code mus... | import numpy as np
| <commit_before># Adapted from Astropy core package until 1.0 is released
#
# Copyright (c) 2011-2014, Astropy Developers
#
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of ... | import numpy as np
| # Adapted from Astropy core package until 1.0 is released
#
# Copyright (c) 2011-2014, Astropy Developers
#
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code mus... | <commit_before># Adapted from Astropy core package until 1.0 is released
#
# Copyright (c) 2011-2014, Astropy Developers
#
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of ... |
6ce216f449fbd7da5f8eea6785ce71542caa2fcd | mappyfile/__init__.py | mappyfile/__init__.py | import logging
import pkg_resources
import sys
from types import ModuleType
# allow high-level functions to be accessed directly from the mappyfile module
from mappyfile.utils import load, loads, find, findall, dumps, write
__version__ = "0.6.2"
__all__ = ['load', 'loads', 'find', 'findall', 'dumps', 'write']
plugi... | import logging
import pkg_resources
import sys
from types import ModuleType
# allow high-level functions to be accessed directly from the mappyfile module
from mappyfile.utils import load, loads, find, findall, dumps, write
__version__ = "0.6.2"
__all__ = ['load', 'loads', 'find', 'findall', 'dumps', 'dump', 'write']... | Add new dump public method | Add new dump public method
| Python | mit | geographika/mappyfile,geographika/mappyfile | import logging
import pkg_resources
import sys
from types import ModuleType
# allow high-level functions to be accessed directly from the mappyfile module
from mappyfile.utils import load, loads, find, findall, dumps, write
__version__ = "0.6.2"
__all__ = ['load', 'loads', 'find', 'findall', 'dumps', 'write']
plugi... | import logging
import pkg_resources
import sys
from types import ModuleType
# allow high-level functions to be accessed directly from the mappyfile module
from mappyfile.utils import load, loads, find, findall, dumps, write
__version__ = "0.6.2"
__all__ = ['load', 'loads', 'find', 'findall', 'dumps', 'dump', 'write']... | <commit_before>import logging
import pkg_resources
import sys
from types import ModuleType
# allow high-level functions to be accessed directly from the mappyfile module
from mappyfile.utils import load, loads, find, findall, dumps, write
__version__ = "0.6.2"
__all__ = ['load', 'loads', 'find', 'findall', 'dumps', '... | import logging
import pkg_resources
import sys
from types import ModuleType
# allow high-level functions to be accessed directly from the mappyfile module
from mappyfile.utils import load, loads, find, findall, dumps, write
__version__ = "0.6.2"
__all__ = ['load', 'loads', 'find', 'findall', 'dumps', 'dump', 'write']... | import logging
import pkg_resources
import sys
from types import ModuleType
# allow high-level functions to be accessed directly from the mappyfile module
from mappyfile.utils import load, loads, find, findall, dumps, write
__version__ = "0.6.2"
__all__ = ['load', 'loads', 'find', 'findall', 'dumps', 'write']
plugi... | <commit_before>import logging
import pkg_resources
import sys
from types import ModuleType
# allow high-level functions to be accessed directly from the mappyfile module
from mappyfile.utils import load, loads, find, findall, dumps, write
__version__ = "0.6.2"
__all__ = ['load', 'loads', 'find', 'findall', 'dumps', '... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.