diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/build.py b/build.py
index <HASH>..<HASH> 100755
--- a/build.py
+++ b/build.py
@@ -579,21 +579,27 @@ def build_packages(build_output, version, nightly=False, rc=None, iteration=1, s
# the build root (to include the package name)
package_build_root = os.path.... | Fixes naming for statically-compiled packages. | py |
diff --git a/d1_libclient_python/src/setup.py b/d1_libclient_python/src/setup.py
index <HASH>..<HASH> 100755
--- a/d1_libclient_python/src/setup.py
+++ b/d1_libclient_python/src/setup.py
@@ -41,6 +41,11 @@ def main():
'rdflib == 4.0.1',
'google.foresite-toolkit == 1.3',
'python-dateutil == 2.1',
+ ... | Add dependencies for Requests, Toolbelt and CacheControl | py |
diff --git a/kafka/consumer/fetcher.py b/kafka/consumer/fetcher.py
index <HASH>..<HASH> 100644
--- a/kafka/consumer/fetcher.py
+++ b/kafka/consumer/fetcher.py
@@ -537,15 +537,24 @@ class Fetcher(six.Iterator):
# which can be passed to FetchRequest() via .items()
fetchable = collections.defaultdict(lam... | Dont send FetchRequest for (obviously) pending data | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -137,8 +137,8 @@ html_theme_options = {
'github_banner': True,
'show_powered_by': False,
'extra_nav_links': {
- 'invenio-csl-rest@GitHub': 'http://github.com/inveniosoftware/invenio-csl-re... | docs: autodoc configuration and HTTPS fix * Replaces HTTP links with HTTPS where possible. | py |
diff --git a/allennlp/tests/data/dataset_readers/multiprocess_dataset_reader_test.py b/allennlp/tests/data/dataset_readers/multiprocess_dataset_reader_test.py
index <HASH>..<HASH> 100644
--- a/allennlp/tests/data/dataset_readers/multiprocess_dataset_reader_test.py
+++ b/allennlp/tests/data/dataset_readers/multiprocess_... | Skip a test that we know will fail (#<I>) * Skip a test that we know will fail * Productivity through formatting | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -36,7 +36,8 @@ log.info('$PATH=%s' % os.environ['PATH'])
# Check the Python version:
-if sys.version_info < (3, 4):
+supported_versions = [(3, 4), (3, 5), (3, 6)]
+if sys.version_info not in supported_versions:
raise... | Declare specific Python versions that Harvester supports | py |
diff --git a/mesh_tensorflow/transformer/utils.py b/mesh_tensorflow/transformer/utils.py
index <HASH>..<HASH> 100644
--- a/mesh_tensorflow/transformer/utils.py
+++ b/mesh_tensorflow/transformer/utils.py
@@ -1205,6 +1205,11 @@ def get_inputs_from_file(input_filename, ignore_comments=False):
with tf.io.gfile.GFile(inp... | [MTF] Minor usability change in get_inputs_from_file for accidentally empty files. PiperOrigin-RevId: <I> | py |
diff --git a/bloop/models.py b/bloop/models.py
index <HASH>..<HASH> 100644
--- a/bloop/models.py
+++ b/bloop/models.py
@@ -836,6 +836,9 @@ def unbind(meta, name=None, dynamo_name=None):
else:
raise RuntimeError("Must provide name= or dynamo_name= to unbind from meta")
+ # Nothing in bloop should allo... | Add comment to bare asserts in bloop.models.unbind | py |
diff --git a/pyhomematic/devicetypes/actors.py b/pyhomematic/devicetypes/actors.py
index <HASH>..<HASH> 100644
--- a/pyhomematic/devicetypes/actors.py
+++ b/pyhomematic/devicetypes/actors.py
@@ -335,7 +335,7 @@ class IPSwitch(GenericSwitch, HelperActionOnTime):
def ELEMENT(self):
if "HmIP-BSM" in self.TYP... | Added HmIP-FSM<I>, Issue #<I> | py |
diff --git a/dingo/core/powerflow/__init__.py b/dingo/core/powerflow/__init__.py
index <HASH>..<HASH> 100644
--- a/dingo/core/powerflow/__init__.py
+++ b/dingo/core/powerflow/__init__.py
@@ -35,8 +35,6 @@ class PFConfigDingo:
if self._scenarios is None:
raise ValueError('PF config: Please set at... | fix bug in pf config class | py |
diff --git a/satpy/tests/test_multiscene.py b/satpy/tests/test_multiscene.py
index <HASH>..<HASH> 100644
--- a/satpy/tests/test_multiscene.py
+++ b/satpy/tests/test_multiscene.py
@@ -531,7 +531,6 @@ def test_save_mp4(smg, tmp_path):
scenes[0][ds_id].attrs['end_time'] = datetime(2018, 1, 1, 12)
mscn = Mu... | Remove spurious tmp_path reference from test case | py |
diff --git a/facepy/graph_api.py b/facepy/graph_api.py
index <HASH>..<HASH> 100755
--- a/facepy/graph_api.py
+++ b/facepy/graph_api.py
@@ -69,6 +69,9 @@ class GraphAPI(object):
Supported types are 'post', 'user', 'page', 'event', 'group', 'place' and 'checkin'.
"""
+ SUPPORTED_TYPES =... | Raise ValueError for unsupported types on GraphAPI#search | py |
diff --git a/backtrader/indicator.py b/backtrader/indicator.py
index <HASH>..<HASH> 100644
--- a/backtrader/indicator.py
+++ b/backtrader/indicator.py
@@ -23,13 +23,12 @@ from __future__ import absolute_import, division, print_function, unicode_litera
from six.moves import xrange
-from .lineiterator import LineIte... | indicator - Indicator uses intermediate Base Class | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -46,7 +46,7 @@ setup(
include_package_data=True,
zip_safe=False,
install_requires=[
- 'pysaml2==2.4.0',
+ 'pysaml2==2.2.0',
'python-memcached==1.48',
],
) | Revert pysaml2 requirement version back to <I> It looks like <I> broke something, at least in my app. | py |
diff --git a/pycbc/waveform/waveform.py b/pycbc/waveform/waveform.py
index <HASH>..<HASH> 100644
--- a/pycbc/waveform/waveform.py
+++ b/pycbc/waveform/waveform.py
@@ -89,7 +89,7 @@ def _lalsim_fd_waveform(**p):
lalsimulation.SimInspiralSetTidalOrder(flags, p['tidal_order'])
hp1, hc1 = lalsimulation.SimInspi... | fix delta_f not coming from kwd | py |
diff --git a/claptcha/claptcha.py b/claptcha/claptcha.py
index <HASH>..<HASH> 100644
--- a/claptcha/claptcha.py
+++ b/claptcha/claptcha.py
@@ -214,6 +214,8 @@ class Claptcha(object):
@margin.setter
@_with_pair_validator
def margin(self, margin):
+ if 2*margin[1] > self.h:
+ raise Claptc... | margin: Exception on improper margin y (compared to image height) | py |
diff --git a/reana_commons/version.py b/reana_commons/version.py
index <HASH>..<HASH> 100755
--- a/reana_commons/version.py
+++ b/reana_commons/version.py
@@ -14,4 +14,4 @@ and parsed by ``setup.py``.
from __future__ import absolute_import, print_function
-__version__ = "0.7.0.dev20200520"
+__version__ = "0.7.0.de... | release: <I>.de<I> | py |
diff --git a/bfg9000/tools/cc.py b/bfg9000/tools/cc.py
index <HASH>..<HASH> 100644
--- a/bfg9000/tools/cc.py
+++ b/bfg9000/tools/cc.py
@@ -8,7 +8,6 @@ from .utils import darwin_install_name, library_macro
from ..file_types import *
from ..iterutils import iterate, uniques
from ..path import Path, Root
-from ..platfo... | Fix some darwin-specific option logic in the cc builders | py |
diff --git a/airtest/aircv/cal_confidence.py b/airtest/aircv/cal_confidence.py
index <HASH>..<HASH> 100644
--- a/airtest/aircv/cal_confidence.py
+++ b/airtest/aircv/cal_confidence.py
@@ -24,13 +24,15 @@ def cal_rgb_confidence(img_src_rgb, img_sch_rgb):
"""同大小彩图计算相似度."""
# 扩展置信度计算区域
img_sch_rgb = cv2.copy... | use hsv to cal confidence (cherry picked from commit <I>f<I>c<I>d<I>f7e<I>c<I>f<I>c1dc<I>) | py |
diff --git a/salt/modules/zypper.py b/salt/modules/zypper.py
index <HASH>..<HASH> 100644
--- a/salt/modules/zypper.py
+++ b/salt/modules/zypper.py
@@ -348,7 +348,7 @@ def mod_repo(repo, **kwargs):
repo or alias
alias by which the zypper refers to the repo
- url or mirrorlist
+ url, mirrorlist or b... | Added baseurl as alias for url and mirrorlist in salt.modules.zypper.mod_repo. | py |
diff --git a/pyemu/pst/pst_utils.py b/pyemu/pst/pst_utils.py
index <HASH>..<HASH> 100644
--- a/pyemu/pst/pst_utils.py
+++ b/pyemu/pst/pst_utils.py
@@ -586,7 +586,13 @@ def try_run_inschek(pst):
"""
for ins_file,out_file in zip(pst.instruction_files,pst.output_files):
- df = _try_run_inschek(ins_file,... | weaving instruction file stuff into try_inschek | py |
diff --git a/make_magic.py b/make_magic.py
index <HASH>..<HASH> 100644
--- a/make_magic.py
+++ b/make_magic.py
@@ -615,6 +615,10 @@ class GridFrame(wx.Frame):
Switch the type of grid between site/sample
(Users may add ages at either age)
"""
+
+ if self.grid.changes:
+ self.... | re-do order so that site/sample age info is actually properly saved when toggling | py |
diff --git a/utils/fetch_languages.py b/utils/fetch_languages.py
index <HASH>..<HASH> 100644
--- a/utils/fetch_languages.py
+++ b/utils/fetch_languages.py
@@ -28,10 +28,10 @@ def fetch_supported_languages():
names.sort()
for engine_name in names:
- print("fetching languages of engine %s" % engine_nam... | utils/fetch_languages.py: print more meaningfull messages | py |
diff --git a/src/oidcendpoint/user_authn/authn_context.py b/src/oidcendpoint/user_authn/authn_context.py
index <HASH>..<HASH> 100755
--- a/src/oidcendpoint/user_authn/authn_context.py
+++ b/src/oidcendpoint/user_authn/authn_context.py
@@ -177,19 +177,22 @@ class AuthnBroker(object):
def pick_by_path(self, path):... | Looking for path/action in the right place. | py |
diff --git a/sos/plugins/openstack_sahara.py b/sos/plugins/openstack_sahara.py
index <HASH>..<HASH> 100644
--- a/sos/plugins/openstack_sahara.py
+++ b/sos/plugins/openstack_sahara.py
@@ -76,7 +76,7 @@ class RedHatSahara(OpenStackSahara, RedHatPlugin):
def setup(self):
super(RedHatSahara, self).setup()
-... | [openstack_sahara] capture all sahara* sudoers files It seems that nowadays the file is /etc/sudoers.d/sahara-rootwrap. Closes: #<I>. | py |
diff --git a/egg/_gui.py b/egg/_gui.py
index <HASH>..<HASH> 100644
--- a/egg/_gui.py
+++ b/egg/_gui.py
@@ -2353,6 +2353,11 @@ class TreeDictionary(BaseObject):
def get_list_values(self, key):
"""
Returns the values for a list item of the specified key.
+
+ Parameters
+ -----... | Update _gui.py Ability to get the list index from TreeDictionary combo box. | py |
diff --git a/geventreactor.py b/geventreactor.py
index <HASH>..<HASH> 100644
--- a/geventreactor.py
+++ b/geventreactor.py
@@ -274,6 +274,8 @@ class DelayedCall(object):
L.append('>')
return ''.join(L)
+ __repr__ = __str__
+
class Stream(Greenlet, styles.Ephemeral):
def __init__(self, rea... | Added the missing __repr__ of geventreactor.DelayedCall | py |
diff --git a/shinken/daemon.py b/shinken/daemon.py
index <HASH>..<HASH> 100644
--- a/shinken/daemon.py
+++ b/shinken/daemon.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+# -*- coding: utf-8 -*-
# Copyright (C) 2009-2011 :
# Gabes Jean, naparuba@gmail.com | Replacing the useless shebang by a useful utf-8 encoding. Sorry guys, I'm tired too sometimes :) | py |
diff --git a/tensorpack/input_source/input_source.py b/tensorpack/input_source/input_source.py
index <HASH>..<HASH> 100644
--- a/tensorpack/input_source/input_source.py
+++ b/tensorpack/input_source/input_source.py
@@ -398,8 +398,8 @@ class DummyConstantInput(TensorInput):
tlist = []
ctx = get... | bugfix in DummyConstantInput | py |
diff --git a/site_config/models.py b/site_config/models.py
index <HASH>..<HASH> 100644
--- a/site_config/models.py
+++ b/site_config/models.py
@@ -58,10 +58,12 @@ class ConfigField(models.Model):
SPLIT_TYPES = [FIELD_TYPE_TEXT, FIELD_TYPE_INPUT]
site = models.ForeignKey(
- Site, verbose_name=_('Site'... | Add `on_delete` params to foreign keys. | py |
diff --git a/treeherder/model/models.py b/treeherder/model/models.py
index <HASH>..<HASH> 100644
--- a/treeherder/model/models.py
+++ b/treeherder/model/models.py
@@ -1018,6 +1018,11 @@ class Group(models.Model):
class ClassifiedFailure(models.Model):
+ """
+ Classifies zero or more TextLogErrors as a failur... | Document what ClassifiedFailures represent | py |
diff --git a/pkg_resources/__init__.py b/pkg_resources/__init__.py
index <HASH>..<HASH> 100644
--- a/pkg_resources/__init__.py
+++ b/pkg_resources/__init__.py
@@ -1512,6 +1512,19 @@ is not allowed.
...
ValueError: Use of .. or absolute path in a resource path \
is not allowed.
+
+ Blank values... | Add two tests capturing expectation for '' and None to _validate_resource_path. Ref #<I>. | py |
diff --git a/tests/integration/states/test_file.py b/tests/integration/states/test_file.py
index <HASH>..<HASH> 100644
--- a/tests/integration/states/test_file.py
+++ b/tests/integration/states/test_file.py
@@ -2134,9 +2134,6 @@ class FileTest(ModuleCase, SaltReturnAssertsMixin):
for filename in glob.glob(... | Unskip this test It has been edited to work properly and should be fine in PY3 now. | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -15,7 +15,7 @@
# import os
# import sys
# sys.path.insert(0, os.path.abspath('.'))
-
+from persim import __version__
# -- Project information -----------------------------------------------------
@@ -24... | docs automatically get version number from library | py |
diff --git a/example.py b/example.py
index <HASH>..<HASH> 100755
--- a/example.py
+++ b/example.py
@@ -4,7 +4,7 @@ import datetime
import sys
import IndexedRedis
from IndexedRedis import IndexedRedisModel, IRField
-from IndexedRedis.fields import IRCompressedField, IRFieldChain, IRRawField
+from IndexedRedis.fields ... | Change example to show IRBytesField on thumbnail | py |
diff --git a/python/tests/phonenumbermatchertest.py b/python/tests/phonenumbermatchertest.py
index <HASH>..<HASH> 100644
--- a/python/tests/phonenumbermatchertest.py
+++ b/python/tests/phonenumbermatchertest.py
@@ -853,6 +853,18 @@ class PhoneNumberMatcherTest(unittest.TestCase):
"""Returns True if there were ... | Reinstate Python extra test but as a standalone case | py |
diff --git a/setuptools_odoo/core.py b/setuptools_odoo/core.py
index <HASH>..<HASH> 100644
--- a/setuptools_odoo/core.py
+++ b/setuptools_odoo/core.py
@@ -22,7 +22,7 @@ ODOO_VERSION_INFO = {
'addon_dep_version': '>=8,<9',
},
'9.0': {
- 'dep': 'odoo>=9,<10',
+ 'odoo_dep': 'odoo>=9,<10',
... | fix typo in <I> data | py |
diff --git a/tests/test_modeling_common.py b/tests/test_modeling_common.py
index <HASH>..<HASH> 100644
--- a/tests/test_modeling_common.py
+++ b/tests/test_modeling_common.py
@@ -67,6 +67,8 @@ class ModelTesterMixin:
if model_class in MODEL_FOR_MULTIPLE_CHOICE_MAPPING.values():
return {
... | Fix the CI (#<I>) * Fix CI | py |
diff --git a/pypot/server/snap.py b/pypot/server/snap.py
index <HASH>..<HASH> 100644
--- a/pypot/server/snap.py
+++ b/pypot/server/snap.py
@@ -4,6 +4,7 @@ import bottle
import socket
import re
import logging
+from ast import literal_eval as make_tuple
from .server import AbstractServer
from.httpserver import Ena... | Fix parsing register value in Snap! We were unable to set the pid register | py |
diff --git a/safe_qgis/report/html_renderer.py b/safe_qgis/report/html_renderer.py
index <HASH>..<HASH> 100644
--- a/safe_qgis/report/html_renderer.py
+++ b/safe_qgis/report/html_renderer.py
@@ -165,9 +165,9 @@ class HtmlRenderer():
QtCore.Qt.ScrollBarAlwaysOff)
# noinspec... | tentative fix for html_renderer tests hanging | py |
diff --git a/sandboxapi/wildfire.py b/sandboxapi/wildfire.py
index <HASH>..<HASH> 100644
--- a/sandboxapi/wildfire.py
+++ b/sandboxapi/wildfire.py
@@ -104,9 +104,10 @@ class WildFireAPI(sandboxapi.SandboxAPI):
except (ValueError, IndexError) as e:
raise sandboxapi.SandboxError(e)
- def is_ava... | Removed an annotation for python 2 support. | py |
diff --git a/metaseq/filetype_adapters.py b/metaseq/filetype_adapters.py
index <HASH>..<HASH> 100644
--- a/metaseq/filetype_adapters.py
+++ b/metaseq/filetype_adapters.py
@@ -13,6 +13,7 @@ Subclasses must define make_fileobj(), which returns an object to be iterated
over in __getitem__
"""
from bx.bbi.bigbed_file im... | use bx-python for bigwig summary | py |
diff --git a/eemeter/ee/derivatives.py b/eemeter/ee/derivatives.py
index <HASH>..<HASH> 100644
--- a/eemeter/ee/derivatives.py
+++ b/eemeter/ee/derivatives.py
@@ -108,7 +108,7 @@ def unpack(modeled_trace, baseline_label, reporting_label,
normal_index, weather_normal_source)
if hourly_trace_data is... | Correct the length of the hourly fixture | py |
diff --git a/airflow/hooks/base_hook.py b/airflow/hooks/base_hook.py
index <HASH>..<HASH> 100644
--- a/airflow/hooks/base_hook.py
+++ b/airflow/hooks/base_hook.py
@@ -7,6 +7,8 @@ from airflow import settings
from airflow.models import Connection
from airflow.utils import AirflowException
+CONN_ENV_PREFIX = 'AIRFLOW... | fixed the base_hook in regards to env variable | py |
diff --git a/bang/util.py b/bang/util.py
index <HASH>..<HASH> 100644
--- a/bang/util.py
+++ b/bang/util.py
@@ -217,8 +217,6 @@ class S3Handler(BufferingHandler):
def initialize_logging(config):
multiprocessing.current_process().name = 'Stack'
cfg = config.get(A.LOGGING, {})
- console_level = cfg.get(A.log... | Set console logging level correctly. This resolves #<I>. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -6,7 +6,7 @@ def read(fname):
setup(
name='django-userprofiles',
- version='0.3',
+ version='0.3.1',
description='Registration, e-mail verifications and profiles.',
long_description=read('README.rst'),
... | bumped version: <I> | py |
diff --git a/tacl/catalogue.py b/tacl/catalogue.py
index <HASH>..<HASH> 100644
--- a/tacl/catalogue.py
+++ b/tacl/catalogue.py
@@ -36,7 +36,7 @@ class Catalogue (dict):
"""
reader = csv.reader(open(path), delimiter=' ', skipinitialspace=True)
for row in reader:
- if len(row) == 2:
... | Allowed more than two space-separated fields in a catalogue file, to avoid confusion with trailing spaces after a label. | py |
diff --git a/ib_insync/contract.py b/ib_insync/contract.py
index <HASH>..<HASH> 100644
--- a/ib_insync/contract.py
+++ b/ib_insync/contract.py
@@ -166,8 +166,13 @@ class Bond(Contract):
class FuturesOption(Contract):
__slots__ = ()
- def __init__(self, **kwargs):
- Contract.__init__(self, secType='FOP... | Issue #<I> FuturesOption constructor like Option | py |
diff --git a/eth_account/messages.py b/eth_account/messages.py
index <HASH>..<HASH> 100644
--- a/eth_account/messages.py
+++ b/eth_account/messages.py
@@ -128,7 +128,8 @@ def encode_structured_data(
- text, as a json-encoded string
- hexstr, as a hex-encoded (json-encoded) string
- .. WARNING:: N... | Add warning about missing tests for structed msgs The more I dig in, the more I think it's probably very broken. | py |
diff --git a/salt/states/npm.py b/salt/states/npm.py
index <HASH>..<HASH> 100644
--- a/salt/states/npm.py
+++ b/salt/states/npm.py
@@ -101,7 +101,7 @@ def installed(name,
return ret
else:
installed_pkgs = dict((p.lower(), info)
- for p, info in list(installed_pkgs.items()))
+ ... | List call not needed. Changing it back to what it was | py |
diff --git a/lavalink/utils.py b/lavalink/utils.py
index <HASH>..<HASH> 100644
--- a/lavalink/utils.py
+++ b/lavalink/utils.py
@@ -151,11 +151,12 @@ def decode_track(track: str) -> AudioTrack:
'identifier': identifier,
'isStream': is_stream,
'uri': uri,
- 'isSeekable': ... | (AudioTrack) avoid placing source in extra. | py |
diff --git a/solvebio/test/test_dataset.py b/solvebio/test/test_dataset.py
index <HASH>..<HASH> 100644
--- a/solvebio/test/test_dataset.py
+++ b/solvebio/test/test_dataset.py
@@ -33,9 +33,8 @@ class DatasetTests(SolveBioTestCase):
check_fields = set(['class_name', 'created_at',
'da... | fix facet tests for new API response | py |
diff --git a/src/hieroglyph/writer.py b/src/hieroglyph/writer.py
index <HASH>..<HASH> 100644
--- a/src/hieroglyph/writer.py
+++ b/src/hieroglyph/writer.py
@@ -118,8 +118,13 @@ class BaseSlideTranslator(HTMLTranslator):
def visit_title(self, node):
if isinstance(node.parent, slide):
- slide_le... | Fixed level calculation for slide directive titles. | py |
diff --git a/post_office/admin.py b/post_office/admin.py
index <HASH>..<HASH> 100644
--- a/post_office/admin.py
+++ b/post_office/admin.py
@@ -19,6 +19,7 @@ class LogInline(admin.StackedInline):
class EmailAdmin(admin.ModelAdmin):
list_display = ('to', 'subject', 'template', 'status', 'last_updated')
inlines... | Added status filter in EmailAdmin. | py |
diff --git a/girder/api/v1/item.py b/girder/api/v1/item.py
index <HASH>..<HASH> 100644
--- a/girder/api/v1/item.py
+++ b/girder/api/v1/item.py
@@ -45,7 +45,7 @@ class Item(Resource):
@access.public(scope=TokenScope.DATA_READ)
@filtermodel(model='item')
@describeRoute(
- Description('Search for an ... | api: Fix item endpoint description Description of collection and item endpoint are not consistent. | py |
diff --git a/rllib/policy/torch_policy.py b/rllib/policy/torch_policy.py
index <HASH>..<HASH> 100644
--- a/rllib/policy/torch_policy.py
+++ b/rllib/policy/torch_policy.py
@@ -4,7 +4,6 @@ import numpy as np
import time
from typing import Callable, Dict, List, Optional, Tuple, Type, Union
-import ray
from ray.rllib.... | [RLlib] Issue <I> TorchPolicy GPU. (#<I>) | py |
diff --git a/gtkmvco/gtkmvc3/__init__.py b/gtkmvco/gtkmvc3/__init__.py
index <HASH>..<HASH> 100644
--- a/gtkmvco/gtkmvc3/__init__.py
+++ b/gtkmvco/gtkmvc3/__init__.py
@@ -55,7 +55,7 @@ __all__ = ["Model", "TreeStoreModel", "ListStoreModel", "TextBufferModel",
"observable", "observer", "adapters", # packages... | Changed version to be <I> Fixes issue #8 | py |
diff --git a/openquake/signalling.py b/openquake/signalling.py
index <HASH>..<HASH> 100644
--- a/openquake/signalling.py
+++ b/openquake/signalling.py
@@ -53,7 +53,7 @@ def connect():
chn = conn.channel()
# I use the vhost as a realm, which seems to be an arbitrary string
chn.access_request(cfg['vhost'],... | For queues and exchanges auto_delete=False Former-commit-id: aff8bbe4fcdba<I>ff<I>bac3d1a<I>f<I>dec<I>a | py |
diff --git a/cumulusci/robotframework/Salesforce.py b/cumulusci/robotframework/Salesforce.py
index <HASH>..<HASH> 100644
--- a/cumulusci/robotframework/Salesforce.py
+++ b/cumulusci/robotframework/Salesforce.py
@@ -295,8 +295,15 @@ class Salesforce(object):
self.selenium.get_webelement(menu_locator).click()
... | Fix _populate_field to work on firefox (as well as other browsers) I didn't add any tests because we already have a test that fails on firefox without this fix (ui.robot:Populate Field) | py |
diff --git a/rtpipe/RT.py b/rtpipe/RT.py
index <HASH>..<HASH> 100644
--- a/rtpipe/RT.py
+++ b/rtpipe/RT.py
@@ -258,10 +258,12 @@ def dataflag(d, data_read):
for flag in d['flaglist']:
mode, sig, conv = flag
- chans = n.arange(d['nchan']) # chans, pol are indices for splitting up work
- ... | flags by spw channel groups to avoid whole-spw flagging | py |
diff --git a/stacker/plan.py b/stacker/plan.py
index <HASH>..<HASH> 100644
--- a/stacker/plan.py
+++ b/stacker/plan.py
@@ -52,8 +52,9 @@ class Step(object):
return self._run_func(results, self.stack, status=self.status)
def set_status(self, status):
- logger.debug("Setting %s state to %s.", self.... | Only set status if the status has changed | py |
diff --git a/superset/views/core.py b/superset/views/core.py
index <HASH>..<HASH> 100755
--- a/superset/views/core.py
+++ b/superset/views/core.py
@@ -2553,9 +2553,9 @@ class Superset(BaseSupersetView):
)
session = db.session()
- mydb = session.query(models.Database).filter_by(id=database... | [superset] Fix, missing return on error and improved query (#<I>) | py |
diff --git a/djangular/forms/angular_validation.py b/djangular/forms/angular_validation.py
index <HASH>..<HASH> 100644
--- a/djangular/forms/angular_validation.py
+++ b/djangular/forms/angular_validation.py
@@ -40,6 +40,9 @@ class NgFormValidationMixin(NgFormBaseMixin):
errors_function = getattr(VALIDATION... | Validation tick is added to bound field in pristine mode | py |
diff --git a/poetry/puzzle/provider.py b/poetry/puzzle/provider.py
index <HASH>..<HASH> 100644
--- a/poetry/puzzle/provider.py
+++ b/poetry/puzzle/provider.py
@@ -189,7 +189,7 @@ class Provider:
try:
venv.run("python", "setup.py", "egg_info")
- egg_info = list(... | GH-<I> - fix searching of .egg-info (#<I>) | py |
diff --git a/spacy/util.py b/spacy/util.py
index <HASH>..<HASH> 100644
--- a/spacy/util.py
+++ b/spacy/util.py
@@ -434,6 +434,27 @@ def compounding(start, stop, compound):
curr *= compound
+def stepping(start, stop, steps):
+ """Yield an infinite series of values that step from a start value to a
+ f... | Add a stepping function, for changing batch sizes or learning rates | py |
diff --git a/salt/modules/zypper.py b/salt/modules/zypper.py
index <HASH>..<HASH> 100644
--- a/salt/modules/zypper.py
+++ b/salt/modules/zypper.py
@@ -879,13 +879,19 @@ def clean_locks():
salt '*' pkg.clean_locks
'''
- if not os.path.exists(LOCKS):
- return False
-
- cmd = ('zypper --non-in... | Return an actual amount of removed locks. | py |
diff --git a/pyrogram/methods/users/iter_profile_photos.py b/pyrogram/methods/users/iter_profile_photos.py
index <HASH>..<HASH> 100644
--- a/pyrogram/methods/users/iter_profile_photos.py
+++ b/pyrogram/methods/users/iter_profile_photos.py
@@ -28,7 +28,7 @@ class IterProfilePhotos(Scaffold):
chat_id: Union[int,... | Fix iter_profile_photos wrong hinted return type | py |
diff --git a/test/asyncio_tests/test_asyncio_database.py b/test/asyncio_tests/test_asyncio_database.py
index <HASH>..<HASH> 100644
--- a/test/asyncio_tests/test_asyncio_database.py
+++ b/test/asyncio_tests/test_asyncio_database.py
@@ -31,7 +31,7 @@ from test.asyncio_tests import (asyncio_test,
from test.test_environme... | MOTOR-<I> Rename test to TestAsyncIODatabase. | py |
diff --git a/mesh_tensorflow/transformer/utils.py b/mesh_tensorflow/transformer/utils.py
index <HASH>..<HASH> 100644
--- a/mesh_tensorflow/transformer/utils.py
+++ b/mesh_tensorflow/transformer/utils.py
@@ -2268,10 +2268,15 @@ def eval_model(estimator,
summary = tf.Summary()
targets = cached_targets[e... | Modified the `eval_model` function in mesh_tensorflow/transformer/utils.py to accept Summary protos in addition to tag-to-scalar dicts. PiperOrigin-RevId: <I> | py |
diff --git a/kdtree/kdtree.py b/kdtree/kdtree.py
index <HASH>..<HASH> 100644
--- a/kdtree/kdtree.py
+++ b/kdtree/kdtree.py
@@ -247,6 +247,7 @@ class KDNode(Node):
tmp_l, tmp_r = self.left, self.right
self.left, self.right = root.left, root.right
root.left, root.right =... | also swap Node's axis when swapping pos in tree | py |
diff --git a/src/foremast/pipeline/create_pipeline.py b/src/foremast/pipeline/create_pipeline.py
index <HASH>..<HASH> 100644
--- a/src/foremast/pipeline/create_pipeline.py
+++ b/src/foremast/pipeline/create_pipeline.py
@@ -127,6 +127,7 @@ class SpinnakerPipeline:
'slack': slack,
'root_... | pass all pipeline data to wrapper creation | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -37,7 +37,7 @@ setup(
long_description=read('README.md'),
long_description_content_type='text/markdown',
license='BSD',
- keywords='ews exchange autodiscover outlook o365 office365',
+ keywords='ews exchan... | Actually, just align with the keywords on GitHub | py |
diff --git a/gphoto2/gphoto2.py b/gphoto2/gphoto2.py
index <HASH>..<HASH> 100644
--- a/gphoto2/gphoto2.py
+++ b/gphoto2/gphoto2.py
@@ -158,7 +158,8 @@ class Directory(object):
with open(local_path, 'rb') as fp:
lib.gp_file_new_from_fd(camerafile_p, fp.fileno())
lib.gp_camera_folder_pu... | Pass path variables as bytestrings into Directory.upload | py |
diff --git a/spikeextractors/sortingextractor.py b/spikeextractors/sortingextractor.py
index <HASH>..<HASH> 100644
--- a/spikeextractors/sortingextractor.py
+++ b/spikeextractors/sortingextractor.py
@@ -135,12 +135,8 @@ class SortingExtractor(ABC, BaseExtractor):
raise ValueError("feature v... | Preserve memmap type when setting features! | py |
diff --git a/scripts/lib/mha_config_helper.py b/scripts/lib/mha_config_helper.py
index <HASH>..<HASH> 100644
--- a/scripts/lib/mha_config_helper.py
+++ b/scripts/lib/mha_config_helper.py
@@ -1,7 +1,7 @@
import ConfigParser
class MHA_config_helper(object):
- CONFIG_PATH = "/usr/local/mha-helper/conf/global.conf.s... | Correct the global config path in config_helper | py |
diff --git a/ccmlib/node.py b/ccmlib/node.py
index <HASH>..<HASH> 100644
--- a/ccmlib/node.py
+++ b/ccmlib/node.py
@@ -1233,3 +1233,13 @@ class Node():
common.replace_in_file(dst,'CASSANDRA_PARAMS=',' $env:CASSANDRA_PARAMS=\'-Dcassandra' + # -Dcassandra
' -Dlogback.configurationFile=/"... | Add function for easy parsing of node's yaml file | py |
diff --git a/pyimgur/request.py b/pyimgur/request.py
index <HASH>..<HASH> 100644
--- a/pyimgur/request.py
+++ b/pyimgur/request.py
@@ -92,9 +92,12 @@ def send_request(url, params=None, method='GET', data_field='data',
if data_field is not None:
content = content[data_field]
if not resp.ok:
- e... | Wrap imgur error in try... except If the response isn't json with a error key, such as a <I> bad request, then the error handling would error out. | py |
diff --git a/sos/report/plugins/foreman_installer.py b/sos/report/plugins/foreman_installer.py
index <HASH>..<HASH> 100644
--- a/sos/report/plugins/foreman_installer.py
+++ b/sos/report/plugins/foreman_installer.py
@@ -25,6 +25,8 @@ class ForemanInstaller(Plugin, DebianPlugin, UbuntuPlugin):
"/etc/foreman-... | [foreman-installer] collect foreman-maintain config and storage data data.yml keeps status of foreman-maintain activitis in progress. foreman_maintain.yml contains foreman-maintain config. Resolves: #<I> | py |
diff --git a/lib/devpipeline_configure/cache.py b/lib/devpipeline_configure/cache.py
index <HASH>..<HASH> 100644
--- a/lib/devpipeline_configure/cache.py
+++ b/lib/devpipeline_configure/cache.py
@@ -116,6 +116,9 @@ class _CachedComponent:
def __iter__(self):
return _CachedComponetKeys(self._component)
+... | Implement __contains__ method for component cache | py |
diff --git a/wsdiscovery/threaded.py b/wsdiscovery/threaded.py
index <HASH>..<HASH> 100644
--- a/wsdiscovery/threaded.py
+++ b/wsdiscovery/threaded.py
@@ -210,7 +210,14 @@ class NetworkingThread(_StoppableDaemonThread):
self._seqnum += 1
else:
for sock in list(self._multiOutUniInS... | Handle case where sendto fails on interface that does not support it. This can be because the interface is a VPN tunnel or is DOWN. | py |
diff --git a/playhouse/postgres_ext.py b/playhouse/postgres_ext.py
index <HASH>..<HASH> 100644
--- a/playhouse/postgres_ext.py
+++ b/playhouse/postgres_ext.py
@@ -272,8 +272,9 @@ class TSVectorField(IndexedFieldMixin, TextField):
def Match(field, query, language=None):
params = (language, query) if language is ... | Fix Postgres extension's full text search Match the field should also be converted to to_tsvector with language | py |
diff --git a/voikko-fi/common/generate_lex_common.py b/voikko-fi/common/generate_lex_common.py
index <HASH>..<HASH> 100644
--- a/voikko-fi/common/generate_lex_common.py
+++ b/voikko-fi/common/generate_lex_common.py
@@ -208,7 +208,7 @@ def write_entry(main_vocabulary,vocabulary_files,word, entry):
def get_options():
... | Fix option parsing after changes in ab<I>a8 | py |
diff --git a/python/src/nnabla/utils/converter/onnx/exporter.py b/python/src/nnabla/utils/converter/onnx/exporter.py
index <HASH>..<HASH> 100644
--- a/python/src/nnabla/utils/converter/onnx/exporter.py
+++ b/python/src/nnabla/utils/converter/onnx/exporter.py
@@ -2454,7 +2454,8 @@ class OnnxExporter:
def Broadcast(... | Fix Broadcast for ONNX Exporter. | py |
diff --git a/jarn/mkrelease/mkrelease.py b/jarn/mkrelease/mkrelease.py
index <HASH>..<HASH> 100644
--- a/jarn/mkrelease/mkrelease.py
+++ b/jarn/mkrelease/mkrelease.py
@@ -19,7 +19,7 @@ from setuptools import Setuptools
from scp import SCP
from scm import SCMFactory
from urlparser import URLParser
-from exit import m... | Catch ValueErrors raised by ConfigParser. | py |
diff --git a/salt/runners/jobs.py b/salt/runners/jobs.py
index <HASH>..<HASH> 100644
--- a/salt/runners/jobs.py
+++ b/salt/runners/jobs.py
@@ -204,6 +204,33 @@ def list_jobs(ext_source=None,
'''
List all detectable jobs and associated functions
+ ext_source
+ The external job cache to use. Default... | Adding some docs for list_jobs parameters. | py |
diff --git a/pycvodes/_config.py b/pycvodes/_config.py
index <HASH>..<HASH> 100644
--- a/pycvodes/_config.py
+++ b/pycvodes/_config.py
@@ -1,4 +1,4 @@
env = {
'LAPACK': 'lapack',
- 'SUNDIALS_LIBS': 'sundials_cvodes,sundials_nvecserial',
+ 'SUNDIALS_LIBS': 'sundials_cvodes,sundials_nvecserial,m',
} | Add 'm' to libs | py |
diff --git a/hairball/__init__.py b/hairball/__init__.py
index <HASH>..<HASH> 100644
--- a/hairball/__init__.py
+++ b/hairball/__init__.py
@@ -8,7 +8,7 @@ from hairball.plugins import PluginController
__version__ = '0.1a'
-class ScratchAnalysis(object):
+class Hairball(object):
def __init__(self, argv):
... | The main object is called Hairball, duh. | py |
diff --git a/astroplan/core.py b/astroplan/core.py
index <HASH>..<HASH> 100644
--- a/astroplan/core.py
+++ b/astroplan/core.py
@@ -462,10 +462,7 @@ class Observer(object):
Returns the lower and upper limits on the time and altitudes
of the horizon crossing.
"""
- alt = Latitude(alt)
-
... | Using np.atleast_2d because I want to be slick like @adrn | py |
diff --git a/pandas/core/apply.py b/pandas/core/apply.py
index <HASH>..<HASH> 100644
--- a/pandas/core/apply.py
+++ b/pandas/core/apply.py
@@ -633,28 +633,28 @@ class FrameApply(Apply):
obj = self.obj
axis = self.axis
- # TODO: Avoid having to change state
- self.obj = self.obj if self... | CLN: Don't modify state in FrameApply.agg (#<I>) | py |
diff --git a/pyorbital/orbital.py b/pyorbital/orbital.py
index <HASH>..<HASH> 100644
--- a/pyorbital/orbital.py
+++ b/pyorbital/orbital.py
@@ -111,11 +111,15 @@ def get_observer_look(sat_lon, sat_lat, sat_alt, utc_time, lon, lat, alt):
az_ = np.arctan(-top_e / top_s)
- if hasattr(az_, 'chunks'):
- # ... | Support xarray in get_observer_look get_observer_look was erroneously turning dask.array into xarray dataarrays.. However, the standard 'else:'-block did not work for xarray dataarrays. either. Add a special case 'elif:'-block for xarray dataarrays. Fixes #<I>. | py |
diff --git a/tests/unit/test_commands.py b/tests/unit/test_commands.py
index <HASH>..<HASH> 100644
--- a/tests/unit/test_commands.py
+++ b/tests/unit/test_commands.py
@@ -582,11 +582,20 @@ class TestCommands(object):
"""
query = '|en que no desea la nueva pregunta'
res = pmxbot.translate(c, e, '#test', 'testru... | Updated test_translate to actually fail when translation is failing. | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -19,7 +19,6 @@ import sphinx_rtd_theme
import okcupyd
-os.environ['PYTHON_EGG_CACHE'] = '.'
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.... | Remove dumb attempt to set environment variable for rtd. | py |
diff --git a/visidata/shell.py b/visidata/shell.py
index <HASH>..<HASH> 100644
--- a/visidata/shell.py
+++ b/visidata/shell.py
@@ -124,7 +124,7 @@ class DirSheet(DeferredSaveSheet):
rowtype = 'files' # rowdef: Path
columns = [
DeferredSetColumn('directory',
- getter=lambda col,row: row.par... | [Bugfix DirSheet] Since commit <I>dd4, an unresolved path is expected - DirSheet was not picking up the directories of files | py |
diff --git a/salt/cloud/clouds/msazure.py b/salt/cloud/clouds/msazure.py
index <HASH>..<HASH> 100644
--- a/salt/cloud/clouds/msazure.py
+++ b/salt/cloud/clouds/msazure.py
@@ -497,7 +497,7 @@ def create(vm_):
vm_['name'], exc.message
),
# Show the traceback if the debug logging... | Use `exc_info_on_loglevel` instead of `exc_info` | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -10,11 +10,11 @@ setup(
"Topic :: Software Development :: Libraries :: Python Modules"
],
description="CS50 library for Python",
- install_requires=["Flask>=1.0", "SQLAlchemy", "sqlparse", "termcolor"],
+... | added wheel, fixes #<I> | py |
diff --git a/pkutils.py b/pkutils.py
index <HASH>..<HASH> 100644
--- a/pkutils.py
+++ b/pkutils.py
@@ -34,7 +34,7 @@ from functools import total_ordering
import semver
-__version__ = '0.13.3'
+__version__ = '0.13.4'
__title__ = 'pkutils'
__author__ = 'Reuben Cummings' | Bump to version <I> | py |
diff --git a/claripy/vsa/strided_interval.py b/claripy/vsa/strided_interval.py
index <HASH>..<HASH> 100644
--- a/claripy/vsa/strided_interval.py
+++ b/claripy/vsa/strided_interval.py
@@ -48,7 +48,7 @@ def normalize_types(f):
# Make sure the `reversed` property of self is kept the same after operation
... | fix a (possible) bug in the strided-interval normalizer | py |
diff --git a/openquake/calculators/classical.py b/openquake/calculators/classical.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/classical.py
+++ b/openquake/calculators/classical.py
@@ -164,6 +164,7 @@ class PSHACalculator(base.HazardCalculator):
else:
tiles = [self.sitecol]
... | Fixed the maxweight logic [skip hazardlib] [demos] | py |
diff --git a/spacy/_ml.py b/spacy/_ml.py
index <HASH>..<HASH> 100644
--- a/spacy/_ml.py
+++ b/spacy/_ml.py
@@ -227,6 +227,8 @@ def drop_layer(layer, factor=2.):
def Tok2Vec(width, embed_size, pretrained_dims=0):
+ if pretrained_dims is None:
+ pretrained_dims = 0
cols = [ID, NORM, PREFIX, SUFFIX, SH... | Avoid comparison to None in Tok2Vec | py |
diff --git a/pymysql/connections.py b/pymysql/connections.py
index <HASH>..<HASH> 100644
--- a/pymysql/connections.py
+++ b/pymysql/connections.py
@@ -485,10 +485,10 @@ class EOFPacketWrapper(object):
self.packet = from_packet
from_packet.advance(1)
- self.warning_count = from_packet.read(2)
... | Fix warning_count is not int. | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.