diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/safe_qgis/report/map.py b/safe_qgis/report/map.py
index <HASH>..<HASH> 100644
--- a/safe_qgis/report/map.py
+++ b/safe_qgis/report/map.py
@@ -322,3 +322,5 @@ class Map():
impact_item = model.findItems(self.layer.name())[0]
row = impact_item.index().row()
model.removeRows(row + 1,... | also handle case when impact layer not in the top of TOC | py |
diff --git a/tests/gui/test_drag_and_drop.py b/tests/gui/test_drag_and_drop.py
index <HASH>..<HASH> 100644
--- a/tests/gui/test_drag_and_drop.py
+++ b/tests/gui/test_drag_and_drop.py
@@ -48,6 +48,8 @@ def create_models(*args, **kargs):
rafcon.gui.singleton.state_machine_manager_model.selected_state_machine_id = sm... | test: drag&drop is unstable in xvfb environment | py |
diff --git a/src/oiccli/client_auth.py b/src/oiccli/client_auth.py
index <HASH>..<HASH> 100755
--- a/src/oiccli/client_auth.py
+++ b/src/oiccli/client_auth.py
@@ -467,7 +467,7 @@ def valid_client_info(cinfo, when=0):
:param when: A time stamp against which the expiration time is to be checked
:return: True if... | No get method in ClientInfo. 'getattr' works better. | py |
diff --git a/indra/databases/cbio_client.py b/indra/databases/cbio_client.py
index <HASH>..<HASH> 100644
--- a/indra/databases/cbio_client.py
+++ b/indra/databases/cbio_client.py
@@ -452,6 +452,10 @@ def _filter_data_frame(df, data_col, filter_col, filter_str=None):
return data_list
+# Deactivate this section ... | Remove cBio resource file reading temporarily | py |
diff --git a/multiqc/modules/bcl2fastq/bcl2fastq.py b/multiqc/modules/bcl2fastq/bcl2fastq.py
index <HASH>..<HASH> 100644
--- a/multiqc/modules/bcl2fastq/bcl2fastq.py
+++ b/multiqc/modules/bcl2fastq/bcl2fastq.py
@@ -83,6 +83,8 @@ class MultiqcModule(BaseMultiqcModule):
run_data[lane] = {"total": 0, "perfect... | Add warning for duplicate runID/lane/sample combination | py |
diff --git a/indra/sources/trips/processor.py b/indra/sources/trips/processor.py
index <HASH>..<HASH> 100644
--- a/indra/sources/trips/processor.py
+++ b/indra/sources/trips/processor.py
@@ -1218,12 +1218,12 @@ class TripsProcessor(object):
agent_name = hgnc_name
# If no HGNC name (for ins... | Avoid looking up non-protein UniProt IDs | py |
diff --git a/trashcli/put.py b/trashcli/put.py
index <HASH>..<HASH> 100644
--- a/trashcli/put.py
+++ b/trashcli/put.py
@@ -218,6 +218,7 @@ class FileTrasher:
if self._file_could_be_trashed_in(volume_of_file_to_be_trashed,
volume_of_trash_dir):
... | Fix perms for user's trash folder | py |
diff --git a/tests/integ/test_horovod.py b/tests/integ/test_horovod.py
index <HASH>..<HASH> 100644
--- a/tests/integ/test_horovod.py
+++ b/tests/integ/test_horovod.py
@@ -30,7 +30,7 @@ horovod_dir = os.path.join(os.path.dirname(__file__), "..", "data", "horovod")
@pytest.fixture(scope="module")
def gpu_instance_typ... | change: use p2 instead of p3 for the Horovod test (#<I>) | py |
diff --git a/pyres/horde.py b/pyres/horde.py
index <HASH>..<HASH> 100644
--- a/pyres/horde.py
+++ b/pyres/horde.py
@@ -297,7 +297,7 @@ class Khan(object):
self.setup_minions()
self.setup_resq()
self.register_khan()
- setproctitle('pyres_manager: running')
+ setproctitle('pyres_m... | changed the title for managers to include queues | py |
diff --git a/tests/generated_fun_test.py b/tests/generated_fun_test.py
index <HASH>..<HASH> 100644
--- a/tests/generated_fun_test.py
+++ b/tests/generated_fun_test.py
@@ -66,7 +66,7 @@ def gen_function(size, in_types):
fun, out_types = gen_function(size / size_reduction_factor, arg_types)
fun = partial(ev... | py3 compatibility: list of keys | py |
diff --git a/numexpr/tests/test_numexpr.py b/numexpr/tests/test_numexpr.py
index <HASH>..<HASH> 100644
--- a/numexpr/tests/test_numexpr.py
+++ b/numexpr/tests/test_numexpr.py
@@ -35,7 +35,8 @@ import unittest
TestCase = unittest.TestCase
double = np.double
-
+if sys.version_info[0] >= 3:
+ long = int
# Recomm... | Fixes test bench in Python 3 The test bench did not run on Python 3 because of the usage of long, a deprecated type that does not exist in Python 3. This patch creates the equivament between Python 2's long and Python's 3 (automatically growing) int. | py |
diff --git a/tensorflow_probability/python/mcmc/transformed_kernel.py b/tensorflow_probability/python/mcmc/transformed_kernel.py
index <HASH>..<HASH> 100644
--- a/tensorflow_probability/python/mcmc/transformed_kernel.py
+++ b/tensorflow_probability/python/mcmc/transformed_kernel.py
@@ -109,6 +109,9 @@ def make_transfor... | added error message to ttk when there's no | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -13,8 +13,10 @@ setup(
zip_safe=False,
test_suite='nose.collector',
install_requires=['simplejson'],
- tests_require=[
+ setup_requires=[
'nose>=1.0',
+ ],
+ tests_require=[
'unitte... | jk everyone can download nose because life is hard | py |
diff --git a/test/test_indexdata/test_views.py b/test/test_indexdata/test_views.py
index <HASH>..<HASH> 100644
--- a/test/test_indexdata/test_views.py
+++ b/test/test_indexdata/test_views.py
@@ -39,16 +39,27 @@ try:
# only available in 1.8 +
from django.test.utils import override_settings
except ImportError:... | Clean up override_settings replacement for no django and older django | py |
diff --git a/nuimo_dbus.py b/nuimo_dbus.py
index <HASH>..<HASH> 100644
--- a/nuimo_dbus.py
+++ b/nuimo_dbus.py
@@ -119,20 +119,24 @@ class GattDevice:
return
def connect(self):
+ self.__connect_retry_attempt = 0
self.__connect()
+ def connect_failed(self, e):
+ pass
+
de... | Retry device connection only after certain errors | py |
diff --git a/examples/autonomous_sequence_high_level.py b/examples/autonomous_sequence_high_level.py
index <HASH>..<HASH> 100644
--- a/examples/autonomous_sequence_high_level.py
+++ b/examples/autonomous_sequence_high_level.py
@@ -189,8 +189,8 @@ if __name__ == '__main__':
trajectory_id = 1
activate... | Restore functionality of autonomous_sequence_high_level.py example. Closes #<I> | py |
diff --git a/nosedjango/nosedjango.py b/nosedjango/nosedjango.py
index <HASH>..<HASH> 100644
--- a/nosedjango/nosedjango.py
+++ b/nosedjango/nosedjango.py
@@ -167,8 +167,6 @@ class NoseDjango(Plugin):
from django.conf import settings
from django.db import connection, transaction
- call_comman... | Flush only if the transaction support is not in use | py |
diff --git a/chirptext/__version__.py b/chirptext/__version__.py
index <HASH>..<HASH> 100644
--- a/chirptext/__version__.py
+++ b/chirptext/__version__.py
@@ -10,6 +10,6 @@ __description__ = "ChirpText is a collection of text processing tools for Python
__url__ = "https://letuananh.github.io/chirptext/"
__maintainer_... | pump version to <I>a<I> | py |
diff --git a/python_modules/dagster-graphql/dagster_graphql/test/utils.py b/python_modules/dagster-graphql/dagster_graphql/test/utils.py
index <HASH>..<HASH> 100644
--- a/python_modules/dagster-graphql/dagster_graphql/test/utils.py
+++ b/python_modules/dagster-graphql/dagster_graphql/test/utils.py
@@ -14,9 +14,8 @@ def... | [dagster-graphql] fix test warnings Test Plan: pytest - see no warnings Reviewers: max, schrockn, sashank Reviewed By: sashank Differential Revision: <URL> | py |
diff --git a/cobe/brain.py b/cobe/brain.py
index <HASH>..<HASH> 100644
--- a/cobe/brain.py
+++ b/cobe/brain.py
@@ -889,6 +889,10 @@ DROP INDEX tokens_stem""")
except sqlite3.OperationalError: # no such index: tokens_stem
pass
+ # delete all the existing stems from the table
+ c.exe... | Delete existing stems at the beginning of update_token_stems | py |
diff --git a/salt/client/ssh/__init__.py b/salt/client/ssh/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/client/ssh/__init__.py
+++ b/salt/client/ssh/__init__.py
@@ -247,6 +247,7 @@ class SSH(object):
que = multiprocessing.Queue()
running = {}
target_iter = self.targets.__iter__()
+ ... | fix race condition where return value is omitted | py |
diff --git a/tests/test_context.py b/tests/test_context.py
index <HASH>..<HASH> 100644
--- a/tests/test_context.py
+++ b/tests/test_context.py
@@ -12,9 +12,9 @@ from pystache.context import _get_item
from pystache.context import Context
-class TestCase(unittest.TestCase):
+class AssertIsMixin:
- """A TestCase... | Changed the test_context.TestCase class to a mixin class. | py |
diff --git a/brap/container.py b/brap/container.py
index <HASH>..<HASH> 100644
--- a/brap/container.py
+++ b/brap/container.py
@@ -1,7 +1,25 @@
import itertools
+from functools import partial
from brap.graph import Graph, RegisteredNode
+
+def extract_edges_from_callable(*args, *kwargs):
+ """
+ This takes ... | Okay, in the last commit there was more than linting. | py |
diff --git a/dateparser/freshness_date_parser.py b/dateparser/freshness_date_parser.py
index <HASH>..<HASH> 100644
--- a/dateparser/freshness_date_parser.py
+++ b/dateparser/freshness_date_parser.py
@@ -128,8 +128,8 @@ class FreshnessDateDataParser(object):
td = relativedelta(**kwargs)
if (
... | fix prefer dates from to exclude wrong words | py |
diff --git a/esda/shape.py b/esda/shape.py
index <HASH>..<HASH> 100644
--- a/esda/shape.py
+++ b/esda/shape.py
@@ -162,7 +162,7 @@ def radii_ratio(collection):
The ratio of the radius of the equi-areal circle to the radius of the MBC
"""
r_eac = numpy.sqrt(pygeos.area(collection) / numpy.pi)
- r_mbc =... | Update esda/shape.py | py |
diff --git a/carto/sql.py b/carto/sql.py
index <HASH>..<HASH> 100644
--- a/carto/sql.py
+++ b/carto/sql.py
@@ -367,3 +367,15 @@ class CopySQLClient(object):
raise CartoException(e)
return response
+
+ def copyto_file_object(self, query, file_object):
+ if not isinstance(file_object, fi... | copyto_file_object and copyto_file_path methods | py |
diff --git a/astromodels/sources/extended_source.py b/astromodels/sources/extended_source.py
index <HASH>..<HASH> 100644
--- a/astromodels/sources/extended_source.py
+++ b/astromodels/sources/extended_source.py
@@ -168,7 +168,7 @@ class ExtendedSource(Source, Node):
# Clip the brightness to a lower boundary of... | Lowered the clip value for the flux from an extended source | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -60,7 +60,7 @@ Programming Language :: Python :: Implementation :: CPython
Topic :: Software Development :: Libraries :: Python Modules
""".splitlines())))
-INSTALL_REQUIRES = ['pyperclip >= 1.5.27', 'colorama']
+INSTALL_R... | Require ‘attrs’ | py |
diff --git a/padme/tests.py b/padme/tests.py
index <HASH>..<HASH> 100644
--- a/padme/tests.py
+++ b/padme/tests.py
@@ -74,6 +74,7 @@ class proxy_as_function(unittest.TestCase):
self.assertEqual(str(self.proxy), str(self.obj))
self.assertEqual(self.proxy.__str__(), str(self.obj))
+ @unittest.skipU... | Skip __bytes__ test on Python 2.x This patch makes tests skip the __bytes__ tests since they don't make any sense on Python 2 and the bytes() class is confusingly something entirely different than on Python 3. | py |
diff --git a/datalad_service/common/annex.py b/datalad_service/common/annex.py
index <HASH>..<HASH> 100644
--- a/datalad_service/common/annex.py
+++ b/datalad_service/common/annex.py
@@ -8,12 +8,16 @@ from datalad.support.exceptions import FileInGitError
SERVICE_EMAIL = 'git@openneuro.org'
SERVICE_USER = 'Git Worker'... | Speed up get_files if no branch change is required. | py |
diff --git a/timeparser.py b/timeparser.py
index <HASH>..<HASH> 100644
--- a/timeparser.py
+++ b/timeparser.py
@@ -1,4 +1,3 @@
-# coding: utf-8
import re
from datetime import timedelta | remove # coding: utf-8 | py |
diff --git a/ibis/expr/analysis.py b/ibis/expr/analysis.py
index <HASH>..<HASH> 100644
--- a/ibis/expr/analysis.py
+++ b/ibis/expr/analysis.py
@@ -416,9 +416,6 @@ class _PushdownValidate:
return lin.proceed, self._validate_projection(expr)
return lin.proceed, None
- if is_reductio... | refactor: remove dead branch in pushdown validation | py |
diff --git a/pandas/util/testing.py b/pandas/util/testing.py
index <HASH>..<HASH> 100644
--- a/pandas/util/testing.py
+++ b/pandas/util/testing.py
@@ -1310,7 +1310,12 @@ def assert_frame_equal(left, right, check_dtype=True,
5 digits (False) or 3 digits (True) after decimal points are compared.
If int,... | DOC: Clarify check_names in assert_frame_equal (#<I>) Explicitly state that the `names` attribute of `DataFrame.index` and `DataFrame.columns` are being compared. Closes gh-<I>. | py |
diff --git a/gstreamer.py b/gstreamer.py
index <HASH>..<HASH> 100644
--- a/gstreamer.py
+++ b/gstreamer.py
@@ -2,9 +2,11 @@ from __future__ import with_statement
import gst
import gtk
+import time
import pygst
-import threading
import gobject
+import datetime
+import threading
from maried.core import Module, E... | gstreamer: bugfix: forgot "import datetime, time" | py |
diff --git a/groupy/api/base.py b/groupy/api/base.py
index <HASH>..<HASH> 100644
--- a/groupy/api/base.py
+++ b/groupy/api/base.py
@@ -23,7 +23,7 @@ class Resource:
def __getattr__(self, attr):
if attr not in self.data:
- error_message = '{!s} resources do not have a {!r} field'
+ ... | Give a more accurate resource field error message | py |
diff --git a/tests/test_api.py b/tests/test_api.py
index <HASH>..<HASH> 100644
--- a/tests/test_api.py
+++ b/tests/test_api.py
@@ -16,7 +16,7 @@ class TestAPI(object):
self.app = app.test_client()
self.app.testing = True
- self.app.post('/do-login', data={'password': 'dagobah'})
+ self... | Fix hardcoded password value in API tests | py |
diff --git a/sos/report/plugins/auditd.py b/sos/report/plugins/auditd.py
index <HASH>..<HASH> 100644
--- a/sos/report/plugins/auditd.py
+++ b/sos/report/plugins/auditd.py
@@ -33,9 +33,23 @@ class Auditd(Plugin, IndependentPlugin):
"auditctl -l"
])
+ config_file = "/etc/audit/auditd.conf"
... | [auditd] Capture log files when configured to a non default location The location of the audit.log files can be changed in the configuration file /etc/audit/audit.conf. This change ensures that we capture the log files when the user specifies a different location via log_file. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -29,9 +29,9 @@ setup(name = 'trimesh',
author_email='mik3dh@gmail.com',
license = 'MIT',
url='http://github.com/mikedh/trimesh',
- keywords = 'graphics mesh geometry',
+ keywords = 'graphics mesh... | changed development status from alpha -> beta | py |
diff --git a/python/ray/tune/trial.py b/python/ray/tune/trial.py
index <HASH>..<HASH> 100644
--- a/python/ray/tune/trial.py
+++ b/python/ray/tune/trial.py
@@ -30,7 +30,7 @@ from ray.tune.result import (DEFAULT_RESULTS_DIR, DONE, HOSTNAME, PID,
from ray.utils import binary_to_hex, hex_to_binary
DEBUG_PRINT_INTERVAL ... | [tune] configurable maximum length of trial identifier (#<I>) | py |
diff --git a/_pydev_bundle/pydev_ipython_console.py b/_pydev_bundle/pydev_ipython_console.py
index <HASH>..<HASH> 100644
--- a/_pydev_bundle/pydev_ipython_console.py
+++ b/_pydev_bundle/pydev_ipython_console.py
@@ -3,8 +3,6 @@ from _pydev_bundle.pydev_console_utils import BaseInterpreterInterface
import os
-os.env... | tput: unknown terminal "emacs" (PY-<I>) Do not set "TERM" variable to emacs, because sometimes it isn't supported and may lead to errors. Also it doesn't fix problems with paging in IPython and this bug should be fixed properly: PY-<I> (cherry picked from commit 5fb<I>ab) | py |
diff --git a/cirq/experiments/grid_parallel_two_qubit_xeb.py b/cirq/experiments/grid_parallel_two_qubit_xeb.py
index <HASH>..<HASH> 100644
--- a/cirq/experiments/grid_parallel_two_qubit_xeb.py
+++ b/cirq/experiments/grid_parallel_two_qubit_xeb.py
@@ -492,7 +492,8 @@ def _get_xeb_result(qubit_pair: GridQubitPair, circui... | Fix np.pad issue in numpy <I> (#<I>) Cirq minimum requirement for numpy is <I>. In <I>, the mode parameter for np.pad is required. (It was changed to optional in numpy <I>). Add this parameter in with the default value to support numpy <I>. | py |
diff --git a/protos/scope/javagen/extension.py b/protos/scope/javagen/extension.py
index <HASH>..<HASH> 100644
--- a/protos/scope/javagen/extension.py
+++ b/protos/scope/javagen/extension.py
@@ -70,7 +70,7 @@ def java(ui, services, out, **kwargs):
except IOError, e:
raise ProgramError('Cannot open... | Removing more superfluous code | py |
diff --git a/pyblish_lite/model.py b/pyblish_lite/model.py
index <HASH>..<HASH> 100644
--- a/pyblish_lite/model.py
+++ b/pyblish_lite/model.py
@@ -469,7 +469,7 @@ class Terminal(Abstract):
def update_with_result(self, result):
for record in result["records"]:
self.append({
- "l... | Use formatted logging record in terminal. | py |
diff --git a/_pydevd_bundle/pydevd_comm.py b/_pydevd_bundle/pydevd_comm.py
index <HASH>..<HASH> 100644
--- a/_pydevd_bundle/pydevd_comm.py
+++ b/_pydevd_bundle/pydevd_comm.py
@@ -563,7 +563,7 @@ class NetCommandFactory:
cmd_text = ["<xml>"]
append = cmd_text.append
for i in t:
- ... | Thread list command rises exception since getting checking is alive command for a list(t). | py |
diff --git a/spyderlib/utils/iofuncs.py b/spyderlib/utils/iofuncs.py
index <HASH>..<HASH> 100644
--- a/spyderlib/utils/iofuncs.py
+++ b/spyderlib/utils/iofuncs.py
@@ -22,10 +22,13 @@ import warnings
import json
import inspect
import dis
+
+# If pandas fails to import here (for any reason), Spyder
+# will crash ... | Avoid startup crashes because of errors when importing Pandas Fixes #<I> | py |
diff --git a/tests/test_metadata.py b/tests/test_metadata.py
index <HASH>..<HASH> 100644
--- a/tests/test_metadata.py
+++ b/tests/test_metadata.py
@@ -306,6 +306,9 @@ def test_kodak_toc(resources, outpdf):
assert isinstance(p.Root.Outlines.First, pikepdf.Dictionary)
+@pytest.mark.skipif(
+ pikepdf.__ver... | tests: skip metadata test for two pikepdf versions that warn incorrectly | py |
diff --git a/discord/ext/commands/help.py b/discord/ext/commands/help.py
index <HASH>..<HASH> 100644
--- a/discord/ext/commands/help.py
+++ b/discord/ext/commands/help.py
@@ -931,7 +931,7 @@ class DefaultHelpCommand(HelpCommand):
def shorten_text(self, text):
""":class:`str`: Shortens text to fit into the... | [commands] Strip text to remove spaces before ellipsis | py |
diff --git a/pescador/core.py b/pescador/core.py
index <HASH>..<HASH> 100644
--- a/pescador/core.py
+++ b/pescador/core.py
@@ -93,20 +93,20 @@ class Streamer(object):
self.stream_ = None
@property
- def is_active(self):
+ def active(self):
"""Returns true if the stream is active
... | * Removed copypasta 'max_batches'\n* removed extraneous from . | py |
diff --git a/lib/svtplay_dl/service/viaplay.py b/lib/svtplay_dl/service/viaplay.py
index <HASH>..<HASH> 100644
--- a/lib/svtplay_dl/service/viaplay.py
+++ b/lib/svtplay_dl/service/viaplay.py
@@ -82,7 +82,7 @@ class Viaplay(Service, OpenGraphThumbMixin):
if clips:
return episodenr
... | Viaplay: Fix regexp for JSON episode data extraction | py |
diff --git a/examples/run_pplm.py b/examples/run_pplm.py
index <HASH>..<HASH> 100644
--- a/examples/run_pplm.py
+++ b/examples/run_pplm.py
@@ -347,13 +347,6 @@ def get_bag_of_words_indices(bag_of_words_ids_or_paths: List[str]) -> List[
bow_indices.append(
[TOKENIZER.encode(word.strip(), add_prefix... | Removed commented code. Identical output as before. | py |
diff --git a/multigtfs/tests/route.py b/multigtfs/tests/route.py
index <HASH>..<HASH> 100644
--- a/multigtfs/tests/route.py
+++ b/multigtfs/tests/route.py
@@ -89,7 +89,7 @@ AB,DTA,10,Airport - Bullfrog,"Our Airport Route", 3,http://example.com,\
feed=self.feed, route_id='AB', short_name='10',
... | assertEquals -> assertEqual | py |
diff --git a/nodeconductor/structure/admin.py b/nodeconductor/structure/admin.py
index <HASH>..<HASH> 100644
--- a/nodeconductor/structure/admin.py
+++ b/nodeconductor/structure/admin.py
@@ -321,10 +321,10 @@ class ServiceAdmin(admin.ModelAdmin):
class ServiceProjectLinkAdmin(admin.ModelAdmin):
readonly_fields = ... | Allow sort and search per settings name [WAL-<I>] | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -56,7 +56,8 @@ setup(
'WEB': ['bottle'],
'SENSORS': ['py3sensors'],
'BATINFO': ['batinfo'],
- 'SNMP': ['pysnmp']
+ 'SNMP': ['pysnmp'],
+ 'CHART': ['matplotlib']
},
pack... | Add dep in the setup.py file | py |
diff --git a/penaltymodel_cache/setup.py b/penaltymodel_cache/setup.py
index <HASH>..<HASH> 100644
--- a/penaltymodel_cache/setup.py
+++ b/penaltymodel_cache/setup.py
@@ -11,7 +11,7 @@ if _PY2:
else:
exec(open("./penaltymodel/cache/package_info.py").read())
-install_requires = ['penaltymodel>=0.15.0,<0.16.0',
+... | Bump up upperbound of cache's penaltymodel version | py |
diff --git a/claripy/operations.py b/claripy/operations.py
index <HASH>..<HASH> 100644
--- a/claripy/operations.py
+++ b/claripy/operations.py
@@ -442,10 +442,6 @@ def extract_simplifier(high, low, val):
else:
return ast.BV('Extract', (new_high, low_loc, self), length=(new_high - low_loc +... | remove optimization that is now handled by the If excavation | py |
diff --git a/bogo/valid_vietnamese.py b/bogo/valid_vietnamese.py
index <HASH>..<HASH> 100644
--- a/bogo/valid_vietnamese.py
+++ b/bogo/valid_vietnamese.py
@@ -46,7 +46,7 @@ CLOSED_COMPOUND_VOWELS = [
u'âu', u'ây', #u'au',
u'eo',
u'êu', u'eu',
- u'ia', u'iu', u'iêu',
+ u'ia', u'iu', u'iêu', u'ieu',
... | Accept the closed-compound 'ieu'. Fix #8 | py |
diff --git a/polyaxon/api/build_jobs/serializers.py b/polyaxon/api/build_jobs/serializers.py
index <HASH>..<HASH> 100644
--- a/polyaxon/api/build_jobs/serializers.py
+++ b/polyaxon/api/build_jobs/serializers.py
@@ -59,6 +59,7 @@ class BuildJobDetailSerializer(BuildJobSerializer):
'resources',
... | Add dockerfile to build details endpoint | py |
diff --git a/gcloud/bigquery/test_table.py b/gcloud/bigquery/test_table.py
index <HASH>..<HASH> 100644
--- a/gcloud/bigquery/test_table.py
+++ b/gcloud/bigquery/test_table.py
@@ -1397,9 +1397,9 @@ class TestTable(unittest2.TestCase, _SchemaBase):
{'Content-Type': 'application/octet-stream',
... | Strips multipart messages in BigQuery before comparing. Fixes #<I>. H/T to @cyluss | py |
diff --git a/openquake/calculators/ucerf_classical.py b/openquake/calculators/ucerf_classical.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/ucerf_classical.py
+++ b/openquake/calculators/ucerf_classical.py
@@ -414,14 +414,11 @@ def ucerf_classical_hazard_by_branch(branchnames, ucerf_source, src_group_id,
... | Generated hcurves and stats | py |
diff --git a/MAVProxy/modules/mavproxy_paramedit/param_editor.py b/MAVProxy/modules/mavproxy_paramedit/param_editor.py
index <HASH>..<HASH> 100644
--- a/MAVProxy/modules/mavproxy_paramedit/param_editor.py
+++ b/MAVProxy/modules/mavproxy_paramedit/param_editor.py
@@ -95,6 +95,7 @@ class ParamEditorMain(object):
... | paramedit: set needs_unloading earlier | py |
diff --git a/salt/modules/apt.py b/salt/modules/apt.py
index <HASH>..<HASH> 100644
--- a/salt/modules/apt.py
+++ b/salt/modules/apt.py
@@ -845,7 +845,7 @@ def mod_repo(repo, refresh=False, **kwargs):
)
elif 'key_url' in kwargs:
key_url = kwargs.pop('key_url', N... | wrap web_url in quote before pass to wget | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -67,9 +67,9 @@ author = u'RJ Garcia'
# built documents.
#
# The short X.Y version.
-version = u'0.2'
+version = u'0.3'
# The full version, including alpha/beta/rc tags.
-release = u'0.2.0'
+release = u'0.3.... | Preparing <I> release | py |
diff --git a/reference/cwltool/cwltest.py b/reference/cwltool/cwltest.py
index <HASH>..<HASH> 100755
--- a/reference/cwltool/cwltest.py
+++ b/reference/cwltool/cwltest.py
@@ -104,7 +104,10 @@ def run_test(args, i, t):
_logger.warn("""Test failed: %s""", " ".join([pipes.quote(tc) for tc in test_command]... | Bugfix: fix typo in output on test failure | py |
diff --git a/pyecobee/__init__.py b/pyecobee/__init__.py
index <HASH>..<HASH> 100644
--- a/pyecobee/__init__.py
+++ b/pyecobee/__init__.py
@@ -222,12 +222,17 @@ class Ecobee(object):
log_msg_action = "set fan minimum on time."
return self.make_request(body, log_msg_action)
- def set_fan_mode(self... | refactor set_fan_mode | py |
diff --git a/test_twarc.py b/test_twarc.py
index <HASH>..<HASH> 100644
--- a/test_twarc.py
+++ b/test_twarc.py
@@ -146,8 +146,7 @@ def test_follow():
"23484039", # WSJbreakingnews
"384438102", # ABCNewsLive
"15108702", # ReutersLive
- "87416722", # SkyNewsBreak
- "267... | ajelive is not live anymore | py |
diff --git a/salt/daemons/masterapi.py b/salt/daemons/masterapi.py
index <HASH>..<HASH> 100644
--- a/salt/daemons/masterapi.py
+++ b/salt/daemons/masterapi.py
@@ -460,6 +460,7 @@ class RemoteFuncs(object):
mopts['renderer'] = self.opts['renderer']
mopts['failhard'] = self.opts['failhard']
mop... | Add raet support for state_top_saltnev | py |
diff --git a/instaloader/instaloader.py b/instaloader/instaloader.py
index <HASH>..<HASH> 100644
--- a/instaloader/instaloader.py
+++ b/instaloader/instaloader.py
@@ -643,7 +643,7 @@ class Instaloader:
'{0}/{1}_id'.format(self.dirname_pattern.format(), newname.lower()))
r... | Handle ValueError on bad profile id file Fixes "ValueError: invalid literal for int() with base <I>: b''", reported in #<I>. | py |
diff --git a/simple_settings/core.py b/simple_settings/core.py
index <HASH>..<HASH> 100644
--- a/simple_settings/core.py
+++ b/simple_settings/core.py
@@ -18,10 +18,10 @@ class _Settings(object):
self._load_settings_module()
def _get_settings_from_cmd_line(self):
- for a in sys.argv:
- ... | rename loop variable a to arg (pylint invalid name) | py |
diff --git a/zipline/data/history_loader.py b/zipline/data/history_loader.py
index <HASH>..<HASH> 100644
--- a/zipline/data/history_loader.py
+++ b/zipline/data/history_loader.py
@@ -415,11 +415,15 @@ class HistoryLoader(with_metaclass(ABCMeta)):
array = array.astype(float64_dtype)
for i... | MAINT: Prevent hiding of KeyError in adjustments. If a KeyError occurred in the adjustment logic, the exception would be swallowed by the try block, which was intended to just check whether or not there was an adjustment reader adjusted. Discovered when some logic in a futures adjustment reader were failing because o... | py |
diff --git a/MAVProxy/tools/mavflightview.py b/MAVProxy/tools/mavflightview.py
index <HASH>..<HASH> 100755
--- a/MAVProxy/tools/mavflightview.py
+++ b/MAVProxy/tools/mavflightview.py
@@ -120,7 +120,7 @@ def colourmap_for_mav_type(mav_type):
if mav_type == mavutil.mavlink.MAV_TYPE_SUBMARINE:
map = colour_m... | mavflightview: fix print warning | py |
diff --git a/khard/address_book.py b/khard/address_book.py
index <HASH>..<HASH> 100644
--- a/khard/address_book.py
+++ b/khard/address_book.py
@@ -67,13 +67,7 @@ class AddressBook(metaclass=abc.ABCMeta):
:returns: the length of the shortes unequal initial substrings
:rtype: int
"""
- s... | Use stdlib to compare uids The os.path library provides a function to compare prefixes that can be used instead of the custom code. | py |
diff --git a/jf_agent/main.py b/jf_agent/main.py
index <HASH>..<HASH> 100644
--- a/jf_agent/main.py
+++ b/jf_agent/main.py
@@ -5,7 +5,6 @@ import os
import re
import shutil
import subprocess
-import sys
import threading
from collections import namedtuple
from datetime import datetime
@@ -401,6 +400,14 @@ def obta... | [OJ-<I>] Validate S3 bucket prefix returned from API | py |
diff --git a/pymatgen/core/trajectory.py b/pymatgen/core/trajectory.py
index <HASH>..<HASH> 100644
--- a/pymatgen/core/trajectory.py
+++ b/pymatgen/core/trajectory.py
@@ -126,6 +126,19 @@ class Trajectory(MSONable):
lattice = [structure.lattice.matrix for structure in structures]
site_properties =... | Added from file method for XDATCAR and vasprun.xml files | py |
diff --git a/zengine/views/crud.py b/zengine/views/crud.py
index <HASH>..<HASH> 100644
--- a/zengine/views/crud.py
+++ b/zengine/views/crud.py
@@ -201,10 +201,11 @@ class CrudView(BaseView):
class ObjectForm(forms.JsonForm):
save_edit = fields.Button("Kaydet", cmd="save::add_edit_form")
save_list... | CHANGE bind "save as new" button to DEBUG flag | py |
diff --git a/python-package/lightgbm/libpath.py b/python-package/lightgbm/libpath.py
index <HASH>..<HASH> 100644
--- a/python-package/lightgbm/libpath.py
+++ b/python-package/lightgbm/libpath.py
@@ -34,5 +34,6 @@ def find_lib_path() -> List[str]:
lib_path = [p for p in dll_path if os.path.exists(p) and os.path.isf... | [ci] use f-strings in libpath.py (#<I>) | py |
diff --git a/runway/module/cdk.py b/runway/module/cdk.py
index <HASH>..<HASH> 100644
--- a/runway/module/cdk.py
+++ b/runway/module/cdk.py
@@ -122,7 +122,7 @@ class CloudDevelopmentKit(RunwayModuleNpm):
self.logger.info("build steps (complete)")
cdk_context_opts: List[str] ... | cdk: change `-c` to `--context` to prevent conflict with `npx -c ...` (#<I>) | py |
diff --git a/warc/arc.py b/warc/arc.py
index <HASH>..<HASH> 100644
--- a/warc/arc.py
+++ b/warc/arc.py
@@ -178,7 +178,6 @@ class ARCRecord(object):
return cls(header = arc_header, payload = payload)
def write_to(self, f, version = 2):
- f.write("\n")
self.header.write_to(f, version)
... | Changed arc.py to write alexa conformant arc records | py |
diff --git a/bokeh/models/tests/test_annotations.py b/bokeh/models/tests/test_annotations.py
index <HASH>..<HASH> 100644
--- a/bokeh/models/tests/test_annotations.py
+++ b/bokeh/models/tests/test_annotations.py
@@ -128,6 +128,7 @@ def test_Span():
assert line.x_range_name == 'default'
assert line.y_range_name... | update tests to cover render_mode prop | py |
diff --git a/pathvalidate/_interface.py b/pathvalidate/_interface.py
index <HASH>..<HASH> 100644
--- a/pathvalidate/_interface.py
+++ b/pathvalidate/_interface.py
@@ -10,6 +10,7 @@ import abc
from ._common import validate_null_string
from ._six import add_metaclass
+from .error import ValidationError
@add_meta... | Add is_valid method for file sanitizer classes | py |
diff --git a/scripts/ci/images/ci_run_docker_tests.py b/scripts/ci/images/ci_run_docker_tests.py
index <HASH>..<HASH> 100755
--- a/scripts/ci/images/ci_run_docker_tests.py
+++ b/scripts/ci/images/ci_run_docker_tests.py
@@ -87,10 +87,7 @@ def main():
if not extra_pytest_args:
raise SystemExit("You must sel... | Add color to pytest tests on CI (#<I>) While GitHub CI supports coloured output, the programs cannot detect it properly because the output is redirected. Similarly as in all other cases we force the color output. | py |
diff --git a/picotui/editorext.py b/picotui/editorext.py
index <HASH>..<HASH> 100644
--- a/picotui/editorext.py
+++ b/picotui/editorext.py
@@ -49,6 +49,27 @@ class Viewer(Editor):
return True
+# Viewer with colored lines, (whole line same color)
+class LineColorViewer(Viewer):
+
+ def show_line(self... | editorext: Add LineColorViewer widget. Viewer with colored lines, (whole line same color). | py |
diff --git a/admirarchy/utils.py b/admirarchy/utils.py
index <HASH>..<HASH> 100644
--- a/admirarchy/utils.py
+++ b/admirarchy/utils.py
@@ -289,7 +289,7 @@ class AdjacencyList(Hierarchy):
continue
try:
- setattr(item, self.CHILD_COUNT_MODEL_ATTR, stats[item.id])
+ ... | id replacement by pk | py |
diff --git a/spyderlib/utils/programs.py b/spyderlib/utils/programs.py
index <HASH>..<HASH> 100644
--- a/spyderlib/utils/programs.py
+++ b/spyderlib/utils/programs.py
@@ -185,9 +185,8 @@ def is_module_installed(module_name, version=None):
assert symb in ('>=', '>', '='),\
"Invalid vers... | Bugfix: IPython plugin was broken since revision 1bc0db<I>e<I> due to a regression in the module/version detection function | py |
diff --git a/djcelery/admin.py b/djcelery/admin.py
index <HASH>..<HASH> 100644
--- a/djcelery/admin.py
+++ b/djcelery/admin.py
@@ -16,7 +16,7 @@ from celery import current_app
from celery import states
from celery import registry
from celery.task.control import broadcast, revoke, rate_limit
-from celery.utils.text i... | should not have made that merge, its not compatible with <I> | py |
diff --git a/gbdxtools/ipe/vrt.py b/gbdxtools/ipe/vrt.py
index <HASH>..<HASH> 100644
--- a/gbdxtools/ipe/vrt.py
+++ b/gbdxtools/ipe/vrt.py
@@ -6,6 +6,11 @@ import os.path
import json
from itertools import product
+try:
+ xrange
+except NameError:
+ xrange = range
+
from gbdxtools.ipe.graph import VIRTUAL_IPE... | fixing xrange usage in vrt.py for python 3.x | py |
diff --git a/filer/__init__.py b/filer/__init__.py
index <HASH>..<HASH> 100644
--- a/filer/__init__.py
+++ b/filer/__init__.py
@@ -1,6 +1,6 @@
"""
django-filer - file and image management for django projects
"""
-VERSION = (0,5,4,'a1')
-__version__ = "0.5.4a1"
+VERSION = (0,6,2,'a1')
+__version__ = "0.6.2a1"
__auth... | pushed broken package. version bump to correct mistake | py |
diff --git a/exchangelib/services.py b/exchangelib/services.py
index <HASH>..<HASH> 100644
--- a/exchangelib/services.py
+++ b/exchangelib/services.py
@@ -939,9 +939,10 @@ class GetAttachment(EWSAccountService):
payload = create_element('m:%s' % self.SERVICE_NAME)
# TODO: Support additional properties... | Only emit AttachmentShape if it has content | py |
diff --git a/kubespawner/utils.py b/kubespawner/utils.py
index <HASH>..<HASH> 100644
--- a/kubespawner/utils.py
+++ b/kubespawner/utils.py
@@ -4,6 +4,8 @@ Misc. general utility functions, not tied to Kubespawner directly
import random
import hashlib
+from traitlets import TraitType
+
def generate_hashed_slug(slug,... | Re-add missing Callable Missed in the merging | py |
diff --git a/abydos/distance.py b/abydos/distance.py
index <HASH>..<HASH> 100644
--- a/abydos/distance.py
+++ b/abydos/distance.py
@@ -1652,6 +1652,9 @@ def dist_bag(src, tar):
return bag(src, tar)/maxlen
+
+################################################################################
+
def sim(src, tar, m... | division line between specific methods & generic sim/dist functions | py |
diff --git a/satpy/resample.py b/satpy/resample.py
index <HASH>..<HASH> 100644
--- a/satpy/resample.py
+++ b/satpy/resample.py
@@ -802,6 +802,8 @@ class BilinearResampler(BaseResampler):
if val == 'valid_input_index':
# valid input index array needs to be boolean
... | Force resample cache to be loaded in memory for bilinear resampler | 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
@@ -234,8 +234,8 @@ htmlhelp_basename = 'NWCSAFMSGPPdoc'
# Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title, author, documentclass [how... | Remove unnecessary unicode strings in doc/source/conf.py | py |
diff --git a/theanets/graph.py b/theanets/graph.py
index <HASH>..<HASH> 100644
--- a/theanets/graph.py
+++ b/theanets/graph.py
@@ -314,6 +314,7 @@ class Network(object):
out, upd = layer.connect(outputs, noise, dropout)
outputs.update(out)
updates.extend(upd)
+ ... | Add a convenience alias for 'out' in graph outputs. | py |
diff --git a/cppman/main.py b/cppman/main.py
index <HASH>..<HASH> 100644
--- a/cppman/main.py
+++ b/cppman/main.py
@@ -294,7 +294,7 @@ class Cppman(Crawler):
'LIKE "%%%s%%" ORDER BY LENGTH(name)'
% (environ.source, pattern)).fetchall()
- pat = re.compile('(%s)' % pattern, re.I)
+ ... | Fix: search cppman with regex symbols cppman -f "C++" didn't work. This adds escape sequences to the search pattern. | py |
diff --git a/fireplace/actions.py b/fireplace/actions.py
index <HASH>..<HASH> 100644
--- a/fireplace/actions.py
+++ b/fireplace/actions.py
@@ -416,7 +416,7 @@ class TargetedAction(Action):
source = source[0]
times = self.times
- if isinstance(times, LazyNum):
+ if isinstance(times, LazyValue):
times = ti... | Check for LazyValue instead of LazyNum in action times iteration | py |
diff --git a/taskcluster/client.py b/taskcluster/client.py
index <HASH>..<HASH> 100644
--- a/taskcluster/client.py
+++ b/taskcluster/client.py
@@ -524,8 +524,8 @@ def createTemporaryCredentials(clientId, accessToken, start, expiry, scopes, nam
clientId: the issuing clientId
accessToken: the issuer's accessT... | createTemporaryCredentials takes datetime objects Also remove some unused code | py |
diff --git a/properties/base.py b/properties/base.py
index <HASH>..<HASH> 100644
--- a/properties/base.py
+++ b/properties/base.py
@@ -235,9 +235,9 @@ class HasProperties(with_metaclass(PropertyMetaclass, object)):
rcl=json_dict['__class__'], cl=cls.__name__
), RuntimeWarni... | Prevent modification of dictionary during deserialization | py |
diff --git a/tests/test_orphanet.py b/tests/test_orphanet.py
index <HASH>..<HASH> 100644
--- a/tests/test_orphanet.py
+++ b/tests/test_orphanet.py
@@ -60,7 +60,7 @@ class GeneVariantDiseaseTest(unittest.TestCase):
ENSEMBL:ENSG00000166813 a owl:Class .
-<http://identifiers.org/hgnc/HGNC:30497> a owl:Class .
+HGNC:3... | prefer curies in unit tests to avoid failures when curie_map is changed | py |
diff --git a/datatableview/datatables.py b/datatableview/datatables.py
index <HASH>..<HASH> 100644
--- a/datatableview/datatables.py
+++ b/datatableview/datatables.py
@@ -645,10 +645,13 @@ class Datatable(six.with_metaclass(DatatableMetaclass)):
else:
num_total = len(base_objects)
- if is... | Avoid issuing COUNT for filtered queryset if no filters are present | py |
diff --git a/girder/utility/server.py b/girder/utility/server.py
index <HASH>..<HASH> 100644
--- a/girder/utility/server.py
+++ b/girder/utility/server.py
@@ -135,14 +135,14 @@ def configureServer(test=False, plugins=None, curConfig=None):
# Make the staticRoot relative to the api_root, if possible. The api_root
... | Fix a typo in a comment. Switch case for consistency. | py |
diff --git a/modeltranslation/manager.py b/modeltranslation/manager.py
index <HASH>..<HASH> 100644
--- a/modeltranslation/manager.py
+++ b/modeltranslation/manager.py
@@ -8,8 +8,8 @@ https://github.com/zmathew/django-linguo
import itertools
from django.contrib.admin.utils import get_model_from_relation
+from django... | correct FieldDoesNotExist exception import; will break in dev Django release | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.