message
stringlengths
13
484
diff
stringlengths
38
4.63k
Add helpful error message when a program is terminated by a (POSIX) signal, such as a segfault Fixes
@@ -5,6 +5,7 @@ import logging import os import re import shutil +import signal import stat import subprocess # nosec import sys @@ -354,6 +355,16 @@ class JobBase(HasReqsHints, metaclass=ABCMeta): else: processStatus = "permanentFail" + if processStatus != "success": + if rcode < 0: + _logger.warning( + "[job %s] was ...
fix tox python3 overrides It is necessary to add python3 as the base python for the genpolicy test.
@@ -132,6 +132,7 @@ description = Generates sample configuration file for monasca-api commands = oslo-config-generator --config-file=config-generator/api-config.conf [testenv:genpolicy] +basepython = python3 description = Generates sample policy.json file for monasca-api commands = oslopolicy-sample-generator --config-...
dm/tools: update some sentences found inaccurate or unclear tools/dm: update some sentences found inaccurate or unclear
@@ -56,7 +56,7 @@ For the binlog during incremental data import, DM uses the downstream database t - When DM-worker is restarted before or after synchronizing sharding DDL statements, it checks the checkpoint information and you can use the `start-task` command to recover the data synchronization task automatically. - ...
Allow connecting to the Name-node via https This fixes a `ConnectionError: ('Connection aborted.', BadStatusLine('\x15\x03\x03\x00\x02\x02P'))` when the Name-node only uses HTTPS.
@@ -43,6 +43,7 @@ class WebHDFS(AbstractFileSystem): proxy_to=None, kerb_kwargs=None, data_proxy=None, + use_https=False, **kwargs ): """ @@ -74,12 +75,16 @@ class WebHDFS(AbstractFileSystem): maps host names `host->data_proxy[host]`; if a callable, full URLs are passed, and function must conform to `url->data_proxy(ur...
walreceiver: finish WAL segments on timeout If we received no new replication message for a long time, and some messages are still pending, flush a WAL segment.
@@ -210,6 +210,10 @@ class WALReceiver(PGHoardThread): with suppress(InterruptedError): if not any(select.select([self.c], [], [], max(0.0, timeout))): self.c.send_feedback() # timing out, send keepalive + # Don't leave unfinished segments waiting for more than the KEEPALIVE_INTERVAL + if self.buffer.tell() > 0: + self...
Config spark_cluster_mode default value Changed the default
@@ -35,7 +35,7 @@ Follow the instructions below to configure this check for an Agent running on a # spark_url: http://<Mesos_master>:5050 # Mesos master web UI # spark_url: http://<YARN_ResourceManager_address>:8088 # YARN ResourceManager address - spark_cluster_mode: spark_standalone_mode # default + spark_cluster_mod...
Generalise sequence parsing Now the resource does not have to be named `"sequences"` but any resource whose path(s) live under `"data/sequences/"` is parsed as a sequence.
@@ -13,6 +13,7 @@ from functools import partial import collections.abc as cabc import logging import os +import re import pandas as pd import dill as pickle @@ -159,15 +160,25 @@ class EnergySystem: listify = lambda x: x if type(x) is list else repeat(x) resource = lambda r: package.get_resource(r) or empty - data['seq...
igw: Add check for missing iqn If the user is still using the older packages and does not setup the target iqn you will just get a vague error message later on. This adds a check during the validate task, so it is clear to the user.
- not containerized_deployment | bool - not use_new_ceph_iscsi | bool +- name: make sure gateway_iqn is configured + fail: + msg: "you must set a iqn for the iSCSI target" + when: + - "gateway_iqn | default('') | length == 0" + - not containerized_deployment | bool + - not use_new_ceph_iscsi | bool + - name: fail if un...
set pgdb for telegraf HG-- branch : feature/microservices
## connection with the server and doesn't restrict the databases we are trying ## to grab metrics for. ## - address = "host={{ ansible_host }} user={{noc_pg_user}} password={{noc_pg_password}} sslmode=disable" - - ## A list of databases to pull metrics about. If not specified, metrics for all - ## databases are gathere...
[Logs] Remove source from user settings as we now automatically detect the source
@@ -61,10 +61,6 @@ def lambda_handler(event, context): aws_meta["function_version"] = context.function_version aws_meta["invoked_function_arn"] = context.invoked_function_arn aws_meta["memory_limit_in_mb"] = context.memory_limit_in_mb - try: - metadata["ddsource"] = os.environ['Source'] - except Exception: - pass try:
PGPKey.pubkey() should return self if it is already a public key This makes it easier to use PGPy to work with OpenPGP certificates where we don't have the secret part corresponding to some of the public keys (e.g. stripped subkeys, subkeys on smartcards, etc). Closes
@@ -1334,9 +1334,10 @@ class PGPKey(Armorable, ParentRef, PGPObject): @property def pubkey(self): """If the :py:obj:`PGPKey` object is a private key, this method returns a corresponding public key object with - all the trimmings. Otherwise, returns ``None`` + all the trimmings. If it is already a public key, just retur...
Fixed tmp_dir bug in kgx.py Now calling report method to print cardinality of edges and nodes
@@ -73,13 +73,15 @@ def _dump(input, output, input_type, output_type): for i in input: t.parse(i) + t.report() + output_transformer = _transformers.get(output_type) if output_transformer is None: raise Exception('Output does not have a recognized type: ' + _file_types) kwargs = { - 'app_dir' : click.get_app_dir(kgx.__n...
Fix hot_spec.rst in Template Guide Add missing space and words in doc/source/template_guide/hot_spec.rst
@@ -296,10 +296,10 @@ for the ``heat_template_version`` key: up until the Pike release. This version adds the ``make_url`` function for assembling URLs, the ``list_concat`` function for combining multiple lists, the ``list_concat_unique`` function for combining multiple - lists without repeating items, the``string_repl...
Check ZooKeeper status using curl `lsof` is not available on all systems. Use commands that are installed by DC/OS.
@@ -37,4 +37,4 @@ ExecStartPre=$PKG_PATH/bin/set_exhibitor_file_permissions.py # Start Exhibitor ExecStart=$PKG_PATH/usr/exhibitor/start_exhibitor.py # Wait for ZooKeeper to start listening -ExecStartPost=-/usr/bin/timeout 20 /bin/sh -c 'until lsof -i :2181; do sleep 1; done' +ExecStartPost=-/usr/bin/timeout 60 /bin/sh...
Update version of package to 3.10.3 cr
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF # ANY KIND, either express or implied. See the License for the specific # language governing permissions and limitations under the License. -__version__ = '3.10.2' +__version__ = '3.10.3'
Raising ValueError instead of using assert when checking inputs to Particles class. Check that either all particles have parents or none do and return ValueError otherwise.
@@ -46,17 +46,20 @@ class Particles(Type): def __init__(self, state_vector=None, weight=None, parent=None, particle_list=None, *args, **kwargs): - if state_vector is not None: - assert particle_list is None,\ - "Particles object cannot use both state_vector and particle_list" + if (particle_list is not None) and (state...
project: do not update local published/ refs in dryrun mode Tested-by: Mike Frysinger
@@ -1026,6 +1026,7 @@ class Project(object): if GitCommand(self, cmd, bare=True).Wait() != 0: raise UploadError('Upload failed') + if not dryrun: msg = "posted to %s for %s" % (branch.remote.review, dest_branch) self.bare_git.UpdateRef(R_PUB + branch.name, R_HEADS + branch.name,
display file data for a single selected case clear files associated with a case when multiple cases are are selected
@@ -142,16 +142,23 @@ class DialogCases(QtWidgets.QDialog): def count_selected_items(self): """ Update label with the count of selected rows. - Also clear the textedit if multiple rows are selected. """ + Also clear the textedit if multiple rows are selected. + :return + item_count """ indexes = self.ui.tableWidget.sel...
fix exception pickling see
@@ -39,7 +39,6 @@ class MaestralApiError(Exception): def __init__(self, title, message, dbx_path=None, dbx_path_dst=None, local_path=None, local_path_dst=None): - super().__init__(title) self.title = title self.message = message self.dbx_path = dbx_path
issue have Side._on_fork() empty _fork_refs This is mostly to avoid ugly debugging that depends on the state of GC. Discard sides from _fork_refs after they have been closed.
@@ -1415,7 +1415,9 @@ class Side(object): @classmethod def _on_fork(cls): - for side in list(cls._fork_refs.values()): + while cls._fork_refs: + _, side = cls._fork_refs.popitem() + _vv and IOLOG.debug('Side._on_fork() closing %r', side) side.close() def close(self):
1. Clarified that data documentation is configurable and the user has the control. 2. Documented the run_id_filter and the stores confiuration
@@ -52,7 +52,10 @@ Users can specify * where the HTML files should be written (filesystem or S3) * which renderer and view class should be used to render each section -Here is an example of a site configuration: +Data Documentation Site Configuration +************************************* + +Here is an example of a sit...
Update configuration.rst Change "you" to "your" in line 11.
@@ -8,7 +8,7 @@ settings module to customize its behavior. The debug toolbar ships with a default configuration that is considered sane for the vast majority of Django projects. Don't copy-paste blindly - the default values shown below into you settings module! It's useless and + the default values shown below into you...
Add command to resend infraction embed Resolve
@@ -11,6 +11,7 @@ from discord.utils import escape_markdown from bot import constants from bot.bot import Bot from bot.converters import Expiry, Infraction, Snowflake, UserMention, allowed_strings, proxy_user +from bot.exts.moderation.infraction import _utils from bot.exts.moderation.infraction.infractions import Infra...
Rav4 TSS2 has two different steering racks Split tuning on eps fwVersion \x02 only. See for findings. Unify Rav4 & Rav4 Hybrid Average mass between ICE & Hybrid
@@ -168,36 +168,22 @@ class CarInterface(CarInterfaceBase): ret.lateralTuning.pid.kpV, ret.lateralTuning.pid.kiV = [[0.17], [0.03]] ret.lateralTuning.pid.kf = 0.00006 - elif candidate == CAR.RAV4_TSS2: + elif candidate in [CAR.RAV4_TSS2, CAR.RAV4H_TSS2]: stop_and_go = True ret.safetyParam = 73 ret.wheelbase = 2.68986 r...
Dockerfile: Update with support for additional instruments Ensure support is present in the Docker image for instruemnts that require trace-cmd, monsoon or iio-capture.
@@ -46,8 +46,38 @@ ARG DEVLIB_REF=v1.2 ARG WA_REF=v3.2 ARG ANDROID_SDK_URL=https://dl.google.com/android/repository/sdk-tools-linux-3859397.zip -RUN apt-get update -RUN apt-get install -y python3 python3-pip git wget zip openjdk-8-jre-headless vim emacs nano curl sshpass ssh usbutils locales +RUN apt-get update && apt-...
Kill some unnecessary function declarations. Summary: Pull Request resolved: Test Plan: Imported from OSS
TH_CPP_API void THTensor_(setStorage)(THTensor *self, THStorage *storage_, ptrdiff_t storageOffset_, at::IntArrayRef size_, at::IntArrayRef stride_); -/* strides.data() might be NULL */ -TH_CPP_API THTensor *THTensor_(newWithStorage)(THStorage *storage, ptrdiff_t storageOffset, - at::IntArrayRef sizes, at::IntArrayRef ...
Update polytracker/tracing.py Add comments
@@ -1128,6 +1128,9 @@ class ProgramTrace(ABC): taints.add(self.file_offset(node)) else: parent1, parent2 = node.parent_one, node.parent_two + // a node will always have either zero or two parents. + // labels that are reused will reuse their associated nodes. + // all other nodes are unions. assert parent1 is not None ...
Add Hostname HG-- branch : AddHostname
##---------------------------------------------------------------------- ## Failed Scripts Report ##---------------------------------------------------------------------- -## Copyright (C) 2007-2012 The NOC Project +## Copyright (C) 2007-2017 The NOC Project ## See LICENSE for details ##--------------------------------...
Add missing tests to test_trusts.py Add: *test_delete_trust() *test_delete_trust_from_cluster()
@@ -98,3 +98,41 @@ class TestTrusts(base.SaharaTestCase): cluster_update.assert_called_with(ctx, fake_cluster, {"trust_id": "trust_id"}) + + @mock.patch('sahara.utils.openstack.keystone.client_from_auth') + @mock.patch('sahara.utils.openstack.keystone.auth_for_admin') + @mock.patch('sahara.service.trusts.create_trust')...
Add drop_collection to tear_down for User and Role This solves the CI error about duplicate keys.
@@ -221,6 +221,8 @@ def mongoengine_setup(request, app, tmpdir, realdburl): def tear_down(): with app.app_context(): + User.drop_collection() + Role.drop_collection() db.connection.drop_database(db_name) request.addfinalizer(tear_down)
Correct argument order in OriginValidator Order was reversed from spec.
@@ -16,7 +16,7 @@ class OriginValidator: self.application = application self.allowed_origins = allowed_origins - async def __call__(self, scope, send, receive): + async def __call__(self, scope, receive, send): # Make sure the scope is of type websocket if scope["type"] != "websocket": raise ValueError( @@ -34,11 +34,1...
Disambiguate codepoint value. The usage of 127462 as a unicode start point isn't super clear for other devs coming across the code in future, so assigning it to a nicely named variable with an accompanying inline comment should help make things clearer.
@@ -271,7 +271,8 @@ class Utils(Cog): if len(options) > 20: raise BadArgument("I can only handle 20 options!") - options = {chr(i): f"{chr(i)} - {v}" for i, v in enumerate(options, start=127462)} + codepoint_start = 127462 # represents "regional_indicator_a" unicode value + options = {chr(i): f"{chr(i)} - {v}" for i, v...
The format for providing host can be confusing at times Some provide it as some provide it as 127.0.0.1:5000 which are wrong. Hence the example in the span tag
<label for="hatch_rate">Hatch rate <span style="color:#8a8a8a;">(users spawned/second)</span></label> <input type="text" name="hatch_rate" id="hatch_rate" class="val" value="{{ hatch_rate or "" }}"/><br> <label for="host"> - Host + Host <span style="color:#8a8a8a;">(eg: http://127.0.0.1:8080)</span> {% if override_host...
Py3 fixes for layer_model_helper.py Summary: Fixes `__getattr__` to adhere to its Python API contract, and wraps `range()` call in a list since it does not return one anymore in Python 3. Pull Request resolved:
@@ -529,7 +529,7 @@ class LayerModelHelper(model_helper.ModelHelper): return self.add_layer(new_layer) return wrapper else: - raise ValueError( + raise AttributeError( "Trying to create non-registered layer: {}".format(layer)) @property @@ -651,5 +651,5 @@ class LayerModelHelper(model_helper.ModelHelper): # and change ...
Then: enhance error message for invalid input type TN:
@@ -483,7 +483,8 @@ class Then(AbstractExpression): # * any pointer, since it can be checked against "null"; # * any StructType, since structs are nullable. expr = construct(self.expr, - lambda cls: cls.is_ptr or cls.is_struct_type) + lambda cls: cls.is_ptr or cls.is_struct_type, + 'Invalid prefix type for .then: {expr...
Fix potential flakiness By making the process collection more thread-safe.
from __future__ import absolute_import +import copy from collections import namedtuple import multiprocessing import time @@ -118,7 +119,7 @@ def _start_polling(self): def _poll(self): with self._processes_lock: - processes = self._processes + processes = copy.copy(self._processes) self._processes = [] for process in p...
add '--logfile' option to 'aea' This allows for saving the logs of the execution of any 'aea' command to a specific file. The logs will still be printed to stdout.
import os import shutil +from logging import FileHandler from pathlib import Path from typing import cast @@ -48,9 +49,13 @@ DEFAULT_SKILL = "error" @click.version_option('0.1.0') @click.pass_context @click_log.simple_verbosity_option(logger, default="INFO") -def cli(ctx) -> None: +@click.option('-l', '--logfile', 'log...
Update jira.rst Adding a new method to get all the users who have browse permission to a project
@@ -147,6 +147,10 @@ Manage projects # Use 'expand' to get details (default is None) possible values are notificationSchemeEvents,user,group,projectRole,field,all jira.get_priority_scheme_of_project(project_key_or_id, expand=None) + # Returns a list of active users who have browse permission for a project that matches ...
Fix NodeUI documentation:url metadata. The file structure of the docs was re-organized a while back, but we forgot to update these links.
@@ -44,7 +44,7 @@ import GafferUI def __documentationURL( node ) : - fileName = "$GAFFER_ROOT/doc/gaffer/html/NodeReference/" + node.typeName().replace( "::", "/" ) + ".html" + fileName = "$GAFFER_ROOT/doc/gaffer/html/Reference/NodeReference/" + node.typeName().replace( "::", "/" ) + ".html" fileName = os.path.expandva...
UI: improved disengage on gas toggle description * Update settings.cc Should be depressed as standard in automotive industry. Pressed implies state change from down -> up, depressed means the state is down * Update selfdrive/ui/qt/offroad/settings.cc
@@ -68,7 +68,7 @@ TogglesPanel::TogglesPanel(SettingsWindow *parent) : ListWidget(parent) { { "DisengageOnAccelerator", "Disengage On Accelerator Pedal", - "When enabled, openpilot will disengage when the accelerator pedal is pressed.", + "When enabled, pressing the accelerator pedal will disengage openpilot.", "../ass...
Replace python validation_rule_enforcer with Rust The validation_rule_enforcer is used when every batch is added to a candidate block. This incurs a cost of transforming an increasing set of batches from rust to python with every batch added. By using the rust implementation, this transformation cost can be avoided.
@@ -27,6 +27,7 @@ use batch::Batch; use transaction::Transaction; use journal::chain_commit_state::TransactionCommitCache; +use journal::validation_rule_enforcer; use pylogger; @@ -172,7 +173,12 @@ impl CandidateBlock { let gil = cpython::Python::acquire_gil(); let py = gil.python(); self.block_store - .call_method(py,...
Setup RBAC for hostpath This fixes
@@ -16,6 +16,7 @@ spec: labels: k8s-app: hostpath-provisioner spec: + serviceAccountName: microk8s-hostpath containers: - name: hostpath-provisioner image: cdkbot/hostpath-provisioner-$ARCH:latest @@ -43,3 +44,57 @@ metadata: annotations: storageclass.kubernetes.io/is-default-class: "true" provisioner: microk8s.io/host...
Update quickstart.md [Minor fix] the section is on the left not the right.
@@ -76,7 +76,7 @@ for score, i, j in all_sentence_combinations[0:5]: print("{} \t {} \t {:.4f}".format(sentences[i], sentences[j], cos_sim[i][j])) ``` -See on the right the *Usage* sections for more examples how to use SentenceTransformers. +See on the left the *Usage* sections for more examples how to use SentenceTran...
Code modification Modified with scipy beta function
@@ -2,7 +2,7 @@ import numpy as np from scipy.special import betaln, betainc from scipy.special import logsumexp from matplotlib import pyplot as plt - +from scipy.stats import beta def normalizeLogspace(x): L = logsumexp(x, 0) @@ -12,26 +12,16 @@ def normalizeLogspace(x): def evalpdf(thetas, postZ, alphaPost): p = np....
move header writing from write_log() to new _write_header() update Log.__init__()
@@ -131,21 +131,11 @@ def read_log(filename): return log, info def write_log(output, log, info): - _fmt = lambda x: '%s' % x if x is not None else '' - - output('# started: %s' % time.asctime()) - output('# groups: %d' % len(info)) - for ii, (xlabel, ylabel, yscale, names, plot_kwargs) \ - in six.iteritems(info): - out...
Fix the parallel optimization iterator Previously the iterator would be empty if n_trials was set to None. Thanks to for the code
@@ -280,8 +280,17 @@ class Study(BaseStudy): gc_after_trial, None) else: time_start = datetime.datetime.now() + + if n_trials is not None: + _iter = range(n_trials) + elif timeout is not None: + is_timeout = lambda: (datetime.datetime.now() - time_start).total_seconds() > timeout + _iter = iter(is_timeout, True) + else...
reset timeout_seconds to 420 to align with private repo
@@ -87,8 +87,8 @@ nested_input_definitions = { "timeout_seconds": { "type": "int", "min": 1, - "max": 9999, - "default": 600, + "max": 420, + "default": 420, "description": "The number of seconds allowed before the optimization times out" }, "user_uuid": {
Add comment explaining buildx to workflow It's better to document these steps.
@@ -25,6 +25,12 @@ jobs: - name: Checkout code uses: actions/checkout@v2 + # The current version (v2) of Docker's build-push action uses + # buildx, which comes with BuildKit features that help us speed + # up our builds using additional cache features. Buildx also + # has a lot of other features that are not as releva...
Update .travis.yml Moved pyglow install attempt
@@ -29,17 +29,17 @@ before_install: # Replace dep1 dep2 ... with your dependencies - conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION atlas numpy scipy matplotlib nose pandas statsmodels coverage netCDF4 - + # install pyglow, space science models + - git clone https://github.com/timduly4/pyglow.git + -...
fix hub doc format Summary: Pull Request resolved:
@@ -52,6 +52,7 @@ You can see the full script in handles ``pretrained``, alternatively you can put the following logic in the entrypoint definition. :: + if pretrained: # For checkpoint saved in local repo model.load_state_dict(<path_to_saved_checkpoint>)
Update search when contributors are added/removed. Update search when affiliated insts are added/removed. Remove properties and M2M fields from SEARCH_UPDATE_FIELDS.
@@ -221,18 +221,13 @@ class AbstractNode(DirtyFieldsMixin, TypedModel, AddonModelMixin, IdentifierMixi 'title', 'category', 'description', - 'visible_contributor_ids', - 'tags', 'is_fork', - 'is_registration', 'retraction', 'embargo', 'is_public', 'is_deleted', 'wiki_pages_current', - 'is_retracted', 'node_license', - ...
Update merge_arrays.py This fixes an issue of wrong memlet volumes after MergeArrays has been applied. To see the bug in action launch for instance jacobi2d in the polybench samples and look at the wrong volume of the memlet adjacent to the very first map entry.
@@ -112,8 +112,10 @@ class InMergeArrays(pattern_matching.Transformation): map.remove_out_connector('OUT_' + c) # Re-propagate memlets + edge_to_propagate = next(e for e in graph.out_edges(map) + if e.src_conn[4:] == result_connector) map_edge._data = propagate_memlet(dfg_state=graph, - memlet=map_edge.data, + memlet=e...
test_do_send_realm_reactivation_email: Deactivate the realm first. This doesn't make sense if the realm is active and will fail as soon as do_reactivate_realm is fixed in the next commit to be a noop and not create confused RealmAuditLog entries when the realm is active.
@@ -399,6 +399,8 @@ class RealmTest(ZulipTestCase): def test_do_send_realm_reactivation_email(self) -> None: realm = get_realm("zulip") + do_deactivate_realm(realm, acting_user=None) + self.assertEqual(realm.deactivated, True) iago = self.example_user("iago") do_send_realm_reactivation_email(realm, acting_user=iago) fr...
Log to stdout when PCLUSTER_LOG_TO_STDOUT env is set Facilitates development and debugging For example you can do: `PCLUSTER_LOG_TO_STDOUT=1 pcluster list-clusters`
import logging.config import os +import sys from pcluster.utils import get_cli_log_file @@ -40,11 +41,20 @@ def config_logger(): "maxBytes": 5 * 1024 * 1024, "backupCount": 3, }, + "console": { + "level": "DEBUG", + "formatter": "standard", + "class": "logging.StreamHandler", + "stream": sys.stdout, + }, }, "loggers": ...
Explicitly wrap embedding theta in tf.identity when tf.gather is used to prevent TPU issues.
@@ -2243,7 +2243,15 @@ class SimpleEmbeddingLayer(quant_utils.QuantizableLayer): pruning_utils.AddToPruningCollections(self.vars.wm, self.vars.mask, self.vars.threshold) else: - self.CreateVariable('wm', pc) + # If tf.gather is used, the gradient for the wm will be represented as + # IndexedSlices which is sparse. tf.t...
Adds commented-out example of how to use GateSetFunction class in reportables.py This example shows a more advanced usage of the class, in particular how the evaluate_nearby method might be used for finite-difference computation speedup in the future.
@@ -111,6 +111,32 @@ Rel_gatestring_eigenvalues = _gsf.gatesetfn_factory(rel_gatestring_eigenvalues) # init args == (gatesetA, gatesetB, gatestring) +#Example alternate implementation that utilizes evaluate_nearby... +#class Gatestring_gaugeinv_diamondnorm(_gsf.GateSetFunction): +# def __init__(self, gatesetA, gatesetB...
Update evolution.py removing extra copy and putting it on
@@ -311,7 +311,7 @@ def evolve(v0,t0,times,f,solver_name="dop853",real=False,stack_state=False,verbo v0 = v0.astype(_np.complex128,copy=False).view(_np.float64) except ValueError: # copy initial state v0 to make it contiguous - v0 = v0.astype(_np.complex128,copy=False).copy().view(_np.float64) + v0 = v0.astype(_np.comp...
BUG: Fix reference count error of types when init multiarraymodule PyDict_SetItemString has internally increased object reference. We don't need to INCREF before adding to module dict anymore.
@@ -4666,23 +4666,15 @@ PyMODINIT_FUNC initmultiarray(void) { ADDCONST(MAY_SHARE_EXACT); #undef ADDCONST - Py_INCREF(&PyArray_Type); PyDict_SetItemString(d, "ndarray", (PyObject *)&PyArray_Type); - Py_INCREF(&PyArrayIter_Type); PyDict_SetItemString(d, "flatiter", (PyObject *)&PyArrayIter_Type); - Py_INCREF(&PyArrayMult...
fixed bug in post chunk caused by last checkin" "
@@ -468,11 +468,6 @@ async def POST_Chunk(request): log.error(msg) raise HTTPBadRequest(reason=msg) - # get chunk from cache/s3. If not found init a new chunk if this is a write request - chunk_arr = await getChunk(app, chunk_id, dset_json, chunk_init=put_points) - - if put_points: - # writing point data # create a num...
Remove duplicate function left over from merge forward Also adds the distutils import for lint
from __future__ import absolute_import import copy import contextlib +import distutils import errno import fnmatch import glob @@ -16,7 +17,6 @@ import shutil import stat import subprocess import time -import warnings from datetime import datetime # Import salt libs @@ -109,48 +109,6 @@ PYGIT2_MINVER = '0.20.3' LIBGIT2...
AutoresponderEmailMixin: improvements to the autoresponder mechanism 1. Mixin settings don't clash with EmailSendMixin 2. Higher customization 3. Supports TXT and HTML emails only
@@ -266,36 +266,77 @@ class PrepopulationSupportMixin: class AutoresponderMixin: - """Automatically emails the sender.""" + """Automatically emails the form sender.""" @property - def email_subject(self): + def autoresponder_subject(self): + """Autoresponder email subject.""" raise NotImplementedError @property - def e...
Update NNL documentation Changed Bayesian dropout to MC dropout, and added a note at MC dropout.
@@ -4334,7 +4334,7 @@ Stochasticity: Note: Usually dropout only applied during training as below - (except `Bayesian dropout`_). + (except `MC dropout`_). If you want to use dropout as an MC dropout, remove 'if train:'. .. code-block:: python @@ -4342,7 +4342,7 @@ Stochasticity: if train: h = F.dropout(h, 0.5) - .. _Ba...
Update quickstart.rst Add the alternative option to download and execute the bootstrap salt minion script in just one line.
@@ -33,6 +33,13 @@ for any OS with a Bourne shell: curl -L https://bootstrap.saltstack.com | sudo sh - +.. note:: + + Alternatively, to download the bash script and run it immediately, use: + + .. code-block:: bash + + curl -L https://bootstrap.saltproject.io | sudo sh -s -- See the `salt-bootstrap`_ documentation for ...
Correct FPB revision checks FPB revision was being stored in `fp_rev` but often tested from `fpb_rev`. Combine these two variables. Spotted while browsing code - by inspection, this appears to have made `FPB::can_support_address` pessimistic.
@@ -62,9 +62,9 @@ class FPB(BreakpointProvider, CoreSightComponent): def init(self): # setup FPB (breakpoint) fpcr = self.ap.read32(FPB.FP_CTRL) - self.fp_rev = 1 + ((fpcr & FPB.FP_CTRL_REV_MASK) >> FPB.FP_CTRL_REV_SHIFT) - if self.fp_rev not in (1, 2): - logging.warning("Unknown FPB version %d", self.fp_rev) + self.fp...
message-feed: Remove visually unappealing top border. This removes an unecessary and unappealing top border to the message headers while keeping all else the same.
@@ -716,7 +716,6 @@ td.pointer { .message_list .recipient_row { background: hsl(0, 0%, 94%); border-bottom: 1px solid hsl(0, 0%, 88%); - border-top: 1px solid hsl(0, 0%, 88%); margin-bottom: 10px; } @@ -726,7 +725,7 @@ td.pointer { .stream_label { display: inline-block; - padding: 3px 7px 2px 6px; + padding: 4px 7px 3p...
fix false negative isuniform of transposed const The `isuniform` test currently responds with a false negative when the argument contains a `Transpose`. This commit adds support for `Transpose` by peeling of `Tranpose` instances of the argument in addition to `InsertAxis`, before testing whether the argument is the des...
@@ -2923,7 +2923,7 @@ def zeros_like(arr): return zeros(arr.shape, arr.dtype) def isuniform(arg, value): - while isinstance(arg, InsertAxis): + while isinstance(arg, (InsertAxis, Transpose)): arg = arg.func if isinstance(arg, Constant) and arg.ndim == 0: return arg.value[()] == value
Update version-archive.rst Fixed URL that had commas instead of periods
@@ -4,7 +4,7 @@ Version Archive Mattermost Enterprise Edition ------------------------------ -Mattermost Enterprise Edition v4.4.0 - `View Changelog <https://docs.mattermost.com/administration/changelog.html#release-v4-4-0>`_ - `Download <https://releases.mattermost.com/4.4,0/mattermost-4.4,0-linux-amd64.tar.gz>`_ +Mat...
btcpayserver: fix deletion of self-signed cert on first install fixes:
@@ -16,10 +16,10 @@ if [ ${#BTCPayServer} -eq 0 ]; then echo "BTCPayServer=off" >> /mnt/hdd/raspiblitz.conf fi -# stop service +# stop services echo "making sure services are not running" +sudo systemctl stop nbxplorer 2>/dev/null sudo systemctl stop btcpayserver 2>/dev/null -sudo systemctl disable btcpayserver 2>/dev/...
Update Texas.md Added an incident in Dallas on the Margaret Hunt Hill Bridge on June 2nd.
@@ -128,6 +128,14 @@ The video shows a certain individual trying to escape, what seems to be loud exp * https://twitter.com/xtranai/status/1266898175568338945 +### Police maneuver protestors onto bridge and fire tear gas and rubber bullets | June 2nd + +On June 2nd, protestors are routed onto Margaret Hunt Hill Bridge....
Enforcing the version of python that is required. this avoids build issues and debugging
+#!/bin/bash + +PYTHON_VERSION=`python --version` + +if [ "$PYTHON_VERSION" == "Python 3.5.2" ]; then + echo Found correct python version +else + echo Incorrect version of python in path: $PYTHON_VERSION + exit 1 +fi + + IGNORE_MISSING_OPENMP=1 cxml="/usr/local/bin/castxml" if [ -f "$cxml" ]; then
Fix collectd image build During collectd image build, the following issue occurs. package glibc-devel-2.28-196.el8.x86_64 requires glibc = 2.28-196.el8, but none of the providers can be installed. This patch fixes the issue.
FROM quay.io/centos/centos:stream8 RUN dnf clean all && \ - dnf group install -y "Development Tools" && \ + dnf group install -y "Development Tools" --nobest && \ dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm && \ dnf install -y centos-release-opstools && \ dnf install -y collect...
Capitalize first letter of a string confirm string is passed as commandline argument Trim the trailing newline convert to vector Change the 1'st letter to capital case convert to string for printing / {} will print string without double quotes
-// Accept a string from User and Capitalize the first letter of that string +// Accept a string in command line from User and Capitalize the first letter of that string // Rust is built to support not just ASCII, but Unicode by-default. // Do note, each character in string is multi-byte UTF-8 supported, which needs up...
working on fixes Weiqi suggested also started working on issue where viz resets custom values when the page changes also started working on enhancement where mouseover on a bubble gives you the entire word along with the count (for smaller bubbles that only display one letter of the word)
$(function () { + /** + * updateMaxWordsOpt + */ function updateMaxWordsOpt() { if ($('#vizmaxwords').is(':checked')) { console.log('hi') @@ -124,7 +127,7 @@ $(window).on('load', function () { tooltip.transition() .duration(200) .style('opacity', 1) - tooltip.html('<div class="tooltip-arrow"></div><div class="tooltip-i...
Get slave_pos to choose latest replica Latest replica have slave_pos biggest, so we just need use slave_pos to compare replicas.
@@ -57,10 +57,14 @@ class MariaDBApp(mysql_service.BaseMySqlApp): with mysql_util.SqlClient(self.get_engine()) as client: return client.execute('SELECT @@global.gtid_binlog_pos').first()[0] + def _get_gtid_slave_executed(self): + with mysql_util.SqlClient(self.get_engine()) as client: + return client.execute('SELECT @@...
Added clarification in eigen docstring. It was not clear only from 'low' or 'high' what the order of the eigenvalues was going to be.
@@ -280,8 +280,9 @@ eigs.__doc__ =\ Whether the eigenvectors should be returned as well. sort : {'low', 'high'}, optional Sort the output of the eigenvalues and -vectors ordered by the relevant - size of the real part of the eigenvalue. If not all of the eigenvalues - are requested, this influences which eigenvalues wi...
ceph-validate : Added functions to accept true and flase ceph-validate used to throw error for setting flags as 'true' or 'false' for True and False Now user can set the flags 'dmcrypt' and 'osd_auto_discovery' as 'true' or 'false' Will fix - Bug
@@ -155,6 +155,14 @@ def validate_monitor_options(value): assert any([monitor_address_given, monitor_address_block_given, monitor_interface_given]), msg +def validate_dmcrypt_bool_value(value): + assert value in ["true", True, "false", False], "dmcrypt can be set to true/True or false/False (default)" + + +def validate...
Fixed collect parameters now copies the array if the parameter returs such value
@@ -94,7 +94,10 @@ class CollectParameters: self._p = list() def __call__(self, **kwargs): - self._p.append(self._parameter.get_value(*self._idx)) + value = self._parameter.get_value(*self._idx) + if isinstance(value, np.ndarray): + value = np.array(value) + self._p.append(value) def get_values(self): return self._p
Update injectable_antibiotics.json unsure where it goes in new measure def structure. to do: we need to exclude `bnf_code NOT LIKE "0501070I0%" why it matters is [here on this google doc](https://docs.google.com/document/d/1DNJoMsNfCv4CIHR3Xo7p9AtQjnwknskPY1_glpqUsXg/edit)
{ - "name": "Injectable antibiotics", + "name": "Antibiotic stewardship:Injectable preparations for the treatment of infection", "title": [ - "Injectable antibiotics" + "Antibiotic stewardship:Injectable preparations for the treatment of infection" ], "description": [ - "TODO" + "Number of prescription items for all in...
Fix HP.1910.get_chassis_id script HG-- branch : feature/microservices
# --------------------------------------------------------------------- # HP.1910.get_chassis_id # --------------------------------------------------------------------- -# Copyright (C) 2007-2013 The NOC Project +# Copyright (C) 2007-2017 The NOC Project # See LICENSE for details # -------------------------------------...
fixed typpo in sensor_fusion_2d equation h/t JChunX
@@ -2,7 +2,11 @@ import numpy as np from scipy.linalg import block_diag from scipy.stats import norm import matplotlib.pyplot as plt -from pyprobml_utils import save_fig +import os +#from pyprobml_utils import save_fig + +figdir = "../figures"; +def save_fig(fname): plt.savefig(os.path.join(figdir, fname)) def gauss_pl...
Make ErrorReturnCode "RAN:" copy-pastable. Using shlex.quote. Before: sh.ErrorReturnCode_1: RAN: /usr/bin/sh -c echo -rf build && ls / && exit 1 After: sh.ErrorReturnCode_1: RAN: /usr/bin/sh -c 'echo -rf build && ls / && exit 1'
@@ -87,6 +87,11 @@ else: from io import BytesIO as iocStringIO from Queue import Queue, Empty +try: + from shlex import quote as shlex_quote # here from 3.3 onward +except ImportError: + from pipes import quote as shlex_quote # undocumented before 2.7 + IS_OSX = platform.system() == "Darwin" THIS_DIR = os.path.dirname(...
feat(db): add new-site flag to use tcp/ip instead of unix socket ref frappe/bench#949
@@ -17,34 +17,43 @@ from six import text_type @click.option('--db-port', type=int, help='Database Port') @click.option('--mariadb-root-username', default='root', help='Root username for MariaDB') @click.option('--mariadb-root-password', help='Root password for MariaDB') +@click.option('--no-mariadb-socket', is_flag=Tru...
Change default emoji reaction styling. This changes the styling to be slightly more compact, have more bottom padding between the edge of the message wall, and have more consistency.
.message_reactions .reaction_button { border-radius: 0.5em; display: none; - margin: 0.2em; - padding: 0.2em; + margin: 1px 0.1em; + padding: 2.5px; padding-left: 0.3em; padding-right: 0.3em; float: left; .reaction_button .message_reaction_count { font-size: 1.1em; color: #555; + margin-left: 3px; +} + +.reaction_butto...
Add pypi deploy key for travis This is a test, might not work
@@ -28,3 +28,12 @@ script: after_success: - codecov + +deploy: + provider: pypi + user: "kyle_johnson" + password: "" + secure: "qBNTRm7RgcXFIqNIN2pEN2bm6mhuNJC9vXyZOKUpWdjPrcKoAYSCoCKMa/YuhKowMW9NHHjakbU7T3sJJb15GsAE0JkrQ7dfk5baqA9E9Wgsis++/qJ0LxgRvZAypNxHsl+Ofx9RDJnTi7LGFkVU4QqmYyYDuC7x1NE4jU+4h3M=" + on: + branch: m...
Make sure from-filenames intersect with names-file When both names-file an from-names are defined we want to make sure the tests that from-filenames returns intersect with the test in the names file.
@@ -193,7 +193,7 @@ class SaltTestingParser(optparse.OptionParser): '--name', dest='name', action='append', - default=None, + default=[], help=('Specific test name to run. A named test is the module path ' 'relative to the tests directory') ) @@ -449,26 +449,22 @@ class SaltTestingParser(optparse.OptionParser): def par...
Skip ngram parser on MariaDB Not supported yet:
@@ -100,7 +100,53 @@ class Migration(migrations.Migration): field=models.TextField(default=''), preserve_default=False, ), - # We need to add these indexes manually because Django imposes an artificial limitation that forces to specify the max length of the TextFields that get referenced by the FULLTEXT index. If we do...
Update navbar from ROSS website Tutorial tab had a missing link (error 404 page not found). This should lead it to the correct path.
@@ -133,7 +133,7 @@ html_theme_options = { # Note the "1" or "True" value above as the third argument to indicate # an arbitrary url. "navbar_links": [ - ("Tutorial", "examples/tutorial"), + ("Tutorial", "tutorials"), ("Examples", "examples"), ("API", "api"), ],
feature(radare2): add r2pipe command to execute stateful radare2 cmds This can be a useful command to quickly execute some radare2 operations in various positions in mid of a debugging session without the need to shell out and temporarily transfer process control to radare2.
import argparse import subprocess +import pwndbg.color.message as message import pwndbg.commands +import pwndbg.radare2 parser = argparse.ArgumentParser(description='Launches radare2', epilog="Example: r2 -- -S -AA") @@ -41,3 +43,21 @@ def r2(arguments, no_seek=False, no_rebase=False): subprocess.call(cmd) except Excep...
Update tests/sources/tools/perception/object_detection_2d/detr/test_detr.py Add log with test name
@@ -47,6 +47,8 @@ def rmdir(_dir): class TestDetrLearner(unittest.TestCase): @classmethod def setUpClass(cls): + print("\n\n**********************************\nTEST Object Detection DETR Learner\n" + "**********************************") cls.temp_dir = os.path.join("tests", "sources", "tools", "perception", "object_det...
Remove sprint channels from the configuration. Now that the core dev sprint has ended, we can safely remove those. It caused the wrong channel message to be huge because of all the deleted channels.
@@ -126,23 +126,6 @@ class Channels(NamedTuple): hacktoberfest_2020 = 760857070781071431 voice_chat = 412357430186344448 - # Core Dev Sprint channels - sprint_announcements = 755958119963557958 - sprint_information = 753338352136224798 - sprint_organisers = 753340132639375420 - sprint_general = 753340631538991305 - spr...
update to r1.12.0 removed comments
@@ -14,11 +14,11 @@ class TensorFlowBaseTest(rfm.RunOnlyRegressionTest): self.tags = {'production'} self.num_tasks = 1 self.num_gpus_per_node = 1 - self.modules = ['TensorFlow/1.7.0-CrayGNU-18.08-cuda-9.1-python3'] + self.modules = ['TensorFlow/1.12.0-CrayGNU-19.03-cuda-10.0-python3'] # Checkout to the branch correspon...
workloads/dhrystone: Fix taskset Was invoking busybox in a hardcoded way, and was not using self.target.busybox. Updated to use the correct version.
@@ -82,7 +82,8 @@ class Dhrystone(Workload): else: execution_mode = '-r {}'.format(self.duration) if self.taskset_mask: - taskset_string = 'busybox taskset 0x{:x} '.format(self.taskset_mask) + taskset_string = '{} taskset 0x{:x} '.format(self.target.busybox, + self.taskset_mask) else: taskset_string = '' self.command =...
Bugfix: png rendering Following crystal frame merge, missed that set_reciprocal_crystal_vectors undefined for png output class - added stub
@@ -89,6 +89,10 @@ def set_reciprocal_lattice_vectors(self, *args, **kwargs): # we do not draw reciprocal lattice vectors at this time pass + def set_reciprocal_crystal_vectors(self, *args, **kwargs): + # we do not draw reciprocal crystak vectors at this time either + pass + def project_2d(self, n): d = self.points.dot...
Comment out broken assertion. Part of
@@ -42,7 +42,12 @@ def datetime_naive_local_to_naive_utc(d): dateutil.tz.tzutc()).replace(tzinfo = None) def datetime_utc_to_naive_local(d): - assert d.tzinfo == dateutil.tz.tzutc() + # We would have liked to assert that: + # assert d.tzinfo == dateutil.tz.tzutc() + # but a bug in dateutil makes it actually use tzlocal...
tests: fix flaky systest Avoid sharing dataset ids between separate test cases.
@@ -422,7 +422,7 @@ class TestBigQuery(unittest.TestCase): self.assertEqual(table.clustering_fields, ["user_email", "store_code"]) def test_delete_dataset_with_string(self): - dataset_id = _make_dataset_id("delete_table_true") + dataset_id = _make_dataset_id("delete_table_true_with_string") project = Config.CLIENT.proj...
Fixes duplicate gauge optimzation (bug) in do_long_sequence_gst. This bug was created recently, when moving to Results objects which contain Estimates.
@@ -531,8 +531,9 @@ def do_long_sequence_gst_base(dataFilenameOrSet, targetGateFilenameOrSet, tNxt = _time.time() profiler.add_time('do_long_sequence_gst: gauge optimization',tRef); tRef=tNxt + #Perform extra analysis if a bad fit was obtained badFitThreshold = advancedOptions.get('badFitThreshold',20) - if ret.estimat...
Yield control to other greenthreads while processing trusted ports process_trusted_ports() appeared to be greenthread unfriendly, so if there are many trusted ports on a node, openvswitch agent may "hang" for a significant time. This patch adds explicit yield. Closes-Bug:
@@ -17,6 +17,7 @@ import collections import contextlib import copy +import eventlet import netaddr from neutron_lib.callbacks import events as callbacks_events from neutron_lib.callbacks import registry as callbacks_registry @@ -665,6 +666,8 @@ class OVSFirewallDriver(firewall.FirewallDriver): """Pass packets from thes...
Add uncovered test cases We want to know that the overlay is added regardless of which page number you are requesting when a pdf contains pages that go beyond the print area
@@ -1143,11 +1143,13 @@ def test_preview_letter_template_precompiled_s3_error( @pytest.mark.parametrize( - "filetype, post_url, message", + "filetype, post_url, message, requested_page", [ - ('png', 'precompiled-preview.png', ""), - ('png', 'precompiled/overlay.png?page_number=1', "content-outside-printable-area"), - (...
Update index.rst missing .. raw:: html so product flow diagram renders in rst compilation
@@ -71,6 +71,8 @@ Recipes encode the directions for how to sparsify a model into a simple, easily **Full Deep Sparse product flow:** +.. raw:: html + <img src="https://docs.neuralmagic.com/docs/source/sparsification/flow-overview.svg" width="960px"> Resources and Learning More
Code simplification. Thanks for the suggestion
@@ -71,12 +71,8 @@ def request_from_dict(d, spider=None): def _find_method(obj, func): - if obj: - try: - func.__func__ - except AttributeError: # func is not a instance method. Not supported. - pass - else: + # Only instance methods contain ``__func__`` + if obj and hasattr(func, '__func__'): members = inspect.getmemb...