diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/src/sos/utils.py b/src/sos/utils.py
index <HASH>..<HASH> 100644
--- a/src/sos/utils.py
+++ b/src/sos/utils.py
@@ -895,10 +895,6 @@ def sos_handle_parameter_(key, defvalue):
NOTE: parmeters will not be handled if it is already defined in
the environment. This makes the parameters variable.
''... | Reduce the occurance of warning message #<I> | py |
diff --git a/fault/verilator_target.py b/fault/verilator_target.py
index <HASH>..<HASH> 100644
--- a/fault/verilator_target.py
+++ b/fault/verilator_target.py
@@ -50,6 +50,9 @@ void my_assert(
std::cerr << \"i : \" << std::dec << i << std::endl;
std::cerr << \"Port : \" << port << std::endl;
#if V... | Dump extra timestep on expect fail so we can see the final state | py |
diff --git a/pants-plugins/tests/python/internal_backend_test/sitegen/test_sitegen.py b/pants-plugins/tests/python/internal_backend_test/sitegen/test_sitegen.py
index <HASH>..<HASH> 100644
--- a/pants-plugins/tests/python/internal_backend_test/sitegen/test_sitegen.py
+++ b/pants-plugins/tests/python/internal_backend_te... | Remove a failing test for deleted functionality. We no longer show breadcrumbs on the docsite. Testing Done: Verified that test suite passes without this test. Reviewed at <URL> | py |
diff --git a/telethon/tl/custom/conversation.py b/telethon/tl/custom/conversation.py
index <HASH>..<HASH> 100644
--- a/telethon/tl/custom/conversation.py
+++ b/telethon/tl/custom/conversation.py
@@ -333,6 +333,12 @@ class Conversation(ChatGetter):
if message.chat_id != self.chat_id or message.out:
... | Fix handling of early edits in Conversation The incoming messages were never updated, so of course their edit_date wasn't either. This would cause the library to be stuck until it timed out, because the event had already arrived before we waited for it. As an example: await conv.send_message('foo') await slee... | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -11,14 +11,14 @@ import sys
sys.path.insert(0, './searx')
from version import VERSION_STRING
+with open('README.rst') as f:
+ long_description = f.read()
-def read(*rnames):
- return open(os.path.join(os.path.dirna... | seatup.py: fix [dev_]requirements and open file with context setup(..) named arguments 'install_requires' and 'extras_require' need lists arguments, the <map object> is ignored when installing extra environment 'test':: pip install -e .\[test\] | py |
diff --git a/umi_tools/extract.py b/umi_tools/extract.py
index <HASH>..<HASH> 100644
--- a/umi_tools/extract.py
+++ b/umi_tools/extract.py
@@ -246,9 +246,10 @@ class Extractor:
read1_format = read1.guessFormat()
assert self.encoding in read1_format, (
"specified quality encodi... | corrects quality checking so only UMI bases in bc-pattern are checked | py |
diff --git a/spyderlib/widgets/externalshell/pythonshell.py b/spyderlib/widgets/externalshell/pythonshell.py
index <HASH>..<HASH> 100644
--- a/spyderlib/widgets/externalshell/pythonshell.py
+++ b/spyderlib/widgets/externalshell/pythonshell.py
@@ -272,10 +272,11 @@ class ExternalPythonShell(ExternalShellBase):
... | External Console: Use the new stop icon instead of the terminate one | py |
diff --git a/txnintegration/integer_key_client.py b/txnintegration/integer_key_client.py
index <HASH>..<HASH> 100644
--- a/txnintegration/integer_key_client.py
+++ b/txnintegration/integer_key_client.py
@@ -47,7 +47,7 @@ class IntegerKeyClient(IntegerKeyCommunication):
elif keyfile:
logger.debug("... | Strip newline from keyfile in integer_key_client | py |
diff --git a/angr/state_plugins/view.py b/angr/state_plugins/view.py
index <HASH>..<HASH> 100644
--- a/angr/state_plugins/view.py
+++ b/angr/state_plugins/view.py
@@ -54,10 +54,11 @@ class SimRegNameView(SimStatePlugin):
inspect = True
disable_actions = False
- # When simulating a Jav... | Handle states with an unset project property | py |
diff --git a/envy/__init__.py b/envy/__init__.py
index <HASH>..<HASH> 100644
--- a/envy/__init__.py
+++ b/envy/__init__.py
@@ -1,3 +1,3 @@
-VERSION = '0.0.12'
+VERSION = '0.0.13'
from .application import get_active_venv, get_package_name, get_envy_path, original_backed_up, get_venv_full_package_path, get_file_path, s... | bump to <I> :balloon: | py |
diff --git a/python/orca/src/setup.py b/python/orca/src/setup.py
index <HASH>..<HASH> 100644
--- a/python/orca/src/setup.py
+++ b/python/orca/src/setup.py
@@ -92,7 +92,7 @@ def setup_package():
packages=get_bigdl_packages(),
install_requires=['conda-pack==0.3.1', 'packaging', 'filelock',
... | Adding pyzmq dependency for orca (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -47,7 +47,7 @@ LibraryDirs = None
# Add more platforms here when needed
if os.name == 'nt' or sys.platform == 'win32':
- Libraries = ['libeay32', 'ssleay32', 'Ws2_32']
+ Libraries = ['eay32', 'ssleay32', 'Ws2_32']
... | maybe eay<I> is nicer | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -29,7 +29,7 @@ from version import __version__
# Add any Sphinx extension module names here, as strings. They can be extensions
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
-extensions =... | removing releases till I can fix isssue with it. | py |
diff --git a/vivarium/framework/time.py b/vivarium/framework/time.py
index <HASH>..<HASH> 100644
--- a/vivarium/framework/time.py
+++ b/vivarium/framework/time.py
@@ -62,7 +62,7 @@ class SimpleClock(SimulationClock):
self._step_size = builder.configuration.time.step_size
-def _get_time_stamp(time):
+def ge... | Move a private function to be public because we need it outside | py |
diff --git a/km3pipe/pumps/aanet.py b/km3pipe/pumps/aanet.py
index <HASH>..<HASH> 100644
--- a/km3pipe/pumps/aanet.py
+++ b/km3pipe/pumps/aanet.py
@@ -80,7 +80,7 @@ class AanetPump(Pump):
pass
for event in event_file:
- if event.mc_id > 0 and event.mc_t > 0: # apply ZED c... | Use det_id to determine if the file is MC | py |
diff --git a/spyder_kernels/customize/spyderpdb.py b/spyder_kernels/customize/spyderpdb.py
index <HASH>..<HASH> 100755
--- a/spyder_kernels/customize/spyderpdb.py
+++ b/spyder_kernels/customize/spyderpdb.py
@@ -74,8 +74,17 @@ class SpyderPdb(ipyPdb, object): # Inherits `object` to call super() in PY2
... | Update spyder_kernels/customize/spyderpdb.py | py |
diff --git a/deploy_stack.py b/deploy_stack.py
index <HASH>..<HASH> 100755
--- a/deploy_stack.py
+++ b/deploy_stack.py
@@ -568,6 +568,9 @@ def _deploy_job(job_name, base_env, upgrade, charm_prefix, bootstrap_host,
if upgrade:
client.juju('status', ())
assess_upgrade(client, juju_path)... | Add exercising of hooks to assessment of upgrade success | py |
diff --git a/pyisbn/__init__.py b/pyisbn/__init__.py
index <HASH>..<HASH> 100644
--- a/pyisbn/__init__.py
+++ b/pyisbn/__init__.py
@@ -72,6 +72,7 @@ else:
DASHES = [unicodedata.lookup(s) for s in ('HYPHEN-MINUS', 'EN DASH', 'EM DASH',
'HORIZONTAL BAR')]
+#: Site to URL mapp... | [Tr] Add doc for URL_MAP | py |
diff --git a/iapws/_iapws.py b/iapws/_iapws.py
index <HASH>..<HASH> 100644
--- a/iapws/_iapws.py
+++ b/iapws/_iapws.py
@@ -793,6 +793,9 @@ def getphase(Tc, Pc, T, P, x, region):
phase : string
Phase name
"""
+ # Avoid round problem
+ P = round(P, 8)
+ T = round(T, 8)
if P > Pc and T > T... | Fix getphase T and P round problem | py |
diff --git a/f90nml.py b/f90nml.py
index <HASH>..<HASH> 100644
--- a/f90nml.py
+++ b/f90nml.py
@@ -13,7 +13,7 @@ import os
import shlex
import textwrap
-__version__ = '0.6.1'
+__version__ = '0.6.2'
#---
@@ -155,7 +155,9 @@ def write_nmlgrp(grp_name, grp_vars, nml_file):
name_pad = ' ' * len(v_name + '... | Improved support for very long string inputs (though still buggy) | py |
diff --git a/tests/__init__.py b/tests/__init__.py
index <HASH>..<HASH> 100644
--- a/tests/__init__.py
+++ b/tests/__init__.py
@@ -179,7 +179,8 @@ def run_using_pytest(caller_globals):
def wsdl(schema_content, input=None, output=None, operation_name="f",
wsdl_target_namespace="my-wsdl-namespace",
- x... | parametrize test WSDL construction with web service URL Does not affect existing uses but allows more customized usage in the future. | py |
diff --git a/metaknowledge/bin/metaknowledgeDocsGen.py b/metaknowledge/bin/metaknowledgeDocsGen.py
index <HASH>..<HASH> 100644
--- a/metaknowledge/bin/metaknowledgeDocsGen.py
+++ b/metaknowledge/bin/metaknowledgeDocsGen.py
@@ -90,7 +90,7 @@ def cleanargs(obj, basic = False):
return '()'
def makeUrls(s):
- ... | Made links in the docsgen work better | py |
diff --git a/etk/run_core_kafka.py b/etk/run_core_kafka.py
index <HASH>..<HASH> 100644
--- a/etk/run_core_kafka.py
+++ b/etk/run_core_kafka.py
@@ -53,6 +53,7 @@ def run_serial_cdrs(core, consumer, producer, producer_topic, indexing=False):
# continue
if 'doc_id' not in cdr:
cdr['doc_i... | remove _id from cdr object | py |
diff --git a/vyked/registry.py b/vyked/registry.py
index <HASH>..<HASH> 100644
--- a/vyked/registry.py
+++ b/vyked/registry.py
@@ -171,7 +171,7 @@ class Registry:
def register_service(self, packet: dict, registry_protocol, host, port):
params = packet['params']
- service = Service(params['service... | Using host from supplied params | py |
diff --git a/tests/integration/modules/pillar.py b/tests/integration/modules/pillar.py
index <HASH>..<HASH> 100644
--- a/tests/integration/modules/pillar.py
+++ b/tests/integration/modules/pillar.py
@@ -51,7 +51,7 @@ class PillarModuleTest(integration.ModuleCase):
self.run_function('pillar.data')['test_ext... | tmp stub out test until we can find a better home for it | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -62,6 +62,8 @@ setup(name='PyVISA-py',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
+ 'Programming Language :: Pyt... | increased langiage support in setup.py | py |
diff --git a/hypermap/aggregator/models.py b/hypermap/aggregator/models.py
index <HASH>..<HASH> 100644
--- a/hypermap/aggregator/models.py
+++ b/hypermap/aggregator/models.py
@@ -1222,7 +1222,7 @@ def update_layers_wm(service, num_layers=None):
LOGGER.debug('Updating layer %s' % name)
... | We need to use llbox from WM api in place of bbox | py |
diff --git a/glad/generator/c.py b/glad/generator/c.py
index <HASH>..<HASH> 100644
--- a/glad/generator/c.py
+++ b/glad/generator/c.py
@@ -145,6 +145,7 @@ int gladInit(void);
void* gladGetProcAddress(const char *namez);
GLVersion gladLoadGL(void);
GLVersion gladLoadGLLoader(LOADER);
+void gladTerminate(void);
#if... | generator: added gladTerminate to C header | py |
diff --git a/play.py b/play.py
index <HASH>..<HASH> 100755
--- a/play.py
+++ b/play.py
@@ -5,13 +5,27 @@
import pyshell
+
# The subshell classes must be defined before being referenced.
class KarShell(pyshell.Shell):
"""The KarShell.
This message shows up when you type 'help'
"""
- pass
+
+ ... | Add examples of overloading lexer | py |
diff --git a/pdfconduit/utils/info.py b/pdfconduit/utils/info.py
index <HASH>..<HASH> 100644
--- a/pdfconduit/utils/info.py
+++ b/pdfconduit/utils/info.py
@@ -9,7 +9,7 @@ class Info:
@staticmethod
def _reader(path, password, prompt):
"""Read PDF and decrypt if encrypted."""
- pdf = PdfFileRead... | Added check to _reader method to determine if path param is already a PdfFileReader instance | py |
diff --git a/django_cas_ng/views.py b/django_cas_ng/views.py
index <HASH>..<HASH> 100644
--- a/django_cas_ng/views.py
+++ b/django_cas_ng/views.py
@@ -93,7 +93,7 @@ def login(request, next_page=None, required=False):
if not next_page:
next_page = _redirect_url(request)
if request.user.is_authenticate... | Update views.py Use USERNAME_FIELD instead of first_name or username for custom user model, otherwise it will cause problems for custom model without these fields. | py |
diff --git a/ndb/model_test.py b/ndb/model_test.py
index <HASH>..<HASH> 100644
--- a/ndb/model_test.py
+++ b/ndb/model_test.py
@@ -2247,7 +2247,7 @@ class ModelTests(test_utils.NDBTest):
# Now read this back using a GenericProperty.
class Outer(model.Model):
- inner = model.GenericProperty()
+ inn... | Fix testLocalStructuredPropertyWithKey, anticipating stricter stubs. | py |
diff --git a/indra/sources/bbn/processor.py b/indra/sources/bbn/processor.py
index <HASH>..<HASH> 100644
--- a/indra/sources/bbn/processor.py
+++ b/indra/sources/bbn/processor.py
@@ -81,7 +81,10 @@ class BBNJsonLdProcessor(object):
def _get_bbn_grounding(entity):
"""Return BBN grounding."""
- ... | Strip off leading slash in groundings | py |
diff --git a/pyqode/core/modes/filewatcher.py b/pyqode/core/modes/filewatcher.py
index <HASH>..<HASH> 100644
--- a/pyqode/core/modes/filewatcher.py
+++ b/pyqode/core/modes/filewatcher.py
@@ -154,12 +154,15 @@ class FileWatcherMode(Mode, QtCore.QObject):
"The file <i>%s</i> has changed externally.\nDo y... | Fix runtime error on deleted cpp obj (this can happens because the timer call us back just after the widget has been deleted, while other modes are being uninstalled) | py |
diff --git a/pycbc/tmpltbank/lattice_utils.py b/pycbc/tmpltbank/lattice_utils.py
index <HASH>..<HASH> 100644
--- a/pycbc/tmpltbank/lattice_utils.py
+++ b/pycbc/tmpltbank/lattice_utils.py
@@ -123,10 +123,7 @@ def generate_anstar_3d_lattice(maxv1, minv1, maxv2, minv2, maxv3, minv3, \
try:
import lalpulsar
... | Fix the error raised if lalpulsar is not found. | py |
diff --git a/pyaavso/formats/visual.py b/pyaavso/formats/visual.py
index <HASH>..<HASH> 100644
--- a/pyaavso/formats/visual.py
+++ b/pyaavso/formats/visual.py
@@ -15,7 +15,7 @@ class VisualFormatWriter(object):
.. _`Visual File Format`: http://www.aavso.org/aavso-visual-file-format
"""
- def __init__(sel... | Silly hack for delimiter always being string. | py |
diff --git a/custodian/vasp/handlers.py b/custodian/vasp/handlers.py
index <HASH>..<HASH> 100644
--- a/custodian/vasp/handlers.py
+++ b/custodian/vasp/handlers.py
@@ -96,17 +96,17 @@ class VaspErrorHandler(ErrorHandler, MSONable):
if "NBANDS" in vi["INCAR"]:
nbands = int(vi["INCAR"]["NBAND... | Decrease NBANDS increment to <I>%. | py |
diff --git a/src/transformers/modeling_flax_pytorch_utils.py b/src/transformers/modeling_flax_pytorch_utils.py
index <HASH>..<HASH> 100644
--- a/src/transformers/modeling_flax_pytorch_utils.py
+++ b/src/transformers/modeling_flax_pytorch_utils.py
@@ -86,7 +86,7 @@ def convert_pytorch_state_dict_to_flax(pt_state_dict, f... | correct conversion (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -37,7 +37,7 @@ except pkg_resources.DistributionNotFound:
# ------------------------------------------------------------------------------
metadata = dict(
name = "bitstream",
- version = "2.6.0.dev0",
+ version = "2.6.... | fix warnings for Python <I> to <I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -18,7 +18,7 @@ requires = [
setup(
name='crabpy',
- version='0.3.0',
+ version='0.3.1',
description='Interact with AGIV webservices.',
long_description=open('README.rst').read() + '\n\n' +
... | Bump master to <I>. | py |
diff --git a/rewcore/__init__.py b/rewcore/__init__.py
index <HASH>..<HASH> 100644
--- a/rewcore/__init__.py
+++ b/rewcore/__init__.py
@@ -1,4 +1,4 @@
from .lse import logsumexp, logsumexp_pair
from .wham import wham_fi, wham_fk, wham_normalize
-
+from .dtram import log_nu_K_i_setter, log_nu_K_i_equation, f_i_equat... | [dTRAM] added API to __init__.py | py |
diff --git a/binance/websockets.py b/binance/websockets.py
index <HASH>..<HASH> 100644
--- a/binance/websockets.py
+++ b/binance/websockets.py
@@ -1,8 +1,4 @@
# coding=utf-8
-try:
- import ujson as json
-except ImportError:
- import json
import threading
from autobahn.twisted.websocket import WebSocketClient... | Update import ujson, since it is already part of the requirements | py |
diff --git a/genanki/model.py b/genanki/model.py
index <HASH>..<HASH> 100644
--- a/genanki/model.py
+++ b/genanki/model.py
@@ -15,13 +15,13 @@ class Model:
if isinstance(fields, list):
self.fields = fields
elif isinstance(fields, str):
- self.fields = yaml.load(fields)
+ self.fields = yaml.fu... | Use yaml.full_load instead of yaml.load (#<I>) Plain `yaml.load` is deprecated in recent PyYAML versions and will throw a warning as-of PyYAML <I>. | py |
diff --git a/mov.py b/mov.py
index <HASH>..<HASH> 100755
--- a/mov.py
+++ b/mov.py
@@ -82,7 +82,7 @@ def create():
connection.text_factory = str
cursor = connection.cursor()
cursor.execute('DROP TABLE IF EXISTS Movies')
- cursor.execute('''CREATE TABLE movies(name TEXT, path TEXT, size... | Fix only listing one file per movie; change table name | py |
diff --git a/source/rafcon/gui/execution_log_viewer.py b/source/rafcon/gui/execution_log_viewer.py
index <HASH>..<HASH> 100755
--- a/source/rafcon/gui/execution_log_viewer.py
+++ b/source/rafcon/gui/execution_log_viewer.py
@@ -166,5 +166,9 @@ def main():
if __name__ == "__main__":
+ from rafcon.gui.start import... | feat(external execution log viewer): use rafcon gui environment and style | py |
diff --git a/yoconfigurator/dicts.py b/yoconfigurator/dicts.py
index <HASH>..<HASH> 100644
--- a/yoconfigurator/dicts.py
+++ b/yoconfigurator/dicts.py
@@ -1,5 +1,16 @@
"""Module for DotDict data structure and DotDict helpers."""
+try:
+ dict.iteritems
+except AttributeError:
+ # Python 3
+ def iteritems(d):... | add wrapper method to handle dict iter items differences in python2 and python3 | py |
diff --git a/pyoo.py b/pyoo.py
index <HASH>..<HASH> 100644
--- a/pyoo.py
+++ b/pyoo.py
@@ -1829,7 +1829,7 @@ class Desktop(_UnoProxy):
document = self._open_url(url)
return SpreadsheetDocument(document)
- def open_spreadsheet(self, path, as_template=False):
+ def open_spreadsheet(self, path, a... | Update pyoo.py Add read only option to open_spreadsheet() | py |
diff --git a/wikipediaapi/wikipedia.py b/wikipediaapi/wikipedia.py
index <HASH>..<HASH> 100644
--- a/wikipediaapi/wikipedia.py
+++ b/wikipediaapi/wikipedia.py
@@ -239,7 +239,8 @@ class Wikipedia(object):
):
base_url = 'http://' + page.language + '.wikipedia.org/w/api.php'
headers = {
- ... | Accept gzip to become good client. | py |
diff --git a/src/discoursegraphs/discoursegraph.py b/src/discoursegraphs/discoursegraph.py
index <HASH>..<HASH> 100644
--- a/src/discoursegraphs/discoursegraph.py
+++ b/src/discoursegraphs/discoursegraph.py
@@ -536,11 +536,7 @@ class DiscourseDocumentGraph(MultiDiGraph):
NOTE: This will only work if both graph... | merge_graphs() doesn't need to distinguish Tiger from other formats, cf. issue #<I> | py |
diff --git a/warehouse/views.py b/warehouse/views.py
index <HASH>..<HASH> 100644
--- a/warehouse/views.py
+++ b/warehouse/views.py
@@ -11,6 +11,7 @@
# limitations under the License.
import collections
+import gc
from pyramid.httpexceptions import (
HTTPException, HTTPSeeOther, HTTPMovedPermanently, HTTPNotF... | Add gc.collect() to see if that fixes high memory growth (#<I>) | py |
diff --git a/dvc/fs/base.py b/dvc/fs/base.py
index <HASH>..<HASH> 100644
--- a/dvc/fs/base.py
+++ b/dvc/fs/base.py
@@ -300,10 +300,6 @@ class BaseFileSystem:
if from_info.scheme != self.scheme:
raise NotImplementedError
- if to_info.scheme == self.scheme != "local":
- self.copy... | fs.download: remove unused copy between same fs (#<I>) | py |
diff --git a/bqplot/traits.py b/bqplot/traits.py
index <HASH>..<HASH> 100644
--- a/bqplot/traits.py
+++ b/bqplot/traits.py
@@ -240,7 +240,7 @@ class NdArray(CInstance):
dtype = 'date'
else:
dtype = a.dtype
- return {'values': a.tolist(), 'type': dtype}
+ ... | Return an actually jsonable value from the NDarray trait's to_json | py |
diff --git a/more_itertools/more.py b/more_itertools/more.py
index <HASH>..<HASH> 100644
--- a/more_itertools/more.py
+++ b/more_itertools/more.py
@@ -1923,6 +1923,17 @@ def consecutive_groups(iterable, ordering=lambda x: x):
['i']
['l', 'm', 'n', 'o', 'p']
+ Each group of consecutive items is an... | Add note about out-of-order consumption | py |
diff --git a/tower_cli/resources/workflow.py b/tower_cli/resources/workflow.py
index <HASH>..<HASH> 100644
--- a/tower_cli/resources/workflow.py
+++ b/tower_cli/resources/workflow.py
@@ -179,6 +179,13 @@ class Resource(models.SurveyResource):
labels = models.ManyToManyField('label', res_name='workflow')
+ a... | add ask-inventory-on-launch and ask-variables-on-launch to workflow | py |
diff --git a/master/buildbot/changes/gitpoller.py b/master/buildbot/changes/gitpoller.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/changes/gitpoller.py
+++ b/master/buildbot/changes/gitpoller.py
@@ -65,7 +65,8 @@ class GitPoller(base.PollingChangeSource):
if not os.path.exists(self.workdi... | Only checkout the proper branch in GitPoller | py |
diff --git a/shinken/scheduler.py b/shinken/scheduler.py
index <HASH>..<HASH> 100644
--- a/shinken/scheduler.py
+++ b/shinken/scheduler.py
@@ -506,7 +506,9 @@ class Scheduler:
#Already launch checks should not be touch
if c.status == 'scheduled':
t_to_go = c.t_to_go
- ... | Fix: bug in compensate time when thecore got event handler | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -2,6 +2,7 @@
import os
from setuptools import setup
+import sys
def read(fname):
@@ -17,6 +18,10 @@ setup(
author_email="srittau@rittau.biz",
url="https://github.com/srittau/python-asserts",
py_modules=... | [stubs] install alongside implementation | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -41,6 +41,8 @@ setup(
'pytest',
'pytest-cov',
'coveralls'
+ 'pylint',
+ 'flake8',
],
'docs': [
'mock', | added pylint and flake8 to test requirements | py |
diff --git a/bcbio/cwl/create.py b/bcbio/cwl/create.py
index <HASH>..<HASH> 100644
--- a/bcbio/cwl/create.py
+++ b/bcbio/cwl/create.py
@@ -118,8 +118,12 @@ def _write_tool(step_dir, name, inputs, outputs, parallel, image, programs,
"packages": [resolve_package(p) for p in programs]})
... | CWL: keep cache hint for Arvados variant calling Provide improved caching and runtimes for Arvados runs by caching BAM files on run machines. | py |
diff --git a/progressbar/bar.py b/progressbar/bar.py
index <HASH>..<HASH> 100644
--- a/progressbar/bar.py
+++ b/progressbar/bar.py
@@ -99,9 +99,9 @@ class DefaultFdMixin(ProgressBarMixinBase):
else:
line = '\r' + line
- try:
+ try: # pragma: no cover
self.fd.write(lin... | added fallback for ASCII terminals | py |
diff --git a/test/test_dev.py b/test/test_dev.py
index <HASH>..<HASH> 100644
--- a/test/test_dev.py
+++ b/test/test_dev.py
@@ -75,7 +75,7 @@ def test_dev(capsys, basic_conf):
# time_with_warnings failure case
assert re.search("File.*time_exception.*RuntimeError", text, re.S)
- assert re.search(r"Running ... | Fix tests vs. printing changes | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,6 +1,8 @@
#!/usr/bin/env python
import sys
+import logging
+
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
import pkg_resources
@@ -31,9 +33,18 @@ extras_require ... | Support distribute, Fixes #<I> | py |
diff --git a/django_prometheus/migrations.py b/django_prometheus/migrations.py
index <HASH>..<HASH> 100644
--- a/django_prometheus/migrations.py
+++ b/django_prometheus/migrations.py
@@ -27,7 +27,8 @@ def ExportMigrations():
django_prometheus.apps.AppConfig.
"""
return
- if 'default' in connections an... | Fix pep8 violation in <I>e3a0c. | py |
diff --git a/djangosaml2/views.py b/djangosaml2/views.py
index <HASH>..<HASH> 100644
--- a/djangosaml2/views.py
+++ b/djangosaml2/views.py
@@ -338,7 +338,14 @@ def assertion_consumer_service(request,
if not relay_state:
logger.warning('The RelayState parameter exists but is empty')
relay_state = ... | Update to also address the other case where we check for safe redirect URLS | py |
diff --git a/epc/client.py b/epc/client.py
index <HASH>..<HASH> 100644
--- a/epc/client.py
+++ b/epc/client.py
@@ -110,7 +110,11 @@ class EPCClient(EPCCore):
def close(self):
"""Close connection."""
- self.handler._recv_iter.stop()
+ try:
+ self.handler._recv_iter.stop()
+ ... | Fix EPCClient.close: do not fail when it is not used | py |
diff --git a/calloway/settings.py b/calloway/settings.py
index <HASH>..<HASH> 100644
--- a/calloway/settings.py
+++ b/calloway/settings.py
@@ -151,6 +151,7 @@ TINYMCE_DEFAULT_CONFIG = {
'theme_advanced_statusbar_location' : "bottom",
'width': "600",
'height': "600",
+ 'extended_valid_elements'': "img[... | added iframes to tinymce options | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -8,9 +8,9 @@ with open(path.join(this_directory, 'README.txt'), encoding='utf-8') as f:
setup(
name = "pyxid2",
- version = "1.0.4",
+ version = "1.0.5",
packages = find_packages(),
- install_requires = [... | Updating the version string, requiring a newer version of ftd2xx. | py |
diff --git a/installers/Windows/installer.py b/installers/Windows/installer.py
index <HASH>..<HASH> 100644
--- a/installers/Windows/installer.py
+++ b/installers/Windows/installer.py
@@ -34,16 +34,15 @@ import tempfile
import yarg
-# Packages to remove from the requirements for example pip. Need also for
-# packag... | Installer: Apply suggestions from code review | py |
diff --git a/qds_sdk/cluster.py b/qds_sdk/cluster.py
index <HASH>..<HASH> 100644
--- a/qds_sdk/cluster.py
+++ b/qds_sdk/cluster.py
@@ -159,7 +159,7 @@ class Cluster(Resource):
" creating the cluster",)
ec2_group.add_argument("--aws-region",
d... | Add 'sa-east-1' to list of supported regions. | py |
diff --git a/config/selenium_config.py b/config/selenium_config.py
index <HASH>..<HASH> 100644
--- a/config/selenium_config.py
+++ b/config/selenium_config.py
@@ -90,6 +90,7 @@ with open(os.path.join(dirname, "./browsers.txt")) as browsers:
continue # Skip comments and blank lines
parts = line.sp... | Fixed a bug in the Selenium configuration. Forgot to add the capabilities when a browser is run locally. Oops... | py |
diff --git a/ores/scorer_models/rev_id_scorer.py b/ores/scorer_models/rev_id_scorer.py
index <HASH>..<HASH> 100644
--- a/ores/scorer_models/rev_id_scorer.py
+++ b/ores/scorer_models/rev_id_scorer.py
@@ -38,7 +38,7 @@ class RevIdScorer(ScorerModel):
return {
'prediction': prediction,
- ... | RevIdScorer now uses 'probability' when scoring rather than 'probabilities' | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,4 +1,4 @@
-from distutils.core import setup
+from setuptools import setup
setup(
name = 'testrail', | Change setup from distutils to setuptools. | py |
diff --git a/autopep8.py b/autopep8.py
index <HASH>..<HASH> 100755
--- a/autopep8.py
+++ b/autopep8.py
@@ -167,6 +167,7 @@ def continued_indentation(logical_line, tokens, indent_level, noqa):
last_token_multiline = None
line = None
+ last_line = ''
for token_type, text, start, end, line in tokens:
... | Catch all E<I> cases in a single pass This speeds things up and fixes #<I>. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -4,7 +4,7 @@ from setuptools import setup, find_packages
setup(
name='Flask-GoogleMaps',
- version='0.1.5',
+ version='0.1.6',
license='MIT',
description='Small extension for Flask to make using Google ... | upgrades to <I> and updated pipy fix: #<I> | py |
diff --git a/creamas/core/environment.py b/creamas/core/environment.py
index <HASH>..<HASH> 100644
--- a/creamas/core/environment.py
+++ b/creamas/core/environment.py
@@ -112,6 +112,16 @@ class Environment(Container):
agents = [agent.addr for agent in agents]
return agents
+ def get_agent(sel... | Added Enviroment.get_agent(addr) to conveniently retrieve single agents from the environment's agents dict. | py |
diff --git a/heartbeat/heartbeat.py b/heartbeat/heartbeat.py
index <HASH>..<HASH> 100644
--- a/heartbeat/heartbeat.py
+++ b/heartbeat/heartbeat.py
@@ -64,7 +64,7 @@ class Heartbeat(object):
"""
# Generate a series of seeds
- seeds = self.gen_seeds(num, root_seed)
+ seeds = self.generat... | use new more descriptive generate_seeds call | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,11 +1,11 @@
import distutils.core
-import mackup.main
+import mackup.constants
distutils.core.setup(
name='Mackup',
- version=mackup.main.VERSION,
+ version=mackup.constants.VERSION,
author='Laurent ... | Fixed the version constant in setup.py | py |
diff --git a/dallinger/experiment_server/gunicorn.py b/dallinger/experiment_server/gunicorn.py
index <HASH>..<HASH> 100644
--- a/dallinger/experiment_server/gunicorn.py
+++ b/dallinger/experiment_server/gunicorn.py
@@ -60,7 +60,7 @@ class StandaloneServer(Application):
config = get_config()
workers = ... | Reduce default gunicorn worker count. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -15,7 +15,7 @@
from distutils.core import setup
setup(name='astral',
- version='0.4',
+ version='0.5',
description='Calculations for the position of the sun.',
long_description="""Sun calculations for... | Changed version to <I> | py |
diff --git a/examples/opf/experiments/anomaly/temporal/hotgym/description.py b/examples/opf/experiments/anomaly/temporal/hotgym/description.py
index <HASH>..<HASH> 100644
--- a/examples/opf/experiments/anomaly/temporal/hotgym/description.py
+++ b/examples/opf/experiments/anomaly/temporal/hotgym/description.py
@@ -317,7... | change anomaly mode to 'likelihood' in hotgym example | py |
diff --git a/tests/testextendmock.py b/tests/testextendmock.py
index <HASH>..<HASH> 100644
--- a/tests/testextendmock.py
+++ b/tests/testextendmock.py
@@ -61,7 +61,7 @@ class TestMockSignature(TestCase):
mock.reset()
f2(1, 7)
- mock.assert_called_with(1, 7
+ mock.assert_cal... | Correct horrible error accidentally left in previous commit (this message genuine as previous commit with spurious message was a slip of the fingers...). | py |
diff --git a/check_manifest.py b/check_manifest.py
index <HASH>..<HASH> 100755
--- a/check_manifest.py
+++ b/check_manifest.py
@@ -935,7 +935,7 @@ def zest_releaser_check(data):
return
try:
if not check_manifest(source_tree):
- if not ask("MANIFEST.in is not in order. "
+ if... | Adjust wording of "MANIFEST.in is not in order" The old wording confused me for a moment ("why does MANIFEST.in need to be sorted in a particular way?") | py |
diff --git a/setuptools/tests/test_namespaces.py b/setuptools/tests/test_namespaces.py
index <HASH>..<HASH> 100644
--- a/setuptools/tests/test_namespaces.py
+++ b/setuptools/tests/test_namespaces.py
@@ -12,8 +12,10 @@ from setuptools.command import test
class TestNamespaces:
- @pytest.mark.xfail(sys.version_inf... | change formatting to fix flake8 warning | py |
diff --git a/meshio/flac3d/_flac3d.py b/meshio/flac3d/_flac3d.py
index <HASH>..<HASH> 100644
--- a/meshio/flac3d/_flac3d.py
+++ b/meshio/flac3d/_flac3d.py
@@ -325,6 +325,7 @@ def _write_cells(f, points, cells, binary):
def _write_zgroups(f, cell_data, field_data, binary):
"""Write zone groups."""
+ zgroups =... | fix flac3d with no int cell data | py |
diff --git a/tests/interface/cli/exec_task_from_cli_test.py b/tests/interface/cli/exec_task_from_cli_test.py
index <HASH>..<HASH> 100644
--- a/tests/interface/cli/exec_task_from_cli_test.py
+++ b/tests/interface/cli/exec_task_from_cli_test.py
@@ -43,6 +43,5 @@ class ExecTaskFromCliTestCase(ZslTestCase, TestCase):
... | Remove unnecessry print in tests | py |
diff --git a/salt/config.py b/salt/config.py
index <HASH>..<HASH> 100644
--- a/salt/config.py
+++ b/salt/config.py
@@ -1135,7 +1135,7 @@ def apply_vm_profiles_config(providers, overrides, defaults=None):
vms = {}
for key, val in config.items():
- if key in ('conf_file', 'include', 'default_include'):... | Filter the 'user' keyword from the config for cloud. When the tests aren't run as root, it goes around replacing/injecting a user config option for the user the tests are run as. This upsets cloud, so we'll filter it out like default_include and similar get filtered. | py |
diff --git a/AlphaTwirl/ProgressBar/ProgressMonitor.py b/AlphaTwirl/ProgressBar/ProgressMonitor.py
index <HASH>..<HASH> 100755
--- a/AlphaTwirl/ProgressBar/ProgressMonitor.py
+++ b/AlphaTwirl/ProgressBar/ProgressMonitor.py
@@ -15,8 +15,12 @@ class ProgressMonitor(object):
def __init__(self, presentation):
... | add new methods in ProgressMonitor | py |
diff --git a/basis_set_exchange/printing.py b/basis_set_exchange/printing.py
index <HASH>..<HASH> 100644
--- a/basis_set_exchange/printing.py
+++ b/basis_set_exchange/printing.py
@@ -81,8 +81,12 @@ def electron_shell_str(shell, shellidx=None):
coefficients = shell['coefficients']
ncol = len(coefficients) + 1
... | Small improvements to bsedebug output | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,5 +1,8 @@
from setuptools import setup
-from pip.req import parse_requirements
+try: # for pip >= 10
+ from pip._internal.req import parse_requirements
+except ImportError: # for pip <= 9.0.3
+ from pip.req import pa... | Fixed conflict with pip>=<I> in setup.py | py |
diff --git a/greg/greg.py b/greg/greg.py
index <HASH>..<HASH> 100755
--- a/greg/greg.py
+++ b/greg/greg.py
@@ -404,7 +404,7 @@ def check(args):
name = args["feed"]
try:
podcast = feedparser.parse(url)
- wentwrong = "urlopen" in podcast["bozo_exception"]
+ wentwrong = "urlopen" in st... | wentwrong in check() was wrong | py |
diff --git a/src/hamster/lib/graphics.py b/src/hamster/lib/graphics.py
index <HASH>..<HASH> 100644
--- a/src/hamster/lib/graphics.py
+++ b/src/hamster/lib/graphics.py
@@ -1859,7 +1859,7 @@ class Scene(Parent, gtk.DrawingArea):
def __setattr__(self, name, val):
- if self.__dict__.get(name, "hamster_graph... | change `==` to `is` in __set_attr__ Using `==` could yield puzzling behavior in subclasses. This should be safer. cf. <URL> | py |
diff --git a/angr/analyses/cfg/cfg_fast.py b/angr/analyses/cfg/cfg_fast.py
index <HASH>..<HASH> 100644
--- a/angr/analyses/cfg/cfg_fast.py
+++ b/angr/analyses/cfg/cfg_fast.py
@@ -1676,7 +1676,10 @@ class CFGFast(ForwardAnalysis, CFGBase): # pylint: disable=abstract-method
for ins_regex in self.project.arch.... | Reword; the hack I think is gross is now the hack we're living with. Isn't ARM great folks? | py |
diff --git a/telethon/telegram_client.py b/telethon/telegram_client.py
index <HASH>..<HASH> 100644
--- a/telethon/telegram_client.py
+++ b/telethon/telegram_client.py
@@ -967,7 +967,11 @@ class TelegramClient(TelegramBareClient):
called automatically on connection if self.updates.enabled = True,
... | Fix process_updates=True preventing new sessions from signing in | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -2,7 +2,7 @@ from setuptools import setup
setup(
name="Jigsaw",
- version="1.1.0",
+ version="2.0.0",
packages=["jigsaw", ],
license="MIT",
description="A plugin framework for Python3.6+", | Updated version number in setup.py | py |
diff --git a/src/app/actions/mslookup/searchspace.py b/src/app/actions/mslookup/searchspace.py
index <HASH>..<HASH> 100644
--- a/src/app/actions/mslookup/searchspace.py
+++ b/src/app/actions/mslookup/searchspace.py
@@ -4,7 +4,7 @@ PROTEIN_STORE_CHUNK_SIZE = 100000
def create_searchspace_wholeproteins(lookup, fastafn... | Do not forget to switch L to I when building DB | py |
diff --git a/dragnet/model_training.py b/dragnet/model_training.py
index <HASH>..<HASH> 100644
--- a/dragnet/model_training.py
+++ b/dragnet/model_training.py
@@ -214,7 +214,9 @@ def evaluate_models_tokens(datadir, dragnet_model, figname_root=None,
gold_standard_tokens = {}
for fname, froot in all_files:
- ... | Exclude empty documents in evaluation (consistent with Weninger et al <I>) | py |
diff --git a/bulrush/license_generator.py b/bulrush/license_generator.py
index <HASH>..<HASH> 100644
--- a/bulrush/license_generator.py
+++ b/bulrush/license_generator.py
@@ -1,4 +1,4 @@
-from collections import Mapping
+from collections.abc import Mapping
import re
_HTML = ''' | Import Mapping ABC from collections.abc The aliases for the ABCs in collections were deprecated, and have been removed in Python <I>: <URL> | py |
diff --git a/tap/__init__.py b/tap/__init__.py
index <HASH>..<HASH> 100644
--- a/tap/__init__.py
+++ b/tap/__init__.py
@@ -3,4 +3,4 @@
from .runner import TAPTestRunner
__all__ = ['TAPTestRunner']
-__version__ = '2.1'
+__version__ = '2.2' | Bump the version number to <I>. | py |
diff --git a/tibber/__init__.py b/tibber/__init__.py
index <HASH>..<HASH> 100644
--- a/tibber/__init__.py
+++ b/tibber/__init__.py
@@ -263,7 +263,6 @@ class TibberHome:
async def fetch_consumption_data(self):
"""Update consumption info async."""
- # pylint: disable=consider-using-f-string)
... | pylint fix (#<I>) | py |
diff --git a/pygcgen/generator.py b/pygcgen/generator.py
index <HASH>..<HASH> 100644
--- a/pygcgen/generator.py
+++ b/pygcgen/generator.py
@@ -918,11 +918,13 @@ class Generator(object):
and self.options.future_release:
newer_tag_name = self.options.future_release
newer_tag_link = ... | fix link generation for unreleased section | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.