diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/anchore/anchore_image.py b/anchore/anchore_image.py
index <HASH>..<HASH> 100644
--- a/anchore/anchore_image.py
+++ b/anchore/anchore_image.py
@@ -348,10 +348,16 @@ class AnchoreImage(object):
layers = []
try:
- for i in self.docker_history:
- patt = re.match("s... | store discovered layer info from docker data | py |
diff --git a/holoviews/plotting/bokeh/element.py b/holoviews/plotting/bokeh/element.py
index <HASH>..<HASH> 100644
--- a/holoviews/plotting/bokeh/element.py
+++ b/holoviews/plotting/bokeh/element.py
@@ -838,7 +838,7 @@ class OverlayPlot(GenericOverlayPlot, ElementPlot):
_, el = items.pop(idx)
... | Removed superfluous condition in bokeh OverlayPlot | py |
diff --git a/master/setup.py b/master/setup.py
index <HASH>..<HASH> 100755
--- a/master/setup.py
+++ b/master/setup.py
@@ -167,6 +167,7 @@ setup_args = {
"buildbot.db.types",
"buildbot.monkeypatches",
"buildbot.mq",
+ "buildbot.plugins",
"buildbot.process",
"buildbot.... | added missing buildbot.plugins to packages | py |
diff --git a/modelcluster/fields.py b/modelcluster/fields.py
index <HASH>..<HASH> 100644
--- a/modelcluster/fields.py
+++ b/modelcluster/fields.py
@@ -66,6 +66,11 @@ def create_deferring_foreign_related_manager(related, original_manager_cls):
return FakeQuerySet(related.related_model, results)
+ ... | Support get_prefetch_queryset for Django <I> | py |
diff --git a/tests/unit/conftest.py b/tests/unit/conftest.py
index <HASH>..<HASH> 100644
--- a/tests/unit/conftest.py
+++ b/tests/unit/conftest.py
@@ -19,6 +19,8 @@ settings.register_profile(
settings.register_profile('dev', settings(max_examples=10))
settings.load_profile(os.getenv('HYPOTHESIS_PROFILE', 'dev'))
+p... | Debug: ensure we're using the right hypothesis profile | py |
diff --git a/pyghmi/util/webclient.py b/pyghmi/util/webclient.py
index <HASH>..<HASH> 100644
--- a/pyghmi/util/webclient.py
+++ b/pyghmi/util/webclient.py
@@ -35,6 +35,8 @@ class SecureHTTPConnection(httplib.HTTPConnection, object):
def __init__(self, host, port=None, key_file=None, cert_file=None,
... | Set a <I> second timeout on web Web connections were defaulting to infinite timeout. If a problem happened in the midst of a connection, a request could hang things indefinitely. Add a <I> second timeout to purge these situations. Change-Id: Ica<I>e2bfb<I>ccc<I>e<I>c<I>d8bf7e3f<I>a5 | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -13,7 +13,7 @@ setup(name='whereami',
url='https://github.com/kootenpv/whereami',
author_email='kootenpv@gmail.com',
install_requires=[
- 'scikit-learn', 'tqdm', 'access_points'
+ 'scipy'... | missing dependencies in setup.py | py |
diff --git a/salt/client/mixins.py b/salt/client/mixins.py
index <HASH>..<HASH> 100644
--- a/salt/client/mixins.py
+++ b/salt/client/mixins.py
@@ -435,7 +435,7 @@ class AsyncClientMixin(object):
if suffix in ('new',):
return
- outputter = event.get('outputter', self.opts.get('output', Non... | Let opts output win out over event['outputter'] | py |
diff --git a/btfxwss/client.py b/btfxwss/client.py
index <HASH>..<HASH> 100644
--- a/btfxwss/client.py
+++ b/btfxwss/client.py
@@ -483,7 +483,7 @@ class BtfxWss:
"""
if not self.key and not self.secret:
raise ValueError("Must supply both key and secret key for API!")
- self.channel... | fixed config for resubscription to auth channel | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -60,7 +60,7 @@ setup(
url='https://github.com/awslabs/serverless-application-model',
license='Apache License 2.0',
# Exclude all but the code folders
- packages=find_packages(exclude=('tests', 'docs', 'exampl... | fix: actually exclude test files from being installed (#<I>) | py |
diff --git a/switchboard.py b/switchboard.py
index <HASH>..<HASH> 100644
--- a/switchboard.py
+++ b/switchboard.py
@@ -1,4 +1,5 @@
import os
+from collections import namedtuple
class switchboard():
@@ -6,7 +7,9 @@ class switchboard():
self.dirname = dirname + '/'
self.filelist = filelist[:]
... | encapsulated the separate file objects in namedtuples | py |
diff --git a/spacy/tests/regression/test_issue5230.py b/spacy/tests/regression/test_issue5230.py
index <HASH>..<HASH> 100644
--- a/spacy/tests/regression/test_issue5230.py
+++ b/spacy/tests/regression/test_issue5230.py
@@ -90,7 +90,7 @@ objects_to_test = (
def write_obj_and_catch_warnings(obj):
with make_tempdir(... | issue<I> raise warnings as errors to remotely debug failing python<I>(win) setup | py |
diff --git a/stix2validator/errors.py b/stix2validator/errors.py
index <HASH>..<HASH> 100644
--- a/stix2validator/errors.py
+++ b/stix2validator/errors.py
@@ -222,9 +222,9 @@ def pretty_error(error, verbose=False):
"not an allowed value", msg)
elif ('target_ref' in error.schema_path o... | Fixed path traversal issue with infrastructure keyword wihtin indicator test file and fixed py3 issue with iterating strings | py |
diff --git a/angr/analyses/variable_recovery/engine_vex.py b/angr/analyses/variable_recovery/engine_vex.py
index <HASH>..<HASH> 100644
--- a/angr/analyses/variable_recovery/engine_vex.py
+++ b/angr/analyses/variable_recovery/engine_vex.py
@@ -71,7 +71,9 @@ class SimEngineVRVEX(
size = self.tyenv.sizeof(stm... | VRA: Fix the wrong temp variable in VEXEngine._handle_LLSC. (#<I>) | py |
diff --git a/fermipy/residmap.py b/fermipy/residmap.py
index <HASH>..<HASH> 100644
--- a/fermipy/residmap.py
+++ b/fermipy/residmap.py
@@ -384,6 +384,7 @@ class ResidMapGenerator(object):
mask = np.where(wmap > 0, 1., 0.)
else:
wmap = None
+ mask = None
... | added protection for no mask case in ResidMapGenerator | py |
diff --git a/openquake/calculators/ucerf_event_based.py b/openquake/calculators/ucerf_event_based.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/ucerf_event_based.py
+++ b/openquake/calculators/ucerf_event_based.py
@@ -656,6 +656,13 @@ class UCERFSESControl(object):
idx_set["total_key"] = branch_co... | Refactor event based 1 Former-commit-id: 9c<I>a<I>eec<I>f<I>a<I>b<I>fd | py |
diff --git a/holoviews/plotting/plot.py b/holoviews/plotting/plot.py
index <HASH>..<HASH> 100644
--- a/holoviews/plotting/plot.py
+++ b/holoviews/plotting/plot.py
@@ -1042,6 +1042,8 @@ class GenericOverlayPlot(GenericElementPlot):
for k, obj in items:
subplot = self._create_subplot(k, vmaps[keys... | Added check to ensure empty subplot is not added (#<I>) | py |
diff --git a/genapi/__init__.py b/genapi/__init__.py
index <HASH>..<HASH> 100644
--- a/genapi/__init__.py
+++ b/genapi/__init__.py
@@ -330,6 +330,8 @@ class GenCloud(object):
data=m,
headers={'Content-Type': m.content_type})
+ print
+
response_... | Fix print-out for paired-end reads. | py |
diff --git a/git/repo/fun.py b/git/repo/fun.py
index <HASH>..<HASH> 100644
--- a/git/repo/fun.py
+++ b/git/repo/fun.py
@@ -86,7 +86,7 @@ def find_submodule_git_dir(d):
## Cygwin creates submodules prefixed with `/cygdrive/...` suffixes.
path = decygpath(path)
if not osp.is... | normalize path after joining submodule path and the relative path to the git dir, to eliminate path length errors on Windows | py |
diff --git a/etk/core.py b/etk/core.py
index <HASH>..<HASH> 100644
--- a/etk/core.py
+++ b/etk/core.py
@@ -934,6 +934,13 @@ class Core(object):
joiner=joiner)
return result if result and len(result) > 0 else None
+ def extract_website_domain(... | add extract tld as field in knowledge graph | py |
diff --git a/spyder/plugins/ipythonconsole/widgets/client.py b/spyder/plugins/ipythonconsole/widgets/client.py
index <HASH>..<HASH> 100644
--- a/spyder/plugins/ipythonconsole/widgets/client.py
+++ b/spyder/plugins/ipythonconsole/widgets/client.py
@@ -314,6 +314,12 @@ class ClientWidget(QWidget, SaveHistoryMixin):
... | don't add pdb commands to history | py |
diff --git a/gitlab/objects.py b/gitlab/objects.py
index <HASH>..<HASH> 100644
--- a/gitlab/objects.py
+++ b/gitlab/objects.py
@@ -222,6 +222,8 @@ class GitlabObject(object):
value = getattr(self, attribute)
if isinstance(value, list):
value = ",".join(value)
+ ... | sudo: always use strings The behavior seems to have changed on recent gitlab releases and providing an ID as int doesn't work anymore. Using a string seems to make things work again. Fixes #<I> | py |
diff --git a/sortinghat/parsing/sh.py b/sortinghat/parsing/sh.py
index <HASH>..<HASH> 100644
--- a/sortinghat/parsing/sh.py
+++ b/sortinghat/parsing/sh.py
@@ -131,12 +131,12 @@ class SortingHatParser(object):
"""
try:
for uidentity in json['uidentities'].values():
- uuid = ... | [parsing:sh] Encode UUID and ids to UTF-8 Some UUIDs and idenfifiers can have string values instead of integer values. For this reason, these fields are encoded to avoid common unicode errors. | py |
diff --git a/trueRandom.py b/trueRandom.py
index <HASH>..<HASH> 100644
--- a/trueRandom.py
+++ b/trueRandom.py
@@ -2,6 +2,50 @@
import urllib
+# New Code
+import urllib2
+import os.path
+
+
+RANDOM_URL = 'http://www.random.org'
+
+def integers(num, minimum, maximum, base=10):
+ """Docstring."""
+ FUNC_TYPE =... | Added new function to return Integers from random.Org | py |
diff --git a/examples/finalizers.py b/examples/finalizers.py
index <HASH>..<HASH> 100644
--- a/examples/finalizers.py
+++ b/examples/finalizers.py
@@ -31,6 +31,10 @@ def custom_finalizers():
time.sleep(2)
sp.fail('💥')
+ with yaspin(text="Processing...") as sp:
+ time.sleep(2)
+ sp.... | add example with raw bytes into finalizers.py | py |
diff --git a/niworkflows/viz/plots.py b/niworkflows/viz/plots.py
index <HASH>..<HASH> 100644
--- a/niworkflows/viz/plots.py
+++ b/niworkflows/viz/plots.py
@@ -603,9 +603,10 @@ def compcor_variance_plot(metadata_files, metadata_sources=None,
data_sources = list(metadata.groupby(['source', 'mask']).groups.keys())
... | the continuing saga of flake8 | py |
diff --git a/src/paperwork/backend/pdf/page.py b/src/paperwork/backend/pdf/page.py
index <HASH>..<HASH> 100644
--- a/src/paperwork/backend/pdf/page.py
+++ b/src/paperwork/backend/pdf/page.py
@@ -28,7 +28,7 @@ from ..util import surface2image
# By default, PDF are too small for a good image rendering
# so we increas... | PDF: Increase the rendering factor to almost match the size of A4 pages scanned at <I>dpi (default resolution in Paperwork) | py |
diff --git a/tensorflow_datasets/core/features/feature.py b/tensorflow_datasets/core/features/feature.py
index <HASH>..<HASH> 100644
--- a/tensorflow_datasets/core/features/feature.py
+++ b/tensorflow_datasets/core/features/feature.py
@@ -600,6 +600,10 @@ class OneOf(FeaturesDict):
super(OneOf, self).__init__(feat... | Add direct access to the choice attributes of OneOf PiperOrigin-RevId: <I> | py |
diff --git a/tests/test_pgextras.py b/tests/test_pgextras.py
index <HASH>..<HASH> 100755
--- a/tests/test_pgextras.py
+++ b/tests/test_pgextras.py
@@ -10,8 +10,6 @@ Tests for `pgextras` module.
import unittest
-from pgextras import PgExtras
-
class TestPgextras(unittest.TestCase): | Unit tests have not been written yet and flake8 was complaining about this statement. | py |
diff --git a/holoviews/plotting/bokeh/plot.py b/holoviews/plotting/bokeh/plot.py
index <HASH>..<HASH> 100644
--- a/holoviews/plotting/bokeh/plot.py
+++ b/holoviews/plotting/bokeh/plot.py
@@ -738,6 +738,7 @@ class LayoutPlot(CompositePlot, GenericLayoutPlot):
plots = [[] for _ in range(self.rows)]
tab_... | Fixed bokeh bug with offset being undefined (#<I>) | py |
diff --git a/prospector/tools/frosted/__init__.py b/prospector/tools/frosted/__init__.py
index <HASH>..<HASH> 100644
--- a/prospector/tools/frosted/__init__.py
+++ b/prospector/tools/frosted/__init__.py
@@ -90,6 +90,16 @@ class FrostedTool(ToolBase):
if any([ip.search(relpath) for ip in self._ignores]):
... | Frosted cannot handle non-utf-8 encoded files at the moment - see <URL> we will simply suppress that error. If you do get it working correctly, you only end up with a "CannotDecodeFile" error anyway which is not useful to the user of prospector, nor is it actually a problem of the file but rather of frosted. | py |
diff --git a/iamine/core.py b/iamine/core.py
index <HASH>..<HASH> 100644
--- a/iamine/core.py
+++ b/iamine/core.py
@@ -36,12 +36,12 @@ class Miner(object):
self.hosts = hosts
self.config = config
self.debug = debug
- self.cookies = config.get('cookies')
+ self.cookies = config.g... | Fixed empty cookies/locale bugs. | py |
diff --git a/datadog_checks_dev/datadog_checks/dev/tooling/commands/release.py b/datadog_checks_dev/datadog_checks/dev/tooling/commands/release.py
index <HASH>..<HASH> 100644
--- a/datadog_checks_dev/datadog_checks/dev/tooling/commands/release.py
+++ b/datadog_checks_dev/datadog_checks/dev/tooling/commands/release.py
@... | do not consider empty string as a change (#<I>) | py |
diff --git a/green/runner.py b/green/runner.py
index <HASH>..<HASH> 100644
--- a/green/runner.py
+++ b/green/runner.py
@@ -4,7 +4,10 @@ from collections import OrderedDict
import logging
import multiprocessing
from multiprocessing.pool import Pool
+import os
+import shutil
import sys
+import tempfile
import time
... | Giving each subprocess its own temporary directory to avoid poorly written tests that use the same file name (but the system temp directory) from colliding. | py |
diff --git a/searx/engines/bing_images.py b/searx/engines/bing_images.py
index <HASH>..<HASH> 100644
--- a/searx/engines/bing_images.py
+++ b/searx/engines/bing_images.py
@@ -80,14 +80,13 @@ def response(resp):
# parse results
for result in dom.xpath('//div[@class="imgpt"]'):
-
- img_format = result.... | [fix] skip uncomplete image results - closes #<I> | py |
diff --git a/fusionbox/core/templatetags/uncaptcha.py b/fusionbox/core/templatetags/uncaptcha.py
index <HASH>..<HASH> 100644
--- a/fusionbox/core/templatetags/uncaptcha.py
+++ b/fusionbox/core/templatetags/uncaptcha.py
@@ -9,10 +9,10 @@ def uncaptcha(context, form=None):
"""
Renders the uncaptcha field for a ... | changed how uncaptcha tag renders so that it produces more useful errors | py |
diff --git a/code/png.py b/code/png.py
index <HASH>..<HASH> 100755
--- a/code/png.py
+++ b/code/png.py
@@ -1136,11 +1136,15 @@ def from_array(a, mode=None, info={}):
# Syntax check mode string.
match = RegexModeDecode.match(mode)
if match is not None:
- grps = match.groups()
- mode = grps[0... | Refactor conditional operator (ternary) | py |
diff --git a/astroid/manager.py b/astroid/manager.py
index <HASH>..<HASH> 100644
--- a/astroid/manager.py
+++ b/astroid/manager.py
@@ -311,7 +311,7 @@ class AstroidManager(OptionsProviderMixIn):
self.transforms[node_class].remove((transform, predicate))
def register_failed_import_hook(self, hook):
- ... | Remove superfluous quotation mark in docstring --HG-- branch : BioGeek/remove-superfluous-quotation-mark-in-doc-<I> | py |
diff --git a/BAC0/infos.py b/BAC0/infos.py
index <HASH>..<HASH> 100644
--- a/BAC0/infos.py
+++ b/BAC0/infos.py
@@ -12,5 +12,5 @@ __author__ = "Christian Tremblay, P.Eng."
__email__ = "christian.tremblay@servisys.com"
__url__ = "https://github.com/ChristianTremblay/BAC0"
__download_url__ = "https://github.com/Christi... | Bumping version for release <I> | py |
diff --git a/authomatic/adapters/__init__.py b/authomatic/adapters/__init__.py
index <HASH>..<HASH> 100644
--- a/authomatic/adapters/__init__.py
+++ b/authomatic/adapters/__init__.py
@@ -175,8 +175,8 @@ class WebObBaseAdapter(BaseAdapter):
def set_header(self, key, value):
- logging.info('WEBOB ... | Fixed a bug when headers were appended and not altered. | py |
diff --git a/superset/migrations/versions/6d20ba9ecb33_add_last_saved_at_to_slice_model.py b/superset/migrations/versions/6d20ba9ecb33_add_last_saved_at_to_slice_model.py
index <HASH>..<HASH> 100644
--- a/superset/migrations/versions/6d20ba9ecb33_add_last_saved_at_to_slice_model.py
+++ b/superset/migrations/versions/6d... | fix: remove mergepoint from past migration (#<I>) | py |
diff --git a/pypeerassets/main.py b/pypeerassets/main.py
index <HASH>..<HASH> 100644
--- a/pypeerassets/main.py
+++ b/pypeerassets/main.py
@@ -252,7 +252,7 @@ class CardTransfer:
card = paproto.CardTransfer()
card.version = self.version
- card.amounts.extend(self.amounts)
+ card.amount... | amounts --> amount Fix based on Card attribute naming | py |
diff --git a/indra/literature/elsevier_client.py b/indra/literature/elsevier_client.py
index <HASH>..<HASH> 100644
--- a/indra/literature/elsevier_client.py
+++ b/indra/literature/elsevier_client.py
@@ -408,11 +408,15 @@ def _get_article_body(full_text_elem):
def _get_sections(main_body_elem):
# Get content sec... | Refactor _get_sections to get more sections. | py |
diff --git a/libraries/botbuilder-ai/setup.py b/libraries/botbuilder-ai/setup.py
index <HASH>..<HASH> 100644
--- a/libraries/botbuilder-ai/setup.py
+++ b/libraries/botbuilder-ai/setup.py
@@ -39,6 +39,7 @@ setup(
"botbuilder.ai.luis",
"botbuilder.ai.qna.models",
"botbuilder.ai.qna.utils",
+ ... | Added missing dialogs export in ai.qna | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,8 +1,7 @@
from setuptools import setup, find_packages
-console_scripts = ['trie=pyethereum.trie:main',
- 'eth=pyethereum.eth:main']
+console_scripts = ['eth=pyethereum.eth:main']
setup(name="pyethe... | remove trie console_script given the fact that it didn't work at all and the limited usefulness of pyethereum.trie as a script, remove it. those who like to run it anyway, may type "python -m pyethereum.trie ..." instead. | py |
diff --git a/mbed/mbed.py b/mbed/mbed.py
index <HASH>..<HASH> 100755
--- a/mbed/mbed.py
+++ b/mbed/mbed.py
@@ -2785,6 +2785,10 @@ def compile_(toolchain=None, target=None, macro=False, profile=False,
error("The '-f/--flash' option requires that the 'mbed-greentea' python module is installed.\nYou c... | mbed compile : enable flash option with dual core targets | py |
diff --git a/tests/functional/t/typedDict.py b/tests/functional/t/typedDict.py
index <HASH>..<HASH> 100644
--- a/tests/functional/t/typedDict.py
+++ b/tests/functional/t/typedDict.py
@@ -1,5 +1,5 @@
"""Test typing.TypedDict"""
-# pylint: disable=invalid-name,missing-class-docstring
+# pylint: disable=invalid-name,miss... | Add a regression test following issue #<I> | py |
diff --git a/tensorboardX/x2num.py b/tensorboardX/x2num.py
index <HASH>..<HASH> 100644
--- a/tensorboardX/x2num.py
+++ b/tensorboardX/x2num.py
@@ -111,12 +111,13 @@ def _prepare_video(V):
def is_power2(num):
return num != 0 and ((num & (num - 1)) == 0)
- # pad to power of 2
- while not is_power2(V... | Remove redundant loop (#<I>) * Finds next power of 2 and concatenate all at once Instead of concatenating one-by-one until power of 2 is reached * make use of bit_length | py |
diff --git a/asciimatics/renderers.py b/asciimatics/renderers.py
index <HASH>..<HASH> 100644
--- a/asciimatics/renderers.py
+++ b/asciimatics/renderers.py
@@ -243,6 +243,15 @@ class DynamicRenderer(with_metaclass(ABCMeta, Renderer)):
:param attr: The attribute of the image.
:param bg: The background c... | Fix off-by-one-error in BarChart labels | py |
diff --git a/networkzero/__init__.py b/networkzero/__init__.py
index <HASH>..<HASH> 100644
--- a/networkzero/__init__.py
+++ b/networkzero/__init__.py
@@ -76,7 +76,7 @@ To send notifications::
from .core import (
NetworkZeroError, SocketAlreadyExistsError,
SocketTimedOutError, InvalidAddressError,
- spli... | Expose address as a top-level function | py |
diff --git a/h2o-py/h2o/expr.py b/h2o-py/h2o/expr.py
index <HASH>..<HASH> 100644
--- a/h2o-py/h2o/expr.py
+++ b/h2o-py/h2o/expr.py
@@ -132,10 +132,12 @@ class Expr(object):
:return: The number of rows and columns in the H2OFrame as a list [rows, cols].
"""
self.eager()
- if isinstance(self._data, unic... | account for the possibility that Expr._data could be local | py |
diff --git a/holoviews/plotting/plot.py b/holoviews/plotting/plot.py
index <HASH>..<HASH> 100644
--- a/holoviews/plotting/plot.py
+++ b/holoviews/plotting/plot.py
@@ -572,8 +572,7 @@ class GenericElementPlot(DimensionedPlot):
**dict(params, **plot_opts))
if top... | Small fix when defining Plot.streams | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -8,7 +8,6 @@ try:
except ImportError:
from distutils.core import setup
-os.environ['PYTHONDONTWRITEBYTECODE'] = '1'
packages = ['djangoql']
requires = ['ply>=3.8']
@@ -38,4 +37,3 @@ setup(
],
)
-del os.envi... | remove PYTHONDONTWRITEBYTECODE setup restriction PYTHONDONTWRITEBYTECODE set to 1 disallowed byte-compiling required for RPM build. | py |
diff --git a/src/sos/Julia/kernel.py b/src/sos/Julia/kernel.py
index <HASH>..<HASH> 100644
--- a/src/sos/Julia/kernel.py
+++ b/src/sos/Julia/kernel.py
@@ -162,7 +162,9 @@ function py_repr_n(obj)
# The problem of join() is that it would ignore the double quote of a string
return "[" * join([mapslices(py_repr, obj,... | add a function to julia to check if an array-like type of data has row name | py |
diff --git a/filelist.py b/filelist.py
index <HASH>..<HASH> 100644
--- a/filelist.py
+++ b/filelist.py
@@ -313,7 +313,10 @@ def translate_pattern(pattern, anchor=1, prefix=None, is_regex=0):
# ditch end of pattern character
empty_pattern = glob_to_re('')
prefix_re = (glob_to_re(prefix))[:-len... | Issue #<I>: fix distutils.filelist.FileList under Windows | py |
diff --git a/test_alpha_vantage/test_integration_alphavantage.py b/test_alpha_vantage/test_integration_alphavantage.py
index <HASH>..<HASH> 100644
--- a/test_alpha_vantage/test_integration_alphavantage.py
+++ b/test_alpha_vantage/test_integration_alphavantage.py
@@ -134,8 +134,8 @@ class TestAlphaVantage(unittest.TestC... | fix cryptocurrency test USD to BTC was not possible, it was mistakenly changed to USD to EUR, this commit changes it to BTC to USD | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -3,6 +3,7 @@
from setuptools import setup, find_packages
from codecs import open
from os import path
+import sys
here = path.abspath(path.dirname(__file__))
@@ -63,7 +64,7 @@ setup(
# for example:
# $ pip ins... | setup.py: only depend on PyBluez on Linux | py |
diff --git a/blockdiag/sphinxcontrib/blockdiag.py b/blockdiag/sphinxcontrib/blockdiag.py
index <HASH>..<HASH> 100755
--- a/blockdiag/sphinxcontrib/blockdiag.py
+++ b/blockdiag/sphinxcontrib/blockdiag.py
@@ -143,6 +143,8 @@ def create_blockdiag(self, code, options, prefix='blockdiag'):
draw = None
try:
+ ... | * Init blockdiag objects at first | py |
diff --git a/src/segments/profile.py b/src/segments/profile.py
index <HASH>..<HASH> 100644
--- a/src/segments/profile.py
+++ b/src/segments/profile.py
@@ -2,6 +2,7 @@ import logging
from collections import Counter, OrderedDict
import unicodedata
from pathlib import Path
+import warnings
from csvw import TableGrou... | ignore warnings from csvw about unspecified columns - the spec allows arbitrary additional columns | py |
diff --git a/goatools/anno/annoreader_base.py b/goatools/anno/annoreader_base.py
index <HASH>..<HASH> 100755
--- a/goatools/anno/annoreader_base.py
+++ b/goatools/anno/annoreader_base.py
@@ -302,6 +302,12 @@ class AnnoReaderBase(object):
assert qual != set(['-']), ntd
assert 'always' not in qu... | Add function to check if reader was created with a GODag | py |
diff --git a/taxii2client/v20/__init__.py b/taxii2client/v20/__init__.py
index <HASH>..<HASH> 100644
--- a/taxii2client/v20/__init__.py
+++ b/taxii2client/v20/__init__.py
@@ -34,7 +34,7 @@ def as_pages(func, start=0, per_request=0, *args, **kwargs):
yield _to_json(resp)
total_obtained, total_available = _grab... | Don't log a warning when the total number of available objects is less than the per request size limit. | py |
diff --git a/microcosm_flask/conventions/relation.py b/microcosm_flask/conventions/relation.py
index <HASH>..<HASH> 100644
--- a/microcosm_flask/conventions/relation.py
+++ b/microcosm_flask/conventions/relation.py
@@ -48,7 +48,7 @@ def register_search_relation_endpoint(graph, obj, path_prefix, func, request_sch
:... | Use the correct resource in the relation response | py |
diff --git a/mistletoe/block_tokenizer.py b/mistletoe/block_tokenizer.py
index <HASH>..<HASH> 100644
--- a/mistletoe/block_tokenizer.py
+++ b/mistletoe/block_tokenizer.py
@@ -10,8 +10,8 @@ class FileWrapper:
self._anchor = 0
def __next__(self):
- self._index += 1
- if self._index < len(sel... | Fix FileWrapper backstep after StopIteration (#<I>) | py |
diff --git a/command/install.py b/command/install.py
index <HASH>..<HASH> 100644
--- a/command/install.py
+++ b/command/install.py
@@ -90,6 +90,15 @@ class install (Command):
('install-data=', None,
"installation directory for data files"),
+ # Byte-compilation options -- see install_lib.py ... | Added --compile, --optimize options so users have an easy way to instruct the "install_lib" command from the command-line. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -25,8 +25,6 @@ rsa_require = ['cryptography']
signedtoken_require = ['cryptography', 'pyjwt>=1.0.0']
signals_require = ['blinker']
-requires = []
-
setup(
name='oauthlib',
version=oauthlib.__version__,
@@ -47,7 ... | Remove unused 'requires' variable form setup.py | py |
diff --git a/Lib/ufo2fdk/pens/__init__.py b/Lib/ufo2fdk/pens/__init__.py
index <HASH>..<HASH> 100644
--- a/Lib/ufo2fdk/pens/__init__.py
+++ b/Lib/ufo2fdk/pens/__init__.py
@@ -13,7 +13,7 @@ class RelativeCoordinatePen(BasePen):
BasePen.__init__(self, glyphSet)
self._lastX = None
self._lastY = ... | rename attribute as an existing subclass already uses this... | py |
diff --git a/cassandra/connection.py b/cassandra/connection.py
index <HASH>..<HASH> 100644
--- a/cassandra/connection.py
+++ b/cassandra/connection.py
@@ -969,7 +969,7 @@ class ConnectionHeartbeat(Thread):
futures.append(HeartbeatFuture(connection, owner))
... | don't log exc_info in heartbeat; it's logged while defuncting | py |
diff --git a/zk_shell/shell.py b/zk_shell/shell.py
index <HASH>..<HASH> 100644
--- a/zk_shell/shell.py
+++ b/zk_shell/shell.py
@@ -1245,22 +1245,23 @@ child_watches=%s"""
self.show_output(str(ex))
@connected
- @ensure_params(Required("path"))
- @check_paths_exists("path")
+ @ensure_params(M... | Allow rmr to take multiple paths | py |
diff --git a/salt/utils/gitfs.py b/salt/utils/gitfs.py
index <HASH>..<HASH> 100644
--- a/salt/utils/gitfs.py
+++ b/salt/utils/gitfs.py
@@ -1653,6 +1653,9 @@ class Pygit2(GitProvider):
self.gitdir = salt.utils.path.join(self.repo.workdir, '.git')
self.enforce_git_config()
+ git_config = os.pat... | Fix GitFS support for pygit2 >= <I> | py |
diff --git a/populous/backends/postgres.py b/populous/backends/postgres.py
index <HASH>..<HASH> 100644
--- a/populous/backends/postgres.py
+++ b/populous/backends/postgres.py
@@ -42,7 +42,7 @@ class Postgres(Backend):
for size, batch in batches(item.generate(), item.total):
stmt = "INSERT INTO {} ... | Use Item.fields as a dict in postgres backend | py |
diff --git a/draftjs_exporter/engines/string.py b/draftjs_exporter/engines/string.py
index <HASH>..<HASH> 100644
--- a/draftjs_exporter/engines/string.py
+++ b/draftjs_exporter/engines/string.py
@@ -83,10 +83,11 @@ class DOM_STRING(DOMEngine):
if type_ in VOID_ELEMENTS:
return '<%s%s/>' % (type_... | Replace returns in branching conditionals by early returns in single ifs | py |
diff --git a/aegean.py b/aegean.py
index <HASH>..<HASH> 100644
--- a/aegean.py
+++ b/aegean.py
@@ -826,8 +826,12 @@ def fit_island(island_data):
i = island_data.i
innerclip,outerclip,csigma,max_summits,cc2arcsec,pix2arcsec=island_data.scalars
xmin,xmax,ymin,ymax=island_data.offsets
-
- wcs=pyw... | fixed a bug where wcs sometimes can't read fits headers from miriad generated files | py |
diff --git a/datadog_checks_base/datadog_checks/base/utils/common.py b/datadog_checks_base/datadog_checks/base/utils/common.py
index <HASH>..<HASH> 100644
--- a/datadog_checks_base/datadog_checks/base/utils/common.py
+++ b/datadog_checks_base/datadog_checks/base/utils/common.py
@@ -25,7 +25,7 @@ def get_docker_hostname... | Update wording for whitelist/blacklist precedence (#<I>) | py |
diff --git a/bcbio/hla/optitype.py b/bcbio/hla/optitype.py
index <HASH>..<HASH> 100644
--- a/bcbio/hla/optitype.py
+++ b/bcbio/hla/optitype.py
@@ -33,6 +33,9 @@ def run(data):
out_dir = utils.safe_makedir(os.path.join(dd.get_work_dir(data), "align",
dd.get_sam... | HLA: ensure calls with UMI processing inputs Avoids skipping HLA calls with UMIs which have two sets of fastq extractions: the original and consensus reads. We use the original reads avoiding consensus reduction as part of OptiType since we'd ideally like to feed as much information as possible and it's not clear cons... | py |
diff --git a/examples/flax/language-modeling/run_clm_flax.py b/examples/flax/language-modeling/run_clm_flax.py
index <HASH>..<HASH> 100755
--- a/examples/flax/language-modeling/run_clm_flax.py
+++ b/examples/flax/language-modeling/run_clm_flax.py
@@ -253,9 +253,9 @@ def data_loader(rng: jax.random.PRNGKey, dataset: Dat... | Make data shuffling in `run_clm_flax.py` respect global seed (#<I>) * use jax and jnp instead of numpy in data_loader * return batches as np.ndarray | py |
diff --git a/umbra/components/factory/scriptEditor/scriptEditor.py b/umbra/components/factory/scriptEditor/scriptEditor.py
index <HASH>..<HASH> 100644
--- a/umbra/components/factory/scriptEditor/scriptEditor.py
+++ b/umbra/components/factory/scriptEditor/scriptEditor.py
@@ -1415,6 +1415,8 @@ class ScriptEditor(QWidgetC... | Add Qt <I> compatibility. | py |
diff --git a/mha_helper/vip_metal_helper.py b/mha_helper/vip_metal_helper.py
index <HASH>..<HASH> 100644
--- a/mha_helper/vip_metal_helper.py
+++ b/mha_helper/vip_metal_helper.py
@@ -101,7 +101,7 @@ class VIPMetalHelper(object):
for line in stdout_lines:
# We want to match a line similar to the fo... | checking vip did not work on ipv6 | py |
diff --git a/ssbio/protein/sequence/seqprop.py b/ssbio/protein/sequence/seqprop.py
index <HASH>..<HASH> 100644
--- a/ssbio/protein/sequence/seqprop.py
+++ b/ssbio/protein/sequence/seqprop.py
@@ -489,6 +489,9 @@ class SeqProp(SeqRecord):
except KeyError as e:
log.error('{}: unable to run Pr... | Additional exception catch for ProteinAnalysis running | py |
diff --git a/sqlparse/lexer.py b/sqlparse/lexer.py
index <HASH>..<HASH> 100644
--- a/sqlparse/lexer.py
+++ b/sqlparse/lexer.py
@@ -43,12 +43,13 @@ class Lexer(object):
if isinstance(text, text_type):
pass
elif isinstance(text, bytes_type):
- try:
- text = text.de... | Fix encoding logic/order - If user provides an encoding value, use it instead of trying to _guess_ first. - If no value is provided, then decode with default of utf-8, otherwise try with unicode-escape | py |
diff --git a/conference_scheduler/tests/test_scheduler.py b/conference_scheduler/tests/test_scheduler.py
index <HASH>..<HASH> 100644
--- a/conference_scheduler/tests/test_scheduler.py
+++ b/conference_scheduler/tests/test_scheduler.py
@@ -3,23 +3,27 @@ from collections import Counter
from conference_scheduler import s... | [#1] Add some comments to the test | py |
diff --git a/jss/jssobject.py b/jss/jssobject.py
index <HASH>..<HASH> 100644
--- a/jss/jssobject.py
+++ b/jss/jssobject.py
@@ -215,6 +215,37 @@ class JSSObject(PrettyElement):
with open(os.path.expanduser(path), "wb") as pickle:
cPickle.Pickler(pickle, cPickle.HIGHEST_PROTOCOL).dump(self)
+ d... | Add `JSSObject.tree()` method for pretty printing tag structure | py |
diff --git a/nodeshot/core/layers/serializers.py b/nodeshot/core/layers/serializers.py
index <HASH>..<HASH> 100755
--- a/nodeshot/core/layers/serializers.py
+++ b/nodeshot/core/layers/serializers.py
@@ -71,7 +71,7 @@ class LayerDetailSerializer(LayerListSerializer):
"""
class Meta:
model = Layer
- ... | Layer API: added slug field in Layer details needed for #<I> | py |
diff --git a/slackclient/_client.py b/slackclient/_client.py
index <HASH>..<HASH> 100644
--- a/slackclient/_client.py
+++ b/slackclient/_client.py
@@ -18,7 +18,7 @@ class SlackClient(object):
return False
def api_call(self, method, **kwargs):
- return self.server.api_call(method, kwargs)
+ ... | fix kwargs in master | py |
diff --git a/gwpy/io/ligolw.py b/gwpy/io/ligolw.py
index <HASH>..<HASH> 100644
--- a/gwpy/io/ligolw.py
+++ b/gwpy/io/ligolw.py
@@ -43,7 +43,8 @@ class GWpyContentHandler(LIGOLWContentHandler):
"""
warnings.warn("GWpyContentHandler has been deprecated and will be removed "
"in an upcoming re... | GWpyContentHandler: declare warning as deprecation [ci skip] | py |
diff --git a/abilian/web/frontend.py b/abilian/web/frontend.py
index <HASH>..<HASH> 100644
--- a/abilian/web/frontend.py
+++ b/abilian/web/frontend.py
@@ -709,7 +709,11 @@ class Module(object):
# sqlite does not support 'NULLS FIRST|LAST' in ORDER BY clauses
if engine.name != 'sqlite':
... | Workaround another SQLAlchemy regression. | py |
diff --git a/gwpy/tests/test_detector.py b/gwpy/tests/test_detector.py
index <HASH>..<HASH> 100644
--- a/gwpy/tests/test_detector.py
+++ b/gwpy/tests/test_detector.py
@@ -135,6 +135,11 @@ def test_parse_unit_strict():
assert isinstance(u, units.IrreducibleUnit)
assert str(u) == 'metre'
+ # assert that a ... | tests: added test for unrecognised unit comparisons units created on-the-fly should evaluate to equal with themselves | py |
diff --git a/mispy/misp.py b/mispy/misp.py
index <HASH>..<HASH> 100755
--- a/mispy/misp.py
+++ b/mispy/misp.py
@@ -387,6 +387,7 @@ class MispObject(MispBaseObject):
for field in ['id', 'event_id', 'name', 'description', 'comment', 'timestamp']:
val = getattr(xml_obj, field)
setattr(ob... | Fix bug when there is no Object in an Event | py |
diff --git a/ants/utils/image_similarity.py b/ants/utils/image_similarity.py
index <HASH>..<HASH> 100644
--- a/ants/utils/image_similarity.py
+++ b/ants/utils/image_similarity.py
@@ -9,7 +9,10 @@ def image_similarity(fixed_image, moving_image, metric_type='MeanSquares',
fixed_mask=None, moving_mask... | Clarify documentation clarifying that function actually returns negative similarity. | py |
diff --git a/vlcp/protocol/redis.py b/vlcp/protocol/redis.py
index <HASH>..<HASH> 100644
--- a/vlcp/protocol/redis.py
+++ b/vlcp/protocol/redis.py
@@ -73,7 +73,7 @@ class RedisParser(object):
self._buffer = b''
self._parser = self._parser_gen()
def feed(self, data):
- self._buffer += _copy... | - Compatibility with hiredis | py |
diff --git a/dvc/daemon.py b/dvc/daemon.py
index <HASH>..<HASH> 100644
--- a/dvc/daemon.py
+++ b/dvc/daemon.py
@@ -46,7 +46,6 @@ def _spawn_posix(cmd, env):
os._exit(1) # pylint: disable=protected-access
os.setsid()
- os.umask(0)
try:
pid = os.fork() | Remove a remnant umask to solve #<I> (#<I>) | py |
diff --git a/tilequeue/toi/s3.py b/tilequeue/toi/s3.py
index <HASH>..<HASH> 100644
--- a/tilequeue/toi/s3.py
+++ b/tilequeue/toi/s3.py
@@ -10,7 +10,7 @@ class S3TilesOfInterestSet(object):
def __init__(self, bucket, key):
s3 = boto.connect_s3()
buk = s3.get_bucket(bucket)
- self.key = buk.... | Don't validate on get_key() so the key gets created if its not there | py |
diff --git a/lyricfetch/__init__.py b/lyricfetch/__init__.py
index <HASH>..<HASH> 100644
--- a/lyricfetch/__init__.py
+++ b/lyricfetch/__init__.py
@@ -5,8 +5,9 @@ from pathlib import Path
def _load_config():
here = Path(os.path.realpath(__file__))
config_name = here.parent / 'config.json'
- with open(conf... | Don't load the config file if it doesn't exist | py |
diff --git a/saunter/po/webdriver/page.py b/saunter/po/webdriver/page.py
index <HASH>..<HASH> 100644
--- a/saunter/po/webdriver/page.py
+++ b/saunter/po/webdriver/page.py
@@ -40,6 +40,23 @@ class Page(object):
return False
else:
return False
+
+ def wait_for_available(self, loc... | adding wait_for_available to the webdriver page class | py |
diff --git a/pypika/terms.py b/pypika/terms.py
index <HASH>..<HASH> 100644
--- a/pypika/terms.py
+++ b/pypika/terms.py
@@ -1197,12 +1197,12 @@ class AnalyticFunction(Function):
self._filters = []
self._partition = []
self._orderbys = []
- self._filter = False
+ self._include_fil... | rename instance boolean variable _filter to _include_filter | py |
diff --git a/src/harvesters/test/test_harvester_core.py b/src/harvesters/test/test_harvester_core.py
index <HASH>..<HASH> 100644
--- a/src/harvesters/test/test_harvester_core.py
+++ b/src/harvesters/test/test_harvester_core.py
@@ -42,6 +42,7 @@ from harvesters.test.helper import get_package_dir
class TestHarvester... | Resolve issue #<I> Introduced a reasonable sleep duration. | py |
diff --git a/lib/makewcs.py b/lib/makewcs.py
index <HASH>..<HASH> 100644
--- a/lib/makewcs.py
+++ b/lib/makewcs.py
@@ -78,7 +78,7 @@ PARITY = {'WFC':[[1.0,0.0],[0.0,-1.0]],'HRC':[[-1.0,0.0],[0.0,1.0]],
NUM_PER_EXTN = {'ACS':3,'WFPC2':1,'STIS':3,'NICMOS':5, 'WFC3':3}
-__version__ = '1.1.2 (4 Mar 2009)'
+__version__... | Makewcs <I>: Corrects the definition of the reference chip for WFC3/UVIS data to be consistent with ACS/WFC. This addresses ticket #<I>. WJH git-svn-id: <URL> | py |
diff --git a/nptdms/tdms.py b/nptdms/tdms.py
index <HASH>..<HASH> 100644
--- a/nptdms/tdms.py
+++ b/nptdms/tdms.py
@@ -203,7 +203,7 @@ class TdmsFile(object):
"""
path = self._path(group)
- return [self.objects[p] for p in self.objects if p.startswith(path)]
+ return [self.objects[p] f... | Don't return group object in group channels | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -468,7 +468,7 @@ if __name__ == "__main__":
},
name = "Shinken",
- version = "0.6",
+ version = "0.8",
packages = find_packages(),
package_data = {'' : package_data},
... | FIX: forgot to change the setup.py for new release. | py |
diff --git a/h5netcdf/core.py b/h5netcdf/core.py
index <HASH>..<HASH> 100644
--- a/h5netcdf/core.py
+++ b/h5netcdf/core.py
@@ -225,7 +225,10 @@ class Group(Mapping):
self._groups = _LazyObjectLookup(self, self._group_cls)
for k, v in self._h5group.items():
- if isinstance(v, h5py.Group):
... | Add fix from @jreadey | py |
diff --git a/ah_bootstrap.py b/ah_bootstrap.py
index <HASH>..<HASH> 100644
--- a/ah_bootstrap.py
+++ b/ah_bootstrap.py
@@ -262,7 +262,7 @@ def _update_submodule(submodule, status):
except OSError as e:
err_msg = str(e)
else:
- if p.returncode != 0 or stderr:
+ if p.returncode != 0:
... | Only output an error warning if git submodule had a non-zero exit status. It appears that in some versions of git even a successful run can output some text to stderr; see <URL> | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.