diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/AegeanTools/fits_image.py b/AegeanTools/fits_image.py
index <HASH>..<HASH> 100644
--- a/AegeanTools/fits_image.py
+++ b/AegeanTools/fits_image.py
@@ -59,14 +59,17 @@ class FitsImage():
if "BMAJ" not in self.hdu.header:
logging.error("BMAJ not present in fits ... | fits_image will now quit when no Bmaj/Bmin is found or supplied | py |
diff --git a/sdh/metrics/jobs/calculus.py b/sdh/metrics/jobs/calculus.py
index <HASH>..<HASH> 100644
--- a/sdh/metrics/jobs/calculus.py
+++ b/sdh/metrics/jobs/calculus.py
@@ -32,7 +32,8 @@ __calculus = set([])
def add_calculus(func):
__calculus.add(func)
-def calculate_metrics():
+
+def calculate_metrics(stop_e... | Added threading event for stopping execution | py |
diff --git a/pyoko/fields.py b/pyoko/fields.py
index <HASH>..<HASH> 100644
--- a/pyoko/fields.py
+++ b/pyoko/fields.py
@@ -174,7 +174,12 @@ class DateTime(BaseField):
if value is None or value == EMPTY_DATETIME:
value = ''
else:
- value = datetime.datetime.strptime(value, DATE_... | timestamp field type migration workaround rref #<I> ref GH-<I> | py |
diff --git a/nodeconductor/structure/handlers.py b/nodeconductor/structure/handlers.py
index <HASH>..<HASH> 100644
--- a/nodeconductor/structure/handlers.py
+++ b/nodeconductor/structure/handlers.py
@@ -439,7 +439,7 @@ def connect_shared_service_settings_to_customers(sender, instance, created=False
for customer in... | Fix tests (SAAS-<I>) | py |
diff --git a/tests/test_csv.py b/tests/test_csv.py
index <HASH>..<HASH> 100644
--- a/tests/test_csv.py
+++ b/tests/test_csv.py
@@ -3,11 +3,14 @@ import tempfile
from unittest import TestCase
from apiritif.loadgen import Params, Supervisor, ApiritifPlugin
-from apiritif.csv import CSVReaderPerThread
+from apiritif.c... | clean up csv readers per thread before each test | py |
diff --git a/ansigenome/init.py b/ansigenome/init.py
index <HASH>..<HASH> 100644
--- a/ansigenome/init.py
+++ b/ansigenome/init.py
@@ -18,7 +18,7 @@ env:
- SITE_AND_INVENTORY="tests/main.yml -i tests/inventory"
install:
- - "pip install 'ansible>=1.6.6'"
+ - "pip install ansible"
- "printf '[defaults]\\nrole... | Use the latest stable version of Ansible | py |
diff --git a/a10_neutron_lbaas/v2/handler_lb.py b/a10_neutron_lbaas/v2/handler_lb.py
index <HASH>..<HASH> 100644
--- a/a10_neutron_lbaas/v2/handler_lb.py
+++ b/a10_neutron_lbaas/v2/handler_lb.py
@@ -87,8 +87,6 @@ class LoadbalancerHandler(handler_base_v2.HandlerBaseV2):
}
def refresh(self, conte... | Removed pdb statements I forgot to remove... | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -28,7 +28,7 @@ import sys, os
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.intersphinx']
# Add any paths that contain templates here, relative to this directory.
-templates_path = ['_templates']
+#templa... | Disable static path and templates path in docs conf. | py |
diff --git a/gremlin-python/src/main/jython/gremlin_python/structure/io/graphson.py b/gremlin-python/src/main/jython/gremlin_python/structure/io/graphson.py
index <HASH>..<HASH> 100644
--- a/gremlin-python/src/main/jython/gremlin_python/structure/io/graphson.py
+++ b/gremlin-python/src/main/jython/gremlin_python/struct... | Fix the serializers lookup to handle the type first, then the class inheritance. | py |
diff --git a/src/django_like/__init__.py b/src/django_like/__init__.py
index <HASH>..<HASH> 100644
--- a/src/django_like/__init__.py
+++ b/src/django_like/__init__.py
@@ -59,7 +59,7 @@ def lookup_cast(self, lookup_type):
def monkey_ilike():
backend_name = backend.__name__
if 'postgres' in backend_name or \
-... | Fix a little error with oracle | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -5,7 +5,7 @@ from setuptools import setup
setup(
name="threat_intel",
- version='0.1.9',
+ version='0.1.10',
provides=['threat_intel'],
author="Yelp Security",
url='https://github.com/Yelp/threat_i... | Bumping the version to <I> | py |
diff --git a/fabric_webbuilders/base.py b/fabric_webbuilders/base.py
index <HASH>..<HASH> 100644
--- a/fabric_webbuilders/base.py
+++ b/fabric_webbuilders/base.py
@@ -25,7 +25,7 @@ from git import Repo
from fabric.colors import yellow
from fabric.colors import green
-from fabric.context_managers import lcd
+from fa... | really change working directory, don't use lcd() (which just prefixes every command, which is not the same) | py |
diff --git a/stm/boards/make-pins.py b/stm/boards/make-pins.py
index <HASH>..<HASH> 100755
--- a/stm/boards/make-pins.py
+++ b/stm/boards/make-pins.py
@@ -199,7 +199,7 @@ class Pins(object):
self.print_named('board', self.board_pins)
def print_header(self, hdr_filename):
- with open(hdr_filename,... | stm: Open header file in text mode (in make-pins). | py |
diff --git a/safe_qgis/utilities/styling.py b/safe_qgis/utilities/styling.py
index <HASH>..<HASH> 100644
--- a/safe_qgis/utilities/styling.py
+++ b/safe_qgis/utilities/styling.py
@@ -477,9 +477,6 @@ def mmi_ramp(raster_layer):
raster_layer.dataProvider(),
band,
raster_shader)
- #raster_lay... | Fix #<I> - Ismall code tidy up. | py |
diff --git a/code/png.py b/code/png.py
index <HASH>..<HASH> 100755
--- a/code/png.py
+++ b/code/png.py
@@ -312,6 +312,7 @@ class Writer:
interlace=False,
bytes_per_sample=None, # deprecated
planes=None,
+ colormap=None,
maxval=None,... | Fixes piprgb by fixing Writer constructor. Fixes Issue <I>. git-svn-id: <URL> | py |
diff --git a/mythril/analysis/solver.py b/mythril/analysis/solver.py
index <HASH>..<HASH> 100644
--- a/mythril/analysis/solver.py
+++ b/mythril/analysis/solver.py
@@ -23,7 +23,7 @@ def get_model(constraints, minimize=(), maximize=()):
"""
s = Optimize()
timeout = min(100000, time_handler.time_remaining()... | comparison should check for <= instead of < | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -8,11 +8,11 @@ requires = [
setup(
name='feito',
- version='0.2.1',
+ version='0.2.1.1',
description='Automated code review in Python',
url='http://github.com/magrathealabs/feito',
author='Magrathe... | Alter email typo in setup.py | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -32,7 +32,7 @@ version = re.search('__version__ = "([^"]+)"', init_py).group(1)
install_requires = ["scipy", "tabulate"]
-test_requires = ["pytest", "pytest-cov", "mock"]
+test_requires = ["pytest", "pytest-cov", "mock", ... | specific version on coverage pinned in setup.py | py |
diff --git a/vb_suite/make.py b/vb_suite/make.py
index <HASH>..<HASH> 100755
--- a/vb_suite/make.py
+++ b/vb_suite/make.py
@@ -98,8 +98,7 @@ def auto_update():
sendmail(msg)
def sendmail(err_msg=None):
- from_name = 'drzoidberg@lambdafoundry.com'
- to_name = 'dev@lambdafoundry.com'
+ from_name, to_... | VB: get from and to email addresses from config file | py |
diff --git a/test/test.py b/test/test.py
index <HASH>..<HASH> 100644
--- a/test/test.py
+++ b/test/test.py
@@ -16,16 +16,18 @@ from ase.units import GPa
import elastic
from elastic.parcalc import ParCalculate, ClusterVasp
-
+from elastic import BMEOS
def banner(msg):
print()
print(60*'=')
- print(ms... | Typos/cosmetics and import BMEOS in tests. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -7,7 +7,7 @@ setup(
package_dir = {"":"src"},
scripts = ["src/db-migrate"],
- #install_requires = ["mysql==1.2.2"], #TODO: install mysql as dependency
+ install_requires = ["mysql==1.2.2"],
author... | Declared mysql-python <I> as a dependency. | py |
diff --git a/test_virtualmethod.py b/test_virtualmethod.py
index <HASH>..<HASH> 100644
--- a/test_virtualmethod.py
+++ b/test_virtualmethod.py
@@ -16,20 +16,20 @@ class Base(object):
def my_virtual_static_method():
return True
- @classmethod
- def my_class_method(cls):
- return True
-
- ... | Remove pointless class & static method tests, add virtual class & static overrides to B. | py |
diff --git a/btcpy/structs/transaction.py b/btcpy/structs/transaction.py
index <HASH>..<HASH> 100644
--- a/btcpy/structs/transaction.py
+++ b/btcpy/structs/transaction.py
@@ -20,6 +20,12 @@ from ..lib.parsing import Parser, TransactionParser, Stream
# noinspection PyUnresolvedReferences
class TxIn(Immutable, HexSer... | document and annotate TxIn | py |
diff --git a/tests/ext/django/app/settings.py b/tests/ext/django/app/settings.py
index <HASH>..<HASH> 100644
--- a/tests/ext/django/app/settings.py
+++ b/tests/ext/django/app/settings.py
@@ -44,7 +44,6 @@ MIDDLEWARE = [
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
... | Remove django SessionAuthenticationMiddleware This middleware was redundant in Django <I> and removed in Django <I> | py |
diff --git a/pycbc/ahope/ahope_utils.py b/pycbc/ahope/ahope_utils.py
index <HASH>..<HASH> 100644
--- a/pycbc/ahope/ahope_utils.py
+++ b/pycbc/ahope/ahope_utils.py
@@ -265,7 +265,10 @@ class AhopeWorkflow(Workflow):
# Change back
os.chdir(curr_dir)
- self._outputs += node._outputs
+ ... | add executed node output files to workflow input list | py |
diff --git a/iron_cache.py b/iron_cache.py
index <HASH>..<HASH> 100644
--- a/iron_cache.py
+++ b/iron_cache.py
@@ -189,8 +189,8 @@ class IronCache:
key -- the key the item is stored under. Required.
cache -- the cache the item belongs to. Defaults to None, which uses
self.name. If no... | change the comment in code so that it correct | py |
diff --git a/panwid/keymap.py b/panwid/keymap.py
index <HASH>..<HASH> 100644
--- a/panwid/keymap.py
+++ b/panwid/keymap.py
@@ -112,12 +112,14 @@ def keymapped():
class KeymapMovementMixin(object):
def cycle_position(self, n):
- pos = self.focus_position + n
- if pos > len(self) - 1:
- p... | Fix exception when container widget is empty. | py |
diff --git a/tests/test_estimation.py b/tests/test_estimation.py
index <HASH>..<HASH> 100644
--- a/tests/test_estimation.py
+++ b/tests/test_estimation.py
@@ -485,6 +485,13 @@ class TestKaplanMeierFitter():
warnings.simplefilter("always")
kmf = KaplanMeierFitter().fit(T, E, weights=np.random.r... | Test for float weights Kaplan Meier Adding test for float weights for the Kaplan Meier fitter. Compares to simple example | py |
diff --git a/core/dbt/compilation.py b/core/dbt/compilation.py
index <HASH>..<HASH> 100644
--- a/core/dbt/compilation.py
+++ b/core/dbt/compilation.py
@@ -36,6 +36,7 @@ def print_compile_stats(stats):
NodeType.Macro: 'macros',
NodeType.Operation: 'operations',
NodeType.Seed: 'seed files',
+ ... | (fixes #<I>) Show sources in resource count list during compilation | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -26,7 +26,7 @@ setup(
"Programming Language :: Python :: Implementation :: CPython",
],
packages=find_packages(exclude=["docs*", "tests*"]),
- python_requires=">=3.6",
+ python_requires=">=3.7",
i... | setup.py: Update python_requires Updates the minimum version to <I>, the earliest currently supported version of Python. | py |
diff --git a/psamm/lpsolver/lp.py b/psamm/lpsolver/lp.py
index <HASH>..<HASH> 100644
--- a/psamm/lpsolver/lp.py
+++ b/psamm/lpsolver/lp.py
@@ -34,7 +34,7 @@ import numbers
from collections import Counter
import abc
-from six import add_metaclass, iteritems
+from six import add_metaclass, iteritems, viewkeys, viewit... | lp: Expression returns views instead of iterators Changes the values() and variables() methods on the Expression to return views instead of iterators. This should be as efficient as returning iterators but also allows the caller to efficiently obtain the length. | py |
diff --git a/templatesadmin/views.py b/templatesadmin/views.py
index <HASH>..<HASH> 100644
--- a/templatesadmin/views.py
+++ b/templatesadmin/views.py
@@ -160,13 +160,23 @@ def edit(request, path, template_name='templatesadmin/edit.html'):
# Save the template
try:
f = open(tem... | Really fix newline-at-eof issue | py |
diff --git a/src/binwalk/modules/entropy.py b/src/binwalk/modules/entropy.py
index <HASH>..<HASH> 100644
--- a/src/binwalk/modules/entropy.py
+++ b/src/binwalk/modules/entropy.py
@@ -289,7 +289,7 @@ class Entropy(Module):
if self.save_plot:
exporter = exporters.ImageExporter.ImageExporter(plt.plot... | Entropy output files are now placed in the directory of the target file for uniformity | py |
diff --git a/bin/validate.py b/bin/validate.py
index <HASH>..<HASH> 100644
--- a/bin/validate.py
+++ b/bin/validate.py
@@ -311,7 +311,11 @@ def merge_mod_and_paint(mod_gaf_path, paint_gaf_path):
"!",
"!PAINT Header copied from {}".format(os.path.basename(paint_gaf_path)),
"!======... | adding link to a little bit of documentation | py |
diff --git a/intranet/apps/eighth/views/admin/sponsors.py b/intranet/apps/eighth/views/admin/sponsors.py
index <HASH>..<HASH> 100644
--- a/intranet/apps/eighth/views/admin/sponsors.py
+++ b/intranet/apps/eighth/views/admin/sponsors.py
@@ -2,6 +2,7 @@
import pickle
import csv
+import re
from collections import de... | add block time and letter to filename | py |
diff --git a/dci/api/v1/tests.py b/dci/api/v1/tests.py
index <HASH>..<HASH> 100644
--- a/dci/api/v1/tests.py
+++ b/dci/api/v1/tests.py
@@ -43,21 +43,18 @@ _EMBED_MANY = {
@api.route('/tests', methods=['POST'])
@auth.login_required
def create_tests(user):
- created_at, _ = utils.get_dates(user)
- data_json = sc... | Make the test resources use common_values_dict Most resources were moved to relying on utils.common_values_dict to generate boilerplate when inserting a new resource, but test was missing. This review ensure test is coherent with the rest of the resources method creation and relies on this method. Change-Id: I<I>dcc... | py |
diff --git a/bokeh/mpl.py b/bokeh/mpl.py
index <HASH>..<HASH> 100644
--- a/bokeh/mpl.py
+++ b/bokeh/mpl.py
@@ -59,6 +59,19 @@ class BokehRenderer(Renderer):
height=self.height)
def close_figure(self, fig):
+ ## Add plot props
+ #self.plot_props()
+
+ # Add tools
+ ... | Added plot tools and some empty methods to be filled later. | py |
diff --git a/sortinghat/exceptions.py b/sortinghat/exceptions.py
index <HASH>..<HASH> 100644
--- a/sortinghat/exceptions.py
+++ b/sortinghat/exceptions.py
@@ -20,6 +20,12 @@
# Santiago Dueñas <sduenas@bitergia.com>
#
+# encoding=utf8
+import sys
+
+reload(sys)
+sys.setdefaultencoding('utf8')
+
class BaseError(... | Set default encoding to UTF-8 This patch sets the system encoding to UTF-8 using setdefaultencoding() from sys module. It is a little hacky but really useful while we moving the code to Python 3. Fixes #<I> | py |
diff --git a/cmsplugin_cascade/link/forms.py b/cmsplugin_cascade/link/forms.py
index <HASH>..<HASH> 100644
--- a/cmsplugin_cascade/link/forms.py
+++ b/cmsplugin_cascade/link/forms.py
@@ -57,4 +57,6 @@ class LinkForm(ModelForm):
self.data.update({'page_link': None, 'email': ''})
elif link_type == '... | Link type “other” resets all fields | py |
diff --git a/ELiDE/app.py b/ELiDE/app.py
index <HASH>..<HASH> 100644
--- a/ELiDE/app.py
+++ b/ELiDE/app.py
@@ -17,7 +17,6 @@ from kivy.uix.textinput import TextInput
from kivy.factory import Factory
-from .charsheet import CharSheet
from .board import Board
from .texturestack import ImageStack
@@ -28,7 +27,6 @... | no such thing as CharSheet anymore | py |
diff --git a/fancyimpute/knn.py b/fancyimpute/knn.py
index <HASH>..<HASH> 100644
--- a/fancyimpute/knn.py
+++ b/fancyimpute/knn.py
@@ -39,7 +39,8 @@ class KNN(Solver):
min_value=None,
max_value=None,
normalizer=None,
- verbose=True):
+ verbose=True,
+ ... | Add boolean for warnings in KNN imputation (#<I>) | py |
diff --git a/param/version.py b/param/version.py
index <HASH>..<HASH> 100644
--- a/param/version.py
+++ b/param/version.py
@@ -112,7 +112,7 @@ class Version(object):
proc = subprocess.Popen(cmd, stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
cw... | Made access to subprocess stdout/stderr safe for Python 2 and 3 | py |
diff --git a/wandb/sync.py b/wandb/sync.py
index <HASH>..<HASH> 100644
--- a/wandb/sync.py
+++ b/wandb/sync.py
@@ -268,8 +268,8 @@ class Sync(object):
signal.signal(signal.SIGQUIT, self._debugger)
def _debugger(self, *args):
- import ipdb
- ipdb.set_trace()
+ import pdb
+ pdb... | Use regular pdb instead of ipdb | py |
diff --git a/indra/databases/identifiers.py b/indra/databases/identifiers.py
index <HASH>..<HASH> 100644
--- a/indra/databases/identifiers.py
+++ b/indra/databases/identifiers.py
@@ -36,7 +36,7 @@ identifiers_mappings = {
non_registry = {
'SDIS', 'SCHEM', 'SFAM', 'SCOMP', 'SIGNOR', 'HMS-LINCS', 'NXPFA',
'OMI... | Enable uptake of SMILES | py |
diff --git a/nailgun/entities.py b/nailgun/entities.py
index <HASH>..<HASH> 100644
--- a/nailgun/entities.py
+++ b/nailgun/entities.py
@@ -1876,6 +1876,7 @@ class ContentViewFilterRule(
'types': entity_fields.ListField(),
'version': entity_fields.StringField(),
'uuid': entity_fiel... | add arch param to CV Filter Rule (#<I>) | py |
diff --git a/dvc/repo/plot/__init__.py b/dvc/repo/plot/__init__.py
index <HASH>..<HASH> 100644
--- a/dvc/repo/plot/__init__.py
+++ b/dvc/repo/plot/__init__.py
@@ -10,7 +10,8 @@ from dvc.repo.plot.template import NoDataForTemplateError, Template
logger = logging.getLogger(__name__)
-PAGE_HTML = """<html>
+PAGE_HTML... | plot: add doctype at the beggining of html embedding (#<I>) | py |
diff --git a/tests/integration/container_test.py b/tests/integration/container_test.py
index <HASH>..<HASH> 100644
--- a/tests/integration/container_test.py
+++ b/tests/integration/container_test.py
@@ -280,15 +280,14 @@ class CreateContainerTest(helpers.BaseTestCase):
config={}
)
- conta... | Invalid log driver error raised during create_container step | py |
diff --git a/bindings/python/setup.py b/bindings/python/setup.py
index <HASH>..<HASH> 100644
--- a/bindings/python/setup.py
+++ b/bindings/python/setup.py
@@ -25,7 +25,7 @@ link_args = []
libraries = []
if platform.system() in ("Linux","Darwin"):
# This will work w/ GCC and clang
- compile_args = ['-std=c++11... | Python extension: build with function and data sections | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -45,7 +45,7 @@ setup(
'django-filter==2.0.0',
'celery==4.2.1',
'pytz==2018.5',
- 'requests==2.18.4',
+ 'requests==2.20.1',
'seed-services-client==0.37.0',
'croniter==0... | Upgrade requests to secure version (thanks @erikh<I>) | py |
diff --git a/soundfile.py b/soundfile.py
index <HASH>..<HASH> 100644
--- a/soundfile.py
+++ b/soundfile.py
@@ -498,8 +498,8 @@ class _SoundFileInfo(object):
self.name = f.name
self.samplerate = f.samplerate
self.channels = f.channels
- self.nsamples = len(f)
- ... | Rename nsamples to frames Frames is the name used elsewhere in the package. | py |
diff --git a/tests/python/unittest/test_loss.py b/tests/python/unittest/test_loss.py
index <HASH>..<HASH> 100644
--- a/tests/python/unittest/test_loss.py
+++ b/tests/python/unittest/test_loss.py
@@ -83,8 +83,8 @@ def test_ce_loss():
initializer=mx.init.Xavier(magnitude=2))
assert mod.score(data_iter, ... | [MXNET-<I>] fix bce_loss flaky (#<I>) * add fix to bce_loss * add comments * remove unecessary comments | py |
diff --git a/allegedb/allegedb/__init__.py b/allegedb/allegedb/__init__.py
index <HASH>..<HASH> 100644
--- a/allegedb/allegedb/__init__.py
+++ b/allegedb/allegedb/__init__.py
@@ -145,7 +145,10 @@ class TimeSignalDescriptor:
# make sure I'll end up within the revision range of the
# destination branch
... | Set _turn_end_plan correctly when it's absent and you're time travelling | py |
diff --git a/Lib/glyphsLib/cli.py b/Lib/glyphsLib/cli.py
index <HASH>..<HASH> 100644
--- a/Lib/glyphsLib/cli.py
+++ b/Lib/glyphsLib/cli.py
@@ -58,6 +58,16 @@ def main(args=None):
"file."
),
)
+ parser_glyphs2ufo.add_argument(
+ "--ufo-module",
+ metavar="UFO_MODULE",
+ ... | cli: add --ufo-module command-line option to select defcon as alternative UFO backend | py |
diff --git a/tests/conftest.py b/tests/conftest.py
index <HASH>..<HASH> 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -51,8 +51,6 @@ from scout.models.hgnc_map import HgncGene
DATABASE = 'testdb'
REAL_DATABASE = 'realtestdb'
-pytest_plugins = ["flask","cov"]
-
root_logger = logging.getLogger()
init_lo... | Removes accessing of plugins in conftest | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100755
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -323,4 +323,6 @@ texinfo_documents = [
linkcheck_ignore = [
r'http://caremad.io/2013/07/setup-vs-requirement/'
]
+# Increase timeout to avoid false positives esp. on Travis-CI
+linkcheck_timeout = 30 | Incease lincheck timeout This should avoid false positives on Travis-CI. | py |
diff --git a/src/pyop/storage.py b/src/pyop/storage.py
index <HASH>..<HASH> 100644
--- a/src/pyop/storage.py
+++ b/src/pyop/storage.py
@@ -155,6 +155,10 @@ class RedisWrapper(StorageBase):
def items(self):
for key in self._db.keys(self._collection + "*"):
visible_key = key[len(self._collectio... | Ensure RedisWrapper.items returns a list of strings The return type of the _db.keys() is List[_StrType], where _StrType is a str or bytes. As we want the items() method to return strings (given the provided __getitem__ method) for keys we need an additional check. | py |
diff --git a/androguard/core/bytecodes/dvm.py b/androguard/core/bytecodes/dvm.py
index <HASH>..<HASH> 100644
--- a/androguard/core/bytecodes/dvm.py
+++ b/androguard/core/bytecodes/dvm.py
@@ -7458,7 +7458,7 @@ class MapList:
self.size = unpack("=I", buff.read(4))[0]
self.map_item = []
- for i ... | Refactoring MapList ordered variable generation done properly | py |
diff --git a/jax/core.py b/jax/core.py
index <HASH>..<HASH> 100644
--- a/jax/core.py
+++ b/jax/core.py
@@ -1049,14 +1049,16 @@ abstract_token = AbstractToken()
def raise_to_shaped(aval: AbstractValue, weak_type=False):
- if isinstance(aval, ShapedArray):
- return ShapedArray(aval.shape, aval.dtype, weak_type=w... | Make it possible to override raise_to_shaped for new types (#<I>) | py |
diff --git a/pipeline/compressors/__init__.py b/pipeline/compressors/__init__.py
index <HASH>..<HASH> 100644
--- a/pipeline/compressors/__init__.py
+++ b/pipeline/compressors/__init__.py
@@ -91,7 +91,7 @@ class Compressor(object):
base_path = self.base_path(paths)
for path in paths:
conte... | fix #<I> -- rather than deleting newlines in template strings, escape them | py |
diff --git a/rio/models/webhook.py b/rio/models/webhook.py
index <HASH>..<HASH> 100644
--- a/rio/models/webhook.py
+++ b/rio/models/webhook.py
@@ -29,9 +29,13 @@ class Webhook(db.Model):
"""
GET = 1
POST = 2
+ PUT = 3
+ DELETE = 4
MAP = {
GET: 'GET',
... | Support PUT&&DELETE methods. | py |
diff --git a/clam/common/auth.py b/clam/common/auth.py
index <HASH>..<HASH> 100644
--- a/clam/common/auth.py
+++ b/clam/common/auth.py
@@ -269,7 +269,10 @@ class ForwardedAuth(HTTPAuth):
username = self.username(**self.settings)
except KeyError:
return self.aut... | further fixes in OAuth2 and ForwardAuth implementations | py |
diff --git a/db/mysql.py b/db/mysql.py
index <HASH>..<HASH> 100644
--- a/db/mysql.py
+++ b/db/mysql.py
@@ -39,7 +39,7 @@ class DatabaseInterface(object):
self.host = host or settings["SQLHost"]
self.db = db or settings["SQLDatabase"]
self.user = user or settings["SQLUser"]
- self.passw... | Allow empty passwords in database connections. | py |
diff --git a/patroni/postgresql.py b/patroni/postgresql.py
index <HASH>..<HASH> 100644
--- a/patroni/postgresql.py
+++ b/patroni/postgresql.py
@@ -503,6 +503,12 @@ class Postgresql(object):
self._state = value
def start(self, block_callbacks=False):
+ # make sure we close all connections esta... | close connection on start instead of stop (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -21,7 +21,7 @@ requirements = [
]
deps_links = [
- 'git+ssh://git@github.com/francbartoli/marshmallow-oneofschema.git@1.0.6#egg=marshmallow-oneofschema-1.0.6'
+ 'git+https://github.com/francbartoli/marshmallow-oneofs... | Revert link to git+https | py |
diff --git a/gwpy/timeseries/core.py b/gwpy/timeseries/core.py
index <HASH>..<HASH> 100644
--- a/gwpy/timeseries/core.py
+++ b/gwpy/timeseries/core.py
@@ -966,7 +966,14 @@ class TimeSeries(Series):
if resize:
s = list(new.shape)
s[0] = new.shape[0] + other.shape[0]
- new.re... | TimeSeries.append: added resize exception catch | py |
diff --git a/transmute_core/function/transmute_function.py b/transmute_core/function/transmute_function.py
index <HASH>..<HASH> 100644
--- a/transmute_core/function/transmute_function.py
+++ b/transmute_core/function/transmute_function.py
@@ -98,9 +98,9 @@ class TransmuteFunction(object):
"type": "... | @minor matching keys in responses with the way handle is processing the result | py |
diff --git a/sortedm2m_tests/__init__.py b/sortedm2m_tests/__init__.py
index <HASH>..<HASH> 100644
--- a/sortedm2m_tests/__init__.py
+++ b/sortedm2m_tests/__init__.py
@@ -7,10 +7,18 @@ import setuptest
TEST_APPS = ['sortedm2m_tests', 'sortedm2m_field', 'sortedm2m_form', 'south_support']
class TestSuite(setuptest.Se... | Fix to allow tests with South migrations to run. | py |
diff --git a/ambry/bundle/files.py b/ambry/bundle/files.py
index <HASH>..<HASH> 100644
--- a/ambry/bundle/files.py
+++ b/ambry/bundle/files.py
@@ -438,7 +438,8 @@ class SourcesFile(RowBuildSourceFile):
# are non-empty. Then zip again to transpose to original form.
# TODO: next row is so complicated.... | Broken by 2to3 code fixed. #<I>. | py |
diff --git a/treetime/utils.py b/treetime/utils.py
index <HASH>..<HASH> 100644
--- a/treetime/utils.py
+++ b/treetime/utils.py
@@ -35,7 +35,7 @@ class DateConversion(object):
dates = []
for node in t.find_clades():
if hasattr(node, "numdate_given" )
- and node.numdate_given... | make dateConversion compatible with imprecise dates 2 | py |
diff --git a/satpy/tools.py b/satpy/tools.py
index <HASH>..<HASH> 100644
--- a/satpy/tools.py
+++ b/satpy/tools.py
@@ -47,10 +47,9 @@ def sunzen_corr_cos(data, cos_zen, limit=88.):
corr = 1 / cos_zen
# Use constant value (the limit) for larger zenith
# angles
- corr = corr.where(cos_zen > limit).filln... | Do not compute sunz corrections in place | py |
diff --git a/utils/multires/generate.py b/utils/multires/generate.py
index <HASH>..<HASH> 100755
--- a/utils/multires/generate.py
+++ b/utils/multires/generate.py
@@ -108,6 +108,14 @@ for f in range(0, 6):
tile.save(os.path.join(args.output, str(level), faceLetters[f] + str(i) + '_' + str(j) + extensio... | Add fallback tiles to multires generation script. | py |
diff --git a/ca/django_ca/admin.py b/ca/django_ca/admin.py
index <HASH>..<HASH> 100644
--- a/ca/django_ca/admin.py
+++ b/ca/django_ca/admin.py
@@ -270,7 +270,7 @@ class CertificateAdmin(CertificateMixin, admin.ModelAdmin):
list_filter = (StatusListFilter, 'ca')
readonly_fields = [
'expires', 'csr', '... | add subjectAltName as readonly field (fixes #<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -10,7 +10,7 @@ def readme():
with open('README.rst') as f:
return f.read()
-import build_fortran_extensions
+#import build_fortran_extensions
import climlab
# Set up climlab with call to setuptools | Do not call the fortran build script from setup.py | py |
diff --git a/web3/utils/encoding.py b/web3/utils/encoding.py
index <HASH>..<HASH> 100644
--- a/web3/utils/encoding.py
+++ b/web3/utils/encoding.py
@@ -59,11 +59,11 @@ def fromUtf8(str):
"""
Should be called to get hex representation (prefixed by 0x) of utf8 string
"""
- return binascii.hexlify(str.enc... | Add 0x prefixes to encoding.py methods | py |
diff --git a/pyontutils/scr_sync.py b/pyontutils/scr_sync.py
index <HASH>..<HASH> 100755
--- a/pyontutils/scr_sync.py
+++ b/pyontutils/scr_sync.py
@@ -137,9 +137,10 @@ def make_records(resources, res_cols, field_mapping=_field_mapping, remap_supers
def make_node(id_, field, value, column_to_predicate=_column_to_pred... | scr_sync.py added the named individual changes, apparently they were missed in the commit | py |
diff --git a/tests/test_circuit.py b/tests/test_circuit.py
index <HASH>..<HASH> 100644
--- a/tests/test_circuit.py
+++ b/tests/test_circuit.py
@@ -321,6 +321,12 @@ def test_concat_circuit4(backend):
assert is_vec_same(c2.run(backend=backend), Circuit().h[0].run(backend=backend))
+def test_idlequbit_circuit(bac... | [TEST] Add test for issues #<I> | py |
diff --git a/symengine/tests/test_ntheory.py b/symengine/tests/test_ntheory.py
index <HASH>..<HASH> 100644
--- a/symengine/tests/test_ntheory.py
+++ b/symengine/tests/test_ntheory.py
@@ -37,9 +37,15 @@ def test_gcd_ext():
assert p == q * 6 + r * 9
(q, r, p) = gcd_ext(-15, 10)
assert p == q * -15 + r * 10... | Fix failing test due to difference in gcd_ext | py |
diff --git a/properties/basic.py b/properties/basic.py
index <HASH>..<HASH> 100644
--- a/properties/basic.py
+++ b/properties/basic.py
@@ -392,7 +392,7 @@ class Float(Integer):
@staticmethod
def to_json(value):
- if np.isnan(value) or np.isinf(value):
+ if np.isnan(value) or np.isinf(value): ... | Add pylint disable for isinf | py |
diff --git a/tests/test_fetcher_processor.py b/tests/test_fetcher_processor.py
index <HASH>..<HASH> 100644
--- a/tests/test_fetcher_processor.py
+++ b/tests/test_fetcher_processor.py
@@ -54,6 +54,11 @@ class TestFetcherProcessor(unittest.TestCase):
@classmethod
def crawl(self, url=None, track=None, **kwargs):... | tracing "unexpected successes" in crawl | py |
diff --git a/scdl/__init__.py b/scdl/__init__.py
index <HASH>..<HASH> 100644
--- a/scdl/__init__.py
+++ b/scdl/__init__.py
@@ -5,8 +5,9 @@
import os
__version__ = 'v1.6.4'
-CLIENT_ID = '2t9loNQH90kzJcsFCODdigxfp325aq4z'
+CLIENT_ID = 'a06b61f88c8297cc5abe6167a2d4c519'
ALT_CLIENT_ID = 'a3e059563d7fd3372b49b37f00a00b... | Change client_id Thanks @liamjack | py |
diff --git a/pysat/_files.py b/pysat/_files.py
index <HASH>..<HASH> 100644
--- a/pysat/_files.py
+++ b/pysat/_files.py
@@ -501,13 +501,13 @@ class Files(object):
all intervals.
"""
- if hasattr(start, '__iter__') & hasattr(stop, '__iter__'):
+ if hasattr(start, '__iter__') and hasa... | STY: binary logic ops -> and/or | py |
diff --git a/restclients/canvas/analytics.py b/restclients/canvas/analytics.py
index <HASH>..<HASH> 100644
--- a/restclients/canvas/analytics.py
+++ b/restclients/canvas/analytics.py
@@ -96,6 +96,18 @@ class Analytics(Canvas):
sis_course_id, sis_user_id)
return self._get_resource(url)
+ def g... | Adding a method for student assignment data by sis course id and canvas person id. CVS-<I> git-svn-id: <URL> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -9,7 +9,7 @@ CHANGES = open(os.path.join(here, 'CHANGES.txt')).read()
requires = ['pymongo']
setup(name='minimongo',
- version='0.2.1',
+ version='0.2.2',
description='Minimal database Model management for... | New setup.py for pypi | py |
diff --git a/bokeh/util/dependencies.py b/bokeh/util/dependencies.py
index <HASH>..<HASH> 100644
--- a/bokeh/util/dependencies.py
+++ b/bokeh/util/dependencies.py
@@ -2,6 +2,11 @@
'''
from importlib import import_module
+import logging
+
+
+logger = logging.getLogger(__name__)
+
def import_optional(mod_name):
... | Catch any exception in `import_optional` (#<I>) * Catch any exception in `import_optional` Imports can trigger side effects which may result in any exception potentially being thrown. In this case simply return None rather than crashing on an optional import. Fixes #<I> * Issue a warning if an optional impo... | py |
diff --git a/palal/palal.py b/palal/palal.py
index <HASH>..<HASH> 100755
--- a/palal/palal.py
+++ b/palal/palal.py
@@ -61,11 +61,9 @@ def get_choice(rule):
return get_choice(rule)
-def get_choice_vector(rule):
+def get_choice_vector(rules):
"""Ask questions get choices."""
- text = 'What should be %s b... | Fixing issues with get_choice_vector | py |
diff --git a/tests/test_session_cache.py b/tests/test_session_cache.py
index <HASH>..<HASH> 100644
--- a/tests/test_session_cache.py
+++ b/tests/test_session_cache.py
@@ -16,6 +16,7 @@ class SessionCacheTestCase(utils.TestCase):
]
def setUp(self):
+ super(SessionCacheTestCase, self).setUp()
... | call setUp method from parent util class | py |
diff --git a/bibliopixel/layout/matrix.py b/bibliopixel/layout/matrix.py
index <HASH>..<HASH> 100644
--- a/bibliopixel/layout/matrix.py
+++ b/bibliopixel/layout/matrix.py
@@ -68,7 +68,8 @@ class Matrix(MultiLayout):
if not self.coord_map:
if len(self.drivers) == 1:
- log.info(
+ ... | Quiet a spammy message in layout.matrix | py |
diff --git a/viscm/gui.py b/viscm/gui.py
index <HASH>..<HASH> 100644
--- a/viscm/gui.py
+++ b/viscm/gui.py
@@ -51,7 +51,7 @@ _JCh_to_sRGB1 = cspace_converter(GREYSCALE_CONVERSION_SPACE, "sRGB1")
def to_greyscale(sRGB1):
JCh = _sRGB1_to_JCh(sRGB1)
JCh[..., 1] = 0
- return _JCh_to_sRGB1(JCh)
+ return np.... | Clip to gamut when converting to greyscale In rare cases (e.g. `viscm show hot`), the greyscale conversion can produce slightly out-of-gamut colors. Clipping to gamut fixes this. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,3 +1,4 @@
+import io
from setuptools import setup, find_packages # pylint: disable=no-name-in-module,import-error
@@ -6,7 +7,7 @@ def dependencies(file):
return f.read().splitlines()
-with open("README.md... | Use io.open to support Python 2 | py |
diff --git a/tests/unit/renderers/gpg_test.py b/tests/unit/renderers/gpg_test.py
index <HASH>..<HASH> 100644
--- a/tests/unit/renderers/gpg_test.py
+++ b/tests/unit/renderers/gpg_test.py
@@ -16,6 +16,7 @@ ensure_in_syspath('../../')
import salt.loader
import salt.config
from salt.state import HighState
+from integra... | Use an explicit path for the keydir not `getcwd` | py |
diff --git a/devassistant/command_runners.py b/devassistant/command_runners.py
index <HASH>..<HASH> 100644
--- a/devassistant/command_runners.py
+++ b/devassistant/command_runners.py
@@ -680,6 +680,8 @@ class Jinja2Runner(CommandRunner):
try:
logger.debug('Using template file: {0}'.format(template... | Better warning when jinja template is not found | py |
diff --git a/backend/job_manager.py b/backend/job_manager.py
index <HASH>..<HASH> 100644
--- a/backend/job_manager.py
+++ b/backend/job_manager.py
@@ -133,8 +133,11 @@ class DockerJobManager (JobManager):
self.docker.start(containerId, binds={os.path.abspath(os.path.join(INGIniousConfiguration["tasksDirectory"... | Delete container image after each task's run | py |
diff --git a/setuptools/tests/test_sandbox.py b/setuptools/tests/test_sandbox.py
index <HASH>..<HASH> 100644
--- a/setuptools/tests/test_sandbox.py
+++ b/setuptools/tests/test_sandbox.py
@@ -100,3 +100,13 @@ class TestExceptionSaver:
saved_exc.resume()
assert str(caught.value) == "CantPickleThis... | Add test capturing infinite recursion. Ref #<I>. | py |
diff --git a/plexapi/library.py b/plexapi/library.py
index <HASH>..<HASH> 100644
--- a/plexapi/library.py
+++ b/plexapi/library.py
@@ -669,8 +669,12 @@ class LibrarySection(PlexObject):
"""
# cleanup the core arguments
args = {}
- for category, value in kwargs.items():
- arg... | Pass remaining filtered kwargs to LibrarySection.search() | py |
diff --git a/SoftLayer/utils.py b/SoftLayer/utils.py
index <HASH>..<HASH> 100644
--- a/SoftLayer/utils.py
+++ b/SoftLayer/utils.py
@@ -20,7 +20,7 @@ def lookup(dic, key, *keys):
"""A generic dictionary access helper.
This helps simplify code that uses heavily nested dictionaries. It will
- return None if... | #<I> Fix Sphinx WARNING: Inline emphasis start-string without end-string. | py |
diff --git a/src/manageiq_client/api.py b/src/manageiq_client/api.py
index <HASH>..<HASH> 100644
--- a/src/manageiq_client/api.py
+++ b/src/manageiq_client/api.py
@@ -570,12 +570,14 @@ class Action(object):
if result is None:
return None
elif "results" in result:
- return [self... | handle null results in _process_result | py |
diff --git a/scout/constants/indexes.py b/scout/constants/indexes.py
index <HASH>..<HASH> 100644
--- a/scout/constants/indexes.py
+++ b/scout/constants/indexes.py
@@ -51,6 +51,8 @@ INDEXES = {
('variant_type', ASCENDING)],
name="hgncsymbol_rankscore_category_varianttype",
backgrou... | Partial index for gene_variants. | py |
diff --git a/Application.py b/Application.py
index <HASH>..<HASH> 100644
--- a/Application.py
+++ b/Application.py
@@ -173,6 +173,7 @@ class Application(object):
count = c.fetchone()[0]
if count == 1:
c.execute("INSERT INTO relationships (parent_uuid, k... | Fix bug migrating from 2 -> 3. Reference count must be incremented. svn r<I> | py |
diff --git a/docs/source/conf.py b/docs/source/conf.py
index <HASH>..<HASH> 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -133,6 +133,7 @@ html_theme_options = {
'display_version': True,
'logo_only': True,
'pytorch_project': 'docs',
+ 'navigation_with_keys': True,
}
html_logo = '_s... | feat(docs): navigate with left/right arrow keys (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -67,6 +67,7 @@ setup(name=name,
# 'scripts/batchplot.py',
],
},
+ #TODO insert: prm file to user-folder?
entry_points={
'console_scripts': [
'cellpy=cellp... | adds todo-statement in setup.py (save prm-file in user homepath?) | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.