message
stringlengths
13
484
diff
stringlengths
38
4.63k
Change eos BGP_PREFIX_THRESH_EXCEEDED error The error `BGP_PREFIX_THRESH_EXCEEDED` under `eos` should be `BGP_PREFIX_LIMIT_EXCEEDED`. This is because the message listed only occurs after the limit has been exceeded.
@@ -16,7 +16,7 @@ prefix: messages: # 'error' should be unique and vendor agnostic. Currently we are using the JUNOS syslog message name as the canonical name. # This may change if we are able to find a more well defined naming system. - - error: BGP_PREFIX_THRESH_EXCEEDED + - error: BGP_PREFIX_LIMIT_EXCEEDED tag: BGP-...
- push adding comment to instance to Extractor phase Pyblish allows modifying comment after collect phase, eg. collector wouldn't collect it. Should be pushed back to Collect phase after Pyblish is eradicated.
@@ -73,7 +73,9 @@ class CollectComment( """ label = "Collect Instance Comment" - order = pyblish.api.CollectorOrder + 0.49 + # TODO change to CollectorOrder after Pyblish is purged + # Pyblish allows modifying comment after collect phase + order = pyblish.api.ExtractorOrder - 0.49 def process(self, context): context_co...
PR feedback Fix wrong function name Add more test for `_broadcast_block`
@@ -368,11 +368,11 @@ async def test_bcc_receive_server_process_received_block(request, event_loop, mo class OtherException(Exception): pass - def import_block_raises_validation_error(block, performa_validation=True): + def import_block_raises_other_exception_error(block, performa_validation=True): raise OtherException...
Update position of vias and metal in pn junction Currently vias and metal sit in the middle of the N++ and P++ regions, which isn't how folks normally design PN junctions. Metal and vias have been moved to the outside of the junctions now.
@@ -773,14 +773,14 @@ def pn( sections.append(ppp) if layer_via is not None: - offset = width_high_doping / 2 + gap_high_doping + offset = width_high_doping + gap_high_doping - width_via/2 via_top = Section(width=width_via, offset=+offset, layer=layer_via) via_bot = Section(width=width_via, offset=-offset, layer=layer_...
Corrected an error in "Upgrading PyPSA" It says "pip install -U pandas" instead of "... pypsa"
@@ -136,7 +136,7 @@ We recommend always keeping your PyPSA installation up-to-date, since bugs get fixed and new features are added. To upgrade PyPSA with pip, do at the command line:: - pip install -U pandas + pip install -U pypsa Don't forget to read the :doc:`release_notes` regarding API changes that might require y...
Test model config validation The following commit introduces a new set of tests for model config where we attempt to send a json object as a string to the model and then checking the result.
import asyncio +import json import os +import random +import string import time import uuid from concurrent.futures import ThreadPoolExecutor @@ -14,8 +17,7 @@ from juju.client.client import ApplicationFacade, ConfigValue from juju.errors import JujuError from juju.model import Model, ModelObserver from juju.utils impo...
elchecking: fix standalone program parse_binary_bootlog(..) now returns also a Failure object.
@@ -21,7 +21,7 @@ refstate_str = args.refstate_file.read() refstate = json.loads(refstate_str) log_bin = args.eventlog_file.read() tpm = tpm_main.tpm() -log_data = tpm.parse_binary_bootlog(log_bin) +_, log_data = tpm.parse_binary_bootlog(log_bin) with open("/tmp/parsed.json", "wt", encoding="utf-8") as log_data_file: l...
BaseAction: enable overriding specific email fields This may come useful for cases when email template is treated as string, e.g. it cannot define multiple recipient ("To:") addresses.
@@ -82,6 +82,42 @@ class BaseAction: pass return ctx + def subject(self): + """Overwrite in order to set own subject from descending Action.""" + return "" + + def sender(self): + """Overwrite in order to set own sender from descending Action.""" + return "" + + def recipients(self): + """Overwrite in order to set own ...
[Release] Update index.json for extension [ webpubsub ] Triggered by Azure CLI Extensions Release Pipeline - ADO_BUILD_URL: Last commit:
"version": "1.1.0" }, "sha256Digest": "802e829313a4993702d114a94eb8b119a376085d92b0a7860fd2c308e73112f6" + }, + { + "downloadUrl": "https://azcliprod.blob.core.windows.net/cli-extensions/webpubsub-1.2.0-py3-none-any.whl", + "filename": "webpubsub-1.2.0-py3-none-any.whl", + "metadata": { + "azext.isPreview": false, + "a...
LOG.exception for mech dict extend failure We generate a new exception here instead of re-raising so we need to use LOG.exception to make debugging easier. TrivialFix
@@ -937,7 +937,7 @@ class ExtensionManager(stevedore.named.NamedExtensionManager): try: getattr(driver.obj, method_name)(session, base_model, result) except Exception: - LOG.error(_LE("Extension driver '%(name)s' failed in " + LOG.exception(_LE("Extension driver '%(name)s' failed in " "%(method)s"), {'name': driver.nam...
Move housenumber indexer before field indexer If it comes later, it will overide the fields boost.
@@ -77,9 +77,9 @@ RESULTS_FORMATTERS = [ 'addok.helpers.formatters.geojson', ] INDEXERS = [ + 'addok.helpers.index.housenumbers_indexer', 'addok.helpers.index.fields_indexer', 'addok.helpers.index.filters_indexer', - 'addok.helpers.index.housenumbers_indexer', 'addok.helpers.index.document_indexer', ] DEINDEXERS = [
Reduce the number of days an issue is stale by 25 This reduces the amount of time an issue is stale to approximately a little less than 3 years and 2 months.
# Probot Stale configuration file # Number of days of inactivity before an issue becomes stale -# 1200 is approximately 3 years and 3 months -daysUntilStale: 1200 +# 1175 is approximately 3 years and 2 months +daysUntilStale: 1175 # Number of days of inactivity before a stale issue is closed daysUntilClose: 7
Explain `adq_per_quantity` in a comment. Addresses review feedback from
@@ -351,6 +351,17 @@ class Presentation(models.Model): is_generic = models.NullBooleanField(default=None) is_current = models.BooleanField(default=True) replaced_by = models.ForeignKey('self', null=True, blank=True) + + # An ADQ is the assumed average maintenance dose per day for a + # drug used for its main indication...
Upgrade NVIDIA driver on CI to 430.40 Summary: Pull Request resolved: Test Plan: Imported from OSS
@@ -45,7 +45,7 @@ retry () { retry sudo pip -q install awscli==1.16.35 if [ -n "${USE_CUDA_DOCKER_RUNTIME:-}" ]; then - DRIVER_FN="NVIDIA-Linux-x86_64-410.104.run" + DRIVER_FN="NVIDIA-Linux-x86_64-430.40.run" wget "https://s3.amazonaws.com/ossci-linux/nvidia_driver/$DRIVER_FN" sudo /bin/bash "$DRIVER_FN" -s --no-drm ||...
add middleware tutorial and blank line 0_0
@@ -365,6 +365,7 @@ try: except ImportError: macro = None + class MacroRule(ABCMessageRule): def __init__(self, pattern: Union[str, List[str]]): if macro is None:
[internal] BSP: support shutdown method and exit notification Add support for `build/shutdown` method (which no-ops) and the `build/exit` notification which instructs the BSP server to immediately exit. [ci skip-rust] [ci skip-build-wheels]
@@ -69,6 +69,8 @@ def _make_error_future(exc: Exception) -> Future: class BSPConnection: _INITIALIZE_METHOD_NAME = "build/initialize" + _SHUTDOWN_METHOD_NAME = "build/shutdown" + _EXIT_NOTIFCATION_NAME = "build/exit" def __init__( self, @@ -124,6 +126,20 @@ class BSPConnection: ) ) + # Handle the `build/shutdown` metho...
Fix the java installation in the DeepVariant OSS prereqs, which is currently failing on Debian.
@@ -65,7 +65,8 @@ if ! java -version 2>&1 | fgrep "1.8"; then [[ $(lsb_release -d | grep 'Debian') ]] && \ sudo -H apt-get install -y gnupg dirmngr && \ sudo -H apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886 - sudo add-apt-repository -y ppa:webupd8team/java + echo "deb http://ppa.launchpad.n...
[utils.notify] don't assume available notification backends Don't assume that notify-send is available on Linux or user notification centers are available on macOS.
@@ -325,10 +325,12 @@ class DesktopNotifier: macos_version, *_ = platform.mac_ver() if platform.system() == 'Darwin': - if IS_MACOS_BUNDLE and Version(macos_version) >= Version('10.14.0'): + if (IS_MACOS_BUNDLE and Version(macos_version) >= Version('10.14.0') + and UNUserNotificationCenter.currentNotificationCenter()):...
[TE] Correctly generate buffer binds with axis separators In SchedulePostProcToPrimfunc, when the axis separator attribute is moved to the buffer properties, it doesn't update buffers that are in the buffer bind scope. This occurs if `Stage.tensorize` is called for a stage whose layout transformation includes `te.AXIS...
@@ -289,6 +289,13 @@ class AxisSeparatorsAttrUnwrapper : StmtExprMutator { if (op->attr_key == tir::attr::axis_separators) { return op->body; + } else if (op->attr_key == tir::attr::buffer_bind_scope) { + Array<ObjectRef> tuple = Downcast<Array<ObjectRef>>(op->node); + Buffer view_buffer = Downcast<Buffer>(tuple[0]); +...
Add root rotation bounds updater test Test that client does not rotate beyond a configured upper bound, i.e. `current_version + MAX_NUMBER_ROOT_ROTATIONS`
@@ -61,6 +61,7 @@ import tuf.exceptions import tuf.repository_tool as repo_tool import tuf.unittest_toolbox as unittest_toolbox import tuf.client.updater as updater +import tuf.settings import securesystemslib import six @@ -256,6 +257,57 @@ class TestUpdater(unittest_toolbox.Modified_TestCase): + def test_root_rotatio...
fix potential scheduler block when `on_finished` triggered when newtask_queue is full ref
@@ -518,7 +518,7 @@ class Scheduler(object): project._selected_tasks = False project._send_finished_event_wait = 0 - self.newtask_queue.put({ + self._postpone_request.append({ 'project': project.name, 'taskid': 'on_finished', 'url': 'data:,on_finished',
Provide statistics on OpenCL profiling analysis Close
Common OpenCL abstract base classe for different processing """ -from __future__ import absolute_import, print_function, division - __author__ = "Jerome Kieffer" __contact__ = "Jerome.Kieffer@ESRF.eu" __license__ = "MIT" __copyright__ = "European Synchrotron Radiation Facility, Grenoble, France" -__date__ = "04/12/2020...
Update README.rst force add MIT license badge
|pic1| |pic2| |pic3| -.. |pic1| image:: https://img.shields.io/github/license/architecture-building-systems/CityEnergyAnalyst +.. |pic1| image:: https://img.shields.io/badge/License-MIT-blue.svg :alt: GitHub license .. |pic2| image:: https://img.shields.io/github/repo-size/architecture-building-systems/CityEnergyAnalys...
Updated help.py - generate-sas example Added MacOS example for generating SAS token with expiration time. The call to the date function `date -d` works on Linux, but not on MacOS. I provided MacOS sample.
@@ -863,10 +863,14 @@ helps['storage account generate-sas'] = """ short-summary: 'Storage account name. Must be used in conjunction with either storage account key or a SAS token. Environment Variable: AZURE_STORAGE_ACCOUNT' examples: - - name: Generate a sas token for the account that is valid for queue and table serv...
Update test_roots.py Making black changes manually.
@@ -251,16 +251,18 @@ class RootsTest(TestCase, AdaptedConfigurationTestCaseMixin, LoaderModuleMockMix with tempfile.TemporaryDirectory() as tmpdirname: mtime_map_path = os.path.join(tmpdirname, "roots", "mtime_map") os.makedirs(os.path.dirname(mtime_map_path)) - with salt.utils.files.fopen(mtime_map_path, 'wb') as fp:...
Update bio-alignment-chart.md add `no_display=true` to iframed cell
@@ -48,7 +48,7 @@ fig.show() ## Alignment Chart in dash_bio -```python +```python no_display=true from IPython.display import IFrame snippet_url = 'https://dash-gallery.plotly.host/python-docs-dash-snippets/' IFrame(snippet_url + 'bio-alignmentchart', width='100%', height=630)
Update bearing_seal_element.py Substitute pytest.approx() to np.allclose() on the bearing __eq___ method.
@@ -6,7 +6,6 @@ import matplotlib.patches as mpatches import matplotlib.pyplot as plt import numpy as np import pandas as pd -import pytest import scipy.interpolate as interpolate import xlrd @@ -45,7 +44,7 @@ class _Coefficient: self.interpolated = lambda x: np.array(self.coefficient[0]) def __eq__(self, other): - if ...
Update feature_request.md This bugs me every single time, the missing space in the rendered version gives me claustrophobia :smile:
@@ -7,7 +7,7 @@ assignees: '' --- -**Is your feature request related to a problem? Please describe.** +#### Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] #### Describe the solution you'd like
Feature: suggest command usage for misspelt commands Migration to error_handler.py Suggesting misspelt commands, in progress
-import contextlib +# import contextlib +import difflib import logging from discord.ext.commands import ( @@ -75,7 +76,7 @@ class ErrorHandler(Cog): if not ctx.channel.id == Channels.verification: tags_get_command = self.bot.get_command("tags get") ctx.invoked_from_error_handler = True - + command_name = ctx.invoked_wi...
DOC: Improve intersect1d docstring The docstring now says what to expect if you call intersect1d(assume_unique=True) but pass in non-unique data.
@@ -369,7 +369,9 @@ def intersect1d(ar1, ar2, assume_unique=False, return_indices=False): Input arrays. Will be flattened if not already 1D. assume_unique : bool If True, the input arrays are both assumed to be unique, which - can speed up the calculation. Default is False. + can speed up the calculation. If True but `...
Update README.md Correct spelling of optional
@@ -68,7 +68,7 @@ Here's a sample: - Having some very basic shell (command prompt) skills. Feel free to ask for help on the Discord! - Having a dedicated server - This app is meant to run 24/7 - (If you don't have that, you can just run a cheap Virtual Private Server) - The below need to be installed on the server wher...
Test fixed after increasing the precision of FDOS. External verificaiton of fermi level not available at the moment, but the following paper shows that fermi level should decrease in GaAs with increasing temperature, which the previous test did not agree with, while this one does.
@@ -102,7 +102,7 @@ class DefectsThermodynamicsTest(PymatgenTest): def test_solve_for_fermi_energy(self): fermi_energy = self.pd.solve_for_fermi_energy(100.0, self.mu_elts, self.dos) - self.assertAlmostEqual(fermi_energy, 0.5738732534885003, 3) + self.assertAlmostEqual(fermi_energy, 0.8334775317578078, 3) fermi_energy ...
Remove Sentium, it's broken Sentium returns http code 503 when accessed
@@ -1617,7 +1617,6 @@ API | Description | Auth | HTTPS | CORS | | [LibreTranslate](https://libretranslate.com/docs) | Translation tool with 17 available languages | No | Yes | Unknown | | [Semantria](https://semantria.readme.io/docs) | Text Analytics with sentiment analysis, categorization & named entity extraction | `...
Disable getNumGPUs rewrite Summary: cc iotamudelta Pull Request resolved:
"RoiPooling2d_backward_kernel<<<": "RoiPooling2d_backward_kernel<float><<<" } }, - { - "path": "aten/src/ATen/Context.h", - "s_constants": { - "detail::getCUDAHooks().getNumGPUs()": "1" - } - }, { "path": "aten/src/ATen/native/cuda/Unique.cu", "s_constants": {
Corrected treatment protocol version Corrected treatment protocol version
"dissociation_protocol": "6.2.0", "enrichment_protocol": "3.1.0", "ipsc_induction_protocol": "3.2.0", - "treatment_protocol": "0.0.0" + "treatment_protocol": "0.0.1" }, "imaging": { "imaging_preparation_protocol": "2.2.0",
CompoundEditor : Improve editor link swatch colors We inadvertently had a light blue color in there that was virtually the same as the highlight color. This removes this and tweaks some of the others a little.
@@ -1632,8 +1632,7 @@ class _DrivenEditorSwatch( _Frame ) : __drivenEditorColors = [ imath.Color3f( 0.71, 0.43, 0.47 ), imath.Color3f( 0.85, 0.80, 0.48 ), - imath.Color3f( 0.62, 0.79, 0.93 ), - imath.Color3f( 0.27, 0.45, 0.21 ), + imath.Color3f( 0.35, 0.55, 0.28 ), imath.Color3f( 0.57, 0.43, 0.71 ) ] __drivenEditorColo...
Use a new variable for static_broadcasted_argnums as a tuple. * Use a new variable for static_broadcasted_argnums as a tuple. This works around a bug in pytype (b/156151503).
@@ -1022,7 +1022,9 @@ def pmap(fun: Callable, axis_name: Optional[AxisName] = None, *, in_axes=0, _check_callable(fun) axis_name = _TempAxisName(fun) if axis_name is None else axis_name if isinstance(static_broadcasted_argnums, int): - static_broadcasted_argnums = (static_broadcasted_argnums,) + static_broadcasted_tupl...
Trying to rollback python I am testing what happens to the Java dependency with this version.
-dist: xenial +dist: trusty git: depth: false addons: @@ -11,7 +11,7 @@ addons: secure: Uw/F4E7ZsnAni7KxX4kFw+Xq0iZ7pveGAEAzb+BRfBk80Hv94Ptq1fztTjAEG9mcNU9+5MJS7YMEc2YDS3dftWHfMHhu7/eg12dMHDwmlmWxMNC/nOgQASSQdJTxU6VdCmjds1pW97nkwlJl8hKy4TPR+Ll7ll4Ha4Yx+02JrzCzQA5syG8agY4zT0ybuBjF+a3ZnTdOrJIhi4PNf6+KbmLmUZqj+PbFpOUQnxHI...
updated sso-office.md removed image names fixed continuation of PR
@@ -9,23 +9,23 @@ Follow these steps to configure Mattermost to use your Office 365 logon credenti 2. In the left-hand navigation pane, select the **Azure Active Directory service**, and then select **App registrations > New registration**. -![AzureApp_NewRegistration.png](../../source/images/AzureApp_New_Registration....
Remove fixed TODO Summary: Pull Request resolved:
@@ -189,8 +189,6 @@ public: return std::move(*this); } - // TODO allow input schema to be just the operator name + overload name, in that case use schema generated from kernel function - private: template<class... ConfigParameters> void op_(FunctionSchema&& schema, ConfigParameters&&... configParameters) {
MySQL 8 support note Add note on authentication change in MySQL 8 and how to support it
@@ -65,7 +65,7 @@ While community support exists for Fedora, FreeBSD and Arch Linux, Mattermost do Database Software ^^^^^^^^^^^^^^^^^ -- MySQL 5.6+ +- MySQL 5.6, 5.7, 8 (Please see note below on MySQL 8 support) - PostgreSQL 9.4+ - Amazon Aurora MySQL 5.6+ @@ -82,6 +82,17 @@ Search limitations on MySQL: - Hashtags or ...
Fixing Chat Preview For Users who do not have picture Added Section Segregation on Config
{% endfor %} </select> </div> - + <hr> + <h4>Recording Options</h4> {% if sysSettings.allowRecording == True %} <div class="form-group row"> <div class="col-6"> <input type="checkbox" data-toggle="toggle" id="allowComments" name="allowComments" {% if channel.allowComments == True %} checked {% endif %}> </div> </div> -...
Remove unnecessary credentials Dataframe datasets ignore the constructor credentials, and, in any case, for dataframes we're setting the Geocoder credentials to upload them.
@@ -128,7 +128,7 @@ class Isolines(Service): input_dataframe = None if isinstance(source, pd.DataFrame): input_dataframe = source - source = Dataset(input_dataframe, credentials=self._credentials) + source = Dataset(input_dataframe) if dry_run: num_rows = source.get_num_rows()
update FigureManager: addFigureInfo main label in lower left corner describing some display conditions (from ImagingPath.createRayTracePlot)
@@ -25,13 +25,13 @@ class FigureManager: self.drawings = [] - # ok. A Drawing should contain its own Aperture and labels set at a specific position. + # A Drawing should contain its own Aperture and labels set at a specific position. # FigureManager can display them, request their position to check they do not overlap....
Fix PR Turns out that comments are associated with a specific AST node in python, and are not AST nodes on their own. Therefore, "continue" after detecting the shebang comment in fact causes the future import to be placed after the first AST node, which might be anything.
@@ -243,7 +243,6 @@ def future_import(feature, node): # Is it a shebang or encoding line? if is_shebang_comment(node) or is_encoding_comment(node): shebang_encoding_idx = idx - continue if is_docstring(node): # skip over docstring continue
issue split up Connection._connect() The logic was getting too busy.
@@ -551,20 +551,11 @@ class Connection(ansible.plugins.connection.ConnectionBase): return stack, seen_names - def _connect(self): + def _connect_broker(self): """ - Establish a connection to the master process's UNIX listener socket, - constructing a mitogen.master.Router to communicate with the master, - and a mitogen...
Update vault.py added log notice for missing entries use get()
@@ -87,7 +87,9 @@ def ext_pillar(minion_id, # pylint: disable=W0613 url = 'v1/{0}'.format(path) response = __utils__['vault.make_request']('GET', url) if response.status_code == 200: - vault_pillar = response.json()['data'] + vault_pillar = response.json().get('data', {}) + else: + log.info('Vault secret not found for:...
Updating .semgrepignore Adding directories to be ignored by semgrep. These files do not need to be checked and are causing semgrep to fail
#spl files may contain eval and other statements that should NOT trigger semgrep warnings *.spl +#Ignore Markdown and Wiki Pages +*.md +*.wiki + #Temporarily ignoring this directory as we discuss a path moving forward #for Splunk Packaging Toolkit Update Strategy /dist/ +#Don't check yaml files in these directories +/r...
MAINT: Fix issue with C compiler args containing spaces Instead of doing a dumb string split, use shlex to make sure args containing spaces are handled properly.
import os import sys import subprocess +import shlex from distutils.errors import CompileError, DistutilsExecError, LibError from distutils.unixccompiler import UnixCCompiler @@ -30,15 +31,15 @@ def UnixCCompiler__compile(self, obj, src, ext, cc_args, extra_postargs, pp_opts if 'OPT' in os.environ: # XXX who uses this?...
DOC: added guidance for new routine Added guidance for when to use the new load routine to the new instrument example. Also updated xarray/pandas guidance.
@@ -324,25 +324,26 @@ The load module method signature should appear as: data by day. This can present some issues for data sets that are stored by month or by year. See ``instruments.methods.nasa_cdaweb.py`` for an example of returning daily data when stored by month. -- tag and inst_id specify the data set to be load...
Fix build error with MSVC Summary: Close Possibly broken by Pull Request resolved:
@@ -13,8 +13,8 @@ Tensor& quantized_copy_(Tensor& self, const Tensor& src) { "Quantized copy only works with contiguous Tensors"); TORCH_CHECK(self.sizes().equals(src.sizes()), "Quantized copy only works with Tensors with the same shape"); - float* src_data = src.data<float>(); AT_DISPATCH_QINT_TYPES(self.scalar_type()...
Update `versionadded` for `Config.from_file` According to the change log at the release `Config.from_file` will be published with is now 2.0.0 rather than 1.2.0.
@@ -194,7 +194,7 @@ class Config(dict): implements a ``read`` method. :param silent: Ignore the file if it doesn't exist. - .. versionadded:: 1.2 + .. versionadded:: 2.0 """ filename = os.path.join(self.root_path, filename)
Fixing incorrect macro in a detection whose test file was updated.
@@ -6,7 +6,7 @@ author: Rod Soto type: Hunting datamodel: [] description: This hunting search provides information on possible exploitation attempts against Splunk Secure Gateway App Mobile Alerts feature in Splunk versions 9.0, 8.2.x, 8.1.x. An authenticated user can run arbitrary operating system commands remotely th...
Fix scheduler_plugin_configuration fixture when scheduler not present Handle the case when scheduler fixture is not present
@@ -1381,7 +1381,11 @@ def run_benchmarks(request, mpi_variants, test_datadir, instance, os, region, be @pytest.fixture() -def scheduler_plugin_configuration(request, region, upload_scheduler_plugin_definitions, scheduler=None): +def scheduler_plugin_configuration(request, region, upload_scheduler_plugin_definitions): ...
minor formatting error log Summary: Pull Request resolved: as title
@@ -583,8 +583,9 @@ class CAFFE2_API TensorImpl : public c10::intrusive_ptr_target { IsType<T>(), "Tensor type mismatch, caller expects elements to be ", TypeMeta::TypeName<T>(), - " while tensor contains ", - storage_.dtype().name()); + ", while tensor contains ", + storage_.dtype().name(), + ". "); return static_cast...
Modify the notes of upload_image_data() method The notes of upload_image_data() method in zun.image.galnce.driver should be "Upload an image." . Closes-bug:
@@ -145,7 +145,7 @@ class GlanceDriver(driver.ContainerImageDriver): raise exception.ZunException(six.text_type(e)) def upload_image_data(self, context, img_id, data): - """Update an image.""" + """Upload an image.""" LOG.debug('Uploading an image to glance %s', img_id) try: return utils.upload_image_data(context, img_...
Make rename exception-handling code py3-compatible sys.maxint doesn't exist in py3, but sys.maxnum will have desired functionality in both py2/py3 Similar to solution implemented here: Issue encountered here:
@@ -94,7 +94,7 @@ if os.name == 'nt': # pragma: no cover except OSError as e: if e.errno != errno.EEXIST: raise - old = "%s-%08x" % (dst, random.randint(0, sys.maxint)) + old = "%s-%08x" % (dst, random.randint(0, sys.maxsize)) os.rename(dst, old) os.rename(src, dst) try:
fix: increase the timeout for checking the connection This commit increases the retry number for checking that the submariner connection is up and running.
subctl show all | grep connected args: executable: /bin/bash - retries: 10 + retries: 40 delay: 10 register: subma_verify until: subma_verify.rc == 0
Fixed bug where tables with remote pagination would modify the wrong rows if not yet sorted.
@@ -986,11 +986,8 @@ class Tabulator(BaseTable): nrows = self.page_size start = (self.page-1)*nrows end = start+nrows - if self.sorters: index = self._processed.iloc[start:end].index.values self.value[column].loc[index] = array - else: - self.value[column].iloc[start:end] = array def _update_selection(self, indices): i...
Add missing torchvision 0.10.1 torchvision compatible with torch 1.9.1 was missing in table of supported versions.
@@ -25,6 +25,8 @@ supported Python versions. +--------------------------+--------------------------+---------------------------------+ | ``1.10.0`` | ``0.11.1`` | ``>=3.6``, ``<=3.9`` | +--------------------------+--------------------------+---------------------------------+ +| ``1.9.1`` | ``0.10.1`` | ``>=3.6``, ``<=3...
change made Change made from fcurella comments on the pull request
localized = True #default_locale is 'en_US' in the previous State of this application default_locale = 'la' -#external provider -external_provider = '' from .. import BaseProvider @@ -42,9 +40,7 @@ class Provider(BaseProvider): 'ext_word_list' --- a list of word you would like to have instead of 'Lorem ipsum' """ - if ...
Incidents: implement & schedule `crawl_incidents` task See docstring for further information. This will run on start-up to retroactively add missing emoji. Ratelimit-wise this should be fine, as there should never be too many missing emoji.
+import asyncio import logging import typing as t from enum import Enum @@ -27,7 +28,38 @@ class Incidents(Cog): """Automation for the #incidents channel.""" def __init__(self, bot: Bot) -> None: + """Schedule `crawl_task` on start-up.""" self.bot = bot + self.crawl_task = self.bot.loop.create_task(self.crawl_incidents...
[Jira Service management] Update service_desk.py * Update service_desk.py with the default 'application/json' content-type the upload is not working in the documentation there is a hint which headers should be set if the X-Atlassian-Token is missing you receive a 404 * Update service_desk.py * Update service_desk.py
@@ -466,10 +466,14 @@ class ServiceDesk(AtlassianRestAPI): """ url = "rest/servicedeskapi/servicedesk/{}/attachTemporaryFile".format(service_desk_id) + # no application/json content type and an additional X-Atlassian-Token header + # https://docs.atlassian.com/jira-servicedesk/REST/4.14.1/#servicedeskapi/servicedesk/{s...
Better document rule processing order Close
@@ -297,6 +297,8 @@ RuleDescriptor object - Each condition is a dict with ``name``, ``minimum`` and ``maximum`` keys. - ``subs``: list of substitutions - Each substitution is stored as tuples of glyphnames, e.g. ("a", "a.alt"). +- Note: By default, rules are applied *before* text shaping/OpenType layout. See + `5.0 rul...
Remove now-unused Path type The engine lost Paths from its Snapshots at some point, and we didn't clean up.
@@ -26,13 +26,6 @@ class FileContent(datatype([('path', text_type), ('content', binary_type)])): return repr(self) -class Path(datatype([('path', text_type), 'stat'])): - """A filesystem path, holding both its symbolic path name, and underlying canonical Stat. - - Both values are relative to the ProjectTree's buildroot...
Unmark xpass dials.tests.util.test_nexus.test_run The original issue has now been fixed upstream.
-import pytest - - -@pytest.mark.xfail(reason="https://github.com/cctbx/cctbx_project/pull/686") def test_run(dials_regression, run_in_tmpdir): from os.path import join
Improve spectral_norm (fixes * Improve spectral_norm (fixes Thank you Morgan Funtowicz for the report and minimal example! * compute sigma only once
@@ -14,10 +14,11 @@ class SpectralNorm(object): self.eps = eps def compute_weight(self, module): - weight = module._parameters[self.name + '_org'] - u = module._buffers[self.name + '_u'] + weight = getattr(module, self.name + '_org') + u = getattr(module, self.name + '_u') height = weight.size(0) weight_mat = weight.vi...
Add typing for `LightningOptimizer` Summary: ### New commit log messages Add typing for `LightningOptimizer`
@@ -128,6 +128,8 @@ class ReAgentLightningModule(pl.LightningModule): return ret def optimizers(self, use_pl_optimizer: bool = True): + # pyre-fixme[6]: Expected `typing_extensions.Literal[True]` for 1st param + # but got `bool`. o = super().optimizers(use_pl_optimizer) if isinstance(o, list): return o
fix: recursion error in translations If bad translations is found then while `msgprint` it attempts to load translation again because of its arg `title = _("Message")`
@@ -323,7 +323,6 @@ def get_translation_dict_from_file(path, lang, app): app=app, lang=lang, values=cstr(item) ) frappe.log_error(message=msg, title="Error in translation file") - frappe.msgprint(msg) return translation_map
Removed ivadomed import Currently failing in RTD build:
@@ -20,7 +20,8 @@ import shlex # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. sys.path.insert(0, os.path.abspath('..')) -import ivadomed +# TODO: find a way to import ivadomed within RTD build +# import ivadom...
Fix MSVC: Add an explicit warning to modules that use the "array.array" internals and try to compile in PyPy. Closes
cdef extern from *: """ #if CYTHON_COMPILING_IN_PYPY + #ifdef _MSC_VER + #pragma message ("This module uses CPython specific internals of 'array.array', which are not available in PyPy.") + #else #warning This module uses CPython specific internals of 'array.array', which are not available in PyPy. #endif + #endif """ ...
Backfill cl/363031725 Update reference docs to note that notifications can overlap in a bucket
@@ -149,10 +149,8 @@ _CREATE_DESCRIPTION = """ service account this permission. If not, the create command attempts to grant it. - You can create multiple notification configurations for a bucket, but their - triggers cannot overlap such that a single event could send multiple - notifications. Attempting to create a no...
notifications.py: Improve the regex for matching relative URLs. Fixes:
@@ -70,37 +70,41 @@ def topic_narrow_url(realm, stream, topic): def relative_to_full_url(base_url, content): # type: (Text, Text) -> Text - # URLs for uploaded content are of the form - # "/user_uploads/abc.png". Make them full paths. - # - # There's a small chance of colliding with non-Zulip URLs containing - # "/user...
changelog update Forgot to include the changelog when I pushed v0.8.4.
@@ -20,13 +20,19 @@ After downloading the directory, the package can be installed by running:: Changelog ========= -0.8.4 (2018-01-30) +0.8.4 (2018-02-24) ------------------ +* Added new slice sampling option (`'rslice'`). + * Changed internals to allow user to access quantities during dynamic batch allocation. Breaks ...
First Steps Minor wording change.
@@ -17,7 +17,7 @@ There are two options to run WISDEM with these files. The first option is to use The first step for either option is to make copies of example files ------------------------------------------------------------------- -Before you start editing your WISDEM input files, please make copies of the original...
Catch case where every reflection is an outlier and quit nicely. Fixes
@@ -495,7 +495,9 @@ def finalise(self, analysis=None): self._reflections.flags.used_in_refinement, ) - logger.debug("%d reflections remain in the manager", len(self._reflections)) + logger.info("%d reflections remain in the manager", len(self._reflections)) + if len(self._reflections) == 0: + raise DialsRefineConfigErr...
Update README.md Update Citation APA style version number
@@ -151,7 +151,7 @@ See [https://github.com/ccbogel/QualCoder-Debians](https://github.com/ccbogel/Qu ## Citation APA style -Curtain, C. (2020) QualCoder 1.9 [Computer software]. Retrieved from +Curtain, C. (2020) QualCoder 2.0 [Computer software]. Retrieved from https://github.com/ccbogel/QualCoder/releases/tag/1.9 ## ...
Fix illegal output test * We changed the behavior when get_attribute fails in outputs * Instead of raising an error and fail all the outputs, we put the error string where it failed so the valid outputs will be visible
@@ -437,14 +437,9 @@ class DeploymentsTestCase(base_test.BaseServerTestCase): blueprint_file_name='blueprint_with_illegal_output.yaml', blueprint_id=id_, deployment_id=id_) - try: - self.client.deployments.outputs.get(id_) - self.fail() - except CloudifyClientError, e: - self.assertEqual(400, e.status_code) - self.asse...
Simplying conditional logic in template Benefits readability at small cost of repetition Addresses review feedback
{% endblock extra_css %} {% block content %} + {% if entity %} + <h1> {{ measure.name }} - {% if entity %}<br><small>{{ entity.name }}</small>{% endif %} + <br><small>{{ entity.name }}</small> </h1> {% if entity %} {% if entity_type == 'practice' %} </a> </p> - <p>This measure shows how this organisation compares with ...
Fix location issue under windows. This patch fix
@@ -1210,6 +1210,11 @@ def update_readme_data(readme_file, **readme_updates): readme_data = json.load(f) readme_data[extensions_key] = generation_data + for denomination, data in readme_data.copy().items(): + if "location" in data and data["location"] and "\\" in data["location"]: + # Windows compatibility: #1166 + rea...
Update unintialized matrix explanation Added a point of clarification because the meaning of an uninitialized matrix can be confusing to beginner students who expect that all newly created values are set to a known value, such as zero. Issue:
@@ -29,6 +29,8 @@ import torch x = torch.empty(5, 3) print(x) +# Note: An uninitialized matrix is declared, but does not contain definite known values before it is used. +# When an uninitialized matrix is created, whatever values were in the allocated memory at the time will appear as the initial values. ##############...
Rename argument object_id to object_ids for _no_older_operations In a *for* statement there are two variables with the same name object_id. Since caller uses object_ids, rename argument object_id to object_ids.
@@ -60,7 +60,7 @@ def _is_valid_delete_operation(session, row): return True -def _no_older_operations(session, object_id, row): +def _no_older_operations(session, object_ids, row): """Check that no older operation exist. Determine that there aren't any operations still in the queue for the @@ -68,10 +68,10 @@ def _no_o...
Fix CulebraTestCase when useuiautomatorhelper is set Fix Pycharm test runner case Print TestProgram USAGE exception only in debug mode
@@ -2630,8 +2630,7 @@ class ViewClient: self.forceViewServerUse = forceviewserveruse ''' Force the use of ViewServer even if the conditions to use UiAutomator are satisfied ''' - self.useUiAutomator = (self.build[ - VERSION_SDK_PROPERTY] >= 16) and not forceviewserveruse # jelly bean 4.1 & 4.2 + self.useUiAutomator = s...
[IMPR] Make GoogleSearchPageGenerator a abc.Generator Derive GoogleSearchPageGenerator from tools.collections.GeneratorWrapper rename the __iter__ method to the generator property to be reused by the Wrapper class
@@ -31,6 +31,7 @@ from pywikibot.backports import ( from pywikibot.comms import http from pywikibot.exceptions import APIError, ServerError from pywikibot.tools import deprecated +from pywikibot.tools.collections import GeneratorWrapper from pywikibot.tools.itertools import filter_unique, itergroup @@ -780,9 +781,8 @@ ...
fix: [cli] allow to load YAML and JSON data contains bare arrays [cli] allow to load YAML and JSON data contains data other than mapping objects such like bare arrays, primitive data and so on.
@@ -349,7 +349,11 @@ def main(argv=None): args = _parse_args((argv if argv else sys.argv)[1:]) cnf = os.environ.copy() if args.env else {} diff = _load_diff(args) + + if cnf: API.merge(cnf, diff) + else: + cnf = diff if args.args: diff = anyconfig.parser.parse(args.args)
Export TOIL_TORQUE_ARGS Environmental variable allowing passing of TORQUE scheduler specific parameters
@@ -121,6 +121,15 @@ class TorqueBatchSystem(AbstractGridEngineBatchSystem): if cpu is not None and math.ceil(cpu) > 1: qsubline.extend(['-l ncpus=' + str(int(math.ceil(cpu)))]) + # "Native extensions" for TORQUE (see DRMAA or SAGA) + nativeConfig = os.getenv('TOIL_TORQUE_ARGS') + if nativeConfig is not None: + logger....
maybe space is keeping it from being able to convert? from reading something online maybe there are spaces?
@@ -64,6 +64,7 @@ def read_data(filename): # Reformat wavelengths header_dict["wavelength"] = header_dict["wavelength"].replace("{", "") header_dict["wavelength"] = header_dict["wavelength"].replace("}", "") + header_dict["wavelength"] = header_dict["wavelength"].replace(" ", "") header_dict["wavelength"] = header_dict...
URL encode the range in the value_* functions This fixes using this endpoing when the worksheet name has forward slashes or other strange characters.
@@ -8,6 +8,11 @@ This module contains common spreadsheets' models. """ +try: + from urllib.parse import quote +except: + from urllib import quote + from ..base import BaseCell, BaseSpreadsheet from ..exceptions import WorksheetNotFound, CellNotFound @@ -93,22 +98,22 @@ class Spreadsheet(BaseSpreadsheet): return r.json(...
public public apis guide Test Plan: manual inspection Reviewers: max, catherinewu
"path": "/community/releases", "name": "Releases & Deprecations" }, + { + "path": "/community/public-apis", + "name": "Changing Public APIs" + }, { "path": "https://join.slack.com/t/dagster/shared_invite/enQtNjEyNjkzNTA2OTkzLTI0MzdlNjU0ODVhZjQyOTMyMGM1ZDUwZDQ1YjJmYjI3YzExZGViMDI1ZDlkNTY5OThmYWVlOWM1MWVjN2I3NjU", "isAbs...
shrink-mds: use mds_to_kill_hostname instead When using fqdn in inventory host file, this task will fail because the mds is registered with its shortname. It means we must use `mds_to_kill_hostname` in this task. Closes:
tasks: # get rid of this as soon as "systemctl stop ceph-msd@$HOSTNAME" also # removes the MDS from the FS map. - - name: exit mds if it the deployment is containerized + - name: exit mds when containerized deployment + command: "{{ container_exec_cmd | default('') }} ceph tell mds.{{ mds_to_kill_hostname }} exit" when...
Ensure reflections fill the scan-range sufficiently. Fixes
import libtbx from scitbx import matrix +from dials.util import Sorry from dials.array_family import flex from dials.algorithms.refinement import weighting_strategies from dials.algorithms.refinement.analysis.centroid_analysis import CentroidAnalyser @@ -169,6 +170,15 @@ def _create_block_columns(self): self._reflectio...
Allow configurable timeouts in admin client check version Currently there's no way to pass timeout to check_version if called from admin.
@@ -206,7 +206,7 @@ class KafkaAdminClient(object): self._client = KafkaClient(metrics=self._metrics, metric_group_prefix='admin', **self.config) - self._client.check_version() + self._client.check_version(timeout=(self.config['api_version_auto_timeout_ms'] / 1000)) # Get auto-discovered version from client if necessar...
Add `__repr__` method to `OldPluginWrapper` so proper name is displayed. This is only really an issue in the plugin settings views.
@@ -371,6 +371,9 @@ class OldPluginAdapter(BasePlugin): def __init__(self, plugin): self.plugin = plugin + def __repr__(self): + return self.plugin.__class__.__name__ + @property def enabled(self): plugin_type = self.get_plugin_type()
ci: cleanup * ci: quote python version numbers Future proofes for coming 3.10.X versions by chaning 3.10.0 to "3.10" * ci: remove max parallel Allow github to maximise number of parallel jobs
@@ -9,10 +9,9 @@ jobs: test: runs-on: ${{ matrix.platform }} strategy: - max-parallel: 4 matrix: platform: [ ubuntu-latest, macos-latest, windows-latest ] - python-version: [ 3.6.7, 3.7, 3.8, 3.9, 3.10.0 ] + python-version: [ "3.6.7", "3.7", "3.8", "3.9", "3.10" ] steps: - uses: actions/checkout@v2
Split cpu/gpu in caffe2/distributed + some clean up Summary: Pull Request resolved: A few targets in caffe2/caffe2/distribute needs to be split too, otherwise won't compile. Also some clean ups and make select_gpu_type to gpu_library_selector
# not currently relevant so they are combined into one list. from __future__ import absolute_import, division, print_function, unicode_literals load("@bazel_skylib//lib:new_sets.bzl", "sets") -load("//caffe2/caffe2/fb:defs_gpu.bzl", "gpu_library_targets") +load("//caffe2/caffe2/fb:defs_gpu.bzl", "gpu_library_selector")...
Update dataloader.py Update dataloader.py unified seg_pos : list
@@ -179,7 +179,7 @@ class LmDataloader(Dataloader): src_single.append(self.vocab.get(PAD_TOKEN)) src.append(src_single[:-1]) tgt.append(src_single[1:]) - seg.append([1] * ins[1] + [0] * (len(src_single) - 1 - ins[1])) + seg.append([1] * ins[1][0] + [0] * (len(src_single) - 1 - ins[1][0])) yield torch.LongTensor(src), \...
Complete tags of superglue dataset card complete tags of superglue dataset card
--- +annotations_creators: +- expert-generated language: - en +language_creators: +- other +license: +- unknown +multilinguality: +- monolingual paperswithcode_id: superglue pretty_name: SuperGLUE +size_categories: +- 10K<n<100K +source_datasets: +- extended|other +tags: +- superglue +- NLU +- natural language understa...
repository.virtual: InjectedPkg: add data attr to store misc data For example, storing the reason or exception object related to why an injected pkg was created.
@@ -64,23 +64,24 @@ class InjectedPkg(pkg_base.wrapper): __slots__ = ( "bdepend", "depend", "rdepend", "pdepend", - "repo", "repo_id", "built", "versioned_atom", "unversioned_atom", + "repo", "repo_id", "built", "versioned_atom", "unversioned_atom", "data", ) default_bdepend = default_depend = default_rdepend = default...
status endpoint - fix services check If a service that is run by systemd is not up yet, it's in falied state and no need to use uninit data
@@ -113,8 +113,9 @@ class Status(SecuredResourceReadonlyMode): statuses = [] for service in systemd_services: if should_be_in_services_output(service, OPTIONAL_SERVICES): - status = ACTIVE_STATE if service['instances'][0]['state'] == \ - 'running' else INACTIVE_STATE + is_service_running = service['instances'] and ( + ...
Re-ordered recent additions to Dockerfile It's preferred to build your app code after installing dependencies in the Dockerfile. The latest additions to this file were added after building the danesfield app code. This change corrects that ordering.
@@ -67,14 +67,6 @@ COPY ./deployment/conda/conda_env.yml \ RUN ${CONDA_EXECUTABLE} env create -f ./danesfield/deployment/conda/conda_env.yml -n core3d && \ ${CONDA_EXECUTABLE} clean -tipsy -# Install Danesfield package into CORE3D Conda environment -COPY . ./danesfield -RUN rm -rf ./danesfield/deployment -RUN ["/bin/ba...