diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/discord/http.py b/discord/http.py
index <HASH>..<HASH> 100644
--- a/discord/http.py
+++ b/discord/http.py
@@ -409,7 +409,7 @@ class HTTPClient:
return self.request(route, form=form, files=files)
- def send_file(
+ def send_files(
self,
channel_id,
*, | Fix AttributeError on HTTPClient.send_file to be send_files | py |
diff --git a/bcbio/variation/genotype.py b/bcbio/variation/genotype.py
index <HASH>..<HASH> 100644
--- a/bcbio/variation/genotype.py
+++ b/bcbio/variation/genotype.py
@@ -204,6 +204,12 @@ def _variant_filtration_snp(broad_runner, snp_file, ref_file, vrn_files,
params.extend(["--maxGaussians", "4", "--perce... | Skip recalibration filtering if failed on first round and manual filtering found | py |
diff --git a/tests/test_eos.py b/tests/test_eos.py
index <HASH>..<HASH> 100644
--- a/tests/test_eos.py
+++ b/tests/test_eos.py
@@ -141,8 +141,8 @@ def test_eos_connector_execute_exception(mock_eapi):
@mock.patch('pylib.aeon.eos.connector.pyeapi.connect')
def test_eos_connector_execute(mock_eapi):
- def mock_exec... | update eos_connector_execute test to accept kwargs. | py |
diff --git a/test/tablet.py b/test/tablet.py
index <HASH>..<HASH> 100644
--- a/test/tablet.py
+++ b/test/tablet.py
@@ -3,6 +3,10 @@ import shutil
from subprocess import check_call, Popen, CalledProcessError, PIPE
import sys
import time
+import warnings
+# Dropping a table inexplicably produces a warning despite
+# t... | fix warnings from mysql in tests | py |
diff --git a/insteonplm/plm.py b/insteonplm/plm.py
index <HASH>..<HASH> 100644
--- a/insteonplm/plm.py
+++ b/insteonplm/plm.py
@@ -160,7 +160,7 @@ class PLM(asyncio.Protocol):
if cmd2 is not None:
txtcmd2 = '{:02x}'.format(cmd2)
- self.log.debug('Command 1: %x Command 2: %x cmd2: ', com... | Fixed logging in send_standard in PLM | py |
diff --git a/bika/lims/browser/referencesample.py b/bika/lims/browser/referencesample.py
index <HASH>..<HASH> 100644
--- a/bika/lims/browser/referencesample.py
+++ b/bika/lims/browser/referencesample.py
@@ -96,10 +96,6 @@ class ReferenceAnalysesView(AnalysesView):
self.contentFilter = {'portal_type':'Reference... | Remove unnecessary code (values assigned in base class already) | py |
diff --git a/server_setup.py b/server_setup.py
index <HASH>..<HASH> 100755
--- a/server_setup.py
+++ b/server_setup.py
@@ -8,7 +8,7 @@ from setuptools import setup, find_packages # noqa
setup(
name='seleniumbase',
- version='1.3.24',
+ version='1.3.26',
description='Test Automation Framework - http:... | Synchronize the server setup version to the main one | py |
diff --git a/blowfish.py b/blowfish.py
index <HASH>..<HASH> 100644
--- a/blowfish.py
+++ b/blowfish.py
@@ -300,14 +300,10 @@ class Cipher(object):
# Make S-boxes immutable
self.S = tuple(tuple(s) for s in self.S)
-
- def _f(self, a, b, c, d):
- return (((a + b) ^ c) + d) & 0xffffffff
-
+ ... | Removed _f substitution fuction. | py |
diff --git a/wpull/version.py b/wpull/version.py
index <HASH>..<HASH> 100644
--- a/wpull/version.py
+++ b/wpull/version.py
@@ -32,5 +32,5 @@ def get_version_tuple(string):
return (major, minor, patch, level, serial)
-__version__ = '0.34a1'
+__version__ = '0.35a1'
version_info = get_version_tuple(__version__) | Bumps version to <I>a1. [ci skip] | py |
diff --git a/scripts/gen_regex.py b/scripts/gen_regex.py
index <HASH>..<HASH> 100644
--- a/scripts/gen_regex.py
+++ b/scripts/gen_regex.py
@@ -38,8 +38,8 @@ def cache_regex_from_func(filename, func):
Generates a regex from a function that accepts a single unicode character,
and caches it in the data path at f... | Whoops -- put back 'file' as a variable name. (The perils of trusting syntax highlighting...) Former-commit-id: f<I>e<I>ecf<I>bad<I>a<I>a<I>f<I>eea0d | py |
diff --git a/pmagpy/pmag.py b/pmagpy/pmag.py
index <HASH>..<HASH> 100755
--- a/pmagpy/pmag.py
+++ b/pmagpy/pmag.py
@@ -2009,7 +2009,7 @@ def dotilt(dec, inc, bed_az, bed_dip):
def dotilt_V(indat):
"""
- Does a tilt correction on dec,inc using bedding dip direction and dip.
+ Does a tilt correction on an a... | modified: pmag.py | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -2,7 +2,6 @@
'''
from distutils.core import setup
-import numpy as np
from setuptools import find_packages
CLASSIFIERS = [
@@ -31,7 +30,7 @@ with open('README.md') as fp:
setup(
name = 'problemo',
- version ... | Fix numpy dependency in setup.py. | py |
diff --git a/plenum/common/util.py b/plenum/common/util.py
index <HASH>..<HASH> 100644
--- a/plenum/common/util.py
+++ b/plenum/common/util.py
@@ -494,25 +494,30 @@ def bootstrapClientKeys(identifier, verkey, nodes):
n.clientAuthNr.addClient(identifier, verkey)
-def prettyDate(time=False):
+def prettyDateD... | changed function name with minor refactoring | py |
diff --git a/pyvisa/constants.py b/pyvisa/constants.py
index <HASH>..<HASH> 100644
--- a/pyvisa/constants.py
+++ b/pyvisa/constants.py
@@ -652,6 +652,9 @@ class InterfaceType(enum.IntEnum):
"""The hardware interface
"""
+ # Used for unknown interface type strings.
+ unknown = -1
+
#: GPIB Interfa... | Added a new InterfaceType constant for unknown | py |
diff --git a/seaborn/request_client/intellisense.py b/seaborn/request_client/intellisense.py
index <HASH>..<HASH> 100644
--- a/seaborn/request_client/intellisense.py
+++ b/seaborn/request_client/intellisense.py
@@ -10,9 +10,9 @@
"""
-import endpoint
-import connection_basic
-import connection_endpoint
+from seabor... | 1/6/<I> Morning commit | py |
diff --git a/tests/integration/modules/test_cp.py b/tests/integration/modules/test_cp.py
index <HASH>..<HASH> 100644
--- a/tests/integration/modules/test_cp.py
+++ b/tests/integration/modules/test_cp.py
@@ -15,6 +15,7 @@ import textwrap
# Import Salt Testing libs
from tests.support.case import ModuleCase
from tests.... | Mark integration.modules.test_cp.CPModuleTest.test_get_file_str_https as flaky There appears to be something weird with the DNS resolution on the AWS Arch boxes. This test fails because it fails to resolve repo.saltstack.com, and I can reproduce this using an AWS instance via TestKitchen, but if I run the test again i... | py |
diff --git a/src/runez/http.py b/src/runez/http.py
index <HASH>..<HASH> 100644
--- a/src/runez/http.py
+++ b/src/runez/http.py
@@ -68,9 +68,9 @@ class GlobalHttpCalls:
self.allow(self.was_allowed)
@staticmethod
- def intentionally_disabled(*_, **__):
+ def intentionally_disabled(*_, **kwargs):
... | Show url when http call intentionally fails | py |
diff --git a/tweepy/api.py b/tweepy/api.py
index <HASH>..<HASH> 100644
--- a/tweepy/api.py
+++ b/tweepy/api.py
@@ -534,7 +534,7 @@ class API(object):
list_timeline = bind_api(
path = '/lists/statuses.json',
payload_type = 'status', payload_list = True,
- allowed_param = ['owner_screen_name... | Added new param (include_rts) to list_timeline | py |
diff --git a/src/jukeboxcore/reftrack.py b/src/jukeboxcore/reftrack.py
index <HASH>..<HASH> 100644
--- a/src/jukeboxcore/reftrack.py
+++ b/src/jukeboxcore/reftrack.py
@@ -192,6 +192,7 @@ from jukeboxcore.filesys import TaskFileInfo
from jukeboxcore.gui.treemodel import TreeModel, TreeItem, ListItemData
from jukeboxco... | Reftrack is only alien when it is not a global shot | py |
diff --git a/signalfx/client.py b/signalfx/client.py
index <HASH>..<HASH> 100644
--- a/signalfx/client.py
+++ b/signalfx/client.py
@@ -245,7 +245,10 @@ class SignalFxClient(BaseSignalFx):
def stop(self, msg='Thread stopped'):
"""Stop send thread and flush points for a safe exit."""
- self._thread... | Don't fail on stop() if no datapoints were ever sent | py |
diff --git a/pyiso.py b/pyiso.py
index <HASH>..<HASH> 100644
--- a/pyiso.py
+++ b/pyiso.py
@@ -319,6 +319,9 @@ class PrimaryVolumeDescriptor(object):
return self.root_dir_record
def write(self, out):
+ if not self.initialized:
+ raise Exception("This Primary Volume Descriptor is not ye... | Add initialized check to PVD write. | py |
diff --git a/main.py b/main.py
index <HASH>..<HASH> 100755
--- a/main.py
+++ b/main.py
@@ -336,7 +336,7 @@ class PowerLogParser:
if self.current_node is None:
# Incomplete game
sys.stderr.write("Warning: Creating an incomplete game\n")
- self.create_game(ts=None)
+ self.create_game(ts="")
self.current... | When creating empty games, use an empty string as timestamp A timestamp of None breaks upon serialization. Fixes #9 | py |
diff --git a/borax/finance.py b/borax/finance.py
index <HASH>..<HASH> 100644
--- a/borax/finance.py
+++ b/borax/finance.py
@@ -1,7 +1,20 @@
# coding=utf8
+from decimal import Decimal
+
+from typing import Union
+
+import warnings
+
from borax.numbers import FinanceNumbers
__all__ = ['financial_amount_capital']
... | :sparkles: Make financial_amount_capital deprecated | py |
diff --git a/hgicommon/models.py b/hgicommon/models.py
index <HASH>..<HASH> 100644
--- a/hgicommon/models.py
+++ b/hgicommon/models.py
@@ -34,7 +34,7 @@ class SearchCriterion(Model):
"""
Model of an attribute search criterion.
"""
- def __init__(self, attribute: str, value: str, comparison_operator: C... | Changed SearchCriterion constructor Set the default val of comparisonOperator to EQUALS in search criterion constructor | py |
diff --git a/tests/test_pep8.py b/tests/test_pep8.py
index <HASH>..<HASH> 100644
--- a/tests/test_pep8.py
+++ b/tests/test_pep8.py
@@ -156,6 +156,7 @@ def f(x):
@pytest.mark.parametrize('py_file', [py_file for py_file in list_notebooks('../jupytext') + list_notebooks('.') if
py_fi... | Doc is now explicit about the pep8 assumption | py |
diff --git a/bika/lims/exportimport/instruments/resultsimport.py b/bika/lims/exportimport/instruments/resultsimport.py
index <HASH>..<HASH> 100644
--- a/bika/lims/exportimport/instruments/resultsimport.py
+++ b/bika/lims/exportimport/instruments/resultsimport.py
@@ -5,6 +5,8 @@
# Copyright 2018 by it's authors.
# Som... | Codecs import moved to the top of the module | py |
diff --git a/qiskit/aqua/utils/circuit_utils.py b/qiskit/aqua/utils/circuit_utils.py
index <HASH>..<HASH> 100644
--- a/qiskit/aqua/utils/circuit_utils.py
+++ b/qiskit/aqua/utils/circuit_utils.py
@@ -17,6 +17,10 @@
import numpy as np
+from qiskit import transpiler, BasicAer
+from qiskit.transpiler import PassManage... | move convert_to_basis_gates method into circuit_utils | py |
diff --git a/saltcloud/cloud.py b/saltcloud/cloud.py
index <HASH>..<HASH> 100644
--- a/saltcloud/cloud.py
+++ b/saltcloud/cloud.py
@@ -3,6 +3,7 @@ The top level interface used to translate configuration data back to the
correct cloud modules
'''
# Import python libs
+import sys
import os
import copy
import multip... | Return meaningful errors when trying to load the map file | py |
diff --git a/lib/svtplay_dl/service/justin.py b/lib/svtplay_dl/service/justin.py
index <HASH>..<HASH> 100644
--- a/lib/svtplay_dl/service/justin.py
+++ b/lib/svtplay_dl/service/justin.py
@@ -59,7 +59,7 @@ class Justin(Service):
if not success:
log.debug(str(e))
- log.error("Can't find... | justin: adjust error msg in case of type being unknown | py |
diff --git a/trezor_agent/client.py b/trezor_agent/client.py
index <HASH>..<HASH> 100644
--- a/trezor_agent/client.py
+++ b/trezor_agent/client.py
@@ -66,6 +66,8 @@ class Client(object):
msg['conn'], msg['user'], msg['auth'], msg['key_type'])
log.debug('nonce: %s', binascii.hexlify(msg['nonc... | client: add logging for challenge sizes | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,4 +1,4 @@
-__version__ = '0.3.1'
+__version__ = '0.3.2'
import os | Release <I> - fix "I should see" | py |
diff --git a/trustar/TruStar.py b/trustar/TruStar.py
index <HASH>..<HASH> 100644
--- a/trustar/TruStar.py
+++ b/trustar/TruStar.py
@@ -111,12 +111,12 @@ class TruStar(object):
:param access_token: OAuth API token
:param from_time: Optional start of time window (Unix timestamp - seconds since epoch)
... | Addressing PR comments - replacing wording of 'defaults to xxx' to 'by default xxx is returned'o | py |
diff --git a/addok/server.py b/addok/server.py
index <HASH>..<HASH> 100644
--- a/addok/server.py
+++ b/addok/server.py
@@ -268,7 +268,7 @@ class BaseCSV(View):
if key not in fieldnames:
fieldnames.append(key)
output = io.StringIO()
- if output_encoding == 'utf-8':
+ ... | No BOM in CSV by default | py |
diff --git a/python/tests/title_test.py b/python/tests/title_test.py
index <HASH>..<HASH> 100644
--- a/python/tests/title_test.py
+++ b/python/tests/title_test.py
@@ -18,6 +18,8 @@ import numpy as np
def test_title(webdriver):
+ if webdriver.browser == 'firefox':
+ pytest.skip('test can hang under firefo... | test(title): skip title_test under firefox | py |
diff --git a/mygeotab/api.py b/mygeotab/api.py
index <HASH>..<HASH> 100644
--- a/mygeotab/api.py
+++ b/mygeotab/api.py
@@ -10,14 +10,14 @@ import warnings
import requests
from requests.adapters import HTTPAdapter
-from requests.packages.urllib3.poolmanager import PoolManager
+from requests.packages import urllib3
... | Minor code changes to prevent errors from the changes in the "requests" dependency (see: <URL>) | py |
diff --git a/neurosynth/analysis/classify.py b/neurosynth/analysis/classify.py
index <HASH>..<HASH> 100644
--- a/neurosynth/analysis/classify.py
+++ b/neurosynth/analysis/classify.py
@@ -120,6 +120,9 @@ def get_studies_by_regions(dataset, masks, threshold=0.08,
y = reduce(lambda a, b: a + b, y) # Flatten
y =... | Checks to ensure PMIDs are passed to dataset as integers if possible | py |
diff --git a/pylib/cqlshlib/formatting.py b/pylib/cqlshlib/formatting.py
index <HASH>..<HASH> 100644
--- a/pylib/cqlshlib/formatting.py
+++ b/pylib/cqlshlib/formatting.py
@@ -246,6 +246,7 @@ def format_value_map(val, encoding, colormap, time_format, float_precision, null
displaywidth = 4 * len(subs) + sum(k.displa... | Update cqlsh formatting for upgraded python driver Patch by Adam Holmberg; reviewed by Tyler Hobbs for CASSANDRA-<I> | py |
diff --git a/cobra/stats/stats.py b/cobra/stats/stats.py
index <HASH>..<HASH> 100644
--- a/cobra/stats/stats.py
+++ b/cobra/stats/stats.py
@@ -51,11 +51,10 @@ def combine_p_values(the_p_values, method='z', default_quantile=7.):
#values replace
the_quantiles = []
for the_p in the_p_values:
- ... | corrected a bug in combine_p_values introduced during a name change | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -9,7 +9,7 @@ os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-baton',
- version='1.0.5',
+ version='1.0.6',
packages=['baton', 'baton.autodiscover', 'baton.t... | bumped version number to <I> | py |
diff --git a/aiogram/utils/exceptions.py b/aiogram/utils/exceptions.py
index <HASH>..<HASH> 100644
--- a/aiogram/utils/exceptions.py
+++ b/aiogram/utils/exceptions.py
@@ -494,6 +494,20 @@ class MethodIsNotAvailable(BadRequest):
match = "Method is available only for supergroups"
+class CantRestrictChatOwner(Bad... | ADD Exceptions: (#<I>) * CantRestrictChatOwner * UserIsAnAdministratorOfTheChat | py |
diff --git a/tests/test_cli.py b/tests/test_cli.py
index <HASH>..<HASH> 100644
--- a/tests/test_cli.py
+++ b/tests/test_cli.py
@@ -133,11 +133,14 @@ def test_push_no_run(runner):
assert result.exit_code == 2
assert "Run id is required if files are specified." in result.output
-def test_push_dirty_gi... | Fix test that relied on git being dirty :) | py |
diff --git a/svtyper/version.py b/svtyper/version.py
index <HASH>..<HASH> 100644
--- a/svtyper/version.py
+++ b/svtyper/version.py
@@ -1,2 +1,2 @@
__author__ = "Colby Chiang (colbychiang@wustl.edu)"
-__version__ = "v0.3.0"
+__version__ = "v0.3.1" | + update to <I> - after code review with @ernfrid | py |
diff --git a/searx/search/checker/background.py b/searx/search/checker/background.py
index <HASH>..<HASH> 100644
--- a/searx/search/checker/background.py
+++ b/searx/search/checker/background.py
@@ -94,8 +94,10 @@ def _signal_handler(signum, frame):
def initialize():
- logger.info('Send SIGUSR1 signal to pid %i... | Windows does not support SIGUSR1, so don't use it unconditionally. | py |
diff --git a/zipline/finance/trading.py b/zipline/finance/trading.py
index <HASH>..<HASH> 100644
--- a/zipline/finance/trading.py
+++ b/zipline/finance/trading.py
@@ -18,6 +18,7 @@ import pytz
import logbook
import datetime
+from functools import wraps
from collections import defaultdict, OrderedDict
from delorea... | added functools.wraps as per @richafrank | py |
diff --git a/provider/views.py b/provider/views.py
index <HASH>..<HASH> 100644
--- a/provider/views.py
+++ b/provider/views.py
@@ -256,10 +256,14 @@ class Authorize(OAuthView, Mixin):
data)
if not authorization_form.is_bound:
- return self.render_to_response({'form': authorization_for... | Added client to the authorization template context | py |
diff --git a/src/transformers/modeling_t5.py b/src/transformers/modeling_t5.py
index <HASH>..<HASH> 100644
--- a/src/transformers/modeling_t5.py
+++ b/src/transformers/modeling_t5.py
@@ -629,6 +629,7 @@ class T5Stack(T5PreTrainedModel):
all_attentions = all_attentions + (layer_outputs[1],) # We keep o... | adding back final dropout in T5 | py |
diff --git a/hydra_base/lib/template.py b/hydra_base/lib/template.py
index <HASH>..<HASH> 100644
--- a/hydra_base/lib/template.py
+++ b/hydra_base/lib/template.py
@@ -364,8 +364,11 @@ def get_template_as_dict(template_id, **kwargs):
'metadata' : typeattr_j.default_dataset.metadata
... | Fix the get_template_as_dict failure by checking for the existance of default_dataset and attr on a typeattr before trying to delete them | py |
diff --git a/kafka/coordinator/base.py b/kafka/coordinator/base.py
index <HASH>..<HASH> 100644
--- a/kafka/coordinator/base.py
+++ b/kafka/coordinator/base.py
@@ -98,7 +98,7 @@ class BaseCoordinator(object):
partition assignment (if enabled), and to use for fetching and
committing offs... | Fix simple typo: managementment -> management Closes #<I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,4 +1,5 @@
#!/usr/bin/env python
+# -*- coding: utf-8 -*-
from distutils.core import setup | bugfix added the file encoding declaration. | py |
diff --git a/test/data/dataset/test_dataset.py b/test/data/dataset/test_dataset.py
index <HASH>..<HASH> 100644
--- a/test/data/dataset/test_dataset.py
+++ b/test/data/dataset/test_dataset.py
@@ -784,3 +784,13 @@ class TestDataFrameDatasetUnit(unittest.TestCase, _UserUrlLoader):
rows = _rows(df, ['test'], None,... | Add test for uploading DataFrames with non-ascii texts | py |
diff --git a/airflow/models/dag.py b/airflow/models/dag.py
index <HASH>..<HASH> 100644
--- a/airflow/models/dag.py
+++ b/airflow/models/dag.py
@@ -2315,9 +2315,9 @@ def dag(*dag_args, **dag_kwargs):
Accepts kwargs for operator kwarg. Can be used to parametrize DAGs.
:param dag_args: Arguments for DAG object... | Fixed type annotations in DAG decorator (#<I>) | py |
diff --git a/api_core/google/api_core/operation.py b/api_core/google/api_core/operation.py
index <HASH>..<HASH> 100644
--- a/api_core/google/api_core/operation.py
+++ b/api_core/google/api_core/operation.py
@@ -110,7 +110,7 @@ class Operation(polling.PollingFuture):
elif self._operation.HasField('error'):
... | Fix how api_core.operation populates exception errors (#<I>) | py |
diff --git a/salt/utils/event.py b/salt/utils/event.py
index <HASH>..<HASH> 100644
--- a/salt/utils/event.py
+++ b/salt/utils/event.py
@@ -797,13 +797,13 @@ class AsyncEventPublisher(object):
# We're already trying the default system path, stop now!
raise
- if not ... | Only try to create the default sock dir on failure to create the configured one | py |
diff --git a/de405/poke.py b/de405/poke.py
index <HASH>..<HASH> 100644
--- a/de405/poke.py
+++ b/de405/poke.py
@@ -78,7 +78,7 @@ def main():
if target == 14:
r = ephemeris.compute(12, jed)
elif target == 15:
- continue
+ r = ephemeris.compute(13, jed)
else:
... | Complete success: librations tests now pass, so the complete JPL test file is now passing! | py |
diff --git a/tests/fixture/__init__.py b/tests/fixture/__init__.py
index <HASH>..<HASH> 100644
--- a/tests/fixture/__init__.py
+++ b/tests/fixture/__init__.py
@@ -83,7 +83,7 @@ def start_tangelo(*args, **kwargs):
line = process.stderr.readline()
buf.append(line)
- if line.rstrip().endswith("T... | Fixing up signal for successful startup Now that we use a one-off to print the startup message in green, the exact string, including the control sequences, isn't what is printed anymore. This small change lets the tests pass as before in light of the change to Tangelo's logging. | py |
diff --git a/src/scout_apm/socket.py b/src/scout_apm/socket.py
index <HASH>..<HASH> 100644
--- a/src/scout_apm/socket.py
+++ b/src/scout_apm/socket.py
@@ -79,10 +79,6 @@ class CoreAgentSocket(threading.Thread):
self._connect()
self._register()
while True:
- if self.... | Move stop check to end of socket loop | py |
diff --git a/parsl/providers/slurm/slurm.py b/parsl/providers/slurm/slurm.py
index <HASH>..<HASH> 100644
--- a/parsl/providers/slurm/slurm.py
+++ b/parsl/providers/slurm/slurm.py
@@ -175,7 +175,7 @@ class SlurmProvider(ClusterProvider, RepresentationMixin):
tasks_per_node : int
Command invocations... | Remove docstring requirement that slurm job name is unique (#<I>) The slurm provider generates a unique slurm job name, based on the job_name passed to submit() and a timestamp; the job_name passed to submit() does not need to be unique, and it looks like in fact the default "parsl.slurm" is used in every use pars... | py |
diff --git a/py/pysparkling/conf.py b/py/pysparkling/conf.py
index <HASH>..<HASH> 100644
--- a/py/pysparkling/conf.py
+++ b/py/pysparkling/conf.py
@@ -120,6 +120,10 @@ class H2OConf(object):
self._jconf.setH2OClientLogLevel(level)
return self
+ def set_h2o_client_log_dir(self, log_dir):
+ ... | Add method to set client log dir to python api as well | py |
diff --git a/tmsetup/config.py b/tmsetup/config.py
index <HASH>..<HASH> 100644
--- a/tmsetup/config.py
+++ b/tmsetup/config.py
@@ -647,14 +647,7 @@ class Setup(object):
'''Description of the `TissueMAPS` setup.'''
def __init__(self, description_file=SETUP_FILE):
- if not os.path.exists(description_fi... | Simplify construction of Setup objects | py |
diff --git a/airflow/utils/db.py b/airflow/utils/db.py
index <HASH>..<HASH> 100644
--- a/airflow/utils/db.py
+++ b/airflow/utils/db.py
@@ -340,12 +340,13 @@ def resetdb():
log.info("Dropping tables that exist")
- models.base.Base.metadata.drop_all(settings.engine)
- mc = MigrationContext.configure(settin... | [AIRFLOW-<I>] Remove warning from `airflow resetdb` command (#<I>) Change engine to connection because error is thrown from new alembic version. Connection is expected. | py |
diff --git a/tests/test_filters.py b/tests/test_filters.py
index <HASH>..<HASH> 100644
--- a/tests/test_filters.py
+++ b/tests/test_filters.py
@@ -17,7 +17,7 @@ class TestFilters(TemplateTestMixin, SimpleTestCase):
}
output = tmpl.render(self.ctx)
- if VERSION[1] >= 5:
+ if VERSION[:2]... | Bolstered the version check by including the major version number | py |
diff --git a/troposphere/ec2.py b/troposphere/ec2.py
index <HASH>..<HASH> 100644
--- a/troposphere/ec2.py
+++ b/troposphere/ec2.py
@@ -606,3 +606,21 @@ class PlacementGroup(AWSObject):
props = {
'Strategy': (basestring, True),
}
+
+
+class SubnetCidrBlock(AWSObject):
+ resource_type = "AWS::EC2::S... | Add AWS::EC2::SubnetCidrBlock and AWS::EC2::VPCCidrBlock | py |
diff --git a/src/taxi/__init__.py b/src/taxi/__init__.py
index <HASH>..<HASH> 100755
--- a/src/taxi/__init__.py
+++ b/src/taxi/__init__.py
@@ -106,6 +106,15 @@ def commit(args):
)
pusher.push(parser.entries)
+
+ total_hours = 0
+ for date, entries in parser.entries.iteritems():
+ for entry in e... | Added total hours when committing to the server (fixed #2) | py |
diff --git a/ryu/controller/network.py b/ryu/controller/network.py
index <HASH>..<HASH> 100644
--- a/ryu/controller/network.py
+++ b/ryu/controller/network.py
@@ -368,7 +368,12 @@ class Network(app_manager.RyuApp):
old_mac_address = self._get_old_mac(network_id, dpid, port_no)
self.dpids.remove_port... | network.py: exception in Networks.remove_port() Neutron plugin can call remove_port after network deletion for automatic delete port like router/dhcp port. So ignore NetworkNotFound exception. | py |
diff --git a/{{cookiecutter.project_slug}}/config/settings/local.py b/{{cookiecutter.project_slug}}/config/settings/local.py
index <HASH>..<HASH> 100644
--- a/{{cookiecutter.project_slug}}/config/settings/local.py
+++ b/{{cookiecutter.project_slug}}/config/settings/local.py
@@ -15,6 +15,13 @@ Local settings for {{cooki... | Set ALLOWED_HOSTS in config.settings.local | py |
diff --git a/pycbc/workflow/segment.py b/pycbc/workflow/segment.py
index <HASH>..<HASH> 100644
--- a/pycbc/workflow/segment.py
+++ b/pycbc/workflow/segment.py
@@ -34,7 +34,7 @@ import logging
import urllib
from glue import segments, pipeline
from glue.ligolw import utils, table, lsctables, ligolw
-from pycbc.workflo... | Add missing make_external_call import | py |
diff --git a/moto/xray/mock_client.py b/moto/xray/mock_client.py
index <HASH>..<HASH> 100644
--- a/moto/xray/mock_client.py
+++ b/moto/xray/mock_client.py
@@ -46,10 +46,10 @@ class MockXrayClient:
if not f:
return self
- def wrapped_f():
+ def wrapped_f(*args, **kwargs):
... | Update xray client to forward args (#<I>) | py |
diff --git a/angr/state_plugins/history.py b/angr/state_plugins/history.py
index <HASH>..<HASH> 100644
--- a/angr/state_plugins/history.py
+++ b/angr/state_plugins/history.py
@@ -240,7 +240,7 @@ class SimStateHistory(SimStatePlugin):
return self.descriptions
@property
def addr_trace(self):
- p... | A typo fix in History.addr_trace. | py |
diff --git a/iarm/arm.py b/iarm/arm.py
index <HASH>..<HASH> 100644
--- a/iarm/arm.py
+++ b/iarm/arm.py
@@ -272,8 +272,8 @@ class Arm(iarm.cpu.Cpu):
parsed = self.parse_lines(code)
# Find all labels (don't need to have them point to anything yet
- labels = {line[0]: None for line in parsed if ... | Roll back the labels if there was an error | py |
diff --git a/devassistant/package_managers.py b/devassistant/package_managers.py
index <HASH>..<HASH> 100644
--- a/devassistant/package_managers.py
+++ b/devassistant/package_managers.py
@@ -193,7 +193,7 @@ class RPMPackageManager(PackageManager):
def resolve(cls, *args):
# TODO: we may need to rewrite th... | Fix/add log messages about dependency resolving | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -36,6 +36,7 @@ setup(
'click >= 5',
'requests >= 2.7.0',
'prompt_toolkit >= 0.53',
+ 'pygments >= 2.0.0',
],
keywords=['softlayer', 'cloud'],
classifiers=[ | Adds pygments as a depdendendy since prompt_toolkit removed it | py |
diff --git a/tests/test_base.py b/tests/test_base.py
index <HASH>..<HASH> 100644
--- a/tests/test_base.py
+++ b/tests/test_base.py
@@ -605,6 +605,9 @@ class TestURLTrafaret(unittest.TestCase):
res = str(t.URL().check('http://пример.рф/resource/?param=value#anchor'))
self.assertEqual(res, 'http://xn--e... | Allow underscore in url domain part. | py |
diff --git a/django_deployer/paas_templates/dotcloud/settings_dotcloud.py b/django_deployer/paas_templates/dotcloud/settings_dotcloud.py
index <HASH>..<HASH> 100644
--- a/django_deployer/paas_templates/dotcloud/settings_dotcloud.py
+++ b/django_deployer/paas_templates/dotcloud/settings_dotcloud.py
@@ -5,6 +5,11 @@ with... | no static or uploaded assets will appear without redefining these | py |
diff --git a/spyder/widgets/panels/tests/test_scrollflag.py b/spyder/widgets/panels/tests/test_scrollflag.py
index <HASH>..<HASH> 100644
--- a/spyder/widgets/panels/tests/test_scrollflag.py
+++ b/spyder/widgets/panels/tests/test_scrollflag.py
@@ -87,6 +87,7 @@ def test_enabled(editor_bot):
assert not sfa.isVisible... | Testing: Skip test_flag_painting on Linux because it fails | py |
diff --git a/anybadge/badge.py b/anybadge/badge.py
index <HASH>..<HASH> 100644
--- a/anybadge/badge.py
+++ b/anybadge/badge.py
@@ -1,5 +1,6 @@
import os
from collections import OrderedDict
+from pathlib import Path
from typing import Dict, Type, Optional, Union
from . import config
@@ -111,7 +112,7 @@ class Badge... | Allow template as pathlib.Path (#<I>) | py |
diff --git a/salt/loader.py b/salt/loader.py
index <HASH>..<HASH> 100644
--- a/salt/loader.py
+++ b/salt/loader.py
@@ -227,6 +227,8 @@ class Loader(object):
pass
else:
funcs[mod.__name__ + '.' + attr] = getattr(mod, attr)
+ for mod in modules... | Allow salt modules to call each other via the __salt__ object | py |
diff --git a/src/onelogin/api/client.py b/src/onelogin/api/client.py
index <HASH>..<HASH> 100644
--- a/src/onelogin/api/client.py
+++ b/src/onelogin/api/client.py
@@ -2568,13 +2568,18 @@ class OneLoginClient(object):
response = requests.put(url, headers=headers, json=json, timeout=self.requests_timeout... | Clean access_token when 2 consecutives <I> responses received | py |
diff --git a/parse_rest/datatypes.py b/parse_rest/datatypes.py
index <HASH>..<HASH> 100644
--- a/parse_rest/datatypes.py
+++ b/parse_rest/datatypes.py
@@ -255,6 +255,8 @@ class ACL(ParseType):
def __init__(self, acl=None):
self._acl = acl or {}
+ if acl is None:
+ self.set_default(read... | Set an ACL on ParseResource by default Also switch ACLs default permissions to public read/write fixes #<I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -2,13 +2,13 @@ from setuptools import setup, find_packages
setup(
name='slackminion',
- version='0.1.15',
+ version='0.1.16',
packages=find_packages(exclude=['test_plugins']),
url='h... | Fix description for pypi | py |
diff --git a/artifactory.py b/artifactory.py
index <HASH>..<HASH> 100755
--- a/artifactory.py
+++ b/artifactory.py
@@ -791,8 +791,13 @@ class ArtifactoryPath(pathlib.Path, PureArtifactoryPath):
if calc_sha1:
sha1 = sha1sum(file_name)
+ target = self
+
+ if self.is_dir():
+ ... | If target path points to a directory, deploy source file under that directory | py |
diff --git a/svtplay_dl.py b/svtplay_dl.py
index <HASH>..<HASH> 100755
--- a/svtplay_dl.py
+++ b/svtplay_dl.py
@@ -541,7 +541,7 @@ def select_quality(options, streams):
class Justin():
def handle(self, url):
- return ("twitch.com" in url) or ("justin.tv" in url)
+ return ("twitch.tv" in url) or ("... | Justin: right domain for twitch. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -12,7 +12,7 @@ instructions.
setup(
name="django-prometheus",
- version="0.2.1",
+ version="0.2.2",
author="Uriel Corfa",
author_email="uriel@corfa.fr",
description=( | Release <I> Fixes #6 in release, imports not working with prometheus_client <I>. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -2,7 +2,7 @@
# must import thisfirst. Ref: # must import this. Ref: https://stackoverflow.com/questions/7932028/setup-py-for-packages-that-depend-on-both-cython-and-f2py?rq=1
from setuptools import setup, Extension
import n... | use numpy setup again but trimming package name | py |
diff --git a/quark/db/api.py b/quark/db/api.py
index <HASH>..<HASH> 100644
--- a/quark/db/api.py
+++ b/quark/db/api.py
@@ -752,7 +752,7 @@ def _subnet_find(context, limit, sorts, marker, page_reverse, fields,
query = query.filter(and_(not_(models.Subnet.id.in_(defaults)),
... | Fixed typo Typo led to looking up all subnets on provider networks, which is not expected when only provider subnets are requested. JIRA:NCP-<I> | py |
diff --git a/tests/test_parse.py b/tests/test_parse.py
index <HASH>..<HASH> 100644
--- a/tests/test_parse.py
+++ b/tests/test_parse.py
@@ -1904,3 +1904,20 @@ def test_parse_get_entry_joliet(tmpdir):
assert(fooentry.file_length() == 4)
iso.close()
+
+def test_parse_dirrecord_nonzero_pad(tmpdir):
+ indir =... | Add another test for one more line of test coverage. | py |
diff --git a/cobe/brain.py b/cobe/brain.py
index <HASH>..<HASH> 100644
--- a/cobe/brain.py
+++ b/cobe/brain.py
@@ -159,6 +159,9 @@ class Brain:
count = count + 1
+ if best_reply is None:
+ return "I don't know enough to answer you yet!"
+
_time = _trace.now()-_start
... | Fix a crash when babbling on an empty brain | py |
diff --git a/doc/pyplots/pdf/exponential.py b/doc/pyplots/pdf/exponential.py
index <HASH>..<HASH> 100644
--- a/doc/pyplots/pdf/exponential.py
+++ b/doc/pyplots/pdf/exponential.py
@@ -2,18 +2,16 @@ from probfit.pdf import exponential
from probfit.plotting import draw_pdf
import matplotlib.pyplot as plt
-bound = (0, ... | remove bound and change arg to _arg in doc/pyplots/pdf/exponential | py |
diff --git a/xclim/indices/helpers.py b/xclim/indices/helpers.py
index <HASH>..<HASH> 100644
--- a/xclim/indices/helpers.py
+++ b/xclim/indices/helpers.py
@@ -31,13 +31,9 @@ def distance_from_sun(dates: xr.DaraArray) -> xr.DataArray:
xr.DataArray
Sun-earth distance [astronomical units]
"""
- calenda... | Use xclim.core.calendar to get days since <I>-<I>-<I> <I>:<I>:<I> | py |
diff --git a/vertex/command.py b/vertex/command.py
index <HASH>..<HASH> 100644
--- a/vertex/command.py
+++ b/vertex/command.py
@@ -192,6 +192,7 @@ class Sign(Command):
BadCertificateRequest: "BadCertificateRequest"}
+
class Choke(Command):
"""
Flow control: ask the peer to stop sending dat... | okay *now* it should be warnings-clean | py |
diff --git a/salt/utils/openstack/nova.py b/salt/utils/openstack/nova.py
index <HASH>..<HASH> 100644
--- a/salt/utils/openstack/nova.py
+++ b/salt/utils/openstack/nova.py
@@ -676,7 +676,10 @@ class SaltNova(object):
Show details of one server
'''
ret = {}
- servers = self.server_list_d... | Give a better error for failed servers If there is a failed server without the 'progress' attribute, then server_list_detailed fails. This also fails with trying to start anything that uses cloud, because it can't get the first command started. | py |
diff --git a/setup_libuv.py b/setup_libuv.py
index <HASH>..<HASH> 100644
--- a/setup_libuv.py
+++ b/setup_libuv.py
@@ -115,7 +115,7 @@ class libuv_build_ext(build_ext):
libuv_dir = os.path.join('deps', 'libuv')
libuv_repo = 'https://github.com/libuv/libuv.git'
libuv_branch = 'v1.x'
- libuv_... | core: raised libuv revision to <I>a<I>d | py |
diff --git a/ate/main.py b/ate/main.py
index <HASH>..<HASH> 100644
--- a/ate/main.py
+++ b/ate/main.py
@@ -1,3 +1,4 @@
+import os
import argparse
import logging
import unittest
@@ -73,5 +74,8 @@ def main():
log_level = getattr(logging, args.log_level.upper())
logging.basicConfig(level=log_level)
- tas... | set testcase filename as output folder name | py |
diff --git a/doc/source/conf.py b/doc/source/conf.py
index <HASH>..<HASH> 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -126,6 +126,9 @@ def setup(app):
# Autosummary
autosummary_generate = glob.glob("./*.rst")
+# Default role for ambiguous ':any:' targets
+default_role = 'py:class'
+
# Stops WARNING... | DOC: add default_role to conf.py for a bit of disambiguation | py |
diff --git a/ReText/highlighter.py b/ReText/highlighter.py
index <HASH>..<HASH> 100644
--- a/ReText/highlighter.py
+++ b/ReText/highlighter.py
@@ -44,7 +44,7 @@ class ReTextHighlighter(QSyntaxHighlighter):
(r'(?<=\[)[^\[\]]*(?=\])', Qt.blue, QFont.Normal), # 11: Links and images
(r'(?<=\]\()[^\(\)]*(?=\))', Non... | highlighter: fix regex for reStructuredText directives | py |
diff --git a/cme/cmeserver.py b/cme/cmeserver.py
index <HASH>..<HASH> 100644
--- a/cme/cmeserver.py
+++ b/cme/cmeserver.py
@@ -1,17 +1,9 @@
import BaseHTTPServer
import threading
import ssl
-<<<<<<< HEAD:cme/cmeserver.py
-<<<<<<< 23d8a6517fb1a36bac9b09e3923201ee291d00ac:cme/cmeserver.py
import os
import sys
from ... | Got rid of some left over merger cruft | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -2,8 +2,8 @@ from setuptools import setup
setup(name='python-ntlm3',
- version='1.0',
- description='Python library for NTLM.',
+ version='1.1-dev',
+ description='Python 3 compatible NTLM librar... | Fixing some stuff I ran into when uploading to PyPI | py |
diff --git a/easy_thumbnails/files.py b/easy_thumbnails/files.py
index <HASH>..<HASH> 100644
--- a/easy_thumbnails/files.py
+++ b/easy_thumbnails/files.py
@@ -31,6 +31,11 @@ def get_thumbnailer(source, relative_name=None):
* A string, which will be used as the relative name (the source will be
set t... | added docstring for new duck-type interface | py |
diff --git a/GPy/kern/bias.py b/GPy/kern/bias.py
index <HASH>..<HASH> 100644
--- a/GPy/kern/bias.py
+++ b/GPy/kern/bias.py
@@ -41,8 +41,8 @@ class bias(kernpart):
def dKdiag_dtheta(self,partial,X,target):
target += partial.sum()
- def dK_dX(self, X, X2, target):
+ def dK_dX(self, partial,X, X2, ta... | fixed bias kern for dk_dx | py |
diff --git a/ajax/server.py b/ajax/server.py
index <HASH>..<HASH> 100644
--- a/ajax/server.py
+++ b/ajax/server.py
@@ -118,7 +118,7 @@ class AjaxServer(Module):
str(media.uploadedBy.key))
except KeyError:
pass
- n_m.setAttribute('key', media.key)
+ n_m.setAttribute('key', str(media.key))
n_m.set... | ajax: bug: forgot str in generating MR | py |
diff --git a/suds/wsdl.py b/suds/wsdl.py
index <HASH>..<HASH> 100644
--- a/suds/wsdl.py
+++ b/suds/wsdl.py
@@ -969,12 +969,12 @@ class Factory:
"""
tags = {
- "import" : Import,
- "types" : Types,
- "message" : Message,
- "portType" : PortType,
- "binding" : Binding,
- ... | remove whitespace in front of : in dictionary literal (stylistic) | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.