diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/pgmpy/models/BayesianModel.py b/pgmpy/models/BayesianModel.py
index <HASH>..<HASH> 100644
--- a/pgmpy/models/BayesianModel.py
+++ b/pgmpy/models/BayesianModel.py
@@ -441,11 +441,10 @@ class BayesianModel(DirectedGraph):
Examples
--------
>>> from pgmpy.models import BayesianModel... | replaced example in get_independencies() docstring with sth simpler so output can be included | py |
diff --git a/expynent/patterns.py b/expynent/patterns.py
index <HASH>..<HASH> 100644
--- a/expynent/patterns.py
+++ b/expynent/patterns.py
@@ -287,3 +287,4 @@ PHONE_NUMBER = {
'ES': r'^(?:\+34|0)\d{9}$'
# RegEx pattern to match Taiwan phone numbers
'TW': r'^(?:\+886|0)((?:9\d{8})|(?:[2-8]\d{7,8}))$'
+ ... | fix incorrect deletion of curly brace | py |
diff --git a/mwxml/utilities/__init__.py b/mwxml/utilities/__init__.py
index <HASH>..<HASH> 100644
--- a/mwxml/utilities/__init__.py
+++ b/mwxml/utilities/__init__.py
@@ -1 +1,5 @@
from .dump2revdocs import dump2revdocs
+from .normalize import normalize
+from .validate import validate
+
+__all__ = [dump2revdocs, norma... | adds normalize and validate to utilities | py |
diff --git a/source/rafcon/gui/models/state_machine.py b/source/rafcon/gui/models/state_machine.py
index <HASH>..<HASH> 100644
--- a/source/rafcon/gui/models/state_machine.py
+++ b/source/rafcon/gui/models/state_machine.py
@@ -176,6 +176,7 @@ class StateMachineModel(MetaModel, Hashable):
self.root_state.update... | fix(models/state_machine): Observe income | py |
diff --git a/modules/miscutil/lib/invenio_connector_regression_tests.py b/modules/miscutil/lib/invenio_connector_regression_tests.py
index <HASH>..<HASH> 100644
--- a/modules/miscutil/lib/invenio_connector_regression_tests.py
+++ b/modules/miscutil/lib/invenio_connector_regression_tests.py
@@ -22,14 +22,14 @@
__revisi... | global: InvenioTestCase in test suite * Introduces InvenioTestCase class that is to be used in all test suits instead of standard unittest.TestCase class. Facilitates later merging to next. | py |
diff --git a/fastly/_version.py b/fastly/_version.py
index <HASH>..<HASH> 100644
--- a/fastly/_version.py
+++ b/fastly/_version.py
@@ -1 +1 @@
-__version__ = '0.1.1'
+__version__ = '0.1.2' | Bumps version to <I> | py |
diff --git a/can/thread_safe_bus.py b/can/thread_safe_bus.py
index <HASH>..<HASH> 100644
--- a/can/thread_safe_bus.py
+++ b/can/thread_safe_bus.py
@@ -87,9 +87,9 @@ class ThreadSafeBus(ObjectProxy):
with self._lock_recv:
self.__wrapped__.filters = filters
- def set_filters(self, can_filters=N... | Update argument name in thread safe bus set_filters method. Closes #<I> | py |
diff --git a/grimoire_elk/elk/enrich.py b/grimoire_elk/elk/enrich.py
index <HASH>..<HASH> 100644
--- a/grimoire_elk/elk/enrich.py
+++ b/grimoire_elk/elk/enrich.py
@@ -492,6 +492,13 @@ class Enrich(ElasticItems):
# Try to use always the origin in any case
if ds_name in self.prjs_map and eitem['... | [enrich] Improve repository to project logic to support Puppet mbox projects definition. | py |
diff --git a/nexus_uploader/pip_compile.py b/nexus_uploader/pip_compile.py
index <HASH>..<HASH> 100644
--- a/nexus_uploader/pip_compile.py
+++ b/nexus_uploader/pip_compile.py
@@ -88,7 +88,8 @@ def _pip_compile(constraints, nexus_hostname, append_egg_hash_to_url_if_need_be,
dep_links_ireqs = self.get_dep_li... | Fixing pylint "Method could be a function" | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -38,7 +38,7 @@ setup(
':python_version=="3.5"': ['pysocks'],
':python_version=="3.6"': ['pysocks'],
},
- packages = find_packages(),
+ packages = find_packages(exclude=['tests', 'tests.*']),
i... | Dont include tests in pip artifact | py |
diff --git a/samcli/lib/providers/sam_function_provider.py b/samcli/lib/providers/sam_function_provider.py
index <HASH>..<HASH> 100644
--- a/samcli/lib/providers/sam_function_provider.py
+++ b/samcli/lib/providers/sam_function_provider.py
@@ -97,16 +97,15 @@ class SamFunctionProvider(SamBaseProvider):
if l... | fix: change the multiple functions warning message colour to yellow (#<I>) | py |
diff --git a/timerboard/form.py b/timerboard/form.py
index <HASH>..<HASH> 100755
--- a/timerboard/form.py
+++ b/timerboard/form.py
@@ -5,7 +5,7 @@ from django.core.validators import MaxValueValidator, MinValueValidator
class TimerForm(forms.Form):
structure_choices = [('POCO', 'POCO'), ('I-HUB', 'I-HUB'), ('P... | Added TCU's to Timerboard Added TCU' to Timerboard | py |
diff --git a/tests/pytests/unit/proxy/test_restconf.py b/tests/pytests/unit/proxy/test_restconf.py
index <HASH>..<HASH> 100644
--- a/tests/pytests/unit/proxy/test_restconf.py
+++ b/tests/pytests/unit/proxy/test_restconf.py
@@ -5,11 +5,9 @@ import salt.proxy.restconf as restconf
from tests.support.mock import patch
... | Update tests/pytests/unit/proxy/test_restconf.py | py |
diff --git a/spinoff/actor/runner.py b/spinoff/actor/runner.py
index <HASH>..<HASH> 100644
--- a/spinoff/actor/runner.py
+++ b/spinoff/actor/runner.py
@@ -46,6 +46,9 @@ class ActorRunner(Service):
self._wrapper.stop()
return self._wrapper.join()
+ def __repr__(self):
+ return '<Act... | Added ActorRunner.__repr__ (for logging) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -9,7 +9,7 @@ def read(fname):
setup(
name="c7n",
- use_scm_version={'write_to': 'c7n/version.py', 'fallback_version': '0.9.0-unreleased'},
+ use_scm_version={'write_to': 'c7n/version.py', 'fallback_version': '0.9... | releng - use dev suffix on fallback version to prevent pypi installs (#<I>) | py |
diff --git a/iiif_testserver.py b/iiif_testserver.py
index <HASH>..<HASH> 100755
--- a/iiif_testserver.py
+++ b/iiif_testserver.py
@@ -326,7 +326,7 @@ class IIIFHandler(object):
(outfile,mime_type)=self.manipulator.derive(file,self.iiif)
# FIXME - find efficient way to serve file with headers
... | Fix image serve with py3, #<I> | py |
diff --git a/nestly/scripts/nestrun.py b/nestly/scripts/nestrun.py
index <HASH>..<HASH> 100755
--- a/nestly/scripts/nestrun.py
+++ b/nestly/scripts/nestrun.py
@@ -3,6 +3,7 @@ import logging
import os
import os.path
import shlex
+import shutil
import subprocess
import sys
@@ -112,6 +113,9 @@ def worker(data, json... | Copy template permissions to output file After template substitution, copy the permission bits. | py |
diff --git a/civicpy/tests/test_cli.py b/civicpy/tests/test_cli.py
index <HASH>..<HASH> 100644
--- a/civicpy/tests/test_cli.py
+++ b/civicpy/tests/test_cli.py
@@ -4,6 +4,7 @@ import tempfile
class TestCli(object):
+ @pytest.mark.skip(reason="Long running test")
def test_create_cache(self):
tmp_fil... | Skip cache creation test because it runs a long time and will freeze up CIViC if run in parallel on travis-ci | py |
diff --git a/tests/test_config_parser.py b/tests/test_config_parser.py
index <HASH>..<HASH> 100644
--- a/tests/test_config_parser.py
+++ b/tests/test_config_parser.py
@@ -937,9 +937,14 @@ class TestConfigParser(object):
"""
a.b = 3
a.b = ${a.b}
+ a.c = [1,2]... | add more tests for self-reference to no scalar objects | py |
diff --git a/tofu/imas2tofu/_core.py b/tofu/imas2tofu/_core.py
index <HASH>..<HASH> 100644
--- a/tofu/imas2tofu/_core.py
+++ b/tofu/imas2tofu/_core.py
@@ -1667,7 +1667,7 @@ class MultiIDSLoader(object):
# -------------
# Trival case
- if len(dextra) == 0:
+ if dextra in [None, (None, N... | [Issue<I>_FixToPlasma2DOnITER] Multi.to_Plasma2D(dextra=False) now works | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -31,7 +31,7 @@ setup(
'django>=1.6',
'django-class-based-auth-views>=0.2',
'django-piston==0.3.3',
- 'germanium==0.1.0',
+ 'germanium==0.1.1',
'django-block-snippets==0.0.7',
... | Upgrade Germanium to <I> | py |
diff --git a/art/test.py b/art/test.py
index <HASH>..<HASH> 100644
--- a/art/test.py
+++ b/art/test.py
@@ -1,9 +1,5 @@
# -*- coding: utf-8 -*-
'''
-This function get a string as input if input is one digit add a zero
-:param input_string: input digit az string
-:type input_string:str
-:return: modified output as str
... | fix : test some irrelevant part removed | py |
diff --git a/zengine/lib/translation.py b/zengine/lib/translation.py
index <HASH>..<HASH> 100644
--- a/zengine/lib/translation.py
+++ b/zengine/lib/translation.py
@@ -39,12 +39,17 @@ def _load_translations():
else:
# For other languages, we need to insert the translations
... | Fix loading when no translation is created yet While the management commands are required to create the translation files, if there are no translation files already in place, importing `zengine.lib.translation` would crash. Translation module is fixed to instead log an error if the language doesn't exist, making it po... | py |
diff --git a/pwkit/environments/casa/tasks.py b/pwkit/environments/casa/tasks.py
index <HASH>..<HASH> 100644
--- a/pwkit/environments/casa/tasks.py
+++ b/pwkit/environments/casa/tasks.py
@@ -749,7 +749,13 @@ def delcal(mspath):
if len(toremove):
tb.removecols(toremove)
tb.close()
- return toremove... | pwkit/environments/casa/tasks.py: fix the delcal CLI for Python 3 | py |
diff --git a/cherrypy/test/helper.py b/cherrypy/test/helper.py
index <HASH>..<HASH> 100644
--- a/cherrypy/test/helper.py
+++ b/cherrypy/test/helper.py
@@ -104,11 +104,11 @@ class LocalSupervisor(Supervisor):
if td:
td()
+ cherrypy.engine.exit()
+
for name, server ... | testAdditionalServers was causing test_states to hang because the former did not stop() all its servers. | py |
diff --git a/cfg.py b/cfg.py
index <HASH>..<HASH> 100644
--- a/cfg.py
+++ b/cfg.py
@@ -141,12 +141,20 @@ class CFG(object):
exit_target_addr = boring_exit.concretize()
self.cfg.add_edge(basic_block, self.bbl_dict[exit_target_addr])
+ def _get_block_addr(self, b):
+ if isinstance(b, simuvex.SimIRSB):
+ re... | Fixed a bug in CFG.output(). | py |
diff --git a/pychromecast/discovery.py b/pychromecast/discovery.py
index <HASH>..<HASH> 100644
--- a/pychromecast/discovery.py
+++ b/pychromecast/discovery.py
@@ -523,7 +523,7 @@ def discover_chromecasts(
# Wait for the timeout or the maximum number of devices
discover_complete.wait(timeout)
- return (br... | return list of discovered chromcasts instead of a dict_values which is not thread safe (#<I>) resolves <URL> | py |
diff --git a/myfitnesspal/client.py b/myfitnesspal/client.py
index <HASH>..<HASH> 100644
--- a/myfitnesspal/client.py
+++ b/myfitnesspal/client.py
@@ -70,8 +70,8 @@ class Client(MFPBase):
def _get_url_for_date(self, date, username):
return os.path.join(
self.BASE_URL,
- 'food/diary... | #<I> Improve URL generation to not rely on os.sep Specified the URL path separators directly rather than letting os.path.join insert its own separators. | py |
diff --git a/lib/svtplay_dl/utils/__init__.py b/lib/svtplay_dl/utils/__init__.py
index <HASH>..<HASH> 100644
--- a/lib/svtplay_dl/utils/__init__.py
+++ b/lib/svtplay_dl/utils/__init__.py
@@ -138,6 +138,8 @@ def filenamify(title):
# Drop any non ascii letters/digits
title = re.sub(r'[^a-zA-Z0-9 -.]', '', tit... | filenamify: remove “ and ‘ fix #<I> | py |
diff --git a/lavalink/models.py b/lavalink/models.py
index <HASH>..<HASH> 100644
--- a/lavalink/models.py
+++ b/lavalink/models.py
@@ -845,7 +845,7 @@ class DefaultPlayer(BasePlayer):
self.filters[filter_name] = filter_instance
await self._apply_filters()
- async def get_filter(self, _filter: Uni... | Remove async from get_filter | py |
diff --git a/stanza/models/common/doc.py b/stanza/models/common/doc.py
index <HASH>..<HASH> 100644
--- a/stanza/models/common/doc.py
+++ b/stanza/models/common/doc.py
@@ -270,7 +270,8 @@ class Document(StanzaObject):
expanded = [x for x in expansions[idx_e].split(' ') if len(x) > 0]
... | Check for None before trying to alter a token.misc field | py |
diff --git a/diff_cover/tests/test_violations_reporter.py b/diff_cover/tests/test_violations_reporter.py
index <HASH>..<HASH> 100644
--- a/diff_cover/tests/test_violations_reporter.py
+++ b/diff_cover/tests/test_violations_reporter.py
@@ -653,7 +653,7 @@ class Flake8QualityReporterTest(unittest.TestCase):
_pat... | correct error exit code for flake8 | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -13,7 +13,7 @@ with open(os.path.join(here, "README.rst"), encoding="utf-8") as f:
install_requires = [
"dask[array,dataframe]>=2.4.0",
"distributed>=2.4.0",
- "numba",
+ "numba>=0.51.0",
"numpy>=1.17.3",... | Require numba>=<I> (#<I>) (#<I>) | py |
diff --git a/bbc_tracklist.py b/bbc_tracklist.py
index <HASH>..<HASH> 100755
--- a/bbc_tracklist.py
+++ b/bbc_tracklist.py
@@ -231,7 +231,9 @@ def write_text(filename, tracklisting):
# if all else fails, just print listing
print("Cannot write text file to path: {}".format(filename))
print("Pr... | Fix crashes on printing tracklisting with non-ASCII characters in Windows. | py |
diff --git a/hotdoc/core/comment_block.py b/hotdoc/core/comment_block.py
index <HASH>..<HASH> 100644
--- a/hotdoc/core/comment_block.py
+++ b/hotdoc/core/comment_block.py
@@ -69,7 +69,7 @@ class Comment(object):
self.col_offset = 0
self.initial_col_offset = 0
self.annotations = annotations or... | comment: make sure we only deal with unicode | py |
diff --git a/treeherder/client/thclient/client.py b/treeherder/client/thclient/client.py
index <HASH>..<HASH> 100644
--- a/treeherder/client/thclient/client.py
+++ b/treeherder/client/thclient/client.py
@@ -10,7 +10,7 @@ from requests_hawk import HawkAuth
# When releasing a new version to PyPI please also file a bug t... | Bump treeherder client version to <I> | py |
diff --git a/pydsl/Alphabet/Lexer.py b/pydsl/Alphabet/Lexer.py
index <HASH>..<HASH> 100644
--- a/pydsl/Alphabet/Lexer.py
+++ b/pydsl/Alphabet/Lexer.py
@@ -86,6 +86,9 @@ class Lexer(AlphabetTranslator):
if result[-1].symbol == "EOF_TYPE":
return result
+ def lexer_generator(self):
+ ... | added lexer_generator to Lexer class | py |
diff --git a/lib/tower_cli/resources/job.py b/lib/tower_cli/resources/job.py
index <HASH>..<HASH> 100644
--- a/lib/tower_cli/resources/job.py
+++ b/lib/tower_cli/resources/job.py
@@ -42,7 +42,7 @@ class Resource(models.BaseResource):
endpoint = '/jobs/'
@resources.command
- @click.option('--job-template'... | Make job template look up by int or name. | py |
diff --git a/emir/recipes/wavelengthcalibration.py b/emir/recipes/wavelengthcalibration.py
index <HASH>..<HASH> 100644
--- a/emir/recipes/wavelengthcalibration.py
+++ b/emir/recipes/wavelengthcalibration.py
@@ -40,8 +40,7 @@
import logging
-from numina.recipes import Parameter, provides
-from numina import RecipeB... | Importing RecipeBase from numina.recipes | py |
diff --git a/pyneuroml/pynml.py b/pyneuroml/pynml.py
index <HASH>..<HASH> 100644
--- a/pyneuroml/pynml.py
+++ b/pyneuroml/pynml.py
@@ -443,7 +443,7 @@ def run_jneuroml(pre_args,
output = ''
try:
- output = execute_command_in_dir("java -Xmx%s -jar %s %s %s %s" %
+ output = execute_command_... | Added single quotes around jar path to deal with unusual paths | py |
diff --git a/sigopt_sklearn/version.py b/sigopt_sklearn/version.py
index <HASH>..<HASH> 100644
--- a/sigopt_sklearn/version.py
+++ b/sigopt_sklearn/version.py
@@ -1,3 +1,3 @@
from __future__ import absolute_import, print_function
-VERSION = '2.0.0'
+VERSION = '2.1.0' | <I> (#<I>) | py |
diff --git a/master/buildbot/process/buildstep.py b/master/buildbot/process/buildstep.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/process/buildstep.py
+++ b/master/buildbot/process/buildstep.py
@@ -340,7 +340,7 @@ class BuildStep(results.ResultComputingConfigMixin,
@property
def workdir(self):
... | return somewhat sensible value when self.build is not set yet | py |
diff --git a/openquake/hazardlib/sourceconverter.py b/openquake/hazardlib/sourceconverter.py
index <HASH>..<HASH> 100644
--- a/openquake/hazardlib/sourceconverter.py
+++ b/openquake/hazardlib/sourceconverter.py
@@ -19,6 +19,7 @@ import operator
import collections
import logging
import time
+import os
import numpy
... | Introduce OQ_SPLITTING [skip CI] | py |
diff --git a/anharmonic/phonon3/__init__.py b/anharmonic/phonon3/__init__.py
index <HASH>..<HASH> 100644
--- a/anharmonic/phonon3/__init__.py
+++ b/anharmonic/phonon3/__init__.py
@@ -233,7 +233,7 @@ class Phono3py:
sigma=sigma,
filename=filename)
if gamma_at_si... | Fix bug for reading gammas at grid-points | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,3 +1,4 @@
+#! /usr/bin/env python3
from setuptools import setup, find_packages
setup(
@@ -19,5 +20,27 @@ setup(
license = "BSD",
keywords = "vmf valve map format source engine",
url = "http://github.com/B... | Add more detailed metadata to setup.py | py |
diff --git a/anytemplate/tests/globals.py b/anytemplate/tests/globals.py
index <HASH>..<HASH> 100644
--- a/anytemplate/tests/globals.py
+++ b/anytemplate/tests/globals.py
@@ -12,6 +12,7 @@ class Test(unittest.TestCase):
def test_10_null_handler(self):
logger = TT.logging.getLogger(__name__)
logge... | refactor: add a (dummy) test case of logging handler's emitter | py |
diff --git a/pythran/tests/cases/rc4.py b/pythran/tests/cases/rc4.py
index <HASH>..<HASH> 100644
--- a/pythran/tests/cases/rc4.py
+++ b/pythran/tests/cases/rc4.py
@@ -2,6 +2,7 @@
#runas data = "e"*100 ; key = "f"*3 ; rc4_crypt(data, key)
#bench data = "e"*2000000 ; key = "f"*3 ; rc4_crypt(data, key)
#pythran export ... | Doesn't work as answre is not utf8 compatible. | py |
diff --git a/credkeep/__init__.py b/credkeep/__init__.py
index <HASH>..<HASH> 100644
--- a/credkeep/__init__.py
+++ b/credkeep/__init__.py
@@ -1,4 +1,4 @@
-__version__ = '0.1.0'
+__version__ = '0.2.0'
from decrypt import decrypt_file
from encrypt import encrypt_file | chore: version bump to <I> | py |
diff --git a/SQL.py b/SQL.py
index <HASH>..<HASH> 100644
--- a/SQL.py
+++ b/SQL.py
@@ -13,7 +13,12 @@ import dbi
# or the mxODBC equivalent.
class Time:
def __init__( self, value ):
- if type( value ) in ( types.TupleType, time.struct_time ):
+ # the following three lines is a workaround to support Python 2.... | Set up workaround for Python <I> lack of time.struct_time support. | py |
diff --git a/sudo/views.py b/sudo/views.py
index <HASH>..<HASH> 100644
--- a/sudo/views.py
+++ b/sudo/views.py
@@ -74,7 +74,7 @@ def sudo(request, template_name='sudo/sudo.html', extra_context=None):
prompt the user for their password again, and if successful, redirect
them back to ``next``.
"""
- red... | REQUEST is being deprecated. Just use GET instead | py |
diff --git a/python/mxnet/libinfo.py b/python/mxnet/libinfo.py
index <HASH>..<HASH> 100644
--- a/python/mxnet/libinfo.py
+++ b/python/mxnet/libinfo.py
@@ -31,7 +31,7 @@ def find_lib_path():
"""
curr_path = os.path.dirname(os.path.abspath(os.path.expanduser(__file__)))
api_path = os.path.join(curr_path, '... | [CMAKE] Fix cmake library path when installing python package (#<I>) | py |
diff --git a/rollbar/__init__.py b/rollbar/__init__.py
index <HASH>..<HASH> 100644
--- a/rollbar/__init__.py
+++ b/rollbar/__init__.py
@@ -1129,8 +1129,13 @@ def _extract_wsgi_headers(items):
def _build_django_request_data(request):
+ try:
+ url = request.get_raw_uri()
+ except AttributeError:
+ ... | added support for django <I> & <I> in _build_django_request_data (#<I>) | py |
diff --git a/test.py b/test.py
index <HASH>..<HASH> 100644
--- a/test.py
+++ b/test.py
@@ -295,7 +295,21 @@ class TestSolveValuesNearSkewT(unittest.TestCase):
self._generator('Tlcl', 1.)
def test_calculate_thetae(self):
- self._generator('thetae', 1.)
+ quantity = 'Tw'
+ skew_T_valu... | altered thetae test to calculate Tlcl as intermediate quantity | py |
diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index <HASH>..<HASH> 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -3426,7 +3426,7 @@ class NDFrame(PandasObject, SelectionMixin, indexing.IndexingMixin):
line_terminator : str, optional
The newline character or cha... | Fix line_terminator escaping in python doc (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -36,7 +36,7 @@ url_schema = 'http://pypi.python.org/packages/source/d/%s/%s-%s.tar.gz'
download_url = url_schema % (package_name, package_name, pages.__version__)
install_requires = [
- 'Django>=1.8,<1.10',
+ 'Django... | Allow use with django <I> | py |
diff --git a/examples/wordle_test.py b/examples/wordle_test.py
index <HASH>..<HASH> 100644
--- a/examples/wordle_test.py
+++ b/examples/wordle_test.py
@@ -55,8 +55,8 @@ class WordleTests(BaseCase):
print(message)
self.skip(message)
version = [int(i) for i in __version__.split(".") i... | Update the "Wordle" test to do more smart-waiting | py |
diff --git a/pyqode/core/frontend/code_edit.py b/pyqode/core/frontend/code_edit.py
index <HASH>..<HASH> 100644
--- a/pyqode/core/frontend/code_edit.py
+++ b/pyqode/core/frontend/code_edit.py
@@ -990,6 +990,8 @@ class CodeEdit(QtWidgets.QPlainTextEdit):
def _update_panels(self, rect, delta_y, force_update_margins... | Same fix as in previous commit (<I>d<I>a<I>f6b<I>e<I>a<I>d2e<I>bffc<I>) but specific to windows? | py |
diff --git a/src/feat/gateway/gateway.py b/src/feat/gateway/gateway.py
index <HASH>..<HASH> 100644
--- a/src/feat/gateway/gateway.py
+++ b/src/feat/gateway/gateway.py
@@ -67,7 +67,7 @@ class Gateway(log.LogProxy, log.Logger):
log_keeper=self)
self._initiate_server(server)
... | Add some debug about hostnames | py |
diff --git a/billing/integrations/google_checkout_integration.py b/billing/integrations/google_checkout_integration.py
index <HASH>..<HASH> 100644
--- a/billing/integrations/google_checkout_integration.py
+++ b/billing/integrations/google_checkout_integration.py
@@ -389,7 +389,13 @@ class GoogleCheckoutIntegration(Inte... | fixed an issue in google checkout gc_cart_items_blob() some code was accidently removed in last update | py |
diff --git a/green/test/test_result.py b/green/test/test_result.py
index <HASH>..<HASH> 100644
--- a/green/test/test_result.py
+++ b/green/test/test_result.py
@@ -151,7 +151,7 @@ class TestProtoTest(unittest.TestCase):
"""
pass
test = proto_test(MyTests('test_stuff'))
- ... | It's more impressive if I write the correct test in the first place. | py |
diff --git a/saltcloud/clouds/joyent.py b/saltcloud/clouds/joyent.py
index <HASH>..<HASH> 100644
--- a/saltcloud/clouds/joyent.py
+++ b/saltcloud/clouds/joyent.py
@@ -219,9 +219,10 @@ def create(vm_):
deploy_kwargs['make_master'] = True
deploy_kwargs['master_pub'] = vm_['master_pub']
... | Fix the logic for make_syndic in Joyent | py |
diff --git a/sovrin_node/server/node.py b/sovrin_node/server/node.py
index <HASH>..<HASH> 100644
--- a/sovrin_node/server/node.py
+++ b/sovrin_node/server/node.py
@@ -238,11 +238,11 @@ class Node(PlenumNode, HasPoolManager):
# corresponding client request(REQUEST)
self.recordAndPropagate(request, frm)... | over-riding correct method of node | py |
diff --git a/gns3server/modules/virtualbox/virtualbox_vm.py b/gns3server/modules/virtualbox/virtualbox_vm.py
index <HASH>..<HASH> 100644
--- a/gns3server/modules/virtualbox/virtualbox_vm.py
+++ b/gns3server/modules/virtualbox/virtualbox_vm.py
@@ -368,12 +368,12 @@ class VirtualBoxVM(BaseVM):
hdd_files ... | Prevent non linked cloned hard disks to be detached when using VirtualBox linked cloned VMs. Fixes #<I>. | py |
diff --git a/django_extensions/management/commands/shell_plus.py b/django_extensions/management/commands/shell_plus.py
index <HASH>..<HASH> 100644
--- a/django_extensions/management/commands/shell_plus.py
+++ b/django_extensions/management/commands/shell_plus.py
@@ -503,14 +503,15 @@ for k, m in shells.import_objects({... | #<I> fix honouring SHELL_PLUS setting | py |
diff --git a/sos/plugins/openvswitch.py b/sos/plugins/openvswitch.py
index <HASH>..<HASH> 100644
--- a/sos/plugins/openvswitch.py
+++ b/sos/plugins/openvswitch.py
@@ -53,7 +53,9 @@ class OpenVSwitch(Plugin):
# Capture more details from bond devices
"ovs-appctl bond/show",
# Captur... | [openvswitch] Capture coverage stats Provide coverage statistics. | py |
diff --git a/blockstack_cli_0.14.1/blockstack_client/utils.py b/blockstack_cli_0.14.1/blockstack_client/utils.py
index <HASH>..<HASH> 100644
--- a/blockstack_cli_0.14.1/blockstack_client/utils.py
+++ b/blockstack_cli_0.14.1/blockstack_client/utils.py
@@ -23,7 +23,17 @@
import json
-from config import log
+from con... | use config's logger, put exit_with_error here | py |
diff --git a/glances/glances.py b/glances/glances.py
index <HASH>..<HASH> 100755
--- a/glances/glances.py
+++ b/glances/glances.py
@@ -832,7 +832,10 @@ class glancesStats:
# SENSORS
if (self.client_tag):
if input_stats != {}:
- self.sensors = input_stats["sensors"]
+ ... | Correct bug with server in version <I> | py |
diff --git a/ipcalc.py b/ipcalc.py
index <HASH>..<HASH> 100644
--- a/ipcalc.py
+++ b/ipcalc.py
@@ -719,11 +719,11 @@ class Network(IP):
slice_step = key.step or 1
arr = list()
while x < slice_stop:
- arr.append(IP(int(self) + x))
+ arr.append(IP(int(s... | Adding network mask when crating IP object. | py |
diff --git a/integration/connection.py b/integration/connection.py
index <HASH>..<HASH> 100644
--- a/integration/connection.py
+++ b/integration/connection.py
@@ -45,10 +45,11 @@ class Connection_(Spec):
# Most Unix systems should have stty, which asplodes when not run
# under a pty, and print... | stty -a behaves differently xplatform; stty size appears not to | py |
diff --git a/starbound/helpers.py b/starbound/helpers.py
index <HASH>..<HASH> 100644
--- a/starbound/helpers.py
+++ b/starbound/helpers.py
@@ -56,6 +56,20 @@ class Package(KeyStore):
return self._index
+class VariantDatabase(KeyStore):
+ def __init__(self, path):
+ super(VariantDatabase, self).__... | Improve support for .db files | py |
diff --git a/src/you_get/extractors/youtube.py b/src/you_get/extractors/youtube.py
index <HASH>..<HASH> 100644
--- a/src/you_get/extractors/youtube.py
+++ b/src/you_get/extractors/youtube.py
@@ -43,8 +43,8 @@ class YouTube(VideoExtractor):
code = re.sub(r'var\s+', r'', code)
code = re.sub(r'(\... | Fix (partly) #<I> * Handle JavaScript: Array.prototype.splice() * Python has a list.reverse() method | py |
diff --git a/openquake/kvs/__init__.py b/openquake/kvs/__init__.py
index <HASH>..<HASH> 100644
--- a/openquake/kvs/__init__.py
+++ b/openquake/kvs/__init__.py
@@ -27,6 +27,7 @@ import redis
from openquake import logs
from openquake.kvs import tokens
from openquake.utils import config
+from openquake.utils import sta... | kvs: cache_gc now deletes stats counters as well | py |
diff --git a/picklable_itertools/range.py b/picklable_itertools/range.py
index <HASH>..<HASH> 100644
--- a/picklable_itertools/range.py
+++ b/picklable_itertools/range.py
@@ -51,6 +51,9 @@ class xrange(object):
return self._step
def count(self, i):
+ """rangeobject.count(value) -> integer -- retu... | count and index docstrings. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -21,6 +21,9 @@ elif sys.argv[-1] == 'test-coverage':
os.system(r'nosetests --nocapture'
r' --with-coverage --cover-package=xml4h')
sys.exit()
+elif sys.argv[-1] == 'test':
+ os.system(r'nosetests --... | Use nosetests for setup.py 'test' action to actually find tests | py |
diff --git a/prometheus_client/core.py b/prometheus_client/core.py
index <HASH>..<HASH> 100644
--- a/prometheus_client/core.py
+++ b/prometheus_client/core.py
@@ -9,8 +9,8 @@ import mmap
import os
import re
import struct
+import time
import types
-from timeit import default_timer
try:
from BaseHTTPServer im... | Use realistic timer for Gauge.set_to_current_time set_to_current_time is expected to set the value to a realistic time. Performance counters are monotonic but don't say anything about the actual time. | py |
diff --git a/netpyne/simFuncs.py b/netpyne/simFuncs.py
index <HASH>..<HASH> 100644
--- a/netpyne/simFuncs.py
+++ b/netpyne/simFuncs.py
@@ -99,8 +99,12 @@ def createParallelContext ():
###############################################################################
# Wrapper to create network
#########################... | put in defaults of globals for sim.create() | py |
diff --git a/openquake/calculators/tests/__init__.py b/openquake/calculators/tests/__init__.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/tests/__init__.py
+++ b/openquake/calculators/tests/__init__.py
@@ -188,7 +188,9 @@ class CalculatorTestCase(unittest.TestCase):
res = super().run(result)
... | Small fix for pytest Former-commit-id: e9a6be9dc<I>dab<I>e0f<I>a<I>dc4c3ebfb4da1d | py |
diff --git a/samcli/local/docker/lambda_debug_settings.py b/samcli/local/docker/lambda_debug_settings.py
index <HASH>..<HASH> 100644
--- a/samcli/local/docker/lambda_debug_settings.py
+++ b/samcli/local/docker/lambda_debug_settings.py
@@ -134,7 +134,7 @@ class LambdaDebugSettings:
+ ["/var/lang/bin/nod... | fix: correct node<I> debugging configuration (#<I>) | py |
diff --git a/python_modules/dagster-graphql/dagster_graphql_tests/graphql/test_retry_execution.py b/python_modules/dagster-graphql/dagster_graphql_tests/graphql/test_retry_execution.py
index <HASH>..<HASH> 100644
--- a/python_modules/dagster-graphql/dagster_graphql_tests/graphql/test_retry_execution.py
+++ b/python_mod... | temporarily disable more flaky tests Summary: These are failing consistently enough to temporarily disable with an issue filed. test_successful_run is not great to disable, so probably worth prioritizing getting that turned back on. Test Plan: BK Reviewers: alangenfeld, max Reviewed By: alangenfeld Differential Re... | py |
diff --git a/turnstile/utils.py b/turnstile/utils.py
index <HASH>..<HASH> 100644
--- a/turnstile/utils.py
+++ b/turnstile/utils.py
@@ -11,3 +11,17 @@ def import_class(import_str):
except (ImportError, ValueError, AttributeError) as exc:
# Convert it into an import error
raise ImportError("Failed ... | Add a context manager to ignore exceptions | py |
diff --git a/codespell.py b/codespell.py
index <HASH>..<HASH> 100755
--- a/codespell.py
+++ b/codespell.py
@@ -89,10 +89,16 @@ class Summary:
class FileOpener:
def __init__(self, use_chardet):
self.use_chardet = use_chardet
- self.init_chardet()
+ if use_chardet:
+ self.init_char... | Don't init chardet if it's not being used This way codespell can be run on a system without chardet installed. | py |
diff --git a/tests/test_gallery.py b/tests/test_gallery.py
index <HASH>..<HASH> 100644
--- a/tests/test_gallery.py
+++ b/tests/test_gallery.py
@@ -1,12 +1,14 @@
# -*- coding:utf-8 -*-
import locale
+import logging
import os
import pytest
import datetime
from os.path import join
from sigal.gallery import Albu... | Test that exception is raised in debug mode. | py |
diff --git a/tests/test_interfaces.py b/tests/test_interfaces.py
index <HASH>..<HASH> 100644
--- a/tests/test_interfaces.py
+++ b/tests/test_interfaces.py
@@ -31,8 +31,8 @@ class TestInterfaces(unittest.TestCase):
continue
self.assertEqual(
- inspect.getargspec(base_func),... | use inspect.signature(), since getargspec is deprecated | py |
diff --git a/tools/run_tests/run_xds_tests.py b/tools/run_tests/run_xds_tests.py
index <HASH>..<HASH> 100755
--- a/tools/run_tests/run_xds_tests.py
+++ b/tools/run_tests/run_xds_tests.py
@@ -114,7 +114,9 @@ argp.add_argument(
'--xds_v3_support',
default=False,
action='store_true',
- help='Support xDS ... | mention bootstrap server features in flag help | py |
diff --git a/steamfiles/manifest.py b/steamfiles/manifest.py
index <HASH>..<HASH> 100644
--- a/steamfiles/manifest.py
+++ b/steamfiles/manifest.py
@@ -55,7 +55,7 @@ def loads(data):
parsed[MSG_NAMES[msg_id]] = protobuf_to_dict(message)
- return parsed['metadata']
+ return parsed
def dump(obj, fp... | [Manifest] Fix a loads function returning only one message out of three | py |
diff --git a/netpyne/sim/save.py b/netpyne/sim/save.py
index <HASH>..<HASH> 100644
--- a/netpyne/sim/save.py
+++ b/netpyne/sim/save.py
@@ -741,14 +741,12 @@ def saveSimDataInNode(filename=None, saveLFP=True, removeTraces=False):
print(('Saving output as %s ... ' % (fileName)))
with open(fileNa... | Removed 'finished saving' print statements | py |
diff --git a/nlppln/utils.py b/nlppln/utils.py
index <HASH>..<HASH> 100644
--- a/nlppln/utils.py
+++ b/nlppln/utils.py
@@ -50,13 +50,18 @@ def cwl_file(fname):
return {'class': 'File', 'path': fname}
-def get_files(directory):
+def get_files(directory, recursive=False):
"""Return a list of all files in th... | Add recursive option to get_files utility function The recursive option can be used to get a list of all files in a directory recursively. Default option is to just return all files in the top level directory. To do: - Refactor the ls command to use this utility function | py |
diff --git a/yaswfp/tests/test_sanity.py b/yaswfp/tests/test_sanity.py
index <HASH>..<HASH> 100644
--- a/yaswfp/tests/test_sanity.py
+++ b/yaswfp/tests/test_sanity.py
@@ -492,7 +492,7 @@ class SanityTestCase(unittest.TestCase):
t = swf.tags[5]
self.assertEqual(t.name, 'DefineBits')
self.asser... | JPEG SOI marker is required for JPEGData without SOI marker `im = PIL.Image.open(io.BytesIO(tag.JPEGData))` will raise PIL.UnidentifiedImageError: cannot identify image file | py |
diff --git a/pgpy/util.py b/pgpy/util.py
index <HASH>..<HASH> 100644
--- a/pgpy/util.py
+++ b/pgpy/util.py
@@ -4,7 +4,6 @@ utility functions for debutils.pgp
"""
import binascii
import math
-from enum import IntEnum
def bytes_to_int(b):
@@ -14,9 +13,4 @@ def bytes_to_int(b):
def int_to_bytes(i, minlen=1):
... | moved PFIntEnum to packets.type | py |
diff --git a/fcn/trainers/fcn32s.py b/fcn/trainers/fcn32s.py
index <HASH>..<HASH> 100644
--- a/fcn/trainers/fcn32s.py
+++ b/fcn/trainers/fcn32s.py
@@ -37,7 +37,8 @@ def get_trainer(
vgg = fcn.models.VGG16()
chainer.serializers.load_hdf5(vgg_path, vgg)
- model = fcn.models.FCN32s()
+ n_class = len(data... | Fix wrong n_class of FCN<I>s output | py |
diff --git a/publ/rendering.py b/publ/rendering.py
index <HASH>..<HASH> 100644
--- a/publ/rendering.py
+++ b/publ/rendering.py
@@ -276,11 +276,6 @@ def render_category_path(category: str, template: typing.Optional[str]):
if record:
return redirect(url_for('category', category=test_path, **request.... | There is no way for that to still be a path_alias | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -66,9 +66,9 @@ setup(name=NAME,
package_data={'vega_datasets': ['datasets.json',
'dataset_info.json',
'local_datasets.json',
- ... | MAINT: fix data location in setup.py | py |
diff --git a/nougat/utils.py b/nougat/utils.py
index <HASH>..<HASH> 100644
--- a/nougat/utils.py
+++ b/nougat/utils.py
@@ -133,20 +133,6 @@ class cached_property(object):
return value
-def get_all_parameters(func):
-
- args = list(inspect.signature(func).parameters.items())
-
- return [arg[0] for arg... | refactor: delete dead code about guarder | py |
diff --git a/pyrestcli/auth.py b/pyrestcli/auth.py
index <HASH>..<HASH> 100644
--- a/pyrestcli/auth.py
+++ b/pyrestcli/auth.py
@@ -11,15 +11,17 @@ from .exceptions import BadRequestException, NotFoundException, ServerErrorExcep
class BaseAuthClient(object):
""" Basic client to access (non)authorized REST APIs "... | Generalize authentication by taking session rather than proxies | py |
diff --git a/tools/buildgen/extract_metadata_from_bazel_xml.py b/tools/buildgen/extract_metadata_from_bazel_xml.py
index <HASH>..<HASH> 100755
--- a/tools/buildgen/extract_metadata_from_bazel_xml.py
+++ b/tools/buildgen/extract_metadata_from_bazel_xml.py
@@ -632,6 +632,10 @@ _BUILD_EXTRA_METADATA = {
'language... | fix import broken by missing grpc++_test library | py |
diff --git a/dikicli/core.py b/dikicli/core.py
index <HASH>..<HASH> 100644
--- a/dikicli/core.py
+++ b/dikicli/core.py
@@ -457,11 +457,6 @@ def write_index_file(data_dir):
----------
data_dir : pathlib.Path
Cache directory location.
-
- Returns
- -------
- filename pathlib.Path
- Loca... | write_index_file shouldn't return anything | py |
diff --git a/src/ossos-pipeline/ossos/gui/app.py b/src/ossos-pipeline/ossos/gui/app.py
index <HASH>..<HASH> 100644
--- a/src/ossos-pipeline/ossos/gui/app.py
+++ b/src/ossos-pipeline/ossos/gui/app.py
@@ -79,7 +79,7 @@ class ValidationApplication(object):
... | Sync now on by default when the source directory is VOSpace. Closes #<I>. | py |
diff --git a/trionyx/config.py b/trionyx/config.py
index <HASH>..<HASH> 100644
--- a/trionyx/config.py
+++ b/trionyx/config.py
@@ -229,6 +229,9 @@ class ModelConfig:
display_delete_button: bool = True
"""Display delete button for this model"""
+ disable_view: bool = False
+ """Disable view for this mo... | [TASK] Add config to disable viewing of model | py |
diff --git a/datatableview/datatables.py b/datatableview/datatables.py
index <HASH>..<HASH> 100644
--- a/datatableview/datatables.py
+++ b/datatableview/datatables.py
@@ -650,7 +650,7 @@ class Datatable(six.with_metaclass(DatatableMetaclass)):
else:
num_total = len(base_objects)
- if len(... | show correct num_filtered if filtering by individual columns | py |
diff --git a/openquake/engine/engine.py b/openquake/engine/engine.py
index <HASH>..<HASH> 100644
--- a/openquake/engine/engine.py
+++ b/openquake/engine/engine.py
@@ -102,6 +102,8 @@ def expose_outputs(dstore, owner=getpass.getuser(), status='complete'):
calcmode = oq.calculation_mode
dskeys = set(dstore) & e... | Hiding the avg_gmf output | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.