diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/dcor/tests/test_dcor.py b/dcor/tests/test_dcor.py
index <HASH>..<HASH> 100644
--- a/dcor/tests/test_dcor.py
+++ b/dcor/tests/test_dcor.py
@@ -1,3 +1,4 @@
+import re
import unittest
import dcor
@@ -8,7 +9,8 @@ import numpy as np
class TestVersion(unittest.TestCase):
def test_version(self):
- ... | Replaced assertRegex because it does not exist in Python 2 | py |
diff --git a/trytravis.py b/trytravis.py
index <HASH>..<HASH> 100644
--- a/trytravis.py
+++ b/trytravis.py
@@ -71,6 +71,8 @@ _USAGE = ('usage: trytravis [command]?\n'
'submitting an issue.\n'
' --repo, -r [repo]? Tells the program you wish to setup '
'your building repository.\n'
+ ... | Update trytravis.py Added help and fixed long line. | py |
diff --git a/sos/plugins/logrotate.py b/sos/plugins/logrotate.py
index <HASH>..<HASH> 100644
--- a/sos/plugins/logrotate.py
+++ b/sos/plugins/logrotate.py
@@ -24,6 +24,7 @@ class LogRotate(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin):
self.add_copy_spec([
"/etc/logrotate*",
"/var... | [logrotate] fix path for logrotate.status in RHEL7/CentOS7 In RHEL7/CentOS7 logrotate.status is placed in /var/lib/logrotate rather then directly in /var/lib. Resolves: #<I> | py |
diff --git a/share/test.py b/share/test.py
index <HASH>..<HASH> 100644
--- a/share/test.py
+++ b/share/test.py
@@ -140,8 +140,8 @@ class TestF2format(unittest.TestCase):
tmp_file = os.path.join(tempdir, 'temp.py')
with open(tmp_file, 'w') as file:
print('b = 1', file=file)
- ... | Fix bug in share/test.py | py |
diff --git a/tests/test_backends.py b/tests/test_backends.py
index <HASH>..<HASH> 100644
--- a/tests/test_backends.py
+++ b/tests/test_backends.py
@@ -38,7 +38,7 @@ from grimoire_elk.utils import get_connectors, get_elastic
CONFIG_FILE = 'tests.conf'
-NUMBER_BACKENDS = 28
+NUMBER_BACKENDS = 30
DB_SORTINGHAT = "te... | [tests] Support that the total number of enriched items is not returned | py |
diff --git a/pysc2/lib/protocol.py b/pysc2/lib/protocol.py
index <HASH>..<HASH> 100644
--- a/pysc2/lib/protocol.py
+++ b/pysc2/lib/protocol.py
@@ -133,8 +133,12 @@ class StarcraftProtocol(object):
The Response corresponding to your request.
"""
assert len(kwargs) == 1, "Must make a single request."
- ... | Include what request caused the ConnectionError. PiperOrigin-RevId: <I> | py |
diff --git a/photutils/background/tests/test_background_2d.py b/photutils/background/tests/test_background_2d.py
index <HASH>..<HASH> 100644
--- a/photutils/background/tests/test_background_2d.py
+++ b/photutils/background/tests/test_background_2d.py
@@ -17,6 +17,13 @@ try:
except ImportError:
HAS_SCIPY = False
... | Skip background test if matplotlib is not installed | py |
diff --git a/scout/ext/backend/utils/build_mongo_query.py b/scout/ext/backend/utils/build_mongo_query.py
index <HASH>..<HASH> 100644
--- a/scout/ext/backend/utils/build_mongo_query.py
+++ b/scout/ext/backend/utils/build_mongo_query.py
@@ -55,12 +55,13 @@ def build_query(case_id, query=None, variant_ids=None):
... | don't filter out variants with no ExAC frequency | py |
diff --git a/numina/recipes/requirements.py b/numina/recipes/requirements.py
index <HASH>..<HASH> 100644
--- a/numina/recipes/requirements.py
+++ b/numina/recipes/requirements.py
@@ -83,7 +83,7 @@ class DataProductParameter(Parameter):
if self.name in params:
# FIXME: add validation
r... | Changed "soft" by "optional" | py |
diff --git a/graphene_django_extras/types.py b/graphene_django_extras/types.py
index <HASH>..<HASH> 100644
--- a/graphene_django_extras/types.py
+++ b/graphene_django_extras/types.py
@@ -208,7 +208,7 @@ class DjangoListObjectType(ObjectType):
if not baseType:
baseType = object_type_factory(Dja... | DjangoListObjectType should now honor only_fields. | py |
diff --git a/indra/assemblers/html/assembler.py b/indra/assemblers/html/assembler.py
index <HASH>..<HASH> 100644
--- a/indra/assemblers/html/assembler.py
+++ b/indra/assemblers/html/assembler.py
@@ -576,7 +576,8 @@ def id_url(ag):
# Return identifier URLs in a prioritized order
for db_name in ('FPLX', 'HGNC',... | Add additionl name spaces for linking out | py |
diff --git a/scriptworker/worker.py b/scriptworker/worker.py
index <HASH>..<HASH> 100644
--- a/scriptworker/worker.py
+++ b/scriptworker/worker.py
@@ -43,7 +43,7 @@ async def run_loop(context, creds_key="credentials"):
loop = asyncio.get_event_loop()
tasks = await claim_work(context)
status = None
- i... | We should sleep if we get no tasks returned from claim_work | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -39,7 +39,7 @@ master_doc = 'index'
# General information about the project.
project = u'opsutils'
-copyright = u'2010, OpsDojo Inc.'
+copyright = u'2010, OpsDojo Inc'
# The version info for the project ... | Fix copyright/author text (shouldn't have trailing period) | py |
diff --git a/openquake/calculators/event_based.py b/openquake/calculators/event_based.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/event_based.py
+++ b/openquake/calculators/event_based.py
@@ -23,7 +23,6 @@ import itertools
import logging
import collections
import mock
-import h5py
import numpy
fro... | Removed unused export [skip CI] | py |
diff --git a/tests/runtests.py b/tests/runtests.py
index <HASH>..<HASH> 100755
--- a/tests/runtests.py
+++ b/tests/runtests.py
@@ -18,7 +18,7 @@ except ImportError:
TEST_DIR = os.path.dirname(os.path.normpath(os.path.abspath(__file__)))
-PNUM = 50
+PNUM = 70
def run_suite(opts, path, display_name, suffix='[!_... | Minor cosmetic change while running tests. Make the salt's printed `~~` lines match the length of the `--` printed lines from unittest. | py |
diff --git a/juicer/utils/__init__.py b/juicer/utils/__init__.py
index <HASH>..<HASH> 100644
--- a/juicer/utils/__init__.py
+++ b/juicer/utils/__init__.py
@@ -338,6 +338,11 @@ def save_url_as(url, save_as):
remote = requests.get(url, verify=False)
+ if not remote.status_code == Constants.PULP_GET_OK:
+ ... | make save_url_as bail out if the url isn't good | py |
diff --git a/ldap_sync/management/commands/syncldap.py b/ldap_sync/management/commands/syncldap.py
index <HASH>..<HASH> 100644
--- a/ldap_sync/management/commands/syncldap.py
+++ b/ldap_sync/management/commands/syncldap.py
@@ -11,6 +11,7 @@ from django.contrib.auth.models import Group
from django.core.exceptions impor... | Add custom callbacks for each processed user | py |
diff --git a/tchannel/tornado/dispatch.py b/tchannel/tornado/dispatch.py
index <HASH>..<HASH> 100644
--- a/tchannel/tornado/dispatch.py
+++ b/tchannel/tornado/dispatch.py
@@ -26,6 +26,7 @@ from collections import namedtuple
import tornado
import tornado.gen
from tornado import gen
+from tornado.iostream import Strea... | Log all response write errors except StreamClosedErorrs This fixes yet another "Future exception was never retrieved" issue. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -13,7 +13,7 @@ setup(
long_description="""Python interface to the Mesos Marathon REST API.""",
author='Mike Babineau',
author_email='michael.babineau@gmail.com',
- install_requires=['requests>=2.0.0', 'ssecli... | Removed unused sseclient depencency | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -6,9 +6,15 @@ setup.py
Setup the Keyring Lib for Python.
"""
+import sys
from distutils.core import setup, Extension
+
from extensions import get_extensions
+if sys.version_info[:2] < (2, 6):
+ sys.exit("Python 2.6 ... | setup.py now checks python version. | py |
diff --git a/greenhouse/scheduler.py b/greenhouse/scheduler.py
index <HASH>..<HASH> 100644
--- a/greenhouse/scheduler.py
+++ b/greenhouse/scheduler.py
@@ -437,19 +437,23 @@ def handle_exception(klass, exc, tb):
:param tb: the traceback object
:type tb: Traceback
"""
- _purge_exception_handlers()
+ ... | drop exception handlers that raise exceptions themselves | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -42,10 +42,10 @@ intersphinx_mapping = {
'scipy': ('https://docs.scipy.org/doc/scipy/reference/', None),
}
-# nitpick_ignore = [
-# ('py:mod', 'symfit'),
-# ('py:mod', 'scipy')
-# ]
+nitpick_ign... | Enabled nitpick ignore for some packages | py |
diff --git a/km3pipe/__version__.py b/km3pipe/__version__.py
index <HASH>..<HASH> 100644
--- a/km3pipe/__version__.py
+++ b/km3pipe/__version__.py
@@ -10,7 +10,7 @@ Pep 386 compliant version info.
(1, 2, 0, 'beta', 2) => "1.2b2"
"""
-version_info = (0, 9, 7, 'final', 0)
+version_info = (0, 9, 8, 'final', 0)
... | Changes version to <I> | py |
diff --git a/overpy/__init__.py b/overpy/__init__.py
index <HASH>..<HASH> 100644
--- a/overpy/__init__.py
+++ b/overpy/__init__.py
@@ -45,14 +45,19 @@ class Overpass(object):
"""
default_read_chunk_size = 4096
- def __init__(self, read_chunk_size=None, xml_parser=XML_PARSER_SAX):
+ def __init__(self, ... | src - Add url param to set overpass server | py |
diff --git a/art/text_dic.py b/art/text_dic.py
index <HASH>..<HASH> 100644
--- a/art/text_dic.py
+++ b/art/text_dic.py
@@ -209,6 +209,19 @@ text_dic={
| '--------------' |
'----------------'
''',
+ "q":'''
+ .----------------.
+| .--------------. |
+| | ___ | |
+| | .' '. | |
+| | / .-. \ | ... | fix : q letter added to text_dic | py |
diff --git a/pytablereader/tabledata.py b/pytablereader/tabledata.py
index <HASH>..<HASH> 100644
--- a/pytablereader/tabledata.py
+++ b/pytablereader/tabledata.py
@@ -186,6 +186,7 @@ class TableData(object):
# alias to as_dict method.
# this method will be deleted in the future.
+ return self... | Fix method call for backward compatibility | py |
diff --git a/photutils/aperture/bounding_box.py b/photutils/aperture/bounding_box.py
index <HASH>..<HASH> 100644
--- a/photutils/aperture/bounding_box.py
+++ b/photutils/aperture/bounding_box.py
@@ -168,9 +168,9 @@ class BoundingBox:
therefore can be used to slice numpy arrays.
"""
if self.iy... | Fix raising error in BoundingBox.slices | py |
diff --git a/u115/api.py b/u115/api.py
index <HASH>..<HASH> 100644
--- a/u115/api.py
+++ b/u115/api.py
@@ -596,7 +596,8 @@ class API(object):
src_url = 'http://115.com'
r = self.http.get(src_url)
soup = BeautifulSoup(r.content)
- text = soup.find_all('script')[7].text
+ scripts ... | Fixed parse_src_js_var that is immune to page change | py |
diff --git a/examples/demo_scrolling.py b/examples/demo_scrolling.py
index <HASH>..<HASH> 100644
--- a/examples/demo_scrolling.py
+++ b/examples/demo_scrolling.py
@@ -3,12 +3,17 @@ import signal
from curtsies import CursorAwareWindow, input, fmtstr
+rows, columns = '??'
def cursor_winch():
+ global rows, colum... | fix scrolling demo, now correctly broken in Python 3 | py |
diff --git a/telethon/network/connection/tcpobfuscated.py b/telethon/network/connection/tcpobfuscated.py
index <HASH>..<HASH> 100644
--- a/telethon/network/connection/tcpobfuscated.py
+++ b/telethon/network/connection/tcpobfuscated.py
@@ -28,7 +28,7 @@ class ConnectionTcpObfuscated(ConnectionTcpAbridged):
keyw... | Fix incorrect check for reserved data prefix in ConnectionTcpObfuscated | py |
diff --git a/python/ray/tune/integration/wandb.py b/python/ray/tune/integration/wandb.py
index <HASH>..<HASH> 100644
--- a/python/ray/tune/integration/wandb.py
+++ b/python/ray/tune/integration/wandb.py
@@ -260,6 +260,8 @@ class WandbLogger(Logger):
def _init(self):
config = self.config.copy()
+ ... | [tune] remove callbacks from config in wandb logger initialization (#<I>) | py |
diff --git a/codado/_version.py b/codado/_version.py
index <HASH>..<HASH> 100644
--- a/codado/_version.py
+++ b/codado/_version.py
@@ -1,2 +1,2 @@
-__version__ = "0.5.0"
+__version__ = "0.4.990"
__all__ = ["__version__"] | smar-<I> tagging so aorta can be built | py |
diff --git a/azure-kusto-ingest/azure/kusto/ingest/_version.py b/azure-kusto-ingest/azure/kusto/ingest/_version.py
index <HASH>..<HASH> 100644
--- a/azure-kusto-ingest/azure/kusto/ingest/_version.py
+++ b/azure-kusto-ingest/azure/kusto/ingest/_version.py
@@ -1,3 +1,3 @@
# Copyright (c) Microsoft Corporation.
# Licens... | Bump ingest to <I> | py |
diff --git a/pylint/lint/pylinter.py b/pylint/lint/pylinter.py
index <HASH>..<HASH> 100644
--- a/pylint/lint/pylinter.py
+++ b/pylint/lint/pylinter.py
@@ -457,8 +457,8 @@ class PyLinter(
self.option_groups = option_groups + PyLinter.option_groups
self._options_methods = {"enable": self.enable, "disabl... | More modular code for enable/disable in pylinter | py |
diff --git a/tests/test_common.py b/tests/test_common.py
index <HASH>..<HASH> 100644
--- a/tests/test_common.py
+++ b/tests/test_common.py
@@ -39,7 +39,15 @@ class TestCommonClient(unittest.TestCase):
:return:
"""
actual_answer = CommonClient(self.test_svn_url, 'url').diff(self.test_start_rev... | Changed tests to resolve svn diff inconsistency | py |
diff --git a/sanic/server.py b/sanic/server.py
index <HASH>..<HASH> 100644
--- a/sanic/server.py
+++ b/sanic/server.py
@@ -1,4 +1,5 @@
import asyncio
+import traceback
from functools import partial
from inspect import isawaitable
from signal import SIGINT, SIGTERM
@@ -189,9 +190,15 @@ class HttpProtocol(asyncio.Pro... | Fixes write_error loop from bail_out function Fixes stack-overflow found in #<I> | py |
diff --git a/GPflow/mean_functions.py b/GPflow/mean_functions.py
index <HASH>..<HASH> 100644
--- a/GPflow/mean_functions.py
+++ b/GPflow/mean_functions.py
@@ -55,18 +55,18 @@ class Constant(MeanFunction):
class Additive(MeanFunction):
def __init__(self, first_part, second_part):
MeanFunction.__init__(sel... | changed name of mean function constituents to add_1/2 and prod_1/2 | py |
diff --git a/src/python/dxpy/scripts/dx_build_app.py b/src/python/dxpy/scripts/dx_build_app.py
index <HASH>..<HASH> 100755
--- a/src/python/dxpy/scripts/dx_build_app.py
+++ b/src/python/dxpy/scripts/dx_build_app.py
@@ -736,6 +736,9 @@ def main(**kwargs):
# that could reasonably have been anticipated by the... | PTFM-<I> Graceful exit when building app you are not a developer of. | py |
diff --git a/wafer/schedule/views.py b/wafer/schedule/views.py
index <HASH>..<HASH> 100644
--- a/wafer/schedule/views.py
+++ b/wafer/schedule/views.py
@@ -1,5 +1,4 @@
import datetime
-import itertools
from django.views.generic import DetailView, TemplateView
from wafer.schedule.models import Venue, Slot, Day
@@ -1... | Cleanup unneeded iterator from the view | py |
diff --git a/tilequeue/postgresql.py b/tilequeue/postgresql.py
index <HASH>..<HASH> 100644
--- a/tilequeue/postgresql.py
+++ b/tilequeue/postgresql.py
@@ -56,8 +56,9 @@ class DatabaseCycleConnectionPool(object):
with self._lock:
for conn in conns:
pool = self._conns_to_pool.pop(id... | Assert that we find a pool for the connection | py |
diff --git a/airflow/www/views.py b/airflow/www/views.py
index <HASH>..<HASH> 100644
--- a/airflow/www/views.py
+++ b/airflow/www/views.py
@@ -1235,7 +1235,7 @@ class Airflow(BaseView):
dttm = dag.latest_execution_date or datetime.now().date()
DR = models.DagRun
- drs = session.query(DR).... | order dag run drop down in graph view | py |
diff --git a/ignite/contrib/handlers/tqdm_logger.py b/ignite/contrib/handlers/tqdm_logger.py
index <HASH>..<HASH> 100644
--- a/ignite/contrib/handlers/tqdm_logger.py
+++ b/ignite/contrib/handlers/tqdm_logger.py
@@ -117,7 +117,9 @@ class ProgressBar(BaseLogger):
def __init__(
self,
persist: bool =... | Changed ProgressBar init's type annotation to accept None (#<I>) * Changed ProgressBar init's type annotation to accept None * fixed code formatting * fixed progress bar string formatting | py |
diff --git a/tests/test_localized_model.py b/tests/test_localized_model.py
index <HASH>..<HASH> 100644
--- a/tests/test_localized_model.py
+++ b/tests/test_localized_model.py
@@ -27,3 +27,23 @@ class LocalizedModelTestCase(TestCase):
obj = cls.TestModel()
assert isinstance(obj.title, LocalizedValue)... | Added test for dict init on LocalizedModel | py |
diff --git a/tests/jenkins-ng.py b/tests/jenkins-ng.py
index <HASH>..<HASH> 100755
--- a/tests/jenkins-ng.py
+++ b/tests/jenkins-ng.py
@@ -1192,6 +1192,7 @@ def main():
])
else:
cmd.extend([
+ get_minion_python_executable(options),
'/testing/tests/runte... | Don't forget the python executable | py |
diff --git a/grimoire_elk/elk/crates.py b/grimoire_elk/elk/crates.py
index <HASH>..<HASH> 100644
--- a/grimoire_elk/elk/crates.py
+++ b/grimoire_elk/elk/crates.py
@@ -148,7 +148,7 @@ class CratesEnrich(Enrich):
copy_fields = ["id", "homepage", "name", "repository", "downloads",
"descrip... | [enrich][crates] Use created_at as grimoire_creation_date field | py |
diff --git a/test/lifecycle_test.py b/test/lifecycle_test.py
index <HASH>..<HASH> 100644
--- a/test/lifecycle_test.py
+++ b/test/lifecycle_test.py
@@ -8,11 +8,11 @@ class TestLifecycle(object):
def test_stores_a_space_per_thread(self):
queue = Queue()
- queue.put(lifecycle.current_space())
-
... | Reduce minor duplication in lifecycle test. | py |
diff --git a/djng/forms/angular_base.py b/djng/forms/angular_base.py
index <HASH>..<HASH> 100644
--- a/djng/forms/angular_base.py
+++ b/djng/forms/angular_base.py
@@ -299,6 +299,8 @@ class NgFormBaseMixin(object):
except AttributeError:
# if form_name is unset, then generate a pseudo unique name, ... | Fix #<I>: Automatically generated form names broken in Python 3 | py |
diff --git a/multihist.py b/multihist.py
index <HASH>..<HASH> 100644
--- a/multihist.py
+++ b/multihist.py
@@ -374,12 +374,12 @@ class Histdd(MultiHistBase):
return Histdd.from_histogram(np.take(self.histogram, np.arange(start_bin, stop_bin + 1), axis=axis),
bin_edges=new_... | Log scale fix for 2d plotting | py |
diff --git a/superset/utils.py b/superset/utils.py
index <HASH>..<HASH> 100644
--- a/superset/utils.py
+++ b/superset/utils.py
@@ -724,13 +724,13 @@ def to_adhoc(filt, expressionType='SIMPLE', clause='where'):
if expressionType == 'SIMPLE':
result.update({
- 'comparator': filt['val'],
- ... | [bugfix] IS NOT NULL filter triggers KeyError: 'val' (#<I>) | py |
diff --git a/zk_shell/copy.py b/zk_shell/copy.py
index <HASH>..<HASH> 100644
--- a/zk_shell/copy.py
+++ b/zk_shell/copy.py
@@ -137,16 +137,16 @@ class Proxy(ProxyType("ProxyBase", (object,), {})):
pass
def check_path(self):
- raise NotImplementedError, "check_path must be implemented"
+ ra... | Don't use deprecated style for raise | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -11,7 +11,7 @@ for f in os.listdir(n):
setup(
name=n,
- version="1.5",
+ version="1.6",
description="Accessible UI elements for pygame.",
url="http://github.com/chrisnorman7/invisible_ui.git",
auth... | fixed setup.py so that its version number is consistent with the current version, <I>. | py |
diff --git a/pymc/model_graph.py b/pymc/model_graph.py
index <HASH>..<HASH> 100644
--- a/pymc/model_graph.py
+++ b/pymc/model_graph.py
@@ -16,6 +16,7 @@ import warnings
from collections import defaultdict, deque
from typing import Dict, Iterator, NewType, Optional, Set
+from aesara import function
from aesara.comp... | Use fast_compile in model_graph | py |
diff --git a/bitcoinrpc/authproxy.py b/bitcoinrpc/authproxy.py
index <HASH>..<HASH> 100644
--- a/bitcoinrpc/authproxy.py
+++ b/bitcoinrpc/authproxy.py
@@ -134,8 +134,9 @@ class AuthServiceProxy(object):
'Content-type': 'application/json'})
response = self._get_response()
- ... | If RPC response doesn't have {error:} throws error When trying to communicate to a node.js RPC server, a Key Error: error would be thrown. | py |
diff --git a/salt/grains/core.py b/salt/grains/core.py
index <HASH>..<HASH> 100644
--- a/salt/grains/core.py
+++ b/salt/grains/core.py
@@ -1030,6 +1030,23 @@ def os_data():
grains['systemd']['version'] = systemd_info[0].split()[1]
grains['systemd']['features'] = systemd_info[1]
+ # Ad... | add init system to default grains (resolve #<I>) | py |
diff --git a/sciunit/scores/collections_m2m.py b/sciunit/scores/collections_m2m.py
index <HASH>..<HASH> 100644
--- a/sciunit/scores/collections_m2m.py
+++ b/sciunit/scores/collections_m2m.py
@@ -60,7 +60,11 @@ class ScoreMatrixM2M(pd.DataFrame):
items = [test]+models
super(ScoreMatrixM2M, self).__... | Added Pandas warning suppression for model and test attribute setting | py |
diff --git a/test/functional/tm/ltm/test_virtual.py b/test/functional/tm/ltm/test_virtual.py
index <HASH>..<HASH> 100644
--- a/test/functional/tm/ltm/test_virtual.py
+++ b/test/functional/tm/ltm/test_virtual.py
@@ -13,7 +13,9 @@
# limitations under the License.
#
+from distutils.version import LooseVersion
from pp... | Skipping this test when running against <I>. | py |
diff --git a/benchexec/tools/kissat.py b/benchexec/tools/kissat.py
index <HASH>..<HASH> 100644
--- a/benchexec/tools/kissat.py
+++ b/benchexec/tools/kissat.py
@@ -25,7 +25,7 @@ class Tool(benchexec.tools.template.BaseTool2):
return self._version_from_tool(executable)
def cmdline(self, executable, option... | Modify the tool-info module according to Philipp's reviews | py |
diff --git a/visidata/vdtui.py b/visidata/vdtui.py
index <HASH>..<HASH> 100755
--- a/visidata/vdtui.py
+++ b/visidata/vdtui.py
@@ -1123,10 +1123,10 @@ class Sheet(BaseSheet):
Colorizer('hdr', 9, lambda s,c,r,v: options.color_current_hdr if c is s.cursorCol else None),
Colorizer('hdr', 8, lambda s,c,r,... | [errors] increase precedence of error coloring, to overcolor keycol | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -93,9 +93,9 @@ setup(name=foundations.globals.constants.Constants.applicationName,
license="GPLv3",
description="Foundations is the core package of Oncilla, Manager, Umbra, sIBL_GUI and sIBL_Reporter.",
long_description=... | Update "Pypi" setup file. | py |
diff --git a/networks.py b/networks.py
index <HASH>..<HASH> 100644
--- a/networks.py
+++ b/networks.py
@@ -30,15 +30,21 @@ def walk_transfer_stop_to_stop_network(gtfs):
d_shape:
distance along the road/tracks/..
"""
+ use_euclidean = False
net = networkx.Graph()
_add_stop... | networks.py: moved the handling of euclidean vs. real walking distances here: will print warning if d=d_walk for all | py |
diff --git a/sc2maptool/mapRecord.py b/sc2maptool/mapRecord.py
index <HASH>..<HASH> 100644
--- a/sc2maptool/mapRecord.py
+++ b/sc2maptool/mapRecord.py
@@ -10,6 +10,7 @@ def standardizeMapName(mapName):
newName = newName.split(".")[0]
newName = newName.split("(")[0]
newName = re.sub("[LT]E+$", "", newName... | - map names containing '-' can now also be processed | py |
diff --git a/source/rafcon/gui/helpers/meta_data.py b/source/rafcon/gui/helpers/meta_data.py
index <HASH>..<HASH> 100755
--- a/source/rafcon/gui/helpers/meta_data.py
+++ b/source/rafcon/gui/helpers/meta_data.py
@@ -625,7 +625,7 @@ def scale_meta_data_according_state(models_dict, rel_pos=None, as_template=False
... | Update source/rafcon/gui/helpers/meta_data.py style(meta_data): changed style of boolean expression changed the position of a `not` in a boolean expression, to improve code readability | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -21,7 +21,7 @@ import glob
setuptools.setup(
name='brozzler',
- version='1.1.dev13',
+ version='1.1b1',
description='Distributed web crawling with browsers',
url='https://github.com/... | beta version number for pypi upload | py |
diff --git a/mdstat/__init__.py b/mdstat/__init__.py
index <HASH>..<HASH> 100644
--- a/mdstat/__init__.py
+++ b/mdstat/__init__.py
@@ -46,7 +46,7 @@ def parse_lines(lines):
def parse_stream(fp):
- return parse_lines([l.rstrip() for l in fp])
+ return parse_lines([l.rstrip("\r\n") for l in fp])
def parse... | Don't kill trailing spaces, there's plenty of situation where mdstat leaves them. | py |
diff --git a/telethon/extensions/tcp_client.py b/telethon/extensions/tcp_client.py
index <HASH>..<HASH> 100644
--- a/telethon/extensions/tcp_client.py
+++ b/telethon/extensions/tcp_client.py
@@ -59,7 +59,7 @@ class TcpClient:
raise
def _get_connected(self):
- return self._socket is no... | Safer check to determine whether sockets are connected (#<I>) | py |
diff --git a/gravatar.py b/gravatar.py
index <HASH>..<HASH> 100644
--- a/gravatar.py
+++ b/gravatar.py
@@ -5,8 +5,14 @@ __author__ = 'Eric Seidel'
__version__ = '0.0.5'
__email__ = 'gridaphobe@gmail.com'
-from urllib import urlencode
-from urllib2 import urlopen
+
+try:
+ from urllib import urlencode
+ fro... | Fix ImportError's on Python3 | py |
diff --git a/pyhacores/cordic/test_.py b/pyhacores/cordic/test_.py
index <HASH>..<HASH> 100644
--- a/pyhacores/cordic/test_.py
+++ b/pyhacores/cordic/test_.py
@@ -26,19 +26,25 @@ def chirp_stimul():
class TestCordic:
+ def test_small_vectoring(self):
+ inputs = (np.random.rand(3, 8) * 2 - 1)
+
+ d... | fix cordic regression related to 'auto model' | py |
diff --git a/anyconfig/backend/base.py b/anyconfig/backend/base.py
index <HASH>..<HASH> 100644
--- a/anyconfig/backend/base.py
+++ b/anyconfig/backend/base.py
@@ -243,9 +243,8 @@ class Parser(object):
if not content or content is None:
return container()
- return self.load_from_string(con... | refactor: simplify a little | py |
diff --git a/projects/ninux/ninux/settings.example.py b/projects/ninux/ninux/settings.example.py
index <HASH>..<HASH> 100755
--- a/projects/ninux/ninux/settings.example.py
+++ b/projects/ninux/ninux/settings.example.py
@@ -307,9 +307,7 @@ LOGGING = {
CACHES = {
'default': {
- #'BACKEND': 'django.core.cac... | use LocMemCache by default | py |
diff --git a/source/rafcon/mvc/controllers/graphical_editor.py b/source/rafcon/mvc/controllers/graphical_editor.py
index <HASH>..<HASH> 100644
--- a/source/rafcon/mvc/controllers/graphical_editor.py
+++ b/source/rafcon/mvc/controllers/graphical_editor.py
@@ -2098,11 +2098,11 @@ class GraphicalEditorController(ExtendedC... | opengl editor: fix missing refactoring of method heads for issue #<I> | py |
diff --git a/src/pybel/io/line_utils.py b/src/pybel/io/line_utils.py
index <HASH>..<HASH> 100644
--- a/src/pybel/io/line_utils.py
+++ b/src/pybel/io/line_utils.py
@@ -201,7 +201,7 @@ def sanitize_file_line_iter(f, note_char=':'):
continue
if line[0] == '#':
- if line[1] == note_char:
... | Added robustness check on line length If the line is just a hash tag this used to fail | py |
diff --git a/src/ansiblelint/_internal/rules.py b/src/ansiblelint/_internal/rules.py
index <HASH>..<HASH> 100644
--- a/src/ansiblelint/_internal/rules.py
+++ b/src/ansiblelint/_internal/rules.py
@@ -89,8 +89,8 @@ class RuntimeErrorRule(BaseRule):
shortdesc = 'Unexpected internal error'
description = (
... | "internal-error" description text typo correction (#<I>) | py |
diff --git a/documenteer/stackdocs/packagecli.py b/documenteer/stackdocs/packagecli.py
index <HASH>..<HASH> 100644
--- a/documenteer/stackdocs/packagecli.py
+++ b/documenteer/stackdocs/packagecli.py
@@ -12,6 +12,7 @@ import sys
import click
from ..sphinxrunner import run_sphinx
+from .rootdiscovery import discover_... | Add discover_package_doc_dir to package-docs CLI Now users don't have to set -d/--dir unless they are not in: - the package's root directory - the doc/ directory - a subdirectory of doc/ | py |
diff --git a/eth_utils/applicators.py b/eth_utils/applicators.py
index <HASH>..<HASH> 100644
--- a/eth_utils/applicators.py
+++ b/eth_utils/applicators.py
@@ -82,10 +82,17 @@ def apply_formatters_to_dict(
if key in formatters:
try:
yield key, formatters[key](item)
- exc... | Raise known error instead of blind re-raise When catching a TypeError or ValueError, we can't necessarily re-initialize it with a string message argument. For example, a JSONDecodeError requires a `doc` and `pos` argument. Instead, we just re-raise with a new TypeError or ValueError, depending on the subclass caught. | py |
diff --git a/tools/convert_openstates.py b/tools/convert_openstates.py
index <HASH>..<HASH> 100644
--- a/tools/convert_openstates.py
+++ b/tools/convert_openstates.py
@@ -495,7 +495,17 @@ def migrate_bills(state):
bills = db.bills.find(spec)
for bill in bills:
+
+ ocdid = _hot_cache.get('{state}-{cha... | add org info to bills to replace chamber. | py |
diff --git a/holoviews/plotting/bokeh/element.py b/holoviews/plotting/bokeh/element.py
index <HASH>..<HASH> 100644
--- a/holoviews/plotting/bokeh/element.py
+++ b/holoviews/plotting/bokeh/element.py
@@ -98,6 +98,9 @@ class ElementPlot(BokehPlot, GenericElementPlot):
* timeout - Timeout (in ms) for checking... | Added show_frame option for bokeh plots | py |
diff --git a/alot/commands/thread.py b/alot/commands/thread.py
index <HASH>..<HASH> 100644
--- a/alot/commands/thread.py
+++ b/alot/commands/thread.py
@@ -57,9 +57,13 @@ def determine_sender(mail, action='reply'):
assert my_accounts, 'no accounts set!'
# extract list of addresses to check for my address
+ ... | Added `Envelope-To` and `X-Envelope-To` in the search for my addresses in reply | py |
diff --git a/tests/parser_tests.py b/tests/parser_tests.py
index <HASH>..<HASH> 100644
--- a/tests/parser_tests.py
+++ b/tests/parser_tests.py
@@ -199,8 +199,7 @@ uri
assert len(grid_list) == 1
assert len(grid_list[0]) == 1
- assert isinstance(grid_list[0][0]['uri'], hszinc.Uri)
- assert grid_list[0][... | parser tests: Typesafe check of Uri and Bin types | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -14,7 +14,7 @@ setup(
],
entry_points={
'distutils.setup_keywords': [
- 'guess_version_from_hg = hgdistver:setuptools_version_keyword',
+ 'get_version_from_hg = hgdistver:setuptools_ver... | use get_version_from_hg as setup keyword | py |
diff --git a/kmodes/kprototypes.py b/kmodes/kprototypes.py
index <HASH>..<HASH> 100644
--- a/kmodes/kprototypes.py
+++ b/kmodes/kprototypes.py
@@ -419,12 +419,17 @@ class KPrototypes(kmodes.KModes):
cat_dissim=matching_dissim, init='Huang', n_init=10, gamma=None,
verbose=0, random_st... | <I>: don't set n_init to 1 in case of Cao init method and k-prototypes, since the numerical part is still non-deterministic | py |
diff --git a/libact/query_strategies/uncertainty_sampling.py b/libact/query_strategies/uncertainty_sampling.py
index <HASH>..<HASH> 100644
--- a/libact/query_strategies/uncertainty_sampling.py
+++ b/libact/query_strategies/uncertainty_sampling.py
@@ -2,9 +2,10 @@
"""
-from libact.base.interfaces import QueryStrate... | add check to the model of uncertainty sampling should be continuous model | py |
diff --git a/src/wormhole/blocking/transit.py b/src/wormhole/blocking/transit.py
index <HASH>..<HASH> 100644
--- a/src/wormhole/blocking/transit.py
+++ b/src/wormhole/blocking/transit.py
@@ -283,7 +283,7 @@ class Common:
self._start_outbound()
# we sit here until one of our inbound or outbound socke... | increase establish_connection() timeout to let relay work If all the direct hints resulted in timeouts (e.g. they were to bad IP addresses where connections just hang), the relay connection would fail. The establish_connection() function had the same TIMEOUT as the direct-hint connector, so it would give up just befor... | py |
diff --git a/aiogram/types/message.py b/aiogram/types/message.py
index <HASH>..<HASH> 100644
--- a/aiogram/types/message.py
+++ b/aiogram/types/message.py
@@ -1581,17 +1581,14 @@ class Message(base.TelegramObject):
:return:
"""
kwargs = {
- "chat_id": chat_id,
- ... | Optimize Message.send_copy | py |
diff --git a/acceptancetests/assess_bundle_export.py b/acceptancetests/assess_bundle_export.py
index <HASH>..<HASH> 100755
--- a/acceptancetests/assess_bundle_export.py
+++ b/acceptancetests/assess_bundle_export.py
@@ -26,8 +26,8 @@ from utility import (
)
__metaclass__ = type
-export_one = "bundleone.yaml"
-export... | Update bundle file names. Make the bundle file name unambiguous to fix this test. | py |
diff --git a/pyedflib/edfwriter.py b/pyedflib/edfwriter.py
index <HASH>..<HASH> 100644
--- a/pyedflib/edfwriter.py
+++ b/pyedflib/edfwriter.py
@@ -157,8 +157,8 @@ class EdfWriter(object):
self.recording_start_time.day, self.recording_start_time.hour,
self.recording_... | always write offset, even if zero | py |
diff --git a/peewee.py b/peewee.py
index <HASH>..<HASH> 100644
--- a/peewee.py
+++ b/peewee.py
@@ -447,7 +447,7 @@ class Database(object):
def get_tables(self):
raise NotImplementedError
- def sequence_exists(self):
+ def sequence_exists(self, sequence):
raise NotImplementedError | Fixing method signature of sequence_exists, thanks @teserak. fixes #<I> | py |
diff --git a/cli/github/tests/test_release_notes.py b/cli/github/tests/test_release_notes.py
index <HASH>..<HASH> 100644
--- a/cli/github/tests/test_release_notes.py
+++ b/cli/github/tests/test_release_notes.py
@@ -82,6 +82,3 @@ class TestChangeNotesLinesParser(unittest.TestCase):
class TestGithubIssuesParser(unitte... | removed unnecessary __main__ section | py |
diff --git a/angr/analyses/cfg_fast.py b/angr/analyses/cfg_fast.py
index <HASH>..<HASH> 100644
--- a/angr/analyses/cfg_fast.py
+++ b/angr/analyses/cfg_fast.py
@@ -3253,7 +3253,8 @@ class CFGFast(ForwardAnalysis, CFGBase): # pylint: disable=abstract-method
self._arm_track_read_lr_from_stack(addr,... | CFGFast: search gp values more aggressively for MIPS<I> binaries. | py |
diff --git a/OpenPNM/Base/__Controller__.py b/OpenPNM/Base/__Controller__.py
index <HASH>..<HASH> 100644
--- a/OpenPNM/Base/__Controller__.py
+++ b/OpenPNM/Base/__Controller__.py
@@ -289,7 +289,7 @@ class Controller(dict):
"""
obj_new = _copy.copy(obj)
- obj_new.__dict__ = obj.__dict__
+ ... | Fixed ghost object bug During the process, it was deleting the main dictionary. Now, it's dealing with the dictionary copy. | py |
diff --git a/holoviews/plotting/mpl/seaborn.py b/holoviews/plotting/mpl/seaborn.py
index <HASH>..<HASH> 100644
--- a/holoviews/plotting/mpl/seaborn.py
+++ b/holoviews/plotting/mpl/seaborn.py
@@ -212,9 +212,11 @@ class SNSFramePlot(DFrameViewPlot):
'markers', 'palette', 'dodg... | Added new style options for seaborn based DFrame plot | py |
diff --git a/src/urh/util/ProjectManager.py b/src/urh/util/ProjectManager.py
index <HASH>..<HASH> 100644
--- a/src/urh/util/ProjectManager.py
+++ b/src/urh/util/ProjectManager.py
@@ -109,7 +109,8 @@ class ProjectManager(QObject):
self.read_compare_frame_groups(root)
decodings = cfc.proto_analy... | Update decodings in generator when loading a project | py |
diff --git a/extra_views/formsets.py b/extra_views/formsets.py
index <HASH>..<HASH> 100644
--- a/extra_views/formsets.py
+++ b/extra_views/formsets.py
@@ -92,7 +92,7 @@ class BaseFormSetMixin(object):
if self.request.method in ('POST', 'PUT'):
kwargs.update({
- 'data': self.reques... | Copy request.POST instead of reusing As of Django<I>, request.POST will be immutable: For consistency with non-multipart requests, MultiPartParser.parse() now leaves request.POST immutable. If you’re modifying that QueryDict, you must now first copy it, e.g. request.POST.copy(). <URL> | py |
diff --git a/crawl/index.py b/crawl/index.py
index <HASH>..<HASH> 100755
--- a/crawl/index.py
+++ b/crawl/index.py
@@ -110,7 +110,7 @@ class Index:
def build_pattern_for(self,basename):
- filename, ext = os.path.splitext(basename.lower())
+ filename, ext = os.path.splitext(basename)
aliases = self.find_... | Stop forcing basename to be lowercase | py |
diff --git a/neomodel/cardinality.py b/neomodel/cardinality.py
index <HASH>..<HASH> 100644
--- a/neomodel/cardinality.py
+++ b/neomodel/cardinality.py
@@ -63,13 +63,13 @@ class One(RelationshipManager):
def disconnect(self, obj):
raise AttemptedCardinalityViolation("Cardinality one, cannot disconnect use ... | Allow the setting of relationship properties on cardinality.One relationships | py |
diff --git a/angr/analyses/cfg_fast.py b/angr/analyses/cfg_fast.py
index <HASH>..<HASH> 100644
--- a/angr/analyses/cfg_fast.py
+++ b/angr/analyses/cfg_fast.py
@@ -3403,7 +3403,7 @@ class CFGFast(ForwardAnalysis, CFGBase): # pylint: disable=abstract-method
n._show_progressbar = self._show_progressbar
... | Fix CFGFast copy() for incorrect attribute type | py |
diff --git a/identify/extensions.py b/identify/extensions.py
index <HASH>..<HASH> 100644
--- a/identify/extensions.py
+++ b/identify/extensions.py
@@ -270,10 +270,12 @@ NAMES = {
'Dockerfile': {'text', 'dockerfile'},
'Gemfile': EXTENSIONS['rb'],
'Gemfile.lock': {'text'},
+ 'GNUmakefile': EXTENSIONS['m... | Add other makefile names Both `makefile` and `GNUmakefile` are officially defined Makefile names as seen (here)[<URL> | py |
diff --git a/test/test_pooling_base.py b/test/test_pooling_base.py
index <HASH>..<HASH> 100644
--- a/test/test_pooling_base.py
+++ b/test/test_pooling_base.py
@@ -585,6 +585,7 @@ class _TestPooling(_TestPoolingBase):
# Kill old request socket
sock_info.sock.close()
+ cx_pool.maybe_return_sock... | Restore deleted call to maybe_return_socket in test_pool_removes_dead_socket_after_request | py |
diff --git a/MarkdownPP/MarkdownPP.py b/MarkdownPP/MarkdownPP.py
index <HASH>..<HASH> 100644
--- a/MarkdownPP/MarkdownPP.py
+++ b/MarkdownPP/MarkdownPP.py
@@ -19,9 +19,7 @@ class MarkdownPP:
def __init__(self, input=None, output=None, modules=None):
pp = Processor()
- map(str.lower, modules)
-
- ... | use lower() from the string itself (whether it's unicode or ascii), instead of mapping the one from str. | py |
diff --git a/ftr/version.py b/ftr/version.py
index <HASH>..<HASH> 100644
--- a/ftr/version.py
+++ b/ftr/version.py
@@ -1,2 +1,2 @@
-version = '0.2'
+version = '0.3' | version bump for <I>. | py |
diff --git a/spacy/cli/project.py b/spacy/cli/project.py
index <HASH>..<HASH> 100644
--- a/spacy/cli/project.py
+++ b/spacy/cli/project.py
@@ -8,6 +8,7 @@ import shlex
import os
import re
import shutil
+import sys
from ._app import app, Arg, Opt, COMMAND
from .. import about
@@ -190,8 +191,12 @@ def run_commands... | Replace python with sys.executable | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.