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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7f1c05f23533b9b84eb983e78160ff31ce5d4ab6 | perpendicular-least-squares.py | perpendicular-least-squares.py | __author__ = 'Jacob Bieker'
import os, sys
import numpy
from multiprocessing import Pool
from astropy.io import fits
def line_solve():
# TODO: Find the Least Squares for a line
return 0
def plane_solve():
# TODO: Find the least Squares for a plane
return 0
def read_clusters(*args):
# TODO: Re... | __author__ = 'Jacob Bieker'
import os, sys, random
import numpy
from multiprocessing import Pool
from astropy.io import fits
def random_number(number, seed):
if seed > 0:
seed = -seed
random.seed(a=seed)
for i in range(number):
rand_num = random.randint(0,1)
def line_solve():
# TODO:... | Add Random number with seed | Add Random number with seed
| Python | mit | jacobbieker/GCP-perpendicular-least-squares,jacobbieker/GCP-perpendicular-least-squares,jacobbieker/GCP-perpendicular-least-squares | __author__ = 'Jacob Bieker'
import os, sys
import numpy
from multiprocessing import Pool
from astropy.io import fits
def line_solve():
# TODO: Find the Least Squares for a line
return 0
def plane_solve():
# TODO: Find the least Squares for a plane
return 0
def read_clusters(*args):
# TODO: Re... | __author__ = 'Jacob Bieker'
import os, sys, random
import numpy
from multiprocessing import Pool
from astropy.io import fits
def random_number(number, seed):
if seed > 0:
seed = -seed
random.seed(a=seed)
for i in range(number):
rand_num = random.randint(0,1)
def line_solve():
# TODO:... | <commit_before>__author__ = 'Jacob Bieker'
import os, sys
import numpy
from multiprocessing import Pool
from astropy.io import fits
def line_solve():
# TODO: Find the Least Squares for a line
return 0
def plane_solve():
# TODO: Find the least Squares for a plane
return 0
def read_clusters(*args):... | __author__ = 'Jacob Bieker'
import os, sys, random
import numpy
from multiprocessing import Pool
from astropy.io import fits
def random_number(number, seed):
if seed > 0:
seed = -seed
random.seed(a=seed)
for i in range(number):
rand_num = random.randint(0,1)
def line_solve():
# TODO:... | __author__ = 'Jacob Bieker'
import os, sys
import numpy
from multiprocessing import Pool
from astropy.io import fits
def line_solve():
# TODO: Find the Least Squares for a line
return 0
def plane_solve():
# TODO: Find the least Squares for a plane
return 0
def read_clusters(*args):
# TODO: Re... | <commit_before>__author__ = 'Jacob Bieker'
import os, sys
import numpy
from multiprocessing import Pool
from astropy.io import fits
def line_solve():
# TODO: Find the Least Squares for a line
return 0
def plane_solve():
# TODO: Find the least Squares for a plane
return 0
def read_clusters(*args):... |
756239f128f55481bb26e11fb21a4fe1fc5febb8 | thumbnails/tests/storage.py | thumbnails/tests/storage.py | import tempfile
import shutil
from django.core.files.storage import FileSystemStorage
"""
Temporary Storage class for test. Copied from Smiley Chris' Easy Thumbnails test package
https://github.com/SmileyChris/easy-thumbnails/blob/master/easy_thumbnails/test.py
"""
class TemporaryStorage(FileSystemStorage):
"""
... | import os
import shutil
import tempfile
from django.core.files.storage import FileSystemStorage
"""
Temporary Storage class for test. Copied from Smiley Chris' Easy Thumbnails test package
https://github.com/SmileyChris/easy-thumbnails/blob/master/easy_thumbnails/test.py
"""
class TemporaryStorage(FileSystemStorage):... | Make TemporaryStorage backend's location less random. | Make TemporaryStorage backend's location less random.
| Python | mit | ui/django-thumbnails | import tempfile
import shutil
from django.core.files.storage import FileSystemStorage
"""
Temporary Storage class for test. Copied from Smiley Chris' Easy Thumbnails test package
https://github.com/SmileyChris/easy-thumbnails/blob/master/easy_thumbnails/test.py
"""
class TemporaryStorage(FileSystemStorage):
"""
... | import os
import shutil
import tempfile
from django.core.files.storage import FileSystemStorage
"""
Temporary Storage class for test. Copied from Smiley Chris' Easy Thumbnails test package
https://github.com/SmileyChris/easy-thumbnails/blob/master/easy_thumbnails/test.py
"""
class TemporaryStorage(FileSystemStorage):... | <commit_before>import tempfile
import shutil
from django.core.files.storage import FileSystemStorage
"""
Temporary Storage class for test. Copied from Smiley Chris' Easy Thumbnails test package
https://github.com/SmileyChris/easy-thumbnails/blob/master/easy_thumbnails/test.py
"""
class TemporaryStorage(FileSystemStor... | import os
import shutil
import tempfile
from django.core.files.storage import FileSystemStorage
"""
Temporary Storage class for test. Copied from Smiley Chris' Easy Thumbnails test package
https://github.com/SmileyChris/easy-thumbnails/blob/master/easy_thumbnails/test.py
"""
class TemporaryStorage(FileSystemStorage):... | import tempfile
import shutil
from django.core.files.storage import FileSystemStorage
"""
Temporary Storage class for test. Copied from Smiley Chris' Easy Thumbnails test package
https://github.com/SmileyChris/easy-thumbnails/blob/master/easy_thumbnails/test.py
"""
class TemporaryStorage(FileSystemStorage):
"""
... | <commit_before>import tempfile
import shutil
from django.core.files.storage import FileSystemStorage
"""
Temporary Storage class for test. Copied from Smiley Chris' Easy Thumbnails test package
https://github.com/SmileyChris/easy-thumbnails/blob/master/easy_thumbnails/test.py
"""
class TemporaryStorage(FileSystemStor... |
234b3f157295baedca91895d2a2cb9e6f8355e2e | pyim/tools/annotate/main.py | pyim/tools/annotate/main.py | import sys
import argparse
import pandas as pd
from pyim.tools.annotate.rbm import RbmAnnotator
ANNOTATORS = {
'rbm': RbmAnnotator
}
def main():
# Setup main argument parser and annotator specific sub-parsers.
parser = argparse.ArgumentParser()
subparsers = parser.add_subparsers(help='sub-command h... | import sys
import argparse
import pandas as pd
from pyim.tools.annotate.rbm import RbmAnnotator
ANNOTATORS = {
'rbm': RbmAnnotator
}
def main():
# Setup main argument parser and annotator specific sub-parsers.
parser = argparse.ArgumentParser()
subparsers = parser.add_subparsers(help='Annotator to ... | Add help description for annotator. | Add help description for annotator.
| Python | mit | jrderuiter/pyim,jrderuiter/pyim | import sys
import argparse
import pandas as pd
from pyim.tools.annotate.rbm import RbmAnnotator
ANNOTATORS = {
'rbm': RbmAnnotator
}
def main():
# Setup main argument parser and annotator specific sub-parsers.
parser = argparse.ArgumentParser()
subparsers = parser.add_subparsers(help='sub-command h... | import sys
import argparse
import pandas as pd
from pyim.tools.annotate.rbm import RbmAnnotator
ANNOTATORS = {
'rbm': RbmAnnotator
}
def main():
# Setup main argument parser and annotator specific sub-parsers.
parser = argparse.ArgumentParser()
subparsers = parser.add_subparsers(help='Annotator to ... | <commit_before>import sys
import argparse
import pandas as pd
from pyim.tools.annotate.rbm import RbmAnnotator
ANNOTATORS = {
'rbm': RbmAnnotator
}
def main():
# Setup main argument parser and annotator specific sub-parsers.
parser = argparse.ArgumentParser()
subparsers = parser.add_subparsers(help... | import sys
import argparse
import pandas as pd
from pyim.tools.annotate.rbm import RbmAnnotator
ANNOTATORS = {
'rbm': RbmAnnotator
}
def main():
# Setup main argument parser and annotator specific sub-parsers.
parser = argparse.ArgumentParser()
subparsers = parser.add_subparsers(help='Annotator to ... | import sys
import argparse
import pandas as pd
from pyim.tools.annotate.rbm import RbmAnnotator
ANNOTATORS = {
'rbm': RbmAnnotator
}
def main():
# Setup main argument parser and annotator specific sub-parsers.
parser = argparse.ArgumentParser()
subparsers = parser.add_subparsers(help='sub-command h... | <commit_before>import sys
import argparse
import pandas as pd
from pyim.tools.annotate.rbm import RbmAnnotator
ANNOTATORS = {
'rbm': RbmAnnotator
}
def main():
# Setup main argument parser and annotator specific sub-parsers.
parser = argparse.ArgumentParser()
subparsers = parser.add_subparsers(help... |
9b0571623a0017f96f9945fe263cd302faa11c2e | sparkback/__init__.py | sparkback/__init__.py |
# -*- coding: utf-8 -*-
import sys
ticks = ('▁', '▂', '▃', '▄', '▅', '▆', '▇', '█')
def scale_data(d):
data_range = max(d) - min(d)
divider = data_range / (len(ticks) - 1)
min_value = min(d)
scaled = [int(abs(round((i - min_value) / divider))) for i in d]
return scaled
def print_ansi_spark(d)... | # -*- coding: utf-8 -*-
from __future__ import division
import argparse
ticks = ('▁', '▂', '▃', '▄', '▅', '▆', '▇', '█')
def scale_data(data):
m = min(data)
n = (max(data) - m) / (len(ticks) - 1)
print m,n
return [ ticks[int((t - m) / n)] for t in data ]
def print_ansi_spark(d):
print ''.join... | Make division float to fix divide by zero issues | Make division float to fix divide by zero issues
| Python | mit | mmichie/sparkback |
# -*- coding: utf-8 -*-
import sys
ticks = ('▁', '▂', '▃', '▄', '▅', '▆', '▇', '█')
def scale_data(d):
data_range = max(d) - min(d)
divider = data_range / (len(ticks) - 1)
min_value = min(d)
scaled = [int(abs(round((i - min_value) / divider))) for i in d]
return scaled
def print_ansi_spark(d)... | # -*- coding: utf-8 -*-
from __future__ import division
import argparse
ticks = ('▁', '▂', '▃', '▄', '▅', '▆', '▇', '█')
def scale_data(data):
m = min(data)
n = (max(data) - m) / (len(ticks) - 1)
print m,n
return [ ticks[int((t - m) / n)] for t in data ]
def print_ansi_spark(d):
print ''.join... | <commit_before>
# -*- coding: utf-8 -*-
import sys
ticks = ('▁', '▂', '▃', '▄', '▅', '▆', '▇', '█')
def scale_data(d):
data_range = max(d) - min(d)
divider = data_range / (len(ticks) - 1)
min_value = min(d)
scaled = [int(abs(round((i - min_value) / divider))) for i in d]
return scaled
def prin... | # -*- coding: utf-8 -*-
from __future__ import division
import argparse
ticks = ('▁', '▂', '▃', '▄', '▅', '▆', '▇', '█')
def scale_data(data):
m = min(data)
n = (max(data) - m) / (len(ticks) - 1)
print m,n
return [ ticks[int((t - m) / n)] for t in data ]
def print_ansi_spark(d):
print ''.join... |
# -*- coding: utf-8 -*-
import sys
ticks = ('▁', '▂', '▃', '▄', '▅', '▆', '▇', '█')
def scale_data(d):
data_range = max(d) - min(d)
divider = data_range / (len(ticks) - 1)
min_value = min(d)
scaled = [int(abs(round((i - min_value) / divider))) for i in d]
return scaled
def print_ansi_spark(d)... | <commit_before>
# -*- coding: utf-8 -*-
import sys
ticks = ('▁', '▂', '▃', '▄', '▅', '▆', '▇', '█')
def scale_data(d):
data_range = max(d) - min(d)
divider = data_range / (len(ticks) - 1)
min_value = min(d)
scaled = [int(abs(round((i - min_value) / divider))) for i in d]
return scaled
def prin... |
8d8dd559252bc32388e224746f2ae8cdbdceaae4 | masters/master.client.syzygy/master_win_official_cfg.py | masters/master.client.syzygy/master_win_official_cfg.py | # Copyright (c) 2011 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from buildbot.scheduler import Scheduler
from buildbot.changes.filter import ChangeFilter
from master.factory import syzygy_factory
def win():
retur... | # Copyright (c) 2011 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from buildbot.scheduler import Scheduler
# This is due to buildbot 0.7.12 being used for the presubmit check.
from buildbot.changes.filter import ChangeF... | Fix pylint presubmit check, related to buildbot 0.8.x vs 0.7.x | Fix pylint presubmit check, related to buildbot 0.8.x vs 0.7.x
TBR=nsylvain@chromium.org
BUG=
TEST=
Review URL: http://codereview.chromium.org/7631036
git-svn-id: 239fca9b83025a0b6f823aeeca02ba5be3d9fd76@97254 0039d316-1c4b-4281-b951-d872f2087c98
| Python | bsd-3-clause | eunchong/build,eunchong/build,eunchong/build,eunchong/build | # Copyright (c) 2011 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from buildbot.scheduler import Scheduler
from buildbot.changes.filter import ChangeFilter
from master.factory import syzygy_factory
def win():
retur... | # Copyright (c) 2011 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from buildbot.scheduler import Scheduler
# This is due to buildbot 0.7.12 being used for the presubmit check.
from buildbot.changes.filter import ChangeF... | <commit_before># Copyright (c) 2011 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from buildbot.scheduler import Scheduler
from buildbot.changes.filter import ChangeFilter
from master.factory import syzygy_factory
def... | # Copyright (c) 2011 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from buildbot.scheduler import Scheduler
# This is due to buildbot 0.7.12 being used for the presubmit check.
from buildbot.changes.filter import ChangeF... | # Copyright (c) 2011 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from buildbot.scheduler import Scheduler
from buildbot.changes.filter import ChangeFilter
from master.factory import syzygy_factory
def win():
retur... | <commit_before># Copyright (c) 2011 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from buildbot.scheduler import Scheduler
from buildbot.changes.filter import ChangeFilter
from master.factory import syzygy_factory
def... |
b14d893c68a6c1117f01b7d5712dacd8d5ca8cf9 | prolog/builtin/sourcehelper.py | prolog/builtin/sourcehelper.py | import os
import sys
import py
from prolog.interpreter.error import throw_existence_error
path = os.path.dirname(__file__)
path = os.path.join(path, "..", "prolog_modules")
def get_source(filename):
try:
fd = os.open(filename, os.O_RDONLY, 0777)
except OSError, e:
try:
fd = os.open... | import os
import sys
from prolog.interpreter.error import throw_existence_error
from prolog.interpreter.term import Callable
path = os.path.dirname(__file__)
path = os.path.join(path, "..", "prolog_modules")
def get_source(filename):
try:
fd = os.open(filename, os.O_RDONLY, 0777)
except OSError, e:
... | Make atom from filename before throwing an error in get_source. | Make atom from filename before throwing an error in get_source.
| Python | mit | cosmoharrigan/pyrolog | import os
import sys
import py
from prolog.interpreter.error import throw_existence_error
path = os.path.dirname(__file__)
path = os.path.join(path, "..", "prolog_modules")
def get_source(filename):
try:
fd = os.open(filename, os.O_RDONLY, 0777)
except OSError, e:
try:
fd = os.open... | import os
import sys
from prolog.interpreter.error import throw_existence_error
from prolog.interpreter.term import Callable
path = os.path.dirname(__file__)
path = os.path.join(path, "..", "prolog_modules")
def get_source(filename):
try:
fd = os.open(filename, os.O_RDONLY, 0777)
except OSError, e:
... | <commit_before>import os
import sys
import py
from prolog.interpreter.error import throw_existence_error
path = os.path.dirname(__file__)
path = os.path.join(path, "..", "prolog_modules")
def get_source(filename):
try:
fd = os.open(filename, os.O_RDONLY, 0777)
except OSError, e:
try:
... | import os
import sys
from prolog.interpreter.error import throw_existence_error
from prolog.interpreter.term import Callable
path = os.path.dirname(__file__)
path = os.path.join(path, "..", "prolog_modules")
def get_source(filename):
try:
fd = os.open(filename, os.O_RDONLY, 0777)
except OSError, e:
... | import os
import sys
import py
from prolog.interpreter.error import throw_existence_error
path = os.path.dirname(__file__)
path = os.path.join(path, "..", "prolog_modules")
def get_source(filename):
try:
fd = os.open(filename, os.O_RDONLY, 0777)
except OSError, e:
try:
fd = os.open... | <commit_before>import os
import sys
import py
from prolog.interpreter.error import throw_existence_error
path = os.path.dirname(__file__)
path = os.path.join(path, "..", "prolog_modules")
def get_source(filename):
try:
fd = os.open(filename, os.O_RDONLY, 0777)
except OSError, e:
try:
... |
0dabc858976197459cfe71fe1a4a8a85c181db75 | django_localflavor_ie/ie_counties.py | django_localflavor_ie/ie_counties.py | """
Sources:
Irish Counties: http://en.wikipedia.org/wiki/Counties_of_Ireland
"""
from django.utils.translation import ugettext_lazy as _
IE_COUNTY_CHOICES = (
('antrim', _('Antrim')),
('armagh', _('Armagh')),
('carlow', _('Carlow')),
('cavan', _('Cavan')),
('clare', _('Clare')),
('cork... | """
Sources:
Irish Counties: http://en.wikipedia.org/wiki/Counties_of_Ireland
"""
from django.utils.translation import ugettext_lazy as _
IE_COUNTY_CHOICES = (
('carlow', _('Carlow')),
('cavan', _('Cavan')),
('clare', _('Clare')),
('cork', _('Cork')),
('donegal', _('Donegal')),
('dublin', _... | Remove Northern Irish counties. These are part of the UK, not Ireland | Remove Northern Irish counties. These are part of the UK, not Ireland
| Python | bsd-3-clause | martinogden/django-localflavor-ie | """
Sources:
Irish Counties: http://en.wikipedia.org/wiki/Counties_of_Ireland
"""
from django.utils.translation import ugettext_lazy as _
IE_COUNTY_CHOICES = (
('antrim', _('Antrim')),
('armagh', _('Armagh')),
('carlow', _('Carlow')),
('cavan', _('Cavan')),
('clare', _('Clare')),
('cork... | """
Sources:
Irish Counties: http://en.wikipedia.org/wiki/Counties_of_Ireland
"""
from django.utils.translation import ugettext_lazy as _
IE_COUNTY_CHOICES = (
('carlow', _('Carlow')),
('cavan', _('Cavan')),
('clare', _('Clare')),
('cork', _('Cork')),
('donegal', _('Donegal')),
('dublin', _... | <commit_before>"""
Sources:
Irish Counties: http://en.wikipedia.org/wiki/Counties_of_Ireland
"""
from django.utils.translation import ugettext_lazy as _
IE_COUNTY_CHOICES = (
('antrim', _('Antrim')),
('armagh', _('Armagh')),
('carlow', _('Carlow')),
('cavan', _('Cavan')),
('clare', _('Clare... | """
Sources:
Irish Counties: http://en.wikipedia.org/wiki/Counties_of_Ireland
"""
from django.utils.translation import ugettext_lazy as _
IE_COUNTY_CHOICES = (
('carlow', _('Carlow')),
('cavan', _('Cavan')),
('clare', _('Clare')),
('cork', _('Cork')),
('donegal', _('Donegal')),
('dublin', _... | """
Sources:
Irish Counties: http://en.wikipedia.org/wiki/Counties_of_Ireland
"""
from django.utils.translation import ugettext_lazy as _
IE_COUNTY_CHOICES = (
('antrim', _('Antrim')),
('armagh', _('Armagh')),
('carlow', _('Carlow')),
('cavan', _('Cavan')),
('clare', _('Clare')),
('cork... | <commit_before>"""
Sources:
Irish Counties: http://en.wikipedia.org/wiki/Counties_of_Ireland
"""
from django.utils.translation import ugettext_lazy as _
IE_COUNTY_CHOICES = (
('antrim', _('Antrim')),
('armagh', _('Armagh')),
('carlow', _('Carlow')),
('cavan', _('Cavan')),
('clare', _('Clare... |
6d6ee78d49663150f3d58855b4ea49ca3fbee62f | changes/api/project_build_index.py | changes/api/project_build_index.py | from __future__ import absolute_import, division, unicode_literals
from flask import Response, request
from sqlalchemy.orm import joinedload
from changes.api.base import APIView
from changes.models import Project, Build
class ProjectBuildIndexAPIView(APIView):
def _get_project(self, project_id):
project... | from __future__ import absolute_import, division, unicode_literals
from flask import Response, request
from sqlalchemy.orm import joinedload
from changes.api.base import APIView
from changes.models import Project, Build
class ProjectBuildIndexAPIView(APIView):
def _get_project(self, project_id):
project... | Add source to project build index query | Add source to project build index query
| Python | apache-2.0 | bowlofstew/changes,dropbox/changes,dropbox/changes,bowlofstew/changes,wfxiang08/changes,bowlofstew/changes,dropbox/changes,wfxiang08/changes,bowlofstew/changes,wfxiang08/changes,wfxiang08/changes,dropbox/changes | from __future__ import absolute_import, division, unicode_literals
from flask import Response, request
from sqlalchemy.orm import joinedload
from changes.api.base import APIView
from changes.models import Project, Build
class ProjectBuildIndexAPIView(APIView):
def _get_project(self, project_id):
project... | from __future__ import absolute_import, division, unicode_literals
from flask import Response, request
from sqlalchemy.orm import joinedload
from changes.api.base import APIView
from changes.models import Project, Build
class ProjectBuildIndexAPIView(APIView):
def _get_project(self, project_id):
project... | <commit_before>from __future__ import absolute_import, division, unicode_literals
from flask import Response, request
from sqlalchemy.orm import joinedload
from changes.api.base import APIView
from changes.models import Project, Build
class ProjectBuildIndexAPIView(APIView):
def _get_project(self, project_id):
... | from __future__ import absolute_import, division, unicode_literals
from flask import Response, request
from sqlalchemy.orm import joinedload
from changes.api.base import APIView
from changes.models import Project, Build
class ProjectBuildIndexAPIView(APIView):
def _get_project(self, project_id):
project... | from __future__ import absolute_import, division, unicode_literals
from flask import Response, request
from sqlalchemy.orm import joinedload
from changes.api.base import APIView
from changes.models import Project, Build
class ProjectBuildIndexAPIView(APIView):
def _get_project(self, project_id):
project... | <commit_before>from __future__ import absolute_import, division, unicode_literals
from flask import Response, request
from sqlalchemy.orm import joinedload
from changes.api.base import APIView
from changes.models import Project, Build
class ProjectBuildIndexAPIView(APIView):
def _get_project(self, project_id):
... |
231a40a8a8c7d7844475a381638c96ebaf3b288a | osOps.py | osOps.py | import os
def createFile(directoryPath, fileName):
return None
def createDirectory(directoryPath):
return None
def getFileContents(filePath):
return None
def deleteFile(filePath):
return None
def deleteDirectory(directoryPath):
return None
| import os
def createDirectory(directoryPath):
return None
def createFile(filePath):
try:
createdFile = open(filePath, 'w+')
createdFile.close()
except IOError:
print "Error: could not create file at location: " + filePath
def getFileContents(filePath):
return None
def deleteF... | Implement logic for file creation | Implement logic for file creation
| Python | apache-2.0 | AmosGarner/PyInventory | import os
def createFile(directoryPath, fileName):
return None
def createDirectory(directoryPath):
return None
def getFileContents(filePath):
return None
def deleteFile(filePath):
return None
def deleteDirectory(directoryPath):
return None
Implement logic for file creation | import os
def createDirectory(directoryPath):
return None
def createFile(filePath):
try:
createdFile = open(filePath, 'w+')
createdFile.close()
except IOError:
print "Error: could not create file at location: " + filePath
def getFileContents(filePath):
return None
def deleteF... | <commit_before>import os
def createFile(directoryPath, fileName):
return None
def createDirectory(directoryPath):
return None
def getFileContents(filePath):
return None
def deleteFile(filePath):
return None
def deleteDirectory(directoryPath):
return None
<commit_msg>Implement logic for file cre... | import os
def createDirectory(directoryPath):
return None
def createFile(filePath):
try:
createdFile = open(filePath, 'w+')
createdFile.close()
except IOError:
print "Error: could not create file at location: " + filePath
def getFileContents(filePath):
return None
def deleteF... | import os
def createFile(directoryPath, fileName):
return None
def createDirectory(directoryPath):
return None
def getFileContents(filePath):
return None
def deleteFile(filePath):
return None
def deleteDirectory(directoryPath):
return None
Implement logic for file creationimport os
def createD... | <commit_before>import os
def createFile(directoryPath, fileName):
return None
def createDirectory(directoryPath):
return None
def getFileContents(filePath):
return None
def deleteFile(filePath):
return None
def deleteDirectory(directoryPath):
return None
<commit_msg>Implement logic for file cre... |
560bbc0a0415b536fd6a49bbce6b2beb3f5f7219 | src/balistos/tests/test_views.py | src/balistos/tests/test_views.py | # -*- coding: utf-8 -*-
"""Tests."""
from pyramid import testing
from balistos.testing import createTestDB
from pyramid_basemodel import Session
import unittest
class TestHome(unittest.TestCase):
def setUp(self):
self.config = testing.setUp()
def tearDown(self):
testing.tearDown()
def ... | # -*- coding: utf-8 -*-
"""Tests."""
from pyramid import testing
from balistos.testing import createTestDB
from pyramid_basemodel import Session
import unittest
class TestHome(unittest.TestCase):
def setUp(self):
self.config = testing.setUp()
def tearDown(self):
testing.tearDown()
def ... | Fix tests to comply with new home view | Fix tests to comply with new home view
| Python | mit | ferewuz/balistos,ferewuz/balistos | # -*- coding: utf-8 -*-
"""Tests."""
from pyramid import testing
from balistos.testing import createTestDB
from pyramid_basemodel import Session
import unittest
class TestHome(unittest.TestCase):
def setUp(self):
self.config = testing.setUp()
def tearDown(self):
testing.tearDown()
def ... | # -*- coding: utf-8 -*-
"""Tests."""
from pyramid import testing
from balistos.testing import createTestDB
from pyramid_basemodel import Session
import unittest
class TestHome(unittest.TestCase):
def setUp(self):
self.config = testing.setUp()
def tearDown(self):
testing.tearDown()
def ... | <commit_before># -*- coding: utf-8 -*-
"""Tests."""
from pyramid import testing
from balistos.testing import createTestDB
from pyramid_basemodel import Session
import unittest
class TestHome(unittest.TestCase):
def setUp(self):
self.config = testing.setUp()
def tearDown(self):
testing.tearD... | # -*- coding: utf-8 -*-
"""Tests."""
from pyramid import testing
from balistos.testing import createTestDB
from pyramid_basemodel import Session
import unittest
class TestHome(unittest.TestCase):
def setUp(self):
self.config = testing.setUp()
def tearDown(self):
testing.tearDown()
def ... | # -*- coding: utf-8 -*-
"""Tests."""
from pyramid import testing
from balistos.testing import createTestDB
from pyramid_basemodel import Session
import unittest
class TestHome(unittest.TestCase):
def setUp(self):
self.config = testing.setUp()
def tearDown(self):
testing.tearDown()
def ... | <commit_before># -*- coding: utf-8 -*-
"""Tests."""
from pyramid import testing
from balistos.testing import createTestDB
from pyramid_basemodel import Session
import unittest
class TestHome(unittest.TestCase):
def setUp(self):
self.config = testing.setUp()
def tearDown(self):
testing.tearD... |
f8a7939bab7803a04e28f01852b1323fe9651a31 | zaqar_ui/version.py | zaqar_ui/version.py | import pbr.version
version_info = pbr.version.VersionInfo('zaqar-ui')
| # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed u... | Add Apache 2.0 license to source file | Add Apache 2.0 license to source file
As per OpenStack licensing guide lines [1]:
[H102 H103] Newly contributed Source Code should be licensed under
the Apache 2.0 license.
[1] http://docs.openstack.org/developer/hacking/#openstack-licensing
Change-Id: I714355371a6c57f74924efec19f12d48c7fe2d3f
| Python | apache-2.0 | openstack/zaqar-ui,openstack/zaqar-ui,openstack/zaqar-ui,openstack/zaqar-ui | import pbr.version
version_info = pbr.version.VersionInfo('zaqar-ui')
Add Apache 2.0 license to source file
As per OpenStack licensing guide lines [1]:
[H102 H103] Newly contributed Source Code should be licensed under
the Apache 2.0 license.
[1] http://docs.openstack.org/developer/hacking/#openstack-licensing
Chan... | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed u... | <commit_before>import pbr.version
version_info = pbr.version.VersionInfo('zaqar-ui')
<commit_msg>Add Apache 2.0 license to source file
As per OpenStack licensing guide lines [1]:
[H102 H103] Newly contributed Source Code should be licensed under
the Apache 2.0 license.
[1] http://docs.openstack.org/developer/hacking... | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed u... | import pbr.version
version_info = pbr.version.VersionInfo('zaqar-ui')
Add Apache 2.0 license to source file
As per OpenStack licensing guide lines [1]:
[H102 H103] Newly contributed Source Code should be licensed under
the Apache 2.0 license.
[1] http://docs.openstack.org/developer/hacking/#openstack-licensing
Chan... | <commit_before>import pbr.version
version_info = pbr.version.VersionInfo('zaqar-ui')
<commit_msg>Add Apache 2.0 license to source file
As per OpenStack licensing guide lines [1]:
[H102 H103] Newly contributed Source Code should be licensed under
the Apache 2.0 license.
[1] http://docs.openstack.org/developer/hacking... |
b46370e025efc4730fb39c05928ff22744956eda | django_perf_rec/functional.py | django_perf_rec/functional.py | # -*- coding:utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
import inspect
from functools import wraps
def kwargs_only(func):
"""
Make a function only accept keyword arguments.
This can be dropped in Python 3 in lieu of:
def foo(*, bar=default):
"... | # -*- coding:utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
import inspect
from functools import wraps
def kwargs_only(func):
"""
Make a function only accept keyword arguments.
This can be dropped in Python 3 in lieu of:
def foo(*, bar=default):
"... | Fix warnings on Python 3 | Fix warnings on Python 3
Fixes #74. Use `inspect.signature()` on Python 3 instead of the deprecated `inspect.getargspec()`.
| Python | mit | YPlan/django-perf-rec | # -*- coding:utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
import inspect
from functools import wraps
def kwargs_only(func):
"""
Make a function only accept keyword arguments.
This can be dropped in Python 3 in lieu of:
def foo(*, bar=default):
"... | # -*- coding:utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
import inspect
from functools import wraps
def kwargs_only(func):
"""
Make a function only accept keyword arguments.
This can be dropped in Python 3 in lieu of:
def foo(*, bar=default):
"... | <commit_before># -*- coding:utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
import inspect
from functools import wraps
def kwargs_only(func):
"""
Make a function only accept keyword arguments.
This can be dropped in Python 3 in lieu of:
def foo(*, bar=... | # -*- coding:utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
import inspect
from functools import wraps
def kwargs_only(func):
"""
Make a function only accept keyword arguments.
This can be dropped in Python 3 in lieu of:
def foo(*, bar=default):
"... | # -*- coding:utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
import inspect
from functools import wraps
def kwargs_only(func):
"""
Make a function only accept keyword arguments.
This can be dropped in Python 3 in lieu of:
def foo(*, bar=default):
"... | <commit_before># -*- coding:utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
import inspect
from functools import wraps
def kwargs_only(func):
"""
Make a function only accept keyword arguments.
This can be dropped in Python 3 in lieu of:
def foo(*, bar=... |
ae5e35aefd5b508fa2a0d1ed7d0ceefd9d24eb27 | 17B-162/spw_setup.py | 17B-162/spw_setup.py |
# Line SPW setup for 17B-162 w/ rest frequencies
linespw_dict = {0: ["HI", "1.420405752GHz"],
1: ["H166alp", "1.42473GHz"],
2: ["H164alp", "1.47734GHz"],
3: ["OH1612", "1.612231GHz"],
4: ["H158alp", "1.65154GHz"],
5: ["OH1665", "1.6654018... |
# Line SPW setup for 17B-162 w/ rest frequencies
linespw_dict = {0: ["HI", "1.420405752GHz", 4096],
1: ["H166alp", "1.42473GHz", 128],
2: ["H164alp", "1.47734GHz", 128],
3: ["OH1612", "1.612231GHz", 256],
4: ["H158alp", "1.65154GHz", 128],
... | Add the number of channels in each SPW | Add the number of channels in each SPW
| Python | mit | e-koch/VLA_Lband,e-koch/VLA_Lband |
# Line SPW setup for 17B-162 w/ rest frequencies
linespw_dict = {0: ["HI", "1.420405752GHz"],
1: ["H166alp", "1.42473GHz"],
2: ["H164alp", "1.47734GHz"],
3: ["OH1612", "1.612231GHz"],
4: ["H158alp", "1.65154GHz"],
5: ["OH1665", "1.6654018... |
# Line SPW setup for 17B-162 w/ rest frequencies
linespw_dict = {0: ["HI", "1.420405752GHz", 4096],
1: ["H166alp", "1.42473GHz", 128],
2: ["H164alp", "1.47734GHz", 128],
3: ["OH1612", "1.612231GHz", 256],
4: ["H158alp", "1.65154GHz", 128],
... | <commit_before>
# Line SPW setup for 17B-162 w/ rest frequencies
linespw_dict = {0: ["HI", "1.420405752GHz"],
1: ["H166alp", "1.42473GHz"],
2: ["H164alp", "1.47734GHz"],
3: ["OH1612", "1.612231GHz"],
4: ["H158alp", "1.65154GHz"],
5: ["OH16... |
# Line SPW setup for 17B-162 w/ rest frequencies
linespw_dict = {0: ["HI", "1.420405752GHz", 4096],
1: ["H166alp", "1.42473GHz", 128],
2: ["H164alp", "1.47734GHz", 128],
3: ["OH1612", "1.612231GHz", 256],
4: ["H158alp", "1.65154GHz", 128],
... |
# Line SPW setup for 17B-162 w/ rest frequencies
linespw_dict = {0: ["HI", "1.420405752GHz"],
1: ["H166alp", "1.42473GHz"],
2: ["H164alp", "1.47734GHz"],
3: ["OH1612", "1.612231GHz"],
4: ["H158alp", "1.65154GHz"],
5: ["OH1665", "1.6654018... | <commit_before>
# Line SPW setup for 17B-162 w/ rest frequencies
linespw_dict = {0: ["HI", "1.420405752GHz"],
1: ["H166alp", "1.42473GHz"],
2: ["H164alp", "1.47734GHz"],
3: ["OH1612", "1.612231GHz"],
4: ["H158alp", "1.65154GHz"],
5: ["OH16... |
3cc82eeb8400d182461467b4e2d8ec3c7fc487cb | config.py | config.py | import os
import ConfigParser
os.environ['PYTHONINSPECT'] = 'True'
basedir = os.path.abspath(os.path.dirname(__file__))
parser = ConfigParser.ConfigParser()
parser.read("secret_config.cfg")
class Default:
PORT = 8080
API_KEY = parser.get("github", "api_key")
CACHE_TYPE = 'memcached'
SQLALCHEMY_DATAB... | import os
import ConfigParser
os.environ['PYTHONINSPECT'] = 'True'
basedir = os.path.abspath(os.path.dirname(__file__))
parser = ConfigParser.ConfigParser()
parser.read(os.path.join(basedir, "secret_config.cfg"))
class Default:
PORT = 8080
API_KEY = parser.get("github", "api_key")
CACHE_TYPE = 'memcache... | Fix path read error for secret_cfg | Fix path read error for secret_cfg
| Python | bsd-2-clause | NikhilKalige/atom-website,NikhilKalige/atom-website,NikhilKalige/atom-website | import os
import ConfigParser
os.environ['PYTHONINSPECT'] = 'True'
basedir = os.path.abspath(os.path.dirname(__file__))
parser = ConfigParser.ConfigParser()
parser.read("secret_config.cfg")
class Default:
PORT = 8080
API_KEY = parser.get("github", "api_key")
CACHE_TYPE = 'memcached'
SQLALCHEMY_DATAB... | import os
import ConfigParser
os.environ['PYTHONINSPECT'] = 'True'
basedir = os.path.abspath(os.path.dirname(__file__))
parser = ConfigParser.ConfigParser()
parser.read(os.path.join(basedir, "secret_config.cfg"))
class Default:
PORT = 8080
API_KEY = parser.get("github", "api_key")
CACHE_TYPE = 'memcache... | <commit_before>import os
import ConfigParser
os.environ['PYTHONINSPECT'] = 'True'
basedir = os.path.abspath(os.path.dirname(__file__))
parser = ConfigParser.ConfigParser()
parser.read("secret_config.cfg")
class Default:
PORT = 8080
API_KEY = parser.get("github", "api_key")
CACHE_TYPE = 'memcached'
S... | import os
import ConfigParser
os.environ['PYTHONINSPECT'] = 'True'
basedir = os.path.abspath(os.path.dirname(__file__))
parser = ConfigParser.ConfigParser()
parser.read(os.path.join(basedir, "secret_config.cfg"))
class Default:
PORT = 8080
API_KEY = parser.get("github", "api_key")
CACHE_TYPE = 'memcache... | import os
import ConfigParser
os.environ['PYTHONINSPECT'] = 'True'
basedir = os.path.abspath(os.path.dirname(__file__))
parser = ConfigParser.ConfigParser()
parser.read("secret_config.cfg")
class Default:
PORT = 8080
API_KEY = parser.get("github", "api_key")
CACHE_TYPE = 'memcached'
SQLALCHEMY_DATAB... | <commit_before>import os
import ConfigParser
os.environ['PYTHONINSPECT'] = 'True'
basedir = os.path.abspath(os.path.dirname(__file__))
parser = ConfigParser.ConfigParser()
parser.read("secret_config.cfg")
class Default:
PORT = 8080
API_KEY = parser.get("github", "api_key")
CACHE_TYPE = 'memcached'
S... |
1970a6ddbd3b1a891b0c420498f51ad186a4ba7b | setup.py | setup.py | #!/usr/bin/env python
import os
from glob import glob
from distutils.core import setup
setup(
name='whisper',
version='0.9.10-pre3',
url='https://launchpad.net/graphite',
author='Chris Davis',
author_email='chrismd@gmail.com',
license='Apache Software License 2.0',
description='Fixed size round-robin s... | #!/usr/bin/env python
import os
from glob import glob
from distutils.core import setup
setup(
name='whisper',
version='0.9.10_pre4',
url='https://launchpad.net/graphite',
author='Chris Davis',
author_email='chrismd@gmail.com',
license='Apache Software License 2.0',
description='Fixed size round-robin s... | Make 0.9.10_pre4 to match the webapp | Make 0.9.10_pre4 to match the webapp
| Python | apache-2.0 | kerlandsson/whisper,cbowman0/whisper,jjneely/whisper,obfuscurity/whisper,penpen/whisper,alexandreboisvert/whisper,deniszh/whisper,graphite-server/whisper,akbooer/whisper,graphite-project/whisper,acdha/whisper,piotr1212/whisper | #!/usr/bin/env python
import os
from glob import glob
from distutils.core import setup
setup(
name='whisper',
version='0.9.10-pre3',
url='https://launchpad.net/graphite',
author='Chris Davis',
author_email='chrismd@gmail.com',
license='Apache Software License 2.0',
description='Fixed size round-robin s... | #!/usr/bin/env python
import os
from glob import glob
from distutils.core import setup
setup(
name='whisper',
version='0.9.10_pre4',
url='https://launchpad.net/graphite',
author='Chris Davis',
author_email='chrismd@gmail.com',
license='Apache Software License 2.0',
description='Fixed size round-robin s... | <commit_before>#!/usr/bin/env python
import os
from glob import glob
from distutils.core import setup
setup(
name='whisper',
version='0.9.10-pre3',
url='https://launchpad.net/graphite',
author='Chris Davis',
author_email='chrismd@gmail.com',
license='Apache Software License 2.0',
description='Fixed siz... | #!/usr/bin/env python
import os
from glob import glob
from distutils.core import setup
setup(
name='whisper',
version='0.9.10_pre4',
url='https://launchpad.net/graphite',
author='Chris Davis',
author_email='chrismd@gmail.com',
license='Apache Software License 2.0',
description='Fixed size round-robin s... | #!/usr/bin/env python
import os
from glob import glob
from distutils.core import setup
setup(
name='whisper',
version='0.9.10-pre3',
url='https://launchpad.net/graphite',
author='Chris Davis',
author_email='chrismd@gmail.com',
license='Apache Software License 2.0',
description='Fixed size round-robin s... | <commit_before>#!/usr/bin/env python
import os
from glob import glob
from distutils.core import setup
setup(
name='whisper',
version='0.9.10-pre3',
url='https://launchpad.net/graphite',
author='Chris Davis',
author_email='chrismd@gmail.com',
license='Apache Software License 2.0',
description='Fixed siz... |
b42896e796e6f4d2984547a34978bb34c66ba749 | blanc_basic_news/news/views.py | blanc_basic_news/news/views.py | from django.views.generic import ListView, MonthArchiveView, DateDetailView
from django.shortcuts import get_object_or_404
from django.utils import timezone
from django.conf import settings
from .models import Category, Post
class PostListView(ListView):
paginate_by = getattr(settings, 'NEWS_PER_PAGE', 10)
d... | from django.views.generic import ArchiveIndexView, MonthArchiveView, DateDetailView
from django.shortcuts import get_object_or_404
from django.conf import settings
from .models import Category, Post
class PostListView(ArchiveIndexView):
queryset = Post.objects.select_related().filter(published=True)
date_fiel... | Use ArchiveIndexView to reduce code | Use ArchiveIndexView to reduce code
| Python | bsd-3-clause | blancltd/blanc-basic-news | from django.views.generic import ListView, MonthArchiveView, DateDetailView
from django.shortcuts import get_object_or_404
from django.utils import timezone
from django.conf import settings
from .models import Category, Post
class PostListView(ListView):
paginate_by = getattr(settings, 'NEWS_PER_PAGE', 10)
d... | from django.views.generic import ArchiveIndexView, MonthArchiveView, DateDetailView
from django.shortcuts import get_object_or_404
from django.conf import settings
from .models import Category, Post
class PostListView(ArchiveIndexView):
queryset = Post.objects.select_related().filter(published=True)
date_fiel... | <commit_before>from django.views.generic import ListView, MonthArchiveView, DateDetailView
from django.shortcuts import get_object_or_404
from django.utils import timezone
from django.conf import settings
from .models import Category, Post
class PostListView(ListView):
paginate_by = getattr(settings, 'NEWS_PER_PA... | from django.views.generic import ArchiveIndexView, MonthArchiveView, DateDetailView
from django.shortcuts import get_object_or_404
from django.conf import settings
from .models import Category, Post
class PostListView(ArchiveIndexView):
queryset = Post.objects.select_related().filter(published=True)
date_fiel... | from django.views.generic import ListView, MonthArchiveView, DateDetailView
from django.shortcuts import get_object_or_404
from django.utils import timezone
from django.conf import settings
from .models import Category, Post
class PostListView(ListView):
paginate_by = getattr(settings, 'NEWS_PER_PAGE', 10)
d... | <commit_before>from django.views.generic import ListView, MonthArchiveView, DateDetailView
from django.shortcuts import get_object_or_404
from django.utils import timezone
from django.conf import settings
from .models import Category, Post
class PostListView(ListView):
paginate_by = getattr(settings, 'NEWS_PER_PA... |
306ff2e0bff0b6bc0babec90a512c8a2919168a1 | setup.py | setup.py | # -*- coding: utf-8 -*-
import os
from distutils.core import setup
from humod import __version__
CONFIG_FILES = [('/etc/ppp/peers', ['conf/humod'])]
try:
os.stat('/etc/ppp/options')
except OSError:
CONFIG_FILES = [('/etc/ppp/peers', ['conf/humod']),
('/etc/ppp/options', ['conf/options'])]
... | # -*- coding: utf-8 -*-
import os
from distutils.core import setup
from humod import __version__
CONFIG_FILES = [('/etc/ppp/peers', ['conf/humod'])]
try:
os.stat('/etc/ppp/options')
except OSError:
CONFIG_FILES = [('/etc/ppp/peers', ['conf/humod']),
('/etc/ppp/options', ['conf/options'])]
... | Change the name back to pyhumod | Change the name back to pyhumod
With the change of name from pyhumod to humod this would be a separate pypi package and we don't want that. | Python | bsd-3-clause | oozie/pyhumod | # -*- coding: utf-8 -*-
import os
from distutils.core import setup
from humod import __version__
CONFIG_FILES = [('/etc/ppp/peers', ['conf/humod'])]
try:
os.stat('/etc/ppp/options')
except OSError:
CONFIG_FILES = [('/etc/ppp/peers', ['conf/humod']),
('/etc/ppp/options', ['conf/options'])]
... | # -*- coding: utf-8 -*-
import os
from distutils.core import setup
from humod import __version__
CONFIG_FILES = [('/etc/ppp/peers', ['conf/humod'])]
try:
os.stat('/etc/ppp/options')
except OSError:
CONFIG_FILES = [('/etc/ppp/peers', ['conf/humod']),
('/etc/ppp/options', ['conf/options'])]
... | <commit_before># -*- coding: utf-8 -*-
import os
from distutils.core import setup
from humod import __version__
CONFIG_FILES = [('/etc/ppp/peers', ['conf/humod'])]
try:
os.stat('/etc/ppp/options')
except OSError:
CONFIG_FILES = [('/etc/ppp/peers', ['conf/humod']),
('/etc/ppp/options', ['con... | # -*- coding: utf-8 -*-
import os
from distutils.core import setup
from humod import __version__
CONFIG_FILES = [('/etc/ppp/peers', ['conf/humod'])]
try:
os.stat('/etc/ppp/options')
except OSError:
CONFIG_FILES = [('/etc/ppp/peers', ['conf/humod']),
('/etc/ppp/options', ['conf/options'])]
... | # -*- coding: utf-8 -*-
import os
from distutils.core import setup
from humod import __version__
CONFIG_FILES = [('/etc/ppp/peers', ['conf/humod'])]
try:
os.stat('/etc/ppp/options')
except OSError:
CONFIG_FILES = [('/etc/ppp/peers', ['conf/humod']),
('/etc/ppp/options', ['conf/options'])]
... | <commit_before># -*- coding: utf-8 -*-
import os
from distutils.core import setup
from humod import __version__
CONFIG_FILES = [('/etc/ppp/peers', ['conf/humod'])]
try:
os.stat('/etc/ppp/options')
except OSError:
CONFIG_FILES = [('/etc/ppp/peers', ['conf/humod']),
('/etc/ppp/options', ['con... |
9108add7219d3d70ff0aab86c13cd4077cda6619 | setup.py | setup.py | from setuptools import setup
setup(
name='ingreedypy',
py_modules=['ingreedypy'],
version='1.3.2',
description='ingreedy-py parses recipe ingredient lines into a object',
author='Scott Cooper',
author_email='scttcper@gmail.com',
url='https://github.com/openculinary/ingreedy-py',
keywor... | from setuptools import setup
with open('README.md', 'r', encoding='utf-8') as fh:
long_description = fh.read()
setup(
name='ingreedypy',
py_modules=['ingreedypy'],
version='1.3.2',
description='ingreedy-py parses recipe ingredient lines into a object',
long_description=long_description,
l... | Add long description for package | Add long description for package
| Python | mit | scttcper/ingreedy-py | from setuptools import setup
setup(
name='ingreedypy',
py_modules=['ingreedypy'],
version='1.3.2',
description='ingreedy-py parses recipe ingredient lines into a object',
author='Scott Cooper',
author_email='scttcper@gmail.com',
url='https://github.com/openculinary/ingreedy-py',
keywor... | from setuptools import setup
with open('README.md', 'r', encoding='utf-8') as fh:
long_description = fh.read()
setup(
name='ingreedypy',
py_modules=['ingreedypy'],
version='1.3.2',
description='ingreedy-py parses recipe ingredient lines into a object',
long_description=long_description,
l... | <commit_before>from setuptools import setup
setup(
name='ingreedypy',
py_modules=['ingreedypy'],
version='1.3.2',
description='ingreedy-py parses recipe ingredient lines into a object',
author='Scott Cooper',
author_email='scttcper@gmail.com',
url='https://github.com/openculinary/ingreedy-... | from setuptools import setup
with open('README.md', 'r', encoding='utf-8') as fh:
long_description = fh.read()
setup(
name='ingreedypy',
py_modules=['ingreedypy'],
version='1.3.2',
description='ingreedy-py parses recipe ingredient lines into a object',
long_description=long_description,
l... | from setuptools import setup
setup(
name='ingreedypy',
py_modules=['ingreedypy'],
version='1.3.2',
description='ingreedy-py parses recipe ingredient lines into a object',
author='Scott Cooper',
author_email='scttcper@gmail.com',
url='https://github.com/openculinary/ingreedy-py',
keywor... | <commit_before>from setuptools import setup
setup(
name='ingreedypy',
py_modules=['ingreedypy'],
version='1.3.2',
description='ingreedy-py parses recipe ingredient lines into a object',
author='Scott Cooper',
author_email='scttcper@gmail.com',
url='https://github.com/openculinary/ingreedy-... |
d0f6ab8c4db9de6f5d8c59bdb0c19baa2e758b50 | setup.py | setup.py | import os
try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.rst')).read()
packages = [
'skosprovider_heritagedata'
]
requires = [
'skosprovider',
'reques... | import os
try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.rst')).read()
packages = [
'skosprovider_heritagedata'
]
requires = [
'skosprovider>=0.5.0',
... | Set the min version of skosprovider to 0.5.0 | Set the min version of skosprovider to 0.5.0
Skosprovider 0.5.0 is required because of the
ProviderUnavailableException.
| Python | mit | OnroerendErfgoed/skosprovider_heritagedata | import os
try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.rst')).read()
packages = [
'skosprovider_heritagedata'
]
requires = [
'skosprovider',
'reques... | import os
try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.rst')).read()
packages = [
'skosprovider_heritagedata'
]
requires = [
'skosprovider>=0.5.0',
... | <commit_before>import os
try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.rst')).read()
packages = [
'skosprovider_heritagedata'
]
requires = [
'skosprovide... | import os
try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.rst')).read()
packages = [
'skosprovider_heritagedata'
]
requires = [
'skosprovider>=0.5.0',
... | import os
try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.rst')).read()
packages = [
'skosprovider_heritagedata'
]
requires = [
'skosprovider',
'reques... | <commit_before>import os
try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.rst')).read()
packages = [
'skosprovider_heritagedata'
]
requires = [
'skosprovide... |
c2d8089559dbb448d378ba15042031f9ca18d7e8 | setup.py | setup.py | from setuptools import setup
import sys
VERSION = "0.2.0"
if sys.version_info >= (3,):
requirements = ["websocket-client-py3"]
else:
requirements = ["websocket-client"]
setup(
name="pusherclient",
version=VERSION,
description="Pusher websocket client for python",
author="Erik Kulyk",
auth... | from setuptools import setup
import sys
VERSION = "0.2.0"
requirements = ["websocket-client"]
setup(
name="pusherclient",
version=VERSION,
description="Pusher websocket client for python",
author="Erik Kulyk",
author_email="e.kulyk@gmail.com",
license="",
url="",
install_requires=requ... | Switch to websocket-client for python3 | Switch to websocket-client for python3
| Python | mit | bartbroere/PythonPusherClient,mattsunsjf/PythonPusherClient,ekulyk/PythonPusherClient | from setuptools import setup
import sys
VERSION = "0.2.0"
if sys.version_info >= (3,):
requirements = ["websocket-client-py3"]
else:
requirements = ["websocket-client"]
setup(
name="pusherclient",
version=VERSION,
description="Pusher websocket client for python",
author="Erik Kulyk",
auth... | from setuptools import setup
import sys
VERSION = "0.2.0"
requirements = ["websocket-client"]
setup(
name="pusherclient",
version=VERSION,
description="Pusher websocket client for python",
author="Erik Kulyk",
author_email="e.kulyk@gmail.com",
license="",
url="",
install_requires=requ... | <commit_before>from setuptools import setup
import sys
VERSION = "0.2.0"
if sys.version_info >= (3,):
requirements = ["websocket-client-py3"]
else:
requirements = ["websocket-client"]
setup(
name="pusherclient",
version=VERSION,
description="Pusher websocket client for python",
author="Erik K... | from setuptools import setup
import sys
VERSION = "0.2.0"
requirements = ["websocket-client"]
setup(
name="pusherclient",
version=VERSION,
description="Pusher websocket client for python",
author="Erik Kulyk",
author_email="e.kulyk@gmail.com",
license="",
url="",
install_requires=requ... | from setuptools import setup
import sys
VERSION = "0.2.0"
if sys.version_info >= (3,):
requirements = ["websocket-client-py3"]
else:
requirements = ["websocket-client"]
setup(
name="pusherclient",
version=VERSION,
description="Pusher websocket client for python",
author="Erik Kulyk",
auth... | <commit_before>from setuptools import setup
import sys
VERSION = "0.2.0"
if sys.version_info >= (3,):
requirements = ["websocket-client-py3"]
else:
requirements = ["websocket-client"]
setup(
name="pusherclient",
version=VERSION,
description="Pusher websocket client for python",
author="Erik K... |
e1e56796bd8e4f3b3833f34266155b43d8156c6e | setup.py | setup.py | from setuptools import setup
setup(name='django-forge',
version=__import__('forge').__version__,
author='Justin Bronn',
author_email='jbronn@gmail.com',
description='A Django implementation of the Puppet Forge web API.',
url='https://github.com/jbronn/django-forge',
download_url='h... | from setuptools import setup
setup(name='django-forge',
version=__import__('forge').__version__,
author='Justin Bronn',
author_email='jbronn@gmail.com',
description='A Django implementation of the Puppet Forge web API.',
url='https://github.com/jbronn/django-forge',
download_url='h... | Add requests as an installation requirement. | Add requests as an installation requirement.
| Python | apache-2.0 | jbronn/django-forge,ocadotechnology/django-forge,ocadotechnology/django-forge,jbronn/django-forge | from setuptools import setup
setup(name='django-forge',
version=__import__('forge').__version__,
author='Justin Bronn',
author_email='jbronn@gmail.com',
description='A Django implementation of the Puppet Forge web API.',
url='https://github.com/jbronn/django-forge',
download_url='h... | from setuptools import setup
setup(name='django-forge',
version=__import__('forge').__version__,
author='Justin Bronn',
author_email='jbronn@gmail.com',
description='A Django implementation of the Puppet Forge web API.',
url='https://github.com/jbronn/django-forge',
download_url='h... | <commit_before>from setuptools import setup
setup(name='django-forge',
version=__import__('forge').__version__,
author='Justin Bronn',
author_email='jbronn@gmail.com',
description='A Django implementation of the Puppet Forge web API.',
url='https://github.com/jbronn/django-forge',
... | from setuptools import setup
setup(name='django-forge',
version=__import__('forge').__version__,
author='Justin Bronn',
author_email='jbronn@gmail.com',
description='A Django implementation of the Puppet Forge web API.',
url='https://github.com/jbronn/django-forge',
download_url='h... | from setuptools import setup
setup(name='django-forge',
version=__import__('forge').__version__,
author='Justin Bronn',
author_email='jbronn@gmail.com',
description='A Django implementation of the Puppet Forge web API.',
url='https://github.com/jbronn/django-forge',
download_url='h... | <commit_before>from setuptools import setup
setup(name='django-forge',
version=__import__('forge').__version__,
author='Justin Bronn',
author_email='jbronn@gmail.com',
description='A Django implementation of the Puppet Forge web API.',
url='https://github.com/jbronn/django-forge',
... |
b9a1a47361df09c4ef9b717afd6358aff982ecc5 | setup.py | setup.py | from marina.plugins import get_plugins_configuration
from setuptools import setup, find_packages
setup(
name='Marina',
version='2.0',
description='A stack based on docker to run PHP Applications',
url='http://github.com/inetprocess/marina',
author='Emmanuel Dyan',
author_email='emmanuel.dyan@i... | from marina.plugins import get_plugins_configuration
from setuptools import setup, find_packages
def get_console_scripts():
"""Guess if we use marina as a package or if it has been cloned"""
scripts = "[console_scripts]\n"
try:
from marina import cli, docker_clean
scripts += "marina=marina... | Prepare to use marina as a package | Prepare to use marina as a package
| Python | apache-2.0 | inetprocess/docker-lamp,inetprocess/docker-lamp,edyan/stakkr,inetprocess/docker-lamp,edyan/stakkr,edyan/stakkr | from marina.plugins import get_plugins_configuration
from setuptools import setup, find_packages
setup(
name='Marina',
version='2.0',
description='A stack based on docker to run PHP Applications',
url='http://github.com/inetprocess/marina',
author='Emmanuel Dyan',
author_email='emmanuel.dyan@i... | from marina.plugins import get_plugins_configuration
from setuptools import setup, find_packages
def get_console_scripts():
"""Guess if we use marina as a package or if it has been cloned"""
scripts = "[console_scripts]\n"
try:
from marina import cli, docker_clean
scripts += "marina=marina... | <commit_before>from marina.plugins import get_plugins_configuration
from setuptools import setup, find_packages
setup(
name='Marina',
version='2.0',
description='A stack based on docker to run PHP Applications',
url='http://github.com/inetprocess/marina',
author='Emmanuel Dyan',
author_email='... | from marina.plugins import get_plugins_configuration
from setuptools import setup, find_packages
def get_console_scripts():
"""Guess if we use marina as a package or if it has been cloned"""
scripts = "[console_scripts]\n"
try:
from marina import cli, docker_clean
scripts += "marina=marina... | from marina.plugins import get_plugins_configuration
from setuptools import setup, find_packages
setup(
name='Marina',
version='2.0',
description='A stack based on docker to run PHP Applications',
url='http://github.com/inetprocess/marina',
author='Emmanuel Dyan',
author_email='emmanuel.dyan@i... | <commit_before>from marina.plugins import get_plugins_configuration
from setuptools import setup, find_packages
setup(
name='Marina',
version='2.0',
description='A stack based on docker to run PHP Applications',
url='http://github.com/inetprocess/marina',
author='Emmanuel Dyan',
author_email='... |
c4b1920637535b4c5844bce9d32c448697a2718f | setup.py | setup.py | import sys
from setuptools import setup, find_packages
with open('README.rst') as f:
long_description = f.read()
setup(
name='xopen',
use_scm_version={'write_to': 'src/xopen/_version.py'},
setup_requires=['setuptools_scm'], # Support pip versions that don't know about pyproject.toml
author='Marce... | import sys
from setuptools import setup, find_packages
with open('README.rst') as f:
long_description = f.read()
setup(
name='xopen',
use_scm_version={'write_to': 'src/xopen/_version.py'},
setup_requires=['setuptools_scm'], # Support pip versions that don't know about pyproject.toml
author='Marce... | Make python-isal a requirement on macos as well. | Make python-isal a requirement on macos as well. | Python | mit | marcelm/xopen | import sys
from setuptools import setup, find_packages
with open('README.rst') as f:
long_description = f.read()
setup(
name='xopen',
use_scm_version={'write_to': 'src/xopen/_version.py'},
setup_requires=['setuptools_scm'], # Support pip versions that don't know about pyproject.toml
author='Marce... | import sys
from setuptools import setup, find_packages
with open('README.rst') as f:
long_description = f.read()
setup(
name='xopen',
use_scm_version={'write_to': 'src/xopen/_version.py'},
setup_requires=['setuptools_scm'], # Support pip versions that don't know about pyproject.toml
author='Marce... | <commit_before>import sys
from setuptools import setup, find_packages
with open('README.rst') as f:
long_description = f.read()
setup(
name='xopen',
use_scm_version={'write_to': 'src/xopen/_version.py'},
setup_requires=['setuptools_scm'], # Support pip versions that don't know about pyproject.toml
... | import sys
from setuptools import setup, find_packages
with open('README.rst') as f:
long_description = f.read()
setup(
name='xopen',
use_scm_version={'write_to': 'src/xopen/_version.py'},
setup_requires=['setuptools_scm'], # Support pip versions that don't know about pyproject.toml
author='Marce... | import sys
from setuptools import setup, find_packages
with open('README.rst') as f:
long_description = f.read()
setup(
name='xopen',
use_scm_version={'write_to': 'src/xopen/_version.py'},
setup_requires=['setuptools_scm'], # Support pip versions that don't know about pyproject.toml
author='Marce... | <commit_before>import sys
from setuptools import setup, find_packages
with open('README.rst') as f:
long_description = f.read()
setup(
name='xopen',
use_scm_version={'write_to': 'src/xopen/_version.py'},
setup_requires=['setuptools_scm'], # Support pip versions that don't know about pyproject.toml
... |
4b95e714a8b7c4c0aaf57f8d7de6769aa688de04 | setup.py | setup.py | """setup.py"""
#pylint:disable=line-too-long
from setuptools import setup
from codecs import open as codecs_open
with codecs_open('README.rst', 'r', 'utf-8') as f:
readme = f.read()
with codecs_open('HISTORY.rst', 'r', 'utf-8') as f:
history = f.read()
setup(
name='jsonrpcclient',
version='2.0.1',
... | """setup.py"""
#pylint:disable=line-too-long
from setuptools import setup
from codecs import open as codecs_open
with codecs_open('README.rst', 'r', 'utf-8') as f:
readme = f.read()
with codecs_open('HISTORY.rst', 'r', 'utf-8') as f:
history = f.read()
setup(
name='jsonrpcclient',
version='2.0.1',
... | Remove period after package description | Remove period after package description
| Python | mit | bcb/jsonrpcclient | """setup.py"""
#pylint:disable=line-too-long
from setuptools import setup
from codecs import open as codecs_open
with codecs_open('README.rst', 'r', 'utf-8') as f:
readme = f.read()
with codecs_open('HISTORY.rst', 'r', 'utf-8') as f:
history = f.read()
setup(
name='jsonrpcclient',
version='2.0.1',
... | """setup.py"""
#pylint:disable=line-too-long
from setuptools import setup
from codecs import open as codecs_open
with codecs_open('README.rst', 'r', 'utf-8') as f:
readme = f.read()
with codecs_open('HISTORY.rst', 'r', 'utf-8') as f:
history = f.read()
setup(
name='jsonrpcclient',
version='2.0.1',
... | <commit_before>"""setup.py"""
#pylint:disable=line-too-long
from setuptools import setup
from codecs import open as codecs_open
with codecs_open('README.rst', 'r', 'utf-8') as f:
readme = f.read()
with codecs_open('HISTORY.rst', 'r', 'utf-8') as f:
history = f.read()
setup(
name='jsonrpcclient',
ver... | """setup.py"""
#pylint:disable=line-too-long
from setuptools import setup
from codecs import open as codecs_open
with codecs_open('README.rst', 'r', 'utf-8') as f:
readme = f.read()
with codecs_open('HISTORY.rst', 'r', 'utf-8') as f:
history = f.read()
setup(
name='jsonrpcclient',
version='2.0.1',
... | """setup.py"""
#pylint:disable=line-too-long
from setuptools import setup
from codecs import open as codecs_open
with codecs_open('README.rst', 'r', 'utf-8') as f:
readme = f.read()
with codecs_open('HISTORY.rst', 'r', 'utf-8') as f:
history = f.read()
setup(
name='jsonrpcclient',
version='2.0.1',
... | <commit_before>"""setup.py"""
#pylint:disable=line-too-long
from setuptools import setup
from codecs import open as codecs_open
with codecs_open('README.rst', 'r', 'utf-8') as f:
readme = f.read()
with codecs_open('HISTORY.rst', 'r', 'utf-8') as f:
history = f.read()
setup(
name='jsonrpcclient',
ver... |
b0aaedf758e49dbc0b74a9a11ae9dbd424ad401c | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name="go-contacts",
version="0.1.5a",
url='http://github.com/praekelt/go-contacts-api',
license='BSD',
description="A contacts and groups API for Vumi Go",
long_description=open('README.rst', 'r').read(),
author='Praekelt Foundation',
a... | from setuptools import setup, find_packages
setup(
name="go-contacts",
version="0.1.5a",
url='http://github.com/praekelt/go-contacts-api',
license='BSD',
description="A contacts and groups API for Vumi Go",
long_description=open('README.rst', 'r').read(),
author='Praekelt Foundation',
a... | Update to less strict version requirement for go_api | Update to less strict version requirement for go_api
| Python | bsd-3-clause | praekelt/go-contacts-api,praekelt/go-contacts-api | from setuptools import setup, find_packages
setup(
name="go-contacts",
version="0.1.5a",
url='http://github.com/praekelt/go-contacts-api',
license='BSD',
description="A contacts and groups API for Vumi Go",
long_description=open('README.rst', 'r').read(),
author='Praekelt Foundation',
a... | from setuptools import setup, find_packages
setup(
name="go-contacts",
version="0.1.5a",
url='http://github.com/praekelt/go-contacts-api',
license='BSD',
description="A contacts and groups API for Vumi Go",
long_description=open('README.rst', 'r').read(),
author='Praekelt Foundation',
a... | <commit_before>from setuptools import setup, find_packages
setup(
name="go-contacts",
version="0.1.5a",
url='http://github.com/praekelt/go-contacts-api',
license='BSD',
description="A contacts and groups API for Vumi Go",
long_description=open('README.rst', 'r').read(),
author='Praekelt Fou... | from setuptools import setup, find_packages
setup(
name="go-contacts",
version="0.1.5a",
url='http://github.com/praekelt/go-contacts-api',
license='BSD',
description="A contacts and groups API for Vumi Go",
long_description=open('README.rst', 'r').read(),
author='Praekelt Foundation',
a... | from setuptools import setup, find_packages
setup(
name="go-contacts",
version="0.1.5a",
url='http://github.com/praekelt/go-contacts-api',
license='BSD',
description="A contacts and groups API for Vumi Go",
long_description=open('README.rst', 'r').read(),
author='Praekelt Foundation',
a... | <commit_before>from setuptools import setup, find_packages
setup(
name="go-contacts",
version="0.1.5a",
url='http://github.com/praekelt/go-contacts-api',
license='BSD',
description="A contacts and groups API for Vumi Go",
long_description=open('README.rst', 'r').read(),
author='Praekelt Fou... |
63e7c8782c179be3aa003c70ccf1bb7dcf24a39c | setup.py | setup.py | from distutils.core import setup
DESCRIPTION="""
"""
setup(
name="django-moneyfield",
description="Django Money Model Field",
long_description=DESCRIPTION,
version="0.2",
author="Carlos Palol",
author_email="carlos.palol@awarepixel.com",
url="http://www.awarepixel.com",
packages=[
... | from distutils.core import setup
DESCRIPTION="""
"""
setup(
name="django-moneyfield",
description="Django Money Model Field",
long_description=DESCRIPTION,
version="0.2",
author="Carlos Palol",
author_email="carlos.palol@awarepixel.com",
url="https://github.com/carlospalol/django-moneyfie... | Use github page as homepage | Use github page as homepage
| Python | mit | generalov/django-moneyfield,carlospalol/django-moneyfield | from distutils.core import setup
DESCRIPTION="""
"""
setup(
name="django-moneyfield",
description="Django Money Model Field",
long_description=DESCRIPTION,
version="0.2",
author="Carlos Palol",
author_email="carlos.palol@awarepixel.com",
url="http://www.awarepixel.com",
packages=[
... | from distutils.core import setup
DESCRIPTION="""
"""
setup(
name="django-moneyfield",
description="Django Money Model Field",
long_description=DESCRIPTION,
version="0.2",
author="Carlos Palol",
author_email="carlos.palol@awarepixel.com",
url="https://github.com/carlospalol/django-moneyfie... | <commit_before>from distutils.core import setup
DESCRIPTION="""
"""
setup(
name="django-moneyfield",
description="Django Money Model Field",
long_description=DESCRIPTION,
version="0.2",
author="Carlos Palol",
author_email="carlos.palol@awarepixel.com",
url="http://www.awarepixel.com",
... | from distutils.core import setup
DESCRIPTION="""
"""
setup(
name="django-moneyfield",
description="Django Money Model Field",
long_description=DESCRIPTION,
version="0.2",
author="Carlos Palol",
author_email="carlos.palol@awarepixel.com",
url="https://github.com/carlospalol/django-moneyfie... | from distutils.core import setup
DESCRIPTION="""
"""
setup(
name="django-moneyfield",
description="Django Money Model Field",
long_description=DESCRIPTION,
version="0.2",
author="Carlos Palol",
author_email="carlos.palol@awarepixel.com",
url="http://www.awarepixel.com",
packages=[
... | <commit_before>from distutils.core import setup
DESCRIPTION="""
"""
setup(
name="django-moneyfield",
description="Django Money Model Field",
long_description=DESCRIPTION,
version="0.2",
author="Carlos Palol",
author_email="carlos.palol@awarepixel.com",
url="http://www.awarepixel.com",
... |
343de22958293ceedc3d86ecd9ebd97bf5747d55 | setup.py | setup.py | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name='adm-client',
version='0.1',
author='Andrew Druchenko',
author_email='bananos@dev.co.ua',
url='',
description='Python client for Amazon Device Messaging (ADM)',
long_description=open('... | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name='adm-client',
version='0.1',
author='Andrew Druchenko',
author_email='bananos@dev.co.ua',
url='',
description='Python client for Amazon Device Messaging (ADM)',
long_description=open('... | Define explicit url for required package deps | Define explicit url for required package deps
| Python | apache-2.0 | bananos/adm-client | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name='adm-client',
version='0.1',
author='Andrew Druchenko',
author_email='bananos@dev.co.ua',
url='',
description='Python client for Amazon Device Messaging (ADM)',
long_description=open('... | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name='adm-client',
version='0.1',
author='Andrew Druchenko',
author_email='bananos@dev.co.ua',
url='',
description='Python client for Amazon Device Messaging (ADM)',
long_description=open('... | <commit_before>try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name='adm-client',
version='0.1',
author='Andrew Druchenko',
author_email='bananos@dev.co.ua',
url='',
description='Python client for Amazon Device Messaging (ADM)',
long_des... | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name='adm-client',
version='0.1',
author='Andrew Druchenko',
author_email='bananos@dev.co.ua',
url='',
description='Python client for Amazon Device Messaging (ADM)',
long_description=open('... | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name='adm-client',
version='0.1',
author='Andrew Druchenko',
author_email='bananos@dev.co.ua',
url='',
description='Python client for Amazon Device Messaging (ADM)',
long_description=open('... | <commit_before>try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name='adm-client',
version='0.1',
author='Andrew Druchenko',
author_email='bananos@dev.co.ua',
url='',
description='Python client for Amazon Device Messaging (ADM)',
long_des... |
e15cf381307d79d227f4f0fab94f731591f6f639 | setup.py | setup.py | import os
import sys
from distutils.core import setup
# Don't import stripe module here, since deps may not be installed
sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'stripe'))
import importer
import version
path, script = os.path.split(sys.argv[0])
os.chdir(os.path.abspath(path))
# Get simplejson if w... | import os
import sys
from distutils.core import setup
# Don't import stripe module here, since deps may not be installed
sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'stripe'))
import importer
import version
path, script = os.path.split(sys.argv[0])
os.chdir(os.path.abspath(path))
# Get simplejson if w... | Make install_requires into an array | Make install_requires into an array
| Python | mit | zenmeso/stripe-python,HashNuke/stripe-python,koobs/stripe-python,alexmic/stripe-python,speedplane/stripe-python,uploadcare/stripe-python,Khan/stripe-python,stripe/stripe-python,NahomAgidew/stripe-python,woodb/stripe-python | import os
import sys
from distutils.core import setup
# Don't import stripe module here, since deps may not be installed
sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'stripe'))
import importer
import version
path, script = os.path.split(sys.argv[0])
os.chdir(os.path.abspath(path))
# Get simplejson if w... | import os
import sys
from distutils.core import setup
# Don't import stripe module here, since deps may not be installed
sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'stripe'))
import importer
import version
path, script = os.path.split(sys.argv[0])
os.chdir(os.path.abspath(path))
# Get simplejson if w... | <commit_before>import os
import sys
from distutils.core import setup
# Don't import stripe module here, since deps may not be installed
sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'stripe'))
import importer
import version
path, script = os.path.split(sys.argv[0])
os.chdir(os.path.abspath(path))
# Get ... | import os
import sys
from distutils.core import setup
# Don't import stripe module here, since deps may not be installed
sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'stripe'))
import importer
import version
path, script = os.path.split(sys.argv[0])
os.chdir(os.path.abspath(path))
# Get simplejson if w... | import os
import sys
from distutils.core import setup
# Don't import stripe module here, since deps may not be installed
sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'stripe'))
import importer
import version
path, script = os.path.split(sys.argv[0])
os.chdir(os.path.abspath(path))
# Get simplejson if w... | <commit_before>import os
import sys
from distutils.core import setup
# Don't import stripe module here, since deps may not be installed
sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'stripe'))
import importer
import version
path, script = os.path.split(sys.argv[0])
os.chdir(os.path.abspath(path))
# Get ... |
f0811d8dd5a6e2f43c6821b7e827810106719b6e | setup.py | setup.py | #!/usr/bin/env python
# coding: utf-8
from setuptools import setup
from setuptools import find_packages
classifiers = [
"Intended Audience :: Developers",
"Programming Language :: Python",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries",
"Environment :: Web Envir... | #!/usr/bin/env python
# coding: utf-8
from setuptools import setup
from setuptools import find_packages
classifiers = [
"Intended Audience :: Developers",
"Programming Language :: Python",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries",
"Environment :: Web Envir... | Use requests 0.14.1 from now on. | Use requests 0.14.1 from now on.
| Python | bsd-2-clause | aolieman/pyspotlight,ubergrape/pyspotlight | #!/usr/bin/env python
# coding: utf-8
from setuptools import setup
from setuptools import find_packages
classifiers = [
"Intended Audience :: Developers",
"Programming Language :: Python",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries",
"Environment :: Web Envir... | #!/usr/bin/env python
# coding: utf-8
from setuptools import setup
from setuptools import find_packages
classifiers = [
"Intended Audience :: Developers",
"Programming Language :: Python",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries",
"Environment :: Web Envir... | <commit_before>#!/usr/bin/env python
# coding: utf-8
from setuptools import setup
from setuptools import find_packages
classifiers = [
"Intended Audience :: Developers",
"Programming Language :: Python",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries",
"Environme... | #!/usr/bin/env python
# coding: utf-8
from setuptools import setup
from setuptools import find_packages
classifiers = [
"Intended Audience :: Developers",
"Programming Language :: Python",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries",
"Environment :: Web Envir... | #!/usr/bin/env python
# coding: utf-8
from setuptools import setup
from setuptools import find_packages
classifiers = [
"Intended Audience :: Developers",
"Programming Language :: Python",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries",
"Environment :: Web Envir... | <commit_before>#!/usr/bin/env python
# coding: utf-8
from setuptools import setup
from setuptools import find_packages
classifiers = [
"Intended Audience :: Developers",
"Programming Language :: Python",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries",
"Environme... |
ec1cff26d48b9fac3dd9bab2e33b17d3faea67e8 | setup.py | setup.py | #!/usr/bin/python
# -*- coding: utf-8 -*-
from setuptools import find_packages
from setuptools import setup
__version__ = "0.13.0"
setup(
name='pyramid_zipkin',
version=__version__,
provides=["pyramid_zipkin"],
author='Yelp, Inc.',
author_email='opensource+pyramid-zipkin@yelp.com',
license='C... | #!/usr/bin/python
# -*- coding: utf-8 -*-
from setuptools import find_packages
from setuptools import setup
__version__ = "0.13.0"
setup(
name='pyramid_zipkin',
version=__version__,
provides=["pyramid_zipkin"],
author='Yelp, Inc.',
author_email='opensource+pyramid-zipkin@yelp.com',
license='C... | Sort package list in required installs | Sort package list in required installs
| Python | apache-2.0 | bplotnick/pyramid_zipkin,Yelp/pyramid_zipkin | #!/usr/bin/python
# -*- coding: utf-8 -*-
from setuptools import find_packages
from setuptools import setup
__version__ = "0.13.0"
setup(
name='pyramid_zipkin',
version=__version__,
provides=["pyramid_zipkin"],
author='Yelp, Inc.',
author_email='opensource+pyramid-zipkin@yelp.com',
license='C... | #!/usr/bin/python
# -*- coding: utf-8 -*-
from setuptools import find_packages
from setuptools import setup
__version__ = "0.13.0"
setup(
name='pyramid_zipkin',
version=__version__,
provides=["pyramid_zipkin"],
author='Yelp, Inc.',
author_email='opensource+pyramid-zipkin@yelp.com',
license='C... | <commit_before>#!/usr/bin/python
# -*- coding: utf-8 -*-
from setuptools import find_packages
from setuptools import setup
__version__ = "0.13.0"
setup(
name='pyramid_zipkin',
version=__version__,
provides=["pyramid_zipkin"],
author='Yelp, Inc.',
author_email='opensource+pyramid-zipkin@yelp.com',... | #!/usr/bin/python
# -*- coding: utf-8 -*-
from setuptools import find_packages
from setuptools import setup
__version__ = "0.13.0"
setup(
name='pyramid_zipkin',
version=__version__,
provides=["pyramid_zipkin"],
author='Yelp, Inc.',
author_email='opensource+pyramid-zipkin@yelp.com',
license='C... | #!/usr/bin/python
# -*- coding: utf-8 -*-
from setuptools import find_packages
from setuptools import setup
__version__ = "0.13.0"
setup(
name='pyramid_zipkin',
version=__version__,
provides=["pyramid_zipkin"],
author='Yelp, Inc.',
author_email='opensource+pyramid-zipkin@yelp.com',
license='C... | <commit_before>#!/usr/bin/python
# -*- coding: utf-8 -*-
from setuptools import find_packages
from setuptools import setup
__version__ = "0.13.0"
setup(
name='pyramid_zipkin',
version=__version__,
provides=["pyramid_zipkin"],
author='Yelp, Inc.',
author_email='opensource+pyramid-zipkin@yelp.com',... |
f36cc2d92c25d0a79b94647e64c26e74f44cf0da | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
settings = dict()
# Publish
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
settings.update(
name='switche... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
settings = dict()
# Publish
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
settings.update(
name='switche... | Add LICENSE to package data | Add LICENSE to package data
The LICENSE file isn't included with the version found on PyPI. Including it in the `package_data` argument passed to `setup` should fix this.
| Python | bsd-3-clause | dirn/switches,dirn/switches | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
settings = dict()
# Publish
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
settings.update(
name='switche... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
settings = dict()
# Publish
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
settings.update(
name='switche... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
settings = dict()
# Publish
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
settings.update(
... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
settings = dict()
# Publish
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
settings.update(
name='switche... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
settings = dict()
# Publish
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
settings.update(
name='switche... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
settings = dict()
# Publish
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
settings.update(
... |
55afba02b9ec0de224144ed505590dffea836598 | setup.py | setup.py | #!/usr/bin/env python2
from distutils.core import setup
setup(
name = 'periodical',
description = 'Create a Kindle periodical from given URL(s)',
version = '0.1.0',
author = 'Tom Vincent',
author_email = 'http://tlvince.com/contact/',
url = 'https://github.com/tlvince/periodical',
license ... | #!/usr/bin/env python2
from distutils.core import setup
setup(
name = 'periodical',
description = 'Create a Kindle periodical from given URL(s)',
version = '0.1.0',
author = 'Tom Vincent',
author_email = 'http://tlvince.com/contact/',
url = 'https://github.com/tlvince/periodical',
license ... | Add yaml to requires list | Add yaml to requires list
| Python | mit | tlvince/periodical | #!/usr/bin/env python2
from distutils.core import setup
setup(
name = 'periodical',
description = 'Create a Kindle periodical from given URL(s)',
version = '0.1.0',
author = 'Tom Vincent',
author_email = 'http://tlvince.com/contact/',
url = 'https://github.com/tlvince/periodical',
license ... | #!/usr/bin/env python2
from distutils.core import setup
setup(
name = 'periodical',
description = 'Create a Kindle periodical from given URL(s)',
version = '0.1.0',
author = 'Tom Vincent',
author_email = 'http://tlvince.com/contact/',
url = 'https://github.com/tlvince/periodical',
license ... | <commit_before>#!/usr/bin/env python2
from distutils.core import setup
setup(
name = 'periodical',
description = 'Create a Kindle periodical from given URL(s)',
version = '0.1.0',
author = 'Tom Vincent',
author_email = 'http://tlvince.com/contact/',
url = 'https://github.com/tlvince/periodical... | #!/usr/bin/env python2
from distutils.core import setup
setup(
name = 'periodical',
description = 'Create a Kindle periodical from given URL(s)',
version = '0.1.0',
author = 'Tom Vincent',
author_email = 'http://tlvince.com/contact/',
url = 'https://github.com/tlvince/periodical',
license ... | #!/usr/bin/env python2
from distutils.core import setup
setup(
name = 'periodical',
description = 'Create a Kindle periodical from given URL(s)',
version = '0.1.0',
author = 'Tom Vincent',
author_email = 'http://tlvince.com/contact/',
url = 'https://github.com/tlvince/periodical',
license ... | <commit_before>#!/usr/bin/env python2
from distutils.core import setup
setup(
name = 'periodical',
description = 'Create a Kindle periodical from given URL(s)',
version = '0.1.0',
author = 'Tom Vincent',
author_email = 'http://tlvince.com/contact/',
url = 'https://github.com/tlvince/periodical... |
7f5186caa6b59df412d62b052406dbe675b9e463 | OpenSearchInNewTab.py | OpenSearchInNewTab.py | import sublime_plugin
DEFAULT_NAME = 'Find Results'
ALT_NAME = 'Find Results '
class OpenSearchInNewTab(sublime_plugin.EventListener):
# set a bit changed name
# so the tab won't be bothered
# during new search
def on_activated(self, view):
if view.name() == DEFAULT_NAME:
view.se... | import sublime_plugin
DEFAULT_NAME = 'Find Results'
ALT_NAME = 'Find Results '
class OpenSearchInNewTab(sublime_plugin.EventListener):
# set a bit changed name
# so the tab won't be bothered
# during new search
def on_activated(self, view):
if self.is_search_view(view):
self.appl... | Refactor API to a more readable form | Refactor API to a more readable form
| Python | mit | everyonesdesign/OpenSearchInNewTab | import sublime_plugin
DEFAULT_NAME = 'Find Results'
ALT_NAME = 'Find Results '
class OpenSearchInNewTab(sublime_plugin.EventListener):
# set a bit changed name
# so the tab won't be bothered
# during new search
def on_activated(self, view):
if view.name() == DEFAULT_NAME:
view.se... | import sublime_plugin
DEFAULT_NAME = 'Find Results'
ALT_NAME = 'Find Results '
class OpenSearchInNewTab(sublime_plugin.EventListener):
# set a bit changed name
# so the tab won't be bothered
# during new search
def on_activated(self, view):
if self.is_search_view(view):
self.appl... | <commit_before>import sublime_plugin
DEFAULT_NAME = 'Find Results'
ALT_NAME = 'Find Results '
class OpenSearchInNewTab(sublime_plugin.EventListener):
# set a bit changed name
# so the tab won't be bothered
# during new search
def on_activated(self, view):
if view.name() == DEFAULT_NAME:
... | import sublime_plugin
DEFAULT_NAME = 'Find Results'
ALT_NAME = 'Find Results '
class OpenSearchInNewTab(sublime_plugin.EventListener):
# set a bit changed name
# so the tab won't be bothered
# during new search
def on_activated(self, view):
if self.is_search_view(view):
self.appl... | import sublime_plugin
DEFAULT_NAME = 'Find Results'
ALT_NAME = 'Find Results '
class OpenSearchInNewTab(sublime_plugin.EventListener):
# set a bit changed name
# so the tab won't be bothered
# during new search
def on_activated(self, view):
if view.name() == DEFAULT_NAME:
view.se... | <commit_before>import sublime_plugin
DEFAULT_NAME = 'Find Results'
ALT_NAME = 'Find Results '
class OpenSearchInNewTab(sublime_plugin.EventListener):
# set a bit changed name
# so the tab won't be bothered
# during new search
def on_activated(self, view):
if view.name() == DEFAULT_NAME:
... |
ad1ac318d87a16aab0b55e3ccd238c769b1f3e0a | setup.py | setup.py | import subprocess
import sys
from setuptools import Command, setup
class RunTests(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
errno = subprocess.call([sys.executable, '-m', 'unittest', 'gis_metadata.tests.te... | import subprocess
import sys
from setuptools import Command, setup
class RunTests(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
errno = subprocess.call([sys.executable, '-m', 'unittest', 'gis_metadata.tests.te... | Tag increment and new keyword. | Tag increment and new keyword. | Python | bsd-3-clause | consbio/gis-metadata-parser | import subprocess
import sys
from setuptools import Command, setup
class RunTests(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
errno = subprocess.call([sys.executable, '-m', 'unittest', 'gis_metadata.tests.te... | import subprocess
import sys
from setuptools import Command, setup
class RunTests(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
errno = subprocess.call([sys.executable, '-m', 'unittest', 'gis_metadata.tests.te... | <commit_before>import subprocess
import sys
from setuptools import Command, setup
class RunTests(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
errno = subprocess.call([sys.executable, '-m', 'unittest', 'gis_me... | import subprocess
import sys
from setuptools import Command, setup
class RunTests(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
errno = subprocess.call([sys.executable, '-m', 'unittest', 'gis_metadata.tests.te... | import subprocess
import sys
from setuptools import Command, setup
class RunTests(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
errno = subprocess.call([sys.executable, '-m', 'unittest', 'gis_metadata.tests.te... | <commit_before>import subprocess
import sys
from setuptools import Command, setup
class RunTests(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
errno = subprocess.call([sys.executable, '-m', 'unittest', 'gis_me... |
7fbd455206de035b2deb46082d7f331e1a87e806 | setup.py | setup.py | import setuptools
setuptools.setup(
python_requires='<3.8',
entry_points={
"console_scripts": [
"microscopeimagequality=microscopeimagequality.application:command"
]
},
install_requires=[
"click",
"matplotlib",
"nose",
"numpy<1.19.0,>=1.16.0",... | import setuptools
setuptools.setup(
python_requires='<3.8',
entry_points={
"console_scripts": [
"microscopeimagequality=microscopeimagequality.application:command"
]
},
install_requires=[
"click",
"matplotlib",
"nose",
"numpy<1.19.0,>=1.16.0",... | Bump tensorflow from 2.5.1 to 2.5.2 | Bump tensorflow from 2.5.1 to 2.5.2
Bumps [tensorflow](https://github.com/tensorflow/tensorflow) from 2.5.1 to 2.5.2.
- [Release notes](https://github.com/tensorflow/tensorflow/releases)
- [Changelog](https://github.com/tensorflow/tensorflow/blob/master/RELEASE.md)
- [Commits](https://github.com/tensorflow/tensorflow/... | Python | apache-2.0 | google/microscopeimagequality,google/microscopeimagequality | import setuptools
setuptools.setup(
python_requires='<3.8',
entry_points={
"console_scripts": [
"microscopeimagequality=microscopeimagequality.application:command"
]
},
install_requires=[
"click",
"matplotlib",
"nose",
"numpy<1.19.0,>=1.16.0",... | import setuptools
setuptools.setup(
python_requires='<3.8',
entry_points={
"console_scripts": [
"microscopeimagequality=microscopeimagequality.application:command"
]
},
install_requires=[
"click",
"matplotlib",
"nose",
"numpy<1.19.0,>=1.16.0",... | <commit_before>import setuptools
setuptools.setup(
python_requires='<3.8',
entry_points={
"console_scripts": [
"microscopeimagequality=microscopeimagequality.application:command"
]
},
install_requires=[
"click",
"matplotlib",
"nose",
"numpy<1.... | import setuptools
setuptools.setup(
python_requires='<3.8',
entry_points={
"console_scripts": [
"microscopeimagequality=microscopeimagequality.application:command"
]
},
install_requires=[
"click",
"matplotlib",
"nose",
"numpy<1.19.0,>=1.16.0",... | import setuptools
setuptools.setup(
python_requires='<3.8',
entry_points={
"console_scripts": [
"microscopeimagequality=microscopeimagequality.application:command"
]
},
install_requires=[
"click",
"matplotlib",
"nose",
"numpy<1.19.0,>=1.16.0",... | <commit_before>import setuptools
setuptools.setup(
python_requires='<3.8',
entry_points={
"console_scripts": [
"microscopeimagequality=microscopeimagequality.application:command"
]
},
install_requires=[
"click",
"matplotlib",
"nose",
"numpy<1.... |
fd1a0850f9c4c5c34accf64af47ac9bbf25faf74 | setup.py | setup.py | import re
from pathlib import Path
from setuptools import setup, find_packages
with Path(__file__).with_name('dvhb_hybrid').joinpath('__init__.py').open() as f:
VERSION = re.compile(r'.*__version__ = \'(.*?)\'', re.S).match(f.read()).group(1)
setup(
name='dvhb-hybrid',
version=VERSION,
description='... | import re
from pathlib import Path
from setuptools import setup, find_packages
with Path(__file__).with_name('dvhb_hybrid').joinpath('__init__.py').open() as f:
VERSION = re.compile(r'.*__version__ = \'(.*?)\'', re.S).match(f.read()).group(1)
setup(
name='dvhb-hybrid',
version=VERSION,
description='... | Add aioauth-client into package install_requires | Add aioauth-client into package install_requires
| Python | mit | dvhbru/dvhb-hybrid | import re
from pathlib import Path
from setuptools import setup, find_packages
with Path(__file__).with_name('dvhb_hybrid').joinpath('__init__.py').open() as f:
VERSION = re.compile(r'.*__version__ = \'(.*?)\'', re.S).match(f.read()).group(1)
setup(
name='dvhb-hybrid',
version=VERSION,
description='... | import re
from pathlib import Path
from setuptools import setup, find_packages
with Path(__file__).with_name('dvhb_hybrid').joinpath('__init__.py').open() as f:
VERSION = re.compile(r'.*__version__ = \'(.*?)\'', re.S).match(f.read()).group(1)
setup(
name='dvhb-hybrid',
version=VERSION,
description='... | <commit_before>import re
from pathlib import Path
from setuptools import setup, find_packages
with Path(__file__).with_name('dvhb_hybrid').joinpath('__init__.py').open() as f:
VERSION = re.compile(r'.*__version__ = \'(.*?)\'', re.S).match(f.read()).group(1)
setup(
name='dvhb-hybrid',
version=VERSION,
... | import re
from pathlib import Path
from setuptools import setup, find_packages
with Path(__file__).with_name('dvhb_hybrid').joinpath('__init__.py').open() as f:
VERSION = re.compile(r'.*__version__ = \'(.*?)\'', re.S).match(f.read()).group(1)
setup(
name='dvhb-hybrid',
version=VERSION,
description='... | import re
from pathlib import Path
from setuptools import setup, find_packages
with Path(__file__).with_name('dvhb_hybrid').joinpath('__init__.py').open() as f:
VERSION = re.compile(r'.*__version__ = \'(.*?)\'', re.S).match(f.read()).group(1)
setup(
name='dvhb-hybrid',
version=VERSION,
description='... | <commit_before>import re
from pathlib import Path
from setuptools import setup, find_packages
with Path(__file__).with_name('dvhb_hybrid').joinpath('__init__.py').open() as f:
VERSION = re.compile(r'.*__version__ = \'(.*?)\'', re.S).match(f.read()).group(1)
setup(
name='dvhb-hybrid',
version=VERSION,
... |
39acd88ede1ea4beae22fc7596a9b886554af0b2 | setup.py | setup.py | import subprocess
import sys
from setuptools import Command, setup
class RunTests(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
errno = subprocess.call([sys.executable, '-m', 'unittest', 'parserutils.tests.tes... | import subprocess
import sys
from setuptools import Command, setup
class RunTests(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
errno = subprocess.call([sys.executable, '-m', 'unittest', 'parserutils.tests.tes... | Increment version for minor fix. | Increment version for minor fix. | Python | bsd-3-clause | consbio/parserutils | import subprocess
import sys
from setuptools import Command, setup
class RunTests(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
errno = subprocess.call([sys.executable, '-m', 'unittest', 'parserutils.tests.tes... | import subprocess
import sys
from setuptools import Command, setup
class RunTests(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
errno = subprocess.call([sys.executable, '-m', 'unittest', 'parserutils.tests.tes... | <commit_before>import subprocess
import sys
from setuptools import Command, setup
class RunTests(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
errno = subprocess.call([sys.executable, '-m', 'unittest', 'parser... | import subprocess
import sys
from setuptools import Command, setup
class RunTests(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
errno = subprocess.call([sys.executable, '-m', 'unittest', 'parserutils.tests.tes... | import subprocess
import sys
from setuptools import Command, setup
class RunTests(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
errno = subprocess.call([sys.executable, '-m', 'unittest', 'parserutils.tests.tes... | <commit_before>import subprocess
import sys
from setuptools import Command, setup
class RunTests(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
errno = subprocess.call([sys.executable, '-m', 'unittest', 'parser... |
6069605bbfff4edbb57562f27ce9fa5d7af6a3b7 | setup.py | setup.py | from setuptools import setup, find_packages
version = '0.0.7dev'
setup(
name = 'buildbot_travis',
version = version,
description = "Adapt buildbot to work a little more like Travis.",
keywords = "buildbot travis ci",
author = "John Carr",
author_email = "john.carr@unrouted.co.uk",
license=... | from setuptools import setup, find_packages
version = '0.0.7dev'
setup(
name = 'buildbot_travis',
version = version,
description = "Adapt buildbot to work a little more like Travis.",
keywords = "buildbot travis ci",
url = "http://github.com/Jc2k/buildbot_travis",
author = "John Carr",
aut... | Fix url metadata so zest works | Fix url metadata so zest works
| Python | unknown | tardyp/buildbot_travis,buildbot/buildbot_travis,tardyp/buildbot_travis,buildbot/buildbot_travis,isotoma/buildbot_travis,isotoma/buildbot_travis,buildbot/buildbot_travis,tardyp/buildbot_travis,tardyp/buildbot_travis | from setuptools import setup, find_packages
version = '0.0.7dev'
setup(
name = 'buildbot_travis',
version = version,
description = "Adapt buildbot to work a little more like Travis.",
keywords = "buildbot travis ci",
author = "John Carr",
author_email = "john.carr@unrouted.co.uk",
license=... | from setuptools import setup, find_packages
version = '0.0.7dev'
setup(
name = 'buildbot_travis',
version = version,
description = "Adapt buildbot to work a little more like Travis.",
keywords = "buildbot travis ci",
url = "http://github.com/Jc2k/buildbot_travis",
author = "John Carr",
aut... | <commit_before>from setuptools import setup, find_packages
version = '0.0.7dev'
setup(
name = 'buildbot_travis',
version = version,
description = "Adapt buildbot to work a little more like Travis.",
keywords = "buildbot travis ci",
author = "John Carr",
author_email = "john.carr@unrouted.co.uk... | from setuptools import setup, find_packages
version = '0.0.7dev'
setup(
name = 'buildbot_travis',
version = version,
description = "Adapt buildbot to work a little more like Travis.",
keywords = "buildbot travis ci",
url = "http://github.com/Jc2k/buildbot_travis",
author = "John Carr",
aut... | from setuptools import setup, find_packages
version = '0.0.7dev'
setup(
name = 'buildbot_travis',
version = version,
description = "Adapt buildbot to work a little more like Travis.",
keywords = "buildbot travis ci",
author = "John Carr",
author_email = "john.carr@unrouted.co.uk",
license=... | <commit_before>from setuptools import setup, find_packages
version = '0.0.7dev'
setup(
name = 'buildbot_travis',
version = version,
description = "Adapt buildbot to work a little more like Travis.",
keywords = "buildbot travis ci",
author = "John Carr",
author_email = "john.carr@unrouted.co.uk... |
315fdda95bc9c8e967033fa2ec1981cc44a6feab | setup.py | setup.py | import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name='scholarly',
version='0.4.1',
author='Steven A. Cholewiak, Panos Ipeirotis, Victor Silva',
author_email='steven@cholewiak.com, panos@stern.nyu.edu, vsilva@ualberta.ca',
description='Simple ... | import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name='scholarly',
version='0.4.2',
author='Steven A. Cholewiak, Panos Ipeirotis, Victor Silva',
author_email='steven@cholewiak.com, panos@stern.nyu.edu, vsilva@ualberta.ca',
description='Simple ... | Fix release version to 0.4.2 | Fix release version to 0.4.2
| Python | unlicense | OrganicIrradiation/scholarly | import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name='scholarly',
version='0.4.1',
author='Steven A. Cholewiak, Panos Ipeirotis, Victor Silva',
author_email='steven@cholewiak.com, panos@stern.nyu.edu, vsilva@ualberta.ca',
description='Simple ... | import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name='scholarly',
version='0.4.2',
author='Steven A. Cholewiak, Panos Ipeirotis, Victor Silva',
author_email='steven@cholewiak.com, panos@stern.nyu.edu, vsilva@ualberta.ca',
description='Simple ... | <commit_before>import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name='scholarly',
version='0.4.1',
author='Steven A. Cholewiak, Panos Ipeirotis, Victor Silva',
author_email='steven@cholewiak.com, panos@stern.nyu.edu, vsilva@ualberta.ca',
descr... | import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name='scholarly',
version='0.4.2',
author='Steven A. Cholewiak, Panos Ipeirotis, Victor Silva',
author_email='steven@cholewiak.com, panos@stern.nyu.edu, vsilva@ualberta.ca',
description='Simple ... | import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name='scholarly',
version='0.4.1',
author='Steven A. Cholewiak, Panos Ipeirotis, Victor Silva',
author_email='steven@cholewiak.com, panos@stern.nyu.edu, vsilva@ualberta.ca',
description='Simple ... | <commit_before>import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name='scholarly',
version='0.4.1',
author='Steven A. Cholewiak, Panos Ipeirotis, Victor Silva',
author_email='steven@cholewiak.com, panos@stern.nyu.edu, vsilva@ualberta.ca',
descr... |
94547fc8554c7e193ceb4fe281ea72ffd2a0dd3a | setup.py | setup.py | #!/usr/bin/env python
# Copyright (c) 2013 Hewlett-Packard Development Company, L.P.
#
# 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... | #!/usr/bin/env python
# Copyright (c) 2013 Hewlett-Packard Development Company, L.P.
#
# 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... | Remove explicit depend on distribute. | Remove explicit depend on distribute.
Things in the world are moving towards setuptools 0.7, and
there is not a path between distribute and setuptools. Our explicit
dependency on setuptools is causing us to have to write patches to
try to jump through additional hoops to get it to install in the
right contexts.
Fixes... | Python | apache-2.0 | openstack-attic/oslo.version,emonty/oslo.version | #!/usr/bin/env python
# Copyright (c) 2013 Hewlett-Packard Development Company, L.P.
#
# 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... | #!/usr/bin/env python
# Copyright (c) 2013 Hewlett-Packard Development Company, L.P.
#
# 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... | <commit_before>#!/usr/bin/env python
# Copyright (c) 2013 Hewlett-Packard Development Company, L.P.
#
# 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/LICEN... | #!/usr/bin/env python
# Copyright (c) 2013 Hewlett-Packard Development Company, L.P.
#
# 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... | #!/usr/bin/env python
# Copyright (c) 2013 Hewlett-Packard Development Company, L.P.
#
# 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... | <commit_before>#!/usr/bin/env python
# Copyright (c) 2013 Hewlett-Packard Development Company, L.P.
#
# 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/LICEN... |
48f2618c9fca47e281b4aa52881e050166aefb10 | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup
setup(
name='hashmerge',
version='0.1',
url='https://github.com/lebauce/hashmerge',
author='Sylvain Baubeau',
author_email='bob@glumol.com',
description="Merges two arbitrarily deep hashes into a single hash.",
license='MIT',
include_p... | #!/usr/bin/env python
from setuptools import setup
with open("README.md", "r") as fh:
long_description = fh.read()
setup(
name='hashmerge',
version='0.1',
url='https://github.com/lebauce/hashmerge',
author='Sylvain Baubeau',
author_email='bob@glumol.com',
description="Merges two arbitrari... | Use README.md as long description | Use README.md as long description
| Python | mit | lebauce/hashmerge | #!/usr/bin/env python
from setuptools import setup
setup(
name='hashmerge',
version='0.1',
url='https://github.com/lebauce/hashmerge',
author='Sylvain Baubeau',
author_email='bob@glumol.com',
description="Merges two arbitrarily deep hashes into a single hash.",
license='MIT',
include_p... | #!/usr/bin/env python
from setuptools import setup
with open("README.md", "r") as fh:
long_description = fh.read()
setup(
name='hashmerge',
version='0.1',
url='https://github.com/lebauce/hashmerge',
author='Sylvain Baubeau',
author_email='bob@glumol.com',
description="Merges two arbitrari... | <commit_before>#!/usr/bin/env python
from setuptools import setup
setup(
name='hashmerge',
version='0.1',
url='https://github.com/lebauce/hashmerge',
author='Sylvain Baubeau',
author_email='bob@glumol.com',
description="Merges two arbitrarily deep hashes into a single hash.",
license='MIT'... | #!/usr/bin/env python
from setuptools import setup
with open("README.md", "r") as fh:
long_description = fh.read()
setup(
name='hashmerge',
version='0.1',
url='https://github.com/lebauce/hashmerge',
author='Sylvain Baubeau',
author_email='bob@glumol.com',
description="Merges two arbitrari... | #!/usr/bin/env python
from setuptools import setup
setup(
name='hashmerge',
version='0.1',
url='https://github.com/lebauce/hashmerge',
author='Sylvain Baubeau',
author_email='bob@glumol.com',
description="Merges two arbitrarily deep hashes into a single hash.",
license='MIT',
include_p... | <commit_before>#!/usr/bin/env python
from setuptools import setup
setup(
name='hashmerge',
version='0.1',
url='https://github.com/lebauce/hashmerge',
author='Sylvain Baubeau',
author_email='bob@glumol.com',
description="Merges two arbitrarily deep hashes into a single hash.",
license='MIT'... |
a759875e123dcbd37f3eb21993409397f818f6c6 | src/pudl/metadata/__init__.py | src/pudl/metadata/__init__.py | """Metadata constants and methods."""
from .classes import Resource
from .resources import RESOURCES
RESOURCES = {name: Resource.from_id(name) for name in RESOURCES}
| """Metadata constants and methods."""
import pydantic
from . import resources
from .classes import Resource
RESOURCES = {}
errors = []
for name in resources.RESOURCES:
try:
RESOURCES[name] = Resource.from_id(name)
except pydantic.ValidationError as error:
errors.append("\n" + f"[{name}] {erro... | Print all resource validation errors | Print all resource validation errors
| Python | mit | catalyst-cooperative/pudl,catalyst-cooperative/pudl | """Metadata constants and methods."""
from .classes import Resource
from .resources import RESOURCES
RESOURCES = {name: Resource.from_id(name) for name in RESOURCES}
Print all resource validation errors | """Metadata constants and methods."""
import pydantic
from . import resources
from .classes import Resource
RESOURCES = {}
errors = []
for name in resources.RESOURCES:
try:
RESOURCES[name] = Resource.from_id(name)
except pydantic.ValidationError as error:
errors.append("\n" + f"[{name}] {erro... | <commit_before>"""Metadata constants and methods."""
from .classes import Resource
from .resources import RESOURCES
RESOURCES = {name: Resource.from_id(name) for name in RESOURCES}
<commit_msg>Print all resource validation errors<commit_after> | """Metadata constants and methods."""
import pydantic
from . import resources
from .classes import Resource
RESOURCES = {}
errors = []
for name in resources.RESOURCES:
try:
RESOURCES[name] = Resource.from_id(name)
except pydantic.ValidationError as error:
errors.append("\n" + f"[{name}] {erro... | """Metadata constants and methods."""
from .classes import Resource
from .resources import RESOURCES
RESOURCES = {name: Resource.from_id(name) for name in RESOURCES}
Print all resource validation errors"""Metadata constants and methods."""
import pydantic
from . import resources
from .classes import Resource
RESOU... | <commit_before>"""Metadata constants and methods."""
from .classes import Resource
from .resources import RESOURCES
RESOURCES = {name: Resource.from_id(name) for name in RESOURCES}
<commit_msg>Print all resource validation errors<commit_after>"""Metadata constants and methods."""
import pydantic
from . import resou... |
36307802a45f94cb218ce9bbe4a4abc7704a973a | graphics/savefig.py | graphics/savefig.py | import os
import matplotlib.pyplot as plt
def savefig(filename,path="figs",fig=None,ext='eps',**kwargs):
# try:
# os.remove(path)
# except OSError as e:
# try:
# os.mkdir(path)
# except:
# pass
if not os.path.exists(path):
os.makedirs(path)
filename ... | import os
import matplotlib.pyplot as plt
def savefig(filename,path="figs",fig=None,ext='eps',**kwargs):
# try:
# os.remove(path)
# except OSError as e:
# try:
# os.mkdir(path)
# except:
# pass
if not os.path.exists(path):
os.makedirs(path)
filename ... | Save figures with white space cropped out | Save figures with white space cropped out
| Python | mit | joelfrederico/SciSalt | import os
import matplotlib.pyplot as plt
def savefig(filename,path="figs",fig=None,ext='eps',**kwargs):
# try:
# os.remove(path)
# except OSError as e:
# try:
# os.mkdir(path)
# except:
# pass
if not os.path.exists(path):
os.makedirs(path)
filename ... | import os
import matplotlib.pyplot as plt
def savefig(filename,path="figs",fig=None,ext='eps',**kwargs):
# try:
# os.remove(path)
# except OSError as e:
# try:
# os.mkdir(path)
# except:
# pass
if not os.path.exists(path):
os.makedirs(path)
filename ... | <commit_before>import os
import matplotlib.pyplot as plt
def savefig(filename,path="figs",fig=None,ext='eps',**kwargs):
# try:
# os.remove(path)
# except OSError as e:
# try:
# os.mkdir(path)
# except:
# pass
if not os.path.exists(path):
os.makedirs(pat... | import os
import matplotlib.pyplot as plt
def savefig(filename,path="figs",fig=None,ext='eps',**kwargs):
# try:
# os.remove(path)
# except OSError as e:
# try:
# os.mkdir(path)
# except:
# pass
if not os.path.exists(path):
os.makedirs(path)
filename ... | import os
import matplotlib.pyplot as plt
def savefig(filename,path="figs",fig=None,ext='eps',**kwargs):
# try:
# os.remove(path)
# except OSError as e:
# try:
# os.mkdir(path)
# except:
# pass
if not os.path.exists(path):
os.makedirs(path)
filename ... | <commit_before>import os
import matplotlib.pyplot as plt
def savefig(filename,path="figs",fig=None,ext='eps',**kwargs):
# try:
# os.remove(path)
# except OSError as e:
# try:
# os.mkdir(path)
# except:
# pass
if not os.path.exists(path):
os.makedirs(pat... |
e6a7548546b690118537ae2a52b63d39eea6580f | graphiter/models.py | graphiter/models.py | from django.db import models
from django.core.urlresolvers import reverse
class Chart(models.Model):
title = models.CharField(max_length=50)
url = models.CharField(max_length=1024)
def __unicode__(self):
return self.title
class Page(models.Model):
title = models.CharField(max_length=50)
slug = models.SlugFi... | from django.db import models
from django.core.urlresolvers import reverse
class Chart(models.Model):
title = models.CharField(max_length=50)
url = models.CharField(max_length=1024)
def __unicode__(self):
return self.title
class Page(models.Model):
title = models.CharField(max_length=50)
slug = models.SlugFi... | Add help_text for time_from and time_until | Add help_text for time_from and time_until | Python | bsd-2-clause | jwineinger/django-graphiter | from django.db import models
from django.core.urlresolvers import reverse
class Chart(models.Model):
title = models.CharField(max_length=50)
url = models.CharField(max_length=1024)
def __unicode__(self):
return self.title
class Page(models.Model):
title = models.CharField(max_length=50)
slug = models.SlugFi... | from django.db import models
from django.core.urlresolvers import reverse
class Chart(models.Model):
title = models.CharField(max_length=50)
url = models.CharField(max_length=1024)
def __unicode__(self):
return self.title
class Page(models.Model):
title = models.CharField(max_length=50)
slug = models.SlugFi... | <commit_before>from django.db import models
from django.core.urlresolvers import reverse
class Chart(models.Model):
title = models.CharField(max_length=50)
url = models.CharField(max_length=1024)
def __unicode__(self):
return self.title
class Page(models.Model):
title = models.CharField(max_length=50)
slug ... | from django.db import models
from django.core.urlresolvers import reverse
class Chart(models.Model):
title = models.CharField(max_length=50)
url = models.CharField(max_length=1024)
def __unicode__(self):
return self.title
class Page(models.Model):
title = models.CharField(max_length=50)
slug = models.SlugFi... | from django.db import models
from django.core.urlresolvers import reverse
class Chart(models.Model):
title = models.CharField(max_length=50)
url = models.CharField(max_length=1024)
def __unicode__(self):
return self.title
class Page(models.Model):
title = models.CharField(max_length=50)
slug = models.SlugFi... | <commit_before>from django.db import models
from django.core.urlresolvers import reverse
class Chart(models.Model):
title = models.CharField(max_length=50)
url = models.CharField(max_length=1024)
def __unicode__(self):
return self.title
class Page(models.Model):
title = models.CharField(max_length=50)
slug ... |
12f63ec4224185fc03176995d2cfc00c46c2ace3 | MoveByLinesCommand.py | MoveByLinesCommand.py | import sublime
import sublime_plugin
class MoveByLinesCommand(sublime_plugin.TextCommand):
def run(self, edit, forward=True, extend=False, number_of_lines=1):
for _ in range(number_of_lines):
self.view.run_command('move', {"by": "lines", "forward": forward, "extend": extend})
| import sublime
import sublime_plugin
class MoveByLinesCommand(sublime_plugin.TextCommand):
def is_selection_in_sight(self):
sel = self.view.sel()[0]
visible_region = self.view.visible_region()
in_sight = visible_region.intersects(sel) or visible_region.contains(sel)
return in_sigh... | Fix annoying issue with view scrolling | Fix annoying issue with view scrolling
| Python | unlicense | rahul-ramadas/BagOfTricks | import sublime
import sublime_plugin
class MoveByLinesCommand(sublime_plugin.TextCommand):
def run(self, edit, forward=True, extend=False, number_of_lines=1):
for _ in range(number_of_lines):
self.view.run_command('move', {"by": "lines", "forward": forward, "extend": extend})
Fix annoying iss... | import sublime
import sublime_plugin
class MoveByLinesCommand(sublime_plugin.TextCommand):
def is_selection_in_sight(self):
sel = self.view.sel()[0]
visible_region = self.view.visible_region()
in_sight = visible_region.intersects(sel) or visible_region.contains(sel)
return in_sigh... | <commit_before>import sublime
import sublime_plugin
class MoveByLinesCommand(sublime_plugin.TextCommand):
def run(self, edit, forward=True, extend=False, number_of_lines=1):
for _ in range(number_of_lines):
self.view.run_command('move', {"by": "lines", "forward": forward, "extend": extend})
<... | import sublime
import sublime_plugin
class MoveByLinesCommand(sublime_plugin.TextCommand):
def is_selection_in_sight(self):
sel = self.view.sel()[0]
visible_region = self.view.visible_region()
in_sight = visible_region.intersects(sel) or visible_region.contains(sel)
return in_sigh... | import sublime
import sublime_plugin
class MoveByLinesCommand(sublime_plugin.TextCommand):
def run(self, edit, forward=True, extend=False, number_of_lines=1):
for _ in range(number_of_lines):
self.view.run_command('move', {"by": "lines", "forward": forward, "extend": extend})
Fix annoying iss... | <commit_before>import sublime
import sublime_plugin
class MoveByLinesCommand(sublime_plugin.TextCommand):
def run(self, edit, forward=True, extend=False, number_of_lines=1):
for _ in range(number_of_lines):
self.view.run_command('move', {"by": "lines", "forward": forward, "extend": extend})
<... |
85e8ddb6d72b7f21b49236ea4084029dec09a6f9 | projects/forms.py | projects/forms.py | from django import forms
from .models import Project
class ProjectForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
self.user = kwargs.pop('user')
super(ProjectForm, self).__init__(*args, **kwargs)
def save(self, *args, **kwargs):
instance = super(ProjectForm, self).save(co... | from django import forms
from .models import Project
class ProjectForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
self.user = kwargs.pop('user')
super(ProjectForm, self).__init__(*args, **kwargs)
def save(self, *args, **kwargs):
instance = super(ProjectForm, self).save(co... | Exclude fields from the RestrcitedForm (no verification) | Exclude fields from the RestrcitedForm (no verification)
| Python | mit | Hackfmi/Diaphanum,Hackfmi/Diaphanum | from django import forms
from .models import Project
class ProjectForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
self.user = kwargs.pop('user')
super(ProjectForm, self).__init__(*args, **kwargs)
def save(self, *args, **kwargs):
instance = super(ProjectForm, self).save(co... | from django import forms
from .models import Project
class ProjectForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
self.user = kwargs.pop('user')
super(ProjectForm, self).__init__(*args, **kwargs)
def save(self, *args, **kwargs):
instance = super(ProjectForm, self).save(co... | <commit_before>from django import forms
from .models import Project
class ProjectForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
self.user = kwargs.pop('user')
super(ProjectForm, self).__init__(*args, **kwargs)
def save(self, *args, **kwargs):
instance = super(ProjectForm... | from django import forms
from .models import Project
class ProjectForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
self.user = kwargs.pop('user')
super(ProjectForm, self).__init__(*args, **kwargs)
def save(self, *args, **kwargs):
instance = super(ProjectForm, self).save(co... | from django import forms
from .models import Project
class ProjectForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
self.user = kwargs.pop('user')
super(ProjectForm, self).__init__(*args, **kwargs)
def save(self, *args, **kwargs):
instance = super(ProjectForm, self).save(co... | <commit_before>from django import forms
from .models import Project
class ProjectForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
self.user = kwargs.pop('user')
super(ProjectForm, self).__init__(*args, **kwargs)
def save(self, *args, **kwargs):
instance = super(ProjectForm... |
57f3b49f27ab0c244b30d63c9a8b5b8dd3145df6 | app/api_v1/serializers.py | app/api_v1/serializers.py | """This module defines the format used by marshall to map the models."""
from flask_restful import fields
bucketlistitem_serializer = {
'id': fields.Integer,
'item_name': fields.String,
'priority': fields.String,
'done': fields.Boolean,
'date_created': fields.DateTime,
'date_modified': fields.D... | """This module defines the format used by marshall to map the models."""
from flask_restful import fields
bucketlistitem_serializer = {
'item_id': fields.Integer,
'item_name': fields.String,
'priority': fields.String,
'done': fields.Boolean,
'date_created': fields.DateTime,
'date_modified': fie... | Add item_id key to BucketListItem serializer. | [Feature] Add item_id key to BucketListItem serializer.
| Python | mit | andela-akiura/bucketlist | """This module defines the format used by marshall to map the models."""
from flask_restful import fields
bucketlistitem_serializer = {
'id': fields.Integer,
'item_name': fields.String,
'priority': fields.String,
'done': fields.Boolean,
'date_created': fields.DateTime,
'date_modified': fields.D... | """This module defines the format used by marshall to map the models."""
from flask_restful import fields
bucketlistitem_serializer = {
'item_id': fields.Integer,
'item_name': fields.String,
'priority': fields.String,
'done': fields.Boolean,
'date_created': fields.DateTime,
'date_modified': fie... | <commit_before>"""This module defines the format used by marshall to map the models."""
from flask_restful import fields
bucketlistitem_serializer = {
'id': fields.Integer,
'item_name': fields.String,
'priority': fields.String,
'done': fields.Boolean,
'date_created': fields.DateTime,
'date_modi... | """This module defines the format used by marshall to map the models."""
from flask_restful import fields
bucketlistitem_serializer = {
'item_id': fields.Integer,
'item_name': fields.String,
'priority': fields.String,
'done': fields.Boolean,
'date_created': fields.DateTime,
'date_modified': fie... | """This module defines the format used by marshall to map the models."""
from flask_restful import fields
bucketlistitem_serializer = {
'id': fields.Integer,
'item_name': fields.String,
'priority': fields.String,
'done': fields.Boolean,
'date_created': fields.DateTime,
'date_modified': fields.D... | <commit_before>"""This module defines the format used by marshall to map the models."""
from flask_restful import fields
bucketlistitem_serializer = {
'id': fields.Integer,
'item_name': fields.String,
'priority': fields.String,
'done': fields.Boolean,
'date_created': fields.DateTime,
'date_modi... |
840643522e32484b1c44352dc095e7369a44ef7b | header_swap_axis.py | header_swap_axis.py |
'''
Swap the axes in a header, without losing keys to WCS
'''
from astropy.wcs import WCS
def header_swapaxes(header, ax1, ax2):
'''
'''
mywcs = WCS(header)
new_hdr = mywcs.swapaxes(ax1, ax2).to_header()
lost_keys = list(set(header.keys()) - set(new_hdr.keys()))
for key in lost_keys:
... |
'''
Swap the axes in a header, without losing keys to WCS
'''
from astropy.wcs import WCS
def header_swapaxes(header, ax1, ax2):
'''
'''
mywcs = WCS(header)
new_hdr = mywcs.swapaxes(ax1, ax2).to_header()
lost_keys = list(set(header.keys()) - set(new_hdr.keys()))
for key in lost_keys:
... | Deal with CASA's empty header keywords | Deal with CASA's empty header keywords
| Python | mit | e-koch/ewky_scripts,e-koch/ewky_scripts |
'''
Swap the axes in a header, without losing keys to WCS
'''
from astropy.wcs import WCS
def header_swapaxes(header, ax1, ax2):
'''
'''
mywcs = WCS(header)
new_hdr = mywcs.swapaxes(ax1, ax2).to_header()
lost_keys = list(set(header.keys()) - set(new_hdr.keys()))
for key in lost_keys:
... |
'''
Swap the axes in a header, without losing keys to WCS
'''
from astropy.wcs import WCS
def header_swapaxes(header, ax1, ax2):
'''
'''
mywcs = WCS(header)
new_hdr = mywcs.swapaxes(ax1, ax2).to_header()
lost_keys = list(set(header.keys()) - set(new_hdr.keys()))
for key in lost_keys:
... | <commit_before>
'''
Swap the axes in a header, without losing keys to WCS
'''
from astropy.wcs import WCS
def header_swapaxes(header, ax1, ax2):
'''
'''
mywcs = WCS(header)
new_hdr = mywcs.swapaxes(ax1, ax2).to_header()
lost_keys = list(set(header.keys()) - set(new_hdr.keys()))
for key in... |
'''
Swap the axes in a header, without losing keys to WCS
'''
from astropy.wcs import WCS
def header_swapaxes(header, ax1, ax2):
'''
'''
mywcs = WCS(header)
new_hdr = mywcs.swapaxes(ax1, ax2).to_header()
lost_keys = list(set(header.keys()) - set(new_hdr.keys()))
for key in lost_keys:
... |
'''
Swap the axes in a header, without losing keys to WCS
'''
from astropy.wcs import WCS
def header_swapaxes(header, ax1, ax2):
'''
'''
mywcs = WCS(header)
new_hdr = mywcs.swapaxes(ax1, ax2).to_header()
lost_keys = list(set(header.keys()) - set(new_hdr.keys()))
for key in lost_keys:
... | <commit_before>
'''
Swap the axes in a header, without losing keys to WCS
'''
from astropy.wcs import WCS
def header_swapaxes(header, ax1, ax2):
'''
'''
mywcs = WCS(header)
new_hdr = mywcs.swapaxes(ax1, ax2).to_header()
lost_keys = list(set(header.keys()) - set(new_hdr.keys()))
for key in... |
1d6fa0521b0fbba48ddbc231614b7074a63488c2 | tests/utils.py | tests/utils.py | import os
import sys
from config import *
def addLocalPaths(paths):
for path_part in paths:
base_path = os.path.join(local_path, path_part)
abs_path = os.path.abspath(base_path)
print "importing " + abs_path
sys.path.insert(0, abs_path)
| import os
import sys
from config import *
def addLocalPaths(paths):
for path_part in paths:
base_path = os.path.join(local_path, path_part)
abs_path = os.path.abspath(base_path)
sys.path.insert(0, abs_path)
| Remove debug messages from import. | Remove debug messages from import.
| Python | mpl-2.0 | EsriOceans/btm | import os
import sys
from config import *
def addLocalPaths(paths):
for path_part in paths:
base_path = os.path.join(local_path, path_part)
abs_path = os.path.abspath(base_path)
print "importing " + abs_path
sys.path.insert(0, abs_path)
Remove debug messages from impor... | import os
import sys
from config import *
def addLocalPaths(paths):
for path_part in paths:
base_path = os.path.join(local_path, path_part)
abs_path = os.path.abspath(base_path)
sys.path.insert(0, abs_path)
| <commit_before>import os
import sys
from config import *
def addLocalPaths(paths):
for path_part in paths:
base_path = os.path.join(local_path, path_part)
abs_path = os.path.abspath(base_path)
print "importing " + abs_path
sys.path.insert(0, abs_path)
<commit_msg>Remov... | import os
import sys
from config import *
def addLocalPaths(paths):
for path_part in paths:
base_path = os.path.join(local_path, path_part)
abs_path = os.path.abspath(base_path)
sys.path.insert(0, abs_path)
| import os
import sys
from config import *
def addLocalPaths(paths):
for path_part in paths:
base_path = os.path.join(local_path, path_part)
abs_path = os.path.abspath(base_path)
print "importing " + abs_path
sys.path.insert(0, abs_path)
Remove debug messages from impor... | <commit_before>import os
import sys
from config import *
def addLocalPaths(paths):
for path_part in paths:
base_path = os.path.join(local_path, path_part)
abs_path = os.path.abspath(base_path)
print "importing " + abs_path
sys.path.insert(0, abs_path)
<commit_msg>Remov... |
854fe79574782f812313508bd8b207f6c033352a | event/models.py | event/models.py | from django.db import models
class Artist(models.Model):
name = models.CharField(max_length=100)
image_url = models.URLField(blank=True)
thumb_url = models.URLField(blank=True)
events = models.ManyToManyField(
'event.Event',
related_name='artists',
blank=True,
)
class... | from django.db import models
class Artist(models.Model):
name = models.CharField(max_length=100)
image_url = models.URLField(blank=True)
thumb_url = models.URLField(blank=True)
events = models.ManyToManyField(
'event.Event',
related_name='artists',
blank=True,
)
class... | Add Event ordering by datetime | Add Event ordering by datetime
| Python | mit | FedorSelitsky/eventrack,FedorSelitsky/eventrack,FedorSelitsky/eventrack,FedorSelitsky/eventrack | from django.db import models
class Artist(models.Model):
name = models.CharField(max_length=100)
image_url = models.URLField(blank=True)
thumb_url = models.URLField(blank=True)
events = models.ManyToManyField(
'event.Event',
related_name='artists',
blank=True,
)
class... | from django.db import models
class Artist(models.Model):
name = models.CharField(max_length=100)
image_url = models.URLField(blank=True)
thumb_url = models.URLField(blank=True)
events = models.ManyToManyField(
'event.Event',
related_name='artists',
blank=True,
)
class... | <commit_before>from django.db import models
class Artist(models.Model):
name = models.CharField(max_length=100)
image_url = models.URLField(blank=True)
thumb_url = models.URLField(blank=True)
events = models.ManyToManyField(
'event.Event',
related_name='artists',
blank=True,
... | from django.db import models
class Artist(models.Model):
name = models.CharField(max_length=100)
image_url = models.URLField(blank=True)
thumb_url = models.URLField(blank=True)
events = models.ManyToManyField(
'event.Event',
related_name='artists',
blank=True,
)
class... | from django.db import models
class Artist(models.Model):
name = models.CharField(max_length=100)
image_url = models.URLField(blank=True)
thumb_url = models.URLField(blank=True)
events = models.ManyToManyField(
'event.Event',
related_name='artists',
blank=True,
)
class... | <commit_before>from django.db import models
class Artist(models.Model):
name = models.CharField(max_length=100)
image_url = models.URLField(blank=True)
thumb_url = models.URLField(blank=True)
events = models.ManyToManyField(
'event.Event',
related_name='artists',
blank=True,
... |
aed18a3f9cbaf1eae1d7066b438437446513d912 | sphinxcontrib/traceables/__init__.py | sphinxcontrib/traceables/__init__.py |
import infrastructure
import display
import traceables
import matrix
import graph
# ==========================================================================
# Setup and register extension
def setup(app):
# Perform import within this function to avoid an import circle.
from sphinxcontrib impor... |
import infrastructure
import display
import traceables
import matrix
import graph
# ==========================================================================
# Setup and register extension
def setup(app):
# Perform import within this function to avoid an import circle.
from sphinxcontrib impor... | Fix missing call to display.setup() | Fix missing call to display.setup()
| Python | apache-2.0 | t4ngo/sphinxcontrib-traceables |
import infrastructure
import display
import traceables
import matrix
import graph
# ==========================================================================
# Setup and register extension
def setup(app):
# Perform import within this function to avoid an import circle.
from sphinxcontrib impor... |
import infrastructure
import display
import traceables
import matrix
import graph
# ==========================================================================
# Setup and register extension
def setup(app):
# Perform import within this function to avoid an import circle.
from sphinxcontrib impor... | <commit_before>
import infrastructure
import display
import traceables
import matrix
import graph
# ==========================================================================
# Setup and register extension
def setup(app):
# Perform import within this function to avoid an import circle.
from sphi... |
import infrastructure
import display
import traceables
import matrix
import graph
# ==========================================================================
# Setup and register extension
def setup(app):
# Perform import within this function to avoid an import circle.
from sphinxcontrib impor... |
import infrastructure
import display
import traceables
import matrix
import graph
# ==========================================================================
# Setup and register extension
def setup(app):
# Perform import within this function to avoid an import circle.
from sphinxcontrib impor... | <commit_before>
import infrastructure
import display
import traceables
import matrix
import graph
# ==========================================================================
# Setup and register extension
def setup(app):
# Perform import within this function to avoid an import circle.
from sphi... |
7eced1e5a5522febde0f4492791de25b40e110da | elm_format.py | elm_format.py | import subprocess
import re
import sublime, sublime_plugin
class ElmFormatCommand(sublime_plugin.TextCommand):
def run(self, edit):
command = "elm-format {} --yes".format(self.view.file_name())
p = subprocess.Popen(command, shell=True)
class ElmFormatOnSave(sublime_plugin.EventListener):
def on_pre_save(self,... | from __future__ import print_function
import subprocess
import re
import sublime, sublime_plugin
class ElmFormatCommand(sublime_plugin.TextCommand):
def run(self, edit):
command = "elm-format {} --yes".format(self.view.file_name())
p = subprocess.Popen(command, stdout=subprocess.PIPE, sterr=subprocess.PIPE, she... | Add debug logging to elm-format | Add debug logging to elm-format
| Python | mit | sekjun9878/Elm.tmLanguage,deadfoxygrandpa/Elm.tmLanguage,sekjun9878/Elm.tmLanguage,deadfoxygrandpa/Elm.tmLanguage | import subprocess
import re
import sublime, sublime_plugin
class ElmFormatCommand(sublime_plugin.TextCommand):
def run(self, edit):
command = "elm-format {} --yes".format(self.view.file_name())
p = subprocess.Popen(command, shell=True)
class ElmFormatOnSave(sublime_plugin.EventListener):
def on_pre_save(self,... | from __future__ import print_function
import subprocess
import re
import sublime, sublime_plugin
class ElmFormatCommand(sublime_plugin.TextCommand):
def run(self, edit):
command = "elm-format {} --yes".format(self.view.file_name())
p = subprocess.Popen(command, stdout=subprocess.PIPE, sterr=subprocess.PIPE, she... | <commit_before>import subprocess
import re
import sublime, sublime_plugin
class ElmFormatCommand(sublime_plugin.TextCommand):
def run(self, edit):
command = "elm-format {} --yes".format(self.view.file_name())
p = subprocess.Popen(command, shell=True)
class ElmFormatOnSave(sublime_plugin.EventListener):
def on... | from __future__ import print_function
import subprocess
import re
import sublime, sublime_plugin
class ElmFormatCommand(sublime_plugin.TextCommand):
def run(self, edit):
command = "elm-format {} --yes".format(self.view.file_name())
p = subprocess.Popen(command, stdout=subprocess.PIPE, sterr=subprocess.PIPE, she... | import subprocess
import re
import sublime, sublime_plugin
class ElmFormatCommand(sublime_plugin.TextCommand):
def run(self, edit):
command = "elm-format {} --yes".format(self.view.file_name())
p = subprocess.Popen(command, shell=True)
class ElmFormatOnSave(sublime_plugin.EventListener):
def on_pre_save(self,... | <commit_before>import subprocess
import re
import sublime, sublime_plugin
class ElmFormatCommand(sublime_plugin.TextCommand):
def run(self, edit):
command = "elm-format {} --yes".format(self.view.file_name())
p = subprocess.Popen(command, shell=True)
class ElmFormatOnSave(sublime_plugin.EventListener):
def on... |
3af265ab0740378267a3c3e9cc85bb21468bf2e0 | engine/cli.py | engine/cli.py | from engine.event import *
from engine.action import *
from engine.code import *
from engine.player import *
from engine.round import *
from engine.team import *
def processInput():
userText = input("Enter command [Add player] [Team player] [Spot] [Web spot] [Flee jail] [Print] [teamChat]: \n")
if 'f' in user... | from engine.action import Action, Stats
from engine.player import Player
def processInput():
userText = input("Enter command [Add player] [Team player] [Spot] [Web spot] [Flee jail] [Print] [teamChat]: \n")
if 'f' in userText:
jailCode = input("enter jail code: ")
Action.fleePlayerWithCode(jail... | Remove a few unnecessary imports | Remove a few unnecessary imports
| Python | bsd-2-clause | mahfiaz/spotter_irl,mahfiaz/spotter_irl,mahfiaz/spotter_irl | from engine.event import *
from engine.action import *
from engine.code import *
from engine.player import *
from engine.round import *
from engine.team import *
def processInput():
userText = input("Enter command [Add player] [Team player] [Spot] [Web spot] [Flee jail] [Print] [teamChat]: \n")
if 'f' in user... | from engine.action import Action, Stats
from engine.player import Player
def processInput():
userText = input("Enter command [Add player] [Team player] [Spot] [Web spot] [Flee jail] [Print] [teamChat]: \n")
if 'f' in userText:
jailCode = input("enter jail code: ")
Action.fleePlayerWithCode(jail... | <commit_before>from engine.event import *
from engine.action import *
from engine.code import *
from engine.player import *
from engine.round import *
from engine.team import *
def processInput():
userText = input("Enter command [Add player] [Team player] [Spot] [Web spot] [Flee jail] [Print] [teamChat]: \n")
... | from engine.action import Action, Stats
from engine.player import Player
def processInput():
userText = input("Enter command [Add player] [Team player] [Spot] [Web spot] [Flee jail] [Print] [teamChat]: \n")
if 'f' in userText:
jailCode = input("enter jail code: ")
Action.fleePlayerWithCode(jail... | from engine.event import *
from engine.action import *
from engine.code import *
from engine.player import *
from engine.round import *
from engine.team import *
def processInput():
userText = input("Enter command [Add player] [Team player] [Spot] [Web spot] [Flee jail] [Print] [teamChat]: \n")
if 'f' in user... | <commit_before>from engine.event import *
from engine.action import *
from engine.code import *
from engine.player import *
from engine.round import *
from engine.team import *
def processInput():
userText = input("Enter command [Add player] [Team player] [Spot] [Web spot] [Flee jail] [Print] [teamChat]: \n")
... |
49b5775f430f9d32638f074661ae877047f6dcb2 | api/v2/serializers/summaries/image.py | api/v2/serializers/summaries/image.py | from core.models import Application as Image
from rest_framework import serializers
from api.v2.serializers.fields.base import UUIDHyperlinkedIdentityField
class ImageSummarySerializer(serializers.HyperlinkedModelSerializer):
user = serializers.PrimaryKeyRelatedField(
source='created_by',
read_onl... | from core.models import Application as Image
from rest_framework import serializers
from api.v2.serializers.fields.base import UUIDHyperlinkedIdentityField
class ImageSummarySerializer(serializers.HyperlinkedModelSerializer):
user = serializers.PrimaryKeyRelatedField(
source='created_by',
read_onl... | Include 'tags' in the Image summary (returned by the /v2/instances detail API) | Include 'tags' in the Image summary (returned by the /v2/instances detail API)
| Python | apache-2.0 | CCI-MOC/GUI-Backend,CCI-MOC/GUI-Backend,CCI-MOC/GUI-Backend,CCI-MOC/GUI-Backend | from core.models import Application as Image
from rest_framework import serializers
from api.v2.serializers.fields.base import UUIDHyperlinkedIdentityField
class ImageSummarySerializer(serializers.HyperlinkedModelSerializer):
user = serializers.PrimaryKeyRelatedField(
source='created_by',
read_onl... | from core.models import Application as Image
from rest_framework import serializers
from api.v2.serializers.fields.base import UUIDHyperlinkedIdentityField
class ImageSummarySerializer(serializers.HyperlinkedModelSerializer):
user = serializers.PrimaryKeyRelatedField(
source='created_by',
read_onl... | <commit_before>from core.models import Application as Image
from rest_framework import serializers
from api.v2.serializers.fields.base import UUIDHyperlinkedIdentityField
class ImageSummarySerializer(serializers.HyperlinkedModelSerializer):
user = serializers.PrimaryKeyRelatedField(
source='created_by',
... | from core.models import Application as Image
from rest_framework import serializers
from api.v2.serializers.fields.base import UUIDHyperlinkedIdentityField
class ImageSummarySerializer(serializers.HyperlinkedModelSerializer):
user = serializers.PrimaryKeyRelatedField(
source='created_by',
read_onl... | from core.models import Application as Image
from rest_framework import serializers
from api.v2.serializers.fields.base import UUIDHyperlinkedIdentityField
class ImageSummarySerializer(serializers.HyperlinkedModelSerializer):
user = serializers.PrimaryKeyRelatedField(
source='created_by',
read_onl... | <commit_before>from core.models import Application as Image
from rest_framework import serializers
from api.v2.serializers.fields.base import UUIDHyperlinkedIdentityField
class ImageSummarySerializer(serializers.HyperlinkedModelSerializer):
user = serializers.PrimaryKeyRelatedField(
source='created_by',
... |
ac786779916e39d31582ed538635dc0aa7ee9310 | karspexet/show/admin.py | karspexet/show/admin.py | from django.contrib import admin
from karspexet.show.models import Production, Show
@admin.register(Production)
class ProductionAdmin(admin.ModelAdmin):
list_display = ("name", "alt_name")
@admin.register(Show)
class ShowAdmin(admin.ModelAdmin):
list_display = ("production", "slug", "date_string")
list... | from django.contrib import admin
from django.utils import timezone
from karspexet.show.models import Production, Show
@admin.register(Production)
class ProductionAdmin(admin.ModelAdmin):
list_display = ("name", "alt_name")
@admin.register(Show)
class ShowAdmin(admin.ModelAdmin):
list_display = ("date_strin... | Improve ShowAdmin to give better overview | Improve ShowAdmin to give better overview
| Python | mit | Karspexet/Karspexet,Karspexet/Karspexet,Karspexet/Karspexet,Karspexet/Karspexet,Karspexet/Karspexet | from django.contrib import admin
from karspexet.show.models import Production, Show
@admin.register(Production)
class ProductionAdmin(admin.ModelAdmin):
list_display = ("name", "alt_name")
@admin.register(Show)
class ShowAdmin(admin.ModelAdmin):
list_display = ("production", "slug", "date_string")
list... | from django.contrib import admin
from django.utils import timezone
from karspexet.show.models import Production, Show
@admin.register(Production)
class ProductionAdmin(admin.ModelAdmin):
list_display = ("name", "alt_name")
@admin.register(Show)
class ShowAdmin(admin.ModelAdmin):
list_display = ("date_strin... | <commit_before>from django.contrib import admin
from karspexet.show.models import Production, Show
@admin.register(Production)
class ProductionAdmin(admin.ModelAdmin):
list_display = ("name", "alt_name")
@admin.register(Show)
class ShowAdmin(admin.ModelAdmin):
list_display = ("production", "slug", "date_st... | from django.contrib import admin
from django.utils import timezone
from karspexet.show.models import Production, Show
@admin.register(Production)
class ProductionAdmin(admin.ModelAdmin):
list_display = ("name", "alt_name")
@admin.register(Show)
class ShowAdmin(admin.ModelAdmin):
list_display = ("date_strin... | from django.contrib import admin
from karspexet.show.models import Production, Show
@admin.register(Production)
class ProductionAdmin(admin.ModelAdmin):
list_display = ("name", "alt_name")
@admin.register(Show)
class ShowAdmin(admin.ModelAdmin):
list_display = ("production", "slug", "date_string")
list... | <commit_before>from django.contrib import admin
from karspexet.show.models import Production, Show
@admin.register(Production)
class ProductionAdmin(admin.ModelAdmin):
list_display = ("name", "alt_name")
@admin.register(Show)
class ShowAdmin(admin.ModelAdmin):
list_display = ("production", "slug", "date_st... |
62bbc01940e85e6017b4b5d4e757437b05c81f71 | evaluation_system/reports/views.py | evaluation_system/reports/views.py | from django.shortcuts import render
from django.views.generic import TemplateView
from django.shortcuts import redirect
from ..evaluation.models import Evaluation, Group_User
class showProfessorReport(TemplateView):
template_name= "report/professorReport.html"
def get(self, request, *args, **kwargs):
if not req... | from django.shortcuts import render
from django.views.generic import TemplateView
from django.shortcuts import redirect
from ..evaluation.models import Evaluation, Group_User
class showProfessorReport(TemplateView):
template_name= "report/professorReport.html"
def get(self, request, *args, **kwargs):
if not req... | Fix evaluation query on report | Fix evaluation query on report
| Python | mit | carlosa54/evaluation_system,carlosa54/evaluation_system,carlosa54/evaluation_system | from django.shortcuts import render
from django.views.generic import TemplateView
from django.shortcuts import redirect
from ..evaluation.models import Evaluation, Group_User
class showProfessorReport(TemplateView):
template_name= "report/professorReport.html"
def get(self, request, *args, **kwargs):
if not req... | from django.shortcuts import render
from django.views.generic import TemplateView
from django.shortcuts import redirect
from ..evaluation.models import Evaluation, Group_User
class showProfessorReport(TemplateView):
template_name= "report/professorReport.html"
def get(self, request, *args, **kwargs):
if not req... | <commit_before>from django.shortcuts import render
from django.views.generic import TemplateView
from django.shortcuts import redirect
from ..evaluation.models import Evaluation, Group_User
class showProfessorReport(TemplateView):
template_name= "report/professorReport.html"
def get(self, request, *args, **kwargs... | from django.shortcuts import render
from django.views.generic import TemplateView
from django.shortcuts import redirect
from ..evaluation.models import Evaluation, Group_User
class showProfessorReport(TemplateView):
template_name= "report/professorReport.html"
def get(self, request, *args, **kwargs):
if not req... | from django.shortcuts import render
from django.views.generic import TemplateView
from django.shortcuts import redirect
from ..evaluation.models import Evaluation, Group_User
class showProfessorReport(TemplateView):
template_name= "report/professorReport.html"
def get(self, request, *args, **kwargs):
if not req... | <commit_before>from django.shortcuts import render
from django.views.generic import TemplateView
from django.shortcuts import redirect
from ..evaluation.models import Evaluation, Group_User
class showProfessorReport(TemplateView):
template_name= "report/professorReport.html"
def get(self, request, *args, **kwargs... |
44791b285f4c30cbafc93abcce525f52d21e8215 | Lib/test/test_dbm.py | Lib/test/test_dbm.py | #! /usr/bin/env python
"""Test script for the dbm module
Roger E. Masse
"""
import dbm
from dbm import error
from test_support import verbose
filename= '/tmp/delete_me'
d = dbm.open(filename, 'c')
d['a'] = 'b'
d['12345678910'] = '019237410982340912840198242'
d.keys()
if d.has_key('a'):
if verbose:
prin... | #! /usr/bin/env python
"""Test script for the dbm module
Roger E. Masse
"""
import dbm
from dbm import error
from test_support import verbose
filename = '/tmp/delete_me'
d = dbm.open(filename, 'c')
d['a'] = 'b'
d['12345678910'] = '019237410982340912840198242'
d.keys()
if d.has_key('a'):
if verbose:
pri... | Fix up the cleanup of the temporary DB so it works for BSD DB's compatibility layer as well as "classic" ndbm. | Fix up the cleanup of the temporary DB so it works for BSD DB's
compatibility layer as well as "classic" ndbm.
| Python | mit | sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator | #! /usr/bin/env python
"""Test script for the dbm module
Roger E. Masse
"""
import dbm
from dbm import error
from test_support import verbose
filename= '/tmp/delete_me'
d = dbm.open(filename, 'c')
d['a'] = 'b'
d['12345678910'] = '019237410982340912840198242'
d.keys()
if d.has_key('a'):
if verbose:
prin... | #! /usr/bin/env python
"""Test script for the dbm module
Roger E. Masse
"""
import dbm
from dbm import error
from test_support import verbose
filename = '/tmp/delete_me'
d = dbm.open(filename, 'c')
d['a'] = 'b'
d['12345678910'] = '019237410982340912840198242'
d.keys()
if d.has_key('a'):
if verbose:
pri... | <commit_before>#! /usr/bin/env python
"""Test script for the dbm module
Roger E. Masse
"""
import dbm
from dbm import error
from test_support import verbose
filename= '/tmp/delete_me'
d = dbm.open(filename, 'c')
d['a'] = 'b'
d['12345678910'] = '019237410982340912840198242'
d.keys()
if d.has_key('a'):
if verbos... | #! /usr/bin/env python
"""Test script for the dbm module
Roger E. Masse
"""
import dbm
from dbm import error
from test_support import verbose
filename = '/tmp/delete_me'
d = dbm.open(filename, 'c')
d['a'] = 'b'
d['12345678910'] = '019237410982340912840198242'
d.keys()
if d.has_key('a'):
if verbose:
pri... | #! /usr/bin/env python
"""Test script for the dbm module
Roger E. Masse
"""
import dbm
from dbm import error
from test_support import verbose
filename= '/tmp/delete_me'
d = dbm.open(filename, 'c')
d['a'] = 'b'
d['12345678910'] = '019237410982340912840198242'
d.keys()
if d.has_key('a'):
if verbose:
prin... | <commit_before>#! /usr/bin/env python
"""Test script for the dbm module
Roger E. Masse
"""
import dbm
from dbm import error
from test_support import verbose
filename= '/tmp/delete_me'
d = dbm.open(filename, 'c')
d['a'] = 'b'
d['12345678910'] = '019237410982340912840198242'
d.keys()
if d.has_key('a'):
if verbos... |
871b2fb4b49f10305ac4817856e0873283c67d08 | reactlibapp/reactlibapp/settings/development.py | reactlibapp/reactlibapp/settings/development.py | import os, sys
# Production specific settings
from .base import *
DEBUG = True
ALLOWED_HOSTS = ['*']
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
# Database
# https://docs.djangoproject.com/en/1.11/re... | import os, sys
# Production specific settings
from .base import *
DEBUG = True
ALLOWED_HOSTS = ['*']
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
# Database
# https://docs.djangoproject.com/en/1.11/re... | Remove redundant space on new line | Remove redundant space on new line
| Python | mit | andela-sjames/Django-ReactJS-Library-App,andela-sjames/Django-ReactJS-Library-App,andela-sjames/Django-ReactJS-Library-App,andela-sjames/Django-ReactJS-Library-App | import os, sys
# Production specific settings
from .base import *
DEBUG = True
ALLOWED_HOSTS = ['*']
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
# Database
# https://docs.djangoproject.com/en/1.11/re... | import os, sys
# Production specific settings
from .base import *
DEBUG = True
ALLOWED_HOSTS = ['*']
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
# Database
# https://docs.djangoproject.com/en/1.11/re... | <commit_before>import os, sys
# Production specific settings
from .base import *
DEBUG = True
ALLOWED_HOSTS = ['*']
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
# Database
# https://docs.djangoproject... | import os, sys
# Production specific settings
from .base import *
DEBUG = True
ALLOWED_HOSTS = ['*']
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
# Database
# https://docs.djangoproject.com/en/1.11/re... | import os, sys
# Production specific settings
from .base import *
DEBUG = True
ALLOWED_HOSTS = ['*']
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
# Database
# https://docs.djangoproject.com/en/1.11/re... | <commit_before>import os, sys
# Production specific settings
from .base import *
DEBUG = True
ALLOWED_HOSTS = ['*']
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
# Database
# https://docs.djangoproject... |
24998a6ca73f29c5380d875cf9b8da69b8d1e8f0 | erpnext/patches/v4_2/repost_reserved_qty.py | erpnext/patches/v4_2/repost_reserved_qty.py | # Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe
from erpnext.utilities.repost_stock import update_bin_qty, get_reserved_qty
def execute():
repost_for = frappe.db.sql("""
select
... | # Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe
from erpnext.utilities.repost_stock import update_bin_qty, get_reserved_qty
def execute():
repost_for = frappe.db.sql("""
select
... | Delete Bin for non-stock item | [fix][patch] Delete Bin for non-stock item
| Python | agpl-3.0 | hanselke/erpnext-1,mahabuber/erpnext,anandpdoshi/erpnext,fuhongliang/erpnext,geekroot/erpnext,mbauskar/omnitech-demo-erpnext,meisterkleister/erpnext,hatwar/buyback-erpnext,njmube/erpnext,gangadharkadam/v6_erp,SPKian/Testing,meisterkleister/erpnext,shft117/SteckerApp,SPKian/Testing2,gangadhar-kadam/helpdesk-erpnext,Apti... | # Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe
from erpnext.utilities.repost_stock import update_bin_qty, get_reserved_qty
def execute():
repost_for = frappe.db.sql("""
select
... | # Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe
from erpnext.utilities.repost_stock import update_bin_qty, get_reserved_qty
def execute():
repost_for = frappe.db.sql("""
select
... | <commit_before># Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe
from erpnext.utilities.repost_stock import update_bin_qty, get_reserved_qty
def execute():
repost_for = frappe.db.sql(... | # Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe
from erpnext.utilities.repost_stock import update_bin_qty, get_reserved_qty
def execute():
repost_for = frappe.db.sql("""
select
... | # Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe
from erpnext.utilities.repost_stock import update_bin_qty, get_reserved_qty
def execute():
repost_for = frappe.db.sql("""
select
... | <commit_before># Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe
from erpnext.utilities.repost_stock import update_bin_qty, get_reserved_qty
def execute():
repost_for = frappe.db.sql(... |
aaaaac53d996ff5ed1f39cbed583079e26150443 | falcom/api/hathi/from_json.py | falcom/api/hathi/from_json.py | # Copyright (c) 2017 The Regents of the University of Michigan.
# All Rights Reserved. Licensed according to the terms of the Revised
# BSD License. See LICENSE.txt for details.
import json
from .data import HathiData
def load_json (json_data):
try:
return json.loads(json_data)
except:
return... | # Copyright (c) 2017 The Regents of the University of Michigan.
# All Rights Reserved. Licensed according to the terms of the Revised
# BSD License. See LICENSE.txt for details.
import json
from .data import HathiData
EMPTY_JSON_DATA = { }
def load_json (json_data):
try:
return json.loads(json_data)
... | Add named constant to explain why { } default | Add named constant to explain why { } default
| Python | bsd-3-clause | mlibrary/image-conversion-and-validation,mlibrary/image-conversion-and-validation | # Copyright (c) 2017 The Regents of the University of Michigan.
# All Rights Reserved. Licensed according to the terms of the Revised
# BSD License. See LICENSE.txt for details.
import json
from .data import HathiData
def load_json (json_data):
try:
return json.loads(json_data)
except:
return... | # Copyright (c) 2017 The Regents of the University of Michigan.
# All Rights Reserved. Licensed according to the terms of the Revised
# BSD License. See LICENSE.txt for details.
import json
from .data import HathiData
EMPTY_JSON_DATA = { }
def load_json (json_data):
try:
return json.loads(json_data)
... | <commit_before># Copyright (c) 2017 The Regents of the University of Michigan.
# All Rights Reserved. Licensed according to the terms of the Revised
# BSD License. See LICENSE.txt for details.
import json
from .data import HathiData
def load_json (json_data):
try:
return json.loads(json_data)
except:... | # Copyright (c) 2017 The Regents of the University of Michigan.
# All Rights Reserved. Licensed according to the terms of the Revised
# BSD License. See LICENSE.txt for details.
import json
from .data import HathiData
EMPTY_JSON_DATA = { }
def load_json (json_data):
try:
return json.loads(json_data)
... | # Copyright (c) 2017 The Regents of the University of Michigan.
# All Rights Reserved. Licensed according to the terms of the Revised
# BSD License. See LICENSE.txt for details.
import json
from .data import HathiData
def load_json (json_data):
try:
return json.loads(json_data)
except:
return... | <commit_before># Copyright (c) 2017 The Regents of the University of Michigan.
# All Rights Reserved. Licensed according to the terms of the Revised
# BSD License. See LICENSE.txt for details.
import json
from .data import HathiData
def load_json (json_data):
try:
return json.loads(json_data)
except:... |
2cd1df93ec3e93fb5f787be5160a50e9f295211f | examples/plot_estimate_covariance_matrix.py | examples/plot_estimate_covariance_matrix.py | """
==============================================
Estimate covariance matrix from a raw FIF file
==============================================
"""
# Author: Alexandre Gramfort <gramfort@nmr.mgh.harvard.edu>
#
# License: BSD (3-clause)
print __doc__
import mne
from mne import fiff
from mne.datasets import sample
d... | """
==============================================
Estimate covariance matrix from a raw FIF file
==============================================
"""
# Author: Alexandre Gramfort <gramfort@nmr.mgh.harvard.edu>
#
# License: BSD (3-clause)
print __doc__
import mne
from mne import fiff
from mne.datasets import sample
d... | FIX : fix text in cov estimation example | FIX : fix text in cov estimation example
| Python | bsd-3-clause | matthew-tucker/mne-python,cjayb/mne-python,wmvanvliet/mne-python,bloyl/mne-python,dgwakeman/mne-python,lorenzo-desantis/mne-python,drammock/mne-python,andyh616/mne-python,mne-tools/mne-python,aestrivex/mne-python,jaeilepp/mne-python,agramfort/mne-python,teonlamont/mne-python,kingjr/mne-python,yousrabk/mne-python,pravsr... | """
==============================================
Estimate covariance matrix from a raw FIF file
==============================================
"""
# Author: Alexandre Gramfort <gramfort@nmr.mgh.harvard.edu>
#
# License: BSD (3-clause)
print __doc__
import mne
from mne import fiff
from mne.datasets import sample
d... | """
==============================================
Estimate covariance matrix from a raw FIF file
==============================================
"""
# Author: Alexandre Gramfort <gramfort@nmr.mgh.harvard.edu>
#
# License: BSD (3-clause)
print __doc__
import mne
from mne import fiff
from mne.datasets import sample
d... | <commit_before>"""
==============================================
Estimate covariance matrix from a raw FIF file
==============================================
"""
# Author: Alexandre Gramfort <gramfort@nmr.mgh.harvard.edu>
#
# License: BSD (3-clause)
print __doc__
import mne
from mne import fiff
from mne.datasets i... | """
==============================================
Estimate covariance matrix from a raw FIF file
==============================================
"""
# Author: Alexandre Gramfort <gramfort@nmr.mgh.harvard.edu>
#
# License: BSD (3-clause)
print __doc__
import mne
from mne import fiff
from mne.datasets import sample
d... | """
==============================================
Estimate covariance matrix from a raw FIF file
==============================================
"""
# Author: Alexandre Gramfort <gramfort@nmr.mgh.harvard.edu>
#
# License: BSD (3-clause)
print __doc__
import mne
from mne import fiff
from mne.datasets import sample
d... | <commit_before>"""
==============================================
Estimate covariance matrix from a raw FIF file
==============================================
"""
# Author: Alexandre Gramfort <gramfort@nmr.mgh.harvard.edu>
#
# License: BSD (3-clause)
print __doc__
import mne
from mne import fiff
from mne.datasets i... |
98ca748996fe462cedf284ad91a74bdd30eb81f3 | mopidy/__init__.py | mopidy/__init__.py | from __future__ import absolute_import, unicode_literals
import platform
import sys
import textwrap
import warnings
if not (2, 7) <= sys.version_info < (3,):
sys.exit(
'ERROR: Mopidy requires Python 2.7, but found %s.' %
platform.python_version())
try:
import gobject # noqa
except ImportEr... | from __future__ import absolute_import, print_function, unicode_literals
import platform
import sys
import textwrap
import warnings
if not (2, 7) <= sys.version_info < (3,):
sys.exit(
'ERROR: Mopidy requires Python 2.7, but found %s.' %
platform.python_version())
try:
import gobject # noqa... | Use print function instead of print statement | py3: Use print function instead of print statement
| Python | apache-2.0 | jcass77/mopidy,ZenithDK/mopidy,SuperStarPL/mopidy,vrs01/mopidy,jcass77/mopidy,diandiankan/mopidy,dbrgn/mopidy,SuperStarPL/mopidy,mokieyue/mopidy,rawdlite/mopidy,jcass77/mopidy,jmarsik/mopidy,mopidy/mopidy,bencevans/mopidy,mopidy/mopidy,diandiankan/mopidy,jmarsik/mopidy,vrs01/mopidy,mokieyue/mopidy,kingosticks/mopidy,Su... | from __future__ import absolute_import, unicode_literals
import platform
import sys
import textwrap
import warnings
if not (2, 7) <= sys.version_info < (3,):
sys.exit(
'ERROR: Mopidy requires Python 2.7, but found %s.' %
platform.python_version())
try:
import gobject # noqa
except ImportEr... | from __future__ import absolute_import, print_function, unicode_literals
import platform
import sys
import textwrap
import warnings
if not (2, 7) <= sys.version_info < (3,):
sys.exit(
'ERROR: Mopidy requires Python 2.7, but found %s.' %
platform.python_version())
try:
import gobject # noqa... | <commit_before>from __future__ import absolute_import, unicode_literals
import platform
import sys
import textwrap
import warnings
if not (2, 7) <= sys.version_info < (3,):
sys.exit(
'ERROR: Mopidy requires Python 2.7, but found %s.' %
platform.python_version())
try:
import gobject # noqa
... | from __future__ import absolute_import, print_function, unicode_literals
import platform
import sys
import textwrap
import warnings
if not (2, 7) <= sys.version_info < (3,):
sys.exit(
'ERROR: Mopidy requires Python 2.7, but found %s.' %
platform.python_version())
try:
import gobject # noqa... | from __future__ import absolute_import, unicode_literals
import platform
import sys
import textwrap
import warnings
if not (2, 7) <= sys.version_info < (3,):
sys.exit(
'ERROR: Mopidy requires Python 2.7, but found %s.' %
platform.python_version())
try:
import gobject # noqa
except ImportEr... | <commit_before>from __future__ import absolute_import, unicode_literals
import platform
import sys
import textwrap
import warnings
if not (2, 7) <= sys.version_info < (3,):
sys.exit(
'ERROR: Mopidy requires Python 2.7, but found %s.' %
platform.python_version())
try:
import gobject # noqa
... |
77af150756021ac4027e290b5d538e0525d812b9 | mopidy/settings.py | mopidy/settings.py | CONSOLE_LOG_FORMAT = u'%(levelname)-8s %(asctime)s %(name)s\n %(message)s'
MPD_LINE_ENCODING = u'utf-8'
MPD_LINE_TERMINATOR = u'\n'
MPD_SERVER_HOSTNAME = u'localhost'
MPD_SERVER_PORT = 6600
SPOTIFY_USERNAME = u''
SPOTIFY_PASSWORD = u''
try:
from mopidy.local_settings import *
except ImportError:
pass
| CONSOLE_LOG_FORMAT = u'%(levelname)-8s %(asctime)s [%(threadName)s] %(name)s\n %(message)s'
MPD_LINE_ENCODING = u'utf-8'
MPD_LINE_TERMINATOR = u'\n'
MPD_SERVER_HOSTNAME = u'localhost'
MPD_SERVER_PORT = 6600
SPOTIFY_USERNAME = u''
SPOTIFY_PASSWORD = u''
try:
from mopidy.local_settings import *
except ImportError:... | Add threadName to log format | Add threadName to log format
| Python | apache-2.0 | bencevans/mopidy,pacificIT/mopidy,quartz55/mopidy,SuperStarPL/mopidy,priestd09/mopidy,mokieyue/mopidy,abarisain/mopidy,hkariti/mopidy,swak/mopidy,adamcik/mopidy,quartz55/mopidy,priestd09/mopidy,pacificIT/mopidy,dbrgn/mopidy,jmarsik/mopidy,bencevans/mopidy,tkem/mopidy,abarisain/mopidy,liamw9534/mopidy,hkariti/mopidy,pac... | CONSOLE_LOG_FORMAT = u'%(levelname)-8s %(asctime)s %(name)s\n %(message)s'
MPD_LINE_ENCODING = u'utf-8'
MPD_LINE_TERMINATOR = u'\n'
MPD_SERVER_HOSTNAME = u'localhost'
MPD_SERVER_PORT = 6600
SPOTIFY_USERNAME = u''
SPOTIFY_PASSWORD = u''
try:
from mopidy.local_settings import *
except ImportError:
pass
Add th... | CONSOLE_LOG_FORMAT = u'%(levelname)-8s %(asctime)s [%(threadName)s] %(name)s\n %(message)s'
MPD_LINE_ENCODING = u'utf-8'
MPD_LINE_TERMINATOR = u'\n'
MPD_SERVER_HOSTNAME = u'localhost'
MPD_SERVER_PORT = 6600
SPOTIFY_USERNAME = u''
SPOTIFY_PASSWORD = u''
try:
from mopidy.local_settings import *
except ImportError:... | <commit_before>CONSOLE_LOG_FORMAT = u'%(levelname)-8s %(asctime)s %(name)s\n %(message)s'
MPD_LINE_ENCODING = u'utf-8'
MPD_LINE_TERMINATOR = u'\n'
MPD_SERVER_HOSTNAME = u'localhost'
MPD_SERVER_PORT = 6600
SPOTIFY_USERNAME = u''
SPOTIFY_PASSWORD = u''
try:
from mopidy.local_settings import *
except ImportError:
... | CONSOLE_LOG_FORMAT = u'%(levelname)-8s %(asctime)s [%(threadName)s] %(name)s\n %(message)s'
MPD_LINE_ENCODING = u'utf-8'
MPD_LINE_TERMINATOR = u'\n'
MPD_SERVER_HOSTNAME = u'localhost'
MPD_SERVER_PORT = 6600
SPOTIFY_USERNAME = u''
SPOTIFY_PASSWORD = u''
try:
from mopidy.local_settings import *
except ImportError:... | CONSOLE_LOG_FORMAT = u'%(levelname)-8s %(asctime)s %(name)s\n %(message)s'
MPD_LINE_ENCODING = u'utf-8'
MPD_LINE_TERMINATOR = u'\n'
MPD_SERVER_HOSTNAME = u'localhost'
MPD_SERVER_PORT = 6600
SPOTIFY_USERNAME = u''
SPOTIFY_PASSWORD = u''
try:
from mopidy.local_settings import *
except ImportError:
pass
Add th... | <commit_before>CONSOLE_LOG_FORMAT = u'%(levelname)-8s %(asctime)s %(name)s\n %(message)s'
MPD_LINE_ENCODING = u'utf-8'
MPD_LINE_TERMINATOR = u'\n'
MPD_SERVER_HOSTNAME = u'localhost'
MPD_SERVER_PORT = 6600
SPOTIFY_USERNAME = u''
SPOTIFY_PASSWORD = u''
try:
from mopidy.local_settings import *
except ImportError:
... |
e91d81a03d57af1fff1b580b1c276fd02f44f587 | places/migrations/0011_auto_20200712_1733.py | places/migrations/0011_auto_20200712_1733.py | # Generated by Django 3.0.8 on 2020-07-12 17:33
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('places', '0010_auto_20200712_0505'),
]
operations = [
migrations.AlterModelOptions(
name='category',
options={'ordering': ['... | # Generated by Django 3.0.8 on 2020-07-12 17:33
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("places", "0010_auto_20200712_0505"),
]
operations = [
migrations.AlterModelOptions(
name="category",
options={"ordering": ["... | Apply black formatting to migration | Apply black formatting to migration
| Python | mit | huangsam/chowist,huangsam/chowist,huangsam/chowist | # Generated by Django 3.0.8 on 2020-07-12 17:33
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('places', '0010_auto_20200712_0505'),
]
operations = [
migrations.AlterModelOptions(
name='category',
options={'ordering': ['... | # Generated by Django 3.0.8 on 2020-07-12 17:33
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("places", "0010_auto_20200712_0505"),
]
operations = [
migrations.AlterModelOptions(
name="category",
options={"ordering": ["... | <commit_before># Generated by Django 3.0.8 on 2020-07-12 17:33
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('places', '0010_auto_20200712_0505'),
]
operations = [
migrations.AlterModelOptions(
name='category',
options=... | # Generated by Django 3.0.8 on 2020-07-12 17:33
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("places", "0010_auto_20200712_0505"),
]
operations = [
migrations.AlterModelOptions(
name="category",
options={"ordering": ["... | # Generated by Django 3.0.8 on 2020-07-12 17:33
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('places', '0010_auto_20200712_0505'),
]
operations = [
migrations.AlterModelOptions(
name='category',
options={'ordering': ['... | <commit_before># Generated by Django 3.0.8 on 2020-07-12 17:33
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('places', '0010_auto_20200712_0505'),
]
operations = [
migrations.AlterModelOptions(
name='category',
options=... |
4b716882b3e8e13e591d629a88e5b102c7f008b4 | mapit/management/commands/mapit_generation_deactivate.py | mapit/management/commands/mapit_generation_deactivate.py | # This script deactivates a particular generation
from optparse import make_option
from django.core.management.base import BaseCommand
from mapit.models import Generation
class Command(BaseCommand):
help = 'Deactivate a generation'
args = '<GENERATION-ID>'
option_list = BaseCommand.option_list + (
... | # This script deactivates a particular generation
from optparse import make_option
from django.core.management.base import BaseCommand, CommandError
from mapit.models import Generation
class Command(BaseCommand):
help = 'Deactivate a generation'
args = '<GENERATION-ID>'
option_list = BaseCommand.option_li... | Add the import for CommandError | Add the import for CommandError
| Python | agpl-3.0 | opencorato/mapit,chris48s/mapit,New-Bamboo/mapit,Code4SA/mapit,Code4SA/mapit,chris48s/mapit,New-Bamboo/mapit,Code4SA/mapit,Sinar/mapit,opencorato/mapit,opencorato/mapit,Sinar/mapit,chris48s/mapit | # This script deactivates a particular generation
from optparse import make_option
from django.core.management.base import BaseCommand
from mapit.models import Generation
class Command(BaseCommand):
help = 'Deactivate a generation'
args = '<GENERATION-ID>'
option_list = BaseCommand.option_list + (
... | # This script deactivates a particular generation
from optparse import make_option
from django.core.management.base import BaseCommand, CommandError
from mapit.models import Generation
class Command(BaseCommand):
help = 'Deactivate a generation'
args = '<GENERATION-ID>'
option_list = BaseCommand.option_li... | <commit_before># This script deactivates a particular generation
from optparse import make_option
from django.core.management.base import BaseCommand
from mapit.models import Generation
class Command(BaseCommand):
help = 'Deactivate a generation'
args = '<GENERATION-ID>'
option_list = BaseCommand.option_l... | # This script deactivates a particular generation
from optparse import make_option
from django.core.management.base import BaseCommand, CommandError
from mapit.models import Generation
class Command(BaseCommand):
help = 'Deactivate a generation'
args = '<GENERATION-ID>'
option_list = BaseCommand.option_li... | # This script deactivates a particular generation
from optparse import make_option
from django.core.management.base import BaseCommand
from mapit.models import Generation
class Command(BaseCommand):
help = 'Deactivate a generation'
args = '<GENERATION-ID>'
option_list = BaseCommand.option_list + (
... | <commit_before># This script deactivates a particular generation
from optparse import make_option
from django.core.management.base import BaseCommand
from mapit.models import Generation
class Command(BaseCommand):
help = 'Deactivate a generation'
args = '<GENERATION-ID>'
option_list = BaseCommand.option_l... |
f98b78fcf37e9d3e200c468b5a0bba25abdd13fd | django_lti_tool_provider/tests/urls.py | django_lti_tool_provider/tests/urls.py | from django.conf.urls import url
from django.contrib.auth.views import login
from django_lti_tool_provider import views as lti_views
urlpatterns = [
url(r'', lti_views.LTIView.as_view(), name='home'),
url('^accounts/login/$', login),
url(r'^lti$', lti_views.LTIView.as_view(), name='lti')
]
| from django.conf.urls import url
from django.contrib.auth.views import LoginView
from django_lti_tool_provider import views as lti_views
urlpatterns = [
url(r'', lti_views.LTIView.as_view(), name='home'),
url('^accounts/login/$', LoginView.as_view()),
url(r'^lti$', lti_views.LTIView.as_view(), name='lti'... | Replace contrib.auth's "login" view with LoginView. | Replace contrib.auth's "login" view with LoginView.
Cf. https://docs.djangoproject.com/en/2.1/releases/1.11/#id2
contrib.auth's login() and logout() function-based views are deprecated in favor of new class-based views LoginView and LogoutView.
| Python | agpl-3.0 | open-craft/django-lti-tool-provider | from django.conf.urls import url
from django.contrib.auth.views import login
from django_lti_tool_provider import views as lti_views
urlpatterns = [
url(r'', lti_views.LTIView.as_view(), name='home'),
url('^accounts/login/$', login),
url(r'^lti$', lti_views.LTIView.as_view(), name='lti')
]
Replace contri... | from django.conf.urls import url
from django.contrib.auth.views import LoginView
from django_lti_tool_provider import views as lti_views
urlpatterns = [
url(r'', lti_views.LTIView.as_view(), name='home'),
url('^accounts/login/$', LoginView.as_view()),
url(r'^lti$', lti_views.LTIView.as_view(), name='lti'... | <commit_before>from django.conf.urls import url
from django.contrib.auth.views import login
from django_lti_tool_provider import views as lti_views
urlpatterns = [
url(r'', lti_views.LTIView.as_view(), name='home'),
url('^accounts/login/$', login),
url(r'^lti$', lti_views.LTIView.as_view(), name='lti')
]... | from django.conf.urls import url
from django.contrib.auth.views import LoginView
from django_lti_tool_provider import views as lti_views
urlpatterns = [
url(r'', lti_views.LTIView.as_view(), name='home'),
url('^accounts/login/$', LoginView.as_view()),
url(r'^lti$', lti_views.LTIView.as_view(), name='lti'... | from django.conf.urls import url
from django.contrib.auth.views import login
from django_lti_tool_provider import views as lti_views
urlpatterns = [
url(r'', lti_views.LTIView.as_view(), name='home'),
url('^accounts/login/$', login),
url(r'^lti$', lti_views.LTIView.as_view(), name='lti')
]
Replace contri... | <commit_before>from django.conf.urls import url
from django.contrib.auth.views import login
from django_lti_tool_provider import views as lti_views
urlpatterns = [
url(r'', lti_views.LTIView.as_view(), name='home'),
url('^accounts/login/$', login),
url(r'^lti$', lti_views.LTIView.as_view(), name='lti')
]... |
2b4c4a61b7b4853f93c7ac1272905660fce8c3fd | aurorawatchuk/snapshot.py | aurorawatchuk/snapshot.py | from aurorawatchuk import AuroraWatchUK
__author__ = 'Steve Marple'
__version__ = '0.1.2'
__license__ = 'MIT'
class AuroraWatchUK_SS(object):
"""Take a snapshot of the AuroraWatch UK status.
This class mimics the behaviour of the :class:`.aurorawatchuk.AuroraWatchUK` class but its fields are evaluated
... | import aurorawatchuk
__author__ = 'Steve Marple'
__version__ = '0.1.2'
__license__ = 'MIT'
class AuroraWatchUK_SS(object):
"""Take a snapshot of the AuroraWatch UK status.
This class mimics the behaviour of the :class:`.aurorawatchuk.AuroraWatchUK` class but its fields are evaluated
just once and cache... | Rewrite import to avoid accidental misuse | Rewrite import to avoid accidental misuse
Don't import the AuroraWatchUK class into the snapshot namespace, it
enables the original AuroraWatchUK class to be used when it was intended
to use the snapshot version, AuroraWatchUK_SS.
| Python | mit | stevemarple/python-aurorawatchuk | from aurorawatchuk import AuroraWatchUK
__author__ = 'Steve Marple'
__version__ = '0.1.2'
__license__ = 'MIT'
class AuroraWatchUK_SS(object):
"""Take a snapshot of the AuroraWatch UK status.
This class mimics the behaviour of the :class:`.aurorawatchuk.AuroraWatchUK` class but its fields are evaluated
... | import aurorawatchuk
__author__ = 'Steve Marple'
__version__ = '0.1.2'
__license__ = 'MIT'
class AuroraWatchUK_SS(object):
"""Take a snapshot of the AuroraWatch UK status.
This class mimics the behaviour of the :class:`.aurorawatchuk.AuroraWatchUK` class but its fields are evaluated
just once and cache... | <commit_before>from aurorawatchuk import AuroraWatchUK
__author__ = 'Steve Marple'
__version__ = '0.1.2'
__license__ = 'MIT'
class AuroraWatchUK_SS(object):
"""Take a snapshot of the AuroraWatch UK status.
This class mimics the behaviour of the :class:`.aurorawatchuk.AuroraWatchUK` class but its fields are... | import aurorawatchuk
__author__ = 'Steve Marple'
__version__ = '0.1.2'
__license__ = 'MIT'
class AuroraWatchUK_SS(object):
"""Take a snapshot of the AuroraWatch UK status.
This class mimics the behaviour of the :class:`.aurorawatchuk.AuroraWatchUK` class but its fields are evaluated
just once and cache... | from aurorawatchuk import AuroraWatchUK
__author__ = 'Steve Marple'
__version__ = '0.1.2'
__license__ = 'MIT'
class AuroraWatchUK_SS(object):
"""Take a snapshot of the AuroraWatch UK status.
This class mimics the behaviour of the :class:`.aurorawatchuk.AuroraWatchUK` class but its fields are evaluated
... | <commit_before>from aurorawatchuk import AuroraWatchUK
__author__ = 'Steve Marple'
__version__ = '0.1.2'
__license__ = 'MIT'
class AuroraWatchUK_SS(object):
"""Take a snapshot of the AuroraWatch UK status.
This class mimics the behaviour of the :class:`.aurorawatchuk.AuroraWatchUK` class but its fields are... |
e1f49afe5d4aeae2306349d52df4295944598dc1 | thinglang/parser/tokens/logic.py | thinglang/parser/tokens/logic.py | from thinglang.lexer.symbols.logic import LexicalEquality
from thinglang.parser.tokens import BaseToken
class Conditional(BaseToken):
ADVANCE = False
def __init__(self, slice):
super(Conditional, self).__init__(slice)
_, self.value = slice
def describe(self):
return 'if {}'.form... | from thinglang.lexer.symbols.logic import LexicalEquality
from thinglang.parser.tokens import BaseToken
class Conditional(BaseToken):
ADVANCE = False
def __init__(self, slice):
super(Conditional, self).__init__(slice)
_, self.value = slice
def describe(self):
return 'if {}'.form... | Update interface signatures for else branches | Update interface signatures for else branches
| Python | mit | ytanay/thinglang,ytanay/thinglang,ytanay/thinglang,ytanay/thinglang | from thinglang.lexer.symbols.logic import LexicalEquality
from thinglang.parser.tokens import BaseToken
class Conditional(BaseToken):
ADVANCE = False
def __init__(self, slice):
super(Conditional, self).__init__(slice)
_, self.value = slice
def describe(self):
return 'if {}'.form... | from thinglang.lexer.symbols.logic import LexicalEquality
from thinglang.parser.tokens import BaseToken
class Conditional(BaseToken):
ADVANCE = False
def __init__(self, slice):
super(Conditional, self).__init__(slice)
_, self.value = slice
def describe(self):
return 'if {}'.form... | <commit_before>from thinglang.lexer.symbols.logic import LexicalEquality
from thinglang.parser.tokens import BaseToken
class Conditional(BaseToken):
ADVANCE = False
def __init__(self, slice):
super(Conditional, self).__init__(slice)
_, self.value = slice
def describe(self):
retu... | from thinglang.lexer.symbols.logic import LexicalEquality
from thinglang.parser.tokens import BaseToken
class Conditional(BaseToken):
ADVANCE = False
def __init__(self, slice):
super(Conditional, self).__init__(slice)
_, self.value = slice
def describe(self):
return 'if {}'.form... | from thinglang.lexer.symbols.logic import LexicalEquality
from thinglang.parser.tokens import BaseToken
class Conditional(BaseToken):
ADVANCE = False
def __init__(self, slice):
super(Conditional, self).__init__(slice)
_, self.value = slice
def describe(self):
return 'if {}'.form... | <commit_before>from thinglang.lexer.symbols.logic import LexicalEquality
from thinglang.parser.tokens import BaseToken
class Conditional(BaseToken):
ADVANCE = False
def __init__(self, slice):
super(Conditional, self).__init__(slice)
_, self.value = slice
def describe(self):
retu... |
efdfcccf57b294d529039095c2c71401546b3519 | elephas/utils/functional_utils.py | elephas/utils/functional_utils.py | from __future__ import absolute_import
import numpy as np
def add_params(p1, p2):
res = []
for x,y in zip(p1,p2):
res.append(x+y)
return res
def get_neutral(array):
res = []
for x in array:
res.append(np.zeros_like(x))
return res
def divide_by(array_list, num_workers):
fo... | from __future__ import absolute_import
import numpy as np
def add_params(p1, p2):
res = []
for x,y in zip(p1,p2):
res.append(x+y)
return res
def subtract_params(p1, p2):
res = []
for x,y in zip(p1,p2):
res.append(x-y)
return res
def get_neutral(array):
res = []
for x ... | Subtract two sets of parameters | Subtract two sets of parameters
| Python | mit | FighterLYL/elephas,maxpumperla/elephas,CheMcCandless/elephas,daishichao/elephas,maxpumperla/elephas,aarzhaev/elephas,darcy0511/elephas | from __future__ import absolute_import
import numpy as np
def add_params(p1, p2):
res = []
for x,y in zip(p1,p2):
res.append(x+y)
return res
def get_neutral(array):
res = []
for x in array:
res.append(np.zeros_like(x))
return res
def divide_by(array_list, num_workers):
fo... | from __future__ import absolute_import
import numpy as np
def add_params(p1, p2):
res = []
for x,y in zip(p1,p2):
res.append(x+y)
return res
def subtract_params(p1, p2):
res = []
for x,y in zip(p1,p2):
res.append(x-y)
return res
def get_neutral(array):
res = []
for x ... | <commit_before>from __future__ import absolute_import
import numpy as np
def add_params(p1, p2):
res = []
for x,y in zip(p1,p2):
res.append(x+y)
return res
def get_neutral(array):
res = []
for x in array:
res.append(np.zeros_like(x))
return res
def divide_by(array_list, num_w... | from __future__ import absolute_import
import numpy as np
def add_params(p1, p2):
res = []
for x,y in zip(p1,p2):
res.append(x+y)
return res
def subtract_params(p1, p2):
res = []
for x,y in zip(p1,p2):
res.append(x-y)
return res
def get_neutral(array):
res = []
for x ... | from __future__ import absolute_import
import numpy as np
def add_params(p1, p2):
res = []
for x,y in zip(p1,p2):
res.append(x+y)
return res
def get_neutral(array):
res = []
for x in array:
res.append(np.zeros_like(x))
return res
def divide_by(array_list, num_workers):
fo... | <commit_before>from __future__ import absolute_import
import numpy as np
def add_params(p1, p2):
res = []
for x,y in zip(p1,p2):
res.append(x+y)
return res
def get_neutral(array):
res = []
for x in array:
res.append(np.zeros_like(x))
return res
def divide_by(array_list, num_w... |
634cfafd7470c40c574f315c3302158ea3232bc9 | example/achillesexample/blocks.py | example/achillesexample/blocks.py | from achilles import blocks, tables
from time import sleep
from models import Person
register = blocks.Library('example')
COUNTER = 0
@register.block(template_name='blocks/message.html')
def counter():
global COUNTER
COUNTER += 1
return {
'message': 'Block loaded %s times' % COUNTER,
}
@reg... | from achilles import blocks, tables
from time import sleep
from models import Person
register = blocks.Library('example')
COUNTER = 0
@register.block(template_name='blocks/message.html')
def counter():
global COUNTER
COUNTER += 1
return {
'message': 'Block loaded %s times' % COUNTER,
}
@reg... | Use verbose names in example table | Use verbose names in example table
| Python | apache-2.0 | exekias/django-achilles,exekias/django-achilles | from achilles import blocks, tables
from time import sleep
from models import Person
register = blocks.Library('example')
COUNTER = 0
@register.block(template_name='blocks/message.html')
def counter():
global COUNTER
COUNTER += 1
return {
'message': 'Block loaded %s times' % COUNTER,
}
@reg... | from achilles import blocks, tables
from time import sleep
from models import Person
register = blocks.Library('example')
COUNTER = 0
@register.block(template_name='blocks/message.html')
def counter():
global COUNTER
COUNTER += 1
return {
'message': 'Block loaded %s times' % COUNTER,
}
@reg... | <commit_before>from achilles import blocks, tables
from time import sleep
from models import Person
register = blocks.Library('example')
COUNTER = 0
@register.block(template_name='blocks/message.html')
def counter():
global COUNTER
COUNTER += 1
return {
'message': 'Block loaded %s times' % COUNT... | from achilles import blocks, tables
from time import sleep
from models import Person
register = blocks.Library('example')
COUNTER = 0
@register.block(template_name='blocks/message.html')
def counter():
global COUNTER
COUNTER += 1
return {
'message': 'Block loaded %s times' % COUNTER,
}
@reg... | from achilles import blocks, tables
from time import sleep
from models import Person
register = blocks.Library('example')
COUNTER = 0
@register.block(template_name='blocks/message.html')
def counter():
global COUNTER
COUNTER += 1
return {
'message': 'Block loaded %s times' % COUNTER,
}
@reg... | <commit_before>from achilles import blocks, tables
from time import sleep
from models import Person
register = blocks.Library('example')
COUNTER = 0
@register.block(template_name='blocks/message.html')
def counter():
global COUNTER
COUNTER += 1
return {
'message': 'Block loaded %s times' % COUNT... |
21889635640e0ca5e63fb7351b745e29b8748515 | labmanager/utils.py | labmanager/utils.py | import os
import sys
from werkzeug.urls import url_quote, url_unquote
from werkzeug.routing import PathConverter
def data_filename(fname):
basedir = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
if os.path.exists(os.path.join(basedir, 'labmanager_data', fname)):
return os.path.join(ba... | import os
import sys
from werkzeug.urls import url_quote, url_unquote
from werkzeug.routing import PathConverter
def data_filename(fname):
basedir = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
if os.path.exists(os.path.join(basedir, 'labmanager_data', fname)):
return os.path.join(ba... | Fix issue with URL routes | Fix issue with URL routes
| Python | bsd-2-clause | gateway4labs/labmanager,gateway4labs/labmanager,labsland/labmanager,labsland/labmanager,morelab/labmanager,go-lab/labmanager,morelab/labmanager,porduna/labmanager,morelab/labmanager,go-lab/labmanager,go-lab/labmanager,porduna/labmanager,morelab/labmanager,porduna/labmanager,labsland/labmanager,labsland/labmanager,pordu... | import os
import sys
from werkzeug.urls import url_quote, url_unquote
from werkzeug.routing import PathConverter
def data_filename(fname):
basedir = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
if os.path.exists(os.path.join(basedir, 'labmanager_data', fname)):
return os.path.join(ba... | import os
import sys
from werkzeug.urls import url_quote, url_unquote
from werkzeug.routing import PathConverter
def data_filename(fname):
basedir = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
if os.path.exists(os.path.join(basedir, 'labmanager_data', fname)):
return os.path.join(ba... | <commit_before>import os
import sys
from werkzeug.urls import url_quote, url_unquote
from werkzeug.routing import PathConverter
def data_filename(fname):
basedir = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
if os.path.exists(os.path.join(basedir, 'labmanager_data', fname)):
return ... | import os
import sys
from werkzeug.urls import url_quote, url_unquote
from werkzeug.routing import PathConverter
def data_filename(fname):
basedir = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
if os.path.exists(os.path.join(basedir, 'labmanager_data', fname)):
return os.path.join(ba... | import os
import sys
from werkzeug.urls import url_quote, url_unquote
from werkzeug.routing import PathConverter
def data_filename(fname):
basedir = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
if os.path.exists(os.path.join(basedir, 'labmanager_data', fname)):
return os.path.join(ba... | <commit_before>import os
import sys
from werkzeug.urls import url_quote, url_unquote
from werkzeug.routing import PathConverter
def data_filename(fname):
basedir = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
if os.path.exists(os.path.join(basedir, 'labmanager_data', fname)):
return ... |
dac003dc60034cf3dce6829f90ccec30593a34b2 | ingestors/worker.py | ingestors/worker.py | import logging
from followthemoney import model
from servicelayer.worker import Worker
from ingestors.manager import Manager
log = logging.getLogger(__name__)
class IngestWorker(Worker):
"""A long running task runner that uses Redis as a task queue"""
def dispatch_next(self, task, entities):
next_s... | import logging
from followthemoney import model
from servicelayer.worker import Worker
from ingestors.manager import Manager
log = logging.getLogger(__name__)
class IngestWorker(Worker):
"""A long running task runner that uses Redis as a task queue"""
def dispatch_next(self, task, entities):
next_s... | Switch to a mutation timestamp | Switch to a mutation timestamp
| Python | mit | alephdata/ingestors | import logging
from followthemoney import model
from servicelayer.worker import Worker
from ingestors.manager import Manager
log = logging.getLogger(__name__)
class IngestWorker(Worker):
"""A long running task runner that uses Redis as a task queue"""
def dispatch_next(self, task, entities):
next_s... | import logging
from followthemoney import model
from servicelayer.worker import Worker
from ingestors.manager import Manager
log = logging.getLogger(__name__)
class IngestWorker(Worker):
"""A long running task runner that uses Redis as a task queue"""
def dispatch_next(self, task, entities):
next_s... | <commit_before>import logging
from followthemoney import model
from servicelayer.worker import Worker
from ingestors.manager import Manager
log = logging.getLogger(__name__)
class IngestWorker(Worker):
"""A long running task runner that uses Redis as a task queue"""
def dispatch_next(self, task, entities):... | import logging
from followthemoney import model
from servicelayer.worker import Worker
from ingestors.manager import Manager
log = logging.getLogger(__name__)
class IngestWorker(Worker):
"""A long running task runner that uses Redis as a task queue"""
def dispatch_next(self, task, entities):
next_s... | import logging
from followthemoney import model
from servicelayer.worker import Worker
from ingestors.manager import Manager
log = logging.getLogger(__name__)
class IngestWorker(Worker):
"""A long running task runner that uses Redis as a task queue"""
def dispatch_next(self, task, entities):
next_s... | <commit_before>import logging
from followthemoney import model
from servicelayer.worker import Worker
from ingestors.manager import Manager
log = logging.getLogger(__name__)
class IngestWorker(Worker):
"""A long running task runner that uses Redis as a task queue"""
def dispatch_next(self, task, entities):... |
48f9b32bfe8a222cbe8afdb1e4f0d63bc2ac9a68 | nova/conf/cache.py | nova/conf/cache.py | # needs:fix_opt_description
# needs:check_deprecation_status
# needs:check_opt_group_and_type
# needs:fix_opt_description_indentation
# needs:fix_opt_registration_consistency
# Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# Copyrig... | # Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# Copyright 2016 OpenStack Foundation
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance wi... | Update tags for Cache config option | Update tags for Cache config option
Updated tags for config options consistency [1].
[1] https://wiki.openstack.org/wiki/ConfigOptionsConsistency
Change-Id: I3f82d2b4d60028221bc861bfe0fe5dff6efd971f
Implements: Blueprint centralize-config-options-newton
| Python | apache-2.0 | vmturbo/nova,cloudbase/nova,hanlind/nova,sebrandon1/nova,Juniper/nova,jianghuaw/nova,rajalokan/nova,rahulunair/nova,alaski/nova,Juniper/nova,mahak/nova,Juniper/nova,mikalstill/nova,jianghuaw/nova,rahulunair/nova,sebrandon1/nova,gooddata/openstack-nova,alaski/nova,klmitch/nova,openstack/nova,Juniper/nova,klmitch/nova,ra... | # needs:fix_opt_description
# needs:check_deprecation_status
# needs:check_opt_group_and_type
# needs:fix_opt_description_indentation
# needs:fix_opt_registration_consistency
# Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# Copyrig... | # Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# Copyright 2016 OpenStack Foundation
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance wi... | <commit_before># needs:fix_opt_description
# needs:check_deprecation_status
# needs:check_opt_group_and_type
# needs:fix_opt_description_indentation
# needs:fix_opt_registration_consistency
# Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administra... | # Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# Copyright 2016 OpenStack Foundation
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance wi... | # needs:fix_opt_description
# needs:check_deprecation_status
# needs:check_opt_group_and_type
# needs:fix_opt_description_indentation
# needs:fix_opt_registration_consistency
# Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# Copyrig... | <commit_before># needs:fix_opt_description
# needs:check_deprecation_status
# needs:check_opt_group_and_type
# needs:fix_opt_description_indentation
# needs:fix_opt_registration_consistency
# Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administra... |
f5e7751835764a819678f58be0098cd7a62cb691 | core/admin/mailu/internal/__init__.py | core/admin/mailu/internal/__init__.py | from mailu import limiter
import socket
import flask
internal = flask.Blueprint('internal', __name__)
@limiter.request_filter
def whitelist_webmail():
try:
return flask.request.headers["Client-Ip"] ==\
socket.gethostbyname("webmail")
except:
return False
from mailu.internal im... | from flask_limiter import RateLimitExceeded
from mailu import limiter
import socket
import flask
internal = flask.Blueprint('internal', __name__)
@internal.app_errorhandler(RateLimitExceeded)
def rate_limit_handler(e):
response = flask.Response()
response.headers['Auth-Status'] = 'Authentication rate limit... | Return correct status codes from auth rate limiter failure. | Return correct status codes from auth rate limiter failure.
| Python | mit | kaiyou/freeposte.io,kaiyou/freeposte.io,kaiyou/freeposte.io,kaiyou/freeposte.io | from mailu import limiter
import socket
import flask
internal = flask.Blueprint('internal', __name__)
@limiter.request_filter
def whitelist_webmail():
try:
return flask.request.headers["Client-Ip"] ==\
socket.gethostbyname("webmail")
except:
return False
from mailu.internal im... | from flask_limiter import RateLimitExceeded
from mailu import limiter
import socket
import flask
internal = flask.Blueprint('internal', __name__)
@internal.app_errorhandler(RateLimitExceeded)
def rate_limit_handler(e):
response = flask.Response()
response.headers['Auth-Status'] = 'Authentication rate limit... | <commit_before>from mailu import limiter
import socket
import flask
internal = flask.Blueprint('internal', __name__)
@limiter.request_filter
def whitelist_webmail():
try:
return flask.request.headers["Client-Ip"] ==\
socket.gethostbyname("webmail")
except:
return False
from ma... | from flask_limiter import RateLimitExceeded
from mailu import limiter
import socket
import flask
internal = flask.Blueprint('internal', __name__)
@internal.app_errorhandler(RateLimitExceeded)
def rate_limit_handler(e):
response = flask.Response()
response.headers['Auth-Status'] = 'Authentication rate limit... | from mailu import limiter
import socket
import flask
internal = flask.Blueprint('internal', __name__)
@limiter.request_filter
def whitelist_webmail():
try:
return flask.request.headers["Client-Ip"] ==\
socket.gethostbyname("webmail")
except:
return False
from mailu.internal im... | <commit_before>from mailu import limiter
import socket
import flask
internal = flask.Blueprint('internal', __name__)
@limiter.request_filter
def whitelist_webmail():
try:
return flask.request.headers["Client-Ip"] ==\
socket.gethostbyname("webmail")
except:
return False
from ma... |
3c0b2806627347aeda52e19b77d84042deb16824 | swfc_lt_stream/net.py | swfc_lt_stream/net.py | import enum
import functools
import operator
import struct
class Packet(enum.IntEnum):
connect = 0
disconnect = 1
data = 2
ack = 3
end = 4
def build_data_packet(window, blockseed, block):
payload = struct.pack('!II', window, blockseed) + block
return build_packet(Packet.data, payload)
... | import enum
import functools
import operator
import struct
class Packet(enum.IntEnum):
connect = 0
disconnect = 1
data = 2
ack = 3
end = 4
def build_data_packet(window, blockseed, block):
payload = struct.pack('!II', window, blockseed) + block
return build_packet(Packet.data, payload)
... | Remove starred expression for 3.4 compatibility | Remove starred expression for 3.4 compatibility
| Python | mit | anikey-m/swfc-lt-stream,anikey-m/swfc-lt-stream | import enum
import functools
import operator
import struct
class Packet(enum.IntEnum):
connect = 0
disconnect = 1
data = 2
ack = 3
end = 4
def build_data_packet(window, blockseed, block):
payload = struct.pack('!II', window, blockseed) + block
return build_packet(Packet.data, payload)
... | import enum
import functools
import operator
import struct
class Packet(enum.IntEnum):
connect = 0
disconnect = 1
data = 2
ack = 3
end = 4
def build_data_packet(window, blockseed, block):
payload = struct.pack('!II', window, blockseed) + block
return build_packet(Packet.data, payload)
... | <commit_before>import enum
import functools
import operator
import struct
class Packet(enum.IntEnum):
connect = 0
disconnect = 1
data = 2
ack = 3
end = 4
def build_data_packet(window, blockseed, block):
payload = struct.pack('!II', window, blockseed) + block
return build_packet(Packet.da... | import enum
import functools
import operator
import struct
class Packet(enum.IntEnum):
connect = 0
disconnect = 1
data = 2
ack = 3
end = 4
def build_data_packet(window, blockseed, block):
payload = struct.pack('!II', window, blockseed) + block
return build_packet(Packet.data, payload)
... | import enum
import functools
import operator
import struct
class Packet(enum.IntEnum):
connect = 0
disconnect = 1
data = 2
ack = 3
end = 4
def build_data_packet(window, blockseed, block):
payload = struct.pack('!II', window, blockseed) + block
return build_packet(Packet.data, payload)
... | <commit_before>import enum
import functools
import operator
import struct
class Packet(enum.IntEnum):
connect = 0
disconnect = 1
data = 2
ack = 3
end = 4
def build_data_packet(window, blockseed, block):
payload = struct.pack('!II', window, blockseed) + block
return build_packet(Packet.da... |
347faf7f550253bb076accbb1c4ecaba9d906324 | talks/events/forms.py | talks/events/forms.py | from django import forms
from .models import Event, EventGroup
class EventForm(forms.ModelForm):
class Meta:
fields = ('title', 'description', 'speakers', 'location', 'start', 'end')
model = Event
labels = {
'description': 'Abstract',
'speakers': 'Speaker',
... | from django import forms
from .models import Event, EventGroup
class EventForm(forms.ModelForm):
class Meta:
fields = ('title', 'description', 'speakers', 'location', 'start', 'end')
model = Event
labels = {
'description': 'Abstract',
'speakers': 'Speaker',
... | Validate between the Select and create new EventGroup | Validate between the Select and create new EventGroup
Added simple booleans to manage this selection for now
| Python | apache-2.0 | ox-it/talks.ox,ox-it/talks.ox,ox-it/talks.ox | from django import forms
from .models import Event, EventGroup
class EventForm(forms.ModelForm):
class Meta:
fields = ('title', 'description', 'speakers', 'location', 'start', 'end')
model = Event
labels = {
'description': 'Abstract',
'speakers': 'Speaker',
... | from django import forms
from .models import Event, EventGroup
class EventForm(forms.ModelForm):
class Meta:
fields = ('title', 'description', 'speakers', 'location', 'start', 'end')
model = Event
labels = {
'description': 'Abstract',
'speakers': 'Speaker',
... | <commit_before>from django import forms
from .models import Event, EventGroup
class EventForm(forms.ModelForm):
class Meta:
fields = ('title', 'description', 'speakers', 'location', 'start', 'end')
model = Event
labels = {
'description': 'Abstract',
'speakers': 'S... | from django import forms
from .models import Event, EventGroup
class EventForm(forms.ModelForm):
class Meta:
fields = ('title', 'description', 'speakers', 'location', 'start', 'end')
model = Event
labels = {
'description': 'Abstract',
'speakers': 'Speaker',
... | from django import forms
from .models import Event, EventGroup
class EventForm(forms.ModelForm):
class Meta:
fields = ('title', 'description', 'speakers', 'location', 'start', 'end')
model = Event
labels = {
'description': 'Abstract',
'speakers': 'Speaker',
... | <commit_before>from django import forms
from .models import Event, EventGroup
class EventForm(forms.ModelForm):
class Meta:
fields = ('title', 'description', 'speakers', 'location', 'start', 'end')
model = Event
labels = {
'description': 'Abstract',
'speakers': 'S... |
643ea571b795ed933afac13e38e1aee9f5fec4b6 | openminted/Ab3P.py | openminted/Ab3P.py | #!/usr/bin/env python
import argparse
import pubrunner
import pubrunner.command_line
import os
import sys
if __name__ == '__main__':
parser = argparse.ArgumentParser(description='Main access point for OpenMinTeD Docker component')
parser.add_argument('--input',required=True,type=str,help='Input directory')
parser.... | #!/usr/bin/env python
import argparse
import pubrunner
import pubrunner.command_line
import os
import sys
if __name__ == '__main__':
parser = argparse.ArgumentParser(description='Main access point for OpenMinTeD Docker component')
parser.add_argument('--input',required=True,type=str,help='Input directory')
parser.... | Add unused param:language flag for OpenMinTeD purposes | Add unused param:language flag for OpenMinTeD purposes
| Python | mit | jakelever/pubrunner,jakelever/pubrunner | #!/usr/bin/env python
import argparse
import pubrunner
import pubrunner.command_line
import os
import sys
if __name__ == '__main__':
parser = argparse.ArgumentParser(description='Main access point for OpenMinTeD Docker component')
parser.add_argument('--input',required=True,type=str,help='Input directory')
parser.... | #!/usr/bin/env python
import argparse
import pubrunner
import pubrunner.command_line
import os
import sys
if __name__ == '__main__':
parser = argparse.ArgumentParser(description='Main access point for OpenMinTeD Docker component')
parser.add_argument('--input',required=True,type=str,help='Input directory')
parser.... | <commit_before>#!/usr/bin/env python
import argparse
import pubrunner
import pubrunner.command_line
import os
import sys
if __name__ == '__main__':
parser = argparse.ArgumentParser(description='Main access point for OpenMinTeD Docker component')
parser.add_argument('--input',required=True,type=str,help='Input direc... | #!/usr/bin/env python
import argparse
import pubrunner
import pubrunner.command_line
import os
import sys
if __name__ == '__main__':
parser = argparse.ArgumentParser(description='Main access point for OpenMinTeD Docker component')
parser.add_argument('--input',required=True,type=str,help='Input directory')
parser.... | #!/usr/bin/env python
import argparse
import pubrunner
import pubrunner.command_line
import os
import sys
if __name__ == '__main__':
parser = argparse.ArgumentParser(description='Main access point for OpenMinTeD Docker component')
parser.add_argument('--input',required=True,type=str,help='Input directory')
parser.... | <commit_before>#!/usr/bin/env python
import argparse
import pubrunner
import pubrunner.command_line
import os
import sys
if __name__ == '__main__':
parser = argparse.ArgumentParser(description='Main access point for OpenMinTeD Docker component')
parser.add_argument('--input',required=True,type=str,help='Input direc... |
7c97bbe3e25f7cc8953fd286a0736ede09f97dcf | paper/replicate.py | paper/replicate.py | import os
# Best Python command on your system
my_python = "python"
print("This script should download and install DNest4 and \
replicate all the runs presented in the paper.\nNote:\
plots will be generated, which need to be manually\n\
closed for the script to continue. It assumes\n\
everything has been compiled alr... | import os
import matplotlib.pyplot
# Best Python command on your system
my_python = "/home/brendon/local/anaconda3/bin/python"
print("This script should\
replicate all the runs presented in the paper.\nNote:\
plots will be generated, which need to be manually\n\
closed for the script to continue. It assumes\n\
everyt... | Use existing code (don't clone again) | Use existing code (don't clone again)
| Python | mit | eggplantbren/DNest4,eggplantbren/DNest4,eggplantbren/DNest4,eggplantbren/DNest4,eggplantbren/DNest4 | import os
# Best Python command on your system
my_python = "python"
print("This script should download and install DNest4 and \
replicate all the runs presented in the paper.\nNote:\
plots will be generated, which need to be manually\n\
closed for the script to continue. It assumes\n\
everything has been compiled alr... | import os
import matplotlib.pyplot
# Best Python command on your system
my_python = "/home/brendon/local/anaconda3/bin/python"
print("This script should\
replicate all the runs presented in the paper.\nNote:\
plots will be generated, which need to be manually\n\
closed for the script to continue. It assumes\n\
everyt... | <commit_before>import os
# Best Python command on your system
my_python = "python"
print("This script should download and install DNest4 and \
replicate all the runs presented in the paper.\nNote:\
plots will be generated, which need to be manually\n\
closed for the script to continue. It assumes\n\
everything has be... | import os
import matplotlib.pyplot
# Best Python command on your system
my_python = "/home/brendon/local/anaconda3/bin/python"
print("This script should\
replicate all the runs presented in the paper.\nNote:\
plots will be generated, which need to be manually\n\
closed for the script to continue. It assumes\n\
everyt... | import os
# Best Python command on your system
my_python = "python"
print("This script should download and install DNest4 and \
replicate all the runs presented in the paper.\nNote:\
plots will be generated, which need to be manually\n\
closed for the script to continue. It assumes\n\
everything has been compiled alr... | <commit_before>import os
# Best Python command on your system
my_python = "python"
print("This script should download and install DNest4 and \
replicate all the runs presented in the paper.\nNote:\
plots will be generated, which need to be manually\n\
closed for the script to continue. It assumes\n\
everything has be... |
6a095a8a140b8056c5a17467d3249c1ab9bba8f4 | grammpy/IsMethodsRuleExtension.py | grammpy/IsMethodsRuleExtension.py | #!/usr/bin/env python
"""
:Author Patrik Valkovic
:Created 23.06.2017 16:39
:Licence GNUv3
Part of grammpy
"""
from .Rule import Rule
class IsMethodsRuleExtension(Rule):
@classmethod
def is_regular(cls):
return False
@classmethod
def is_contextfree(cls):
return False
@classmeth... | #!/usr/bin/env python
"""
:Author Patrik Valkovic
:Created 23.06.2017 16:39
:Licence GNUv3
Part of grammpy
"""
from .Rule import Rule
class IsMethodsRuleExtension(Rule):
@classmethod
def is_regular(cls):
return False
@classmethod
def is_contextfree(cls):
return False
@classmeth... | Add header of Rule.isValid method | Add header of Rule.isValid method
| Python | mit | PatrikValkovic/grammpy | #!/usr/bin/env python
"""
:Author Patrik Valkovic
:Created 23.06.2017 16:39
:Licence GNUv3
Part of grammpy
"""
from .Rule import Rule
class IsMethodsRuleExtension(Rule):
@classmethod
def is_regular(cls):
return False
@classmethod
def is_contextfree(cls):
return False
@classmeth... | #!/usr/bin/env python
"""
:Author Patrik Valkovic
:Created 23.06.2017 16:39
:Licence GNUv3
Part of grammpy
"""
from .Rule import Rule
class IsMethodsRuleExtension(Rule):
@classmethod
def is_regular(cls):
return False
@classmethod
def is_contextfree(cls):
return False
@classmeth... | <commit_before>#!/usr/bin/env python
"""
:Author Patrik Valkovic
:Created 23.06.2017 16:39
:Licence GNUv3
Part of grammpy
"""
from .Rule import Rule
class IsMethodsRuleExtension(Rule):
@classmethod
def is_regular(cls):
return False
@classmethod
def is_contextfree(cls):
return False
... | #!/usr/bin/env python
"""
:Author Patrik Valkovic
:Created 23.06.2017 16:39
:Licence GNUv3
Part of grammpy
"""
from .Rule import Rule
class IsMethodsRuleExtension(Rule):
@classmethod
def is_regular(cls):
return False
@classmethod
def is_contextfree(cls):
return False
@classmeth... | #!/usr/bin/env python
"""
:Author Patrik Valkovic
:Created 23.06.2017 16:39
:Licence GNUv3
Part of grammpy
"""
from .Rule import Rule
class IsMethodsRuleExtension(Rule):
@classmethod
def is_regular(cls):
return False
@classmethod
def is_contextfree(cls):
return False
@classmeth... | <commit_before>#!/usr/bin/env python
"""
:Author Patrik Valkovic
:Created 23.06.2017 16:39
:Licence GNUv3
Part of grammpy
"""
from .Rule import Rule
class IsMethodsRuleExtension(Rule):
@classmethod
def is_regular(cls):
return False
@classmethod
def is_contextfree(cls):
return False
... |
d9324be744dd19720b1c31c520f7189ffffbccd9 | linter.py | linter.py | #
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by Bartosz Kruszczynski
# Copyright (c) 2015 Bartosz Kruszczynski
#
# License: MIT
#
"""This module exports the Reek plugin class."""
from SublimeLinter.lint import RubyLinter
class Reek(RubyLinter):
"""Provides ... | #
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by Bartosz Kruszczynski
# Copyright (c) 2015 Bartosz Kruszczynski
#
# License: MIT
#
"""This module exports the Reek plugin class."""
from SublimeLinter.lint import RubyLinter
class Reek(RubyLinter):
"""Provides ... | Remove the wiki link from the smell message | Remove the wiki link from the smell message
| Python | mit | codequest-eu/SublimeLinter-contrib-reek | #
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by Bartosz Kruszczynski
# Copyright (c) 2015 Bartosz Kruszczynski
#
# License: MIT
#
"""This module exports the Reek plugin class."""
from SublimeLinter.lint import RubyLinter
class Reek(RubyLinter):
"""Provides ... | #
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by Bartosz Kruszczynski
# Copyright (c) 2015 Bartosz Kruszczynski
#
# License: MIT
#
"""This module exports the Reek plugin class."""
from SublimeLinter.lint import RubyLinter
class Reek(RubyLinter):
"""Provides ... | <commit_before>#
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by Bartosz Kruszczynski
# Copyright (c) 2015 Bartosz Kruszczynski
#
# License: MIT
#
"""This module exports the Reek plugin class."""
from SublimeLinter.lint import RubyLinter
class Reek(RubyLinter):
... | #
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by Bartosz Kruszczynski
# Copyright (c) 2015 Bartosz Kruszczynski
#
# License: MIT
#
"""This module exports the Reek plugin class."""
from SublimeLinter.lint import RubyLinter
class Reek(RubyLinter):
"""Provides ... | #
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by Bartosz Kruszczynski
# Copyright (c) 2015 Bartosz Kruszczynski
#
# License: MIT
#
"""This module exports the Reek plugin class."""
from SublimeLinter.lint import RubyLinter
class Reek(RubyLinter):
"""Provides ... | <commit_before>#
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by Bartosz Kruszczynski
# Copyright (c) 2015 Bartosz Kruszczynski
#
# License: MIT
#
"""This module exports the Reek plugin class."""
from SublimeLinter.lint import RubyLinter
class Reek(RubyLinter):
... |
aff606998eccb328a48323f79d26d6c96ad4900a | doc/examples/plot_piecewise_affine.py | doc/examples/plot_piecewise_affine.py | """
===============================
Piecewise Affine Transformation
===============================
This example shows how to use the Piecewise Affine Transformation.
"""
import numpy as np
import matplotlib.pyplot as plt
from skimage.transform import PiecewiseAffineTransform, warp
from skimage import data
image = ... | """
===============================
Piecewise Affine Transformation
===============================
This example shows how to use the Piecewise Affine Transformation.
"""
import numpy as np
import matplotlib.pyplot as plt
from skimage.transform import PiecewiseAffineTransform, warp
from skimage import data
image = ... | Add mesh points to plot | Add mesh points to plot
| Python | bsd-3-clause | almarklein/scikit-image,paalge/scikit-image,chintak/scikit-image,keflavich/scikit-image,emon10005/scikit-image,SamHames/scikit-image,oew1v07/scikit-image,chriscrosscutler/scikit-image,SamHames/scikit-image,rjeli/scikit-image,pratapvardhan/scikit-image,ajaybhat/scikit-image,almarklein/scikit-image,GaZ3ll3/scikit-image,j... | """
===============================
Piecewise Affine Transformation
===============================
This example shows how to use the Piecewise Affine Transformation.
"""
import numpy as np
import matplotlib.pyplot as plt
from skimage.transform import PiecewiseAffineTransform, warp
from skimage import data
image = ... | """
===============================
Piecewise Affine Transformation
===============================
This example shows how to use the Piecewise Affine Transformation.
"""
import numpy as np
import matplotlib.pyplot as plt
from skimage.transform import PiecewiseAffineTransform, warp
from skimage import data
image = ... | <commit_before>"""
===============================
Piecewise Affine Transformation
===============================
This example shows how to use the Piecewise Affine Transformation.
"""
import numpy as np
import matplotlib.pyplot as plt
from skimage.transform import PiecewiseAffineTransform, warp
from skimage import ... | """
===============================
Piecewise Affine Transformation
===============================
This example shows how to use the Piecewise Affine Transformation.
"""
import numpy as np
import matplotlib.pyplot as plt
from skimage.transform import PiecewiseAffineTransform, warp
from skimage import data
image = ... | """
===============================
Piecewise Affine Transformation
===============================
This example shows how to use the Piecewise Affine Transformation.
"""
import numpy as np
import matplotlib.pyplot as plt
from skimage.transform import PiecewiseAffineTransform, warp
from skimage import data
image = ... | <commit_before>"""
===============================
Piecewise Affine Transformation
===============================
This example shows how to use the Piecewise Affine Transformation.
"""
import numpy as np
import matplotlib.pyplot as plt
from skimage.transform import PiecewiseAffineTransform, warp
from skimage import ... |
959d20df781edb9f283f5317f50e8000f83e7ab6 | tests/rules/test_no_such_file.py | tests/rules/test_no_such_file.py | import pytest
from thefuck.rules.no_such_file import match, get_new_command
from tests.utils import Command
@pytest.mark.parametrize('command', [
Command(script='mv foo bar/foo', stderr="mv: cannot move 'foo' to 'bar/foo': No such file or directory"),
Command(script='mv foo bar/', stderr="mv: cannot move 'foo... | import pytest
from thefuck.rules.no_such_file import match, get_new_command
from tests.utils import Command
@pytest.mark.parametrize('command', [
Command(script='mv foo bar/foo', stderr="mv: cannot move 'foo' to 'bar/foo': No such file or directory"),
Command(script='mv foo bar/', stderr="mv: cannot move 'foo... | Add `test_not_match` to `no_such_file` tests | Add `test_not_match` to `no_such_file` tests
| Python | mit | manashmndl/thefuck,levythu/thefuck,qingying5810/thefuck,mlk/thefuck,vanita5/thefuck,artiya4u/thefuck,nvbn/thefuck,ostree/thefuck,lawrencebenson/thefuck,sekaiamber/thefuck,manashmndl/thefuck,thinkerchan/thefuck,princeofdarkness76/thefuck,subajat1/thefuck,PLNech/thefuck,lawrencebenson/thefuck,roth1002/thefuck,bigplus/the... | import pytest
from thefuck.rules.no_such_file import match, get_new_command
from tests.utils import Command
@pytest.mark.parametrize('command', [
Command(script='mv foo bar/foo', stderr="mv: cannot move 'foo' to 'bar/foo': No such file or directory"),
Command(script='mv foo bar/', stderr="mv: cannot move 'foo... | import pytest
from thefuck.rules.no_such_file import match, get_new_command
from tests.utils import Command
@pytest.mark.parametrize('command', [
Command(script='mv foo bar/foo', stderr="mv: cannot move 'foo' to 'bar/foo': No such file or directory"),
Command(script='mv foo bar/', stderr="mv: cannot move 'foo... | <commit_before>import pytest
from thefuck.rules.no_such_file import match, get_new_command
from tests.utils import Command
@pytest.mark.parametrize('command', [
Command(script='mv foo bar/foo', stderr="mv: cannot move 'foo' to 'bar/foo': No such file or directory"),
Command(script='mv foo bar/', stderr="mv: c... | import pytest
from thefuck.rules.no_such_file import match, get_new_command
from tests.utils import Command
@pytest.mark.parametrize('command', [
Command(script='mv foo bar/foo', stderr="mv: cannot move 'foo' to 'bar/foo': No such file or directory"),
Command(script='mv foo bar/', stderr="mv: cannot move 'foo... | import pytest
from thefuck.rules.no_such_file import match, get_new_command
from tests.utils import Command
@pytest.mark.parametrize('command', [
Command(script='mv foo bar/foo', stderr="mv: cannot move 'foo' to 'bar/foo': No such file or directory"),
Command(script='mv foo bar/', stderr="mv: cannot move 'foo... | <commit_before>import pytest
from thefuck.rules.no_such_file import match, get_new_command
from tests.utils import Command
@pytest.mark.parametrize('command', [
Command(script='mv foo bar/foo', stderr="mv: cannot move 'foo' to 'bar/foo': No such file or directory"),
Command(script='mv foo bar/', stderr="mv: c... |
6ec61fc80ea8c3626b507d20d6c95d64ae4216c0 | tests/twisted/connect/timeout.py | tests/twisted/connect/timeout.py | """
Test that Gabble times out the connection process after a while if the server
stops responding at various points. Real Gabbles time out after a minute; the
test suite's Gabble times out after a couple of seconds.
"""
from servicetest import assertEquals
from gabbletest import exec_test, XmppAuthenticator
import c... | """
Test that Gabble times out the connection process after a while if the server
stops responding at various points. Real Gabbles time out after a minute; the
test suite's Gabble times out after a couple of seconds.
"""
from servicetest import assertEquals
from gabbletest import exec_test, XmppAuthenticator
import c... | Use 'pass', not 'return', for empty Python methods | Use 'pass', not 'return', for empty Python methods
| Python | lgpl-2.1 | community-ssu/telepathy-gabble,community-ssu/telepathy-gabble,community-ssu/telepathy-gabble,community-ssu/telepathy-gabble | """
Test that Gabble times out the connection process after a while if the server
stops responding at various points. Real Gabbles time out after a minute; the
test suite's Gabble times out after a couple of seconds.
"""
from servicetest import assertEquals
from gabbletest import exec_test, XmppAuthenticator
import c... | """
Test that Gabble times out the connection process after a while if the server
stops responding at various points. Real Gabbles time out after a minute; the
test suite's Gabble times out after a couple of seconds.
"""
from servicetest import assertEquals
from gabbletest import exec_test, XmppAuthenticator
import c... | <commit_before>"""
Test that Gabble times out the connection process after a while if the server
stops responding at various points. Real Gabbles time out after a minute; the
test suite's Gabble times out after a couple of seconds.
"""
from servicetest import assertEquals
from gabbletest import exec_test, XmppAuthenti... | """
Test that Gabble times out the connection process after a while if the server
stops responding at various points. Real Gabbles time out after a minute; the
test suite's Gabble times out after a couple of seconds.
"""
from servicetest import assertEquals
from gabbletest import exec_test, XmppAuthenticator
import c... | """
Test that Gabble times out the connection process after a while if the server
stops responding at various points. Real Gabbles time out after a minute; the
test suite's Gabble times out after a couple of seconds.
"""
from servicetest import assertEquals
from gabbletest import exec_test, XmppAuthenticator
import c... | <commit_before>"""
Test that Gabble times out the connection process after a while if the server
stops responding at various points. Real Gabbles time out after a minute; the
test suite's Gabble times out after a couple of seconds.
"""
from servicetest import assertEquals
from gabbletest import exec_test, XmppAuthenti... |
87446e15eb35ed443f25327e581c350eb19dbe63 | butter/__init__.py | butter/__init__.py | #!/usr/bin/env python
"""Butter: library to give python access to linux's more lower level features"""
__author__ = "Da_Blitz"
__version__ = "0.2"
__email__ = "code@pocketnix.org"
__license__ = "BSD (3 Clause)"
__url__ = "http://code.pocketnix.org/butter"
| #!/usr/bin/env python
"""Butter: library to give python access to linux's more lower level features"""
__author__ = "Da_Blitz"
__version__ = "0.3"
__email__ = "code@pocketnix.org"
__license__ = "BSD (3 Clause)"
__url__ = "http://code.pocketnix.org/butter"
| Tag version 0.3 for impeding release | Tag version 0.3 for impeding release
| Python | bsd-3-clause | arkaitzj/python-butter | #!/usr/bin/env python
"""Butter: library to give python access to linux's more lower level features"""
__author__ = "Da_Blitz"
__version__ = "0.2"
__email__ = "code@pocketnix.org"
__license__ = "BSD (3 Clause)"
__url__ = "http://code.pocketnix.org/butter"
Tag version 0.3 for impeding release | #!/usr/bin/env python
"""Butter: library to give python access to linux's more lower level features"""
__author__ = "Da_Blitz"
__version__ = "0.3"
__email__ = "code@pocketnix.org"
__license__ = "BSD (3 Clause)"
__url__ = "http://code.pocketnix.org/butter"
| <commit_before>#!/usr/bin/env python
"""Butter: library to give python access to linux's more lower level features"""
__author__ = "Da_Blitz"
__version__ = "0.2"
__email__ = "code@pocketnix.org"
__license__ = "BSD (3 Clause)"
__url__ = "http://code.pocketnix.org/butter"
<commit_msg>Tag version 0.3 for impeding release... | #!/usr/bin/env python
"""Butter: library to give python access to linux's more lower level features"""
__author__ = "Da_Blitz"
__version__ = "0.3"
__email__ = "code@pocketnix.org"
__license__ = "BSD (3 Clause)"
__url__ = "http://code.pocketnix.org/butter"
| #!/usr/bin/env python
"""Butter: library to give python access to linux's more lower level features"""
__author__ = "Da_Blitz"
__version__ = "0.2"
__email__ = "code@pocketnix.org"
__license__ = "BSD (3 Clause)"
__url__ = "http://code.pocketnix.org/butter"
Tag version 0.3 for impeding release#!/usr/bin/env python
"""Bu... | <commit_before>#!/usr/bin/env python
"""Butter: library to give python access to linux's more lower level features"""
__author__ = "Da_Blitz"
__version__ = "0.2"
__email__ = "code@pocketnix.org"
__license__ = "BSD (3 Clause)"
__url__ = "http://code.pocketnix.org/butter"
<commit_msg>Tag version 0.3 for impeding release... |
9486a6a3dddece5d7b636e54d3cbc59436206a65 | getversion.py | getversion.py | #! /usr/bin/python
from __future__ import print_function
import sys
import logging
import icat
import icat.config
logging.basicConfig(level=logging.INFO)
#logging.getLogger('suds.client').setLevel(logging.DEBUG)
conf = icat.config.Config(needlogin=False).getconfig()
client = icat.Client(conf.url, **conf.client_kwar... | #! /usr/bin/python
from __future__ import print_function
import sys
import logging
import icat
import icat.config
logging.basicConfig(level=logging.INFO)
#logging.getLogger('suds.client').setLevel(logging.DEBUG)
conf = icat.config.Config(needlogin=False, ids="optional").getconfig()
client = icat.Client(conf.url, **... | Connect also to the IDS (if idsurl is set) and report its version. | Connect also to the IDS (if idsurl is set) and report its version.
git-svn-id: 5b1347ddac5aba1438c637217dfe0bb137609099@844 8efdbd46-c5fb-49ab-9956-99f62928ec21
| Python | apache-2.0 | icatproject/python-icat | #! /usr/bin/python
from __future__ import print_function
import sys
import logging
import icat
import icat.config
logging.basicConfig(level=logging.INFO)
#logging.getLogger('suds.client').setLevel(logging.DEBUG)
conf = icat.config.Config(needlogin=False).getconfig()
client = icat.Client(conf.url, **conf.client_kwar... | #! /usr/bin/python
from __future__ import print_function
import sys
import logging
import icat
import icat.config
logging.basicConfig(level=logging.INFO)
#logging.getLogger('suds.client').setLevel(logging.DEBUG)
conf = icat.config.Config(needlogin=False, ids="optional").getconfig()
client = icat.Client(conf.url, **... | <commit_before>#! /usr/bin/python
from __future__ import print_function
import sys
import logging
import icat
import icat.config
logging.basicConfig(level=logging.INFO)
#logging.getLogger('suds.client').setLevel(logging.DEBUG)
conf = icat.config.Config(needlogin=False).getconfig()
client = icat.Client(conf.url, **c... | #! /usr/bin/python
from __future__ import print_function
import sys
import logging
import icat
import icat.config
logging.basicConfig(level=logging.INFO)
#logging.getLogger('suds.client').setLevel(logging.DEBUG)
conf = icat.config.Config(needlogin=False, ids="optional").getconfig()
client = icat.Client(conf.url, **... | #! /usr/bin/python
from __future__ import print_function
import sys
import logging
import icat
import icat.config
logging.basicConfig(level=logging.INFO)
#logging.getLogger('suds.client').setLevel(logging.DEBUG)
conf = icat.config.Config(needlogin=False).getconfig()
client = icat.Client(conf.url, **conf.client_kwar... | <commit_before>#! /usr/bin/python
from __future__ import print_function
import sys
import logging
import icat
import icat.config
logging.basicConfig(level=logging.INFO)
#logging.getLogger('suds.client').setLevel(logging.DEBUG)
conf = icat.config.Config(needlogin=False).getconfig()
client = icat.Client(conf.url, **c... |
4a05dac1b5f0d24aa13cf5d3bca35b1a70ec9e52 | filter.py | filter.py | import matplotlib.pyplot as plt
import scipy.signal
import numpy as np
import time
from signal_functions import *
match_filter = make_match_filter()
signal_in = import_wav("rec.wav")
# plot_waveform(match_filter, downsample=1, title="Match Filter", ax_labels=["Samples", "Magnitude"])
# plot_signal(signal_in, downsa... | import matplotlib.pyplot as plt
import scipy.signal
import numpy as np
import time
from signal_functions import *
match_filter = make_match_filter()
signal_in = import_wav("rec.wav")
# plot_waveform(match_filter, downsample=1, title="Match Filter", ax_labels=["Samples", "Magnitude"])
# plot_signal(signal_in, downsa... | Print char repersentation of data | Print char repersentation of data
| Python | mit | labseven/SigsysFinalProject | import matplotlib.pyplot as plt
import scipy.signal
import numpy as np
import time
from signal_functions import *
match_filter = make_match_filter()
signal_in = import_wav("rec.wav")
# plot_waveform(match_filter, downsample=1, title="Match Filter", ax_labels=["Samples", "Magnitude"])
# plot_signal(signal_in, downsa... | import matplotlib.pyplot as plt
import scipy.signal
import numpy as np
import time
from signal_functions import *
match_filter = make_match_filter()
signal_in = import_wav("rec.wav")
# plot_waveform(match_filter, downsample=1, title="Match Filter", ax_labels=["Samples", "Magnitude"])
# plot_signal(signal_in, downsa... | <commit_before>import matplotlib.pyplot as plt
import scipy.signal
import numpy as np
import time
from signal_functions import *
match_filter = make_match_filter()
signal_in = import_wav("rec.wav")
# plot_waveform(match_filter, downsample=1, title="Match Filter", ax_labels=["Samples", "Magnitude"])
# plot_signal(si... | import matplotlib.pyplot as plt
import scipy.signal
import numpy as np
import time
from signal_functions import *
match_filter = make_match_filter()
signal_in = import_wav("rec.wav")
# plot_waveform(match_filter, downsample=1, title="Match Filter", ax_labels=["Samples", "Magnitude"])
# plot_signal(signal_in, downsa... | import matplotlib.pyplot as plt
import scipy.signal
import numpy as np
import time
from signal_functions import *
match_filter = make_match_filter()
signal_in = import_wav("rec.wav")
# plot_waveform(match_filter, downsample=1, title="Match Filter", ax_labels=["Samples", "Magnitude"])
# plot_signal(signal_in, downsa... | <commit_before>import matplotlib.pyplot as plt
import scipy.signal
import numpy as np
import time
from signal_functions import *
match_filter = make_match_filter()
signal_in = import_wav("rec.wav")
# plot_waveform(match_filter, downsample=1, title="Match Filter", ax_labels=["Samples", "Magnitude"])
# plot_signal(si... |
2807e2c39e54046cb750c290cb7b12b289e1cd9a | test/test_indexing.py | test/test_indexing.py | import pytest
import os
import shutil
import xarray as xr
from cosima_cookbook import database
from dask.distributed import Client
from sqlalchemy import select, func
@pytest.fixture(scope='module')
def client():
return Client()
def test_broken(client, tmp_path):
db = tmp_path / 'test.db'
database.build_... | import pytest
import os
import shutil
import xarray as xr
from cosima_cookbook import database
from dask.distributed import Client
from sqlalchemy import select, func
@pytest.fixture(scope='module')
def client():
client = Client()
yield client
client.close()
def test_broken(client, tmp_path):
db = tm... | Clean up dask client in indexing test | Clean up dask client in indexing test
| Python | apache-2.0 | OceansAus/cosima-cookbook | import pytest
import os
import shutil
import xarray as xr
from cosima_cookbook import database
from dask.distributed import Client
from sqlalchemy import select, func
@pytest.fixture(scope='module')
def client():
return Client()
def test_broken(client, tmp_path):
db = tmp_path / 'test.db'
database.build_... | import pytest
import os
import shutil
import xarray as xr
from cosima_cookbook import database
from dask.distributed import Client
from sqlalchemy import select, func
@pytest.fixture(scope='module')
def client():
client = Client()
yield client
client.close()
def test_broken(client, tmp_path):
db = tm... | <commit_before>import pytest
import os
import shutil
import xarray as xr
from cosima_cookbook import database
from dask.distributed import Client
from sqlalchemy import select, func
@pytest.fixture(scope='module')
def client():
return Client()
def test_broken(client, tmp_path):
db = tmp_path / 'test.db'
... | import pytest
import os
import shutil
import xarray as xr
from cosima_cookbook import database
from dask.distributed import Client
from sqlalchemy import select, func
@pytest.fixture(scope='module')
def client():
client = Client()
yield client
client.close()
def test_broken(client, tmp_path):
db = tm... | import pytest
import os
import shutil
import xarray as xr
from cosima_cookbook import database
from dask.distributed import Client
from sqlalchemy import select, func
@pytest.fixture(scope='module')
def client():
return Client()
def test_broken(client, tmp_path):
db = tmp_path / 'test.db'
database.build_... | <commit_before>import pytest
import os
import shutil
import xarray as xr
from cosima_cookbook import database
from dask.distributed import Client
from sqlalchemy import select, func
@pytest.fixture(scope='module')
def client():
return Client()
def test_broken(client, tmp_path):
db = tmp_path / 'test.db'
... |
7d3de3aa2441739aa951aa100c057cfa878887d5 | nukedb.py | nukedb.py | import sqlite3
if __name__=="__main__":
conn = sqlite3.connect('auxgis.db')
c = conn.cursor()
try:
c.execute('''DROP TABLE pos;''')
except:
pass
try:
c.execute('''DROP TABLE data;''')
except:
pass
conn.commit()
| import sqlite3
if __name__=="__main__":
conn = sqlite3.connect('auxgis.db')
c = conn.cursor()
try:
c.execute('''DROP TABLE pos;''')
except:
pass
try:
c.execute('''DROP TABLE data;''')
except:
pass
try:
c.execute('''DROP TABLE recentchanges;''')
except:
pass
conn.commit()
| Drop recent changes on nuke | Drop recent changes on nuke
| Python | bsd-3-clause | TimSC/auxgis | import sqlite3
if __name__=="__main__":
conn = sqlite3.connect('auxgis.db')
c = conn.cursor()
try:
c.execute('''DROP TABLE pos;''')
except:
pass
try:
c.execute('''DROP TABLE data;''')
except:
pass
conn.commit()
Drop recent changes on nuke | import sqlite3
if __name__=="__main__":
conn = sqlite3.connect('auxgis.db')
c = conn.cursor()
try:
c.execute('''DROP TABLE pos;''')
except:
pass
try:
c.execute('''DROP TABLE data;''')
except:
pass
try:
c.execute('''DROP TABLE recentchanges;''')
except:
pass
conn.commit()
| <commit_before>import sqlite3
if __name__=="__main__":
conn = sqlite3.connect('auxgis.db')
c = conn.cursor()
try:
c.execute('''DROP TABLE pos;''')
except:
pass
try:
c.execute('''DROP TABLE data;''')
except:
pass
conn.commit()
<commit_msg>Drop recent changes on nuke<commit_after> | import sqlite3
if __name__=="__main__":
conn = sqlite3.connect('auxgis.db')
c = conn.cursor()
try:
c.execute('''DROP TABLE pos;''')
except:
pass
try:
c.execute('''DROP TABLE data;''')
except:
pass
try:
c.execute('''DROP TABLE recentchanges;''')
except:
pass
conn.commit()
| import sqlite3
if __name__=="__main__":
conn = sqlite3.connect('auxgis.db')
c = conn.cursor()
try:
c.execute('''DROP TABLE pos;''')
except:
pass
try:
c.execute('''DROP TABLE data;''')
except:
pass
conn.commit()
Drop recent changes on nukeimport sqlite3
if __name__=="__main__":
conn = sqlite3.connec... | <commit_before>import sqlite3
if __name__=="__main__":
conn = sqlite3.connect('auxgis.db')
c = conn.cursor()
try:
c.execute('''DROP TABLE pos;''')
except:
pass
try:
c.execute('''DROP TABLE data;''')
except:
pass
conn.commit()
<commit_msg>Drop recent changes on nuke<commit_after>import sqlite3
if __n... |
d0fb38da0200c1b780e296d6c5767438e2f82dc8 | array/sudoku-check.py | array/sudoku-check.py | # Implement an algorithm that will check whether a given grid of numbers represents a valid Sudoku puzzle
def check_rows(grid):
i = 0
while i < len(grid):
j = 0
ref_check = {}
while j < len(grid[i]):
if grid[i][j] != '.' and grid[i][j] in ref_check:
return False
else:
ref_check[grid[i][j]] = 1
... | # Implement an algorithm that will check whether a given grid of numbers represents a valid Sudoku puzzle
def check_rows(grid):
i = 0
while i < len(grid):
j = 0
ref_check = {}
while j < len(grid[i]):
if grid[i][j] != '.' and grid[i][j] in ref_check:
return False
else:
ref_check[grid[i][j]] = 1
... | Add check sub grid method | Add check sub grid method
| Python | mit | derekmpham/interview-prep,derekmpham/interview-prep | # Implement an algorithm that will check whether a given grid of numbers represents a valid Sudoku puzzle
def check_rows(grid):
i = 0
while i < len(grid):
j = 0
ref_check = {}
while j < len(grid[i]):
if grid[i][j] != '.' and grid[i][j] in ref_check:
return False
else:
ref_check[grid[i][j]] = 1
... | # Implement an algorithm that will check whether a given grid of numbers represents a valid Sudoku puzzle
def check_rows(grid):
i = 0
while i < len(grid):
j = 0
ref_check = {}
while j < len(grid[i]):
if grid[i][j] != '.' and grid[i][j] in ref_check:
return False
else:
ref_check[grid[i][j]] = 1
... | <commit_before># Implement an algorithm that will check whether a given grid of numbers represents a valid Sudoku puzzle
def check_rows(grid):
i = 0
while i < len(grid):
j = 0
ref_check = {}
while j < len(grid[i]):
if grid[i][j] != '.' and grid[i][j] in ref_check:
return False
else:
ref_check[gri... | # Implement an algorithm that will check whether a given grid of numbers represents a valid Sudoku puzzle
def check_rows(grid):
i = 0
while i < len(grid):
j = 0
ref_check = {}
while j < len(grid[i]):
if grid[i][j] != '.' and grid[i][j] in ref_check:
return False
else:
ref_check[grid[i][j]] = 1
... | # Implement an algorithm that will check whether a given grid of numbers represents a valid Sudoku puzzle
def check_rows(grid):
i = 0
while i < len(grid):
j = 0
ref_check = {}
while j < len(grid[i]):
if grid[i][j] != '.' and grid[i][j] in ref_check:
return False
else:
ref_check[grid[i][j]] = 1
... | <commit_before># Implement an algorithm that will check whether a given grid of numbers represents a valid Sudoku puzzle
def check_rows(grid):
i = 0
while i < len(grid):
j = 0
ref_check = {}
while j < len(grid[i]):
if grid[i][j] != '.' and grid[i][j] in ref_check:
return False
else:
ref_check[gri... |
55545a23dc209afc07ebe25c296505af50207340 | yelp_kafka_tool/util/__init__.py | yelp_kafka_tool/util/__init__.py | from __future__ import print_function
import json
import sys
from itertools import groupby
def groupsortby(data, key):
"""Sort and group by the same key."""
return groupby(sorted(data, key=key), key)
def dict_merge(set1, set2):
"""Joins two dictionaries."""
return dict(set1.items() + set2.items())
... | from __future__ import print_function
import json
import sys
from itertools import groupby
def groupsortby(data, key):
"""Sort and group by the same key."""
return groupby(sorted(data, key=key), key)
def dict_merge(set1, set2):
"""Joins two dictionaries."""
return dict(set1.items() + set2.items())
... | Add brokers information to the output of kafka-info | Add brokers information to the output of kafka-info
| Python | apache-2.0 | anthonysandrin/kafka-utils,Yelp/kafka-utils,anthonysandrin/kafka-utils,Yelp/kafka-utils | from __future__ import print_function
import json
import sys
from itertools import groupby
def groupsortby(data, key):
"""Sort and group by the same key."""
return groupby(sorted(data, key=key), key)
def dict_merge(set1, set2):
"""Joins two dictionaries."""
return dict(set1.items() + set2.items())
... | from __future__ import print_function
import json
import sys
from itertools import groupby
def groupsortby(data, key):
"""Sort and group by the same key."""
return groupby(sorted(data, key=key), key)
def dict_merge(set1, set2):
"""Joins two dictionaries."""
return dict(set1.items() + set2.items())
... | <commit_before>from __future__ import print_function
import json
import sys
from itertools import groupby
def groupsortby(data, key):
"""Sort and group by the same key."""
return groupby(sorted(data, key=key), key)
def dict_merge(set1, set2):
"""Joins two dictionaries."""
return dict(set1.items() +... | from __future__ import print_function
import json
import sys
from itertools import groupby
def groupsortby(data, key):
"""Sort and group by the same key."""
return groupby(sorted(data, key=key), key)
def dict_merge(set1, set2):
"""Joins two dictionaries."""
return dict(set1.items() + set2.items())
... | from __future__ import print_function
import json
import sys
from itertools import groupby
def groupsortby(data, key):
"""Sort and group by the same key."""
return groupby(sorted(data, key=key), key)
def dict_merge(set1, set2):
"""Joins two dictionaries."""
return dict(set1.items() + set2.items())
... | <commit_before>from __future__ import print_function
import json
import sys
from itertools import groupby
def groupsortby(data, key):
"""Sort and group by the same key."""
return groupby(sorted(data, key=key), key)
def dict_merge(set1, set2):
"""Joins two dictionaries."""
return dict(set1.items() +... |
f516749bc41dbebeb5b0ae07078af78f510a592e | lib/markdown_deux/__init__.py | lib/markdown_deux/__init__.py | #!/usr/bin/env python
# Copyright (c) 2008-2010 ActiveState Corp.
# License: MIT (http://www.opensource.org/licenses/mit-license.php)
r"""A small Django app that provides template tags for Markdown using the
python-markdown2 library.
See <http://github.com/trentm/django-markdown-deux> for more info.
"""
__version_in... | #!/usr/bin/env python
# Copyright (c) 2008-2010 ActiveState Corp.
# License: MIT (http://www.opensource.org/licenses/mit-license.php)
r"""A small Django app that provides template tags for Markdown using the
python-markdown2 library.
See <http://github.com/trentm/django-markdown-deux> for more info.
"""
__version_in... | Fix having ver info written twice (divergence). Makes "mk cut_a_release" ver update work. | Fix having ver info written twice (divergence). Makes "mk cut_a_release" ver update work.
| Python | mit | douzepouze/django-markdown-tag,trentm/django-markdown-deux,gogobook/django-markdown-deux,gogobook/django-markdown-deux | #!/usr/bin/env python
# Copyright (c) 2008-2010 ActiveState Corp.
# License: MIT (http://www.opensource.org/licenses/mit-license.php)
r"""A small Django app that provides template tags for Markdown using the
python-markdown2 library.
See <http://github.com/trentm/django-markdown-deux> for more info.
"""
__version_in... | #!/usr/bin/env python
# Copyright (c) 2008-2010 ActiveState Corp.
# License: MIT (http://www.opensource.org/licenses/mit-license.php)
r"""A small Django app that provides template tags for Markdown using the
python-markdown2 library.
See <http://github.com/trentm/django-markdown-deux> for more info.
"""
__version_in... | <commit_before>#!/usr/bin/env python
# Copyright (c) 2008-2010 ActiveState Corp.
# License: MIT (http://www.opensource.org/licenses/mit-license.php)
r"""A small Django app that provides template tags for Markdown using the
python-markdown2 library.
See <http://github.com/trentm/django-markdown-deux> for more info.
""... | #!/usr/bin/env python
# Copyright (c) 2008-2010 ActiveState Corp.
# License: MIT (http://www.opensource.org/licenses/mit-license.php)
r"""A small Django app that provides template tags for Markdown using the
python-markdown2 library.
See <http://github.com/trentm/django-markdown-deux> for more info.
"""
__version_in... | #!/usr/bin/env python
# Copyright (c) 2008-2010 ActiveState Corp.
# License: MIT (http://www.opensource.org/licenses/mit-license.php)
r"""A small Django app that provides template tags for Markdown using the
python-markdown2 library.
See <http://github.com/trentm/django-markdown-deux> for more info.
"""
__version_in... | <commit_before>#!/usr/bin/env python
# Copyright (c) 2008-2010 ActiveState Corp.
# License: MIT (http://www.opensource.org/licenses/mit-license.php)
r"""A small Django app that provides template tags for Markdown using the
python-markdown2 library.
See <http://github.com/trentm/django-markdown-deux> for more info.
""... |
c84728b57d1c8923cdadec10f132953de4c1dd21 | tests/integration/conftest.py | tests/integration/conftest.py | import pytest
@pytest.fixture
def coinbase():
return '0xdc544d1aa88ff8bbd2f2aec754b1f1e99e1812fd'
@pytest.fixture
def private_key():
return '0x58d23b55bc9cdce1f18c2500f40ff4ab7245df9a89505e9b1fa4851f623d241d'
KEYFILE = '{"address":"dc544d1aa88ff8bbd2f2aec754b1f1e99e1812fd","crypto":{"cipher":"aes-128-ctr"... | import pytest
from web3.utils.module_testing.math_contract import (
MATH_BYTECODE,
MATH_ABI,
)
from web3.utils.module_testing.emitter_contract import (
EMITTER_BYTECODE,
EMITTER_ABI,
)
@pytest.fixture(scope="session")
def math_contract_factory(web3):
contract_factory = web3.eth.contract(abi=MATH_... | Add common factory fixtures to be shared across integration tests | Add common factory fixtures to be shared across integration tests
| Python | mit | pipermerriam/web3.py | import pytest
@pytest.fixture
def coinbase():
return '0xdc544d1aa88ff8bbd2f2aec754b1f1e99e1812fd'
@pytest.fixture
def private_key():
return '0x58d23b55bc9cdce1f18c2500f40ff4ab7245df9a89505e9b1fa4851f623d241d'
KEYFILE = '{"address":"dc544d1aa88ff8bbd2f2aec754b1f1e99e1812fd","crypto":{"cipher":"aes-128-ctr"... | import pytest
from web3.utils.module_testing.math_contract import (
MATH_BYTECODE,
MATH_ABI,
)
from web3.utils.module_testing.emitter_contract import (
EMITTER_BYTECODE,
EMITTER_ABI,
)
@pytest.fixture(scope="session")
def math_contract_factory(web3):
contract_factory = web3.eth.contract(abi=MATH_... | <commit_before>import pytest
@pytest.fixture
def coinbase():
return '0xdc544d1aa88ff8bbd2f2aec754b1f1e99e1812fd'
@pytest.fixture
def private_key():
return '0x58d23b55bc9cdce1f18c2500f40ff4ab7245df9a89505e9b1fa4851f623d241d'
KEYFILE = '{"address":"dc544d1aa88ff8bbd2f2aec754b1f1e99e1812fd","crypto":{"cipher... | import pytest
from web3.utils.module_testing.math_contract import (
MATH_BYTECODE,
MATH_ABI,
)
from web3.utils.module_testing.emitter_contract import (
EMITTER_BYTECODE,
EMITTER_ABI,
)
@pytest.fixture(scope="session")
def math_contract_factory(web3):
contract_factory = web3.eth.contract(abi=MATH_... | import pytest
@pytest.fixture
def coinbase():
return '0xdc544d1aa88ff8bbd2f2aec754b1f1e99e1812fd'
@pytest.fixture
def private_key():
return '0x58d23b55bc9cdce1f18c2500f40ff4ab7245df9a89505e9b1fa4851f623d241d'
KEYFILE = '{"address":"dc544d1aa88ff8bbd2f2aec754b1f1e99e1812fd","crypto":{"cipher":"aes-128-ctr"... | <commit_before>import pytest
@pytest.fixture
def coinbase():
return '0xdc544d1aa88ff8bbd2f2aec754b1f1e99e1812fd'
@pytest.fixture
def private_key():
return '0x58d23b55bc9cdce1f18c2500f40ff4ab7245df9a89505e9b1fa4851f623d241d'
KEYFILE = '{"address":"dc544d1aa88ff8bbd2f2aec754b1f1e99e1812fd","crypto":{"cipher... |
24eae355c01365ce6eb219f0ca99a53d4df67be4 | mccurse/__init__.py | mccurse/__init__.py | """Minecraft Curse CLI Client"""
import gettext
from pathlib import Path
#: Consistent names definitions
RESOURCE_NAME = __package__
#: Root of the package
PKGDIR = Path(__file__).resolve().parent
#: Package data directory
PKGDATA = PKGDIR / '_data'
#: Root of the locale files
localedir = PKGDATA / 'locales'
#: T... | """Minecraft Curse CLI Client"""
import gettext
from pathlib import Path
#: Consistent names definitions
RESOURCE_NAME = __package__
#: Root of the package
PKGDIR = Path(__file__).resolve().parent
#: Package data directory
PKGDATA = PKGDIR / '_data_'
#: Root of the locale files
localedir = PKGDATA / 'locales'
#: ... | Fix typo in PKGDATA path | Fix typo in PKGDATA path
| Python | agpl-3.0 | khardix/mccurse | """Minecraft Curse CLI Client"""
import gettext
from pathlib import Path
#: Consistent names definitions
RESOURCE_NAME = __package__
#: Root of the package
PKGDIR = Path(__file__).resolve().parent
#: Package data directory
PKGDATA = PKGDIR / '_data'
#: Root of the locale files
localedir = PKGDATA / 'locales'
#: T... | """Minecraft Curse CLI Client"""
import gettext
from pathlib import Path
#: Consistent names definitions
RESOURCE_NAME = __package__
#: Root of the package
PKGDIR = Path(__file__).resolve().parent
#: Package data directory
PKGDATA = PKGDIR / '_data_'
#: Root of the locale files
localedir = PKGDATA / 'locales'
#: ... | <commit_before>"""Minecraft Curse CLI Client"""
import gettext
from pathlib import Path
#: Consistent names definitions
RESOURCE_NAME = __package__
#: Root of the package
PKGDIR = Path(__file__).resolve().parent
#: Package data directory
PKGDATA = PKGDIR / '_data'
#: Root of the locale files
localedir = PKGDATA / ... | """Minecraft Curse CLI Client"""
import gettext
from pathlib import Path
#: Consistent names definitions
RESOURCE_NAME = __package__
#: Root of the package
PKGDIR = Path(__file__).resolve().parent
#: Package data directory
PKGDATA = PKGDIR / '_data_'
#: Root of the locale files
localedir = PKGDATA / 'locales'
#: ... | """Minecraft Curse CLI Client"""
import gettext
from pathlib import Path
#: Consistent names definitions
RESOURCE_NAME = __package__
#: Root of the package
PKGDIR = Path(__file__).resolve().parent
#: Package data directory
PKGDATA = PKGDIR / '_data'
#: Root of the locale files
localedir = PKGDATA / 'locales'
#: T... | <commit_before>"""Minecraft Curse CLI Client"""
import gettext
from pathlib import Path
#: Consistent names definitions
RESOURCE_NAME = __package__
#: Root of the package
PKGDIR = Path(__file__).resolve().parent
#: Package data directory
PKGDATA = PKGDIR / '_data'
#: Root of the locale files
localedir = PKGDATA / ... |
564ae1eb637ec509f37ade93d4079117cc73fd58 | lab_assistant/storage/__init__.py | lab_assistant/storage/__init__.py | from copy import deepcopy
from simpleflake import simpleflake
from lab_assistant import conf, utils
__all__ = [
'get_storage',
'store',
'retrieve',
'retrieve_all',
'clear',
]
def get_storage(path=None, name='Experiment', **opts):
if not path:
path = conf.storage['path']
_op... | from copy import deepcopy
from collections import defaultdict
from simpleflake import simpleflake
from lab_assistant import conf, utils
__all__ = [
'get_storage',
'store',
'retrieve',
'retrieve_all',
'clear',
]
def get_storage(path=None, name='Experiment', **opts):
if not path:
pat... | Fix get_storage cache to hold separate entries for each experiment key | Fix get_storage cache to hold separate entries for each experiment key
| Python | mit | joealcorn/lab_assistant | from copy import deepcopy
from simpleflake import simpleflake
from lab_assistant import conf, utils
__all__ = [
'get_storage',
'store',
'retrieve',
'retrieve_all',
'clear',
]
def get_storage(path=None, name='Experiment', **opts):
if not path:
path = conf.storage['path']
_op... | from copy import deepcopy
from collections import defaultdict
from simpleflake import simpleflake
from lab_assistant import conf, utils
__all__ = [
'get_storage',
'store',
'retrieve',
'retrieve_all',
'clear',
]
def get_storage(path=None, name='Experiment', **opts):
if not path:
pat... | <commit_before>from copy import deepcopy
from simpleflake import simpleflake
from lab_assistant import conf, utils
__all__ = [
'get_storage',
'store',
'retrieve',
'retrieve_all',
'clear',
]
def get_storage(path=None, name='Experiment', **opts):
if not path:
path = conf.storage['pat... | from copy import deepcopy
from collections import defaultdict
from simpleflake import simpleflake
from lab_assistant import conf, utils
__all__ = [
'get_storage',
'store',
'retrieve',
'retrieve_all',
'clear',
]
def get_storage(path=None, name='Experiment', **opts):
if not path:
pat... | from copy import deepcopy
from simpleflake import simpleflake
from lab_assistant import conf, utils
__all__ = [
'get_storage',
'store',
'retrieve',
'retrieve_all',
'clear',
]
def get_storage(path=None, name='Experiment', **opts):
if not path:
path = conf.storage['path']
_op... | <commit_before>from copy import deepcopy
from simpleflake import simpleflake
from lab_assistant import conf, utils
__all__ = [
'get_storage',
'store',
'retrieve',
'retrieve_all',
'clear',
]
def get_storage(path=None, name='Experiment', **opts):
if not path:
path = conf.storage['pat... |
cd4c268b0752f85f8dadac03e28f152767ce9f54 | tinycontent/templatetags/tinycontent_tags.py | tinycontent/templatetags/tinycontent_tags.py | from django import template
from django.template.base import TemplateSyntaxError
from tinycontent.models import TinyContent
register = template.Library()
class TinyContentNode(template.Node):
def __init__(self, content_name, nodelist):
self.content_name = content_name
self.nodelist = nodelist
... | from django import template
from django.template.base import TemplateSyntaxError
from tinycontent.models import TinyContent
register = template.Library()
class TinyContentNode(template.Node):
def __init__(self, content_name, nodelist):
self.content_name = content_name
self.nodelist = nodelist
... | Use parser.compile_filter instead of my half-baked attempt | Use parser.compile_filter instead of my half-baked attempt
| Python | bsd-3-clause | dominicrodger/django-tinycontent,ad-m/django-tinycontent,watchdogpolska/django-tinycontent,ad-m/django-tinycontent,watchdogpolska/django-tinycontent,dominicrodger/django-tinycontent | from django import template
from django.template.base import TemplateSyntaxError
from tinycontent.models import TinyContent
register = template.Library()
class TinyContentNode(template.Node):
def __init__(self, content_name, nodelist):
self.content_name = content_name
self.nodelist = nodelist
... | from django import template
from django.template.base import TemplateSyntaxError
from tinycontent.models import TinyContent
register = template.Library()
class TinyContentNode(template.Node):
def __init__(self, content_name, nodelist):
self.content_name = content_name
self.nodelist = nodelist
... | <commit_before>from django import template
from django.template.base import TemplateSyntaxError
from tinycontent.models import TinyContent
register = template.Library()
class TinyContentNode(template.Node):
def __init__(self, content_name, nodelist):
self.content_name = content_name
self.nodelis... | from django import template
from django.template.base import TemplateSyntaxError
from tinycontent.models import TinyContent
register = template.Library()
class TinyContentNode(template.Node):
def __init__(self, content_name, nodelist):
self.content_name = content_name
self.nodelist = nodelist
... | from django import template
from django.template.base import TemplateSyntaxError
from tinycontent.models import TinyContent
register = template.Library()
class TinyContentNode(template.Node):
def __init__(self, content_name, nodelist):
self.content_name = content_name
self.nodelist = nodelist
... | <commit_before>from django import template
from django.template.base import TemplateSyntaxError
from tinycontent.models import TinyContent
register = template.Library()
class TinyContentNode(template.Node):
def __init__(self, content_name, nodelist):
self.content_name = content_name
self.nodelis... |
1736883e6635a13aa896209e3649c9b30b87b54d | bin/create_contour.py | bin/create_contour.py | #!/usr/bin/env python3
import sys
import os
sys.path.append('./climatemaps')
import climatemaps
DATA_DIR = './website/data'
def test():
for month in range(1, 13):
latrange, lonrange, Z = climatemaps.data.import_climate_data(month)
filepath_out = os.path.join(DATA_DIR, 'contour_cloud_' + str(m... | #!/usr/bin/env python3
import sys
import os
sys.path.append('./climatemaps')
import climatemaps
DATA_OUT_DIR = './website/data'
TYPES = {
'precipitation': './data/precipitation/cpre6190.dat',
'cloud': './data/cloud/ccld6190.dat',
}
def main():
for data_type, filepath in TYPES.items():
for mo... | Create contour data for multiple climate data types | Create contour data for multiple climate data types
| Python | mit | bartromgens/climatemaps,bartromgens/climatemaps,bartromgens/climatemaps | #!/usr/bin/env python3
import sys
import os
sys.path.append('./climatemaps')
import climatemaps
DATA_DIR = './website/data'
def test():
for month in range(1, 13):
latrange, lonrange, Z = climatemaps.data.import_climate_data(month)
filepath_out = os.path.join(DATA_DIR, 'contour_cloud_' + str(m... | #!/usr/bin/env python3
import sys
import os
sys.path.append('./climatemaps')
import climatemaps
DATA_OUT_DIR = './website/data'
TYPES = {
'precipitation': './data/precipitation/cpre6190.dat',
'cloud': './data/cloud/ccld6190.dat',
}
def main():
for data_type, filepath in TYPES.items():
for mo... | <commit_before>#!/usr/bin/env python3
import sys
import os
sys.path.append('./climatemaps')
import climatemaps
DATA_DIR = './website/data'
def test():
for month in range(1, 13):
latrange, lonrange, Z = climatemaps.data.import_climate_data(month)
filepath_out = os.path.join(DATA_DIR, 'contour_... | #!/usr/bin/env python3
import sys
import os
sys.path.append('./climatemaps')
import climatemaps
DATA_OUT_DIR = './website/data'
TYPES = {
'precipitation': './data/precipitation/cpre6190.dat',
'cloud': './data/cloud/ccld6190.dat',
}
def main():
for data_type, filepath in TYPES.items():
for mo... | #!/usr/bin/env python3
import sys
import os
sys.path.append('./climatemaps')
import climatemaps
DATA_DIR = './website/data'
def test():
for month in range(1, 13):
latrange, lonrange, Z = climatemaps.data.import_climate_data(month)
filepath_out = os.path.join(DATA_DIR, 'contour_cloud_' + str(m... | <commit_before>#!/usr/bin/env python3
import sys
import os
sys.path.append('./climatemaps')
import climatemaps
DATA_DIR = './website/data'
def test():
for month in range(1, 13):
latrange, lonrange, Z = climatemaps.data.import_climate_data(month)
filepath_out = os.path.join(DATA_DIR, 'contour_... |
f7faebbd91b4dc0fcd11e10d215d752badc899d6 | aspc/senate/views.py | aspc/senate/views.py | from django.views.generic import ListView
from aspc.senate.models import Document, Appointment
import datetime
class DocumentList(ListView):
model = Document
context_object_name = 'documents'
paginate_by = 20
class AppointmentList(ListView):
model = Appointment
context_object_name = 'appointments'... | from django.views.generic import ListView
from aspc.senate.models import Document, Appointment
import datetime
class DocumentList(ListView):
model = Document
context_object_name = 'documents'
paginate_by = 20
class AppointmentList(ListView):
model = Appointment
context_object_name = 'appointments'... | Change queryset filtering for positions view | Change queryset filtering for positions view
| Python | mit | theworldbright/mainsite,theworldbright/mainsite,theworldbright/mainsite,aspc/mainsite,aspc/mainsite,theworldbright/mainsite,aspc/mainsite,aspc/mainsite | from django.views.generic import ListView
from aspc.senate.models import Document, Appointment
import datetime
class DocumentList(ListView):
model = Document
context_object_name = 'documents'
paginate_by = 20
class AppointmentList(ListView):
model = Appointment
context_object_name = 'appointments'... | from django.views.generic import ListView
from aspc.senate.models import Document, Appointment
import datetime
class DocumentList(ListView):
model = Document
context_object_name = 'documents'
paginate_by = 20
class AppointmentList(ListView):
model = Appointment
context_object_name = 'appointments'... | <commit_before>from django.views.generic import ListView
from aspc.senate.models import Document, Appointment
import datetime
class DocumentList(ListView):
model = Document
context_object_name = 'documents'
paginate_by = 20
class AppointmentList(ListView):
model = Appointment
context_object_name =... | from django.views.generic import ListView
from aspc.senate.models import Document, Appointment
import datetime
class DocumentList(ListView):
model = Document
context_object_name = 'documents'
paginate_by = 20
class AppointmentList(ListView):
model = Appointment
context_object_name = 'appointments'... | from django.views.generic import ListView
from aspc.senate.models import Document, Appointment
import datetime
class DocumentList(ListView):
model = Document
context_object_name = 'documents'
paginate_by = 20
class AppointmentList(ListView):
model = Appointment
context_object_name = 'appointments'... | <commit_before>from django.views.generic import ListView
from aspc.senate.models import Document, Appointment
import datetime
class DocumentList(ListView):
model = Document
context_object_name = 'documents'
paginate_by = 20
class AppointmentList(ListView):
model = Appointment
context_object_name =... |
848d783bd988e0cdf31b690f17837ac02e77b43a | pypodio2/client.py | pypodio2/client.py | # -*- coding: utf-8 -*-
from . import areas
class FailedRequest(Exception):
def __init__(self, error):
self.error = error
def __str__(self):
return repr(self.error)
class Client(object):
"""
The Podio API client. Callers should use the factory method OAuthClient to create instances... | # -*- coding: utf-8 -*-
from . import areas
class FailedRequest(Exception):
def __init__(self, error):
self.error = error
def __str__(self):
return repr(self.error)
class Client(object):
"""
The Podio API client. Callers should use the factory method OAuthClient to create instances... | Add __dir__ method to Client in order to allow autocompletion in interactive terminals, etc. | Add __dir__ method to Client in order to allow autocompletion in interactive terminals, etc.
| Python | mit | podio/podio-py | # -*- coding: utf-8 -*-
from . import areas
class FailedRequest(Exception):
def __init__(self, error):
self.error = error
def __str__(self):
return repr(self.error)
class Client(object):
"""
The Podio API client. Callers should use the factory method OAuthClient to create instances... | # -*- coding: utf-8 -*-
from . import areas
class FailedRequest(Exception):
def __init__(self, error):
self.error = error
def __str__(self):
return repr(self.error)
class Client(object):
"""
The Podio API client. Callers should use the factory method OAuthClient to create instances... | <commit_before># -*- coding: utf-8 -*-
from . import areas
class FailedRequest(Exception):
def __init__(self, error):
self.error = error
def __str__(self):
return repr(self.error)
class Client(object):
"""
The Podio API client. Callers should use the factory method OAuthClient to c... | # -*- coding: utf-8 -*-
from . import areas
class FailedRequest(Exception):
def __init__(self, error):
self.error = error
def __str__(self):
return repr(self.error)
class Client(object):
"""
The Podio API client. Callers should use the factory method OAuthClient to create instances... | # -*- coding: utf-8 -*-
from . import areas
class FailedRequest(Exception):
def __init__(self, error):
self.error = error
def __str__(self):
return repr(self.error)
class Client(object):
"""
The Podio API client. Callers should use the factory method OAuthClient to create instances... | <commit_before># -*- coding: utf-8 -*-
from . import areas
class FailedRequest(Exception):
def __init__(self, error):
self.error = error
def __str__(self):
return repr(self.error)
class Client(object):
"""
The Podio API client. Callers should use the factory method OAuthClient to c... |
8e7feb7bc09feeca8d3fa0ea9ce6b76edec61ff1 | test/contrib/test_pyopenssl.py | test/contrib/test_pyopenssl.py | from urllib3.packages import six
if six.PY3:
from nose.plugins.skip import SkipTest
raise SkipTest('Testing of PyOpenSSL disabled')
from urllib3.contrib.pyopenssl import (inject_into_urllib3,
extract_from_urllib3)
from ..with_dummyserver.test_https import TestHTTPS, Tes... | from nose.plugins.skip import SkipTest
from urllib3.packages import six
if six.PY3:
raise SkipTest('Testing of PyOpenSSL disabled on PY3')
try:
from urllib3.contrib.pyopenssl import (inject_into_urllib3,
extract_from_urllib3)
except ImportError as e:
raise SkipTe... | Disable PyOpenSSL tests by default. | Disable PyOpenSSL tests by default.
| Python | mit | Lukasa/urllib3,matejcik/urllib3,asmeurer/urllib3,sornars/urllib3,silveringsea/urllib3,denim2x/urllib3,sornars/urllib3,Geoion/urllib3,haikuginger/urllib3,matejcik/urllib3,Geoion/urllib3,boyxuper/urllib3,urllib3/urllib3,haikuginger/urllib3,sileht/urllib3,sigmavirus24/urllib3,gardner/urllib3,silveringsea/urllib3,luca3m/ur... | from urllib3.packages import six
if six.PY3:
from nose.plugins.skip import SkipTest
raise SkipTest('Testing of PyOpenSSL disabled')
from urllib3.contrib.pyopenssl import (inject_into_urllib3,
extract_from_urllib3)
from ..with_dummyserver.test_https import TestHTTPS, Tes... | from nose.plugins.skip import SkipTest
from urllib3.packages import six
if six.PY3:
raise SkipTest('Testing of PyOpenSSL disabled on PY3')
try:
from urllib3.contrib.pyopenssl import (inject_into_urllib3,
extract_from_urllib3)
except ImportError as e:
raise SkipTe... | <commit_before>from urllib3.packages import six
if six.PY3:
from nose.plugins.skip import SkipTest
raise SkipTest('Testing of PyOpenSSL disabled')
from urllib3.contrib.pyopenssl import (inject_into_urllib3,
extract_from_urllib3)
from ..with_dummyserver.test_https import... | from nose.plugins.skip import SkipTest
from urllib3.packages import six
if six.PY3:
raise SkipTest('Testing of PyOpenSSL disabled on PY3')
try:
from urllib3.contrib.pyopenssl import (inject_into_urllib3,
extract_from_urllib3)
except ImportError as e:
raise SkipTe... | from urllib3.packages import six
if six.PY3:
from nose.plugins.skip import SkipTest
raise SkipTest('Testing of PyOpenSSL disabled')
from urllib3.contrib.pyopenssl import (inject_into_urllib3,
extract_from_urllib3)
from ..with_dummyserver.test_https import TestHTTPS, Tes... | <commit_before>from urllib3.packages import six
if six.PY3:
from nose.plugins.skip import SkipTest
raise SkipTest('Testing of PyOpenSSL disabled')
from urllib3.contrib.pyopenssl import (inject_into_urllib3,
extract_from_urllib3)
from ..with_dummyserver.test_https import... |
edd716204f1fc3337d46b74ed5708d5d0533f586 | km3pipe/__init__.py | km3pipe/__init__.py | # coding=utf-8
# Filename: __init__.py
"""
The extemporary KM3NeT analysis framework.
"""
from __future__ import division, absolute_import, print_function
try:
__KM3PIPE_SETUP__
except NameError:
__KM3PIPE_SETUP__ = False
from km3pipe.__version__ import version, version_info # noqa
if not __KM3PIPE_SETUP_... | # coding=utf-8
# Filename: __init__.py
"""
The extemporary KM3NeT analysis framework.
"""
from __future__ import division, absolute_import, print_function
try:
__KM3PIPE_SETUP__
except NameError:
__KM3PIPE_SETUP__ = False
from km3pipe.__version__ import version, version_info # noqa
if not __KM3PIPE_SETUP_... | Use better name for matplotlib style | Use better name for matplotlib style
| Python | mit | tamasgal/km3pipe,tamasgal/km3pipe | # coding=utf-8
# Filename: __init__.py
"""
The extemporary KM3NeT analysis framework.
"""
from __future__ import division, absolute_import, print_function
try:
__KM3PIPE_SETUP__
except NameError:
__KM3PIPE_SETUP__ = False
from km3pipe.__version__ import version, version_info # noqa
if not __KM3PIPE_SETUP_... | # coding=utf-8
# Filename: __init__.py
"""
The extemporary KM3NeT analysis framework.
"""
from __future__ import division, absolute_import, print_function
try:
__KM3PIPE_SETUP__
except NameError:
__KM3PIPE_SETUP__ = False
from km3pipe.__version__ import version, version_info # noqa
if not __KM3PIPE_SETUP_... | <commit_before># coding=utf-8
# Filename: __init__.py
"""
The extemporary KM3NeT analysis framework.
"""
from __future__ import division, absolute_import, print_function
try:
__KM3PIPE_SETUP__
except NameError:
__KM3PIPE_SETUP__ = False
from km3pipe.__version__ import version, version_info # noqa
if not _... | # coding=utf-8
# Filename: __init__.py
"""
The extemporary KM3NeT analysis framework.
"""
from __future__ import division, absolute_import, print_function
try:
__KM3PIPE_SETUP__
except NameError:
__KM3PIPE_SETUP__ = False
from km3pipe.__version__ import version, version_info # noqa
if not __KM3PIPE_SETUP_... | # coding=utf-8
# Filename: __init__.py
"""
The extemporary KM3NeT analysis framework.
"""
from __future__ import division, absolute_import, print_function
try:
__KM3PIPE_SETUP__
except NameError:
__KM3PIPE_SETUP__ = False
from km3pipe.__version__ import version, version_info # noqa
if not __KM3PIPE_SETUP_... | <commit_before># coding=utf-8
# Filename: __init__.py
"""
The extemporary KM3NeT analysis framework.
"""
from __future__ import division, absolute_import, print_function
try:
__KM3PIPE_SETUP__
except NameError:
__KM3PIPE_SETUP__ = False
from km3pipe.__version__ import version, version_info # noqa
if not _... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.