diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/salt/modules/cp.py b/salt/modules/cp.py
index <HASH>..<HASH> 100644
--- a/salt/modules/cp.py
+++ b/salt/modules/cp.py
@@ -668,6 +668,8 @@ def hash_file(path, saltenv='base', env=None):
def push(path, keep_symlinks=False, upload_path=None, remove_source=False):
'''
+ WARNING Files pushed to the m... | includes warning to resolve issue <I> (#<I>) Adds WARNING to push documentation identifying permissions issue. The warning is consistent with the `mdadm` module warning. | py |
diff --git a/angr/analyses/vfg.py b/angr/analyses/vfg.py
index <HASH>..<HASH> 100644
--- a/angr/analyses/vfg.py
+++ b/angr/analyses/vfg.py
@@ -503,6 +503,10 @@ class VFG(ForwardAnalysis, Analysis): # pylint:disable=abstract-method
l.debug("Handling VFGJob %s", job)
+ if not self._top_task:
+ ... | VFG: add a hack to terminate the analysis as soon as the task stack goes empty. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#! /usr/bin/env python3
# coding=utf-8
"""setup.py - Setuptools tasks and config for pyisbn."""
# Copyright © 2007-2017 James Rowe <jnrowe@gmail.com> | Default to python3 in setup | py |
diff --git a/http_prompt/execution.py b/http_prompt/execution.py
index <HASH>..<HASH> 100644
--- a/http_prompt/execution.py
+++ b/http_prompt/execution.py
@@ -27,9 +27,9 @@ grammar = Grammar(r"""
concat_mut = option_mut / full_quoted_mut / value_quoted_mut / unquoted_mut
nonconcat_mut = cd / rm
- preview... | pipe to shell command redirection - PEG grammar | py |
diff --git a/src/python/dxpy/__init__.py b/src/python/dxpy/__init__.py
index <HASH>..<HASH> 100644
--- a/src/python/dxpy/__init__.py
+++ b/src/python/dxpy/__init__.py
@@ -262,10 +262,11 @@ def DXHTTPRequest(resource, data, method='POST', headers=None, auth=True, timeou
# When *data* is bytes but *headers* contains... | [PTFM-<I>] Encode URLs using UTF-8 (see also RFC <I>) | py |
diff --git a/molo/core/models.py b/molo/core/models.py
index <HASH>..<HASH> 100644
--- a/molo/core/models.py
+++ b/molo/core/models.py
@@ -517,7 +517,7 @@ class SectionPage(CommentedPageMixin, TranslatablePageMixin, Page):
"tuesday_rotation", "wednesday_rotation", "thursday_rotation",
"friday_rotation... | Remove unused fields from api_fields definitions | py |
diff --git a/cartoframes/data/observatory/catalog/entity.py b/cartoframes/data/observatory/catalog/entity.py
index <HASH>..<HASH> 100644
--- a/cartoframes/data/observatory/catalog/entity.py
+++ b/cartoframes/data/observatory/catalog/entity.py
@@ -1,6 +1,7 @@
import pandas as pd
from abc import ABC
+from carto.excep... | Add available bq check in download | py |
diff --git a/language/setup.py b/language/setup.py
index <HASH>..<HASH> 100644
--- a/language/setup.py
+++ b/language/setup.py
@@ -61,7 +61,7 @@ EXTRAS_REQUIRE = {
setup(
name='google-cloud-language',
- version='0.25.0',
+ version='0.26.0',
description='Python Client for Google Cloud Natural Language... | Prep langauge-<I> release. | py |
diff --git a/scss/_native.py b/scss/_native.py
index <HASH>..<HASH> 100644
--- a/scss/_native.py
+++ b/scss/_native.py
@@ -1,4 +1,5 @@
"""Pure-Python scanner and parser, used if _speedups is not available."""
+from __future__ import print_function
from scss.cssdefs import SEPARATOR
import re
@@ -195,7 +196,7 @@ cl... | Make _native py3k-friendly. | py |
diff --git a/OpenPNM/Algorithms/__OrdinaryPercolation2__.py b/OpenPNM/Algorithms/__OrdinaryPercolation2__.py
index <HASH>..<HASH> 100644
--- a/OpenPNM/Algorithms/__OrdinaryPercolation2__.py
+++ b/OpenPNM/Algorithms/__OrdinaryPercolation2__.py
@@ -147,7 +147,8 @@ class OrdinaryPercolation2(GenericAlgorithm):
# ... | small commit so I can fiddlw with git | py |
diff --git a/geopy/geocoders/bing.py b/geopy/geocoders/bing.py
index <HASH>..<HASH> 100644
--- a/geopy/geocoders/bing.py
+++ b/geopy/geocoders/bing.py
@@ -5,7 +5,7 @@ from urllib.parse import quote, urlencode
from geopy.exc import (
GeocoderAuthenticationFailure,
GeocoderInsufficientPrivileges,
- Geocoder... | Bing: raise GeocoderRateLimited for <I> instead of GeocoderQuotaExceeded | py |
diff --git a/pytorch_transformers/modeling_utils.py b/pytorch_transformers/modeling_utils.py
index <HASH>..<HASH> 100644
--- a/pytorch_transformers/modeling_utils.py
+++ b/pytorch_transformers/modeling_utils.py
@@ -379,11 +379,15 @@ class PreTrainedModel(nn.Module):
for head in heads:
... | Conditional append/init + fixed warning | py |
diff --git a/web/cli/shell.py b/web/cli/shell.py
index <HASH>..<HASH> 100644
--- a/web/cli/shell.py
+++ b/web/cli/shell.py
@@ -15,22 +15,24 @@ def run_python(env):
def run_ipython(env):
+ """Runs the shell environment through ipython using `env` as local variables"""
try:
from IPython import embed... | The environment variables are passed as local variables in both bpython and ipython (related to #<I>) | py |
diff --git a/pyexchange/exchange2010/soap_request.py b/pyexchange/exchange2010/soap_request.py
index <HASH>..<HASH> 100644
--- a/pyexchange/exchange2010/soap_request.py
+++ b/pyexchange/exchange2010/soap_request.py
@@ -429,9 +429,8 @@ def update_item(event, updated_attributes, calendar_item_update_operation_type):
... | Unnecessary if statement not allowing to set is_all_day to False | py |
diff --git a/pymysql/cursors.py b/pymysql/cursors.py
index <HASH>..<HASH> 100644
--- a/pymysql/cursors.py
+++ b/pymysql/cursors.py
@@ -92,6 +92,9 @@ class Cursor(object):
# TODO: make sure that conn.escape is correct
+ if isinstance(query, unicode):
+ query = query.encode(charset)
+
... | Python 2.x Unicode handling fix The code could fail if a unicode object is used as the query, and a utf-8 encoded string with characters outside of the ASCII range is passed in as one of the query arguments. This fix encodes the query in the appropriate character set *before* applying the escaped args, as the MySQLdb ... | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -23,7 +23,7 @@ from setuptools.command.install import install
DESCRIPTION = "Icetea - test framework"
OWNER_NAMES = "Jussi Vatjus-Anttila"
OWNER_EMAILS = "jussi.vatjus-anttila@arm.com"
-VERSION = "1.0.2"
+VERSION = "1.1.0-r... | <I> release candidate 1 (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -9,7 +9,7 @@ os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-genes',
- version='0.8',
+ version='0.9',
packages=find_packages(),
include_package_data=T... | Enforce version number of djago-organisms in setup.py | py |
diff --git a/pyramid_multiauth/__init__.py b/pyramid_multiauth/__init__.py
index <HASH>..<HASH> 100644
--- a/pyramid_multiauth/__init__.py
+++ b/pyramid_multiauth/__init__.py
@@ -313,14 +313,9 @@ def policy_factory_from_module(config, module):
# Find the most recent IAuthenticationPolicy action, and grab
# ou... | Remove code for Pyramid < <I> | py |
diff --git a/stanza/utils/datasets/prepare_tokenizer_treebank.py b/stanza/utils/datasets/prepare_tokenizer_treebank.py
index <HASH>..<HASH> 100755
--- a/stanza/utils/datasets/prepare_tokenizer_treebank.py
+++ b/stanza/utils/datasets/prepare_tokenizer_treebank.py
@@ -722,9 +722,8 @@ def check_gum_ready(udbase_dir):
d... | Update a comment now that <I> is released | py |
diff --git a/master/buildbot/changes/hgpoller.py b/master/buildbot/changes/hgpoller.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/changes/hgpoller.py
+++ b/master/buildbot/changes/hgpoller.py
@@ -174,6 +174,8 @@ class HgPoller(base.PollingChangeSource):
def oid_cb(oid):
d = self.master.db.s... | fix failing tests - some tests were expecting an int value some tests were expecting an int value and string was return | py |
diff --git a/mtproto.py b/mtproto.py
index <HASH>..<HASH> 100644
--- a/mtproto.py
+++ b/mtproto.py
@@ -102,11 +102,12 @@ def serialize_method(bytes_io, type_, **kwargs):
def serialize_param(bytes_io, type_, value):
+ print("type(value): " + str(type(value)))
if type_ == "int":
assert isinstan... | Fixed something that didnt happen before in py2 | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -7,7 +7,7 @@ license: GNU-GPL2
from setuptools import setup
setup(name='arguments',
- version='45',
+ version='46',
description='Argument parser based on docopt',
url='https://github.com/erikdejonge... | pip Thursday <I> May <I> (week:<I> day:<I>), <I>:<I>:<I> | py |
diff --git a/extmod/uasyncio/stream.py b/extmod/uasyncio/stream.py
index <HASH>..<HASH> 100644
--- a/extmod/uasyncio/stream.py
+++ b/extmod/uasyncio/stream.py
@@ -112,7 +112,6 @@ class Server:
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
s.bind(ai[-1])
s.listen(backlog)
- se... | extmod/uasyncio: Fix start_server and wait_closed race condition. This fix prevents server.wait_closed() from raising an AttributeError when trying to access server.task. This can happen if it is called immediately after start_server(). | py |
diff --git a/tests/test_essentia_dissonance.py b/tests/test_essentia_dissonance.py
index <HASH>..<HASH> 100755
--- a/tests/test_essentia_dissonance.py
+++ b/tests/test_essentia_dissonance.py
@@ -19,7 +19,7 @@ class TestEssentiaDissonance(unittest.TestCase):
def tearDown(self):
decoder = FileDecoder(self.s... | Fix unit test for essentia dissonance | py |
diff --git a/filer/models/filemodels.py b/filer/models/filemodels.py
index <HASH>..<HASH> 100644
--- a/filer/models/filemodels.py
+++ b/filer/models/filemodels.py
@@ -1,9 +1,11 @@
import os
import hashlib
-from django.utils.translation import ugettext_lazy as _
+
+from django.contrib.auth import models as auth_models... | Fix a bug introduce by the difference between the FileSystemStorage backend and the in the cloud storage backend. This has been tested with cloud file. | py |
diff --git a/cumulusci/core/github.py b/cumulusci/core/github.py
index <HASH>..<HASH> 100644
--- a/cumulusci/core/github.py
+++ b/cumulusci/core/github.py
@@ -13,7 +13,10 @@ from requests.packages.urllib3.util.retry import Retry
import github3
import os
-retries = Retry(status_forcelist=(502, 503, 504), backoff_fac... | Retry request on <I> from github | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -9,4 +9,5 @@ setup(
url='https://github.com/bunchesofdonald/django-hermes',
license='MIT',
long_description=open('README.rst').read(),
+ description='A light-weight blogging app for Django.',
) | Update setup.py Having a `description` in `setup.py` prevents project being listed as `UNKNOWN` as description on search results from `pypi` | py |
diff --git a/eventsourcing/domain.py b/eventsourcing/domain.py
index <HASH>..<HASH> 100644
--- a/eventsourcing/domain.py
+++ b/eventsourcing/domain.py
@@ -422,7 +422,7 @@ class DecoratedEvent(AggregateEvent[Any]):
event_obj_dict.pop("originator_version")
event_obj_dict.pop("timestamp")
origin... | Commented-out changes that shouldn't have been included in previous comment. | py |
diff --git a/tests/unittests/test_commands.py b/tests/unittests/test_commands.py
index <HASH>..<HASH> 100644
--- a/tests/unittests/test_commands.py
+++ b/tests/unittests/test_commands.py
@@ -170,7 +170,7 @@ class TestText(ShoebotTestCase):
return
font(fontname)
t = text("Hello world", 0, ... | Use self.assertEqual in test, not assert. (#<I>) | py |
diff --git a/pelix/__init__.py b/pelix/__init__.py
index <HASH>..<HASH> 100644
--- a/pelix/__init__.py
+++ b/pelix/__init__.py
@@ -28,7 +28,7 @@ Pelix root package
"""
# Module version
-__version_info__ = (0, 5, 0)
+__version_info__ = (0, 5, 2)
__version__ = ".".join(map(str, __version_info__))
# Documentation ... | Forgot to update the package version to <I> | py |
diff --git a/mqtt_codec/packet.py b/mqtt_codec/packet.py
index <HASH>..<HASH> 100644
--- a/mqtt_codec/packet.py
+++ b/mqtt_codec/packet.py
@@ -1099,7 +1099,15 @@ class MqttPublish(MqttPacketBody):
Parameters
----------
packet_id: int
- 0 <= packet_id <= 2**16 -1
+ Integer such that 0 <= pac... | Updated MqttPublish docstrings. | py |
diff --git a/salt/modules/win_service.py b/salt/modules/win_service.py
index <HASH>..<HASH> 100644
--- a/salt/modules/win_service.py
+++ b/salt/modules/win_service.py
@@ -1357,16 +1357,20 @@ def delete(name, timeout=90):
handle_scm, name, win32service.SERVICE_ALL_ACCESS)
except pywintypes.error as exc... | Improve timeout in delete Improved error handling | py |
diff --git a/panoramisk/fast_agi.py b/panoramisk/fast_agi.py
index <HASH>..<HASH> 100644
--- a/panoramisk/fast_agi.py
+++ b/panoramisk/fast_agi.py
@@ -153,7 +153,9 @@ class Application(dict):
while b'\n\n' not in buffer:
buffer += yield from reader.read(self.buf_size)
lines = buffer[:-2].... | Drop lines that don't contain ': ' for headers generation | py |
diff --git a/tests/resources/conf.py b/tests/resources/conf.py
index <HASH>..<HASH> 100644
--- a/tests/resources/conf.py
+++ b/tests/resources/conf.py
@@ -38,7 +38,7 @@ from recommonmark.parser import CommonMarkParser
_package = 'steenzout.sphinx'
-_version = semantic_version.Version('1.0.14')
+_version = semantic... | tests/resources/conf.py: updated version and copyright range. | py |
diff --git a/openquake/engine/calculators/hazard/event_based/core.py b/openquake/engine/calculators/hazard/event_based/core.py
index <HASH>..<HASH> 100644
--- a/openquake/engine/calculators/hazard/event_based/core.py
+++ b/openquake/engine/calculators/hazard/event_based/core.py
@@ -115,7 +115,6 @@ def ses_and_gmfs(job_... | Removed the filtering by rupture that was dramatically slowing down a test | py |
diff --git a/cookiecutter/extensions.py b/cookiecutter/extensions.py
index <HASH>..<HASH> 100644
--- a/cookiecutter/extensions.py
+++ b/cookiecutter/extensions.py
@@ -1,12 +1,15 @@
# -*- coding: utf-8 -*-
+
"""Jinja2 extensions."""
-from jinja2.ext import Extension
import json
+from jinja2.ext import Extension
+... | Sort imports based on pep8 in extensions.py | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,22 +1,22 @@
import os
from setuptools import setup, find_packages
-
+
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
-
+
setup(
name = "django-hitcount",
- version = "... | Change to a <I> series Since we may have introduced fun stuff. | py |
diff --git a/vstutils/api/endpoint.py b/vstutils/api/endpoint.py
index <HASH>..<HASH> 100644
--- a/vstutils/api/endpoint.py
+++ b/vstutils/api/endpoint.py
@@ -327,7 +327,7 @@ class EndpointViewSet(views.APIView):
"SERVER_PROTOCOL",
"SERVER_SOFTWARE",
"REMOTE_ADDR",
- "HTTP_X_FORWARDED_... | Fix: Provide secure ssl header name in bulk requests. | py |
diff --git a/custodia/message/kem.py b/custodia/message/kem.py
index <HASH>..<HASH> 100644
--- a/custodia/message/kem.py
+++ b/custodia/message/kem.py
@@ -114,7 +114,7 @@ class KEMHandler(MessageHandler):
try:
jtok = JWT(jwt=msg)
except Exception as e:
- raise InvalidMessage('F... | Use str to give back more human readable messages These messages are returned as is by the HTTP server as the status code reason, str() returns a more human readable format. | py |
diff --git a/insights/tools/query.py b/insights/tools/query.py
index <HASH>..<HASH> 100755
--- a/insights/tools/query.py
+++ b/insights/tools/query.py
@@ -289,7 +289,10 @@ def load_obj(spec):
def get_source(spec):
obj = load_obj(spec)
if obj:
- return inspect.getsource(obj)
+ try:
+ ... | Fix insights-info exception on packages without source. | py |
diff --git a/falafel/core/__init__.py b/falafel/core/__init__.py
index <HASH>..<HASH> 100644
--- a/falafel/core/__init__.py
+++ b/falafel/core/__init__.py
@@ -75,6 +75,18 @@ def get_importable_path(path):
raise Exception("%s cannot be imported due to an insufficient sys.path" % path)
+def getitem_composite... | Refactor MapperOutput.__getitem__ Create getitem_composite and use that function to check the two dicts (self.data and self.computed) for the given key. This change was made to make it easier for subclasses to override __getitem__ with their own sets of dictionaries to check. | py |
diff --git a/gns3server/server.py b/gns3server/server.py
index <HASH>..<HASH> 100644
--- a/gns3server/server.py
+++ b/gns3server/server.py
@@ -252,7 +252,8 @@ class Server:
# TypeError: async() takes 1 positional argument but 3 were given
log.warning("TypeError exception in the loop {}".format... | Makes sure the loop is running when closing the app. | py |
diff --git a/metaseq/results_table.py b/metaseq/results_table.py
index <HASH>..<HASH> 100644
--- a/metaseq/results_table.py
+++ b/metaseq/results_table.py
@@ -300,6 +300,25 @@ class ResultsTable(object):
return ax
+ def strip_unknown_features(self):
+ """
+ Remove features not found in the... | add a strip_unknown_features method | py |
diff --git a/rflink/protocol.py b/rflink/protocol.py
index <HASH>..<HASH> 100644
--- a/rflink/protocol.py
+++ b/rflink/protocol.py
@@ -25,7 +25,7 @@ class ProtocolBase(asyncio.Protocol):
transport = None # type: asyncio.Transport
- def __init__(self, loop=None) -> None:
+ def __init__(self, loop=None, d... | Add callback to hook into disconnects. | py |
diff --git a/forms_builder/forms/settings.py b/forms_builder/forms/settings.py
index <HASH>..<HASH> 100644
--- a/forms_builder/forms/settings.py
+++ b/forms_builder/forms/settings.py
@@ -4,8 +4,7 @@ from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
-if not (getattr(settings, ... | SITE_ID isn't actually required. Closes #<I>. Closes #<I>. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -11,7 +11,7 @@ except ImportError:
long_description = open('README.rst').read()
-install_reqs = ['pyusb', 'units >= 0.5', 'requests']
+install_reqs = ['pyusb', 'units >= 0.5', 'requests==0.14.1']
if sys.version_info < ... | Pin version of requests to avoid an upstream error with Python <I>. | py |
diff --git a/programs/thellier_gui.py b/programs/thellier_gui.py
index <HASH>..<HASH> 100755
--- a/programs/thellier_gui.py
+++ b/programs/thellier_gui.py
@@ -929,7 +929,9 @@ DESCRIPTION
#----------------Bottom Outer Sizer----------------------------------
sizer_bottom_bar = wx.BoxSizer(wx.VERTICAL)... | modified: programs/thellier_gui.py | py |
diff --git a/serverdensity/wrapper/apiclient.py b/serverdensity/wrapper/apiclient.py
index <HASH>..<HASH> 100644
--- a/serverdensity/wrapper/apiclient.py
+++ b/serverdensity/wrapper/apiclient.py
@@ -2,6 +2,7 @@
import json
from requests import Session, Request
+from requests.adapters import HTTPAdapter
import requ... | Add a number retries to client | py |
diff --git a/tests/test_units_search.py b/tests/test_units_search.py
index <HASH>..<HASH> 100644
--- a/tests/test_units_search.py
+++ b/tests/test_units_search.py
@@ -27,9 +27,10 @@ def indexer(monkeypatch):
monkeypatch.setattr(os.path, 'basename', lambda path: "ffmpeg")
monkeypatch.setattr(os.path, 'exists',... | mocking username and password and src_dir instead of getting the real ones | py |
diff --git a/ttkwidgets/itemscanvas.py b/ttkwidgets/itemscanvas.py
index <HASH>..<HASH> 100644
--- a/ttkwidgets/itemscanvas.py
+++ b/ttkwidgets/itemscanvas.py
@@ -223,17 +223,17 @@ class ItemsCanvas(ttk.Frame):
To get the list of options for this widget, call the method :meth:`~ItemsCanvas.keys`.
""... | Finally fix the is/== in ItemsCanvas These changes were on some branch years ago, but they must have gotten lost at some point. This commit fixes the problems directly. | py |
diff --git a/examples/parallel_client.py b/examples/parallel_client.py
index <HASH>..<HASH> 100644
--- a/examples/parallel_client.py
+++ b/examples/parallel_client.py
@@ -127,7 +127,7 @@ def get_urls_ordered_pool(urls, parallelism=None):
#
def get_urls_ordered_map(urls, parallelism=None):
- return greenhouse.poo... | map() is now in the top-level greenhouse namespace | py |
diff --git a/cnorm/parsing/statement.py b/cnorm/parsing/statement.py
index <HASH>..<HASH> 100644
--- a/cnorm/parsing/statement.py
+++ b/cnorm/parsing/statement.py
@@ -12,7 +12,7 @@ class Statement(Grammar, Expression):
interaction with other CNORM PART:
Declaration.init_declarator -> compound_statem... | Update statement.py Remove dummy comment misleading us to something that does not exist! | py |
diff --git a/mythril/laser/ethereum/instructions.py b/mythril/laser/ethereum/instructions.py
index <HASH>..<HASH> 100644
--- a/mythril/laser/ethereum/instructions.py
+++ b/mythril/laser/ethereum/instructions.py
@@ -459,8 +459,12 @@ class Instruction:
state = global_state.mstate
val = state.stack.pop... | adapt iszero implementation to push bitvec Previously iszero put a Bool symbol on the stack, however the stack is expected to have <I> sized bitvecs on the stack. This adapts that. | py |
diff --git a/paapi/paapi.py b/paapi/paapi.py
index <HASH>..<HASH> 100644
--- a/paapi/paapi.py
+++ b/paapi/paapi.py
@@ -50,10 +50,12 @@ class PaAuth:
_auth_token = None
_token_expiry = None
- def __init__(self, username, password, client_username=None, client_password=None, poolmanager=None):
+ def __i... | Manage string encoding in basic auth. | py |
diff --git a/telethon/events/__init__.py b/telethon/events/__init__.py
index <HASH>..<HASH> 100644
--- a/telethon/events/__init__.py
+++ b/telethon/events/__init__.py
@@ -20,10 +20,24 @@ def _into_id_set(client, chats):
result = set()
for chat in chats:
- chat = client.get_input_entity(chat)
- ... | Guess entity type on positive IDs in events and avoid some RPCs Now specifying a single positive integer ID will add all the types to the white/blacklist so it can be "guessed". Explicit peers will always be only that type, and an RPC is avoided (since it was not needed to begin with). | py |
diff --git a/lib/python/dxpy/bindings/dxtable.py b/lib/python/dxpy/bindings/dxtable.py
index <HASH>..<HASH> 100644
--- a/lib/python/dxpy/bindings/dxtable.py
+++ b/lib/python/dxpy/bindings/dxtable.py
@@ -135,11 +135,11 @@ class DXTable(DXClass):
if limit is not None:
get_rows_params["limit"] = limi... | (Python bindings) Only add 'query' to request when user supplies it. | py |
diff --git a/pipenv/cli.py b/pipenv/cli.py
index <HASH>..<HASH> 100644
--- a/pipenv/cli.py
+++ b/pipenv/cli.py
@@ -1822,16 +1822,15 @@ def install(
click.echo(crayons.blue(format_pip_error(c.err)), err=True)
sys.exit(1)
- if dev:
- click.echo(crayons.normal(u'Adding {0} to ... | improve "adding _ to pipfile's packages" code, make it bold | py |
diff --git a/dustmaps/tests/test_planck.py b/dustmaps/tests/test_planck.py
index <HASH>..<HASH> 100644
--- a/dustmaps/tests/test_planck.py
+++ b/dustmaps/tests/test_planck.py
@@ -86,12 +86,21 @@ class TestPlanck(unittest.TestCase):
np.testing.assert_equal(E, E0)
u,v,w = np.random.uniform(0., 5.,... | Update Planck tests to work with Astropy version < <I>. | py |
diff --git a/SpiffWorkflow/bpmn2/specs/IntermediateCatchEvent.py b/SpiffWorkflow/bpmn2/specs/IntermediateCatchEvent.py
index <HASH>..<HASH> 100644
--- a/SpiffWorkflow/bpmn2/specs/IntermediateCatchEvent.py
+++ b/SpiffWorkflow/bpmn2/specs/IntermediateCatchEvent.py
@@ -13,14 +13,18 @@ class IntermediateCatchEvent(Simple, ... | The IntermediateCatchEvent needs to predict children on ready, and should not enter the waiting state if the parent is not yet finished. | py |
diff --git a/bugwarrior/services/youtrack.py b/bugwarrior/services/youtrack.py
index <HASH>..<HASH> 100644
--- a/bugwarrior/services/youtrack.py
+++ b/bugwarrior/services/youtrack.py
@@ -153,7 +153,8 @@ class YoutrackService(IssueService, ServiceClient):
)
def _login(self, login, password):
- res... | PEP8: youtrack service. | 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
@@ -43,8 +43,9 @@ class EncodingTest(TestCase):
self.assertItemsEqual(urldecode('foo=(1,2,3)'), [('foo', '(1,2,3)')])
self.assertItemsEqual(urldecode('foo=bar.*'),... | Tests for `/` and `?` characters in query. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -48,6 +48,10 @@ if sys.argv[-1] == 'publish':
packages = [
'tvdb_client',
+ 'tvdb_client.clients',
+ 'tvdb_client.exceptions',
+ 'tvdb_client.tests',
+ 'tvdb_client.utils'
]
requires = ['requests', 'lxm... | Adding missing packages to setup.py. | py |
diff --git a/src/peltak/logic/lint.py b/src/peltak/logic/lint.py
index <HASH>..<HASH> 100644
--- a/src/peltak/logic/lint.py
+++ b/src/peltak/logic/lint.py
@@ -151,6 +151,7 @@ class LintRunner(object):
for name, retcodes in results.items():
if any(x != 0 for x in retcodes):
+ ... | lint should return non-zero if checks failed (fix) lint command was returning 0 even if the code checks failed. | py |
diff --git a/spead2/send/__init__.py b/spead2/send/__init__.py
index <HASH>..<HASH> 100644
--- a/spead2/send/__init__.py
+++ b/spead2/send/__init__.py
@@ -51,7 +51,9 @@ class HeapGenerator:
:py:meth:`get_end`.
"""
def __init__(self, item_group, descriptor_frequency=None, flavour=_spead2.Flavour()):
-... | Avoid cyclic references in spead2.send.ItemGenerator The class is composed via two subclasses, and the one contains a reference to the other (which makes it a cyclic reference). | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -4,10 +4,9 @@ from setuptools import setup, find_packages
from Exscript.version import __version__
# Import the project description from the README.
-readme = open('README.md').read()
descr = '''
-Exscript is a Python mod... | remove useless stuff from setup.py | py |
diff --git a/oauth2_consumer/exceptions/invalid_request.py b/oauth2_consumer/exceptions/invalid_request.py
index <HASH>..<HASH> 100644
--- a/oauth2_consumer/exceptions/invalid_request.py
+++ b/oauth2_consumer/exceptions/invalid_request.py
@@ -19,10 +19,12 @@ class ClientNotProvided(InvalidRequest):
class RedirectUri... | Added flag for determining if an exception can be redirected | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -116,7 +116,7 @@ INSTALL_REQUIRES = [
'enum34>=1.1.2,<2.0',
'mutablerecords>=0.4.1,<2.0',
'oauth2client>=1.5.2,<2.0',
- 'protobuf>=2.6.1,<3.0',
+ 'protobuf>=2.6.1,<4.0',
'pyaml>=15.3.1,<16.0',
'p... | Allow protobuf 3.x (#<I>) | py |
diff --git a/lib/server.py b/lib/server.py
index <HASH>..<HASH> 100644
--- a/lib/server.py
+++ b/lib/server.py
@@ -54,8 +54,7 @@ class QueueManager(threading.Thread):
try:
requestString = self._requestQueue.get()
tokens = requestString.split('&')
- task = se... | Refactored slightly to improve encapsulization of ETC dependency; QueueManager.factory() now returns something that can be passed directly to ._resultQueue.put(). git-svn-id: <URL> | py |
diff --git a/AlphaTwirl/Configure/build_counter_collector_pair.py b/AlphaTwirl/Configure/build_counter_collector_pair.py
index <HASH>..<HASH> 100644
--- a/AlphaTwirl/Configure/build_counter_collector_pair.py
+++ b/AlphaTwirl/Configure/build_counter_collector_pair.py
@@ -13,7 +13,7 @@ def build_counter_collector_pair(tb... | set nextKeyComposer None if binnings is None | py |
diff --git a/spacy/_ml.py b/spacy/_ml.py
index <HASH>..<HASH> 100644
--- a/spacy/_ml.py
+++ b/spacy/_ml.py
@@ -136,7 +136,8 @@ def Tok2Vec(width, embed_size, preprocess=None):
tok2vec = (
with_flatten(
- (lower | prefix | suffix | shape )
+ asarray(Model.ops, dtype=... | Make single array for features, to reduce GPU copies | py |
diff --git a/salmonella/views.py b/salmonella/views.py
index <HASH>..<HASH> 100644
--- a/salmonella/views.py
+++ b/salmonella/views.py
@@ -3,7 +3,7 @@ from django.conf import settings
from django.contrib.auth.decorators import user_passes_test
from django.http import HttpResponseBadRequest, HttpResponseForbidden
fro... | added suport for django <I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -10,7 +10,7 @@ setup(
, install_requires =
[ "delfick_error==1.6"
, "option_merge==0.8.1"
- , "input_algorithms==0.3.4"
+ , "input_algorithms==0.3.5"
, "docker-py==0.4.0"
, "dockerp... | Upgrading input_algorithms | py |
diff --git a/pynlpl/tests/folia.py b/pynlpl/tests/folia.py
index <HASH>..<HASH> 100755
--- a/pynlpl/tests/folia.py
+++ b/pynlpl/tests/folia.py
@@ -2597,6 +2597,9 @@ class Test9Validation(unittest.TestCase):
"""Validation - Deep Validation"""
folia.Document(file=os.path.join(FOLIAPATH,'test/example.dee... | adding a test for reading test/example.textvalidation.xml | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -12,7 +12,7 @@ with open(path.join(here, "README.md"), encoding="utf-8") as f:
setup(
name="pdf2image",
- version="1.9.0",
+ version="1.9.1",
description="A wrapper around the pdftoppm and pdftocairo command... | Add Python <I> to supported versions | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -6,7 +6,7 @@ setup(
version='6.0.0',
packages=find_packages(),
entry_points={'console_scripts': ['natsort = natsort.__main__:main']},
- python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*",
+ python... | Remove support for Python 2 This commit will prevent pip from installing natsort on any Python version older than <I>. | py |
diff --git a/penaltymodel_core/penaltymodel/core/package_info.py b/penaltymodel_core/penaltymodel/core/package_info.py
index <HASH>..<HASH> 100644
--- a/penaltymodel_core/penaltymodel/core/package_info.py
+++ b/penaltymodel_core/penaltymodel/core/package_info.py
@@ -1,4 +1,4 @@
-__version__ = '0.16.0'
+__version__ = '0... | Update core version <I> -> <I>. Skipped <I> because this file was meant to be <I> but was not changed during the <I> release. | py |
diff --git a/gargoyle/switches.py b/gargoyle/switches.py
index <HASH>..<HASH> 100644
--- a/gargoyle/switches.py
+++ b/gargoyle/switches.py
@@ -67,15 +67,15 @@ class Range(Field):
return value >= condition[0] and value <= condition[1]
def validate(self, data):
- value = [data.get(self.name + '[min... | Improve validation on Percent/Range | py |
diff --git a/magic.py b/magic.py
index <HASH>..<HASH> 100644
--- a/magic.py
+++ b/magic.py
@@ -66,9 +66,9 @@ class Magic:
return magic_file(self.cookie, filename)
def __del__(self):
- if self.cookie:
- magic_close(self.cookie)
- self.cookie = None
+ if self.cookie:
+ magic_close(self... | Commet error fix. I was hungry | py |
diff --git a/awslimitchecker/tests/conftest.py b/awslimitchecker/tests/conftest.py
index <HASH>..<HASH> 100644
--- a/awslimitchecker/tests/conftest.py
+++ b/awslimitchecker/tests/conftest.py
@@ -177,7 +177,7 @@ def param_for_integration_test_verify_usage(metafunc):
False
],
[
- ... | switch integration tests from sa-east-1 to ap-southeast-1 because of SES API timeouts | py |
diff --git a/bcbio/variation/effects.py b/bcbio/variation/effects.py
index <HASH>..<HASH> 100644
--- a/bcbio/variation/effects.py
+++ b/bcbio/variation/effects.py
@@ -172,8 +172,8 @@ def _get_dbnsfp(data):
https://groups.google.com/d/msg/gemini-variation/WeZ6C2YvfUA/mII9uum_pGoJ
"""
dbnsfp_file = tz.get_... | dbNSFP: remove fields no longer present in <I> Fixes #<I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -26,7 +26,7 @@ install_requires = [
tests_require = [
"pytest>=4.6",
- "coverage >= 3.7.1",
+ "coverage >= 6.0.0",
"pytest-cov",
"pytest-localserver",
"flake8", | bump coverage version (#<I>) | py |
diff --git a/dvc/repo/experiments/init.py b/dvc/repo/experiments/init.py
index <HASH>..<HASH> 100644
--- a/dvc/repo/experiments/init.py
+++ b/dvc/repo/experiments/init.py
@@ -281,6 +281,13 @@ def init(
f"'{value}' {reason}. "
"Please retry with an existing parameters file."
... | exp init: warn for code/data if they don't exist | py |
diff --git a/jarn/mkrelease/mkrelease.py b/jarn/mkrelease/mkrelease.py
index <HASH>..<HASH> 100644
--- a/jarn/mkrelease/mkrelease.py
+++ b/jarn/mkrelease/mkrelease.py
@@ -282,9 +282,9 @@ class ReleaseMaker(object):
directory = abspath(self.directory)
self.scm.check_valid_sandbox(director... | Check for setup.py earlier on. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -288,8 +288,15 @@ install_requires = [
'numpydoc',
]
+extras_require = {
+ 'test:python_version == "2.7"': ['mock'],
+ 'test': ['pytest', 'pytest-qt', 'pytest-cov', 'mock', 'coveralls',
+ 'ciocheck', ... | Add testing requirements to setup.py | py |
diff --git a/tests/export/hazard_test.py b/tests/export/hazard_test.py
index <HASH>..<HASH> 100644
--- a/tests/export/hazard_test.py
+++ b/tests/export/hazard_test.py
@@ -267,7 +267,13 @@ class EventBasedExportTestCase(BaseExportTestCase):
# Check for the correct number of GMFs in the file:
... | Relaxed the export test relying on a precise number of gmfs to be generated | py |
diff --git a/subliminal/providers/legendastv.py b/subliminal/providers/legendastv.py
index <HASH>..<HASH> 100644
--- a/subliminal/providers/legendastv.py
+++ b/subliminal/providers/legendastv.py
@@ -367,7 +367,7 @@ class LegendasTVProvider(Provider):
continue
# discard mismatches... | Fix for titles without year in legendastv | py |
diff --git a/opendatalake/detection/kitti_detection.py b/opendatalake/detection/kitti_detection.py
index <HASH>..<HASH> 100644
--- a/opendatalake/detection/kitti_detection.py
+++ b/opendatalake/detection/kitti_detection.py
@@ -77,7 +77,8 @@ def evaluate3d(predictor, prediction_2_detections, base_dir, visualize=False):
... | Kitti evaluation has offset so it only tests thresholds that are anywhere close to a clever one. | py |
diff --git a/napalm_base/test/base.py b/napalm_base/test/base.py
index <HASH>..<HASH> 100644
--- a/napalm_base/test/base.py
+++ b/napalm_base/test/base.py
@@ -477,8 +477,8 @@ class TestGettersNetworkDriver:
for intf, intf_optic in get_optics.iteritems():
for phy_chan, chan in intf_optic.iteritem... | changed variable names in test_get_optics | py |
diff --git a/kafka/conn.py b/kafka/conn.py
index <HASH>..<HASH> 100644
--- a/kafka/conn.py
+++ b/kafka/conn.py
@@ -665,10 +665,13 @@ class BrokerConnection(object):
will be failed with this exception.
Default: kafka.errors.ConnectionError.
"""
+ if self.state is Connect... | Short-circuit BrokerConnection.close() if already disconnected (#<I>) | py |
diff --git a/salt/modules/drac.py b/salt/modules/drac.py
index <HASH>..<HASH> 100644
--- a/salt/modules/drac.py
+++ b/salt/modules/drac.py
@@ -172,7 +172,7 @@ def list_users():
users = {}
_username = ''
- for idx in range(1, 16):
+ for idx in range(1, 17):
cmd = __salt__['cmd.run_all']('racad... | In order to get User Index #<I>, the range must be <I>. | py |
diff --git a/tests/test_tree.py b/tests/test_tree.py
index <HASH>..<HASH> 100644
--- a/tests/test_tree.py
+++ b/tests/test_tree.py
@@ -646,6 +646,7 @@ class Test(unittest.TestCase):
tree = uproot.open("tests/samples/Event.root")["T"]
branches_without_interp = [ b.name for b in tree.allvalues() if b.in... | Read back a few values from fTracks.fTArray[3] branch in Event.root | py |
diff --git a/examples/tutorials/sst2_classification_non_distributed.py b/examples/tutorials/sst2_classification_non_distributed.py
index <HASH>..<HASH> 100644
--- a/examples/tutorials/sst2_classification_non_distributed.py
+++ b/examples/tutorials/sst2_classification_non_distributed.py
@@ -18,14 +18,6 @@ SST-2 Binary t... | remove install instructions (#<I>) | py |
diff --git a/src/ocrmypdf/__main__.py b/src/ocrmypdf/__main__.py
index <HASH>..<HASH> 100755
--- a/src/ocrmypdf/__main__.py
+++ b/src/ocrmypdf/__main__.py
@@ -17,7 +17,6 @@
# along with OCRmyPDF. If not, see <http://www.gnu.org/licenses/>.
from tempfile import mkdtemp
-from collections.abc import Sequence
from pa... | main: Cleanup; support overriding sys.args in run_pipeline | py |
diff --git a/tests/test_namespace.py b/tests/test_namespace.py
index <HASH>..<HASH> 100644
--- a/tests/test_namespace.py
+++ b/tests/test_namespace.py
@@ -52,8 +52,8 @@ def test_collisions():
subject = Configuration({'key': 'value', 'keys': [1, 2], '_separator': '_'})
for collision in ('keys', '_separat... | Replace string formatting with f-strings in test code | py |
diff --git a/moto/ec2/models.py b/moto/ec2/models.py
index <HASH>..<HASH> 100644
--- a/moto/ec2/models.py
+++ b/moto/ec2/models.py
@@ -1946,13 +1946,15 @@ class ElasticAddress(object):
@classmethod
def create_from_cloudformation_json(cls, resource_name, cloudformation_json):
- properties = cloudforma... | eip resources have no required properties. | py |
diff --git a/docs/sphinx/conf.py b/docs/sphinx/conf.py
index <HASH>..<HASH> 100644
--- a/docs/sphinx/conf.py
+++ b/docs/sphinx/conf.py
@@ -217,7 +217,9 @@ if on_rtd:
else:
return Mock()
- MOCK_MODULES = ['ldap', 'IPy', 'psycopg2.extras', 'psycopg2']
+ MOCK_MODULES = [
+ 'lda... | docs: Added mocking of pyparsing Added pyparsing to the list of modules to mock when building the documentation at readthedocs.org. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -13,7 +13,8 @@ scripts = ['bin/PCoA_bubble.py', 'bin/biom_relative_abundance.py', 'bin/filter_r
'bin/assign_taxonomy_by_blast_result.py', 'bin/condense_workflow.py',
'bin/iTol.py', 'bin/multi_qsub.py', ... | Modifies setup.py to include new executable scripts: restrict_repset.py and LDA.py | py |
diff --git a/services/managers/market_manager.py b/services/managers/market_manager.py
index <HASH>..<HASH> 100644
--- a/services/managers/market_manager.py
+++ b/services/managers/market_manager.py
@@ -26,7 +26,7 @@ class marketManager:
@staticmethod
def __santatize_username(username):
sanatized =... | Escaped mysql character to prevent errors | py |
diff --git a/salt/minion.py b/salt/minion.py
index <HASH>..<HASH> 100644
--- a/salt/minion.py
+++ b/salt/minion.py
@@ -705,6 +705,7 @@ class Minion(object):
while True:
try:
+ self.schedule.eval()
socks = dict(self.poller.poll(60000))
if self.sock... | evaluate the schedule before polling for master events in the loop | py |
diff --git a/dvc/version.py b/dvc/version.py
index <HASH>..<HASH> 100644
--- a/dvc/version.py
+++ b/dvc/version.py
@@ -7,7 +7,7 @@ import os
import subprocess
-_BASE_VERSION = "0.55.0"
+_BASE_VERSION = "0.55.1"
def _generate_version(base_version): | dvc: bump to <I> | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.