diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/master/buildbot/www/authz/authz.py b/master/buildbot/www/authz/authz.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/www/authz/authz.py
+++ b/master/buildbot/www/authz/authz.py
@@ -89,10 +89,13 @@ class Authz(object):
if owner is not None:
roles.update(
... | fixed pattern-based authz check | py |
diff --git a/doubles/pytest_plugin.py b/doubles/pytest_plugin.py
index <HASH>..<HASH> 100644
--- a/doubles/pytest_plugin.py
+++ b/doubles/pytest_plugin.py
@@ -4,7 +4,7 @@ from doubles.lifecycle import teardown, verify
@pytest.hookimpl(hookwrapper=True)
-def pytest_pyfunc_call(pyfuncitem):
+def pytest_runtest_call(... | Fix doubles teardown (#<I>) | py |
diff --git a/alot/crypto.py b/alot/crypto.py
index <HASH>..<HASH> 100644
--- a/alot/crypto.py
+++ b/alot/crypto.py
@@ -202,12 +202,15 @@ def decrypt_verify(encrypted):
"""
ctx = gpg.core.Context()
try:
- (plaintext, _, verify_result) = ctx.decrypt(encrypted, verify=True)
+ plaintext, _, ver... | crypto: Handle message that is encrypted, but the signature is invalid One case of this would be not having the public key of the signer. If the verification of the signatures fails, then use the signatures from the error, and try to redecrypt without verification. I have no tests yet, and this probably deserves test... | py |
diff --git a/salesforce/tests/test_integration.py b/salesforce/tests/test_integration.py
index <HASH>..<HASH> 100644
--- a/salesforce/tests/test_integration.py
+++ b/salesforce/tests/test_integration.py
@@ -425,7 +425,9 @@ class BasicSOQLRoTest(TestCase):
# Test datetime objects (now +- 10 minutes for clock inaccur... | Explaining message if test_range_lookup fails due to bad clock. <I> minutes offset is a problem for this test | py |
diff --git a/angr/engines/vex/ccall.py b/angr/engines/vex/ccall.py
index <HASH>..<HASH> 100644
--- a/angr/engines/vex/ccall.py
+++ b/angr/engines/vex/ccall.py
@@ -1197,8 +1197,8 @@ def x86g_use_seg_selector(state, ldt, gdt, seg_selector, virtual_addr):
# When a concrete target is set and memory is read directly ... | BUGFIX: reading from negative offsets of segments is allowed and routinely done by libc to lookup TLS stuff | py |
diff --git a/restclients_core/models/__init__.py b/restclients_core/models/__init__.py
index <HASH>..<HASH> 100644
--- a/restclients_core/models/__init__.py
+++ b/restclients_core/models/__init__.py
@@ -39,23 +39,34 @@ class MockHTTP(object):
class Model(object):
+ initialized = False
def __init__(self, ... | Need to initialize outside of __init__ for backwards compatability | py |
diff --git a/stravalib/attributes.py b/stravalib/attributes.py
index <HASH>..<HASH> 100644
--- a/stravalib/attributes.py
+++ b/stravalib/attributes.py
@@ -255,7 +255,7 @@ class EntityAttribute(Attribute):
@type.setter
def type(self, v):
- if isinstance(v, (str, bytes)):
+ if isinstance(v, (str... | Fix unicode string as name of class There exists a list (tuple actually) of accepted types - str or bytes. Lines like this: activity = EntityAttribute("Activity", (SUMMARY, DETAILED)) can be passed as unicode string, that will cause failure. Adding unicode type to whitelist fix this case. | py |
diff --git a/src/subconvert_gui.py b/src/subconvert_gui.py
index <HASH>..<HASH> 100755
--- a/src/subconvert_gui.py
+++ b/src/subconvert_gui.py
@@ -20,7 +20,7 @@
import os
import sys
-from PyQt4 import QtGui
+from PyQt4 import QtGui, QtCore
import pkgutil
import encodings
import codecs
@@ -110,6 +110,9 @@ class S... | 'Auto FPS' checkbox is now checked on GUI start. | py |
diff --git a/pyrogram/client/types/message.py b/pyrogram/client/types/message.py
index <HASH>..<HASH> 100644
--- a/pyrogram/client/types/message.py
+++ b/pyrogram/client/types/message.py
@@ -561,7 +561,7 @@ class Message(Object):
return self._client.request_callback_answer(
chat_id... | Fix request_callback_answer call with wrong kwarg | py |
diff --git a/tests/test_modules/test_scanning/test_runnablecontroller.py b/tests/test_modules/test_scanning/test_runnablecontroller.py
index <HASH>..<HASH> 100644
--- a/tests/test_modules/test_scanning/test_runnablecontroller.py
+++ b/tests/test_modules/test_scanning/test_runnablecontroller.py
@@ -219,7 +219,7 @@ class... | Slacken off timing for failing travis test | py |
diff --git a/pysat/_instrument.py b/pysat/_instrument.py
index <HASH>..<HASH> 100644
--- a/pysat/_instrument.py
+++ b/pysat/_instrument.py
@@ -674,6 +674,7 @@ class Instrument(object):
self._clean_rtn = self._pass_func
self._init_rtn = self._pass_func
self._download_rtn = self._pass_func
+ ... | Added list_remote_rtn hook into Instrument to support getting remote data ranges | py |
diff --git a/cbamf/test/init.py b/cbamf/test/init.py
index <HASH>..<HASH> 100644
--- a/cbamf/test/init.py
+++ b/cbamf/test/init.py
@@ -126,7 +126,7 @@ def create_single_particle_state(imsize, radius=5.0, seed=None, *args, **kwargs)
return create_state(image, pos, rad, *args, **kwargs)
-def create_two_particle_... | change axis on two particle states | py |
diff --git a/progressbar/__about__.py b/progressbar/__about__.py
index <HASH>..<HASH> 100644
--- a/progressbar/__about__.py
+++ b/progressbar/__about__.py
@@ -19,7 +19,7 @@ A Python Progressbar library to provide visual (yet text based) progress to
long running operations.
'''.strip().split())
__email__ = 'wolph@wol... | Incrementing version to <I> | py |
diff --git a/horizon/horizon/dashboards/nova/keypairs/forms.py b/horizon/horizon/dashboards/nova/keypairs/forms.py
index <HASH>..<HASH> 100644
--- a/horizon/horizon/dashboards/nova/keypairs/forms.py
+++ b/horizon/horizon/dashboards/nova/keypairs/forms.py
@@ -24,6 +24,7 @@ from django import http
from django import sho... | Added urlquote call around keypair name in delete form. Fixed bug <I>. Change-Id: Ie<I>c0c<I>a2b<I>a4e<I>a<I>d<I>ef<I>c2e5ddc | py |
diff --git a/visidata/shell.py b/visidata/shell.py
index <HASH>..<HASH> 100644
--- a/visidata/shell.py
+++ b/visidata/shell.py
@@ -26,7 +26,7 @@ class ColumnShell(Column):
lmr = LazyMapRow(self.source, row)
for arg in shlex.split(self.expr):
if arg.startswith('$'):
- ... | [shell] do not quote args passed to Popen | py |
diff --git a/lib/webuser.py b/lib/webuser.py
index <HASH>..<HASH> 100644
--- a/lib/webuser.py
+++ b/lib/webuser.py
@@ -62,7 +62,8 @@ from invenio.config import \
version, \
weburl
from invenio import session, websession
-from invenio.dbquery import run_sql, escape_string, OperationalError
+from invenio.dbq... | Friday commit: removed dependency to Numeric. Migrated HitSet & Co. to intbitset, cleaned (de)serialize_via_marshal function calls. Note: you will have to install (until nice Makefile are ready) intbitset from miscutil/lib by running: python intbitset_setup.py build sudo python intbitset_setup.py install (Note: you nee... | py |
diff --git a/src/transformers/modeling_tf_mobilebert.py b/src/transformers/modeling_tf_mobilebert.py
index <HASH>..<HASH> 100644
--- a/src/transformers/modeling_tf_mobilebert.py
+++ b/src/transformers/modeling_tf_mobilebert.py
@@ -370,7 +370,7 @@ class TFMobileBertOutput(tf.keras.layers.Layer):
hidden_states... | Fix dropout in TFMobileBert (#<I>) | py |
diff --git a/lago/utils.py b/lago/utils.py
index <HASH>..<HASH> 100644
--- a/lago/utils.py
+++ b/lago/utils.py
@@ -57,7 +57,11 @@ def _ret_via_queue(func, queue):
try:
queue.put({'return': func()})
except Exception:
- LOGGER.exception('Error while running thread')
+ LOGGER.debug(
+ ... | Print thread's exception info to the log This change will improve the way we show errors to the user. Most of the times, there is no need to expose the low level details of an exception to the user. If needed, the information can be printed explicitly. | py |
diff --git a/aerofiles/openair/reader.py b/aerofiles/openair/reader.py
index <HASH>..<HASH> 100644
--- a/aerofiles/openair/reader.py
+++ b/aerofiles/openair/reader.py
@@ -61,28 +61,24 @@ class Reader:
yield state.block
state.reset()
- if line_type == 'AC':
- ... | openair: Merged reset code paths | py |
diff --git a/source/test/common/test_library_relocation.py b/source/test/common/test_library_relocation.py
index <HASH>..<HASH> 100644
--- a/source/test/common/test_library_relocation.py
+++ b/source/test/common/test_library_relocation.py
@@ -23,24 +23,19 @@ from rafcon.statemachine.enums import StateExecutionState
... | fix library relocation test the order of which library is replaced seems not to be deterministic thus the open_folder function returns the folder dependent on the library name in the query and not ba a global counter | py |
diff --git a/tests/test_environment.py b/tests/test_environment.py
index <HASH>..<HASH> 100644
--- a/tests/test_environment.py
+++ b/tests/test_environment.py
@@ -33,7 +33,6 @@ def test_reset_file_descriptors(pyscript):
with open(pidfile, 'rb') as f:
proc = psutil.Process(int(f.read()))
- assert proc... | Don't check `proc.num_fds()`. It's too inconsistent between systems. | py |
diff --git a/pandas/core/base.py b/pandas/core/base.py
index <HASH>..<HASH> 100644
--- a/pandas/core/base.py
+++ b/pandas/core/base.py
@@ -366,7 +366,7 @@ class IndexOpsMixin(OpsMixin):
def item(self):
"""
- Return the first element of the underlying data as a python scalar.
+ Return the f... | DOC: capitalize Python as proper noun (#<I>) | py |
diff --git a/test.py b/test.py
index <HASH>..<HASH> 100644
--- a/test.py
+++ b/test.py
@@ -1,14 +1,11 @@
#!/usr/bin/env python
# encoding: utf-8
-import sys
import os
import ConfigParser
from threading import Thread
from time import sleep
-sys.path.insert(0, 'rcsdk/')
-
from rcsdk import RCSDK
from rcsdk.co... | Fixed packages structure and setup.py | py |
diff --git a/zipline/pipeline/factors/technical.py b/zipline/pipeline/factors/technical.py
index <HASH>..<HASH> 100644
--- a/zipline/pipeline/factors/technical.py
+++ b/zipline/pipeline/factors/technical.py
@@ -653,7 +653,8 @@ class TrueRange(CustomFactor):
Indicates the true degree of daily price change in an und... | STY: fixed flake8 failing test | py |
diff --git a/topydo/lib/Colorblock.py b/topydo/lib/Colorblock.py
index <HASH>..<HASH> 100644
--- a/topydo/lib/Colorblock.py
+++ b/topydo/lib/Colorblock.py
@@ -56,13 +56,8 @@ def progress_color_code(p_todo, p_safe=True):
due = p_todo.due_date()
result = diff_days(start, due)
-
- elif p... | Remove logic to calculate length based on creation date. The Todo class is now able to calculate this when no start date is given. | py |
diff --git a/python/orca/src/bigdl/orca/tfpark/estimator.py b/python/orca/src/bigdl/orca/tfpark/estimator.py
index <HASH>..<HASH> 100644
--- a/python/orca/src/bigdl/orca/tfpark/estimator.py
+++ b/python/orca/src/bigdl/orca/tfpark/estimator.py
@@ -355,7 +355,7 @@ class TFEstimator(object):
inputs = ... | Support Training using String Data (#<I>) * support string input training * disable map dataset * fix tests * disable MapDataset in Keras training * fix test | py |
diff --git a/openxmllib/utils.py b/openxmllib/utils.py
index <HASH>..<HASH> 100644
--- a/openxmllib/utils.py
+++ b/openxmllib/utils.py
@@ -57,10 +57,10 @@ class IndexableTextExtractor(object):
def addTextElement(self, element_name):
"""Adding an element that may contanin text to index
@param elem... | 'namespaces' is a named param of lxml.etree.XPath constructor. | py |
diff --git a/synapse/cores/storage.py b/synapse/cores/storage.py
index <HASH>..<HASH> 100644
--- a/synapse/cores/storage.py
+++ b/synapse/cores/storage.py
@@ -171,10 +171,15 @@ class Storage(s_config.Config):
It is intended that storage layer implementations may override many of the functions provided here.
... | Link storage events back up to the cortex eventbus | py |
diff --git a/pylibscrypt/fuzz.py b/pylibscrypt/fuzz.py
index <HASH>..<HASH> 100644
--- a/pylibscrypt/fuzz.py
+++ b/pylibscrypt/fuzz.py
@@ -210,31 +210,31 @@ class Fuzzer(object):
if __name__ == "__main__":
modules = []
try:
- import pylibscrypt
+ from . import pylibscrypt
modules.appen... | Fix fuzz testing on python3 | py |
diff --git a/test/test_utils.py b/test/test_utils.py
index <HASH>..<HASH> 100644
--- a/test/test_utils.py
+++ b/test/test_utils.py
@@ -45,5 +45,5 @@ class TestEnsureUnicodeString(TestCase):
unicode_string = ensure_unicode_string(string)
if sys.version_info.major >= 3:
expected_unicode_str... | Upgrade unit tests to use more useful asserts | py |
diff --git a/spyder/utils/ipython/spyder_kernel.py b/spyder/utils/ipython/spyder_kernel.py
index <HASH>..<HASH> 100644
--- a/spyder/utils/ipython/spyder_kernel.py
+++ b/spyder/utils/ipython/spyder_kernel.py
@@ -222,6 +222,16 @@ class SpyderKernel(IPythonKernel):
step = self._pdb_step)
... | IPython console: Correctly detect when to move to first breakpoint | py |
diff --git a/test_ella/test_core/test_cache.py b/test_ella/test_core/test_cache.py
index <HASH>..<HASH> 100644
--- a/test_ella/test_core/test_cache.py
+++ b/test_ella/test_core/test_cache.py
@@ -2,6 +2,8 @@ import time
from datetime import datetime, date
from django.core.cache import get_cache
+from ella.core.cache... | Added test for normalize_key | py |
diff --git a/bcbio/variation/freebayes.py b/bcbio/variation/freebayes.py
index <HASH>..<HASH> 100644
--- a/bcbio/variation/freebayes.py
+++ b/bcbio/variation/freebayes.py
@@ -22,5 +22,14 @@ def run_freebayes(align_bam, ref_file, config, dbsnp=None, region=None,
"-b", align_bam, "-v", tx_out_file, "-f... | Temporary workaround to skip chromosome calls with freebayes errors | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -16,7 +16,8 @@ try:
from Cython.Build import cythonize
except ImportError:
import os
- if not os.path.exists('cyflann/index.c'):
+ src_path = os.path.join(os.path.dirname(__file__), 'cyflann')
+ if not os.p... | fix non-cython install code a bit | py |
diff --git a/tests/testdynamic.py b/tests/testdynamic.py
index <HASH>..<HASH> 100644
--- a/tests/testdynamic.py
+++ b/tests/testdynamic.py
@@ -19,12 +19,15 @@ def sine_array(phase, freq):
class DynamicMapConstructor(ComparisonTestCase):
- def test_simple_constructor(self):
- DynamicMap(lambda x: x)
-
... | Updated invalid test in DynamicMapConstructor | py |
diff --git a/arguments/__init__.py b/arguments/__init__.py
index <HASH>..<HASH> 100644
--- a/arguments/__init__.py
+++ b/arguments/__init__.py
@@ -293,23 +293,12 @@ class Arguments(object):
if self.m_argv[-2] is self.command and self.command in self.validcommands:
s... | guestbook Friday <I> April <I> (week:<I> day:<I>), <I>:<I>:<I> | py |
diff --git a/goatools/__init__.py b/goatools/__init__.py
index <HASH>..<HASH> 100644
--- a/goatools/__init__.py
+++ b/goatools/__init__.py
@@ -10,4 +10,4 @@ __copyright__ = "Copyright (C) 2009-2018, Haibao Tang, DV Klopfenstein"
__email__ = "tanghaibao@gmail.com"
__license__ = "BSD"
__status__ = "Development"
-__ver... | [version] Update to <I> | py |
diff --git a/tests/test_rpool.py b/tests/test_rpool.py
index <HASH>..<HASH> 100644
--- a/tests/test_rpool.py
+++ b/tests/test_rpool.py
@@ -163,7 +163,10 @@ class ErrorAtUnpickle(object):
def id_sleep(args):
- x, delay = args
+ try:
+ x, delay = args
+ except TypeError:
+ x, delay = args, 0
... | FIX wrong arg in test imap | py |
diff --git a/anonymoususage/analysis.py b/anonymoususage/analysis.py
index <HASH>..<HASH> 100644
--- a/anonymoususage/analysis.py
+++ b/anonymoususage/analysis.py
@@ -30,7 +30,7 @@ def plot_total_statistics(dbconn, table_names):
for uuid in uuids:
last_row = get_last_row(dbconn, table, uuid=uuid)
... | fixed use case of get_last_row, was not expecting list | py |
diff --git a/cartoframes/core.py b/cartoframes/core.py
index <HASH>..<HASH> 100644
--- a/cartoframes/core.py
+++ b/cartoframes/core.py
@@ -602,6 +602,7 @@ def carto_map(self, interactive=True, color=None, size=None,
"""
import cartoframes.styling as styling
+ import random
try:
# if Python ... | change url to avoid notebook caching | py |
diff --git a/xclim/core/calendar.py b/xclim/core/calendar.py
index <HASH>..<HASH> 100644
--- a/xclim/core/calendar.py
+++ b/xclim/core/calendar.py
@@ -491,7 +491,10 @@ def percentile_doy(
rrr = rr.assign_coords(time=ind).unstack("time").stack(stack_dim=("year", "window"))
if rrr.chunks is not None and len(r... | ENH: Update percentile chunking Currently, percentile_doy multiply the chunk size by at least 5 (window width) but it can grow even bigger because the time dimension initial chunking is not used in the rechunk. This is fixed by rechunking the new dayofyear dimension at in 5 chunks but, ideally in (window * initial_tim... | py |
diff --git a/ella/core/models/publishable.py b/ella/core/models/publishable.py
index <HASH>..<HASH> 100644
--- a/ella/core/models/publishable.py
+++ b/ella/core/models/publishable.py
@@ -107,10 +107,6 @@ class Publishable(models.Model):
get_domain_url_admin_tag.short_description = _('URL')
get_domain_url_admi... | Removed ellaadmin from core models | py |
diff --git a/skitai/wastuff/wasbase.py b/skitai/wastuff/wasbase.py
index <HASH>..<HASH> 100644
--- a/skitai/wastuff/wasbase.py
+++ b/skitai/wastuff/wasbase.py
@@ -16,6 +16,7 @@ from aquests.protocols.http import http_date, util
from skitai import __version__, WS_EVT_OPEN, WS_EVT_CLOSE, WS_EVT_INIT, NAME
from skitai i... | add was.Tasks | py |
diff --git a/gwpy/plot/plot.py b/gwpy/plot/plot.py
index <HASH>..<HASH> 100644
--- a/gwpy/plot/plot.py
+++ b/gwpy/plot/plot.py
@@ -516,8 +516,8 @@ def _group_axes_data(inputs, separate=None, flat=False):
# the iterable is presumed to be a list of independent data
# structures, unless its a lis... | gwpy.plot: fixed logic bug | py |
diff --git a/cumulusci/tasks/robotframework/libdoc.py b/cumulusci/tasks/robotframework/libdoc.py
index <HASH>..<HASH> 100644
--- a/cumulusci/tasks/robotframework/libdoc.py
+++ b/cumulusci/tasks/robotframework/libdoc.py
@@ -146,7 +146,7 @@ class RobotLibDoc(BaseTask):
rows = []
for kwfile in kwfiles:
... | remove a mapping statement that is no longer needed In an earlier version of the code I needed to map `rows` to a tuple, but now I don't. Good catch, Paul Prescod! | py |
diff --git a/cherrypy/test/test_static_filter.py b/cherrypy/test/test_static_filter.py
index <HASH>..<HASH> 100644
--- a/cherrypy/test/test_static_filter.py
+++ b/cherrypy/test/test_static_filter.py
@@ -85,6 +85,15 @@ class StaticFilterTest(helper.CPWebCase):
# into \r\n on Windows when extracting the Cherry... | New test for directory in staticfilter. | py |
diff --git a/bika/lims/exportimport/instruments/rochecobas/taqman/model96.py b/bika/lims/exportimport/instruments/rochecobas/taqman/model96.py
index <HASH>..<HASH> 100644
--- a/bika/lims/exportimport/instruments/rochecobas/taqman/model96.py
+++ b/bika/lims/exportimport/instruments/rochecobas/taqman/model96.py
@@ -2,7 +... | HEALTH-<I>: Code Improvement Use file stream directly to save memory | py |
diff --git a/python/thunder/factorization/pca.py b/python/thunder/factorization/pca.py
index <HASH>..<HASH> 100755
--- a/python/thunder/factorization/pca.py
+++ b/python/thunder/factorization/pca.py
@@ -60,7 +60,7 @@ class PCA(object):
if type(data) is not RowMatrix:
data = data.toRowMatrix()
- ... | Set default standardization to be across columns rather than rows | py |
diff --git a/lib/retester/cloud_retester.py b/lib/retester/cloud_retester.py
index <HASH>..<HASH> 100644
--- a/lib/retester/cloud_retester.py
+++ b/lib/retester/cloud_retester.py
@@ -604,7 +604,7 @@ def get_report_for_test(test_reference):
if res[0] == 0: f.write(res[1])
else: f.write(... | head -c -<number> does not do what we want. Changed to tail -c <number>. | py |
diff --git a/pyxmpp2/transport.py b/pyxmpp2/transport.py
index <HASH>..<HASH> 100644
--- a/pyxmpp2/transport.py
+++ b/pyxmpp2/transport.py
@@ -324,8 +324,6 @@ class TCPTransport(XMPPTransport, IOHandler):
self._set_state("aborted")
raise DNSError("Could not resolve address reco... | transport.py: do not break _dst_nameports _got_addresses() would overwritte _dst_nameports with resolved addresses causing _continue_connect() to fail when repeated. | py |
diff --git a/setup/server.py b/setup/server.py
index <HASH>..<HASH> 100644
--- a/setup/server.py
+++ b/setup/server.py
@@ -106,6 +106,7 @@ class RequestHandler(SimpleHTTPRequestHandler):
}
def _make_chunk(self, data):
+ """Produces a data chunk for Chunked Transfer Encoding."""
return ("{:X}... | Minor cleanings in setup/server.py | py |
diff --git a/saltcloud/clouds/ec2.py b/saltcloud/clouds/ec2.py
index <HASH>..<HASH> 100644
--- a/saltcloud/clouds/ec2.py
+++ b/saltcloud/clouds/ec2.py
@@ -175,7 +175,7 @@ def get_configured_provider():
'''
return config.is_provider_configured(
__opts__,
- 'ec2',
+ __active_provider_name... | EC2 is now aware of the `__active_profile_name__` context variable. Refs #<I> | py |
diff --git a/test/server.py b/test/server.py
index <HASH>..<HASH> 100644
--- a/test/server.py
+++ b/test/server.py
@@ -786,6 +786,7 @@ class TestCheckID(unittest.TestCase):
self.failUnlessEqual(answer.fields, {
'openid.mode': 'cancel',
})
+ self.failUnlessEqual(answer.signed, [... | [project @ test.server.TestCheckID: ensure a cancel response doesn't get signed] | py |
diff --git a/actionqueues/tests/test_actionqueues.py b/actionqueues/tests/test_actionqueues.py
index <HASH>..<HASH> 100644
--- a/actionqueues/tests/test_actionqueues.py
+++ b/actionqueues/tests/test_actionqueues.py
@@ -104,7 +104,9 @@ def test_explode_action():
q.rollback()
assert actions[0]._rollback_calle... | Check rollbacks are called in right order after exception | py |
diff --git a/zipline/utils/numpy_utils.py b/zipline/utils/numpy_utils.py
index <HASH>..<HASH> 100644
--- a/zipline/utils/numpy_utils.py
+++ b/zipline/utils/numpy_utils.py
@@ -481,7 +481,7 @@ def as_column(a):
if a.ndim != 1:
raise ValueError(
"as_column expected an 1-dimensional array, "
- ... | BUG: fix formatting for incorrectly shaped array in as_column | py |
diff --git a/benchbuild/environments/domain/declarative.py b/benchbuild/environments/domain/declarative.py
index <HASH>..<HASH> 100644
--- a/benchbuild/environments/domain/declarative.py
+++ b/benchbuild/environments/domain/declarative.py
@@ -165,7 +165,7 @@ class ContainerImage(list):
DEFAULT_BASES: tp.Dict[str, Co... | fix(environments): explicitly state remote registry location alpine:edge -> docker.io/alpine:edge | py |
diff --git a/geomet/wkb.py b/geomet/wkb.py
index <HASH>..<HASH> 100644
--- a/geomet/wkb.py
+++ b/geomet/wkb.py
@@ -252,3 +252,7 @@ def __load_point(big_endian, type_bytes, data_bytes):
coords = struct.unpack('%sddd' % endian_token, data_bytes)
return dict(type='Point', coordinates=list(coords))
+
+
+def... | wkb: Stubbed out `__load_linestring`. | py |
diff --git a/pyrogram/client/client.py b/pyrogram/client/client.py
index <HASH>..<HASH> 100644
--- a/pyrogram/client/client.py
+++ b/pyrogram/client/client.py
@@ -183,6 +183,13 @@ class Client(Methods, BaseClient):
self.dispatcher = Dispatcher(self, workers)
+ def __enter__(self):
+ self.start()
... | Enhance API by adding support for Context Managers. Closes #<I> A batch script would be as simple as this example: from pyrogram import Client with Client("...") as app: app.send_message("haskell", "hi") | py |
diff --git a/openquake/shapes.py b/openquake/shapes.py
index <HASH>..<HASH> 100644
--- a/openquake/shapes.py
+++ b/openquake/shapes.py
@@ -34,7 +34,6 @@ from scipy.interpolate import interp1d
from nhlib import geo as nhlib_geo
-from openquake import java
from openquake.utils import round_float
from openquake imp... | shapes: Removed import of openquake.java and dependent code. The one dependent method is unused. =) Former-commit-id: e<I>ff7d<I>bdc<I>d9af<I>d<I>fa<I>e6 | py |
diff --git a/bugwarrior/services/__init__.py b/bugwarrior/services/__init__.py
index <HASH>..<HASH> 100644
--- a/bugwarrior/services/__init__.py
+++ b/bugwarrior/services/__init__.py
@@ -184,6 +184,12 @@ class IssueService(object):
if service_config.has_option(target, 'also_unassigned'):
die("[%s]... | Validate all common service configuration options Previously, only the `only_if_assigned` and `also_unassigned` common service configuration options were validated. This commit adds validations for the remaining common options, namely `default_priority` and `add_tags`. | py |
diff --git a/mpv.py b/mpv.py
index <HASH>..<HASH> 100644
--- a/mpv.py
+++ b/mpv.py
@@ -13,7 +13,7 @@ import traceback
# vim: ts=4 sw=4 et
if os.name == 'nt':
- backend = CDLL(ctypes.util.find_library('mpv-1.dll'))
+ backend = CDLL('mpv-1.dll')
fs_enc = 'utf-8'
else:
import locale
@@ -22,7 +22,13 @@... | Make so/DLL loading more robust * Print a proper error message if shared object not found on unix * Abide by local conventions and look for DLL in script's directory on windows | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -21,7 +21,7 @@ setup(
# Versions should comply with PEP440. For a discussion on single-sourcing
# the version across setup.py and the project code, see
# https://packaging.python.org/en/latest/single_source_ver... | Bumps version number BPFG-<I> | py |
diff --git a/fmn/rules/utils.py b/fmn/rules/utils.py
index <HASH>..<HASH> 100644
--- a/fmn/rules/utils.py
+++ b/fmn/rules/utils.py
@@ -201,9 +201,10 @@ def get_user_of_group(config, fas, groupname):
def creator():
if not fas:
return set()
- return set(fas.group_members(groupname))
+ ... | When retrieving the users in a group we're only interested in their username Otherwise this fails down the path. | py |
diff --git a/django_prices_vatlayer/utils.py b/django_prices_vatlayer/utils.py
index <HASH>..<HASH> 100644
--- a/django_prices_vatlayer/utils.py
+++ b/django_prices_vatlayer/utils.py
@@ -13,6 +13,13 @@ except AttributeError:
raise ImproperlyConfigured('VATLAYER_ACCESS_KEY is required')
RATINGS_URL = 'http://api... | Add function to validate data and get european vat types | py |
diff --git a/ocrmypdf/__init__.py b/ocrmypdf/__init__.py
index <HASH>..<HASH> 100644
--- a/ocrmypdf/__init__.py
+++ b/ocrmypdf/__init__.py
@@ -5,11 +5,3 @@ PROGRAM_NAME = 'ocrmypdf'
VERSION = pkg_resources.get_distribution('ocrmypdf').version
-# These imports are for v4.x backward compatibility for consumers of oc... | Remove backward compatible API deprecations from v4.x | py |
diff --git a/install.py b/install.py
index <HASH>..<HASH> 100755
--- a/install.py
+++ b/install.py
@@ -1,3 +1,4 @@
+#!/usr/bin/env python
import os
CONFIG_FILE = '.config' | Adding shebang line to install.py | py |
diff --git a/pyneqsys/symbolic.py b/pyneqsys/symbolic.py
index <HASH>..<HASH> 100644
--- a/pyneqsys/symbolic.py
+++ b/pyneqsys/symbolic.py
@@ -37,6 +37,8 @@ class SymbolicSys(NeqSys):
----------
x: iterable of Symbols
exprs: iterable of expressions for f
+ params: iterable of Symbols (optional)
+ ... | Update docstring of SymbolicSys | py |
diff --git a/txkoji/task.py b/txkoji/task.py
index <HASH>..<HASH> 100644
--- a/txkoji/task.py
+++ b/txkoji/task.py
@@ -163,7 +163,7 @@ class Task(Munch):
return self.params[0]
# params[0] is the source URL for these tasks:
if self.method not in ('build', 'buildArch', 'buildContainer',
- ... | task: add .target and .package support for maven tasks Populate .target and .package for maven tasks | py |
diff --git a/docs/scm_tag_titles_ext.py b/docs/scm_tag_titles_ext.py
index <HASH>..<HASH> 100644
--- a/docs/scm_tag_titles_ext.py
+++ b/docs/scm_tag_titles_ext.py
@@ -83,8 +83,12 @@ class SCMVersionTitle(SphinxDirective):
version_tag,
scm=ext_conf['scm'],
)
- except... | Make the changelog date generator more forgiving Now it does not error out on unmatched tags. | py |
diff --git a/salt/modules/dockermod.py b/salt/modules/dockermod.py
index <HASH>..<HASH> 100644
--- a/salt/modules/dockermod.py
+++ b/salt/modules/dockermod.py
@@ -2481,9 +2481,6 @@ def create(image,
except Exception:
pull(image, client_timeout=client_timeout)
- if name is not None and kwargs.get('hos... | Don't take hostname from name param when creating docker container Resolves #<I>. | py |
diff --git a/grimoire_elk/enriched/study_ceres_onion.py b/grimoire_elk/enriched/study_ceres_onion.py
index <HASH>..<HASH> 100644
--- a/grimoire_elk/enriched/study_ceres_onion.py
+++ b/grimoire_elk/enriched/study_ceres_onion.py
@@ -267,7 +267,11 @@ class ESOnionConnector(ESConnector):
latest_ts_list.append(... | [onion] Check author bucket to make sure it exists Though authors should always have a name in an enriched index, this code does not assume it to avoid unexpected crashes. | py |
diff --git a/python_modules/dagster-graphql/dagster_graphql/schema/solids.py b/python_modules/dagster-graphql/dagster_graphql/schema/solids.py
index <HASH>..<HASH> 100644
--- a/python_modules/dagster-graphql/dagster_graphql/schema/solids.py
+++ b/python_modules/dagster-graphql/dagster_graphql/schema/solids.py
@@ -58,8 ... | [dagster-graphql] use obj for required resource Test Plan: local test Reviewers: prha Reviewed By: prha Differential Revision: <URL> | py |
diff --git a/webview/gtk.py b/webview/gtk.py
index <HASH>..<HASH> 100644
--- a/webview/gtk.py
+++ b/webview/gtk.py
@@ -12,6 +12,11 @@ logger = logging.getLogger(__name__)
try:
# Try GTK 3
+ import gi
+ gi.require_version('Gtk', '3.0')
+ gi.require_version('Gdk', '3.0')
+ gi.require_version('WebKit',... | Fix load_url threading permissions in GTK Add GTK version declarations | py |
diff --git a/sos/plugins/postgresql.py b/sos/plugins/postgresql.py
index <HASH>..<HASH> 100644
--- a/sos/plugins/postgresql.py
+++ b/sos/plugins/postgresql.py
@@ -1,3 +1,22 @@
+## Copyright (C) 2014 Red Hat, Inc., Sandro Bonazzola <sbonazzo@redhat.com>
+## Copyright (C) 2013 Chris J Arges <chris.j.arges@canonical.com>
... | postgresql: added license and copyright | py |
diff --git a/spyderlib/spyder.py b/spyderlib/spyder.py
index <HASH>..<HASH> 100644
--- a/spyderlib/spyder.py
+++ b/spyderlib/spyder.py
@@ -770,11 +770,12 @@ class MainWindow(QMainWindow):
self.console = Console(self, namespace, exitfunc=self.closing,
profile=self.profile,
... | Internal Console: Change its banner to be clearer about its purpose | py |
diff --git a/tornado/test/twisted_test.py b/tornado/test/twisted_test.py
index <HASH>..<HASH> 100644
--- a/tornado/test/twisted_test.py
+++ b/tornado/test/twisted_test.py
@@ -51,7 +51,10 @@ skipIfNoTwisted = unittest.skipUnless(have_twisted, "twisted module not present"
def save_signal_handlers():
saved = {}
- ... | test: Add hasattr check for SIGCHLD This name is not present on all platforms | py |
diff --git a/ProxyMiddleware.py b/ProxyMiddleware.py
index <HASH>..<HASH> 100644
--- a/ProxyMiddleware.py
+++ b/ProxyMiddleware.py
@@ -1,6 +1,7 @@
#!/usr/bin/env python
#
-# Reverse Proxy Middleware. This snippit of code shifts
+# Reverse Proxy Middleware. This snippit of code sets the script_name environment variab... | Update ProxyMiddleware.py | py |
diff --git a/dvc/fs/http.py b/dvc/fs/http.py
index <HASH>..<HASH> 100644
--- a/dvc/fs/http.py
+++ b/dvc/fs/http.py
@@ -81,11 +81,20 @@ class HTTPFileSystem(NoDirectoriesMixin, FSSpecWrapper):
f"Auth method {auth_method!r} is not supported."
)
+ # Force cleanup of closed SS... | fs.http: force cleanup of closed connections | py |
diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py
index <HASH>..<HASH> 100644
--- a/pandas/core/arrays/datetimes.py
+++ b/pandas/core/arrays/datetimes.py
@@ -855,8 +855,9 @@ class DatetimeArray(dtl.TimelikeOps, dtl.DatelikeOps):
This method takes a time zone (tz) naive Datetime Arr... | DOC: clarify (un)aware logic in tz_localize() docstring (#<I>) | py |
diff --git a/src/django_su/views.py b/src/django_su/views.py
index <HASH>..<HASH> 100644
--- a/src/django_su/views.py
+++ b/src/django_su/views.py
@@ -13,7 +13,7 @@ def login_as_user(request, user_id):
su_user.backend = settings.AUTHENTICATION_BACKENDS[0]
login(request, su_user)
request.session["exit_use... | Now can be configurable the redirects | py |
diff --git a/macroeco/compare/__init__.py b/macroeco/compare/__init__.py
index <HASH>..<HASH> 100644
--- a/macroeco/compare/__init__.py
+++ b/macroeco/compare/__init__.py
@@ -22,4 +22,4 @@ other.
from ._compare import (nll, lrt, AIC, AIC_compare,
sum_of_squares, r_squared,
- ... | Added pueyo bins to init | py |
diff --git a/sphinxcontrib/katex.py b/sphinxcontrib/katex.py
index <HASH>..<HASH> 100644
--- a/sphinxcontrib/katex.py
+++ b/sphinxcontrib/katex.py
@@ -79,7 +79,8 @@ def run_katex(latex, *options):
p = subprocess.Popen(
('katex', ) + options,
stdout=subprocess.PIPE,
- stdin=subprocess.PIPE
... | Add explicit env to Popen | py |
diff --git a/mzgtfs/route.py b/mzgtfs/route.py
index <HASH>..<HASH> 100644
--- a/mzgtfs/route.py
+++ b/mzgtfs/route.py
@@ -82,6 +82,8 @@ class Route(entity.Entity):
'5': 'cablecar',
'6': 'gondola',
'7': 'funicular',
+ '700': 'Bus Service',
+ '800': 'Trolleybus Service',
None: None,... | Add support for Extended GTFS Route types (<I>,<I>) | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -71,7 +71,7 @@ copyright = '2014, Andrew Annex'
# The short X.Y version.
version = '0.7.0'
# The full version, including alpha/beta/rc tags.
-release = '0.7.0 Beta'
+release = '0.7.0'
# The language for c... | Update conf.py this is now a release, so removed beta from docs conf.py release variable | py |
diff --git a/penaltymodel_maxgap/penaltymodel/maxgap/generation.py b/penaltymodel_maxgap/penaltymodel/maxgap/generation.py
index <HASH>..<HASH> 100644
--- a/penaltymodel_maxgap/penaltymodel/maxgap/generation.py
+++ b/penaltymodel_maxgap/penaltymodel/maxgap/generation.py
@@ -83,9 +83,12 @@ def generate_ising(graph, feas... | Add min_classical_gap to the initial solver model. If the model is infeasible with this constraint, it becomes unneccessary to search the remaining gap range | py |
diff --git a/openquake/calculators/tests/ucerf_test.py b/openquake/calculators/tests/ucerf_test.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/tests/ucerf_test.py
+++ b/openquake/calculators/tests/ucerf_test.py
@@ -35,6 +35,7 @@ class UcerfTestCase(CalculatorTestCase):
@attr('qa', 'hazard', 'ucerf')
... | Skipped ucerf_classical test Former-commit-id: <I>abd<I>c<I>bb<I>c<I>df<I>edafb7c8 | py |
diff --git a/angr/call_stack.py b/angr/call_stack.py
index <HASH>..<HASH> 100644
--- a/angr/call_stack.py
+++ b/angr/call_stack.py
@@ -46,7 +46,7 @@ class CallFrame(object):
# Try to convert the ret_addr to an integer
try:
if self.ret_addr.symbolic:
- l.warn... | CallStack: change the warning to debug to avoid excessive warning messages when running CFGFast on MIPS<I> binaries. | py |
diff --git a/xero/exceptions.py b/xero/exceptions.py
index <HASH>..<HASH> 100644
--- a/xero/exceptions.py
+++ b/xero/exceptions.py
@@ -18,11 +18,19 @@ class XeroBadRequest(XeroException):
# HTTP 400: Bad Request
def __init__(self, response):
if response.headers['content-type'].startswith('application... | Better handle BadRequestException's from the JSON API | py |
diff --git a/mbuild/compound.py b/mbuild/compound.py
index <HASH>..<HASH> 100755
--- a/mbuild/compound.py
+++ b/mbuild/compound.py
@@ -325,14 +325,14 @@ class Compound(object):
def initBondKdTree(self):
self.bondsList = list(self.bonds)
- self.BondKdtree = PeriodicCKDTree([bond.com() for bond ... | fixed typo that was causing the bondkdtree to be recreated for every bondsinrange call... <I>% speed increase!!!!! | py |
diff --git a/claripy/claripy.py b/claripy/claripy.py
index <HASH>..<HASH> 100644
--- a/claripy/claripy.py
+++ b/claripy/claripy.py
@@ -250,13 +250,22 @@ class Claripy(object):
:param expr:
:return:
'''
- ret = True, [ ]
+
+ satisfiable = True
+ replace_list = [ ]
... | Make sure constraint_to_si() returns a list containing only Base asts | py |
diff --git a/cloudvolume/datasource/precomputed/metadata.py b/cloudvolume/datasource/precomputed/metadata.py
index <HASH>..<HASH> 100644
--- a/cloudvolume/datasource/precomputed/metadata.py
+++ b/cloudvolume/datasource/precomputed/metadata.py
@@ -599,6 +599,10 @@ Hops:
"""Used for manually resetting downsamples if... | feat: add_resolution as add_scale's factor is hard to understand | py |
diff --git a/model/foo/bar/__init__.py b/model/foo/bar/__init__.py
index <HASH>..<HASH> 100644
--- a/model/foo/bar/__init__.py
+++ b/model/foo/bar/__init__.py
@@ -48,4 +48,4 @@ class BarModel(dpModel):
proxy.rollback(proxy)
def ex_local(self):
- return self.execute('CREATE TABLE a (b INT, c TEXT)... | Add "IF NOT EXISTS" statement for query. | py |
diff --git a/odl/tomo/backends/stir_bindings.py b/odl/tomo/backends/stir_bindings.py
index <HASH>..<HASH> 100644
--- a/odl/tomo/backends/stir_bindings.py
+++ b/odl/tomo/backends/stir_bindings.py
@@ -24,7 +24,7 @@ Back and forward projectors for PET.
objects of STIR projectors and back-projectors, these can be used to ... | DOC: fix bad link in stir_bindings.py | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -29,9 +29,9 @@ INSTALL_REQUIRES = [
"pyserial>2.5",
"jsonmerge",
"psutil",
- "mbed-ls==1.4.2",
+ "mbed-ls>=1.4.2,==1.*",
"semver",
- "mbed-flasher==0.8.0",... | allow mbed-ls version >= <I> (#<I>) * allow mbed-ls version >= <I>, but restrict to 1.x * allow mbed-flasher to be <I>.* | py |
diff --git a/fleece/cli/config/config.py b/fleece/cli/config/config.py
index <HASH>..<HASH> 100644
--- a/fleece/cli/config/config.py
+++ b/fleece/cli/config/config.py
@@ -337,12 +337,15 @@ def write_to_parameter_store(env, prefix, config, ssm_kms_key=None):
)['KeyMetadata']['KeyId']
else:
... | Allow use of default key for ssm parameters The last change to fleece made it possible to encrypt the rendered SSM parameters using a custom KMS key, but in the process broke the ability to use the default key. That's because boto3's ssm put_parameter call is sort of confusing; the way to use the default is to avoid ... | py |
diff --git a/scanpy/plotting/_tools/__init__.py b/scanpy/plotting/_tools/__init__.py
index <HASH>..<HASH> 100644
--- a/scanpy/plotting/_tools/__init__.py
+++ b/scanpy/plotting/_tools/__init__.py
@@ -84,6 +84,9 @@ def pca_loadings(
if components is None: components = [1, 2, 3]
elif isinstance(components, str):... | Exit with an error if sc.pl.pca_loadings is called with indices < 1 (#<I>) | py |
diff --git a/bcbio/qc/umi.py b/bcbio/qc/umi.py
index <HASH>..<HASH> 100644
--- a/bcbio/qc/umi.py
+++ b/bcbio/qc/umi.py
@@ -60,7 +60,7 @@ def run(_, data, out_dir):
out["umi_reduction_median"] = int(math.ceil(np.median(umi_reductions)))
out["umi_reduction_max"] = int(max(umi_reductions))
out["... | UMI: avoid failures if raw average coverage not set #<I> | py |
diff --git a/stanza/models/lemma/trainer.py b/stanza/models/lemma/trainer.py
index <HASH>..<HASH> 100644
--- a/stanza/models/lemma/trainer.py
+++ b/stanza/models/lemma/trainer.py
@@ -173,11 +173,13 @@ class Trainer(object):
for p, pred in zip(pairs, other_preds):
w, pos = p
if (w,pos)... | Replace lemma with identity if it's None from dictionary lookup | py |
diff --git a/colab/settings.py b/colab/settings.py
index <HASH>..<HASH> 100644
--- a/colab/settings.py
+++ b/colab/settings.py
@@ -241,10 +241,8 @@ SUPER_ARCHIVES_LOCK_FILE = '/var/lock/colab/import_emails.lock'
# Mailman API settings
MAILMAN_API_URL = 'http://localhost:8124/v2/'
-LOGIN_URL = '/user/login'
-LOGIN_R... | Removed old settings and fixed login/logout URLs | py |
diff --git a/tsfresh/feature_extraction/feature_calculators.py b/tsfresh/feature_extraction/feature_calculators.py
index <HASH>..<HASH> 100644
--- a/tsfresh/feature_extraction/feature_calculators.py
+++ b/tsfresh/feature_extraction/feature_calculators.py
@@ -1038,14 +1038,20 @@ def range_count(x, min, max):
def approx... | formatted reference and link for approximate entropy | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.