diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/src/transformers/trainer.py b/src/transformers/trainer.py
index <HASH>..<HASH> 100755
--- a/src/transformers/trainer.py
+++ b/src/transformers/trainer.py
@@ -264,11 +264,14 @@ class Trainer:
self.eval_dataset = eval_dataset
self.tokenizer = tokenizer
- # Model parallel
- i... | [trainer] a few fixes (#<I>) * trainer fixes * don't switch the model just for deepspeed and mp * correct the fix | py |
diff --git a/examples.py b/examples.py
index <HASH>..<HASH> 100644
--- a/examples.py
+++ b/examples.py
@@ -2,7 +2,7 @@ from eulerian_magnify import eulerian_magnification, show_frequencies
show_frequencies('media/face.mp4')
-eulerian_magnification('media/face.mp4', image_processing='gaussian', gauss_level=3, fr... | pyramids, not gauss | py |
diff --git a/salt/modules/debian_ip.py b/salt/modules/debian_ip.py
index <HASH>..<HASH> 100644
--- a/salt/modules/debian_ip.py
+++ b/salt/modules/debian_ip.py
@@ -393,7 +393,7 @@ def __within(within=None, errmsg=None, dtype=None):
def __space_delimited_list(value):
'''validate that a value contains one or more ... | Support unicode in space-delimited list; fixes unit tests in py2. | py |
diff --git a/flask_allows/allows.py b/flask_allows/allows.py
index <HASH>..<HASH> 100644
--- a/flask_allows/allows.py
+++ b/flask_allows/allows.py
@@ -1,7 +1,7 @@
from functools import wraps
from flask import request, current_app
from werkzeug.exceptions import Forbidden
-
+from werkzeug import LocalProxy
class A... | Use werkzeug LocalProxy instead of managing it ourselves | py |
diff --git a/test/test_import_config.py b/test/test_import_config.py
index <HASH>..<HASH> 100644
--- a/test/test_import_config.py
+++ b/test/test_import_config.py
@@ -80,6 +80,9 @@ class Test_import_config:
delete_all_rules(device_value)
def test_normal_tc_command(self, tmpdir, device_value):
+ ... | Fix a test case for CI | py |
diff --git a/Adafruit_GPIO/MCP230xx.py b/Adafruit_GPIO/MCP230xx.py
index <HASH>..<HASH> 100755
--- a/Adafruit_GPIO/MCP230xx.py
+++ b/Adafruit_GPIO/MCP230xx.py
@@ -100,11 +100,18 @@ class MCP230xxBase(GPIO.BaseGPIO):
"""Read the specified pin and return GPIO.HIGH/True if the pin is pulled
high, or GPIO... | create input_pins() to read multiple pins with one call - MCP<I>xx | py |
diff --git a/name_cleaver/__init__.py b/name_cleaver/__init__.py
index <HASH>..<HASH> 100644
--- a/name_cleaver/__init__.py
+++ b/name_cleaver/__init__.py
@@ -1 +1 @@
-__version__ = '0.1a'
+__version__ = '0.1.1' | Changing versioning scheme and incrementing version (sort of) to see if that will get pip to upgrade the package. | py |
diff --git a/angr/simos.py b/angr/simos.py
index <HASH>..<HASH> 100644
--- a/angr/simos.py
+++ b/angr/simos.py
@@ -385,7 +385,7 @@ class IFuncResolver(SimProcedure):
try:
value = resolve()
except AngrCallableError:
- l.critical("Ifunc failed to resolve!")
+ l.critica... | (logging): also print names of failed IFuncResolvers | py |
diff --git a/pyipmi/interfaces/aardvark.py b/pyipmi/interfaces/aardvark.py
index <HASH>..<HASH> 100644
--- a/pyipmi/interfaces/aardvark.py
+++ b/pyipmi/interfaces/aardvark.py
@@ -33,7 +33,7 @@ class ChecksumError(Exception):
class Aardvark:
NAME = 'aardvark'
- def __init__(self):
+ def __init__(self, port... | interface: aardvark: add support to select device Now the device can be specified by port of serial number. | py |
diff --git a/peru/parser.py b/peru/parser.py
index <HASH>..<HASH> 100644
--- a/peru/parser.py
+++ b/peru/parser.py
@@ -112,8 +112,8 @@ def _build_module(name, type, blob, yaml_name):
# Do some validation on the module fields.
non_string_fields = [(key, val) for key, val in plugin_fields.items()
- ... | fix a lint check that's new in flake8 Summary: The latest version (<I>) caught a case where we had a newline before a binary operator. Make lint happy again. Reviewers: sean Reviewed By: sean Differential Revision: <URL> | py |
diff --git a/great_expectations/types/base.py b/great_expectations/types/base.py
index <HASH>..<HASH> 100644
--- a/great_expectations/types/base.py
+++ b/great_expectations/types/base.py
@@ -170,8 +170,6 @@ class RequiredKeysDotDict(DotDict):
))
def _coerce_complex_value_to_type(self, va... | Decruft and improve docstrings | py |
diff --git a/ingredients_http/errors/validation.py b/ingredients_http/errors/validation.py
index <HASH>..<HASH> 100644
--- a/ingredients_http/errors/validation.py
+++ b/ingredients_http/errors/validation.py
@@ -21,8 +21,11 @@ def json_errors_to_json(validation_errors, root=None):
})
elif i... | Fix validation error with nested documents | py |
diff --git a/salt/grains/disks.py b/salt/grains/disks.py
index <HASH>..<HASH> 100644
--- a/salt/grains/disks.py
+++ b/salt/grains/disks.py
@@ -51,9 +51,8 @@ class _camconsts:
SECTOR_SIZE = 'sector size'
MEDIA_RPM = 'media RPM'
-
-_identify_attribs = {key: _camconsts.__dict__[key] for key in
- ... | Simplify attribs list with list comprehension | py |
diff --git a/datadog_checks_base/datadog_checks/base/checks/base.py b/datadog_checks_base/datadog_checks/base/checks/base.py
index <HASH>..<HASH> 100644
--- a/datadog_checks_base/datadog_checks/base/checks/base.py
+++ b/datadog_checks_base/datadog_checks/base/checks/base.py
@@ -496,7 +496,7 @@ class __AgentCheck(object... | Make deprecations apparent in UI (#<I>) | py |
diff --git a/pygsp/utils.py b/pygsp/utils.py
index <HASH>..<HASH> 100644
--- a/pygsp/utils.py
+++ b/pygsp/utils.py
@@ -84,16 +84,6 @@ def sparsifier(func):
return inner
-def pyunlocbox_required(func):
-
- def inner(*args, **kwargs):
- try:
- import pyunlocbox
- except ImportError:
-... | no runtime dependancy on pyunlocbox | py |
diff --git a/src/mca.py b/src/mca.py
index <HASH>..<HASH> 100644
--- a/src/mca.py
+++ b/src/mca.py
@@ -51,8 +51,8 @@ class mca:
# another option, not pursued here, is sklearn.decomposition.TruncatedSVD
self.P, self.s, self.Q = numpy.linalg.svd(_mul(self.D_r, Z_c, self.D_c))
- if benzecri: self.E = numpy.arra... | Fix #2 - incorrect Benzecri correction computation in Python 2.x Change constants to floats in order to remove rounding due to integer division in computation of E. Test test_abdi_valentin now passes in Python <I> Alternative fix would be to add `from __future__ import division` | py |
diff --git a/openstack_dashboard/api/glance.py b/openstack_dashboard/api/glance.py
index <HASH>..<HASH> 100644
--- a/openstack_dashboard/api/glance.py
+++ b/openstack_dashboard/api/glance.py
@@ -153,7 +153,7 @@ def image_create(request, **kwargs):
asynchronously.
In the case of 'data' the process of uploadi... | Misspelling in message Misspelling in the message: "some time and is handed off to a seperate thread." Should be "some time and is handed off to a separate thread." Totally 1 occasion in horizon base code. Change-Id: I7a<I>c<I>c<I>c6fc<I>f<I>ea<I>bc0e8f6cb<I> | py |
diff --git a/pulsar/client/transport/standard.py b/pulsar/client/transport/standard.py
index <HASH>..<HASH> 100644
--- a/pulsar/client/transport/standard.py
+++ b/pulsar/client/transport/standard.py
@@ -20,9 +20,7 @@ class Urllib2Transport(object):
return urlopen(request, data)
def execute(self, url, me... | Reduce cyclomatic complexity in client.transport.standard | py |
diff --git a/src/_pytest/unittest.py b/src/_pytest/unittest.py
index <HASH>..<HASH> 100644
--- a/src/_pytest/unittest.py
+++ b/src/_pytest/unittest.py
@@ -343,6 +343,10 @@ def pytest_runtest_makereport(item: Item, call: CallInfo[None]) -> None:
except AttributeError:
pass
+ # Convert ... | unittest: add clarifying comment on unittest.SkipTest -> pytest.skip code I was tempted to remove it, until I figured out why it was there. | py |
diff --git a/flask_security/forms.py b/flask_security/forms.py
index <HASH>..<HASH> 100644
--- a/flask_security/forms.py
+++ b/flask_security/forms.py
@@ -10,6 +10,7 @@
"""
import inspect
+import urlparse
from flask import request, current_app
from flask.ext.wtf import Form as BaseForm, TextField, PasswordField... | NextFormMixin security bug fixed: open redirect NextFormMixin was missing validations check on redirection [1]. Only internal redirections are now allowed. Attack Example: <URL> wq [1] <URL> | py |
diff --git a/pydbus/proxy_method.py b/pydbus/proxy_method.py
index <HASH>..<HASH> 100644
--- a/pydbus/proxy_method.py
+++ b/pydbus/proxy_method.py
@@ -33,8 +33,8 @@ class ProxyMethod(object):
self.__name__ = method.attrib["name"]
self.__qualname__ = self._iface_name + "." + self.__name__
- self._inargs = [(ar... | make direction attribute conforming to introspect.dtd direction attribute defaults to "in" as in the DTD(*1), direction attribute is defined as following: ``` <!ATTRLIST arg direction (in|out) "in"> ``` *1) <URL> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -124,7 +124,8 @@ setup(
'scipy',
'astropy',
'h5py',
- 'healpy'
+ 'healpy',
+ 'requests'
],
include_package_data=True,
test_suite='nose.collector', | Added requests as a dependency. | py |
diff --git a/tests/integration/states/test_pip_state.py b/tests/integration/states/test_pip_state.py
index <HASH>..<HASH> 100644
--- a/tests/integration/states/test_pip_state.py
+++ b/tests/integration/states/test_pip_state.py
@@ -509,7 +509,7 @@ class PipStateTest(ModuleCase, SaltReturnAssertsMixin):
... | Using salt.utils.path.which to find false, on OSX it lives under /usr/bin/ | py |
diff --git a/src/jaraco/net/udp.py b/src/jaraco/net/udp.py
index <HASH>..<HASH> 100644
--- a/src/jaraco/net/udp.py
+++ b/src/jaraco/net/udp.py
@@ -22,10 +22,16 @@ class EchoServer(object):
infos = getaddrinfo(host, port)
(family, socktype, proto, canonname, sockaddr) = infos[0]
s = socket(family, SOCK_DGRAM)... | minor improvements to udp echo server | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -6,7 +6,7 @@ except ImportError:
from distutils.core import setup
here = os.path.abspath(os.path.dirname(__file__))
-README = open(os.path.join(here, 'README.md')).read()
+README = open(os.path.join(here, 'README.rst')... | Remove README.md from setup.py | py |
diff --git a/algoliasearch/algoliasearch.py b/algoliasearch/algoliasearch.py
index <HASH>..<HASH> 100644
--- a/algoliasearch/algoliasearch.py
+++ b/algoliasearch/algoliasearch.py
@@ -441,6 +441,7 @@ class Index:
# Util function used to send request
def AlgoliaUtils_request(headers, hosts, method, request, body = No... | Store last exception and raise it instead of the "Unreachable host" exception | py |
diff --git a/salt/client/__init__.py b/salt/client/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/client/__init__.py
+++ b/salt/client/__init__.py
@@ -808,7 +808,9 @@ class LocalClient(object):
try:
raw = event.get_event_noblock()
if gather_errors:
- ... | Fixed bug in client. Needs parens on if logic (and not on both or clauses unless parens) | py |
diff --git a/sacrud_deform/__init__.py b/sacrud_deform/__init__.py
index <HASH>..<HASH> 100644
--- a/sacrud_deform/__init__.py
+++ b/sacrud_deform/__init__.py
@@ -151,6 +151,10 @@ class SacrudForm(object):
if hasattr(relation, 'direction') \
and relation.direction == MANYTOMANY... | fix MANY2ONE doesn't work #<I> | py |
diff --git a/usb/backend/libusb0.py b/usb/backend/libusb0.py
index <HASH>..<HASH> 100644
--- a/usb/backend/libusb0.py
+++ b/usb/backend/libusb0.py
@@ -47,10 +47,12 @@ _logger = logging.getLogger('usb.backend.libusb0')
_PC_PATH_MAX = 4
-if sys.platform != 'win32' and sys.platform != 'cygwin':
- _PATH_MAX = os.pa... | Fixed: correct value of PATH_MAX for FreeBSD | py |
diff --git a/see/context/context.py b/see/context/context.py
index <HASH>..<HASH> 100644
--- a/see/context/context.py
+++ b/see/context/context.py
@@ -204,6 +204,14 @@ class SeeContext(Context):
def _get_ip_address(self, address_type):
mac = self.mac_address
+ try:
+ interfaces = self.... | context: add libvirt interfaceAddresses function to get IP address Allows to retrieve the domain IP address even when no network was provided by SEE. Supported from libvirt >= <I>. | py |
diff --git a/internetarchive/iacli/ia.py b/internetarchive/iacli/ia.py
index <HASH>..<HASH> 100755
--- a/internetarchive/iacli/ia.py
+++ b/internetarchive/iacli/ia.py
@@ -92,7 +92,7 @@ def main():
globals()['ia_module'] = __import__(module, fromlist=['internetarchive.iacli'])
except ImportError:
... | Exit with <I> if subcommand does not exist. | py |
diff --git a/alerta/app/management/views.py b/alerta/app/management/views.py
index <HASH>..<HASH> 100644
--- a/alerta/app/management/views.py
+++ b/alerta/app/management/views.py
@@ -106,7 +106,7 @@ def health_check():
delta = datetime.datetime.utcnow() - heartbeat.receive_time
threshold = flo... | Update views.py add heartbeat's origin to timeout error | py |
diff --git a/sark/code/function.py b/sark/code/function.py
index <HASH>..<HASH> 100644
--- a/sark/code/function.py
+++ b/sark/code/function.py
@@ -7,6 +7,7 @@ from ..core import set_name, get_ea, fix_addresses, is_same_function
from .line import Line
from .xref import Xref
from ..ui import updates_ui
+from .. import... | Fixed handling a non-existing function by name. Fixed the initializing of a sark.Function with a non-existing name parameter. | py |
diff --git a/epc/tests/test_server.py b/epc/tests/test_server.py
index <HASH>..<HASH> 100644
--- a/epc/tests/test_server.py
+++ b/epc/tests/test_server.py
@@ -34,8 +34,6 @@ class BaseEPCServerTestCase(unittest.TestCase):
self.server = ThreadingEPCServer(('localhost', 0))
self.server_thread = threading... | Moving code around in BaseEPCServerTestCase.setUp | py |
diff --git a/modeltranslation/tests.py b/modeltranslation/tests.py
index <HASH>..<HASH> 100644
--- a/modeltranslation/tests.py
+++ b/modeltranslation/tests.py
@@ -5,7 +5,6 @@ from django.contrib.contenttypes.models import ContentType
from django.core.exceptions import ValidationError
from django.db import models
fro... | Removed unused import which even breaks django-<I> support. | py |
diff --git a/toml.py b/toml.py
index <HASH>..<HASH> 100644
--- a/toml.py
+++ b/toml.py
@@ -296,7 +296,7 @@ def _load_inline_object(line, currentlevel, multikey=False, multibackslash=False
_, value = candidate_group.split('=', 1)
value = value.strip()
if (value[0] == value[-1] and value[0] in ... | Added minus sign to allow negative numbers in inline dicts | py |
diff --git a/seleniumbase/fixtures/base_case.py b/seleniumbase/fixtures/base_case.py
index <HASH>..<HASH> 100755
--- a/seleniumbase/fixtures/base_case.py
+++ b/seleniumbase/fixtures/base_case.py
@@ -2482,7 +2482,8 @@ class BaseCase(unittest.TestCase):
def hover_on_element(self, selector, by=By.CSS_SELECTOR):
... | Convert XPATH to CSS Selector before using a hover method. | py |
diff --git a/csirtg_indicator/format/zzeek.py b/csirtg_indicator/format/zzeek.py
index <HASH>..<HASH> 100644
--- a/csirtg_indicator/format/zzeek.py
+++ b/csirtg_indicator/format/zzeek.py
@@ -57,7 +57,7 @@ def _i_to_zeek(i, cols):
y = str(y)
if isinstance(y, str):
- y = y.replace('\n',... | Replace tabs and newlines (#<I>) Other whitespace characters like CRs and tabs in fields can misalign formatting. Replace any of those instances in a single field with spaces. | py |
diff --git a/pynlpir/__init__.py b/pynlpir/__init__.py
index <HASH>..<HASH> 100644
--- a/pynlpir/__init__.py
+++ b/pynlpir/__init__.py
@@ -60,7 +60,7 @@ def open(data_dir=nlpir.PACKAGE_DIR, encoding=ENCODING):
raise ValueError("encoding must be one of 'utf_8', 'big5', or 'gbk'.")
logger.debug("Initializin... | Fixes typos in calling NLPIR functions. | py |
diff --git a/testing/acceptance_test.py b/testing/acceptance_test.py
index <HASH>..<HASH> 100644
--- a/testing/acceptance_test.py
+++ b/testing/acceptance_test.py
@@ -192,6 +192,20 @@ class TestDistribution:
])
assert dest.join(subdir.basename).check(dir=1)
+ def test_backward_compatibility_worke... | Add an explicit test for backward compatibility with "config.slaveinput" Related to #<I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -147,7 +147,7 @@ setup(
version="0.6.1",
packages=find_packages(),
setup_requires=setup_requirements,
- install_requires=["future", "swiglpk", "optlang>=1.1.5", "ruamel.yaml",
+ install_requires=["future",... | chore: fix ruamel.yaml on <I>.X for now (#<I>) There will be API changes in the <I>+ versions, let's upgrade later when tested and needed | py |
diff --git a/pre_commit/store.py b/pre_commit/store.py
index <HASH>..<HASH> 100644
--- a/pre_commit/store.py
+++ b/pre_commit/store.py
@@ -62,7 +62,7 @@ class Store(object):
def _write_sqlite_db(self):
# To avoid a race where someone ^Cs between db creation and execution
# of the CREATE TABLE sta... | Don't rename across devices. Resolves #<I> | py |
diff --git a/openquake/nrmllib/risk/parsers.py b/openquake/nrmllib/risk/parsers.py
index <HASH>..<HASH> 100644
--- a/openquake/nrmllib/risk/parsers.py
+++ b/openquake/nrmllib/risk/parsers.py
@@ -306,12 +306,9 @@ class FragilityModelParser(object):
"""
fragilityModel = findone('fragilityModel', self._f... | parse imt also when the fragility model is continuous | py |
diff --git a/ceph_deploy/hosts/debian/install.py b/ceph_deploy/hosts/debian/install.py
index <HASH>..<HASH> 100644
--- a/ceph_deploy/hosts/debian/install.py
+++ b/ceph_deploy/hosts/debian/install.py
@@ -171,9 +171,11 @@ def repo_install(distro, repo_name, baseurl, gpgkey, **kw):
safe_filename
)
+ # r... | When adding an apt repo, run "apt-get update" unconditionally | py |
diff --git a/puz.py b/puz.py
index <HASH>..<HASH> 100644
--- a/puz.py
+++ b/puz.py
@@ -222,8 +222,9 @@ class Puzzle:
)
def save(self, filename):
+ puzzle_bytes = self.tobytes()
with open(filename, 'wb') as f:
- f.write(self.tobytes())
+ f.write(puzzle_bytes)... | move byte conversion function outside of the file opening context manager for data safety | py |
diff --git a/flask_split/models.py b/flask_split/models.py
index <HASH>..<HASH> 100644
--- a/flask_split/models.py
+++ b/flask_split/models.py
@@ -76,10 +76,7 @@ class Alternative(object):
@property
def key(self):
- return '{experiment_name}:{name}'.format(
- experiment_name=self.experimen... | python <I> support | py |
diff --git a/master/buildbot/steps/transfer.py b/master/buildbot/steps/transfer.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/steps/transfer.py
+++ b/master/buildbot/steps/transfer.py
@@ -95,6 +95,7 @@ class FileUpload(_TransferBuildStep, WorkerAPICompatMixin):
renderables = [
'masterdest',
... | FileUpload: make the urlText renderable This change allows for making urlText to depend on properties of the build. | py |
diff --git a/dvc/version.py b/dvc/version.py
index <HASH>..<HASH> 100644
--- a/dvc/version.py
+++ b/dvc/version.py
@@ -6,7 +6,7 @@
import os
import subprocess
-_BASE_VERSION = "1.1.6"
+_BASE_VERSION = "1.1.7"
def _generate_version(base_version): | dvc: bump to <I> | py |
diff --git a/thefuck/rules/no_such_file.py b/thefuck/rules/no_such_file.py
index <HASH>..<HASH> 100644
--- a/thefuck/rules/no_such_file.py
+++ b/thefuck/rules/no_such_file.py
@@ -3,7 +3,9 @@ import re
patterns = (
r"mv: cannot move '[^']*' to '([^']*)': No such file or directory",
+ r"mv: cannot move '[^']*'... | Add missing cases for the `no_such_file` rule | py |
diff --git a/vstutils/tests.py b/vstutils/tests.py
index <HASH>..<HASH> 100644
--- a/vstutils/tests.py
+++ b/vstutils/tests.py
@@ -12,7 +12,7 @@ from django.db import transaction
from django.test import TestCase, override_settings # noqa: F401
from django.contrib.auth import get_user_model
-from .utils import impo... | Fix: allow to use find models in apps. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -13,8 +13,8 @@ setup(name='instana',
zip_safe=False,
install_requires=['autowrapt>=1.0',
'fysom>=2.1.2',
- 'opentracing>=1.2.1,<1.3',
- 'basi... | Update OpenTracing dependencies. (#<I>) | py |
diff --git a/gwpy/tests/test_timeseries.py b/gwpy/tests/test_timeseries.py
index <HASH>..<HASH> 100644
--- a/gwpy/tests/test_timeseries.py
+++ b/gwpy/tests/test_timeseries.py
@@ -295,6 +295,7 @@ class TimeSeriesTestMixin(object):
ts1 = self.create(sample_rate=100)
ts2 = ts1.resample(10, ftype='iir')
... | tests: check unit in TimeSeriesTestCase tests | py |
diff --git a/properties/basic.py b/properties/basic.py
index <HASH>..<HASH> 100644
--- a/properties/basic.py
+++ b/properties/basic.py
@@ -656,12 +656,6 @@ class Uid(GettableProperty):
"""default value of the property"""
return getattr(self, '_default', Undefined)
- @default.setter
- def defau... | The unique identifier does not need a setter. The current one had an error that was raised. This is default behaviour. | py |
diff --git a/neural/afni.py b/neural/afni.py
index <HASH>..<HASH> 100644
--- a/neural/afni.py
+++ b/neural/afni.py
@@ -568,9 +568,9 @@ class Decon:
'''
return ' '.join(self.command_list())
- def run(self,working_directory='.'):
+ def run(self):
'''runs 3dDeconvolve through the neu... | getting blur_to_decon working right | py |
diff --git a/great_expectations/data_context/data_context.py b/great_expectations/data_context/data_context.py
index <HASH>..<HASH> 100644
--- a/great_expectations/data_context/data_context.py
+++ b/great_expectations/data_context/data_context.py
@@ -1408,7 +1408,7 @@ class BaseDataContext(object):
... | Address typos (#<I>) | py |
diff --git a/centinel/backend.py b/centinel/backend.py
index <HASH>..<HASH> 100644
--- a/centinel/backend.py
+++ b/centinel/backend.py
@@ -318,7 +318,14 @@ def sync(config):
try:
server_exps = user.experiments
except Exception as exp:
- logging.error("Error collecting experiments: %s" % exp)
+... | added missing exception (this was already reviewed, but this part of code wasn't committed) | py |
diff --git a/sizedimagefield/datastructures.py b/sizedimagefield/datastructures.py
index <HASH>..<HASH> 100644
--- a/sizedimagefield/datastructures.py
+++ b/sizedimagefield/datastructures.py
@@ -320,8 +320,8 @@ class Filters(dict):
prepared_path=filtered_path
)
- ... | Ensuring cache entry is properly set | py |
diff --git a/netjsonconfig/backends/openwrt/openwrt.py b/netjsonconfig/backends/openwrt/openwrt.py
index <HASH>..<HASH> 100644
--- a/netjsonconfig/backends/openwrt/openwrt.py
+++ b/netjsonconfig/backends/openwrt/openwrt.py
@@ -26,6 +26,7 @@ class OpenWrt(object):
renderers.DefaultRenderer
]
FILE_SECT... | [OpenWrt] Minor regexp optimization for generate method | py |
diff --git a/slither/core/solidity_types/array_type.py b/slither/core/solidity_types/array_type.py
index <HASH>..<HASH> 100644
--- a/slither/core/solidity_types/array_type.py
+++ b/slither/core/solidity_types/array_type.py
@@ -1,3 +1,4 @@
+from slither.core.variables.variable import Variable
from slither.core.solidity... | If the length of an ArrayType is constant, use its value | py |
diff --git a/jwt/algorithms.py b/jwt/algorithms.py
index <HASH>..<HASH> 100644
--- a/jwt/algorithms.py
+++ b/jwt/algorithms.py
@@ -609,7 +609,7 @@ if has_crypto:
Sign a message ``msg`` using the EdDSA private key ``key``
:param str|bytes msg: Message to sign
:param Ed25519PrivateK... | docs: fix simple typo, iinstance -> isinstance (#<I>) There is a small typo in jwt/algorithms.py. Should read `isinstance` rather than `iinstance`. | py |
diff --git a/oauthlib/utils.py b/oauthlib/utils.py
index <HASH>..<HASH> 100644
--- a/oauthlib/utils.py
+++ b/oauthlib/utils.py
@@ -78,3 +78,14 @@ def escape(s):
if not isinstance(s, unicode):
raise ValueError('Only unicode objects are escapable.')
return urllib.quote(s.encode('utf-8'), safe='~')
+
+
... | Add OAuth-safe urlencode | py |
diff --git a/src/python/grpcio_tests/tests_aio/unit/wait_for_ready_test.py b/src/python/grpcio_tests/tests_aio/unit/wait_for_ready_test.py
index <HASH>..<HASH> 100644
--- a/src/python/grpcio_tests/tests_aio/unit/wait_for_ready_test.py
+++ b/src/python/grpcio_tests/tests_aio/unit/wait_for_ready_test.py
@@ -18,6 +18,7 @@... | [Aio] Skip TestWaitForReady on Windows (#<I>) * Mark TestWaitForReady as flaky * Skip wait for ready test on Windows * Bazel is not currently used for testing on Windows | py |
diff --git a/pybar/fei4_run_base.py b/pybar/fei4_run_base.py
index <HASH>..<HASH> 100644
--- a/pybar/fei4_run_base.py
+++ b/pybar/fei4_run_base.py
@@ -1271,13 +1271,11 @@ class Fei4RunBase(RunBase):
self._curr_readout_threads.remove(self.current_module_handle)
self._stopping_readout_event.clear()
... | BUG: fix possible infinite loop and readout thread not stopped when scan aborted | py |
diff --git a/dateparser/date_parser.py b/dateparser/date_parser.py
index <HASH>..<HASH> 100644
--- a/dateparser/date_parser.py
+++ b/dateparser/date_parser.py
@@ -17,10 +17,11 @@ SPECIAL_CASE_WORDS = 'Today|Yesterday|The day before yesterday'
class BaseParserInfo(parser.parserinfo):
JUMP = [" ", ".", ",", ";", ... | Taking dateutil consts into account | py |
diff --git a/examples/unique_users_for_area.py b/examples/unique_users_for_area.py
index <HASH>..<HASH> 100755
--- a/examples/unique_users_for_area.py
+++ b/examples/unique_users_for_area.py
@@ -4,11 +4,13 @@
import overpass
+# Change this to the name of the area you're interested in.
+# Keep it small to not abuse... | update user example to include OSM message URLs | py |
diff --git a/salt/cli/daemons.py b/salt/cli/daemons.py
index <HASH>..<HASH> 100644
--- a/salt/cli/daemons.py
+++ b/salt/cli/daemons.py
@@ -162,6 +162,7 @@ class Master(parsers.MasterOptionParser):
If sub-classed, run any shutdown operations on this method.
'''
logger.info('The salt master is ... | Make sure the exit routines are called. This will stop the multiprocessing logging listener | py |
diff --git a/asv/benchmarks.py b/asv/benchmarks.py
index <HASH>..<HASH> 100644
--- a/asv/benchmarks.py
+++ b/asv/benchmarks.py
@@ -328,7 +328,8 @@ class Benchmarks(dict):
log.info("Benchmarking {0}".format(env.name))
with log.indent():
times = {}
- for name, benchmark in six.it... | Run benchmarks in sorted order. | py |
diff --git a/better_apidoc.py b/better_apidoc.py
index <HASH>..<HASH> 100644
--- a/better_apidoc.py
+++ b/better_apidoc.py
@@ -32,7 +32,10 @@ from jinja2.sandbox import SandboxedEnvironment
from sphinx.util.osutil import FileAvoidWrite, walk
#from sphinx import __display_version__
-from sphinx.cmd.quickstart import... | Support both Sphinx <I> and <I> | py |
diff --git a/fwdpy11/wright_fisher_ts.py b/fwdpy11/wright_fisher_ts.py
index <HASH>..<HASH> 100644
--- a/fwdpy11/wright_fisher_ts.py
+++ b/fwdpy11/wright_fisher_ts.py
@@ -72,11 +72,15 @@ def evolve(rng, pop, params, simplification_interval, recorder=None,
from fwdpy11 import MutationRegions
from fwdpy11 impor... | Allow GeneralizedGeneticMap to be used in sims with tree sequence recording. | py |
diff --git a/ps_mem.py b/ps_mem.py
index <HASH>..<HASH> 100755
--- a/ps_mem.py
+++ b/ps_mem.py
@@ -36,7 +36,7 @@
# Patch from patrice.bouchand.fedora@gmail.com
# V1.9 20 Feb 2008 Fix invalid values reported when PSS is available.
# Reported by Andrey Borze... | fix crash determining Debian backports kernel version * ps_mem.py (kernel_ver): Sanitize all components similarly, not just the penultimate one, to deal with systems where there is no third component in the kernel version. For example: <I>-0.bpo<I>-amd<I> | py |
diff --git a/secretballot/models.py b/secretballot/models.py
index <HASH>..<HASH> 100644
--- a/secretballot/models.py
+++ b/secretballot/models.py
@@ -15,7 +15,7 @@ class Vote(models.Model):
vote = models.SmallIntegerField(choices=VOTE_CHOICES)
# generic foreign key to the model being voted upon
- conten... | add on_delete to FK | py |
diff --git a/ccmlib/common.py b/ccmlib/common.py
index <HASH>..<HASH> 100644
--- a/ccmlib/common.py
+++ b/ccmlib/common.py
@@ -269,7 +269,7 @@ def check_socket_available(itf):
(family, socktype, proto, canonname, sockaddr) = info[0]
s = socket.socket(family, socktype)
s.setsockopt(socket.SOL_SOCKET, sock... | Hotfix for socket.SO_REUSEPORT socket.SO_REUSEPORT not supported on all operating systems. This is suggested as a replacement, but may not provide identical functionality. Will need testing by author of #<I> | py |
diff --git a/ELiDE/ELiDE/game.py b/ELiDE/ELiDE/game.py
index <HASH>..<HASH> 100644
--- a/ELiDE/ELiDE/game.py
+++ b/ELiDE/ELiDE/game.py
@@ -4,6 +4,7 @@ from kivy.properties import (
AliasProperty,
ObjectProperty
)
+from kivy.resources import resource_find
from kivy.app import App
from kivy.uix.widget import... | Use resource_find to get the dbs if I can | py |
diff --git a/palladium/persistence.py b/palladium/persistence.py
index <HASH>..<HASH> 100644
--- a/palladium/persistence.py
+++ b/palladium/persistence.py
@@ -9,6 +9,7 @@ import io
import json
import os
import pickle
+import codecs
from pkg_resources import parse_version
from tempfile import TemporaryFile
from th... | fixed encoding issues for python <I> | py |
diff --git a/tests/unit/cloud/clouds/test_joyent.py b/tests/unit/cloud/clouds/test_joyent.py
index <HASH>..<HASH> 100644
--- a/tests/unit/cloud/clouds/test_joyent.py
+++ b/tests/unit/cloud/clouds/test_joyent.py
@@ -35,6 +35,7 @@ def fake_wait_for_ip(check_for_ip_fn,
@skipIf(NO_MOCK, NO_MOCK_REASON)
+@skipIf(joyent... | Skip test if required cypto libs are not available | py |
diff --git a/python/orca/test/bigdl/orca/learn/spark/test_estimator_openvino.py b/python/orca/test/bigdl/orca/learn/spark/test_estimator_openvino.py
index <HASH>..<HASH> 100644
--- a/python/orca/test/bigdl/orca/learn/spark/test_estimator_openvino.py
+++ b/python/orca/test/bigdl/orca/learn/spark/test_estimator_openvino.... | fix tar (#<I>) | py |
diff --git a/perfplot/main.py b/perfplot/main.py
index <HASH>..<HASH> 100644
--- a/perfplot/main.py
+++ b/perfplot/main.py
@@ -270,10 +270,10 @@ def _b(data, kernel, repeat, timer, is_ns_timer, resolution):
# plt.show()
tm //= number
+ factor = max_factor
if min_timing > 0:
... | Edit main.py for better code coverage | py |
diff --git a/lib/svtplay_dl/service/kanal5.py b/lib/svtplay_dl/service/kanal5.py
index <HASH>..<HASH> 100644
--- a/lib/svtplay_dl/service/kanal5.py
+++ b/lib/svtplay_dl/service/kanal5.py
@@ -44,7 +44,7 @@ class Kanal5(Service):
options.cookies = self.cookies
url = "http://www.kanal5play.se/api/g... | kanal5: open it as text not binary | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -23,6 +23,19 @@ import io
import sys
from setuptools import setup
+from setuptools.command.test import test
+
+class PytestTest(test):
+ def finalize_options(self):
+ test.finalize_options(self)
+ self.tes... | Support running pytest from setup.py | py |
diff --git a/connectrum/svr_info.py b/connectrum/svr_info.py
index <HASH>..<HASH> 100644
--- a/connectrum/svr_info.py
+++ b/connectrum/svr_info.py
@@ -79,7 +79,7 @@ class ServerInfo(dict):
@property
def protocols(self):
- rv = set(self['ports'])
+ rv = set(i[0] for i in self['ports'])
... | Bugfix: protocols shouldn't have port numbers, and min_prune is zero | py |
diff --git a/demos/dlgr/demos/rogers/models.py b/demos/dlgr/demos/rogers/models.py
index <HASH>..<HASH> 100644
--- a/demos/dlgr/demos/rogers/models.py
+++ b/demos/dlgr/demos/rogers/models.py
@@ -37,7 +37,7 @@ class RogersSource(Source):
return "asocial"
def _what(self):
- """Transmit a learning g... | Better commenting for RogersSource. | py |
diff --git a/tools/mpremote/mpremote/main.py b/tools/mpremote/mpremote/main.py
index <HASH>..<HASH> 100644
--- a/tools/mpremote/mpremote/main.py
+++ b/tools/mpremote/mpremote/main.py
@@ -418,6 +418,8 @@ def print_help():
print(" ", cmd, " " * (max_command_len - len(cmd) + 2), help_message, sep="")
... | tools/mpremote: Add link to mpremote docs URL in help message. | py |
diff --git a/jwcrypto/tests.py b/jwcrypto/tests.py
index <HASH>..<HASH> 100644
--- a/jwcrypto/tests.py
+++ b/jwcrypto/tests.py
@@ -843,6 +843,7 @@ class TestJWE(unittest.TestCase):
e = jwe.JWE(algs=['A256KW'])
e.deserialize(E_A5_ex, E_A4_ex['key2'])
+
MMA_vector_key = jwk.JWK(**E_A2_key)
M... | Fix trvis's flake8 complaints | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,6 +1,6 @@
from setuptools import setup
-VERSION = '2.1.0'
+VERSION = '2.2.0'
setup(
name='django-node', | Bumping the version to <I>. | py |
diff --git a/odplib/preso.py b/odplib/preso.py
index <HASH>..<HASH> 100755
--- a/odplib/preso.py
+++ b/odplib/preso.py
@@ -1323,7 +1323,13 @@ if pygmentsAvail:
if value['bold']:
results['fo:font-weight'] = 'bold'
if value['italic']:
- results['fo:font-weight'] =... | Fix italic and add underline, bgcolor and border to Pygments styling | py |
diff --git a/elifetools/parseJATS.py b/elifetools/parseJATS.py
index <HASH>..<HASH> 100644
--- a/elifetools/parseJATS.py
+++ b/elifetools/parseJATS.py
@@ -3615,13 +3615,17 @@ def supplementary_files_json(soup):
i = 1
for file in additional_files_json:
file["id"] = "SD" + str(i) + "-data"
... | Defensively checking that there is only 1 .zip supplementary file in the PoA | py |
diff --git a/jaraco/functools.py b/jaraco/functools.py
index <HASH>..<HASH> 100644
--- a/jaraco/functools.py
+++ b/jaraco/functools.py
@@ -7,6 +7,7 @@ import time
import warnings
import inspect
import collections
+import types
from itertools import count
__metaclass__ = type
@@ -172,7 +173,7 @@ def method_cache(... | Prefer types.MethodType to functools.partial for binding a method to its instance. | py |
diff --git a/tests/conftest.py b/tests/conftest.py
index <HASH>..<HASH> 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -651,6 +651,9 @@ def temp_directory(name=None):
else:
directory_path = tempfile.mkdtemp(dir=RUNTIME_VARS.TMP)
+ if not os.path.isdir(directory_path):
+ os.makedirs(... | Create the temp directory if it doesn't exist | py |
diff --git a/bcbio/workflow/xprize.py b/bcbio/workflow/xprize.py
index <HASH>..<HASH> 100644
--- a/bcbio/workflow/xprize.py
+++ b/bcbio/workflow/xprize.py
@@ -77,6 +77,3 @@ def setup(args):
workdir = utils.safe_makedir(os.path.join(args.base_dir, args.sample, "work"))
return workdir, {"config_file": args.bcbi... | Remove old debugging code, fixing non-existant function issue. Fixes #<I> | py |
diff --git a/statsd/__init__.py b/statsd/__init__.py
index <HASH>..<HASH> 100644
--- a/statsd/__init__.py
+++ b/statsd/__init__.py
@@ -19,7 +19,7 @@ __all__ = [
]
__name__ = 'python-statsd'
-__version__ = '1.5.4'
+__version__ = '1.5.5'
__author__ = 'Rick van Hattem'
__author_email__ = 'Rick.van.Hattem@Fawo.nl'
_... | bumped version to fix the package | py |
diff --git a/LiSE/alchemy.py b/LiSE/alchemy.py
index <HASH>..<HASH> 100644
--- a/LiSE/alchemy.py
+++ b/LiSE/alchemy.py
@@ -2045,7 +2045,7 @@ def queries(table, view):
)
r['rulebook_dec'] = rulebooks.update().values(
- idx=rulebooks.c.idx-column('1')
+ idx=rulebooks.c.idx-column('1', is_literal... | Use a literal column when you don't want it to be the column name. | py |
diff --git a/salt/modules/scsi.py b/salt/modules/scsi.py
index <HASH>..<HASH> 100644
--- a/salt/modules/scsi.py
+++ b/salt/modules/scsi.py
@@ -34,12 +34,14 @@ def ls_():
majmin = comps.pop()
major, minor = majmin.replace('[', '').replace(']', '').split(':')
device = comps.pop()
+ ... | Parse out the model name as well | py |
diff --git a/panwid/listbox.py b/panwid/listbox.py
index <HASH>..<HASH> 100644
--- a/panwid/listbox.py
+++ b/panwid/listbox.py
@@ -36,7 +36,7 @@ class ListBoxScrollBar(urwid.WidgetWrap):
{None: "scroll_marker"}
)
- end_marker = urwid.AttrMap(urwid.Text("u\N{CIRCLED ... | Fix typo in end_marker for scroll indicator. | py |
diff --git a/salt/states/user.py b/salt/states/user.py
index <HASH>..<HASH> 100644
--- a/salt/states/user.py
+++ b/salt/states/user.py
@@ -227,6 +227,7 @@ def present(name,
homephone
The user's home phone number (not supported in MacOS)
'''
+ fullname = str(fullname) if fullname is not None else f... | Fix user.present states with non-string fullname | py |
diff --git a/dash/utils/__init__.py b/dash/utils/__init__.py
index <HASH>..<HASH> 100644
--- a/dash/utils/__init__.py
+++ b/dash/utils/__init__.py
@@ -173,6 +173,6 @@ def is_dict_equal(d1, d2, keys=None, ignore_none_values=True):
def generate_file_path(folder_name, instance, filename):
name, extension = os.path.s... | Keep filename first <I> characters in the new filename | py |
diff --git a/gui/component.py b/gui/component.py
index <HASH>..<HASH> 100644
--- a/gui/component.py
+++ b/gui/component.py
@@ -864,7 +864,7 @@ class ControlSuper(Component, DesignerMixin):
wx.EVT_MIDDLE_DOWN,
wx.EVT_... | fixed typo in onmouseclick component event | py |
diff --git a/lib/gruvi/hub.py b/lib/gruvi/hub.py
index <HASH>..<HASH> 100644
--- a/lib/gruvi/hub.py
+++ b/lib/gruvi/hub.py
@@ -41,15 +41,15 @@ def switchpoint(func):
# may call Hub.switch() here
"""
@functools.wraps(func)
- def wrapped(*args, **kwargs):
+ def switchpoint(*args, **kwargs):
... | hub: name switchpoint decorator in backtraces | 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
@@ -314,6 +314,10 @@ class BaseCoordinator(object):
cause = self._heartbeat_thread.failed
self._heartbeat_thread = None... | KAFKA-<I>; Awake the heartbeat thread when timetoNextHeartbeat is equal to 0 (#<I>) | py |
diff --git a/aadbook/auth.py b/aadbook/auth.py
index <HASH>..<HASH> 100644
--- a/aadbook/auth.py
+++ b/aadbook/auth.py
@@ -23,7 +23,7 @@ class Auth(object):
api_version=None)
self.auth_file = auth_file
self.creds = self._read_creds()
- if self.... | Don't refresh the auth token unless expired | py |
diff --git a/salt/cloud/clouds/ec2.py b/salt/cloud/clouds/ec2.py
index <HASH>..<HASH> 100644
--- a/salt/cloud/clouds/ec2.py
+++ b/salt/cloud/clouds/ec2.py
@@ -138,14 +138,16 @@ log = logging.getLogger(__name__)
EC2_LOCATIONS = {
'ap-northeast-1': 'ec2_ap_northeast',
+ 'ap-northeast-2': 'ec2_ap_northeast_2',
... | Add support for ap-northeast-2 and us-gov-west-1 regions in AWS | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.