diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/trakt/core/helpers.py b/trakt/core/helpers.py
index <HASH>..<HASH> 100644
--- a/trakt/core/helpers.py
+++ b/trakt/core/helpers.py
@@ -1,8 +1,12 @@
-import arrow
import functools
import logging
import warnings
+try:
+ import arrow
+except ImportError:
+ arrow = None
+
log = logging.getLogger(__n... | Fixed an issue installing trakt.py when "arrow" is not available yet | py |
diff --git a/schedula/utils/drw/__init__.py b/schedula/utils/drw/__init__.py
index <HASH>..<HASH> 100644
--- a/schedula/utils/drw/__init__.py
+++ b/schedula/utils/drw/__init__.py
@@ -1302,11 +1302,7 @@ def _cleanup(files=None, rendered=None):
if files is None and rendered is None:
log.info('Nothing to cle... | fix(drw): Correct cleanup function. | py |
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index <HASH>..<HASH> 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -4252,16 +4252,15 @@ class Index(IndexOpsMixin, PandasObject):
if not isinstance(other, Index):
return False
- if is_ob... | REF: remove special casing from Index.equals (always dispatch to subclass) (#<I>) | py |
diff --git a/tests/test_asyncio_kernel.py b/tests/test_asyncio_kernel.py
index <HASH>..<HASH> 100644
--- a/tests/test_asyncio_kernel.py
+++ b/tests/test_asyncio_kernel.py
@@ -162,7 +162,7 @@ async def test_execute_code_raises_err_with_abnormal_status():
async def test_stream_pty(mocker):
mock_req_obj = asynctest.... | Fix broken test case due to internal API changes | py |
diff --git a/fermipy/roi_model.py b/fermipy/roi_model.py
index <HASH>..<HASH> 100644
--- a/fermipy/roi_model.py
+++ b/fermipy/roi_model.py
@@ -767,10 +767,12 @@ class ROIModel(AnalysisBase):
return src
def load_source(self,src):
+
+ name = src.name.replace(' ','').lower()
- ... | Fix issue with overwriting duplicate sources. | py |
diff --git a/pymysql/tests/test_connection.py b/pymysql/tests/test_connection.py
index <HASH>..<HASH> 100644
--- a/pymysql/tests/test_connection.py
+++ b/pymysql/tests/test_connection.py
@@ -466,6 +466,7 @@ class TestConnection(base.PyMySQLTestCase):
self.assertFalse(c.open)
c.connect(sock)
... | explicit close on socket in test_defer_connect | py |
diff --git a/testing/acceptance_test.py b/testing/acceptance_test.py
index <HASH>..<HASH> 100644
--- a/testing/acceptance_test.py
+++ b/testing/acceptance_test.py
@@ -1288,3 +1288,6 @@ def test_no_brokenpipeerror_message(pytester: Pytester) -> None:
ret = popen.wait()
assert popen.stderr.read() == b""
as... | testing: fix ResourceWarning in broken-pipe test | py |
diff --git a/firebirdsql/fbcore.py b/firebirdsql/fbcore.py
index <HASH>..<HASH> 100755
--- a/firebirdsql/fbcore.py
+++ b/firebirdsql/fbcore.py
@@ -433,7 +433,7 @@ class PreparedStatement:
self._xsqlda = parse_xsqlda(buf[i:], self.cur.connection, self.stmt_handle)
# TODO: implement later
- sel... | temporary set None to n_input_params (means not implement) | py |
diff --git a/python/grizzly/grizzly/lazy_op.py b/python/grizzly/grizzly/lazy_op.py
index <HASH>..<HASH> 100644
--- a/python/grizzly/grizzly/lazy_op.py
+++ b/python/grizzly/grizzly/lazy_op.py
@@ -40,7 +40,7 @@ class LazyOpResult:
self.weld_type = weld_type
self.dim = dim
- def evaluate(self, verbo... | Add passes to Grizzly's lazyOp | py |
diff --git a/tornado/template.py b/tornado/template.py
index <HASH>..<HASH> 100644
--- a/tornado/template.py
+++ b/tornado/template.py
@@ -460,6 +460,13 @@ def _parse(reader, in_block=None):
if reader[curly + 1] not in ("{", "%"):
curly += 1
continue
+ # When th... | Allow more than two consecutive curlies to appear in templates (and use the innermost). This was previously a syntax error in the generated python. | py |
diff --git a/theanets/layers/convolution.py b/theanets/layers/convolution.py
index <HASH>..<HASH> 100644
--- a/theanets/layers/convolution.py
+++ b/theanets/layers/convolution.py
@@ -77,7 +77,7 @@ class Convolution(base.Layer):
class Conv1(Convolution):
- '''1-dimensional convolutions are assumed to process tem... | Change "length" to "filter_size". | py |
diff --git a/libinput/constant.py b/libinput/constant.py
index <HASH>..<HASH> 100755
--- a/libinput/constant.py
+++ b/libinput/constant.py
@@ -145,7 +145,8 @@ class EventType(Enum):
if self in {type(self).GESTURE_SWIPE_BEGIN, type(self).GESTURE_SWIPE_END,
type(self).GESTURE_SWIPE_UPDATE, type(self).GESTURE_PIN... | Add the GESTURE_HOLD_START and GESTURE_HOLD_END to the is_gesture method. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -21,7 +21,7 @@ setup(
packages=['helperlibs', 'helperlibs.bio', 'helperlibs.wrappers',
'helperlibs.tests', 'helperlibs.tests.bio',
'helperlibs.tests.wrappers'],
- install_requires=['numpy>... | setup: bump to biopython >= <I>, drop dep on numpy | py |
diff --git a/convertbng/util.py b/convertbng/util.py
index <HASH>..<HASH> 100644
--- a/convertbng/util.py
+++ b/convertbng/util.py
@@ -30,7 +30,7 @@ THE SOFTWARE.
"""
from ctypes import cdll, c_double, Structure, c_void_p, cast, c_size_t, POINTER
-from sys import platform
+from sys import platform, version_info
fr... | More Py3 compat fixes This time, on Linux | py |
diff --git a/tornado/httpserver.py b/tornado/httpserver.py
index <HASH>..<HASH> 100644
--- a/tornado/httpserver.py
+++ b/tornado/httpserver.py
@@ -149,7 +149,8 @@ class HTTPServer(TCPServer, Configurable,
max_header_size=max_header_size,
header_timeout=idle_connection_timeout or 3600,
... | httpserver: pass no_keep_alive option to connection params | py |
diff --git a/bin/parser/train_ud.py b/bin/parser/train_ud.py
index <HASH>..<HASH> 100644
--- a/bin/parser/train_ud.py
+++ b/bin/parser/train_ud.py
@@ -14,6 +14,7 @@ from spacy.syntax.parser import Parser
from spacy.syntax.arc_eager import ArcEager
from spacy.syntax.parser import get_templates
from spacy.scorer impor... | * Work around get_lex_attr bug introduced during German parsing | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -28,8 +28,9 @@ setup(
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
- 'Programming ... | Change versions in setup.py to current supported Python versions | py |
diff --git a/test/test_perturb.py b/test/test_perturb.py
index <HASH>..<HASH> 100644
--- a/test/test_perturb.py
+++ b/test/test_perturb.py
@@ -19,12 +19,11 @@ cm = np.array([[0, 1, 1],
pv = np.array([0.75, 0.75, 0.25])
-current_state = (0, 1, 0)
+state = (0, 1, 0)
-network = pyphi.Network(tpm, current_state, con... | Update test_perturb to reflect moving state to Subsystem | py |
diff --git a/tests/test_linux_ubuntu_16_04_x86_64.py b/tests/test_linux_ubuntu_16_04_x86_64.py
index <HASH>..<HASH> 100644
--- a/tests/test_linux_ubuntu_16_04_x86_64.py
+++ b/tests/test_linux_ubuntu_16_04_x86_64.py
@@ -484,16 +484,9 @@ class TestLinuxUbuntu_16_04_X86_64(unittest.TestCase):
self.assertEqual('x86_64... | Fixed Ubuntu test, that expected empty fields. | py |
diff --git a/loader.py b/loader.py
index <HASH>..<HASH> 100644
--- a/loader.py
+++ b/loader.py
@@ -69,10 +69,10 @@ def link_and_load(ida, mem, delta=0, bit_addr=bit_sys, max_cnt=2**bit_sys):
l.info("got external lib %s" %extrnlib_name)
ida_bin = binary.Binary(get_tmp_fs_copy(bin_names[... | corrected error of ida reference | py |
diff --git a/cfgstack/cfgstack.py b/cfgstack/cfgstack.py
index <HASH>..<HASH> 100644
--- a/cfgstack/cfgstack.py
+++ b/cfgstack/cfgstack.py
@@ -77,7 +77,8 @@ class CfgStack (object):
if isinstance (include, list):
for f in include:
for k, v in CfgStack (
- f, no_defaults = True).d... | Pass search path when recursing | py |
diff --git a/djangocms_text_ckeditor/cms_plugins.py b/djangocms_text_ckeditor/cms_plugins.py
index <HASH>..<HASH> 100644
--- a/djangocms_text_ckeditor/cms_plugins.py
+++ b/djangocms_text_ckeditor/cms_plugins.py
@@ -1,6 +1,5 @@
from django.conf import settings
from django.forms.fields import CharField
-from django.uti... | django.utils.six supports urlib since <I> - we need to do imports the old way | py |
diff --git a/sitegate/settings.py b/sitegate/settings.py
index <HASH>..<HASH> 100644
--- a/sitegate/settings.py
+++ b/sitegate/settings.py
@@ -10,7 +10,7 @@ SIGNUP_DISABLED_TEXT = getattr(settings, 'SITEGATE_SIGNUP_DISABLED_TEXT', _('Sig
try:
- from siteprefs.siteprefs import patch_locals, register_prefs, pref
... | Settings.py adopted for siteprefs API changes. | py |
diff --git a/utils/GraphUtils.py b/utils/GraphUtils.py
index <HASH>..<HASH> 100644
--- a/utils/GraphUtils.py
+++ b/utils/GraphUtils.py
@@ -1,7 +1,7 @@
__author__ = 'nicole'
from rdflib import Literal, URIRef, BNode, Namespace
-from rdflib.namespace import DC, RDF, RDFS, OWL, XSD
+from rdflib.namespace import DC, RD... | added helper methods for comments and definitions to GraphUtil | py |
diff --git a/src/harvesters/core.py b/src/harvesters/core.py
index <HASH>..<HASH> 100644
--- a/src/harvesters/core.py
+++ b/src/harvesters/core.py
@@ -2177,6 +2177,16 @@ class Harvester:
#
if ia.device.node_map:
+ #
+ if ia._chunk_adapter:
+ i... | Resolve issue #<I> We had to detach a buffer from the chunk adapter and discard the adapter before destructing a ImageAcquirer object. | py |
diff --git a/resolwe/flow/executors/startup_communication_container.py b/resolwe/flow/executors/startup_communication_container.py
index <HASH>..<HASH> 100644
--- a/resolwe/flow/executors/startup_communication_container.py
+++ b/resolwe/flow/executors/startup_communication_container.py
@@ -329,6 +329,9 @@ class Listene... | Terminate container if script could not be read | py |
diff --git a/src/numdifftools/profiletools.py b/src/numdifftools/profiletools.py
index <HASH>..<HASH> 100644
--- a/src/numdifftools/profiletools.py
+++ b/src/numdifftools/profiletools.py
@@ -7,10 +7,12 @@ https://www.pythoncentral.io/measure-time-in-python-time-time-vs-time-clock/
from __future__ import print_functi... | misssing import of warnings fixed. | py |
diff --git a/bin/kitty_template_tester.py b/bin/kitty_template_tester.py
index <HASH>..<HASH> 100755
--- a/bin/kitty_template_tester.py
+++ b/bin/kitty_template_tester.py
@@ -50,9 +50,21 @@ class TemplateProcessor(object):
class TemplateTreePrinter(TemplateProcessor):
+ def _pad(self):
+ return ' ' * se... | [tools] kitty-template-tester now builds the tempalte based on get_structure and not get_tree | py |
diff --git a/tests/test_utils.py b/tests/test_utils.py
index <HASH>..<HASH> 100644
--- a/tests/test_utils.py
+++ b/tests/test_utils.py
@@ -136,7 +136,7 @@ class UtilsTest(AssertRaisesRegexMixin, unittest.TestCase):
def test_bool_dtype_raises_exception(self):
with self.assertRaises(ValueError):
- ... | Switch to built-in bool type to avoid numpy deprecation warning | py |
diff --git a/armet/connectors/sqlalchemy/resources.py b/armet/connectors/sqlalchemy/resources.py
index <HASH>..<HASH> 100644
--- a/armet/connectors/sqlalchemy/resources.py
+++ b/armet/connectors/sqlalchemy/resources.py
@@ -65,11 +65,18 @@ def build_segment(model, segment, attr, clean):
# Determine the operator.
... | Apply negation when converting queries. | py |
diff --git a/sos/plugins/ovirt.py b/sos/plugins/ovirt.py
index <HASH>..<HASH> 100644
--- a/sos/plugins/ovirt.py
+++ b/sos/plugins/ovirt.py
@@ -39,12 +39,10 @@ class Ovirt(Plugin, RedHatPlugin):
DB_PASS_FILES = re.compile(
flags=re.VERBOSE,
pattern=r"""
- ^
- /etc/
+ ^/etc/
... | [ovirt] fix LGTM warning about regular expressions caret at the beginning of line, dollar at the end Relevant to: #<I> | py |
diff --git a/setuppackage.py b/setuppackage.py
index <HASH>..<HASH> 100644
--- a/setuppackage.py
+++ b/setuppackage.py
@@ -228,7 +228,7 @@ class build_config(Command):
# Read the template file
f = open(templatefile)
buf = f.read()
- f.close
+ f.close()
... | Fix memory leak in default shinken file generation | py |
diff --git a/datastore/google/cloud/datastore/__init__.py b/datastore/google/cloud/datastore/__init__.py
index <HASH>..<HASH> 100644
--- a/datastore/google/cloud/datastore/__init__.py
+++ b/datastore/google/cloud/datastore/__init__.py
@@ -18,17 +18,17 @@ You'll typically use these to get started with the API:
.. doc... | Changing doctest indent from 2->3 spaces to be uniform. | py |
diff --git a/thinc/vec2vec.py b/thinc/vec2vec.py
index <HASH>..<HASH> 100644
--- a/thinc/vec2vec.py
+++ b/thinc/vec2vec.py
@@ -50,6 +50,9 @@ class Affine(Model):
outer = self.ops.batch_outer(d_acts_BO, acts_BI)
d_W += outer
d_acts_BI = self.ops.batch_dot(d_acts_BO, self.W.T)
+ ... | Apply optimizer in backward pass of affine layer. | py |
diff --git a/htpasswd/basic.py b/htpasswd/basic.py
index <HASH>..<HASH> 100644
--- a/htpasswd/basic.py
+++ b/htpasswd/basic.py
@@ -8,6 +8,10 @@ try:
except ImportError:
from ordereddict import OrderedDict
+class ErrorParsing(Exception):
+
+ def __str__(self):
+ return "Error parsing file, check bl... | Added exception handling while parsing blank lines from htpasswd file | py |
diff --git a/tests/test_utils.py b/tests/test_utils.py
index <HASH>..<HASH> 100644
--- a/tests/test_utils.py
+++ b/tests/test_utils.py
@@ -65,14 +65,10 @@ def test_make_sure_path_exists_correctly_handle_os_error(mocker):
Should return True if directory exist or created.
Should return False if impossible to cr... | Update make_sure_path_exists tests | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -9,7 +9,7 @@ setup(
author="Sentry",
author_email="hello@sentry.io",
install_requires=["flake8>=3.7.0,<3.8.0"],
- test_requires=["pytest"],
+ tests_require=["pytest==4.6.5"], # last 2.7 and 3.7 compat ver... | correct test_requires to tests_require and pin pytest to <I> lts version | py |
diff --git a/heron/shell/src/python/handlers/killexecutorhandler.py b/heron/shell/src/python/handlers/killexecutorhandler.py
index <HASH>..<HASH> 100644
--- a/heron/shell/src/python/handlers/killexecutorhandler.py
+++ b/heron/shell/src/python/handlers/killexecutorhandler.py
@@ -44,13 +44,16 @@ class KillExecutorHandler... | Allow localhost graceful shutdown (#<I>) * Allow localhost graceful shutdown * Update heron/shell/src/python/handlers/killexecutorhandler.py | py |
diff --git a/two_factor/models.py b/two_factor/models.py
index <HASH>..<HASH> 100644
--- a/two_factor/models.py
+++ b/two_factor/models.py
@@ -87,6 +87,9 @@ class PhoneDevice(Device):
and self.method == other.method \
and self.key == other.key
+ def __hash__(self):
+ return hash("{... | add __hash__ method to PhoneDevice to allow it to be used in hash-based searches. | py |
diff --git a/src/transformers/utils/__init__.py b/src/transformers/utils/__init__.py
index <HASH>..<HASH> 100644
--- a/src/transformers/utils/__init__.py
+++ b/src/transformers/utils/__init__.py
@@ -23,7 +23,7 @@ def check_min_version(min_version):
if version.parse(__version__) < version.parse(min_version):
... | HF emoji unicode doesn't work in console (#<I>) It doesn't look like using 🤗 is a great idea for printing to console. See attachment. This PR proposes to replace 🤗 with "HuggingFace" for an exception message. @LysandreJik | py |
diff --git a/registrasion/views.py b/registrasion/views.py
index <HASH>..<HASH> 100644
--- a/registrasion/views.py
+++ b/registrasion/views.py
@@ -851,10 +851,13 @@ def amend_registration(request, user_id):
for ve_field in ve.error_list:
product, message = ve_field.message
... | Fixes issues on /amend | py |
diff --git a/hmmlearn/tests/test_utils.py b/hmmlearn/tests/test_utils.py
index <HASH>..<HASH> 100644
--- a/hmmlearn/tests/test_utils.py
+++ b/hmmlearn/tests/test_utils.py
@@ -1,6 +1,6 @@
import numpy as np
-from hmmlearn.utils import normalize, logsumexp
+from hmmlearn.utils import normalize
def test_normalize(... | TST removed ``test_logsumexp`` since we don't ship a custom implementation any more | py |
diff --git a/astropy_helpers/commands/build_ext.py b/astropy_helpers/commands/build_ext.py
index <HASH>..<HASH> 100644
--- a/astropy_helpers/commands/build_ext.py
+++ b/astropy_helpers/commands/build_ext.py
@@ -145,7 +145,7 @@ def generate_build_ext_command(packagename, release):
'must be i... | distutils displays a useless error message if we pass too many arguments in to IOError(). In doubt, just say the C filename was missing (maybe later add a better way to indicate if a C++ file should exist?) | py |
diff --git a/eliot/tests/test_prettyprint.py b/eliot/tests/test_prettyprint.py
index <HASH>..<HASH> 100644
--- a/eliot/tests/test_prettyprint.py
+++ b/eliot/tests/test_prettyprint.py
@@ -37,7 +37,7 @@ class FormattingTests(TestCase):
self.assertEqual(
pretty_format(SIMPLE_MESSAGE),
""... | Restore mistakenly deleted characters. | py |
diff --git a/qnet/misc/to_sympy_matrix.py b/qnet/misc/to_sympy_matrix.py
index <HASH>..<HASH> 100644
--- a/qnet/misc/to_sympy_matrix.py
+++ b/qnet/misc/to_sympy_matrix.py
@@ -57,12 +57,12 @@ def convert_to_sympy_matrix(expr, full_space=None):
if full_space != expr.space:
all_spaces = full_space.lo... | Fix tensor product in convert_to_sympy_matrix | py |
diff --git a/cwl_airflow_parser/cwldag.py b/cwl_airflow_parser/cwldag.py
index <HASH>..<HASH> 100644
--- a/cwl_airflow_parser/cwldag.py
+++ b/cwl_airflow_parser/cwldag.py
@@ -160,6 +160,11 @@ class CWLDAG(DAG):
t.reader_task_id = self.top_task.task_id
def get_output_list(self):
- outp... | Fix bug in getting outputs If CommandLineTool, there is no any outputSource field | py |
diff --git a/src/Exscriptd/Config.py b/src/Exscriptd/Config.py
index <HASH>..<HASH> 100644
--- a/src/Exscriptd/Config.py
+++ b/src/Exscriptd/Config.py
@@ -15,6 +15,7 @@ class Config(object):
def __init__(self, filename):
self.cfgtree = etree.parse(filename)
self.variables = {}
+ self.que... | exscriptd: cache and re-use built-in queue instances. | py |
diff --git a/axes/decorators.py b/axes/decorators.py
index <HASH>..<HASH> 100644
--- a/axes/decorators.py
+++ b/axes/decorators.py
@@ -424,7 +424,8 @@ def check_request(request, login_unsuccessful):
if failures > FAILURE_LIMIT and LOCK_OUT_AT_FAILURE and user_lockable:
# We log them out in case they actua... | Log out only if user was logged in Not useful to trigger a logout signal if the user was not authenticated, for logging purposes | py |
diff --git a/bcbio/variation/effects.py b/bcbio/variation/effects.py
index <HASH>..<HASH> 100644
--- a/bcbio/variation/effects.py
+++ b/bcbio/variation/effects.py
@@ -24,12 +24,13 @@ from bcbio.variation import vcfutils
def add_to_vcf(in_file, data):
effect_todo = get_type(data)
if effect_todo:
+ stat... | Ensure snpEff effects passing is back-compatible with previous runs not including statistics | py |
diff --git a/src/kba/pipeline/_task_queues.py b/src/kba/pipeline/_task_queues.py
index <HASH>..<HASH> 100644
--- a/src/kba/pipeline/_task_queues.py
+++ b/src/kba/pipeline/_task_queues.py
@@ -159,7 +159,7 @@ class ZookeeperTaskQueue(object):
self._zk = KazooClient(self.addresses,
... | using timeout in initial connection to zookeeper, since our current architecture so overloads zk... | py |
diff --git a/pypot/server/snap.py b/pypot/server/snap.py
index <HASH>..<HASH> 100644
--- a/pypot/server/snap.py
+++ b/pypot/server/snap.py
@@ -33,6 +33,8 @@ def find_local_ip():
def set_snap_server_variables(host, port, snap_extension='.xml'):
""" Allow to change dynamically port and host variable in xml Snap! ... | correct bug: recorded files were in pypot install dir instead of working dir | py |
diff --git a/ryu/lib/packet/udp.py b/ryu/lib/packet/udp.py
index <HASH>..<HASH> 100644
--- a/ryu/lib/packet/udp.py
+++ b/ryu/lib/packet/udp.py
@@ -17,7 +17,6 @@ import struct
from . import packet_base
from . import packet_utils
-import ipv4
class udp(packet_base.PacketBase):
@@ -45,10 +44,8 @@ class udp(packet... | lib/packet/udp: use checksum_ip() As side effect, IPv6 is also supported. | py |
diff --git a/hydpy/models/arma/arma_control.py b/hydpy/models/arma/arma_control.py
index <HASH>..<HASH> 100644
--- a/hydpy/models/arma/arma_control.py
+++ b/hydpy/models/arma/arma_control.py
@@ -226,12 +226,14 @@ class Responses(parametertools.Parameter):
def _has_predefined_attr(self, name):
return ((nam... | A small addition to commit #<I>. | py |
diff --git a/tests/test_sorter.py b/tests/test_sorter.py
index <HASH>..<HASH> 100755
--- a/tests/test_sorter.py
+++ b/tests/test_sorter.py
@@ -5,8 +5,8 @@ from __future__ import print_function
import sys
+#### from goatools.grouper.grprplt import GrouperPlot
from goatools.grouper.grprdflts import GrouperDflts
-fr... | rm items which use pydot | py |
diff --git a/pysolr.py b/pysolr.py
index <HASH>..<HASH> 100644
--- a/pysolr.py
+++ b/pysolr.py
@@ -112,7 +112,7 @@ try:
except ImportError:
try:
# use etree from lxml if it is installed
- from lxml.etree import ElementTree as ET
+ from lxml import etree as ET
except ImportError:
... | It would probably help if I imported the correct thing. | py |
diff --git a/openquake/calculators/multi_risk.py b/openquake/calculators/multi_risk.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/multi_risk.py
+++ b/openquake/calculators/multi_risk.py
@@ -138,7 +138,10 @@ def wkt2peril(fname, name, sitecol):
Converts a WKT file into a peril array of length N
""... | Added a check on the multi_risk geometry header | py |
diff --git a/abilian/web/views/object.py b/abilian/web/views/object.py
index <HASH>..<HASH> 100644
--- a/abilian/web/views/object.py
+++ b/abilian/web/views/object.py
@@ -78,9 +78,9 @@ class BaseObjectView(View):
This method is reponsible for setting :attr:`obj`. It is called during
:meth:`prepare_args`.
... | keep object_id as instance attribute | py |
diff --git a/ml-agents/mlagents/trainers/tests/test_simple_rl.py b/ml-agents/mlagents/trainers/tests/test_simple_rl.py
index <HASH>..<HASH> 100644
--- a/ml-agents/mlagents/trainers/tests/test_simple_rl.py
+++ b/ml-agents/mlagents/trainers/tests/test_simple_rl.py
@@ -56,7 +56,7 @@ SAC_CONFIG = f"""
{BRAIN_NAME}:
... | [bug-fix] Increase buffer size for SAC tests (#<I>) | py |
diff --git a/src/inscriptis/metadata.py b/src/inscriptis/metadata.py
index <HASH>..<HASH> 100644
--- a/src/inscriptis/metadata.py
+++ b/src/inscriptis/metadata.py
@@ -2,6 +2,6 @@
__author__ = 'Albert Weichselbraun, Fabian Odoni'
__author_email__ = 'albert.weichselbraun@fhgr.ch, fabian.odoni@fhgr.ch'
-__copyright__ ... | chg: upped version to <I>. | py |
diff --git a/src/transformers/models/fnet/modeling_fnet.py b/src/transformers/models/fnet/modeling_fnet.py
index <HASH>..<HASH> 100755
--- a/src/transformers/models/fnet/modeling_fnet.py
+++ b/src/transformers/models/fnet/modeling_fnet.py
@@ -174,7 +174,7 @@ class FNetBasicFourierTransform(nn.Module):
... | Fix reference to tpu short seq length (#<I>) | py |
diff --git a/plaso/multi_processing/base_process.py b/plaso/multi_processing/base_process.py
index <HASH>..<HASH> 100644
--- a/plaso/multi_processing/base_process.py
+++ b/plaso/multi_processing/base_process.py
@@ -7,6 +7,7 @@ import multiprocessing
import os
import random
import signal
+import sys
import time
f... | Changes to profile worker processes when cProfile is active (#<I>) | py |
diff --git a/autoclass/tests/test_readme.py b/autoclass/tests/test_readme.py
index <HASH>..<HASH> 100644
--- a/autoclass/tests/test_readme.py
+++ b/autoclass/tests/test_readme.py
@@ -100,6 +100,45 @@ def test_readme_pycontracts():
t.surface = -1
+def test_readme_typechecked():
+ """ Makes sure that the ... | Added test with pytypes | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -207,7 +207,10 @@ class MyInstallLib (install_lib, object):
def get_outputs (self):
"""Add the generated config file to the list of outputs."""
outs = super(MyInstallLib, self).get_outputs()
- out... | Record _Patool_configdata.py[co] during install. | py |
diff --git a/neural/afni.py b/neural/afni.py
index <HASH>..<HASH> 100644
--- a/neural/afni.py
+++ b/neural/afni.py
@@ -145,7 +145,7 @@ def thresh_at(dset,p,subbrick=0,positive_only=False,suffix=None):
subref = '-a'
if suffix==None:
return '3dcalc( %s %s -expr %s )' % (subref,dset,expr)
- nl.run(['3dcalc',subref... | thresh_at will now create file | py |
diff --git a/visidata/loaders/pandas_freqtbl.py b/visidata/loaders/pandas_freqtbl.py
index <HASH>..<HASH> 100644
--- a/visidata/loaders/pandas_freqtbl.py
+++ b/visidata/loaders/pandas_freqtbl.py
@@ -155,15 +155,11 @@ class PandasSheetFreqTable(SheetPivot):
self.addRow(PivotGroupRow(
elem... | [pandas] nankey is currently not in scope | py |
diff --git a/cms_lab_carousel/admin.py b/cms_lab_carousel/admin.py
index <HASH>..<HASH> 100644
--- a/cms_lab_carousel/admin.py
+++ b/cms_lab_carousel/admin.py
@@ -104,6 +104,7 @@ class SlideAdmin(admin.ModelAdmin):
list_display = ['title', 'carousel', 'publish_slide', 'publish_datetime' ]
list_filter = [Car... | Add save buttons to top of Slide admin | py |
diff --git a/application/briefkasten/dropbox.py b/application/briefkasten/dropbox.py
index <HASH>..<HASH> 100644
--- a/application/briefkasten/dropbox.py
+++ b/application/briefkasten/dropbox.py
@@ -6,7 +6,7 @@ from humanfriendly import parse_size
from jinja2 import Environment, PackageLoader
from json import load, d... | use relative paths inside zip archive otherwise the archive will contain the full path to the dropbox as configured on the briefkasten host | py |
diff --git a/datastructures.py b/datastructures.py
index <HASH>..<HASH> 100644
--- a/datastructures.py
+++ b/datastructures.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# This file is part of Invenio.
-# Copyright (C) 2012, 2013, 2014 CERN.
+# Copyright (C) 2012, 2013, 2014, 2015 CERN.
#
# Invenio is free software; y... | global: SmartDict dotted notation fix * FIX Catches possible KeyError exceptions when using dotted notation in a list to allow for the case when items are missing certain keys. | py |
diff --git a/simuvex/storage/paged_memory.py b/simuvex/storage/paged_memory.py
index <HASH>..<HASH> 100644
--- a/simuvex/storage/paged_memory.py
+++ b/simuvex/storage/paged_memory.py
@@ -22,7 +22,13 @@ class SimPagedMemory(collections.MutableMapping):
self._updated_mappings = set()
def __getstate__(self... | pushing a serialization fix for angr management | py |
diff --git a/cellpy/readers/instruments/arbin_sql.py b/cellpy/readers/instruments/arbin_sql.py
index <HASH>..<HASH> 100644
--- a/cellpy/readers/instruments/arbin_sql.py
+++ b/cellpy/readers/instruments/arbin_sql.py
@@ -24,11 +24,9 @@ from cellpy.parameters.internal_settings import HeaderDict, get_headers_normal
from c... | rename and start documenting new TxtLoader feature | py |
diff --git a/tests/test_util.py b/tests/test_util.py
index <HASH>..<HASH> 100644
--- a/tests/test_util.py
+++ b/tests/test_util.py
@@ -41,7 +41,12 @@ Host *.example.com
\tUser bjork
Port=3333
Host *
- \t \t Crazy something dumb
+"""
+
+dont_strip_whitespace_please = "\t \t Crazy something dumb "
+
+test_con... | Don't end a line with whitespace. This might be stripped by editors at will, which will make some tests brake. | py |
diff --git a/dataviews/plots.py b/dataviews/plots.py
index <HASH>..<HASH> 100644
--- a/dataviews/plots.py
+++ b/dataviews/plots.py
@@ -1755,7 +1755,7 @@ class SideHistogramPlot(HistogramPlot):
offset_line.set_ydata(offset)
-Plot.defaults = {SheetView: SheetViewPlot,
+Plot.defaults.update({SheetView... | Updating Plot.defaults and Plot.sideplots to avoid param warning | py |
diff --git a/openquake/calculators/tests/disagg_test.py b/openquake/calculators/tests/disagg_test.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/tests/disagg_test.py
+++ b/openquake/calculators/tests/disagg_test.py
@@ -149,7 +149,8 @@ class DisaggregationTestCase(CalculatorTestCase):
aae(aw.eps, [-... | Temporarily disabled check_disagg_by_src | py |
diff --git a/datasette/app.py b/datasette/app.py
index <HASH>..<HASH> 100644
--- a/datasette/app.py
+++ b/datasette/app.py
@@ -740,9 +740,6 @@ class TableView(RowTableShared):
if sort or sort_desc:
sort_value = components[0]
components = components[1:]
- ... | Removed rogue print() call | py |
diff --git a/grab/selector/selector.py b/grab/selector/selector.py
index <HASH>..<HASH> 100644
--- a/grab/selector/selector.py
+++ b/grab/selector/selector.py
@@ -70,6 +70,17 @@ class SelectorList(object):
result_list.append(item.text())
return result_list
+ def html(self, default=NULL, encod... | Add html method to SelectorList | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -9,7 +9,7 @@ if platform == 'win32':
setup(
name='ntfy',
- version='0.2.1',
+ version='0.3.0',
description='A utility for sending push notifications', | minor version bump for multiple backends support | py |
diff --git a/test/utils.py b/test/utils.py
index <HASH>..<HASH> 100644
--- a/test/utils.py
+++ b/test/utils.py
@@ -1,10 +1,7 @@
from contextlib import contextmanager
import sys
-try:
- from StringIO import StringIO
-except ImportError:
- from io import StringIO
+from io import StringIO
@contextmanager | Remove conditional import for py2 support | py |
diff --git a/parsers.py b/parsers.py
index <HASH>..<HASH> 100644
--- a/parsers.py
+++ b/parsers.py
@@ -1,3 +1,5 @@
+from datetime import datetime
+
try:
import json
except ImportError:
@@ -7,6 +9,10 @@ def parse_error(data):
return json.loads(data)['error']
+def _parse_datetime(str):
+
+ return datetime.st... | Added datetime parsing. | py |
diff --git a/glymur/jp2box.py b/glymur/jp2box.py
index <HASH>..<HASH> 100644
--- a/glymur/jp2box.py
+++ b/glymur/jp2box.py
@@ -1791,14 +1791,15 @@ class XMLBox(Jp2kBox):
read_buffer = fptr.read(num_bytes)
text = read_buffer.decode('utf-8')
- # Strip out any trailing nulls.
+ # Strip ou... | Modified the warning a bit to make it clearer. Closes #<I>. | py |
diff --git a/examples/run_excel.py b/examples/run_excel.py
index <HASH>..<HASH> 100644
--- a/examples/run_excel.py
+++ b/examples/run_excel.py
@@ -212,7 +212,7 @@ def main():
di.metadata['Ungated Counts'] = diug.shape[0]
di.metadata['Gated Counts'] = di.shape[0]
try:
- di.metadata['G... | Added acquisition time support back into run_excel.py | py |
diff --git a/dataviews/sheetviews/sheetviews.py b/dataviews/sheetviews/sheetviews.py
index <HASH>..<HASH> 100644
--- a/dataviews/sheetviews/sheetviews.py
+++ b/dataviews/sheetviews/sheetviews.py
@@ -310,6 +310,7 @@ class Points(SheetLayer):
@property
def roi(self):
+ if self.roi_bounds is None: retur... | Fixed bug in Points.roi property when the ROI is not set | py |
diff --git a/albumentations/__init__.py b/albumentations/__init__.py
index <HASH>..<HASH> 100644
--- a/albumentations/__init__.py
+++ b/albumentations/__init__.py
@@ -1,6 +1,6 @@
from __future__ import absolute_import
-__version__ = '0.3.2'
+__version__ = '0.3.3'
from .core.composition import *
from .core.transf... | version bump to <I> (#<I>) | py |
diff --git a/doc/source/conf.py b/doc/source/conf.py
index <HASH>..<HASH> 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -20,6 +20,7 @@ import os
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
... | adds path to sphinx config so that we actually import the local version of nolds | py |
diff --git a/openquake/calculators/classical.py b/openquake/calculators/classical.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/classical.py
+++ b/openquake/calculators/classical.py
@@ -537,9 +537,9 @@ class ClassicalCalculator(base.HazardCalculator):
except KeyError: # no data
pass
... | Refined slow task definition [ci skip] | py |
diff --git a/insane/core.py b/insane/core.py
index <HASH>..<HASH> 100755
--- a/insane/core.py
+++ b/insane/core.py
@@ -834,6 +834,7 @@ def setup_membrane(pbc, protein, lipid, options):
if maxd == 0:
print("; The protein seems not to be inside the membrane.", file=sys.stderr)
print(";... | Fix div per 0 when the prot is out of the membrane Restore a lost line from the old version. Fix an issue reported by Hanif. | py |
diff --git a/tests/test_ts.py b/tests/test_ts.py
index <HASH>..<HASH> 100644
--- a/tests/test_ts.py
+++ b/tests/test_ts.py
@@ -1,7 +1,6 @@
from TwitterSearch import *
import unittest
-from unittest.mock import Mock
import httpretty
class TwitterSearchTest(unittest.TestCase):
@@ -129,6 +128,10 @@ class TwitterSe... | python <I> comp. - Mock() only for py3k | py |
diff --git a/yasi.py b/yasi.py
index <HASH>..<HASH> 100644
--- a/yasi.py
+++ b/yasi.py
@@ -877,7 +877,7 @@ def indent_code(original_code, fpath='', options=None):
curr_char, line_number, offset,
first_arg_pos, first_it... | Fix: indent_code function not indenting properly when called with '--warning' option The missing argument to _push_to_list meant it would be reading from sys.argv which would be empty when the function is invoked from some other script | py |
diff --git a/dramatiq/brokers/rabbitmq.py b/dramatiq/brokers/rabbitmq.py
index <HASH>..<HASH> 100644
--- a/dramatiq/brokers/rabbitmq.py
+++ b/dramatiq/brokers/rabbitmq.py
@@ -129,8 +129,14 @@ class RabbitmqBroker(Broker):
@connection.deleter
def connection(self):
+ del self.channel
try:
... | rabbitmq: ensure deleting `connection` and `channel` closes each Related to #<I> and #<I>. | py |
diff --git a/gcloud_requests/requests_connection.py b/gcloud_requests/requests_connection.py
index <HASH>..<HASH> 100644
--- a/gcloud_requests/requests_connection.py
+++ b/gcloud_requests/requests_connection.py
@@ -64,7 +64,7 @@ class RequestsProxy(object):
# socket errors, etc.
session = getattr(_sta... | Add back some retry values as proper kwargs | py |
diff --git a/parsedmarc/__init__.py b/parsedmarc/__init__.py
index <HASH>..<HASH> 100644
--- a/parsedmarc/__init__.py
+++ b/parsedmarc/__init__.py
@@ -1698,7 +1698,7 @@ def watch_inbox(host, username, password, callback, port=None, ssl=True,
idle_start_time = time.monotonic()
for r... | Workaround unexpected IMAP response reported in issue #<I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -29,8 +29,8 @@ setup(
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.5',
- 'Programming Language :: Python :: 3.6'
- '... | Fixed missing commas in setup.py (#<I>) | py |
diff --git a/scapy/packet.py b/scapy/packet.py
index <HASH>..<HASH> 100644
--- a/scapy/packet.py
+++ b/scapy/packet.py
@@ -226,7 +226,7 @@ class Packet(BasePacket):
val = f.i2repr(self, self.overloaded_fields[f.name])
else:
continue
- if isinstance(f, Emph):
+ ... | Had packet.show() and packet.__repr__() take conf.emph in account | py |
diff --git a/mlblocks/primitives/custom/preprocessors/encoders.py b/mlblocks/primitives/custom/preprocessors/encoders.py
index <HASH>..<HASH> 100644
--- a/mlblocks/primitives/custom/preprocessors/encoders.py
+++ b/mlblocks/primitives/custom/preprocessors/encoders.py
@@ -31,7 +31,7 @@ class OneHotLabelEncoder(object):
... | Fix bug in OneHotEncoder | py |
diff --git a/microcosm_flask/namespaces.py b/microcosm_flask/namespaces.py
index <HASH>..<HASH> 100644
--- a/microcosm_flask/namespaces.py
+++ b/microcosm_flask/namespaces.py
@@ -32,7 +32,7 @@ class Namespace(object):
"""
- def __init__(self, subject, object_=None, path=None, version=None, enable_basic_auth... | change to None to clarify that does not disable if enabled globally | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -36,7 +36,7 @@ from setuptools import find_packages
setup(
description='NeuroM: a light-weight neuron morphology analysis package',
author='Blue Brain Project, EPFL',
- url='http://https://github.com/BlueBrain/Ne... | Fix homepage URL (#<I>) | py |
diff --git a/raven/handlers/logging.py b/raven/handlers/logging.py
index <HASH>..<HASH> 100644
--- a/raven/handlers/logging.py
+++ b/raven/handlers/logging.py
@@ -92,7 +92,8 @@ class SentryHandler(logging.Handler, object):
if not started:
f_globals = getattr(frame, 'f_globals', {})... | It can happen that last_mod is None here | py |
diff --git a/spyderlib/spyder.py b/spyderlib/spyder.py
index <HASH>..<HASH> 100644
--- a/spyderlib/spyder.py
+++ b/spyderlib/spyder.py
@@ -565,10 +565,16 @@ class MainWindow(QMainWindow):
'enable this feature')
# Qt-related tools
additact = [None]
... | Spyder main window/External tools/bugfix: QtDesigner and QtLinguist were not detected on Fedora | py |
diff --git a/pystache/view.py b/pystache/view.py
index <HASH>..<HASH> 100644
--- a/pystache/view.py
+++ b/pystache/view.py
@@ -10,8 +10,6 @@ from types import UnboundMethodType
from .context import Context
from .loader import make_template_name
-from .loader import Loader
-from .reader import Reader
from .renderer... | Removed Reader and Loader imports from view.py. | py |
diff --git a/src/scs_core/aws/monitor/device_monitor.py b/src/scs_core/aws/monitor/device_monitor.py
index <HASH>..<HASH> 100644
--- a/src/scs_core/aws/monitor/device_monitor.py
+++ b/src/scs_core/aws/monitor/device_monitor.py
@@ -97,7 +97,7 @@ class DeviceMonitor(object):
return True
now = Loca... | Refactored LocalisedDatetime + and - methods | py |
diff --git a/pysos/actions.py b/pysos/actions.py
index <HASH>..<HASH> 100644
--- a/pysos/actions.py
+++ b/pysos/actions.py
@@ -610,7 +610,10 @@ def downloadURL(URL, dest, decompress=False, index=None):
with open(dest_tmp, 'wb') as f:
try:
u = urllib.request.urlopen(str(URL))
- ... | Fix a previous patch for handling URL without content size | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.