diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/autolens/autopipe/non_linear.py b/autolens/autopipe/non_linear.py
index <HASH>..<HASH> 100644
--- a/autolens/autopipe/non_linear.py
+++ b/autolens/autopipe/non_linear.py
@@ -5,6 +5,7 @@ import math
import os
import pymultinest
import scipy.optimize
+import numpy as np
from autolens.imaging import hyper... | Max likelihood in multinest now -inf | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -7,7 +7,7 @@ __version__ = '0.98pre'
setup(name='visidata',
version=__version__,
- install_requires='python-dateutil openpyxl xlrd h5py psycopg2 pyshp'.split(),
+ install_requires='python-dateutil openpyxl ... | Add mapbox-vector-tile to setup requirements | py |
diff --git a/angr/exploration_techniques/tracer.py b/angr/exploration_techniques/tracer.py
index <HASH>..<HASH> 100644
--- a/angr/exploration_techniques/tracer.py
+++ b/angr/exploration_techniques/tracer.py
@@ -98,7 +98,7 @@ class Tracer(ExplorationTechnique):
def step(self, simgr, stash='active', **kwargs):
... | Fix an incorrect argument passing (stash passed in as n). | py |
diff --git a/iktomi/unstable/utils/image_resizers.py b/iktomi/unstable/utils/image_resizers.py
index <HASH>..<HASH> 100644
--- a/iktomi/unstable/utils/image_resizers.py
+++ b/iktomi/unstable/utils/image_resizers.py
@@ -100,13 +100,14 @@ class ResizeCrop(Resizer):
class ResizeMixed(Resizer):
- def __init__(self,... | ResizeMixed now accepts rate=1 arg | py |
diff --git a/mixbox/fields.py b/mixbox/fields.py
index <HASH>..<HASH> 100644
--- a/mixbox/fields.py
+++ b/mixbox/fields.py
@@ -42,7 +42,7 @@ def _import_class(classpath):
Raises:
ImportError: If an error occurs while importing the module.
- KeyError: IF the class does not exist in the imported mo... | Fixed Exception type in Raises section of _import_class docstring. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -27,6 +27,8 @@ except ImportError as exp:
if (sys.version_info[0]) < 3:
print("using distutils. install setuptools for more options", file=sys.stderr)
+sys.path.insert(0, os.path.dirname(os.path.abspath(__file_... | Make sure setup.py imports distutilazy from current package | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -76,7 +76,7 @@ else:
# your project is installed. For an analysis of "install_requires" vs pip's
# requirements files see:
# https://packaging.python.org/en/latest/requirements.html
- install_... | Removed specific version requirements from dependencies | py |
diff --git a/mavproxy.py b/mavproxy.py
index <HASH>..<HASH> 100755
--- a/mavproxy.py
+++ b/mavproxy.py
@@ -1342,9 +1342,10 @@ def set_stream_rates():
rate = mpstate.settings.streamrate
else:
rate = mpstate.settings.streamrate2
- master.mav.request_data_stream_send(mpstate.statu... | use streamrate of -1 to mean to not set stream rates | py |
diff --git a/stripy-src/setup.py b/stripy-src/setup.py
index <HASH>..<HASH> 100755
--- a/stripy-src/setup.py
+++ b/stripy-src/setup.py
@@ -39,16 +39,15 @@ if __name__ == "__main__":
url = "https://github.com/underworldcode/stripy",
version = "0.7.0",
description ... | Bug in setup.py Also force installation of scipy version >= <I> | py |
diff --git a/luigi/worker.py b/luigi/worker.py
index <HASH>..<HASH> 100644
--- a/luigi/worker.py
+++ b/luigi/worker.py
@@ -197,9 +197,9 @@ class Worker(object):
self.__scheduled_tasks[task.task_id] = task
deps = task.deps()
for d in deps:
- self._validate_dependency(task)
+ ... | fixed bug in dependency validation error messages should be a lot more helpful now | py |
diff --git a/pyethereum/ethclient.py b/pyethereum/ethclient.py
index <HASH>..<HASH> 100755
--- a/pyethereum/ethclient.py
+++ b/pyethereum/ethclient.py
@@ -7,11 +7,15 @@ from docopt import docopt
import utils
import transactions
from . import __version__
+from . config import read_config
-api_path = '/api/v02a'
+co... | use config in ethclient | py |
diff --git a/aigerbv/expr.py b/aigerbv/expr.py
index <HASH>..<HASH> 100644
--- a/aigerbv/expr.py
+++ b/aigerbv/expr.py
@@ -12,7 +12,8 @@ def constk(k, size=None):
nonlocal size
if size is None:
size = expr.size
- return cmn.source(size, k, signed=False)
+ return cmn.source(s... | Maintain #inputs in x ^ x and support var=None in atom | py |
diff --git a/bumpy.py b/bumpy.py
index <HASH>..<HASH> 100644
--- a/bumpy.py
+++ b/bumpy.py
@@ -22,6 +22,7 @@ LOCALE = {
'help_aliases': '\taliases: {}',
'help_requires': '\trequires: {}',
'help_unknown': 'unknown task: {}',
+ 'shell': '$ {}',
}
LIST = []
@@ -210,6 +211,10 @@ def valid(*things):
return re... | Make `shell(...)` print out the command before executing | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -9,7 +9,7 @@ from setuptools import setup
setup(
name='Flask-MarrowMailer',
- version='0.2.0',
+ version='0.3.0',
url='http://github.com/miguelgrinberg/Flask-MarrowMailer/',
license='MIT',
author='... | remove not needed futures as a dependency | py |
diff --git a/bitshares/memo.py b/bitshares/memo.py
index <HASH>..<HASH> 100644
--- a/bitshares/memo.py
+++ b/bitshares/memo.py
@@ -73,11 +73,14 @@ class Memo(object):
if not memo_wif:
raise MissingKeyError("Memo key for %s missing!" % self.from_account["name"])
+ if not hasattr(self, 'cha... | Allow chain_prefix in Memo to be overwritten. This is useful for off-line mode. | py |
diff --git a/test/test_models.py b/test/test_models.py
index <HASH>..<HASH> 100644
--- a/test/test_models.py
+++ b/test/test_models.py
@@ -603,7 +603,7 @@ def test_classification_model(model_fn, dev):
"input_shape": (1, 3, 224, 224),
}
model_name = model_fn.__name__
- if dev == "cuda" and SKIP_BIG... | Skip big models on both cpu and gpu test to fix CI(#<I>) | py |
diff --git a/epdb/epdb.py b/epdb/epdb.py
index <HASH>..<HASH> 100755
--- a/epdb/epdb.py
+++ b/epdb/epdb.py
@@ -13,6 +13,7 @@
""" Extended pdb """
import bdb
+import stackutil
import inspect
import pdb
import os
@@ -32,9 +33,8 @@ import tempfile
import traceback
try:
- from epdb import telnetserver
- fr... | Undo change to absolute imports; it breaks on py<I> | py |
diff --git a/netshowlib/linux/iface.py b/netshowlib/linux/iface.py
index <HASH>..<HASH> 100644
--- a/netshowlib/linux/iface.py
+++ b/netshowlib/linux/iface.py
@@ -9,6 +9,7 @@ import netshowlib.linux.ipaddr as ipaddr
import os
import re
from datetime import datetime
+import netshowlib.linux.stp.kernel as kernel_stp
... | fix typo in read_symlink | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -6,6 +6,7 @@ import shutil
import glob
import multiprocessing
from distutils.command.build import build as st_build
+from distutils.util import get_platform
from setuptools import setup
from setuptools.command.develop i... | Re-add platform tag to setup.py | py |
diff --git a/src/drivers/PiBot/real/piBot.py b/src/drivers/PiBot/real/piBot.py
index <HASH>..<HASH> 100644
--- a/src/drivers/PiBot/real/piBot.py
+++ b/src/drivers/PiBot/real/piBot.py
@@ -267,7 +267,7 @@ class PiBot:
DcMin = 29
DcMax = 971
Pi = 3.1416
- FullCircle = 360 #2 * Pi
+ FullCircle = 2 * Pi
DutySc... | "leerangulorueda" function added to the driver pibot.py | py |
diff --git a/kafka_utils/util/client.py b/kafka_utils/util/client.py
index <HASH>..<HASH> 100644
--- a/kafka_utils/util/client.py
+++ b/kafka_utils/util/client.py
@@ -24,7 +24,7 @@ from retrying import retry
from kafka_utils.util.protocol import KafkaToolProtocol
-RETRY_ATTEMPTS = 5
+RETRY_ATTEMPTS = 10
WAIT_BEFO... | increasing the retry attempts to <I> from 5, now that acceptance tests actually starts at copy_group with kafka storage, and because is just starting up, it removes way more retries it seems | py |
diff --git a/compliance_checker/cf/cf.py b/compliance_checker/cf/cf.py
index <HASH>..<HASH> 100644
--- a/compliance_checker/cf/cf.py
+++ b/compliance_checker/cf/cf.py
@@ -499,6 +499,10 @@ class CFBaseCheck(BaseCheck):
if hasattr(v, 'standard_name') and 'status_flag' in v.standard_name:
... | Skip cf_role attr'd vars in check_units, fixes #<I> | py |
diff --git a/axiom/test/test_upgrading.py b/axiom/test/test_upgrading.py
index <HASH>..<HASH> 100644
--- a/axiom/test/test_upgrading.py
+++ b/axiom/test/test_upgrading.py
@@ -411,10 +411,18 @@ class SubStoreCompat(SwordUpgradeTest):
return self.currentSubStore
def closeStore(self):
- self.current... | Apply the same stop service logic to the closeStore method of the SubStore version of the tests | py |
diff --git a/ldapcherry/backend/backendAD.py b/ldapcherry/backend/backendAD.py
index <HASH>..<HASH> 100644
--- a/ldapcherry/backend/backendAD.py
+++ b/ldapcherry/backend/backendAD.py
@@ -23,12 +23,16 @@ class CaFileDontExist(Exception):
self.log = "CA file %(cafile)s don't exist" % {'cafile': cafile}
+clas... | making some attributes explicitly mandatory for Active Directory backend | py |
diff --git a/test/testBase.py b/test/testBase.py
index <HASH>..<HASH> 100644
--- a/test/testBase.py
+++ b/test/testBase.py
@@ -1,4 +1,7 @@
import unittest
+import sys
+import os
+sys.path.insert(0, os.path.abspath('..'))
from observed import event | Modify system path so that tests can import from source distribution | py |
diff --git a/isort/isort.py b/isort/isort.py
index <HASH>..<HASH> 100644
--- a/isort/isort.py
+++ b/isort/isort.py
@@ -902,7 +902,8 @@ class SortImports(object):
self.comments['straight'][module] = comments
comments = None
- if len(self.... | Implement a fix for issue #<I> | py |
diff --git a/pghoard/transfer.py b/pghoard/transfer.py
index <HASH>..<HASH> 100644
--- a/pghoard/transfer.py
+++ b/pghoard/transfer.py
@@ -85,9 +85,11 @@ class TransferAgent(Thread):
self.set_state_defaults_for_site(site)
oper_size = file_to_transfer.get("file_size", 0)
if result[... | transfer: Store the name of the latest file transferred This allows us to see which files of which type have been transferred last just by glancing at the state file. | py |
diff --git a/testkitbackend/requests.py b/testkitbackend/requests.py
index <HASH>..<HASH> 100644
--- a/testkitbackend/requests.py
+++ b/testkitbackend/requests.py
@@ -65,6 +65,15 @@ def VerifyConnectivity(backend, data):
backend.send_response("Driver", {"id": driver_id})
+def CheckMultiDBSupport(backend, data)... | Add CheckMultiDBSupport support to testkit backend (#<I>) Add CheckMultiDBSupport request and MultiDBSupport response support to testkit backend | py |
diff --git a/bugzilla/base.py b/bugzilla/base.py
index <HASH>..<HASH> 100644
--- a/bugzilla/base.py
+++ b/bugzilla/base.py
@@ -164,6 +164,10 @@ class Bugzilla(object):
[bugzilla.yoursite.com]
user = username
password = password
+ Or
+ [bugzilla.yoursite.com]
+ api_key = key
+
You ... | support setting api_key in bugzillarc | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,7 +1,8 @@
+# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(
- name='djangorestframework',
+ name='drf-nested-fields',
version="0.9.0",
url='https://github.com/seebass/drf-nested... | FIXED: name in setup.py | py |
diff --git a/tests/test_ext_marshmallow.py b/tests/test_ext_marshmallow.py
index <HASH>..<HASH> 100644
--- a/tests/test_ext_marshmallow.py
+++ b/tests/test_ext_marshmallow.py
@@ -598,4 +598,4 @@ class TestDictValues:
spec.definition('SchemaWithDict', schema=SchemaWithDict)
result = spec._definitions['... | Access 'type' property of 'additionalProperties' | py |
diff --git a/croppie/widgets/__init__.py b/croppie/widgets/__init__.py
index <HASH>..<HASH> 100644
--- a/croppie/widgets/__init__.py
+++ b/croppie/widgets/__init__.py
@@ -1,7 +1,7 @@
import django
from django import forms
-if django.VERSION[1] < 11:
+if django.VERSION[0] <= 1 and django.VERSION[1] < 11:
from .... | Don't render the Django <<I> widget on Django >=2 Only checking the minor version results in Django <I>, <I>, etc. rendering the widget from widgets_old which is incorrect. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -28,7 +28,7 @@ import imp
import versioneer
-requirements = ['pyzmq', 'six']
+requirements = ['pyzmq', 'six', 'netifaces']
if sys.version_info < (2, 6):
requirements.append('simplejson') | Add netifaces as a requirement | py |
diff --git a/timepiece/models.py b/timepiece/models.py
index <HASH>..<HASH> 100644
--- a/timepiece/models.py
+++ b/timepiece/models.py
@@ -262,7 +262,7 @@ class Entry(models.Model):
end_is_inside = entry_a.end_time > entry_b.start_time \
and entry_a.end_time < entry_b.end_time
b_i... | Stray colon left in last commit invalidates syntax | py |
diff --git a/tests/query/test_collection.py b/tests/query/test_collection.py
index <HASH>..<HASH> 100644
--- a/tests/query/test_collection.py
+++ b/tests/query/test_collection.py
@@ -810,6 +810,8 @@ class TestCollectionQueryTool(unittest.TestCase):
return response
self.query_tool.url_base = "htt... | fixup! Integration of the collection. | py |
diff --git a/pyontutils/scig.py b/pyontutils/scig.py
index <HASH>..<HASH> 100755
--- a/pyontutils/scig.py
+++ b/pyontutils/scig.py
@@ -60,7 +60,8 @@ class ImportChain: # TODO abstract this a bit to support other onts, move back
direction='OUTGOING'))
nodes =... | scig ImportChain fix issue with bnode imports how such an import came to be I cannot imagine, but here we are | py |
diff --git a/gems/__init__.py b/gems/__init__.py
index <HASH>..<HASH> 100644
--- a/gems/__init__.py
+++ b/gems/__init__.py
@@ -2,7 +2,7 @@
__author__ = 'Blake Printy'
__email__ = 'bprinty@gmail.com'
-__version__ = '0.1.0'
+__version__ = '0.1.1'
from .datatypes import composite | incremented patch functionality for api name change | py |
diff --git a/BAC0/core/devices/Points.py b/BAC0/core/devices/Points.py
index <HASH>..<HASH> 100644
--- a/BAC0/core/devices/Points.py
+++ b/BAC0/core/devices/Points.py
@@ -450,7 +450,10 @@ class Point:
AnalogValue are written to
AnalogOutput are overridden
"""
- if "Value" in self.prope... | Fix for writing to characterstring... was impossible to write auto :0) | py |
diff --git a/hypermap/dynasty/utils.py b/hypermap/dynasty/utils.py
index <HASH>..<HASH> 100644
--- a/hypermap/dynasty/utils.py
+++ b/hypermap/dynasty/utils.py
@@ -25,6 +25,8 @@ def clean_text(text):
text = text.decode("utf-8")
except UnicodeEncodeError:
text = text.encode("ascii", "ignore")
+ ... | Changes to the exception by adding extrawq | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -39,16 +39,6 @@ from distutils.dist import Distribution
from distutils.cmd import Command
from distutils.command.clean import (clean, log, remove_tree)
-# check LAL
-try:
- import lal
-except ImportError as e:
- e.ar... | setup: don't require LAL at install time install ligotimegps instead | py |
diff --git a/cr8/fake_providers.py b/cr8/fake_providers.py
index <HASH>..<HASH> 100644
--- a/cr8/fake_providers.py
+++ b/cr8/fake_providers.py
@@ -3,30 +3,19 @@
import math
from faker.providers import BaseProvider
-from multiprocessing import Manager
EARTH_RADIUS = 6371 # earth radius in km
-# Not implemented... | Implement auto_inc without multiprocessing Manager ingest pipeline is no longer using multiple processes, so synchronization is no longer needed | py |
diff --git a/pyhomematic/devicetypes/actors.py b/pyhomematic/devicetypes/actors.py
index <HASH>..<HASH> 100644
--- a/pyhomematic/devicetypes/actors.py
+++ b/pyhomematic/devicetypes/actors.py
@@ -401,7 +401,7 @@ class IPSwitchPowermeter(IPSwitch, HMSensor):
"ENERGY_COUNTER": [sensorI... | adding missed super classes for IPKeySwitchPowermeter | py |
diff --git a/salt/modules/win_servermanager.py b/salt/modules/win_servermanager.py
index <HASH>..<HASH> 100644
--- a/salt/modules/win_servermanager.py
+++ b/salt/modules/win_servermanager.py
@@ -47,6 +47,9 @@ def _check_server_manager():
Returns: True if import is successful, otherwise returns False
'''
+ ... | Check for Server os before checking | py |
diff --git a/tool_reset_account.py b/tool_reset_account.py
index <HASH>..<HASH> 100644
--- a/tool_reset_account.py
+++ b/tool_reset_account.py
@@ -13,7 +13,7 @@ import concurrent.futures
def purge_blob_containers(account, account_key):
"""
Delete all blob containers in the given storage account.
- ... | Updated disclaimer for tool_reset_account | py |
diff --git a/keepalive/keepalive.py b/keepalive/keepalive.py
index <HASH>..<HASH> 100644
--- a/keepalive/keepalive.py
+++ b/keepalive/keepalive.py
@@ -312,7 +312,10 @@ class KeepAliveHandler:
if not req.headers.has_key('Content-length'):
h.putheader('Content-length', '%d' % len(dat... | improved patch from <I>f<I>ef<I>b5fe<I>c9efbf4fed7da<I>e to address the issue identified by @xflr6 in RDFLib/sparqlwrapper#<I> | py |
diff --git a/py/h2o.py b/py/h2o.py
index <HASH>..<HASH> 100644
--- a/py/h2o.py
+++ b/py/h2o.py
@@ -1256,10 +1256,10 @@ class H2O(object):
'-hdfs hdfs://' + self.hdfs_name_node,
'-hdfs_version=' + self.hdfs_version,
]
- if self.hdfs_config:
- args... | Minor change to have fine-grained control over HDFS options | py |
diff --git a/fireplace/game.py b/fireplace/game.py
index <HASH>..<HASH> 100644
--- a/fireplace/game.py
+++ b/fireplace/game.py
@@ -115,6 +115,7 @@ class BaseGame(Entity):
result = self.action_block(source, actions, type, target=target)
if self.state != State.COMPLETE:
self.manager.step(Step.MAIN_ACTION, Step.... | DEATHS block should always have an index of 0 | py |
diff --git a/tensorflow_datasets/core/features/text/text_encoder.py b/tensorflow_datasets/core/features/text/text_encoder.py
index <HASH>..<HASH> 100644
--- a/tensorflow_datasets/core/features/text/text_encoder.py
+++ b/tensorflow_datasets/core/features/text/text_encoder.py
@@ -330,16 +330,16 @@ class TokenTextEncoder(... | Fix bug involving temporary filepaths when loading a Tokenizer of a TokenTextEncoder. Because the data directory is marked as "incomplete" while the dataset is being built, and later renamed, absolute filepaths written while the dataset is being built are wrong. This change eliminates the absolute filepaths and instea... | py |
diff --git a/baron/inner_formatting_grouper.py b/baron/inner_formatting_grouper.py
index <HASH>..<HASH> 100644
--- a/baron/inner_formatting_grouper.py
+++ b/baron/inner_formatting_grouper.py
@@ -73,7 +73,7 @@ GROUP_ON = (
"AT",
"IF",
"ELSE",
- "FROM"
+ "FROM",
"EQUAL",
"PLUS_EQUAL",
... | Add missing comma in Python string list In Python, two adjacent strings get concatenated implicitly. Missing commas in multi-line string lists is a common source of bugs causing unwanted string concatenation. In this case, it is clear that this comma is missing by mistake and there should not be a concatenation. | py |
diff --git a/ipyrad/assemble/cluster_across.py b/ipyrad/assemble/cluster_across.py
index <HASH>..<HASH> 100644
--- a/ipyrad/assemble/cluster_across.py
+++ b/ipyrad/assemble/cluster_across.py
@@ -330,6 +330,10 @@ def build_catg_file(data, samples):
for handle in h5handles:
os.remove(handle)
+ for samp... | Added update to set sample.stats.state to 6 upon completion of clustering | py |
diff --git a/mathematica/lexer.py b/mathematica/lexer.py
index <HASH>..<HASH> 100644
--- a/mathematica/lexer.py
+++ b/mathematica/lexer.py
@@ -12,7 +12,7 @@ import mathematica.builtins as mma
class Regex:
IDENTIFIER = r'[a-zA-Z\$][a-zA-Z0-9\$]*'
- NAMED_CHARACTER = r'\\[{identifier}]'.format(identifier=IDENT... | Remove FutureWarning: Possible nested set at ... (#9) Fixes #8 | py |
diff --git a/grammpy/Grammars/RawGrammar.py b/grammpy/Grammars/RawGrammar.py
index <HASH>..<HASH> 100644
--- a/grammpy/Grammars/RawGrammar.py
+++ b/grammpy/Grammars/RawGrammar.py
@@ -10,7 +10,7 @@ import inspect
from ..Terminal import Terminal
from ..Nonterminal import Nonterminal
from ..HashContainer import HashCon... | Grammar.have_rule now returns false (instead of exception) when grammar dont have terminal/nonterminal that rule use | py |
diff --git a/horizon/dashboards/nova/images_and_snapshots/images/forms.py b/horizon/dashboards/nova/images_and_snapshots/images/forms.py
index <HASH>..<HASH> 100644
--- a/horizon/dashboards/nova/images_and_snapshots/images/forms.py
+++ b/horizon/dashboards/nova/images_and_snapshots/images/forms.py
@@ -41,10 +41,12 @@ c... | set kernel and ramdisk id not as required field as it's not editable * fix bug <I> Change-Id: I<I>c0b<I>b5d7ce<I>b1c1e4e<I>b<I>bab<I> | py |
diff --git a/wcmatch/glob.py b/wcmatch/glob.py
index <HASH>..<HASH> 100644
--- a/wcmatch/glob.py
+++ b/wcmatch/glob.py
@@ -503,9 +503,11 @@ class PurePath(pathlib.PurePath):
def _translate_for_glob(self, patterns, flags):
"""Translate for glob."""
+ if not all([isinstance(p, str) for p in ([patte... | Bytes patterns are not allowed in pathlib globbing and matching This mirrors how pathlib already operates. | py |
diff --git a/src/feat/models/applicationjson.py b/src/feat/models/applicationjson.py
index <HASH>..<HASH> 100644
--- a/src/feat/models/applicationjson.py
+++ b/src/feat/models/applicationjson.py
@@ -107,6 +107,25 @@ def render_value(value):
result["label"] = value.label
if value.desc is not None:
... | Adds more value information rendering to json writer. | py |
diff --git a/troposphere/appmesh.py b/troposphere/appmesh.py
index <HASH>..<HASH> 100644
--- a/troposphere/appmesh.py
+++ b/troposphere/appmesh.py
@@ -3,7 +3,7 @@
#
# See LICENSE file for full license.
-from . import AWSObject, AWSProperty
+from . import AWSObject, AWSProperty, Tags
from .validators import integer... | Add AppMesh::VirtualRouter (#<I>) | py |
diff --git a/gwpy/segments/io/hdf5.py b/gwpy/segments/io/hdf5.py
index <HASH>..<HASH> 100644
--- a/gwpy/segments/io/hdf5.py
+++ b/gwpy/segments/io/hdf5.py
@@ -25,6 +25,7 @@ cleaner.
import h5py
import numpy
+from distutils.version import LooseVersion
from astropy.io.registry import (register_reader, register_wri... | segments.io.hdf5: fix version issue with empty | py |
diff --git a/cherrypy/_cpchecker.py b/cherrypy/_cpchecker.py
index <HASH>..<HASH> 100644
--- a/cherrypy/_cpchecker.py
+++ b/cherrypy/_cpchecker.py
@@ -46,6 +46,20 @@ class Checker(object):
# This value should be set inside _cpconfig.
global_config_contained_paths = False
+ def check_app_config_entrie... | #<I> - cpchecker method to catch application configuration that starts with script-name | py |
diff --git a/openquake/baselib/general.py b/openquake/baselib/general.py
index <HASH>..<HASH> 100644
--- a/openquake/baselib/general.py
+++ b/openquake/baselib/general.py
@@ -399,8 +399,7 @@ def assert_independent(package, *packages):
>>> assert_independent('openquake.hazardlib',
... 'ope... | Removed a failing doctest | py |
diff --git a/vncdotool/api.py b/vncdotool/api.py
index <HASH>..<HASH> 100644
--- a/vncdotool/api.py
+++ b/vncdotool/api.py
@@ -36,9 +36,8 @@ def connect(server, password=None):
in the main thread of non-Twisted Python Applications, EXPERIMENTAL.
>>> from vncdotool import api
- >>> client = api.connect('h... | issue #<I>: add context manager protocol to client | py |
diff --git a/test/__init__.py b/test/__init__.py
index <HASH>..<HASH> 100644
--- a/test/__init__.py
+++ b/test/__init__.py
@@ -605,7 +605,7 @@ class ClientContext(object):
func=func)
def supports_transactions(self):
- if self.version.at_least(4, 1, 6):
+ if self.versio... | PYTHON-<I> Bump required server version for testing sharded transactions | py |
diff --git a/host/basil/utils/sim/utils.py b/host/basil/utils/sim/utils.py
index <HASH>..<HASH> 100644
--- a/host/basil/utils/sim/utils.py
+++ b/host/basil/utils/sim/utils.py
@@ -7,6 +7,7 @@
import subprocess
import time
+import os
def cocotb_makefile(sim_files, top_level = 'tb', test_module='basil.utils.sim.Tes... | ENH: Hide fake errors during verilog build | py |
diff --git a/vaping/plugins/zeromq.py b/vaping/plugins/zeromq.py
index <HASH>..<HASH> 100644
--- a/vaping/plugins/zeromq.py
+++ b/vaping/plugins/zeromq.py
@@ -1,6 +1,9 @@
from builtins import str
-import zmq.green as zmq
+try:
+ import zmq.green as zmq
+except ImportError:
+ zmq = None
import vaping
import... | fixes #1 detect if pyzmq is installed | py |
diff --git a/torchvision/datasets/folder.py b/torchvision/datasets/folder.py
index <HASH>..<HASH> 100644
--- a/torchvision/datasets/folder.py
+++ b/torchvision/datasets/folder.py
@@ -151,7 +151,7 @@ class DatasetFolder(data.Dataset):
return fmt_str
-IMG_EXTENSIONS = ['.jpg', '.jpeg', '.png', '.ppm', '.bmp'... | Add support for .TIFF files in ImageFolder (#<I>) | py |
diff --git a/salt/returners/slack_returner.py b/salt/returners/slack_returner.py
index <HASH>..<HASH> 100644
--- a/salt/returners/slack_returner.py
+++ b/salt/returners/slack_returner.py
@@ -4,7 +4,7 @@ Return salt data via slack
.. versionadded:: 2015.5.0
-The following fields can be set in the minion conf file:... | Remove and extra colon that is causing rendering issues | py |
diff --git a/zstd_cffi.py b/zstd_cffi.py
index <HASH>..<HASH> 100644
--- a/zstd_cffi.py
+++ b/zstd_cffi.py
@@ -429,9 +429,8 @@ class ZstdCompressor(object):
if not data:
break
- total_read += len(data)
-
data_buffer = ffi.from_buffer(data)
+ total_read ... | cffi: calculate read byte count from buffer size This is more accurate than asking the object for its length. | py |
diff --git a/python_modules/dagster/dagster/core/storage/pipeline_run.py b/python_modules/dagster/dagster/core/storage/pipeline_run.py
index <HASH>..<HASH> 100644
--- a/python_modules/dagster/dagster/core/storage/pipeline_run.py
+++ b/python_modules/dagster/dagster/core/storage/pipeline_run.py
@@ -319,10 +319,13 @@ cla... | [PipelineRun] only make new run id when needed (#<I>) | py |
diff --git a/tensor2tensor/rl/evaluator.py b/tensor2tensor/rl/evaluator.py
index <HASH>..<HASH> 100644
--- a/tensor2tensor/rl/evaluator.py
+++ b/tensor2tensor/rl/evaluator.py
@@ -132,7 +132,7 @@ def planner_guess2():
planning_horizon=8,
rollout_agent_type="policy",
env_type="simulated",
- uct_... | Increase uct_const for Planner. (#<I>) | py |
diff --git a/nece/managers.py b/nece/managers.py
index <HASH>..<HASH> 100644
--- a/nece/managers.py
+++ b/nece/managers.py
@@ -48,8 +48,8 @@ class TranslationQuerySet(models.QuerySet, TranslationMixin):
def iterator(self):
for obj in super(TranslationQuerySet, self).iterator():
- if self.quer... | fix a thing for backwards compatibility | py |
diff --git a/tests/test_tokenization_pegasus.py b/tests/test_tokenization_pegasus.py
index <HASH>..<HASH> 100644
--- a/tests/test_tokenization_pegasus.py
+++ b/tests/test_tokenization_pegasus.py
@@ -57,7 +57,7 @@ class PegasusTokenizationTest(TokenizerTesterMixin, unittest.TestCase):
@require_torch
def test... | Faster pegasus tokenization test with reduced data size (#<I>) | py |
diff --git a/thunder/images/images.py b/thunder/images/images.py
index <HASH>..<HASH> 100644
--- a/thunder/images/images.py
+++ b/thunder/images/images.py
@@ -551,7 +551,7 @@ class Images(Data):
dtype : str, optional, default = None
dtype of one-dimensional ndarray resulting from application of ... | fixed capitalization in docstring for images.map_as_series | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -18,6 +18,7 @@ setup(name='mockredispy',
'nose'
],
install_requires=[
+ 'lunatic-python-bugfix==1.1'
],
tests_require=[
'redis>=2.7.2' | added install_requires on lunatic-python-bugfix-<I> bug:SS-<I> | py |
diff --git a/wordcloud/wordcloud.py b/wordcloud/wordcloud.py
index <HASH>..<HASH> 100644
--- a/wordcloud/wordcloud.py
+++ b/wordcloud/wordcloud.py
@@ -119,7 +119,7 @@ class WordCloud(object):
max_font_size = height
self.max_font_size = max_font_size
- def _fit_words(self, words):
+ def fit... | make process_text and fit_words public again | py |
diff --git a/geoviews/plotting/bokeh/__init__.py b/geoviews/plotting/bokeh/__init__.py
index <HASH>..<HASH> 100644
--- a/geoviews/plotting/bokeh/__init__.py
+++ b/geoviews/plotting/bokeh/__init__.py
@@ -88,7 +88,7 @@ class TilePlot(GeoPlot):
"Element, rendering skipped.")
retur... | Small compatibility fix for holoviews <I> | py |
diff --git a/_pytest/compat.py b/_pytest/compat.py
index <HASH>..<HASH> 100644
--- a/_pytest/compat.py
+++ b/_pytest/compat.py
@@ -145,7 +145,7 @@ if _PY3:
else:
STRING_TYPES = bytes, str, unicode
- from itertools import imap
+ from itertools import imap # NOQA
def _escape_strings(val):
"... | mark: fix introduced linting error | py |
diff --git a/indra/assemblers/indranet/net.py b/indra/assemblers/indranet/net.py
index <HASH>..<HASH> 100644
--- a/indra/assemblers/indranet/net.py
+++ b/indra/assemblers/indranet/net.py
@@ -319,7 +319,17 @@ def _simple_scorer_update(G, edge):
s = k
for _ in range(v):
evid... | Catch underflow error in simple_scorer Uses the same logic as in complementary_belief | py |
diff --git a/numina/user/helpers.py b/numina/user/helpers.py
index <HASH>..<HASH> 100644
--- a/numina/user/helpers.py
+++ b/numina/user/helpers.py
@@ -270,6 +270,7 @@ class BaseWorkEnvironment(object):
os.path.join(self.datadir, value.filename)
)
+ dest = os.path.j... | Pass full path to link_if_needed | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -48,5 +48,6 @@ setup(
packages = [
"pgpy",
+ "pgpy.packet",
],
)
\ No newline at end of file | added missing package: pgpy.packet | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,7 +1,7 @@
from setuptools import setup
-with open('README.md') as readme_file:
+with open('README.rst') as readme_file:
long_description = readme_file.read() | Fixed incorrect README file being specified in setup.py | py |
diff --git a/src/scs_core/data/linear_regression.py b/src/scs_core/data/linear_regression.py
index <HASH>..<HASH> 100644
--- a/src/scs_core/data/linear_regression.py
+++ b/src/scs_core/data/linear_regression.py
@@ -46,13 +46,6 @@ class LinearRegression(object):
return len(self) > self.MIN_DATA_POINTS
- ... | Fixed a bug in LinearRegression clients. | py |
diff --git a/pyghmi/redfish/command.py b/pyghmi/redfish/command.py
index <HASH>..<HASH> 100644
--- a/pyghmi/redfish/command.py
+++ b/pyghmi/redfish/command.py
@@ -469,6 +469,17 @@ class Command(object):
currsettings[setting] = {'value': biosinfo['Attributes'][setting]}
return currsettings
+ d... | Add clear system configuration to redfish Implement clear uefi configuration for redfish targets Change-Id: Id<I>c<I>b<I>ae<I>ae<I>ad3d8bcc0b<I>b | py |
diff --git a/tests/test_serializer.py b/tests/test_serializer.py
index <HASH>..<HASH> 100644
--- a/tests/test_serializer.py
+++ b/tests/test_serializer.py
@@ -45,15 +45,14 @@ class TestCase(unittest.TestCase, treewalkers._base.TreeWalker):
exception = None
result = self.serialize_html(input, options)
... | Small (very small) improvements when tested with multiple alternate expected output (no longer relies on assertEquals and an AssertionError being raised; now makes comparison with == and eventually call fail() with a sensible error message) --HG-- extra : convert_revision : svn%3Aacbfec<I>-<I>-<I>-a<I>-<I>a<I>e<I>e0/t... | py |
diff --git a/spyder/plugins/ipythonconsole/tests/test_ipythonconsole.py b/spyder/plugins/ipythonconsole/tests/test_ipythonconsole.py
index <HASH>..<HASH> 100644
--- a/spyder/plugins/ipythonconsole/tests/test_ipythonconsole.py
+++ b/spyder/plugins/ipythonconsole/tests/test_ipythonconsole.py
@@ -1304,6 +1304,8 @@ def tes... | only run test complete on travis | py |
diff --git a/pagoda/parser.py b/pagoda/parser.py
index <HASH>..<HASH> 100644
--- a/pagoda/parser.py
+++ b/pagoda/parser.py
@@ -381,13 +381,13 @@ class BodyParser(Parser):
joint.axes = axes[:max(joint.ADOF, joint.LDOF)]
if joint.ADOF and lo_stops is not None:
- joint.amotor.lo_stops = ... | Apply joint stops to the joint, not the motor. | py |
diff --git a/indra/db/query_db_stmts.py b/indra/db/query_db_stmts.py
index <HASH>..<HASH> 100644
--- a/indra/db/query_db_stmts.py
+++ b/indra/db/query_db_stmts.py
@@ -63,7 +63,8 @@ def by_gene_role_type(agent_id=None, agent_ns='HGNC', role=None,
clauses.append(db.Agents.stmt_id == db.Statements.id)
if stm... | Fix by_gene_role_type function. The database instance that is passed used by the function is now passed down to the get_statments function when called inside by_gene_role_type. | py |
diff --git a/client.py b/client.py
index <HASH>..<HASH> 100644
--- a/client.py
+++ b/client.py
@@ -175,7 +175,6 @@ class Client(object):
old_nick = self.player.nick
self.player = Player()
self.player.nick = old_nick
- self.subscriber.on_ingame()
return True
def connect_... | Emit on_ingame() only when receiving world_rect | py |
diff --git a/insights/specs/sos_archive.py b/insights/specs/sos_archive.py
index <HASH>..<HASH> 100644
--- a/insights/specs/sos_archive.py
+++ b/insights/specs/sos_archive.py
@@ -92,6 +92,8 @@ class SosSpecs(Specs):
'sos_commands/general/subscription-manager_list_--installed']
)
sysctl = simple_file(... | Copied simple file specs changes from insights_archive to sos_archive (#<I>) | py |
diff --git a/pymongo/collection.py b/pymongo/collection.py
index <HASH>..<HASH> 100644
--- a/pymongo/collection.py
+++ b/pymongo/collection.py
@@ -952,6 +952,19 @@ class Collection(common.BaseObject, Generic[_DocumentType]):
{'x': 1, '_id': 1}
{'x': 1, '_id': 2}
+ If ``upsert=True`` and n... | PYTHON-<I> The doc should clarify that the resulting documents that are produced with upserts are constructed from both the filter and the update params (#<I>) | py |
diff --git a/searx/search.py b/searx/search.py
index <HASH>..<HASH> 100644
--- a/searx/search.py
+++ b/searx/search.py
@@ -69,6 +69,14 @@ def make_callback(engine_name, results_queue, callback, params):
def process_callback(response, **kwargs):
response.search_params = params
+ timeout_overhead =... | [fix] timeout and response parsing order | 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
@@ -189,7 +189,7 @@ for name in "example_movies example_start example_volume_rendering example_virtu
if on_rtd:
# nb convert on rtd puts the output in the same directory..
im... | move the html file by hand (fix) [skip ci] | py |
diff --git a/lib/imageframe.py b/lib/imageframe.py
index <HASH>..<HASH> 100644
--- a/lib/imageframe.py
+++ b/lib/imageframe.py
@@ -793,7 +793,8 @@ Keyboard Shortcuts: (For Mac OSX, replace 'Ctrl' with 'Apple')
self.cmap_panels[col].imax_val.SetValue('%.4g' % imax)
if enhance:
... | avoid divide by zeros on blank images | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -17,7 +17,7 @@ from setuptools import setup, find_packages
from setup_helpers import get_version, readme
-INSTALL_REQUIRES = ['blessed>=1.16.0']
+INSTALL_REQUIRES = ['blessed>=1.16.1']
TESTS_REQUIRE = ['mock; python_vers... | Require blessed <I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -47,6 +47,8 @@ setup(
# Specify the Python versions you support here. In particular, ensure
# that you indicate whether you support Python 2, Python 3 or both.
'Programming Language :: Python :: 2.7'... | Update setup.py with Python 3 changes Use mediafile, not beets, and support Python <I> and up. | py |
diff --git a/quark/api/extensions/subnets_quark.py b/quark/api/extensions/subnets_quark.py
index <HASH>..<HASH> 100644
--- a/quark/api/extensions/subnets_quark.py
+++ b/quark/api/extensions/subnets_quark.py
@@ -20,7 +20,7 @@ from quantum.api.v2 import attributes
EXTENDED_ATTRIBUTES_2_0 = {
'subnets': {
- ... | Allows allocation_pools in subnet create Re-enables allocation pool POST and PUT on subnet REST verbs. Currently unimplemented, but at least we're honoring part of the spec. | py |
diff --git a/vc_zoom/indico_vc_zoom/plugin.py b/vc_zoom/indico_vc_zoom/plugin.py
index <HASH>..<HASH> 100644
--- a/vc_zoom/indico_vc_zoom/plugin.py
+++ b/vc_zoom/indico_vc_zoom/plugin.py
@@ -410,7 +410,7 @@ class ZoomPlugin(VCPluginMixin, IndicoPlugin):
for room in VCRoom.query.filter(
VCRoom.type... | VC/Zoom: fix bug with merging | py |
diff --git a/wandb/cli.py b/wandb/cli.py
index <HASH>..<HASH> 100644
--- a/wandb/cli.py
+++ b/wandb/cli.py
@@ -440,11 +440,14 @@ def init(ctx):
click.echo(click.style("This directory is configured! Next, track a run:\n", fg="green") +
textwrap.dedent("""\
- * `{code}` in your training scr... | Update post "wandb init" instructions. | py |
diff --git a/satpy/resample.py b/satpy/resample.py
index <HASH>..<HASH> 100644
--- a/satpy/resample.py
+++ b/satpy/resample.py
@@ -834,7 +834,8 @@ class BucketResamplerBase(BaseResampler):
def precompute(self, **kwargs):
"""Create X and Y indices and store them for later use."""
LOG.debug("Initia... | Ensure coordinates are as dask arrays | py |
diff --git a/snakebite/client.py b/snakebite/client.py
index <HASH>..<HASH> 100644
--- a/snakebite/client.py
+++ b/snakebite/client.py
@@ -753,7 +753,7 @@ class Client(object):
# Source is a file
elif self._is_file(node):
temporary_target = "%s._COPYING_" % target
- f = open(te... | Changing the 'open' command to open a temporary file as binary. The lack of this parameter causes a bug when using copyToLocal to copy a file from a Linux HDFS cluster to a Windows client box. The file that ends up on Windows isn't byte-identical to the starting file on Linux, due to some end-of-line conversion issue. | py |
diff --git a/tests/test_pages.py b/tests/test_pages.py
index <HASH>..<HASH> 100644
--- a/tests/test_pages.py
+++ b/tests/test_pages.py
@@ -329,6 +329,16 @@ def test_add_foreign_twice(graph, outpdf):
out.save(outpdf)
+@pytest.mark.xfail(reason="needs qpdf fix to issue 514")
+def test_add_twice_without_copy_fore... | tests: "document" via tests that copying duplicate foreign pages doesn't work | py |
diff --git a/log_request_id/tests.py b/log_request_id/tests.py
index <HASH>..<HASH> 100644
--- a/log_request_id/tests.py
+++ b/log_request_id/tests.py
@@ -163,6 +163,7 @@ class RequestIDPassthroughTestCase(TestCase):
self.assertRaises(ImproperlyConfigured, inner)
+# asgiref is required from Django 3.0
if ... | Add comment to explain Django version differences in asgiref | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.