diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/testing/test_pdb.py b/testing/test_pdb.py
index <HASH>..<HASH> 100644
--- a/testing/test_pdb.py
+++ b/testing/test_pdb.py
@@ -80,6 +80,7 @@ def xpm():
def runpdb(func, input):
oldstdin = sys.stdin
oldstdout = sys.stdout
+ oldstderr = sys.stderr
if sys.version_info < (3, ):
tex... | tests: fail if there is anything on stderr This is meant to ensure that tests are not missing anything, e.g. a `ValueError` from `signal` when being used from a non-main thread. | py |
diff --git a/pysparkling/sql/column.py b/pysparkling/sql/column.py
index <HASH>..<HASH> 100644
--- a/pysparkling/sql/column.py
+++ b/pysparkling/sql/column.py
@@ -1,4 +1,5 @@
from pysparkling.sql.expressions.expressions import Expression
+from pysparkling.sql.expressions.fields import find_position_in_schema
from pys... | Implement an helper Column find position in schema method | py |
diff --git a/siphon/http_util.py b/siphon/http_util.py
index <HASH>..<HASH> 100644
--- a/siphon/http_util.py
+++ b/siphon/http_util.py
@@ -458,9 +458,10 @@ class HTTPEndPoint(object):
text = resp.reason
else:
text = resp.text
- raise requests.HTTPError('Error ac... | ENH: Clarify error message (Fixes #<I>) Make it clearer that the text is what the server returned. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -67,6 +67,7 @@ setup(
version=find_version('ionosenterprise', '__init__.py'),
description='IonosEnterprise API Client Library for Python',
long_description=long_desc,
+ long_description_content_type='text/mar... | Switched description type for the package to markdown. | py |
diff --git a/scheduler/models.py b/scheduler/models.py
index <HASH>..<HASH> 100644
--- a/scheduler/models.py
+++ b/scheduler/models.py
@@ -116,6 +116,7 @@ class Schedule(models.Model):
@receiver(pre_save, sender=Schedule)
def schedule_saved(sender, instance, **kwargs):
if instance.cron_definition is not None and... | update pre_save to allow blank field | py |
diff --git a/mongo_connector/doc_managers/doc_manager_simulator.py b/mongo_connector/doc_managers/doc_manager_simulator.py
index <HASH>..<HASH> 100644
--- a/mongo_connector/doc_managers/doc_manager_simulator.py
+++ b/mongo_connector/doc_managers/doc_manager_simulator.py
@@ -163,6 +163,9 @@ class DocManager(DocManagerBa... | Add dummy handle_command method to the DocManager simulator. | py |
diff --git a/rootpy/tree/treeobject.py b/rootpy/tree/treeobject.py
index <HASH>..<HASH> 100644
--- a/rootpy/tree/treeobject.py
+++ b/rootpy/tree/treeobject.py
@@ -106,6 +106,10 @@ class TreeCollection(object):
self.tree_object_cls = mix_classes(TreeCollectionObject, mix)
__MIXINS__[mix... | nonzero meth for TreeCollection | py |
diff --git a/patchboard/tests/unit_tests/test_decoration.py b/patchboard/tests/unit_tests/test_decoration.py
index <HASH>..<HASH> 100644
--- a/patchboard/tests/unit_tests/test_decoration.py
+++ b/patchboard/tests/unit_tests/test_decoration.py
@@ -11,7 +11,7 @@ import pytest
from inspect import ismethod
-#from patc... | Fix tests for the propertized attributes | py |
diff --git a/tests/test_generate_context.py b/tests/test_generate_context.py
index <HASH>..<HASH> 100644
--- a/tests/test_generate_context.py
+++ b/tests/test_generate_context.py
@@ -13,6 +13,7 @@ TestGenerateContext.test_generate_context_with_default_and_extra
"""
from __future__ import unicode_literals
+import co... | Implement a test for unused vars in apply_overwrites | py |
diff --git a/zxbparser.py b/zxbparser.py
index <HASH>..<HASH> 100755
--- a/zxbparser.py
+++ b/zxbparser.py
@@ -254,7 +254,7 @@ def make_call(id_, lineno, args):
if entry is None:
return None
- if entry.class_ is None and entry.type_ == TYPE.string and len(args) == 1:
+ if entry.class_ is CLASS.unk... | Correctly compiles undeclared SUBSTR access. | py |
diff --git a/haphilipsjs/__init__.py b/haphilipsjs/__init__.py
index <HASH>..<HASH> 100644
--- a/haphilipsjs/__init__.py
+++ b/haphilipsjs/__init__.py
@@ -921,8 +921,9 @@ class PhilipsTV(object):
await self.getAmbilightCached()
if self.quirk_ambilight_mode_ignored:
- self.ambilight_mode_r... | Hope the mode stays in expert when setting cached | py |
diff --git a/holoviews/plotting/viewplots.py b/holoviews/plotting/viewplots.py
index <HASH>..<HASH> 100644
--- a/holoviews/plotting/viewplots.py
+++ b/holoviews/plotting/viewplots.py
@@ -385,7 +385,7 @@ class GridPlot(Plot):
def _grid_axis(self):
- fig = self.handles.get('fig', plt.gcf())
+ fig =... | Eliminated unnecessary call to plt.gcf() | py |
diff --git a/pyemma/coordinates/data/py_csv_reader.py b/pyemma/coordinates/data/py_csv_reader.py
index <HASH>..<HASH> 100644
--- a/pyemma/coordinates/data/py_csv_reader.py
+++ b/pyemma/coordinates/data/py_csv_reader.py
@@ -69,10 +69,6 @@ class _csv_chunked_numpy_iterator:
def _convert_to_np_chunk(self, list_of_s... | [csvreader] remove code relevant for refactor branch... | py |
diff --git a/tornadotools/mongrel2/request.py b/tornadotools/mongrel2/request.py
index <HASH>..<HASH> 100644
--- a/tornadotools/mongrel2/request.py
+++ b/tornadotools/mongrel2/request.py
@@ -44,13 +44,13 @@ class MongrelRequest(object):
@staticmethod
def parse(msg):
sender, conn_id, path, rest = msg.... | fixing mongrel request parsing | py |
diff --git a/src/gluonnlp/vocab/vocab.py b/src/gluonnlp/vocab/vocab.py
index <HASH>..<HASH> 100644
--- a/src/gluonnlp/vocab/vocab.py
+++ b/src/gluonnlp/vocab/vocab.py
@@ -512,8 +512,9 @@ class Vocab:
return self[tokens]
def __repr__(self):
- return 'Vocab(size={}, unk="{}", reserved="{}")'.format... | Improve Vocab.__repr__ if reserved_tokens or unknown_token is None (#<I>) | py |
diff --git a/pyorbital/orbital.py b/pyorbital/orbital.py
index <HASH>..<HASH> 100644
--- a/pyorbital/orbital.py
+++ b/pyorbital/orbital.py
@@ -126,14 +126,15 @@ def get_observer_look(sat_lon, sat_lat, sat_alt, utc_time, lon, lat, alt):
top_z = cos_lat * cos_theta * rx + \
cos_lat * sin_theta * ry + sin_la... | Fix problem for macos (hopefully) | py |
diff --git a/twarc/decorators2.py b/twarc/decorators2.py
index <HASH>..<HASH> 100644
--- a/twarc/decorators2.py
+++ b/twarc/decorators2.py
@@ -31,9 +31,7 @@ def rate_limit(f, tries=30):
elif resp.status_code == 429:
reset = int(resp.headers["x-rate-limit-reset"])
now = tim... | clamp rate limit wait between <I> sec and <I> min in some cases, this wait time can be greater, we shouldn't wait longer than the rate limit window | py |
diff --git a/bobtemplates/odoo/hooks.py b/bobtemplates/odoo/hooks.py
index <HASH>..<HASH> 100644
--- a/bobtemplates/odoo/hooks.py
+++ b/bobtemplates/odoo/hooks.py
@@ -8,6 +8,7 @@ import re
from mrbob.bobexceptions import ValidationError
from mrbob.hooks import show_message
+from pkg_resources import parse_version
... | [IMP] Use pkg_resources to parse the version | py |
diff --git a/cgutils/process.py b/cgutils/process.py
index <HASH>..<HASH> 100644
--- a/cgutils/process.py
+++ b/cgutils/process.py
@@ -55,6 +55,8 @@ class Process(object):
cmdline = fileops.read('/proc/%d/cmdline' % self.pid)
if '\0' in cmdline:
args = cmdline.rstrip('\0').split('\0')
+ ... | Fix process cmdline parsing for empty strings | py |
diff --git a/bcbio/install.py b/bcbio/install.py
index <HASH>..<HASH> 100644
--- a/bcbio/install.py
+++ b/bcbio/install.py
@@ -212,7 +212,8 @@ def _update_conda_packages():
"""If installed in an anaconda directory, upgrade conda packages.
"""
conda_bin = _get_conda_bin()
- assert conda_bin, "Could not... | Better error message for not finding conda install Tries to provide better clues for debugging install problems #<I> | py |
diff --git a/tests/test_tools.py b/tests/test_tools.py
index <HASH>..<HASH> 100644
--- a/tests/test_tools.py
+++ b/tests/test_tools.py
@@ -49,6 +49,8 @@ class TestStandalone(TestCase):
l = _Lark()
x = l.parse('12 elephants')
self.assertEqual(x.children, ['12', 'elephants'])
+ x = l.par... | Added to tests: Make sure the standalone parser is reusable | py |
diff --git a/beeswarm/hive/hive.py b/beeswarm/hive/hive.py
index <HASH>..<HASH> 100644
--- a/beeswarm/hive/hive.py
+++ b/beeswarm/hive/hive.py
@@ -93,7 +93,7 @@ class Hive(object):
logging.warning('Could not fetch public ip: {0}'.format(e))
else:
- self.hive_ip = self.config.get('... | fixed a bug which prevented the IP from being displayed correctly in the curses UI | py |
diff --git a/jax/lax.py b/jax/lax.py
index <HASH>..<HASH> 100644
--- a/jax/lax.py
+++ b/jax/lax.py
@@ -893,7 +893,7 @@ def full_like(x, fill_value, dtype=None, shape=None):
`fill_value`, similar to the output of np.full.
"""
shape = onp.shape(x) if shape is None else shape
- out = full(shape, fill_value, dt... | Fix bug in full_like introduced by previous commit. | py |
diff --git a/pyarlo/camera.py b/pyarlo/camera.py
index <HASH>..<HASH> 100644
--- a/pyarlo/camera.py
+++ b/pyarlo/camera.py
@@ -3,7 +3,7 @@
import logging
from pyarlo.const import (
RESET_CAM_ENDPOINT, STREAM_ENDPOINT, STREAMING_BODY,
- SNAPSHOTS_ENDPOINT, SNAPSHOTS_BODY)
+ SNAPSHOTS_ENDPOINT, SNAPSHOTS_BOD... | Make default <I> days as <I> was too long time | py |
diff --git a/broqer/publisher.py b/broqer/publisher.py
index <HASH>..<HASH> 100644
--- a/broqer/publisher.py
+++ b/broqer/publisher.py
@@ -197,9 +197,6 @@ class Publisher:
:param loop: asyncio loop to be used
:returns: a future returning the emitted value
"""
- if self._state is NONE:
... | removed overwritting omit_subscription for publisher | py |
diff --git a/minio/api.py b/minio/api.py
index <HASH>..<HASH> 100644
--- a/minio/api.py
+++ b/minio/api.py
@@ -1456,18 +1456,13 @@ class Minio(object):
:param bucket_name: Bucket name for which region will be fetched.
:return: Region of bucket name.
"""
- # Location set to 'us-east-1' ... | get_bucket_location: Do not default to 'us-east-1' for non S3 endpoints. We do not need to default to 'us-east-1' for non-S3 endpoints. | py |
diff --git a/buchner/settings.py b/buchner/settings.py
index <HASH>..<HASH> 100644
--- a/buchner/settings.py
+++ b/buchner/settings.py
@@ -9,7 +9,7 @@ DEBUG = truthiness(os.environ.get('DEBUG', False))
DATABASE_URL = os.environ.get('DATABASE_URL', 'sqlite:///buchner_app.db')
-BLUEPRINTS = []
+INSTALLED_APPS = []
... | Remove last trace of BLUEPRINTS | py |
diff --git a/certipy/certipy.py b/certipy/certipy.py
index <HASH>..<HASH> 100644
--- a/certipy/certipy.py
+++ b/certipy/certipy.py
@@ -23,7 +23,7 @@ class Certipy():
Returns: None
"""
self.certs = {}
- self.store_dir = store_dir
+ self.store_dir = os.path.abspath(store_dir)
... | Ensure that we always resolve to an absolute path. | py |
diff --git a/spead2/tools/bench_asyncio.py b/spead2/tools/bench_asyncio.py
index <HASH>..<HASH> 100644
--- a/spead2/tools/bench_asyncio.py
+++ b/spead2/tools/bench_asyncio.py
@@ -88,7 +88,12 @@ class SlaveConnection:
stream.set_memory_allocator(memory_pool)
if args.memcpy_nt:
... | Make spead2_bench.py work with unicast verbs recv | py |
diff --git a/inlineplz/linters/__init__.py b/inlineplz/linters/__init__.py
index <HASH>..<HASH> 100644
--- a/inlineplz/linters/__init__.py
+++ b/inlineplz/linters/__init__.py
@@ -54,12 +54,13 @@ def lint(install=False):
if install and config.get('install'):
subprocess.check_call(co... | try to parse even after linter error | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -25,7 +25,7 @@ base_requirements = [
'pytz>=2019.1',
'redis~=2.10',
'six~=1.10',
- 'typing;python_version<"3.5"',
+ 'typing~=3.7.4;python_version<"3.5"',
# For context, see the comment in pysoa.comm... | [PATCH] Make typing dependency more specific to fix missing types | py |
diff --git a/nose/test_orbit.py b/nose/test_orbit.py
index <HASH>..<HASH> 100644
--- a/nose/test_orbit.py
+++ b/nose/test_orbit.py
@@ -1365,12 +1365,11 @@ def test_reverse():
# Test reversing an orbit
def test_flip():
- from galpy.orbit import Orbit
from galpy.potential import LogarithmicHaloPotential
... | actually test the flipping of linear Orbits, #<I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,5 +1,11 @@
-from setuptools import setup
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+
+import pip.download
+from pip.req import parse_requirements
+
+from setuptools import setup
setup(name='ansible-toolkit',
... | added sha-bang, encoding and use pip to parse requirements files to load install_requires and tests_require keywork arguments | py |
diff --git a/src/resolvelib/__init__.py b/src/resolvelib/__init__.py
index <HASH>..<HASH> 100644
--- a/src/resolvelib/__init__.py
+++ b/src/resolvelib/__init__.py
@@ -11,7 +11,7 @@ __all__ = [
"ResolutionTooDeep",
]
-__version__ = "0.5.3"
+__version__ = "0.5.4.dev0"
from .providers import AbstractProvider,... | Prebump to <I>.dev0 | py |
diff --git a/bokeh/charts/builder/bar_builder.py b/bokeh/charts/builder/bar_builder.py
index <HASH>..<HASH> 100644
--- a/bokeh/charts/builder/bar_builder.py
+++ b/bokeh/charts/builder/bar_builder.py
@@ -236,15 +236,6 @@ class BarBuilder(Builder):
else:
self.ylabel = '%s( %s )' % (self.agg.... | Remove bar's process data method. | py |
diff --git a/lib/svtplay_dl/service/__init__.py b/lib/svtplay_dl/service/__init__.py
index <HASH>..<HASH> 100644
--- a/lib/svtplay_dl/service/__init__.py
+++ b/lib/svtplay_dl/service/__init__.py
@@ -99,8 +99,8 @@ class OpenGraphThumbMixin(object):
class Generic(Service):
''' Videos embed in sites '''
- def g... | generic: handle it as a regular service | py |
diff --git a/fedmsg_meta_fedora_infrastructure/fedimg.py b/fedmsg_meta_fedora_infrastructure/fedimg.py
index <HASH>..<HASH> 100644
--- a/fedmsg_meta_fedora_infrastructure/fedimg.py
+++ b/fedmsg_meta_fedora_infrastructure/fedimg.py
@@ -28,6 +28,7 @@ class FedimgProcessor(BaseProcessor):
__docs__ = "https://fedorapr... | Add icon url for fedimg logo. It gets added there in fedora-infra/apps.fp.o#<I>. | py |
diff --git a/tests/test_acquire.py b/tests/test_acquire.py
index <HASH>..<HASH> 100644
--- a/tests/test_acquire.py
+++ b/tests/test_acquire.py
@@ -42,6 +42,7 @@ class TestLoadEtext(MockTextMixin, unittest.TestCase):
for testcase, loader in itertools.product(testcases, loaders):
text = loader(testc... | Add test detecting unicode replacement character. | py |
diff --git a/fatbotslim/irc/codes.py b/fatbotslim/irc/codes.py
index <HASH>..<HASH> 100644
--- a/fatbotslim/irc/codes.py
+++ b/fatbotslim/irc/codes.py
@@ -384,6 +384,8 @@ OTHERS = set([
NOTICE,
JOIN,
PART,
+ MODE,
+ KICK,
QUIT,
]) | add MODE and KICK to supported codes | py |
diff --git a/lib/bx/intervals/operations/complement.py b/lib/bx/intervals/operations/complement.py
index <HASH>..<HASH> 100644
--- a/lib/bx/intervals/operations/complement.py
+++ b/lib/bx/intervals/operations/complement.py
@@ -30,6 +30,9 @@ def complement(reader, lens):
# Write the intervals
for start... | Fixed strand bug in complement. When complementing and not eliminating the strand column, a valid value of + or - must be inserted. + is default. | py |
diff --git a/geomdl/elements.py b/geomdl/elements.py
index <HASH>..<HASH> 100644
--- a/geomdl/elements.py
+++ b/geomdl/elements.py
@@ -111,11 +111,11 @@ class Vertex(AbstractElement):
@property
def inside(self):
- return self._value[3]
+ return bool(self._value[3])
@inside.setter
d... | Inside-outside check should return boolean value | py |
diff --git a/demo/TestSuites/TestCalculator/TestScript.py b/demo/TestSuites/TestCalculator/TestScript.py
index <HASH>..<HASH> 100644
--- a/demo/TestSuites/TestCalculator/TestScript.py
+++ b/demo/TestSuites/TestCalculator/TestScript.py
@@ -46,7 +46,7 @@ def testCalculator():
pressDigitButtons(number2)
calculator.pre... | [DEMO] fix line indentation | py |
diff --git a/spyre/server.py b/spyre/server.py
index <HASH>..<HASH> 100755
--- a/spyre/server.py
+++ b/spyre/server.py
@@ -2,7 +2,6 @@ import matplotlib
matplotlib.use('Agg')
import os, os.path
-import sys
import json
import jinja2
import matplotlib.pyplot as plt
@@ -245,11 +244,13 @@ class Root(object):
def d... | explicityly encoding for python 3 | py |
diff --git a/beakerx/beakerx/beakerx_widgets.py b/beakerx/beakerx/beakerx_widgets.py
index <HASH>..<HASH> 100644
--- a/beakerx/beakerx/beakerx_widgets.py
+++ b/beakerx/beakerx/beakerx_widgets.py
@@ -126,8 +126,8 @@ class BeakerxCheckbox(Checkbox):
def __init__(self, **kwargs):
super(BeakerxCheckbox, self)... | #<I> Python EasyForm Checkbox label on wrong side (#<I>) | py |
diff --git a/binstar_client/inspect_package/conda.py b/binstar_client/inspect_package/conda.py
index <HASH>..<HASH> 100644
--- a/binstar_client/inspect_package/conda.py
+++ b/binstar_client/inspect_package/conda.py
@@ -75,7 +75,7 @@ def inspect_conda_package(filename, fileobj):
'description': '',
... | FIX: always join with posix paths | py |
diff --git a/spyder/plugins/projects.py b/spyder/plugins/projects.py
index <HASH>..<HASH> 100644
--- a/spyder/plugins/projects.py
+++ b/spyder/plugins/projects.py
@@ -199,12 +199,14 @@ class Projects(ProjectExplorerWidget, SpyderPluginMixin):
@Slot()
def create_new_project(self):
"""Create new proj... | Projects: Show explorer when creating a new project if there's no active project | py |
diff --git a/tests.py b/tests.py
index <HASH>..<HASH> 100644
--- a/tests.py
+++ b/tests.py
@@ -18,7 +18,7 @@ class QueryLogHandler(logging.Handler):
if os.environ.get('PEEWEE_TEST_BACKEND') == 'postgresql':
- test_db = peewee.PostgreslDatabase('peewee_test')
+ test_db = peewee.PostgresqlDatabase('peewee_test... | Mistyped psql bit for tests...oh yeah, psql tests are blowing up massively | py |
diff --git a/genepattern/jobwidget.py b/genepattern/jobwidget.py
index <HASH>..<HASH> 100644
--- a/genepattern/jobwidget.py
+++ b/genepattern/jobwidget.py
@@ -128,7 +128,7 @@ class GPJobWidget(UIOutput):
"""Attach the menu option to detach the job widget from the analysis cell"""
self.extra_menu_items... | Include import statement for Detach Job | py |
diff --git a/gdown/download_folder.py b/gdown/download_folder.py
index <HASH>..<HASH> 100644
--- a/gdown/download_folder.py
+++ b/gdown/download_folder.py
@@ -306,12 +306,11 @@ def download_folder(
print("Retrieving folder list completed", file=sys.stderr)
print("Building directory structure", file=sy... | Fix root_folder with no output given | py |
diff --git a/jax/lib/__init__.py b/jax/lib/__init__.py
index <HASH>..<HASH> 100644
--- a/jax/lib/__init__.py
+++ b/jax/lib/__init__.py
@@ -17,7 +17,7 @@
import jaxlib
-_minimum_jaxlib_version = (0, 1, 25)
+_minimum_jaxlib_version = (0, 1, 26)
try:
from jaxlib import version as jaxlib_version
except: | Update minimum jaxlib to <I>. | py |
diff --git a/tej/submission.py b/tej/submission.py
index <HASH>..<HASH> 100644
--- a/tej/submission.py
+++ b/tej/submission.py
@@ -290,17 +290,24 @@ class RemoteQueue(object):
def destination_string(self):
return destination_as_string(self.destination)
+ def _ssh_client(self):
+ """Gets an SSH... | Allow SSHClient creation to be overloaded | py |
diff --git a/djangoautoconf/__init__.py b/djangoautoconf/__init__.py
index <HASH>..<HASH> 100644
--- a/djangoautoconf/__init__.py
+++ b/djangoautoconf/__init__.py
@@ -3,6 +3,6 @@
__author__ = 'Richard Wang'
__email__ = 'richardwangwang@gmail.com'
-__version__ = '0.6.39'
+__version__ = '0.6.40'
from django_autoco... | Update version to <I>. | py |
diff --git a/tests/staged_files_only_test.py b/tests/staged_files_only_test.py
index <HASH>..<HASH> 100644
--- a/tests/staged_files_only_test.py
+++ b/tests/staged_files_only_test.py
@@ -71,6 +71,13 @@ def test_foo_something_unstaged(foo_staged, cmd_runner):
_test_foo_state(foo_staged, 'herp\nderp\n', 'AM')
+d... | Add regression test for external diff tools See #<I> Resolves #<I> | py |
diff --git a/spacy/language.py b/spacy/language.py
index <HASH>..<HASH> 100644
--- a/spacy/language.py
+++ b/spacy/language.py
@@ -900,6 +900,11 @@ class DisabledPipes(list):
def _pipe(func, docs, kwargs):
+ # We added some args for pipe that __call__ doesn't expect.
+ kwargs = dict(kwargs)
+ for arg in [... | Fix bug introduced by component_cfg | py |
diff --git a/botox/aws.py b/botox/aws.py
index <HASH>..<HASH> 100644
--- a/botox/aws.py
+++ b/botox/aws.py
@@ -229,6 +229,10 @@ class AWS(object):
``size``, ``ami``) to override any defaults given when the object was
created, or to fill in parameters not given at initialization time.
+ Additi... | Add IP kwarg for instance creation | py |
diff --git a/pylogit/nested_choice_calcs.py b/pylogit/nested_choice_calcs.py
index <HASH>..<HASH> 100644
--- a/pylogit/nested_choice_calcs.py
+++ b/pylogit/nested_choice_calcs.py
@@ -157,6 +157,8 @@ def calc_nested_probs(nest_coefs,
# Ensure that ind_exp_sums_per_nest is an ndarray
if isinstance(ind_exp_sums_... | Putting back statements that I removed too hastily. | py |
diff --git a/acos_client/v21/action.py b/acos_client/v21/action.py
index <HASH>..<HASH> 100644
--- a/acos_client/v21/action.py
+++ b/acos_client/v21/action.py
@@ -37,10 +37,14 @@ class Action(base.BaseV21):
params={"write_memory": write_memory}, **kwargs)
def write_active(self, partiti... | Tested/tried n true method of ensuring memory is persisted | py |
diff --git a/test.py b/test.py
index <HASH>..<HASH> 100644
--- a/test.py
+++ b/test.py
@@ -52,6 +52,7 @@ class Base32CrockfordTests(unittest.TestCase):
self.assertRaises(ValueError, base32_crockford.normalize, u'ä')
def test_normalize_invalid_type(self):
+ self.assertRaises(TypeError, base32_croc... | Add an additional TypeError test case | py |
diff --git a/opbeat/instrumentation/packages/psycopg2.py b/opbeat/instrumentation/packages/psycopg2.py
index <HASH>..<HASH> 100644
--- a/opbeat/instrumentation/packages/psycopg2.py
+++ b/opbeat/instrumentation/packages/psycopg2.py
@@ -51,7 +51,7 @@ class Psycopg2RegisterTypeInstrumentation(DbApi2Instrumentation):
... | Fix logic issue in psycopg2 instrumentation related to register_type. | py |
diff --git a/distutils/tests/test_msvccompiler.py b/distutils/tests/test_msvccompiler.py
index <HASH>..<HASH> 100644
--- a/distutils/tests/test_msvccompiler.py
+++ b/distutils/tests/test_msvccompiler.py
@@ -110,6 +110,26 @@ class TestSpawn(unittest.TestCase):
thread.join()
assert all(threads)
+ ... | Add test capturing failed expectation. Ref pypa/distutils#<I>. | py |
diff --git a/dvc/fs/utils.py b/dvc/fs/utils.py
index <HASH>..<HASH> 100644
--- a/dvc/fs/utils.py
+++ b/dvc/fs/utils.py
@@ -153,6 +153,7 @@ def test_links(
from_fs.makedirs(from_fs.path.parent(from_file))
with from_fs.open(from_file, "wb") as fobj:
fobj.write(b"test")
+ to_fs.makedirs(to_fs.path.pa... | fs: test_links: create destination directory first `dvc.fs.utils.test_links()` fails with a CacheLinkError if the target `to_path` does not already exist, as is the case when "abc.dvc" exists (referring to a directory object) and we try to run "dvc pull abc/def". To avoid this issue, fully create `to_path` before atte... | py |
diff --git a/snap7/__init__.py b/snap7/__init__.py
index <HASH>..<HASH> 100644
--- a/snap7/__init__.py
+++ b/snap7/__init__.py
@@ -6,5 +6,6 @@ import snap7.client as client
import snap7.error as error
import snap7.types as types
import snap7.common as common
+import snap7.s7util as s7util
__version__ = '0.2' | added missing s7util to package | py |
diff --git a/src/toil/batchSystems/torque.py b/src/toil/batchSystems/torque.py
index <HASH>..<HASH> 100644
--- a/src/toil/batchSystems/torque.py
+++ b/src/toil/batchSystems/torque.py
@@ -91,14 +91,21 @@ class TorqueBatchSystem(AbstractGridEngineBatchSystem):
if jobid in currentjobs:
... | Tolerate missing wall clock times from Torque (#<I>) * Tolerate a missing walltime field and return a 0 walltime. * Stop interpreting '0' walltime as a large negative duration | py |
diff --git a/codekit/cli/github_delete_shadow.py b/codekit/cli/github_delete_shadow.py
index <HASH>..<HASH> 100755
--- a/codekit/cli/github_delete_shadow.py
+++ b/codekit/cli/github_delete_shadow.py
@@ -174,6 +174,10 @@ def delete_teams(teams, fail_fast=False, dry_run=False, delay=0):
return problems
+def vali... | do not allow --org to have 'lsst' as a substring Cause we're chickens. | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -126,7 +126,7 @@ html_theme = 'default'
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file... | Comment out html_static_path | py |
diff --git a/dpark/moosefs/__init__.py b/dpark/moosefs/__init__.py
index <HASH>..<HASH> 100644
--- a/dpark/moosefs/__init__.py
+++ b/dpark/moosefs/__init__.py
@@ -280,6 +280,12 @@ class ReadableFile(File):
self.reader = None
self.generator = None
+ def __enter__(self):
+ return self
+
+ ... | moosefs ReadableFile support with clause | py |
diff --git a/lol_scraper/data_types.py b/lol_scraper/data_types.py
index <HASH>..<HASH> 100644
--- a/lol_scraper/data_types.py
+++ b/lol_scraper/data_types.py
@@ -149,7 +149,8 @@ class TierSet():
def consume(self, tier, minimum_number=1, percentage=0):
try:
set = self._tiers[tier]
- ... | Added a minimum check for the number of items to consume | py |
diff --git a/sqlparse/sql.py b/sqlparse/sql.py
index <HASH>..<HASH> 100644
--- a/sqlparse/sql.py
+++ b/sqlparse/sql.py
@@ -28,7 +28,7 @@ class Token(object):
return unicode(self).encode('utf-8')
def __repr__(self):
- short = self._get_repr_value()
+ short = self._get_repr_value().encode('u... | Encode value when reprinting the object. | py |
diff --git a/wasp-launcher.py b/wasp-launcher.py
index <HASH>..<HASH> 100755
--- a/wasp-launcher.py
+++ b/wasp-launcher.py
@@ -27,17 +27,22 @@ from wasp_launcher.version import __status__
import signal
-from wasp_launcher.apps import WHostAppRegistry
+from wasp_launcher.apps import WHostAppRegistry, WAppsGlobals
+... | wasp-launcher.py: main application start updated | py |
diff --git a/setuptools/tests/test_setuptools.py b/setuptools/tests/test_setuptools.py
index <HASH>..<HASH> 100644
--- a/setuptools/tests/test_setuptools.py
+++ b/setuptools/tests/test_setuptools.py
@@ -108,6 +108,11 @@ class TestDepends:
assert not req.is_present()
assert not req.is_current()
+ ... | Separate test for 'is_present' into its own test and add a TODO about this behavior being apparently unused. | py |
diff --git a/salt/modules/file.py b/salt/modules/file.py
index <HASH>..<HASH> 100644
--- a/salt/modules/file.py
+++ b/salt/modules/file.py
@@ -768,7 +768,7 @@ def contains_regex(path, regex, lchar=''):
If the lchar argument (leading char) is specified, it
will strip `lchar` from the left side of each line bef... | Add colon to clean up docstring formatting | py |
diff --git a/hererocks.py b/hererocks.py
index <HASH>..<HASH> 100755
--- a/hererocks.py
+++ b/hererocks.py
@@ -1437,7 +1437,7 @@ class RioLua(Lua):
# from a git repo that does not have them, like the default one.
if len(built_luac_objs) > 0:
if using_cl():
- ... | Revert incorrect fix for the Lua <I>-work2 VS problem | py |
diff --git a/src/flags.py b/src/flags.py
index <HASH>..<HASH> 100644
--- a/src/flags.py
+++ b/src/flags.py
@@ -6,7 +6,7 @@ import pickle
from dictionaries import ReadonlyDictProxy
-__all__ = ['Flags', 'CustomFlags', 'FlagProperties', 'UNDEFINED']
+__all__ = ['Flags', 'UserDefinedBitFlags', 'FlagProperties', 'UNDEF... | bugfix: outdated name in the __all__ attribute of the flags module | py |
diff --git a/pyemu/utils/gw_utils.py b/pyemu/utils/gw_utils.py
index <HASH>..<HASH> 100644
--- a/pyemu/utils/gw_utils.py
+++ b/pyemu/utils/gw_utils.py
@@ -610,7 +610,7 @@ def setup_mflist_budget_obs(list_filename,flx_filename="flux.dat",
df2 = pd.read_csv(vol_obf, delim_whitespace=True, header=None, names=["ob... | bug fix in mflist_budget_obs - option to save setup file as bool arg | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -41,7 +41,7 @@ extensions = [
'sphinx.ext.viewcode',
'numpydoc',
'sphinx_gallery.gen_gallery',
- 'nbsphinx',
+ #'nbsphinx',
] | remove nbsphinx from conf | py |
diff --git a/rtree/index.py b/rtree/index.py
index <HASH>..<HASH> 100644
--- a/rtree/index.py
+++ b/rtree/index.py
@@ -663,6 +663,31 @@ class Index:
)
return self._get_ids(it, p_num_results.value)
+ def __and__(self, other: Index) -> Index:
+ """Take the intersection of two Index objects.
... | Index/Item: add intersection/union support | py |
diff --git a/tests/test_hosts.py b/tests/test_hosts.py
index <HASH>..<HASH> 100644
--- a/tests/test_hosts.py
+++ b/tests/test_hosts.py
@@ -56,7 +56,7 @@ def test_exception_raised_when_unable_to_write_hosts(tmpdir):
hosts_file = tmpdir.mkdir("etc").join("hosts")
hosts_file.write("127.0.0.1\tlocalhost\n")
... | let chmod mode work with both python 2 and 3. | py |
diff --git a/yowsup/layers/protocol_media/protocolentities/message_media.py b/yowsup/layers/protocol_media/protocolentities/message_media.py
index <HASH>..<HASH> 100644
--- a/yowsup/layers/protocol_media/protocolentities/message_media.py
+++ b/yowsup/layers/protocol_media/protocolentities/message_media.py
@@ -110,7 +11... | [fix] fix typo in property name causing error | py |
diff --git a/timepiece/tests/timesheet.py b/timepiece/tests/timesheet.py
index <HASH>..<HASH> 100644
--- a/timepiece/tests/timesheet.py
+++ b/timepiece/tests/timesheet.py
@@ -137,6 +137,7 @@ class ClockInTest(TimepieceDataTestCase):
'start_time_0': now.strftime('%m/%d/%Y'),
'start_time_1': now... | fixed tests for required activity --HG-- branch : feature/billable | py |
diff --git a/pysolr.py b/pysolr.py
index <HASH>..<HASH> 100644
--- a/pysolr.py
+++ b/pysolr.py
@@ -134,7 +134,7 @@ class Solr(object):
netloc = netloc.split(':')
self.host = netloc[0]
if len(netloc) == 1:
- self.host = netloc[0]
+ self.host, self.port = netloc[0], None
... | Fixed a bug for connections that don't specify a port number. | py |
diff --git a/bcbio/cwl/tool.py b/bcbio/cwl/tool.py
index <HASH>..<HASH> 100644
--- a/bcbio/cwl/tool.py
+++ b/bcbio/cwl/tool.py
@@ -76,12 +76,13 @@ def _run_toil(args):
flags = ["--jobStore", jobstore, "--logFile", log_file, "--workDir", work_dir]
if os.path.exists(jobstore):
flags += ["--restart"]
+ ... | CWL: run support for Toil with no containers Ensure that environmental variable retain argument does not swallow other required arguments by placing last | py |
diff --git a/aiohttp/client.py b/aiohttp/client.py
index <HASH>..<HASH> 100644
--- a/aiohttp/client.py
+++ b/aiohttp/client.py
@@ -19,7 +19,8 @@ from .websocket_client import ClientWebSocketResponse
from . import hdrs
-__all__ = ('request', 'ClientSession')
+__all__ = ('ClientSession', 'request', 'get', 'options',... | Add new coroutines to top-level names | py |
diff --git a/mbed/mbed.py b/mbed/mbed.py
index <HASH>..<HASH> 100755
--- a/mbed/mbed.py
+++ b/mbed/mbed.py
@@ -3344,7 +3344,10 @@ def main():
try:
very_verbose = pargs.very_verbose
verbose = very_verbose or pargs.verbose
- info('Working path \"%s\" (%s)' % (getcwd(), Repo.pathtype(cwd_root... | Improve ocation and program awareness by adding information where the user is operating | py |
diff --git a/ocdsmerge/tests.py b/ocdsmerge/tests.py
index <HASH>..<HASH> 100644
--- a/ocdsmerge/tests.py
+++ b/ocdsmerge/tests.py
@@ -1,5 +1,5 @@
import unittest
-import ocdsmerge.merge as merge
+from ocdsmerge.merge import merge, merge_versioned
import ocdsmerge.fixtures as fixtures
import os
@@ -17,11 +17,11 @@... | Avoid "AttributeError: 'function' object has no attribute 'merge'" when running tests | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -11,8 +11,7 @@ setup(name='mashape-client-lib',
version='1.0',
description='Mashape client library',
author='Mashape Inc.',
- author_email='marco@mashape.com',
- install_requires=['askbot'],
+ ... | removing unused require and fixing email address | py |
diff --git a/eventsourcing/__init__.py b/eventsourcing/__init__.py
index <HASH>..<HASH> 100644
--- a/eventsourcing/__init__.py
+++ b/eventsourcing/__init__.py
@@ -1 +1 @@
-__version__ = "8.2.4"
+__version__ = "8.2.5dev0" | Increased version to <I>dev0. | py |
diff --git a/gwpy/timeseries/timeseries.py b/gwpy/timeseries/timeseries.py
index <HASH>..<HASH> 100644
--- a/gwpy/timeseries/timeseries.py
+++ b/gwpy/timeseries/timeseries.py
@@ -1390,7 +1390,7 @@ class TimeSeries(TimeSeriesBase):
>>> import numpy
>>> from gwpy.timeseries import TimeSeries
- ... | Typo in previous commit: np should be numpy | py |
diff --git a/master/buildbot/test/unit/test_steps_http.py b/master/buildbot/test/unit/test_steps_http.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/test/unit/test_steps_http.py
+++ b/master/buildbot/test/unit/test_steps_http.py
@@ -47,6 +47,10 @@ class TestHTTPStep(steps.BuildStepMixin, unittest.TestCase):
... | ignore http proxy env variables during http step tests When running unit tests of buildbot.steps.http, ignore http proxy environment variables. Otherwise tests will try to make http requests via proxy if for example 'http_proxy' variable is set. | py |
diff --git a/pybromo/timestamps.py b/pybromo/timestamps.py
index <HASH>..<HASH> 100644
--- a/pybromo/timestamps.py
+++ b/pybromo/timestamps.py
@@ -171,14 +171,14 @@ class TimestapSimulation:
print('%s Donor timestamps - %s' % (header, ctime()), flush=True)
self.S.simulate_timestamps_mix(
... | Fix TimestampSimulation from previous update | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -3,7 +3,7 @@ from setuptools import setup, find_packages
setup(
name='ubersmith',
- version='0.2.3',
+ version='0.2.4',
author='Jason Keene',
author_email='jasonkeene@gmail.com',
description='Clien... | Rev version number for PYPI. | py |
diff --git a/python/mxnet/module/module.py b/python/mxnet/module/module.py
index <HASH>..<HASH> 100644
--- a/python/mxnet/module/module.py
+++ b/python/mxnet/module/module.py
@@ -386,6 +386,7 @@ class Module(BaseModule):
assert isinstance(shared_module, Module) and \
shared_module.bind... | assert size eq between shared_module.execs and context (#<I>) | py |
diff --git a/mishmash/__main__.py b/mishmash/__main__.py
index <HASH>..<HASH> 100644
--- a/mishmash/__main__.py
+++ b/mishmash/__main__.py
@@ -48,6 +48,11 @@ def main():
help="Drop into 'pdb' when errors occur.")
args = parser.parse_args()
+ if "func" not in args:
+ # No comman... | Handle went 'mishmash' is run with no sub-command | py |
diff --git a/uliweb/contrib/auth/models.py b/uliweb/contrib/auth/models.py
index <HASH>..<HASH> 100644
--- a/uliweb/contrib/auth/models.py
+++ b/uliweb/contrib/auth/models.py
@@ -68,7 +68,7 @@ class User(Model):
]
class UserGroup(Model):
- name = Field(str, max_length=30, verbose_name=_('Name'), inde... | extend user group name length from <I> to <I> | py |
diff --git a/dipper/sources/MGI.py b/dipper/sources/MGI.py
index <HASH>..<HASH> 100644
--- a/dipper/sources/MGI.py
+++ b/dipper/sources/MGI.py
@@ -56,6 +56,7 @@ class MGI(PostgreSQLSource):
{
'query': '../../resources/sql/mgi_dbinfo.sql',
'outfile': 'mgi_dbinfo'
+ 'Force' : True
... | try to get the db info updated | py |
diff --git a/salt/output/__init__.py b/salt/output/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/output/__init__.py
+++ b/salt/output/__init__.py
@@ -131,7 +131,7 @@ def get_printout(out, opts=None, **kwargs):
if out == 'text':
out = 'txt'
- if out is None:
+ if out is None or out == ... | Default to nested for outputter of '' Fixes #<I> | py |
diff --git a/tornado/web.py b/tornado/web.py
index <HASH>..<HASH> 100644
--- a/tornado/web.py
+++ b/tornado/web.py
@@ -469,7 +469,8 @@ class RequestHandler(object):
# Automatically support ETags and add the Content-Length header if
# we have not flushed any content yet.
if not self._headers_w... | Don't set the etag header if the handler already did it. | py |
diff --git a/cartoframes/context.py b/cartoframes/context.py
index <HASH>..<HASH> 100644
--- a/cartoframes/context.py
+++ b/cartoframes/context.py
@@ -378,6 +378,7 @@ class CartoContext(object):
'dataset',
final_table_name)))
+ @utils.temp... | adds decorators around DatasetManager code | py |
diff --git a/tests/utils.py b/tests/utils.py
index <HASH>..<HASH> 100644
--- a/tests/utils.py
+++ b/tests/utils.py
@@ -93,5 +93,6 @@ def open_legacy_httpbin(browser, httpbin):
# The line above may or may not have raised the exception
# depending on raise_on_404. Raise it unconditionally now.
... | Return response in open_legacy_httpbin (#<I>) That makes it a better drop-in replacement for browser.open | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -8,7 +8,12 @@ setup(
author_email='rhattersley@gmail.com',
packages=['biggus', 'biggus.tests'],
classifiers=['License :: OSI Approved :: '
- 'GNU Lesser General Public License v3 (LGPLv3)'],
+ ... | Add PyPI version classifiers. | py |
diff --git a/playhouse/tests/models.py b/playhouse/tests/models.py
index <HASH>..<HASH> 100644
--- a/playhouse/tests/models.py
+++ b/playhouse/tests/models.py
@@ -63,6 +63,9 @@ class NullModel(TestModel):
time_field = TimeField(null=True)
boolean_field = BooleanField(null=True)
fixed_char_field = FixedCh... | Replace the two timestamp fields from test `NullModel` I removed in previous commit. | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.