message
stringlengths
13
484
diff
stringlengths
38
4.63k
Add index=False description to read_parquet Discussion [here](https://github.com/dask/dask/issues/2161)
@@ -42,8 +42,9 @@ def read_parquet(path, columns=None, filters=None, categories=None, index=None, List of column names to load filters: list List of filters to apply, like ``[('x', '>' 0), ...]`` - index: string or None - Name of index column to use if that column is sorted + index: string or None (default) or False + ...
[TEST] Fix test_topi_batch_matmul_tensorcore.py:test_batch_matmul requirement * this test current sets a requirement to "uses_gpu", which causes it to fail in cpu-only machine * this patch changes it to be "requires_tensorcore", as per discussion on issue
@@ -63,7 +63,7 @@ def verify_batch_matmul(x_batch, y_batch, M, N, K): check_device("cuda") -@tvm.testing.uses_gpu +@tvm.testing.requires_tensorcore def test_batch_matmul(): verify_batch_matmul(1, 1, 16, 16, 32) verify_batch_matmul(5, 5, 16, 16, 32)
Update gtk.py [GTK] Fix close window confirmation
@@ -91,7 +91,7 @@ class BrowserView: message_format=localization['global.quitConfirmation']) result = dialog.run() if result == gtk.ResponseType.OK: - close_window() + self.close_window() else: dialog.destroy() return True
More consistent formatting in RELEASE.md Consistently enclose filenames referred to througout the release process in backticks to ensure they are rendered in the code style.
# Release process -* Ensure docs/CHANGELOG.md contains a one-line summary of each [notable +* Ensure `docs/CHANGELOG.md` contains a one-line summary of each [notable change](https://keepachangelog.com/) since the prior release -* Update setup.py and `tuf/__init__.py` to the new version number vA.B.C +* Update `setup.py...
Use FileWrapper for both kinds of blobs Just because blob has an __iter__ method, doesn't guarantee it can iterate
@@ -1578,10 +1578,7 @@ class DataFileDownloadDetail(BaseProjectDataView): try: data_file = DataFile.objects.filter(domain=self.domain).get(pk=kwargs['pk']) blob = data_file.get_blob() - response = StreamingHttpResponse( - blob if hasattr(blob, '__iter__') else FileWrapper(blob), - content_type=data_file.content_type - ...
Re-adds on_ludwig_end. * Re-adds on_ludwig_end. * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see
@@ -314,6 +314,13 @@ class Callback(ABC): """ pass + def on_ludwig_end(self): + """Convenience method for any cleanup. + + Not yet implemented. + """ + pass + def prepare_ray_tune(self, train_fn: Callable, tune_config: Dict[str, Any], tune_callbacks: List[Callable]): """Configures Ray Tune callback and config.
fix ProcessGroupGlooTest Summary: Pull Request resolved: This test had 2 issues. A timeout would occasionally happen due to a timeout of 50ms, and CUDA could would get compiled and run on CPU, leading to errors. This PR fixes those issues.
#include <sstream> #include <thread> +#include <torch/cuda.h> + #include <c10d/FileStore.hpp> #include <c10d/ProcessGroupGloo.hpp> #include <c10d/test/TestUtils.hpp> @@ -37,9 +39,10 @@ class SignalTest { std::shared_ptr<::c10d::ProcessGroup::Work> run(int rank, int size) { auto store = std::make_shared<::c10d::FileStor...
llvm, mechanism: Update output ports after updating mech state Update mech value and num_executions counts
@@ -3120,8 +3120,6 @@ class Mechanism_Base(Mechanism): new_val = builder.add(new_val, new_val.type(1)) builder.store(new_val, num_exec_time_ptr) - builder = self._gen_llvm_output_ports(ctx, builder, value, m_base_params, m_state, arg_in, arg_out) - val_ptr = pnlvm.helpers.get_state_ptr(builder, self, m_state, "value") ...
Update initial-config.yaml Typo i think
@@ -31,7 +31,7 @@ ALERTS_URL: https://download.chia.net/notify/mainnet_alert.txt CHIA_ALERTS_PUBKEY: 89b7fd87cb56e926ecefb879a29aae308be01f31980569f6a75a69d2a9a69daefd71fb778d865f7c50d6c967e3025937 # public ssl ca is included in source code -# Privet ssl ca is used for trusted connections between machines user owns +# ...
Fixed issue with highlight titles you must not modify the cache data
@@ -75,7 +75,7 @@ def add_info(videoid, list_item, item, raw_data, handle_highlighted_title=False, # Short information about future release of tv show season or other infos_copy['plot'] += '[CR][COLOR green]{}[/COLOR]'.format(item['dpSupplementalMessage']) if handle_highlighted_title: - add_highlighted_title(list_item,...
Enroll XClarity machines in Ironic's devstack setting In the current XClarity CI environment, we have to manually add XClarity machines. This patch is going to update Ironic's devstack setting to enroll XClarity machines automatically. Story: Task: 28353
@@ -650,6 +650,11 @@ function is_deployed_by_irmc { return 1 } +function is_deployed_by_xclarity { + [[ "$IRONIC_DEPLOY_DRIVER" == xclarity ]] && return 0 + return 1 +} + function is_drac_enabled { [[ -z "${IRONIC_ENABLED_HARDWARE_TYPES%%*idrac*}" ]] && return 0 return 1 @@ -1955,6 +1960,13 @@ function enroll_nodes { i...
Update obsolete credref link Replaces the link to the old credentials reference to the new AWS SDKs and Tools reference guide.
@@ -143,8 +143,8 @@ Boto3 was made generally available on 06/22/2015 and is currently in the full su For information about maintenance and support for SDK major versions and their underlying dependencies, see the following in the AWS SDKs and Tools Shared Configuration and Credentials Reference Guide: -* `AWS SDKs and ...
Add dumpsys Add get_top_activity_name Add get_top_activity_name_and_pid Add get_top_activity_uri
@@ -20,7 +20,7 @@ limitations under the License. from __future__ import print_function -__version__ = '21.7.0' +__version__ = '21.8.0' import json import os @@ -30,7 +30,9 @@ import subprocess import sys import threading import time +import warnings from abc import ABC +from typing import Optional import culebratester_...
Add a paragraph about tuning couchjs xref: apache/couchdb#1670
@@ -59,6 +59,15 @@ Query Servers Definition javascript = /usr/bin/couchjs /usr/share/couchdb/server/main.js coffeescript = /usr/bin/couchjs /usr/share/couchdb/server/main-coffee.js + By default, ``couchjs`` limits the max runtime allocation to 64MiB. + If you run into out of memory issue in your ddoc functions, + you c...
Reduce paramiko log messages for dynamic workloads This patch changes level of paramiko logging for dynamic workloads to WARNING, to reduce the number of paramiko log messages that are produced.
@@ -24,6 +24,7 @@ from oslo_db import exception as db_exc CONF = cfg.CONF LOG = logging.getLogger(__name__) +logging.getLogger("paramiko").setLevel(logging.WARNING) class NovaUtils(vm_utils.VMScenario):
Bring back SITE_URL setting, as it's quite important in extform views Instead of configuring Django sites contrib app, we 'skip' this step and just use one single site parameter we're concerned about: site URL.
@@ -49,6 +49,8 @@ if not DEBUG and SECRET_KEY == DEFAULT_SECRET_KEY: raise ImproperlyConfigured('You must specify non-default value for ' 'SECRET_KEY when running with Debug=FALSE.') +SITE_URL = env.str('AMY_SITE_URL', + default='https://amy.software-carpentry.org') ALLOWED_HOSTS = env.list('AMY_ALLOWED_HOSTS', default...
Clean up README We'll direct users to a snappy install to help get early feedback, moving the alternate installation below that as well.
-# conjure-up [![Build Status](https://travis-ci.org/conjure-up/conjure-up.svg?branch=master)](https://travis-ci.org/conjure-up/conjure-up) [![Requirements Status](https://requires.io/github/conjure-up/conjure-up/requirements.svg?branch=master)](https://requires.io/github/conjure-up/conjure-up/requirements/?branch=mast...
Properly remove string array from pipeline node properties When `StringArrayInput` deletes a value in string array properties it does not actually delete it, instead leaving an `undefined` value. This needs to be addressed by removing the undefined values when saving property changes. This is due to js allowing sparse ...
@@ -545,9 +545,13 @@ export class PipelineEditor extends React.Component< } app_data.runtime_image = propertySet.runtime_image; - app_data.outputs = propertySet.outputs; - app_data.env_vars = propertySet.env_vars; - app_data.dependencies = propertySet.dependencies; + app_data.outputs = propertySet.outputs.filter((x: an...
Update task_set.py use _prepare_text for text data_type
@@ -167,7 +167,7 @@ class TaskSet(TorchDataset): )) if self.data_type == "text": - x, y, t = self._prepare(x, y, t) + x, y, t = self._prepare_text(x, y, t) elif self.data_type == "segmentation": x, y, t = self._prepare_segmentation(x, y, t) else:
documentation please check the parameters
@@ -188,7 +188,7 @@ def substation_HEX_sizing(building_demand, substation_systems): def calc_hex_area_from_demand(building_demand, load_type, building_system, T_supply_C): ''' This function returns the heat exchanger specifications for given building demand, HEX type and supply temperature. - + primary side: network; s...
jenkins: remove composer directories before the tests This commit turns on the `cleanup_composer_directories` option to clean up the osbuild-composer directories during the time the services are stopped (when ansible-osbuild is about to deploy the new versions of the services). Taken from osbuild/osbuild-composer#575, ...
@@ -39,6 +39,7 @@ ansible-playbook \ -i hosts.ini \ -e osbuild_repo=${WORKSPACE} \ -e osbuild_version=$(git rev-parse HEAD) \ + -e cleanup_composer_directories=yes \ ansible-osbuild/playbook.yml # Run the tests only on Fedora 31 for now.
Onefile: For linux: icons look for versioned icon files too * First look for an icon for "pythonMAJOR.MINOR.xpm", then "pythonMAJOR.xpm" then "python.xpm". * On some systems (e.g. ubuntu) python.xpm does not exist.
@@ -869,14 +869,21 @@ def getIconPaths(): # Check if Linux icon requirement is met. if getOS() == "Linux" and not result and isOnefileMode(): - default_icon = "/usr/share/pixmaps/python.xpm" - if os.path.exists(default_icon): - result.append(default_icon) + default_icons = ( + "/usr/share/pixmaps/python%s.%s.xpm" % pyt...
Scons: Call installed copy with known Python2 binary. * Otherwise in Python3 "virtualenv", the "#!/usr/bin/env python" of installed copy will use Python3 and error out.
@@ -60,7 +60,10 @@ def _getSconsBinaryCall(): scons_path = Execution.getExecutablePath("scons") if scons_path is not None: - return [scons_path] + return [ + _getPython2ExePath(), + scons_path + ] return [ _getPython2ExePath(),
Bump opam-nix To provide more workarounds required for building.
"homepage": null, "owner": "serokell", "repo": "opam-nix", - "rev": "bdd7e6730bdf0ea91ada3ebc68387424b087c9f8", - "sha256": "1wda717d6391vbgrp0vcv27pxfj4xy1511mssky8ll3iy7i851hn", + "rev": "ee285a3b6e05dc274f9ebf59ad64d8a4fded915e", + "sha256": "0f3dm834zf7y4c4pp8xr12zl0n1xk0zql3a9m2wh6a5shdcdcwj7", "type": "tarball", ...
Make convert_to_onnx runable as script again * Make convert_to_onnx runable as script again Fix `convert_graph_to_onnx.py` relative import so it can be run as a script again. * Trigger CI
@@ -273,7 +273,7 @@ def convert_pytorch(nlp: Pipeline, opset: int, output: Path, use_external_format import torch from torch.onnx import export - from .pytorch_utils import is_torch_less_than_1_11 + from transformers.pytorch_utils import is_torch_less_than_1_11 print(f"Using framework PyTorch: {torch.__version__}")
$.Introspection: introduce a supertype for field and property refs TN:
@@ -68,21 +68,37 @@ package ${ada_lib_name}.Introspection is function Derived_Types (Id : Node_Type_Id) return Node_Type_Id_Array; -- Return type references for all direct derivations for Id + <% all_abstract = ctx.sorted_parse_fields + ctx.sorted_properties %> + + type Abstract_Node_Data_Reference is + (${', '.join(f....
added call to process join and close to make sure pool is terminated. modified one call of pool in line 348 to use core_count
#!/usr/bin/env python3 # -*- coding: utf-8 -*- -import numpy as np -import pandas as pd -import pydicom as dicom -import png, os, glob -import PIL as pil -from pprint import pprint -import hashlib +import os +import glob from shutil import copyfile -import logging -from multiprocessing import Pool +import hashlib impor...
Change still unreleased. not released yet ;)
@@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * Added `compas.geometry.booleans`. ### Changed +* Fixed scaling bug in `compas.geometry.Sphere` ### Removed @@ -51,7 +52,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * Renamed ``c...
Providing additional useful messages for JSONDecodeError According to , I added additional and useful information when encountering the JSONDecodeError.
@@ -949,10 +949,17 @@ class DockerCommandRunner(CommandRunnerInterface): .strip() ) home_directory = "/root" + try: for env_var in json.loads(image_env): if env_var.startswith("HOME="): home_directory = env_var.split("HOME=")[1] break + except json.JSONDecodeError as e: + cli_logger.error( + "Unable to deserialize `ima...
Make it work with development version string of the Big Graphviz * Make it work with development version string of the Big Graphviz such as: $ dot -V dot - graphviz version 2.44.2~dev.20200927.0217 (20200927.0217) * Add development version of `dot` and its support there of.
@@ -261,6 +261,7 @@ def test_version_parsefail_mocked(mocker, Popen): # noqa: N803 @pytest.mark.parametrize('stdout, expected', [ (b'dot - graphviz version 1.2.3 (mocked)', (1, 2, 3)), (b'dot - graphviz version 2.43.20190912.0211 (20190912.0211)\n', (2, 43, 20190912, 211)), + (b'dot - graphviz version 2.44.2~dev.202009...
Fix standby detach As the check added in commit tries to open the caching devcie exclusively, it is impossible to detach cache from a standby instance.
@@ -2116,10 +2116,12 @@ int standby_handle() { return FAILURE; } + if (standby_params.subcmd != standby_opt_subcmd_detach) { if (validate_cache_path(standby_params.cache_device, standby_params.force) == FAILURE) { return FAILURE; } + } switch (standby_params.subcmd) { case standby_opt_subcmd_init:
DOC: ndarray.reshape allows shape as int arguments or tuple Adding note about difference between `numpy.reshape` and `ndarray.reshape`. See issue
@@ -4125,6 +4125,13 @@ def luf(lamdaexpr, *args, **kwargs): -------- numpy.reshape : equivalent function + Notes + ----- + Unlike the free function `numpy.reshape`, this method on `ndarray` allows + the elements of the shape parameter to be passed in as separate arguments. + For example, ``a.reshape(10, 11)`` is equiva...
Fixing minor bug in `configuration_parser` error message. One of the error messages in `configuration_parser` says "feature_subset_file" when it should say "feature_subset"
@@ -762,7 +762,7 @@ class ConfigurationParser: msg = msg.format("feature_subset_file") raise ValueError(msg) if new_config['features'] and new_config['feature_subset']: - msg = msg.format("feature_subset_file") + msg = msg.format("feature_subset") raise ValueError(msg) # 6. Check for fields that require feature_subset_...
Mention what the delimiter is Prompted by
@@ -485,6 +485,7 @@ SecDefaultAction "phase:2,log,auditlog,pass" # setvar:'tx.static_extensions=/.jpg/ /.jpeg/ /.png/ /.gif/ /.js/ /.css/ /.ico/ /.svg/ /.webp/'" # Content-Types charsets that a client is allowed to send in a request. +# The content-types are enclosed by |pipes| as delimiters to guarantee exact matches....
only uses lxml now previously has an option to use xml module - but this module actually did not work
@@ -29,28 +29,29 @@ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +Slightly modified by Colin Curtain """ import logging -try: +# note lxml is not i...
Update lombscargle.rst Small change to formatting to remove warning.
@@ -135,7 +135,7 @@ Unit(dimensionless) We see that the output is dimensionless, which is always the case for the standard normalized periodogram (for more on normalizations, see :ref:`lomb-scargle-normalization` below). If you include arguments to -autopower such as `minimum_frequency` or `maximum_frequency`, make sur...
Wrap telemetry decorator Summary: This is required for docstrings to be available on the wrapped functions. Test Plan: Unit Reviewers: catherinewu, sashank
import time import uuid import zlib +from functools import wraps from logging.handlers import RotatingFileHandler import click @@ -223,6 +224,7 @@ def telemetry_wrapper(f): ) ) + @wraps(f) def wrap(*args, **kwargs): start_time = datetime.datetime.now() log_action(action=f.__name__ + '_started', client_time=start_time)
Sync: chunk user requests The site can't handle huge syncs. Even a bulk patch of 10k users will crash the service. Chunk the requests into groups of 1000 users and await them sequentially. Testing showed that concurrent requests are not scalable and would also crash the service.
@@ -5,12 +5,15 @@ from collections import namedtuple from discord import Guild from discord.ext.commands import Context +from more_itertools import chunked import bot from bot.api import ResponseCodeError log = logging.getLogger(__name__) +CHUNK_SIZE = 1000 + # These objects are declared as namedtuples because tuples a...
Update extensions.py add mkv as format
@@ -4,7 +4,7 @@ valid_tagging_extensions = ['mp4', 'm4v'] valid_audio_codecs = ['aac', 'ac3', 'dts', 'eac3'] valid_poster_extensions = ['jpg', 'png'] valid_subtitle_extensions = ['srt', 'vtt', 'ass', 'sup'] -valid_formats = ['mp4', 'mov'] +valid_formats = ['mp4', 'mov', 'mkv'] tmdb_api_key = "45e408d2851e968e6e4d0353ce...
Fix circular import This is a temporary fix since those methods will soon be removed
@@ -31,7 +31,6 @@ from dateutil import tz from dateutil.parser import parse from pkg_resources import packaging -from pcluster.aws.aws_api import AWSApi from pcluster.aws.common import get_region from pcluster.constants import SUPPORTED_OSES_FOR_ARCHITECTURE, SUPPORTED_OSES_FOR_SCHEDULER @@ -144,6 +143,8 @@ def verify_...
add additional check for value in form props only search for last path component
@@ -370,7 +370,7 @@ def _get_export_properties(export): return properties -def find_question_id(form, value): +def find_question_id(form, value, last_path=False): if not isinstance(form, dict): # Recursive calls should always give `form` a form value. # However, https://dimagi-dev.atlassian.net/browse/SAAS-11326 @@ -38...
Update gtk.py Save file dialog should return one file not a tuple of files. This change is to keep window.create_file_dialog(webview.SAVE_DIALOG) standardized and returning a string of a single file on linux as it does in the other platoforms
@@ -327,6 +327,9 @@ class BrowserView: response = dialog.run() if response == gtk.ResponseType.OK: + if dialog_type == SAVE_DIALOG: + file_name = dialog.get_filename() + else: file_name = dialog.get_filenames() else: file_name = None
Fix exception with wrong field. Use message instead of msg_fmt in zun exception. Closes-Bug:
@@ -449,31 +449,31 @@ class CPUPinningUnknown(ZunException): class CPUUnpinningUnknown(Invalid): - msg_fmt = _("CPU set to unpin %(requested)s must be a subset of " + message = _("CPU set to unpin %(requested)s must be a subset of " "known CPU set %(cpuset)s") class CPUPinningInvalid(Invalid): - msg_fmt = _("CPU set to...
Notification improvements Reorder the eligibility test so that always_notify takes precedence over notify_ids, fallback to rarity score if iv_score is None, allow configuration of the recent_notification deque size, remove block comment around notification settings in config example, adjust some explanatory comments.
@@ -29,7 +29,8 @@ _optional = { 'FULL_TIME': 1800, 'TIME_REQUIRED': 300, 'NOTIFY_RANKING': 90, - 'ALWAYS_NOTIFY_IDS': set() + 'ALWAYS_NOTIFY_IDS': set(), + 'NOTIFICATION_CACHE': 100 } # set defaults for unset config options for setting_name, default in _optional.items(): @@ -485,7 +486,7 @@ class Notifier: def __init__...
NodeEditor : Have some content even when empty This allows keyboard shortcuts registered by extensions to work even without a node selected.
import functools +import imath + import IECore import Gaffer @@ -102,6 +104,8 @@ class NodeEditor( GafferUI.NodeSetEditor ) : node = self._lastAddedNode() if not node : + with self.__column : + GafferUI.Spacer( imath.V2i( 0 ) ) return with self.__column :
[Starboard] Change `content` to `system_content` adds support of starring system messages (join, boost)
@@ -111,13 +111,13 @@ class StarboardEvents: ) -> discord.Embed: channel = cast(discord.TextChannel, message.channel) author = message.author - if message.embeds != []: + if message.embeds: em = message.embeds[0] - if message.content != "": + if message.system_content: if em.description != discord.Embed.Empty: - em.des...
Update MouthControl.py Changed how to access the Arduino service + changed to MarySpeech
python = Runtime.createAndStart("python","Python") mouth = Runtime.createAndStart("Mouth","MouthControl") -arduino = mouth.getArduino() -arduino.connect('COM11') +arduino = mouth.arduino +arduino.connect('COM3') jaw = mouth.getJaw() jaw.detach() jaw.attach(arduino,11) mouth.setmouth(110,120) mouth.autoAttach = False -s...
Add get_stack_buffer method to state_machine is a controlled method to get stack and buffer to faccilitate compatibility with other state machines
@@ -136,6 +136,9 @@ class AMRStateMachine: print('INIT') print(self.printStackBuffer()) + def get_stack_buffer(self): + return self.buffer, self.stack + def __str__(self): """Command line styling"""
slack: Use get_timestamp_from_message helper function where relevant. get_timestamp_from_message was extracted in the previous commit. We can deduplicate and the code a bit cleaner by using it where appropriate instead of message["ts"].
@@ -794,7 +794,7 @@ def get_messages_iterator( # we sort the messages according to the timestamp to show messages with # the proper date order - yield from sorted(messages_for_one_day, key=lambda m: m["ts"]) + yield from sorted(messages_for_one_day, key=get_timestamp_from_message) def channel_message_to_zerver_message(...
Fix documentation Summary: Current documentation example doesn't compile. This fixes the doc so the example works. Pull Request resolved:
@@ -53,7 +53,7 @@ neural network on the MNIST dataset: torch::Tensor forward(torch::Tensor x) { // Use one of many tensor manipulation functions. x = torch::relu(fc1->forward(x)); - x = torch::dropout(x, /*p=*/0.5); + x = torch::dropout(x, /*p=*/0.5, /*train=*/true); x = torch::sigmoid(fc2->forward(x)); return x; }
Fix assertation Summary: Allow distance penalty to be 0, which makes parameter sweeping easier.
@@ -105,7 +105,7 @@ class Seq2SlateSimulationTrainer(Trainer): if self.parameters.simulation_distance_penalty is not None: # pyre-fixme[16]: `Optional` has no attribute `__gt__`. - assert self.parameters.simulation_distance_penalty > 0 + assert self.parameters.simulation_distance_penalty >= 0 self.permutation_distance ...
[IMPR] Remove unused private variables _get_base_dir was held for backward compatibility but it is private and can be removed _base_dir is also private and only used inside config2.py; it can be replaced by the correspninding public base_dir
@@ -376,10 +376,8 @@ def get_base_dir(test_directory=None): return base_dir -_get_base_dir = get_base_dir # for backward compatibility -_base_dir = get_base_dir() # Save base_dir for use by other modules -base_dir = _base_dir +base_dir = get_base_dir() for arg in sys.argv[1:]: if arg.startswith(str('-verbose')) or arg ...
integrations: Rename HUBOT_INTEGRATIONS_LEGACY. It is now simply called HUBOT_INTEGRATIONS. Fixes
@@ -444,28 +444,22 @@ BOT_INTEGRATIONS = [ BotIntegration('xkcd', ['bots', 'misc'], display_name='xkcd'), ] # type: List[BotIntegration] -# Note: These are not actually displayed anywhere; we're keeping them -# around so they can be migrated into the newer HUBOT_INTEGRATIONS -HUBOT_INTEGRATIONS_LEGACY = { - 'bonusly': ...
BUG: unit test bugs Bugs revealed by running unit tests: self specified twice when calling default and clean, and stop default specificaiton of `start` and `stop` in kwargs.
@@ -1631,11 +1631,11 @@ class Instrument(object): # apply default instrument routine, if data present if not self.empty: - self._default_rtn(self) + self._default_rtn() # clean data, if data is present and cleaning requested if (not self.empty) & (self.clean_level != 'none'): - self._clean_rtn(self) + self._clean_rtn()...
container.yaml schema: store top-level Go module name This will be used by image owners to declare the top-level Go package which will be built into the image from source. Also contains the initial work started in
"type": ["object", "null"], "properties": { + "go": { + "type": "object", + "properties": { + "modules": { + "type": ["array", "null"], + "items": { + "type": "object", + "properties": { + "module": { + "type": "string", + "description": "Top-level Go module (package) name which will be built" + }, + "archive": { + "ty...
updated example; g
@@ -91,10 +91,11 @@ H ul acc = PGradDescriptor( EnergyAccumulator(mol), LinearTransform(wf.parameters, freeze=freeze), - {'tbdm': [tbdm_updn,tbdm_dnup]}, #'obdm': [obdm_up, obdm_down], 'tbdm': [tbdm_updn, tbdm_dnup]}, { - #'obdm': DescriptorFromOBDM(descriptors, norm=2.0), - 'tbdm': DescriptorFromTBDM(descriptors_tbdm,...
Update PPOClipAgent to include PPO parameter compute_value_and_advantage_in_train.
@@ -86,6 +86,7 @@ class PPOClipAgent(ppo_agent.PPOAgent): log_prob_clipping=0.0, gradient_clipping=None, check_numerics=False, + compute_value_and_advantage_in_train=False, debug_summaries=False, summarize_grads_and_vars=False, train_step_counter=None, @@ -132,6 +133,11 @@ class PPOClipAgent(ppo_agent.PPOAgent): gradie...
added a few steps Added a few steps that are needed during the install on a fresh Ubuntu image
@@ -52,6 +52,10 @@ Clone Lemur inside the just created directory and give yourself write permission .. code-block:: bash + $ sudo useradd lemur + $ sudo passwd lemur + $ sudo mkdir /home/lemur + $ sudo chown lemur:lemur /home/lemur $ sudo git clone https://github.com/Netflix/lemur $ sudo chown -R lemur lemur/ @@ -59,6 ...
convert to NPZ option after a single training step this is for restoring an existing checkpoint from TF format and writing it into an NPZ. A step is required for the deferred mode network to hydrate properly in order to properly save
@@ -164,7 +164,6 @@ def train(): parser.add_argument("--weight_decay", type=float, default=1.0e-2, help="Weight decay") parser.add_argument("--epochs", type=int, default=32, help="Num training epochs") parser.add_argument("--restart", type=str2bool, help="Option allows you to restart from a previous checkpoint") - pars...
cephadm_adopt: fix rgw placement task Due to a recent breaking change in ceph, this command must be modified to add the <svc_id> parameter.
CEPHADM_IMAGE: '{{ ceph_docker_registry }}/{{ ceph_docker_image }}:{{ ceph_docker_image_tag }}' - name: update the placement of radosgw hosts - command: "{{ cephadm_cmd }} shell --fsid {{ fsid }} -- ceph --cluster {{ cluster }} orch apply rgw {{ rgw_realm | default('default') }} {{ rgw_zone | default('default') }} --pl...
adding prometheus to VITRAGE_DEFAULT_DATASOURCES in devstack Depends-On:
@@ -39,7 +39,7 @@ VITRAGE_DEPLOY=${VITRAGE_DEPLOY} # Toggle for deploying Vitrage with/without nagios VITRAGE_USE_NAGIOS=$(trueorfalse False VITRAGE_USE_NAGIOS) -VITRAGE_DEFAULT_DATASOURCES=${VITRAGE_DEFAULT_DATASOURCES:-nova.host,nova.instance,nova.zone,nagios,static,static_physical,aodh,cinder.volume,neutron.network,...
Change Hash generation for IAM resource Keeping the Hash as Upper case Change _cluster_scoped_iam_path t have consistent styling.
@@ -260,9 +260,7 @@ def add_cluster_iam_resource_prefix(stack_name, config, name: str, iam_type: str if iam_name_prefix: # Creating a Globally Unique Hash using Region, Type, Name and stack name resource_hash = ( - hashlib.sha256((name + stack_name + iam_type + config.region).encode("utf-8")) - .hexdigest()[:12] - .cap...
[Doc][Core] Fixed a bug in Ray core Pi calculation example, issue#31105 It's missing parameter for pi4_sample. The correct code should be pi4_sample.remote(sample_count = SAMPLE_COUNT)
"print(f'Doing {BATCHES} batches')\n", "results = []\n", "for _ in range(BATCHES):\n", - " results.append(pi4_sample.remote())\n", + " results.append(pi4_sample.remote(sample_count = SAMPLE_COUNT))\n", "output = ray.get(results)" ] },
Windows: Fix, always check for stdin, stdout, and stderr presence * This avoids making this specific to options, where it's unclear if these are sufficient conditions.
@@ -289,6 +289,15 @@ static void PRINT_REFCOUNTS() { } #endif +// Small helper to open files with few arguments. +static PyObject *BUILTIN_OPEN_SIMPLE(PyObject *filename, char const *mode) { +#if PYTHON_VERSION < 300 + return BUILTIN_OPEN(filename, Nuitka_String_FromString(mode), NULL); +#else + return BUILTIN_OPEN(fil...
sort magpie generated features alphabetically to avoid issues of feature order changing
@@ -212,7 +212,7 @@ class Magpie(BaseEstimator, TransformerMixin): df = clean_dataframe(df) df = df.select_dtypes(['number']).dropna(axis=1) assert self.composition_feature not in df.columns - return df + return df[sorted(df.columns.tolist())] class MaterialsProject(BaseEstimator, TransformerMixin): """
ResolvedExpression.flat_subexprs: add a "filter" argument TN:
@@ -905,9 +905,16 @@ class ResolvedExpression(object): """ return [] - def flat_subexprs(self): + def flat_subexprs( + self, filter=lambda expr: isinstance(expr, ResolvedExpression) + ): """ - Like "subexprs", but return a flat list of ResovedExpression. + Wrapper around "subexprs" to return a flat list of items matchi...
Fix the spelling mistake in host.py TrivialFix
@@ -527,7 +527,7 @@ class Host(object): :returns: a nova.virt.libvirt.Guest object :raises exception.InstanceNotFound: The domain was not found - :raises exception.InternalError: A libvirt error occured + :raises exception.InternalError: A libvirt error occurred """ return libvirt_guest.Guest(self.get_domain(instance))...
type stubs: Allows `v_args` to decorate a class. v_args is described as taking a callbable as argument: Yet the documentation states it can decorate a class:
# -*- coding: utf-8 -*- -from typing import TypeVar, Tuple, List, Callable, Generic, Type +from typing import TypeVar, Tuple, List, Callable, Generic, Type, Union from abc import ABC from .tree import Tree _T = TypeVar('_T') _R = TypeVar('_R') _FUNC = Callable[..., _T] - +_DECORED = Union[_FUNC, type] class Transformer...
Makefile improvements - only rechef headnodes/worknodes if amount is great than 1
@@ -5,6 +5,8 @@ export inventory = ansible/inventory export playbooks = ansible/playbooks export ANSIBLE_CONFIG = ansible/ansible.cfg +headnodes = $$(ansible headnodes -i ${inventory} --list | tail -n +2 | wc -l) +worknodes = $$(ansible worknodes -i ${inventory} --list | tail -n +2 | wc -l) all : \ download-assets \ @@...
Update the file name of tune-TiKV.md To fix the 404 error when switching from the Chinese to English version on PingCAP website. Besides, make the metadata and the title consistent.
--- -title: TiKV Performance Tuning +title: Tune TiKV Performance category: tuning --- -# Performance Tuning for TiKV +# Tune TiKV Performance This document describes how to tune the TiKV parameters for optimal performance.
Fix murano-api docs Session response body is in inelegant format and the explanation may cause misunderstanding.
@@ -341,7 +341,9 @@ User could not open new session for environment that in Configure environment / open session ------------------------------------ -During this call new working session is created, and session ID should be sent in a request header with name ``X-Configuration-Session``. +During this call a new working...
[JAX] Disables large k test cases in ann_test. Will investigate probability properties for the corner cases in the future.
@@ -60,12 +60,14 @@ def compute_recall(result_neighbors, ground_truth_neighbors) -> float: class AnnTest(jtu.JaxTestCase): + # TODO(b/258315194) Investigate probability property when input is around + # few thousands. @jtu.sample_product( qy_shape=[(200, 128), (128, 128)], db_shape=[(128, 500), (128, 3000)], dtype=jtu....
remove old dependencies pydantic, docutils and its stubs are no longer needed by rstcheck directly rstcheck-core took over the dependencies
@@ -48,9 +48,6 @@ sphinx-click = "^4.0.3" rstcheck-core = "^1.0.2" importlib-metadata = {version = ">=1.6, <5.0", python = "<3.8"} typing-extensions = {version = ">=3.7.4, <5.0", python = "<3.8"} -docutils = ">=0.7, <0.19" -types-docutils = ">=0.18, <0.19" -pydantic = ">=1.2, <2.0" typer = {extras = ["all"], version = ...
ocs_ci/ocs/resources/pod.py - Added function get_pod_count() to get count of any pod with label specified
@@ -684,6 +684,12 @@ def get_osd_pods(osd_label=constants.OSD_APP_LABEL, namespace=None): return osd_pods +def get_pod_count(label, namespace=None): + namespace = namespace or config.ENV_DATA['cluster_namespace'] + pods = get_pods_having_label(label=label, namespace=namespace) + return len(pods) + + def get_cephfsplugi...
Casctl: Python version check fix Fixes the python version check code in the casctl.
# Copyright(c) 2012-2021 Intel Corporation # SPDX-License-Identifier: BSD-3-Clause # - -import platform import sys -min_ver = "3.6" -ver = platform.python_version() -if ver < min_ver: - print( - "Minimum required python version is {}. Detected python version is {}".format( - min_ver, - ver, - ), - file=sys.stderr, - ) ...
include multi output example in doc block Summary: resolves Test Plan: eyes Reviewers: sandyryza, catherinewu, max
@@ -81,26 +81,31 @@ def pipeline( pipeline. When a hook is applied to a pipeline, it will be attached to all solid instances within the pipeline. - Examples: + Example: .. code-block:: python - @lambda_solid - def emit_one() -> int: - return 1 + @solid(output_defs=[OutputDefinition(int, "two"), OutputDefinition(int, "f...
try to split testsuites into two try to split tests
@@ -43,6 +43,9 @@ jobs: matrix: os: [ubuntu-20.04, windows-latest, macos-latest] pyv: ["3.8", "3.9", "3.10"] + pytest-filter: + - "import or plot or live or experiment" + - "not (import or plot or live or experiment)" include: - {os: ubuntu-latest, pyv: "3.11-dev"} @@ -75,10 +78,7 @@ jobs: AIOHTTP_NO_EXTENSIONS: ${{ ma...
CostInference for 1D conv Summary: Pull Request resolved: As title
@@ -406,12 +406,12 @@ class ConvPoolOpBase : public Operator<Context> { const auto order = StringToStorageOrder(helper.GetSingleArgument<string>("order", "NCHW")); uint64_t N; - uint64_t Y_t = 1; uint64_t Y_h; - uint64_t Y_w; - uint64_t kernel_t = 1; + uint64_t Y_w = 1; + uint64_t Y_t = 1; uint64_t kernel_h; - uint64_t...
Improve PEP8 compliance: Fix E265 error E265 - Block comment should start with '#'
# E731 - Prefer def over lambda # W503 - line break before binary operator, to be replaced with W504. # Refer to https://github.com/PyCQA/pycodestyle/issues/498 -ignore=E265,E501,E722,E731,W503 +ignore=E501,E722,E731,W503 exclude=config,galaxy/*/migrations,galaxy/*/south_migrations,galaxy/static,provisioning
Nix the welcome popup Closes
@@ -62,7 +62,6 @@ for key, tab in tabs.items(): title = _("Projects") suppress_sidebar = True -suppress_welcome = 'suppress-welcome' in request.cookie page_id = "homepage" [---] {% extends "templates/base.html" %} @@ -87,23 +86,6 @@ page_id = "homepage" {% endblock %} {% block content %} -{% if not suppress_welcome %} ...
Rename crack attributes This just renames the unbalance attributes so that we have consistent names throughout the code. This way the name is also pep8 compliant.
@@ -97,8 +97,8 @@ class Crack(Defect): self.speed = speed self.speedI = speed self.speedF = speed - self.MassUnb = unbalance_magnitude - self.PhaseUnb = unbalance_phase + self.unbalance_magnitude = unbalance_magnitude + self.unbalance_phase = unbalance_phase self.print_progress = print_progress if crack_type is None or...
Cleanup sms attachment copying use ilapfunc.sanitize_file_name() for regex replacement instead of iterative minor formatting updates
@@ -3,7 +3,7 @@ import pandas as pd import shutil from scripts.artifact_report import ArtifactHtmlReport -from scripts.ilapfuncs import logfunc, tsv, timeline, is_platform_windows, open_sqlite_db_readonly +from scripts.ilapfuncs import logfunc, tsv, timeline, is_platform_windows, open_sqlite_db_readonly, sanitize_file_...
Add Docker references in contributing, main readme Add docker hype to readme preheader, "dev env" section of contributing.
@@ -60,6 +60,9 @@ We welcome direct contributions to the sendgrid-python code base. Thank you! ### Development Environment ### +#### Using Docker #### +You can use our Docker image to avoid setting up the development environment yourself. See [USAGE.md](https://github.com/sendgrid/sendgrid-python/docker/USAGE.md). + ##...
Skip define 'extern "C"' test on Windows I was struggling to get the macro passed on the command-line while being escaped properly
@@ -25,19 +25,20 @@ bar = Extension( ["bar.pyx", "bar1.c", "bar2.cpp"], ) -if sys.platform == "win32": - # escape the quotes on the command line - extern_c_definition = r'extern \"C\"' -else: - extern_c_definition = 'extern "C"' baz = Extension( "baz", ["baz.pyx", "baz1.c", "baz2.cpp"], - define_macros = [("__PYX_EXTER...
Update telegram added download link for installation
@@ -6,6 +6,9 @@ Integrating Hummingbot with [Telegram Messenger](https://telegram.org/) allows y Whether you are running Hummingbot in the cloud or on your local machine, you can use Telegram to monitor and control bots from wherever you are! +!!! note + Make sure to install Telegram on your system before setting up yo...
Docs: switch from outdated "pngmath" sphinx package to "imgmath", and use "svg" as output format. See
@@ -41,7 +41,7 @@ highlight_language = 'cython' extensions = [ 'ipython_console_highlighting', 'cython_highlighting', - 'sphinx.ext.pngmath', + 'sphinx.ext.imgmath', 'sphinx.ext.todo', 'sphinx.ext.intersphinx', 'sphinx.ext.autodoc' @@ -132,6 +132,9 @@ intersphinx_mapping = {'python': ('https://docs.python.org/3/', None...
Return wrong_preds correctly for eval_model() eval_examples can be 1) a list of InputExamples, 2) a tuple of two or three lists, with the first one or two columns as the text columns.
@@ -1862,7 +1862,12 @@ class ClassificationModel: mismatched = labels != preds if eval_examples: + if instanceof(eval_examples, list): wrong = [i for (i, v) in zip(eval_examples, mismatched) if v.any()] + elif len(eval_examples) == 2: + wrong = [i for (i, v) in zip(eval_examples[0], mismatched) if v.any()] + else: + wr...
Adding a link to MO dashboard in graphana to MO card HG-- branch : card-graphana-link
<th scope="row">{{ _("Description") }}</th> <td>{% if description %}{{ description }}{% endif %}</td> </tr> +<tr> + <th scope="row">{{ _("Dashboard") }}</th> + <td><a href="/ui/grafana/dashboard/script/noc.js?dashboard=mo&id={{ object.id }}">View metrics</a></td> +</tr> <tr> <th scope="row">{{ _("Service Range") }}</th...
docs: add --export option to the osbuild man page This is used to export an image but isn't present in the osbuild man page.
@@ -45,6 +45,7 @@ is not listed here, **osbuild** will deny startup and exit with an error. the osbuild library --checkpoint=CHECKPOINT stage to commit to the object store during build (can be passed multiple times) +--export=OBJECT object to export (can be passed multiple times) --json output results in JSON format --...
Fixed build file for service_only bootstrap The build.py file expects the window arg to be set, however, when building with a service_only bootstrap, this variable is not set. This results in an error when building the private.mp3 resource.
@@ -299,6 +299,7 @@ main.py that loads it.''') # Add extra environment variable file into tar-able directory: env_vars_tarpath = tempfile.mkdtemp(prefix="p4a-extra-env-") with open(os.path.join(env_vars_tarpath, "p4a_env_vars.txt"), "w") as f: + if hasattr(args, "window"): f.write("P4A_IS_WINDOWED=" + str(args.window) ...
Avoid force calculation error when printing Now if compute_forces is set to False, will allow __str__ method to print without error from trying to calculate self.forces.
@@ -364,11 +364,19 @@ class EwaldSummation(object): return self._eta def __str__(self): + if self._compute_forces: + output = ["Real = " + str(self.real_space_energy), + "Reciprocal = " + str(self.reciprocal_space_energy), + "Point = " + str(self.point_energy), + "Total = " + str(self.total_energy), + "Forces:\n" + str...
io: StringIO seems happy enough to take None Didn't check C code, but the _pyio implementation explicitly checks for None
@@ -203,7 +203,7 @@ class TextIOWrapper(TextIO): def tell(self) -> int: ... class StringIO(TextIOWrapper): - def __init__(self, initial_value: str = ..., + def __init__(self, initial_value: Optional[str] = ..., newline: Optional[str] = ...) -> None: ... # StringIO does not contain a "name" field. This workaround is nec...
Update CVE-2019-15858.yaml version number on the description was ok :)
@@ -8,7 +8,7 @@ info: This template supports the detection part only. See references. admin/includes/class.import.snippet.php in the "Woody ad snippets" plugin - before 2.2.4 for WordPress allows unauthenticated options import, + before 2.2.5 for WordPress allows unauthenticated options import, as demonstrated by stori...
Fix testcase uploads for OSS-Fuzz. Previously platform IDs were being incorrectly set to `project-linux` when then should just be e.g. `linux`. This only affects OSS-Fuzz. This was reported in
@@ -1272,6 +1272,10 @@ def create_user_uploaded_testcase(key, utils.current_date_time(), uploader_email) # External jobs never get minimized. testcase.minimized_keys = 'NA' + + # analyze_task sets this for non-external reproductions. + testcase.platform = job.platform.lower() + testcase.platform_id = testcase.platform ...
[tasks] Add Loop.restart This implementation waits until the task is done before starting it again. Closes
@@ -128,9 +128,36 @@ class Loop: self._task = self.loop.create_task(self._loop(*args, **kwargs)) return self._task + def _can_be_cancelled(self): + return not self._is_being_cancelled and self._task and not self._task.done() + def cancel(self): """Cancels the internal task, if it is running.""" - if not self._is_being_...
Show password box as soon as any validation fails. Autofocus password box if simpleLogin is active.
<transition name="textbox"> <core-textbox :label="$tr('password')" - v-if="(!simpleLogin || (simpleLogin && passwordMissing))" + v-if="(!simpleLogin || (simpleLogin && (passwordMissing || invalidCredentials)))" id="password" type="password" :placeholder="$tr('enterPassword')" :aria-label="$tr('password')" v-model="pass...
Sync worker requirement mismatches Summary: Syncing worker requirement mismatches to improve remote build time. Created actions: MEDIUM: 981 LARGE: 56 Updated actions: From MEDIUM to LARGE: 10 From LARGE to MEDIUM: 3 From LARGE to XLARGE: 1
"ATen-cu#platform007-clang,shared": { "workerSize": "MEDIUM", "platformType": "LINUX" + }, + "ATen-cpu#compile-pic-THTensorMoreMath.cpp.oc1c23613,platform007-clang": { + "workerSize": "MEDIUM", + "platformType": "LINUX" } } \ No newline at end of file
Bump links for Effective Python to 2nd edition Updated and expanded book for Python 3. Has 30 new major guidelines added compared to the 1st edition.
-description: A book that gives 59 best practices for writing excellent Python. Great +description: A book that gives 90 best practices for writing excellent Python. Great for intermediates. name: Effective Python payment: paid @@ -8,7 +8,7 @@ urls: url: https://effectivepython.com/ - icon: branding/amazon title: Amazo...
Remove duplicate entry in test Vagrantfile remove some leftover since code has been refactored
@@ -72,12 +72,6 @@ ansible_provision = proc do |ansible| # In a production deployment, these should be secret if DOCKER then ansible.extra_vars = ansible.extra_vars.merge({ - containerized_deployment: 'true', - containerized_deployment: 'true', - containerized_deployment: 'true', - containerized_deployment: 'true', - c...
group builds by executor matrix looks good but results in slower overall build
@@ -136,21 +136,17 @@ jobs: test: executor: <<parameters.executor_name>> - environment: - COVERAGE_FILE: "coverage-results/.coverage.<<parameters.executor_name>>-<<parameters.event_loop>>" - HYPOTHESIS_PROFILE: "ci" - TOXENV: "<<parameters.executor_name>>-<<parameters.event_loop>>" parameters: executor_name: type: stri...