diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/tests/integration_test.py b/tests/integration_test.py
index <HASH>..<HASH> 100644
--- a/tests/integration_test.py
+++ b/tests/integration_test.py
@@ -33,7 +33,7 @@ from six.moves import BaseHTTPServer
from six.moves import socketserver
import docker
-from docker.errors import APIError
+from docker.erro... | Only pull busybox in integration tests if we don't already have it | py |
diff --git a/jax/interpreters/xla.py b/jax/interpreters/xla.py
index <HASH>..<HASH> 100644
--- a/jax/interpreters/xla.py
+++ b/jax/interpreters/xla.py
@@ -139,11 +139,11 @@ pytype_aval_mappings[core.Unit] = lambda _: core.abstract_unit
for _t in array_types:
pytype_aval_mappings[_t] = make_shaped_array
-def _make... | Fix breakage due to optimization in <URL> Precomputing a ShapedArray can cause problems depending on when --jax_enable_x<I> is parsed. | py |
diff --git a/check_formula_balance.py b/check_formula_balance.py
index <HASH>..<HASH> 100755
--- a/check_formula_balance.py
+++ b/check_formula_balance.py
@@ -7,10 +7,9 @@ is consistent on the left and right side of the reaction equation.
Reactions that are not balanced will be printed out.'''
import csv
-from form... | Create pseude-radical for compounds with missing formula When checking formula balance, create a pseudo-radical group for compounds missing formulas so that they cannot match up with any other compound than itself. | py |
diff --git a/pandas/tests/test_frame.py b/pandas/tests/test_frame.py
index <HASH>..<HASH> 100644
--- a/pandas/tests/test_frame.py
+++ b/pandas/tests/test_frame.py
@@ -2609,9 +2609,11 @@ class TestDataFrame(unittest.TestCase, CheckIndexing,
def test_min(self):
self._check_stat_op('min', np.min)
+ ... | Add tests for .min and .max on dataframes with integer columns. | py |
diff --git a/spyder/widgets/reporterror.py b/spyder/widgets/reporterror.py
index <HASH>..<HASH> 100644
--- a/spyder/widgets/reporterror.py
+++ b/spyder/widgets/reporterror.py
@@ -225,8 +225,7 @@ class SpyderErrorDialog(QDialog):
self.details_btn.hide()
self.close_btn = QPushButton(_('Close'))
- ... | Allow Issue reporter dialogue to be closed regardless of is_report value | py |
diff --git a/spyderlib/plugins/editor.py b/spyderlib/plugins/editor.py
index <HASH>..<HASH> 100644
--- a/spyderlib/plugins/editor.py
+++ b/spyderlib/plugins/editor.py
@@ -883,6 +883,7 @@ class Editor(SpyderPluginWidget):
for other_editorstack in self.editorstacks:
if other_editorstack is ... | Editor: todo list was not updated after loading file | py |
diff --git a/wallace/models.py b/wallace/models.py
index <HASH>..<HASH> 100644
--- a/wallace/models.py
+++ b/wallace/models.py
@@ -131,6 +131,13 @@ class Participant(Base, SharedMixin):
.filter_by(participant_id=self.id)\
.all()
+ def infos(self, type=None, failed=False):
+ nodes =... | give Participant an infos() method | py |
diff --git a/tests/core/test_states.py b/tests/core/test_states.py
index <HASH>..<HASH> 100644
--- a/tests/core/test_states.py
+++ b/tests/core/test_states.py
@@ -71,6 +71,12 @@ def test_create_state(caplog):
assert_logger_warnings_and_errors(caplog)
+ a = ExecutionState("test", state_id=10)
+ b = Execut... | feat(test_states): add equality tests | py |
diff --git a/pycrs/__init__.py b/pycrs/__init__.py
index <HASH>..<HASH> 100644
--- a/pycrs/__init__.py
+++ b/pycrs/__init__.py
@@ -9,7 +9,7 @@ common coordinate reference system (CRS) string and data source formats.
"""
-__version__ = "0.1.4"
+__version__ = "1.0.0-dev"
from . import loader | Bump to <I> dev version | py |
diff --git a/prestans/devel/__init__.py b/prestans/devel/__init__.py
index <HASH>..<HASH> 100644
--- a/prestans/devel/__init__.py
+++ b/prestans/devel/__init__.py
@@ -36,8 +36,8 @@ __all__ = ['gen', 'serve']
import argparse
import os
-import prestans.devel.serve
-import prestans.devel.gen
+#import prestans.devel.se... | moved import locations so that only required sub modules are imported | py |
diff --git a/charmhelpers/contrib/openstack/amulet/deployment.py b/charmhelpers/contrib/openstack/amulet/deployment.py
index <HASH>..<HASH> 100644
--- a/charmhelpers/contrib/openstack/amulet/deployment.py
+++ b/charmhelpers/contrib/openstack/amulet/deployment.py
@@ -79,10 +79,9 @@ class OpenStackAmuletDeployment(Amulet... | rm ceilometer-agent from origin ignore list; it supports openstack-origin | py |
diff --git a/tests/test_pipenv.py b/tests/test_pipenv.py
index <HASH>..<HASH> 100644
--- a/tests/test_pipenv.py
+++ b/tests/test_pipenv.py
@@ -1,4 +1,5 @@
import os
+from pkg_resources import parse_version
import re
import tempfile
import shutil
@@ -821,6 +822,28 @@ maya = "*"
assert c.return_code == 0... | Test causing a change of candidate in locking iteration. | py |
diff --git a/oandapyV20/contrib/requests/__init__.py b/oandapyV20/contrib/requests/__init__.py
index <HASH>..<HASH> 100644
--- a/oandapyV20/contrib/requests/__init__.py
+++ b/oandapyV20/contrib/requests/__init__.py
@@ -4,6 +4,7 @@ __all__ = [
'MITOrderRequest',
'TakeProfitOrderRequest',
'StopLossOrderReq... | TrailingStopLossOrder added to __all__ | py |
diff --git a/regions/core/mask.py b/regions/core/mask.py
index <HASH>..<HASH> 100644
--- a/regions/core/mask.py
+++ b/regions/core/mask.py
@@ -170,15 +170,15 @@ class Mask(object):
def multiply(self, data, fill_value=0.):
"""
- Apply the region mask to the input data, taking any edge effects
- ... | Minor doc updates to multiply method [skip ci] | py |
diff --git a/salt/states/file.py b/salt/states/file.py
index <HASH>..<HASH> 100644
--- a/salt/states/file.py
+++ b/salt/states/file.py
@@ -899,7 +899,7 @@ def absent(name):
return ret
-def present(name):
+def exists(name):
'''
Verify that the named file or directory is present or exists.
Ensure... | Updated function name file.present to file.exists as requested | py |
diff --git a/src/cryptojwt/jwt.py b/src/cryptojwt/jwt.py
index <HASH>..<HASH> 100755
--- a/src/cryptojwt/jwt.py
+++ b/src/cryptojwt/jwt.py
@@ -3,6 +3,7 @@ import json
import logging
import uuid
from datetime import datetime
+from datetime import timezone
from json import JSONDecodeError
from .exception import He... | Same as oidcmsg. Should be kept in sync. Needed in cryptojwt so eventually should be removed from oidcmsg. | 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("README.rst") as readme_file:
requirements = [
"strictyaml>=0.7.2",
"crontab==0.22.8",
- "aiohttp>=3.0",
+ "aiohttp>=3.0,<4",
"sentry-sdk",
"aiosmtplib",
"jinja2", | make sure to not allow aiohttp 4 alpha to get installed | py |
diff --git a/psamm/metabolicmodel.py b/psamm/metabolicmodel.py
index <HASH>..<HASH> 100644
--- a/psamm/metabolicmodel.py
+++ b/psamm/metabolicmodel.py
@@ -13,7 +13,7 @@
# You should have received a copy of the GNU General Public License
# along with PSAMM. If not, see <http://www.gnu.org/licenses/>.
#
-# Copyright ... | metabolicmodel: Add functions to create unique IDs Add functions for creating unique reaction IDs for exchange and transport reactions. | py |
diff --git a/luigi/task_register.py b/luigi/task_register.py
index <HASH>..<HASH> 100644
--- a/luigi/task_register.py
+++ b/luigi/task_register.py
@@ -126,7 +126,7 @@ class Register(abc.ABCMeta):
return "%s.%s" % (cls.task_namespace, cls.__name__)
@classmethod
- def __get_reg(cls, include_config_... | removed some unncessary stuff in task_register.py | py |
diff --git a/allauth/socialaccount/helpers.py b/allauth/socialaccount/helpers.py
index <HASH>..<HASH> 100644
--- a/allauth/socialaccount/helpers.py
+++ b/allauth/socialaccount/helpers.py
@@ -43,8 +43,10 @@ def _process_signup(request, sociallogin):
if not get_adapter(request).is_open_for_signup(
... | Add two missing ACCOUNT_TEMPLATE_EXTENSION suffix Signup closed and authentication error helpers weren't using the new ACCOUNT_TEMPLATE_EXTENSION feature correctly. This commit makes sure that also those templates can be configured to use custom template extension. | py |
diff --git a/python/dllib/src/test/dev/diff.py b/python/dllib/src/test/dev/diff.py
index <HASH>..<HASH> 100755
--- a/python/dllib/src/test/dev/diff.py
+++ b/python/dllib/src/test/dev/diff.py
@@ -33,7 +33,7 @@ def extract_scala_class(class_path):
"StaticGraph", "DynamicGraph", "DynamicConta... | support batch for regionproposal (#<I>) * support batch for regionproposal | py |
diff --git a/src/ai/backend/common/docker.py b/src/ai/backend/common/docker.py
index <HASH>..<HASH> 100644
--- a/src/ai/backend/common/docker.py
+++ b/src/ai/backend/common/docker.py
@@ -5,7 +5,10 @@ import logging
from packaging import version
import re
from typing import (
- Any, Dict, Iterable, Mapping, Option... | Define min/max kernelspec versions supported (lablup/backend.ai#<I>) * The min/max kernelspec version should only change in new release serieses (e.g., when bumping from <I> to <I>) | py |
diff --git a/pylint/checkers/variables.py b/pylint/checkers/variables.py
index <HASH>..<HASH> 100644
--- a/pylint/checkers/variables.py
+++ b/pylint/checkers/variables.py
@@ -1283,12 +1283,12 @@ class VariablesChecker(BaseChecker):
while parent is not None:
if parent is frame:
ret... | Fix E<I> test for object identity should be 'is not' | py |
diff --git a/StreamDecompressor/guesser.py b/StreamDecompressor/guesser.py
index <HASH>..<HASH> 100644
--- a/StreamDecompressor/guesser.py
+++ b/StreamDecompressor/guesser.py
@@ -32,7 +32,6 @@ class Guesser(object):
def open(self, name=None, fileobj=None):
archive = ArchiveFile(fileobj, name)
- a... | Fixed: seek() on not seekable fileobj make it crash horribly It is not that is only useless, it is just that it force the original to be seekable! (Despite the fact that it supposed to work on streams...) | py |
diff --git a/ceph_deploy/__init__.py b/ceph_deploy/__init__.py
index <HASH>..<HASH> 100644
--- a/ceph_deploy/__init__.py
+++ b/ceph_deploy/__init__.py
@@ -1,3 +1,3 @@
-__version__ = '1.5.31'
+__version__ = '1.5.32' | [RM-<I>] bumd ceph-deploy version in __init__ | py |
diff --git a/src/arcrest/manageorg/_content.py b/src/arcrest/manageorg/_content.py
index <HASH>..<HASH> 100644
--- a/src/arcrest/manageorg/_content.py
+++ b/src/arcrest/manageorg/_content.py
@@ -2469,8 +2469,12 @@ class User(BaseAGOLClass):
securityHandler=self._securityHandler,
... | fixed issue where createService isn't returning UserItem class. | py |
diff --git a/tests/integration/test_register_persister.py b/tests/integration/test_register_persister.py
index <HASH>..<HASH> 100644
--- a/tests/integration/test_register_persister.py
+++ b/tests/integration/test_register_persister.py
@@ -27,7 +27,6 @@ class CustomFilesystemPersister(object):
def test_save_cassette_... | delete ipdb.set_trace | py |
diff --git a/canvasapi/page.py b/canvasapi/page.py
index <HASH>..<HASH> 100644
--- a/canvasapi/page.py
+++ b/canvasapi/page.py
@@ -30,7 +30,7 @@ class Page(CanvasObject):
)
page_json = response.json()
- page_json.update({'course_id': self.id})
+ page_json.update({'course_id': self.cour... | Fixed an error where editing a page would try to access a non-existant ID instead of the course ID | py |
diff --git a/auto_lens/profile.py b/auto_lens/profile.py
index <HASH>..<HASH> 100644
--- a/auto_lens/profile.py
+++ b/auto_lens/profile.py
@@ -703,7 +703,6 @@ class MassProfile(object):
return array_for_function(self.compute_deflection_angle, x_min, y_min, x_max, y_max, pixel_scale)
# noinspection PyMet... | removed subgrid decorator from abstract defl method | py |
diff --git a/pulsectl/pulsectl.py b/pulsectl/pulsectl.py
index <HASH>..<HASH> 100644
--- a/pulsectl/pulsectl.py
+++ b/pulsectl/pulsectl.py
@@ -112,7 +112,7 @@ class PulseModuleInfo(PulseObject):
class PulseSinkInfo(PulseObject):
c_struct_fields = ( 'index name mute'
' description sample_spec owner_module latency ... | Export the 'card' properties of sources and sinks into the Python layer. | py |
diff --git a/PyFunceble.py b/PyFunceble.py
index <HASH>..<HASH> 100755
--- a/PyFunceble.py
+++ b/PyFunceble.py
@@ -1028,10 +1028,7 @@ class Lookup(object):
req = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
try:
- try:
- req.connect((whois_server, 43))
... | Fix ConnectionResetError not handled as I implemented the last fix into the wrong line | py |
diff --git a/webdriverwrapper/downloadfile.py b/webdriverwrapper/downloadfile.py
index <HASH>..<HASH> 100644
--- a/webdriverwrapper/downloadfile.py
+++ b/webdriverwrapper/downloadfile.py
@@ -7,7 +7,7 @@ except ImportError:
from urllib.parse import urlencode
from urllib.request import Request, urlopen
-__all... | Added __all__ | py |
diff --git a/indra/tests/test_pybel_api.py b/indra/tests/test_pybel_api.py
index <HASH>..<HASH> 100644
--- a/indra/tests/test_pybel_api.py
+++ b/indra/tests/test_pybel_api.py
@@ -414,6 +414,7 @@ def test_doi_evidence():
mek = Protein(name='MAP2K1', namespace='HGNC')
erk = Protein(name='MAPK1', namespace='HGNC... | Ensure metadata in BEL graph test data | py |
diff --git a/goristock.py b/goristock.py
index <HASH>..<HASH> 100644
--- a/goristock.py
+++ b/goristock.py
@@ -149,11 +149,11 @@ class goristock(object):
# set memcache expire
now = datetime.today() + timedelta(hours = 8)
- if now.hour >= 14 and now.minute >= 30:
+ if now >= datetime(now.year, now.mon... | Fixed determine <I>:<I> is fault. | py |
diff --git a/messages/cli.py b/messages/cli.py
index <HASH>..<HASH> 100644
--- a/messages/cli.py
+++ b/messages/cli.py
@@ -65,7 +65,7 @@ def list_types():
"""Prints all available message types."""
click.echo('Available message types:')
for m in MESSAGES:
- click.echo('\t* ' + m)
+ click.ech... | modifies spacing in list_types() from a tab to four spaces | py |
diff --git a/two_factor/views/core.py b/two_factor/views/core.py
index <HASH>..<HASH> 100644
--- a/two_factor/views/core.py
+++ b/two_factor/views/core.py
@@ -7,7 +7,7 @@ from django.contrib.auth import login as login, REDIRECT_FIELD_NAME
from django.contrib.auth.decorators import login_required
from django.contrib.a... | Fix #<I>: Redirect to 2FA profile page after removing a phone | py |
diff --git a/openquake/commands/plot.py b/openquake/commands/plot.py
index <HASH>..<HASH> 100644
--- a/openquake/commands/plot.py
+++ b/openquake/commands/plot.py
@@ -160,13 +160,14 @@ def make_figure_disagg(extractors, what):
oq = extractors[0].oqparam
disagg = extractors[0].get(what)
[sid] = disagg.sit... | Improved disagg plotting [skip CI] | py |
diff --git a/socketio/server.py b/socketio/server.py
index <HASH>..<HASH> 100644
--- a/socketio/server.py
+++ b/socketio/server.py
@@ -34,9 +34,10 @@ class SocketIOServer(WSGIServer):
self.namespace = kwargs.pop('resource', kwargs.pop('namespace',
'so... | Fixed policy server host/port hardcoding issue | py |
diff --git a/requests_kerberos/kerberos_.py b/requests_kerberos/kerberos_.py
index <HASH>..<HASH> 100644
--- a/requests_kerberos/kerberos_.py
+++ b/requests_kerberos/kerberos_.py
@@ -245,13 +245,14 @@ class HTTPKerberosAuth(AuthBase):
response.request.body.seek(self.pos)
if response.status_code ... | Prevent infinite recursion when server responds with <I> to an authentication attempt. | py |
diff --git a/opterator.py b/opterator.py
index <HASH>..<HASH> 100644
--- a/opterator.py
+++ b/opterator.py
@@ -22,6 +22,8 @@ from optparse import OptionParser
import inspect
import sys
+__version__ = "0.1"
+
def opterate(func):
'''A decorator for a main function entry point to a script. It tries to
autom... | Call it version <I>... still pretty rough, really. | py |
diff --git a/jupyter_http_over_ws/handlers.py b/jupyter_http_over_ws/handlers.py
index <HASH>..<HASH> 100644
--- a/jupyter_http_over_ws/handlers.py
+++ b/jupyter_http_over_ws/handlers.py
@@ -31,7 +31,7 @@ HANDLER_VERSION = version.StrictVersion('0.0.1a1')
class HttpOverWebSocketHandler(websocket.WebSocketHandler,
... | Project import generated by Copybara. PiperOrigin-RevId: <I> | py |
diff --git a/leutile.py b/leutile.py
index <HASH>..<HASH> 100755
--- a/leutile.py
+++ b/leutile.py
@@ -194,11 +194,24 @@ class Counter:
outfile.write( "%s: %d\n" % (k, v) )
def sorted_by_count(self):
+ ''' Return a list of 2-element arrays that are sorted by count in descending order
+
+ ... | Add group by count feature to Counter class | py |
diff --git a/stacker/blueprints/empire/policies.py b/stacker/blueprints/empire/policies.py
index <HASH>..<HASH> 100644
--- a/stacker/blueprints/empire/policies.py
+++ b/stacker/blueprints/empire/policies.py
@@ -17,7 +17,7 @@ def ecs_agent_policy():
Action=[ecs.CreateCluster, ecs.RegisterContainerInstan... | Fixes ECS Agent stats for Empire | py |
diff --git a/torchvision/datasets/folder.py b/torchvision/datasets/folder.py
index <HASH>..<HASH> 100644
--- a/torchvision/datasets/folder.py
+++ b/torchvision/datasets/folder.py
@@ -28,11 +28,12 @@ def make_dataset(dir, class_to_idx):
if not os.path.isdir(d):
continue
- for filename in o... | recursive dir walking (#<I>) | py |
diff --git a/troposphere/cloudfront.py b/troposphere/cloudfront.py
index <HASH>..<HASH> 100644
--- a/troposphere/cloudfront.py
+++ b/troposphere/cloudfront.py
@@ -141,6 +141,7 @@ class DistributionConfig(AWSProperty):
'DefaultRootObject': (basestring, False),
'Enabled': (boolean, True),
'Http... | CloudFront: add IPV6Enabled property for DistributionConfig (#<I>) | py |
diff --git a/OpenPNM/Network/__TestNet__.py b/OpenPNM/Network/__TestNet__.py
index <HASH>..<HASH> 100644
--- a/OpenPNM/Network/__TestNet__.py
+++ b/OpenPNM/Network/__TestNet__.py
@@ -107,8 +107,7 @@ class TestNet(GenericNetwork):
ps0 = self['pore.'+item][ps[:,0]]
ps1 = self['pore.'+item][ps[:,... | Fixed throat label addition during TestNet generation Former-commit-id: f9a<I>f<I>cf8b9e<I>c<I>d4d<I>b<I>cbfb Former-commit-id: cc<I>a2bec<I>b<I>c<I>ba7cdb3f2e8c<I>f9c | py |
diff --git a/quilt/db.py b/quilt/db.py
index <HASH>..<HASH> 100644
--- a/quilt/db.py
+++ b/quilt/db.py
@@ -81,6 +81,13 @@ class PatchSeries(object):
""" Add a patch to the patches list """
self._patches.append(patch_name)
+ def insert_patches(self, patches):
+ """ Insert list of patches at... | Add PachtSeries method to insert a list of patches The patches are inserted at the front of the current patches list. | py |
diff --git a/salt/cloud/clouds/cloudstack.py b/salt/cloud/clouds/cloudstack.py
index <HASH>..<HASH> 100644
--- a/salt/cloud/clouds/cloudstack.py
+++ b/salt/cloud/clouds/cloudstack.py
@@ -250,7 +250,7 @@ def create(vm_):
vm_['name'], exc.message
),
# Show the traceback if the d... | Use `exc_info_on_loglevel` instead of `exc_info` | py |
diff --git a/angr/engines/vex/engine.py b/angr/engines/vex/engine.py
index <HASH>..<HASH> 100644
--- a/angr/engines/vex/engine.py
+++ b/angr/engines/vex/engine.py
@@ -579,7 +579,7 @@ class SimEngineVEX(SimEngine):
first_imark = True
for stmt in irsb.statements:
- if isinstance(stmt, pyvex... | SimEngineVEX._first_stop_point(): Switch from isinstance() to type() to make it faster. (#<I>) | py |
diff --git a/tests/test_send_recv_dialog_gui.py b/tests/test_send_recv_dialog_gui.py
index <HASH>..<HASH> 100644
--- a/tests/test_send_recv_dialog_gui.py
+++ b/tests/test_send_recv_dialog_gui.py
@@ -220,4 +220,4 @@ class TestSendRecvDialog(unittest.TestCase):
else:
self.assertEqual(dialog.... | increase timeout to prevent segfaults | py |
diff --git a/rootpy/plotting/root2matplotlib.py b/rootpy/plotting/root2matplotlib.py
index <HASH>..<HASH> 100644
--- a/rootpy/plotting/root2matplotlib.py
+++ b/rootpy/plotting/root2matplotlib.py
@@ -5,13 +5,12 @@ This module provides functions that allow the plotting of ROOT histograms and
graphs with `matplotlib <htt... | Clarify how to use matplotlib non-interactively It's only necessary to select one of the non-interactive backends; `pyplot.ioff()` has no additional effect once a non-interactive backend has been selected. | py |
diff --git a/cicoclient/cli.py b/cicoclient/cli.py
index <HASH>..<HASH> 100644
--- a/cicoclient/cli.py
+++ b/cicoclient/cli.py
@@ -132,7 +132,7 @@ class NodeGet(Lister):
columns = ('host_id', 'hostname', 'ip_address', 'chassis',
'used_count', 'current_state', 'comment', 'distro',
... | add the console_port property to the columns we get back from doing a /Node/get or a /Node/done | py |
diff --git a/locksmith/hub/dataviews.py b/locksmith/hub/dataviews.py
index <HASH>..<HASH> 100644
--- a/locksmith/hub/dataviews.py
+++ b/locksmith/hub/dataviews.py
@@ -190,7 +190,7 @@ def keys(request):
qry = qry.order_by(sort_spec)
result = {
- 'iTotalRecord': Key.objects.count(),
+ 'iTota... | Fix typo for dataTables field. | py |
diff --git a/cobra/core/Solution.py b/cobra/core/Solution.py
index <HASH>..<HASH> 100644
--- a/cobra/core/Solution.py
+++ b/cobra/core/Solution.py
@@ -38,7 +38,16 @@ class Solution(Object):
self.x_dict = x_dict
self.status = status
self.y = y
- self.y_dict = y_dict
+ self.y_dic... | added a function to solution that allows it to annotate the model metabolites and reactions with the results | py |
diff --git a/holoviews/core/options.py b/holoviews/core/options.py
index <HASH>..<HASH> 100644
--- a/holoviews/core/options.py
+++ b/holoviews/core/options.py
@@ -717,15 +717,6 @@ class Store(object):
cls.load_counter_offset = None
return val
-
- @classmethod
- def info(cls, obj, ansi=True, ba... | Moved the info method on Store to a more suitable location | py |
diff --git a/tests/test_pipenv.py b/tests/test_pipenv.py
index <HASH>..<HASH> 100644
--- a/tests/test_pipenv.py
+++ b/tests/test_pipenv.py
@@ -843,6 +843,29 @@ requests = "*"
c = p.pipenv('install')
assert c.return_code == 0
+ @pytest.mark.extras
+ @pytest.mark.lock
+ @pytest.mark.r... | Test confirming that deep extras resolves works | py |
diff --git a/src/_pytest/assertion/rewrite.py b/src/_pytest/assertion/rewrite.py
index <HASH>..<HASH> 100644
--- a/src/_pytest/assertion/rewrite.py
+++ b/src/_pytest/assertion/rewrite.py
@@ -964,7 +964,7 @@ warn_explicit(
"""
visit `ast.Call` nodes on Python3.5 and after
"""
- if call.... | Check calls to all only if it's a name and not an attribute | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -116,8 +116,8 @@ azure_data_lake = [
]
cassandra = ['cassandra-driver>=3.13.0']
celery = [
- 'celery>=4.1.1',
- 'flower>=0.7.3'
+ 'celery>=4.1.1, <4.2.0',
+ 'flower>=0.7.3, <1.0'
]
cgroups = [
'cgroupspy>... | [AIRFLOW-<I>][AIRFLOW-<I>] Guard against next major release of Celery, Flower Closes #<I> from tedmiston/celery-flower-guard | py |
diff --git a/validator/sawtooth_validator/journal/publisher.py b/validator/sawtooth_validator/journal/publisher.py
index <HASH>..<HASH> 100644
--- a/validator/sawtooth_validator/journal/publisher.py
+++ b/validator/sawtooth_validator/journal/publisher.py
@@ -701,6 +701,12 @@ class BlockPublisher(object):
sel... | Refactor building check into function Placing the mechanics for checking whether a block is being built behind a function improves readability and allows the mechanics to change. | py |
diff --git a/datapackage_pipelines/celery_tasks/celery_tasks.py b/datapackage_pipelines/celery_tasks/celery_tasks.py
index <HASH>..<HASH> 100644
--- a/datapackage_pipelines/celery_tasks/celery_tasks.py
+++ b/datapackage_pipelines/celery_tasks/celery_tasks.py
@@ -44,7 +44,6 @@ def update_pipelines(action, completed_pipe... | Only mark as run pipelines without errors | py |
diff --git a/src/rituals/invoke_tasks.py b/src/rituals/invoke_tasks.py
index <HASH>..<HASH> 100644
--- a/src/rituals/invoke_tasks.py
+++ b/src/rituals/invoke_tasks.py
@@ -180,7 +180,7 @@ def bump(verbose=False):
pkg_info_file = line.split(None, 1)[1]
with io.open(pkg_info_file, encodin... | :zzz: pass verbose flag to setup develop call | py |
diff --git a/bokeh/properties.py b/bokeh/properties.py
index <HASH>..<HASH> 100644
--- a/bokeh/properties.py
+++ b/bokeh/properties.py
@@ -168,7 +168,8 @@ class PropertyDescriptor(PropertyGenerator):
return default()
def _raw_default(self):
- """The raw_default() needs to be validated and tra... | Wrap long line in properties.py | py |
diff --git a/psqlparse/nodes/primnodes.py b/psqlparse/nodes/primnodes.py
index <HASH>..<HASH> 100644
--- a/psqlparse/nodes/primnodes.py
+++ b/psqlparse/nodes/primnodes.py
@@ -18,7 +18,7 @@ class RangeVar(Node):
self.relname = obj.get('relname')
self.inh_opt = obj.get('inhOpt')
self.relpersist... | Properly build the alias value, it's not a scalar | py |
diff --git a/bugzilla/base.py b/bugzilla/base.py
index <HASH>..<HASH> 100644
--- a/bugzilla/base.py
+++ b/bugzilla/base.py
@@ -1101,7 +1101,7 @@ class BugzillaBase(object):
]:
if val is not None:
raise RuntimeError("'%s' search not supported by this "
- ... | base: Clarify that unsupported searches are talking about XMLRPC (bz <I>) | py |
diff --git a/tests/test_module.py b/tests/test_module.py
index <HASH>..<HASH> 100644
--- a/tests/test_module.py
+++ b/tests/test_module.py
@@ -24,6 +24,9 @@ def test_quirks():
result = geodata.get_location('24.231.175.176')
assert result['city'] == 'Spruce'
+ result = geodata.get_location('109.207.230.24... | Add a quirk test (see #<I>) | py |
diff --git a/synapse/lib/plugins.py b/synapse/lib/plugins.py
index <HASH>..<HASH> 100644
--- a/synapse/lib/plugins.py
+++ b/synapse/lib/plugins.py
@@ -84,7 +84,7 @@ class Plugins(s_eventbus.EventBus):
try:
ret.append( func(*args,**kwargs) )
except Exception as e:
- ... | fix for logging call to exception() | py |
diff --git a/glassdoor/gd.py b/glassdoor/gd.py
index <HASH>..<HASH> 100644
--- a/glassdoor/gd.py
+++ b/glassdoor/gd.py
@@ -214,6 +214,8 @@ def parse_salary(soup):
mean_td = soup.findAll('td', selector_td)[0]
mean_span = mean_td.findAll('span', selector_span)[0]
mean = mean_span.text
+ ... | Handle salary rows with mean of 'n/a' | py |
diff --git a/src/python/test/test_dxpy.py b/src/python/test/test_dxpy.py
index <HASH>..<HASH> 100755
--- a/src/python/test/test_dxpy.py
+++ b/src/python/test/test_dxpy.py
@@ -1301,7 +1301,13 @@ def main(number):
desc = override_folders_dxanalysis.describe()
self.assertEqual(desc['stages'][0]['executio... | Fix flaky test: analysis-xxxx/describe may not have all stage metdata | py |
diff --git a/jellyfish/_jellyfish.py b/jellyfish/_jellyfish.py
index <HASH>..<HASH> 100644
--- a/jellyfish/_jellyfish.py
+++ b/jellyfish/_jellyfish.py
@@ -278,7 +278,7 @@ def nysiis(s):
elif ch == 'P' and i+1 < len(s) and s[i+1] == 'H':
ch = 'F'
i += 1
- elif ch == 'H' and (s[i... | Fixed NYSIIS encoding of names ending in H in _jellyfish.py by adding additional or clause on line <I>: i<I> == len(s). | py |
diff --git a/pyked/converters.py b/pyked/converters.py
index <HASH>..<HASH> 100644
--- a/pyked/converters.py
+++ b/pyked/converters.py
@@ -248,7 +248,7 @@ def get_ignition_type(root):
Returns:
properties (`dict`): Dictionary with ignition type/target information
"""
- ignition = {}
+ properties... | make dict in get_ignition_type named consistently | py |
diff --git a/review/models.py b/review/models.py
index <HASH>..<HASH> 100644
--- a/review/models.py
+++ b/review/models.py
@@ -115,7 +115,15 @@ class ReviewExtraInfo(models.Model):
class VotingCategory(SimpleTranslationMixin, models.Model):
- """Represents a voting category."""
+ """
+ Represents a voting... | Added some text to VotingCategory docstring. | py |
diff --git a/chess/move_info.py b/chess/move_info.py
index <HASH>..<HASH> 100644
--- a/chess/move_info.py
+++ b/chess/move_info.py
@@ -119,7 +119,7 @@ class MoveInfo(object):
return hash(repr(self))
def __eq__(self, other):
- return self.get_move() == other.get_move()
+ return (self.get_mo... | fixup! Add an equivalence relation to move infos. | py |
diff --git a/flask_sslify.py b/flask_sslify.py
index <HASH>..<HASH> 100644
--- a/flask_sslify.py
+++ b/flask_sslify.py
@@ -51,7 +51,8 @@ class SSLify(object):
def set_hsts_header(self, response):
"""Adds HSTS header to each response."""
- response.headers.setdefault('Strict-Transport-Security', s... | Don't send HSTS headers over non-HTTPS connections. This fixes #6. | py |
diff --git a/pydle/features/account.py b/pydle/features/account.py
index <HASH>..<HASH> 100644
--- a/pydle/features/account.py
+++ b/pydle/features/account.py
@@ -22,14 +22,14 @@ class AccountSupport(rfc1459.RFC1459Support):
## IRC API.
def whois(self, nickname):
- r = super().whois(nickname)
+ ... | Fix variable naming in features.account. I'm a nitpicking bastard. | py |
diff --git a/soundcloud_cli/cli.py b/soundcloud_cli/cli.py
index <HASH>..<HASH> 100644
--- a/soundcloud_cli/cli.py
+++ b/soundcloud_cli/cli.py
@@ -148,8 +148,9 @@ def command_upload(args):
url = res['permalink_url']
print(url)
- utils.open_browser(url)
- utils.copy_to_clipboard(url)
+ if not args.q... | allow quiet uploads without opening browser and copying link to clipboard using --quiet flag | py |
diff --git a/tests/run_doctests.py b/tests/run_doctests.py
index <HASH>..<HASH> 100755
--- a/tests/run_doctests.py
+++ b/tests/run_doctests.py
@@ -12,6 +12,11 @@ modules = [
]
if __name__ == '__main__':
+ failed = False
for module in modules:
__import__(module)
- doctest.testmod(sys.modules[... | running doctests returns exit code 1 in the case of failure, issue #<I> | py |
diff --git a/storm/__main__.py b/storm/__main__.py
index <HASH>..<HASH> 100644
--- a/storm/__main__.py
+++ b/storm/__main__.py
@@ -180,8 +180,8 @@ def list(config=None):
except Exception as error:
print(get_formatted_message(str(error), 'error'), file=sys.stderr)
-@command('search', config=None)
-def se... | pass config argument properly to search and delete_all commands. thanks @pawciobiel for the patch. | py |
diff --git a/deployment/update/update.py b/deployment/update/update.py
index <HASH>..<HASH> 100644
--- a/deployment/update/update.py
+++ b/deployment/update/update.py
@@ -37,8 +37,17 @@ def update_code(ctx, tag):
def update_assets(ctx):
- grunt_path = os.path.join(th_ui_src, 'grunt')
- ctx.local("{0} build".... | modified grunt build to run from the treeherder-ui src dir | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -10,13 +10,13 @@ from pathlib import Path
from pkg_resources import parse_version
from setuptools import find_packages, setup
-is_py37 = sys.version_info.major == 3 and sys.version_info.minor == 7
on_rtd = os.environ.get(... | Do not install `dataclasses` for python >= <I> (#<I>) | py |
diff --git a/vivarium/test_util.py b/vivarium/test_util.py
index <HASH>..<HASH> 100644
--- a/vivarium/test_util.py
+++ b/vivarium/test_util.py
@@ -134,16 +134,16 @@ class TestPopulation:
@listens_for('initialize_simulants', priority=0)
@uses_columns(['age', 'sex', 'location', 'alive', 'entrance_time', 'exit_t... | Update to test population to reflect configuration changes | py |
diff --git a/dpxdt/server/work_queue.py b/dpxdt/server/work_queue.py
index <HASH>..<HASH> 100644
--- a/dpxdt/server/work_queue.py
+++ b/dpxdt/server/work_queue.py
@@ -403,7 +403,7 @@ def manage_work_queue(queue_name):
item_list = list(
WorkQueue.query
.filter_by(queue_name=queue_name)
- .o... | Show tasks in order of creation, descending | py |
diff --git a/openquake/risklib/scientific.py b/openquake/risklib/scientific.py
index <HASH>..<HASH> 100644
--- a/openquake/risklib/scientific.py
+++ b/openquake/risklib/scientific.py
@@ -894,7 +894,6 @@ def scenario_damage(fragility_functions, gmvs):
:returns: an array of (D, E) damage fractions
"""
lst ... | Removed comment [skip CI] | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,10 +1,11 @@
+import io
from setuptools import setup
from webvtt import __version__
def readme():
- with open('README.rst', 'r', encoding='utf-8') as f:
+ with io.open('README.rst', 'r', encoding='utf-8') as f... | Use io.open for reading the readme | py |
diff --git a/xero/auth.py b/xero/auth.py
index <HASH>..<HASH> 100644
--- a/xero/auth.py
+++ b/xero/auth.py
@@ -318,8 +318,11 @@ class PartnerCredentials(PublicCredentials):
>>> rsa_key = "-----BEGIN RSA PRIVATE KEY----- ..."
- 2) You'll need to pass a tuple to the Entrust certificate pair.
-
+ 2) c... | DocString updated in Auth.py Mention that client_cert is no longer needed but remains for backwards compatibility. | py |
diff --git a/topydo/lib/RelativeDate.py b/topydo/lib/RelativeDate.py
index <HASH>..<HASH> 100644
--- a/topydo/lib/RelativeDate.py
+++ b/topydo/lib/RelativeDate.py
@@ -29,7 +29,7 @@ def _add_months(p_sourcedate, p_months):
https://stackoverflow.com/questions/4130922/how-to-increment-datetime-month-in-python
""... | Use truncated division. (Implicit in Python 2, has to be made explicit with // in Python 3). | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -2,8 +2,8 @@
# -*- coding: utf-8 -*-
__title__ = 'baidupcsapi'
-__version__ = '0.3.7'
-__author__ = 'liyangjie,mozillazg,capric8416'
+__version__ = '0.3.8'
+__author__ = 'liyangjie,mozillazg,capric8416,a1exwang'
__license... | add main contributor to setup.py | py |
diff --git a/tests/conftest.py b/tests/conftest.py
index <HASH>..<HASH> 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -86,7 +86,7 @@ def _generate_filespecs(file_count, piece_size, piece_count, fuzzy=False):
piece_size * piece_count // file_count + 1}
if file_count <= len(filesizes):
... | _generate_filespecs(): Remove unneeded max() and int() | py |
diff --git a/websocket.py b/websocket.py
index <HASH>..<HASH> 100644
--- a/websocket.py
+++ b/websocket.py
@@ -185,9 +185,9 @@ class Protocol(BaseProtocol, object):
pass
def sendMessage(self, msg):
+ self.commands.append(msg)
if not self.websocket_ready:
return
- self.commands.append(msg)
... | Add message to queue if handcheck is not finished. | py |
diff --git a/test_tinymce/settings.py b/test_tinymce/settings.py
index <HASH>..<HASH> 100644
--- a/test_tinymce/settings.py
+++ b/test_tinymce/settings.py
@@ -55,6 +55,8 @@ MIDDLEWARE_CLASSES = [
'django.middleware.clickjacking.XFrameOptionsMiddleware',
]
+MIDDLEWARE = MIDDLEWARE_CLASSES
+
ROOT_URLCONF = 'test... | Add MIDDLEWARE setting for compatibility with Django <I> and above | py |
diff --git a/enum_custom.py b/enum_custom.py
index <HASH>..<HASH> 100644
--- a/enum_custom.py
+++ b/enum_custom.py
@@ -37,12 +37,12 @@ class _CasInsensitiveMultiValueMeta(EnumMeta):
def __init__(self, clsname, bases, classdict):
# make sure we only have tuple values, not single values
for member ... | Renamed variable to better reflect it's content. | py |
diff --git a/vstutils/settings.py b/vstutils/settings.py
index <HASH>..<HASH> 100644
--- a/vstutils/settings.py
+++ b/vstutils/settings.py
@@ -239,7 +239,6 @@ config: cconfig.ConfigParserC = cconfig.ConfigParserC(
'worker': {
'app': '{PROG_NAME}.wapp:app',
'loglevel': '{this[main][log... | Remove logfile from default worker options in settings | py |
diff --git a/freeopcuaclient/mainwindow.py b/freeopcuaclient/mainwindow.py
index <HASH>..<HASH> 100644
--- a/freeopcuaclient/mainwindow.py
+++ b/freeopcuaclient/mainwindow.py
@@ -175,7 +175,7 @@ class AttrsUI(object):
self.model.clear()
self.model.setHorizontalHeaderLabels(['Attribute', 'Value'])
... | show representaiton instead of str, gives more information for enum | py |
diff --git a/transfer/augment_arrays.py b/transfer/augment_arrays.py
index <HASH>..<HASH> 100644
--- a/transfer/augment_arrays.py
+++ b/transfer/augment_arrays.py
@@ -68,7 +68,8 @@ def augment_arrays(project):
print('Generating image augmentations:')
for img_idx, (array, label, label_name) in tqdm(e... | Fix minor bug with dashes in label names | py |
diff --git a/describe/mock/new_mock.py b/describe/mock/new_mock.py
index <HASH>..<HASH> 100644
--- a/describe/mock/new_mock.py
+++ b/describe/mock/new_mock.py
@@ -106,10 +106,7 @@ class Mock(mixins.InplaceOperatorsMixin, mixins.OperatorsMixin, mixins.ReverseOp
def __init__(self, klass=None, repository=repos.defaul... | MagicMock is always used internally now. | py |
diff --git a/src/flapjack/encoders.py b/src/flapjack/encoders.py
index <HASH>..<HASH> 100644
--- a/src/flapjack/encoders.py
+++ b/src/flapjack/encoders.py
@@ -92,6 +92,10 @@ class Xml(transcoders.Xml, Encoder):
root.append(sub)
#else
else:
+ if isins... | Crtime formatting implemented for XML output | py |
diff --git a/tensorflow_probability/python/bijectors/kumaraswamy.py b/tensorflow_probability/python/bijectors/kumaraswamy.py
index <HASH>..<HASH> 100644
--- a/tensorflow_probability/python/bijectors/kumaraswamy.py
+++ b/tensorflow_probability/python/bijectors/kumaraswamy.py
@@ -30,8 +30,8 @@ __all__ = [
class Kumarasw... | Fix some minor formatting on Kumaraswamy. PiperOrigin-RevId: <I> | py |
diff --git a/mapi/endpoints.py b/mapi/endpoints.py
index <HASH>..<HASH> 100644
--- a/mapi/endpoints.py
+++ b/mapi/endpoints.py
@@ -346,7 +346,6 @@ def tvdb_series_episodes_query(token, id_tvdb, episode=None, season=None,
'Authorization': 'Bearer %s' % token
}
parameters = {
- 'id': id_tvdb,
... | Removes 'id' from json body for tvdb_series_episodes_query endpoint It is part of the query string itself | py |
diff --git a/cmd2.py b/cmd2.py
index <HASH>..<HASH> 100755
--- a/cmd2.py
+++ b/cmd2.py
@@ -1610,8 +1610,11 @@ class Cmd(cmd.Cmd):
if arg:
# If a character indicating a slice is present, retrieve a slice of the history
if '..' in arg or ':' in arg:
- # Get a slice of his... | Fix a bug in history command This is a bug that was introduced recently when the functionality of the list command was merged with the history command. This prevents an unhandled exception crash under certain unlikely but possible circumstances. | py |
diff --git a/huey/api.py b/huey/api.py
index <HASH>..<HASH> 100644
--- a/huey/api.py
+++ b/huey/api.py
@@ -6,7 +6,7 @@ import time
import traceback
import uuid
from functools import wraps
-
+from inspect import getargspec
from huey.backends.dummy import DummySchedule
from huey.exceptions import DataStoreGetExcepti... | try to make huey task functions self aware. | py |
diff --git a/glymur/lib/c.py b/glymur/lib/c.py
index <HASH>..<HASH> 100644
--- a/glymur/lib/c.py
+++ b/glymur/lib/c.py
@@ -4,9 +4,13 @@ Wraps fopen and fclose functions in libc.
import ctypes
import ctypes.util
+import sys
-LIBC_PATH = ctypes.util.find_library('c')
-C_LIB = ctypes.CDLL(LIBC_PATH)
+if sys.platform... | Fix import of glymur.lib.c on win<I> Puzzling that this was never noticed before. Closes-Issue: #<I> | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.