message
stringlengths
13
484
diff
stringlengths
38
4.63k
Set high watermark explicitly Problem: 'tezos-client setup ledger to baker' doesn't update high watermark by default and thus bakes and endorsments can be missed in case we switch from network with higher number of blocks to the network with lower number of blocks. Solution: Provide current level as high watermark expi...
@@ -13,6 +13,7 @@ import os, sys, subprocess, shlex import readline import re, textwrap import urllib.request +import json from typing import List @@ -497,6 +498,12 @@ class Setup: + self.config["node_rpc_addr"] ) + def get_current_head_level(self): + response = urllib.request.urlopen( + self.config["node_rpc_addr"] + ...
Update version 0.9.0 -> 0.9.1 Changes * Removed deprecated kwarg in `SpinReversalTransformComposite` Fixes * `RoofDualityComposite`, `ConnectedComponentComposite` and `FixedVariableComposite` now all work with the new BQM types New Features * A sample method testing framework for Samplers * Significant documentation up...
# # ================================================================================================ -__version__ = '0.9.0' +__version__ = '0.9.1' __author__ = 'D-Wave Systems Inc.' __authoremail__ = 'acondello@dwavesys.com' __description__ = 'A shared API for binary quadratic model samplers.'
SetAlgo: fix bug in error reporting logic std::string( len, character ) doesn't work for negative `len`
@@ -426,7 +426,15 @@ void expressionToAST( const std::string &setExpression, ExpressionAst &ast) { int offset = iter - setExpression.begin(); std::string errorIndication( offset, ' ' ); - errorIndication += '|' + std::string(setExpression.end() - iter - 2, '-') + '|'; + int indicationSize = setExpression.end() - iter; ...
Update nodejs install version for Ubuntu. The 5.x releases give a warning about being deprecated and no longer getting security fixes. Current master works fine with 6.x, which is still maintained.
@@ -61,7 +61,7 @@ Any issues? Please let us know on our forums at: https://forum.mattermost.org/ 4. Set GOROOT (optional) in your `~/.bash_profile` - `export GOROOT=/usr/local/go/` 6. Install Node.js - - `curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -` + - `curl -sL https://deb.nodesource.com/setup_6.x ...
css: Replace unnecessary figure element with div. The figure element here was used for a text bubble rather than a graphics (i.e. "figure"), hence a div element is more appropriate. This change doesn't effect the visual styling as verfied by comparing the rendered result visually, and comparing the applied styles in th...
</li> <li><div class="list-content">Share papers, presentations or images with <a href="/help/share-and-upload-files">drag-and-drop file uploads</a>.</div></li> </ul> - <figure class="quote"> + <div class="quote"> <blockquote> For more than a year, Zulip has been the cornerstone of our online Category Theory community....
Update ursnif.txt Minus dups.
@@ -5473,6 +5473,49 @@ feel500.at kwjqbk2fw9p8q5y.com xumti39cg1kuf9t2y.com +# Reference: https://raw.githubusercontent.com/pan-unit42/iocs/master/Valak/2020-03-23-to-2020-07-07-TA551-traffic-pattern-history-since-Valak.txt + +00otg18ixk6o8kows.com +2zvdoq8grm7vwed20-zz.com +adersr4utx.com +amc4we.com +c1vfsbk.com +d6r...
Update flow_setup.rst * Update flow_setup.rst Fix for the download of rllab-multiagent; it's off the master branch, not cistar_release. * Update flow_setup.rst * Update flow_setup.rst * Update flow_setup.rst * Update flow_setup.rst Removed comments to team
Setup Instructions ***************************** -To get flow\_dev running, you need three things: flow\_dev (or +To get flow running, you need three things: flow (or flow), SUMO, and rllab. Once each component is installed successfully, you might get some missing module bugs from python. Just install the missing modul...
Fix bugs with --notify omission Two minor bugs with `--notify`: When not passed, was producing "None", rather than "{}" `--notify ""` should be the same as `--notify "off"`, so the None checking logic has to be explicit, not truthiness check
@@ -332,8 +332,10 @@ def task_submission_options(f): In code, produces True, False, or a set """ - if not value: - return None + # if no value was set, don't set any explicit options + # the API default is "everything on" + if value is None: + return {} value = value.lower() value = [x.strip() for x in value.split(',')...
[Chore] Don't sign commits in bottles sync script Problem: Public github actions runners don't have access to our signing key and thus it's impossible to sign commits in it. Solution: Don't sign commits in this script, signing will be performed separately.
-#! /usr/bin/env nix-shell -#! nix-shell shell.nix -i bash +#! /usr/bin/env bash # SPDX-FileCopyrightText: 2021 TQ Tezos <https://tqtezos.com/> # # SPDX-License-Identifier: LicenseRef-MIT-TQ @@ -32,7 +31,7 @@ while : ; do git fetch --all git reset --hard origin/"$branch_name" ./scripts/bottle-hashes.sh . - git commit -...
dispatch app : Adjust to new design of DispatchDialogue Note that currently the app only supports a single dispatcher, even in gui mode.
@@ -161,24 +161,11 @@ class dispatch( Gaffer.Application ) : nodes.append( node ) dispatcherType = args["dispatcher"].value or GafferDispatch.Dispatcher.getDefaultDispatcherType() - - if args["gui"].value : - - import GafferUI - import GafferDispatchUI - - self.__dialogue = GafferDispatchUI.DispatchDialogue( script, no...
Fixed rect select on delete. The selection will be gone on a delete. It will correct the bounds.
@@ -1078,6 +1078,7 @@ class Elemental(Module): self.device.signal('element_removed', elem) self._elements[i] = None self.remove_elements_from_operations(elements_list) + self.validate_bounds() def remove_operations(self, operations_list): for op in operations_list:
update happy_num Another way to do this and code is also less
+#Way2 1: + #isHappyNumber() will determine whether a number is happy or not def isHappyNumber(num): rem = sum = 0; @@ -17,7 +19,27 @@ while(result != 1 and result != 4): #Happy number always ends with 1 if(result == 1): - print(str(num) + " is a happy number"); + print(str(num) + " is a happy number after apply way 1"...
Added initial live pts check. Added a "while True" loop to make sure there is at least one not -inf initial live pt.
@@ -403,6 +403,7 @@ def NestedSampler(loglikelihood, prior_transform, ndim, nlive=500, kwargs['compute_jac'] = compute_jac # Initialize live points and calculate log-likelihoods. + while True: if live_points is None: live_u = rstate.rand(nlive, npdim) # positions in unit cube if use_pool.get('prior_transform', True): @...
Handle GzipPacked lost requests & possibly fix reading normal Reading normal "lost" requests didn't .seek(-4) to read the TLObject again. Now it has been slightly refactored to seek back always and only seek forward when needed (e.g. rpc error).
@@ -476,11 +476,13 @@ class MtProtoSender: reader.read_int(signed=False) # code request_id = reader.read_long() inner_code = reader.read_int(signed=False) + reader.seek(-4) __log__.debug('Received response for request with ID %d', request_id) request = self._pop_request(request_id) if inner_code == 0x2144ca19: # RPC Er...
Add networking-baremetal repo overrides This patch adds networking-baremetal to the openstack services to be tracked for installation.
@@ -197,6 +197,10 @@ networking_nsxlib_git_repo: https://opendev.org/x/vmware-nsxlib networking_nsxlib_git_install_branch: 3548bcfd87fbf6efba4c930daa410cccc5b8203a networking_nsxlib_git_track_branch: master +networking_baremetal_git_repo: https://opendev.org/openstack/networking-baremetal +networking_baremetal_git_inst...
Use a more accurate type for predicates in itertools The only constraint on the return value of a predicate is to be "boolable". Because `bool` recives an object in the constructor this is a more accurate description of a predicate.
@@ -8,6 +8,7 @@ from typing import (Iterator, TypeVar, Iterable, overload, Any, Callable, Tuple, _T = TypeVar('_T') _S = TypeVar('_S') _N = TypeVar('_N', int, float) +Predicate = Callable[[_T], object] def count(start: _N = ..., step: _N = ...) -> Iterator[_N]: ... # more general types? @@ -28,9 +29,9 @@ class chain(It...
In installation doc, pip install --upgrade tensorflow-hub. Users looking here don't want to stay stuck on random old stuff.
@@ -9,12 +9,13 @@ right away, and current users upgrade to it. Use [pip](https://pip.pypa.io/) to [install TensorFlow 2](https://www.tensorflow.org/install) as usual. (See there for extra instructions about GPU support.) -Then install [`tensorflow-hub`](https://pypi.org/project/tensorflow-hub/) -next to it. +Then insta...
Update ooni data bucket information For more recent data we are publishing it to a new bucket in a European region. I have updated also other metadata with the most up to date links. Thanks!
-Name: Open Observatory of Network Interference +Name: Open Observatory of Network Interference (OONI) Description: A free software, global observation network for detecting censorship, surveillance and traffic manipulation on the internet. -Documentation: https://ooni.torproject.org/about/ -Contact: https://ooni.torpr...
issue with __search_attribute_update_variables please take a look at
@@ -436,6 +436,7 @@ class OpcUaConnector(Thread, Connector): self.__search_node(node, attribute_path, result=attribute_nodes) for attribute_node in attribute_nodes: if attribute_node is not None: + if self.get_node_path(attribute_node) == attribute_path: self.__available_object_resources[device_name]["variables"].appen...
Change pexpect hackery to use a custom class So the original pexpect is unperturbed
# Python 2/3 compatibility Python3 = sys.version_info[0] == 3 -BaseString = str if Python3 else basestring +BaseString = str if Python3 else str.__base__ Encoding = 'utf-8' if Python3 else None def decode( s ): "Decode a byte string if needed for Python 3" @@ -24,19 +24,22 @@ def decode( s ): def encode( s ): "Encode a...
Changed WikipediaCog-> Wikipedia Change this becuase this causing issue in help command
@@ -15,7 +15,7 @@ SEARCH_API = "https://en.wikipedia.org/w/api.php?action=query&list=search&srsear WIKIPEDIA_URL = "https://en.wikipedia.org/wiki/{title}" -class WikipediaCog(commands.Cog): +class Wikipedia(commands.Cog): """Get info from wikipedia.""" def __init__(self, bot: commands.Bot): @@ -111,4 +111,4 @@ class Wi...
Changing the description of paramter nnz This is in accordance will pull request
@@ -54,7 +54,7 @@ class bsr_matrix(_cs_matrix, _minmax_mixin): ndim : int Number of dimensions (this is always 2) nnz - Number of nonzero elements + Number of stored values, including explicit zeros data Data array of the matrix indices
Added information on configuring the location of the cord directory as required by the installer creator.
@@ -123,6 +123,8 @@ Also please copy the ansible configuration to `~/.ansible.cfg`: cp ~/cord/incubator/voltha/install/ansible/ansible.cfg ~/.ansible.cfg ``` +Also please change the value of the `cord_home` variable in the `install/ansible/group_vars/all` to refer to the location of your cord directory. This is usually...
Add Morocco power origin ratios Needed for Spanish imports By the way, I used the percentages from the Our World in Data percentage view and the numbers add up to 1.0002 (rounding error I guess), is this a problem?
"wind": 0.051255527209169635 } }, + "MA": { + "_source": "https://ourworldindata.org/grapher/electricity-prod-source-stacked?time=earliest..latest&country=~MAR", + "powerOriginRatios": { + "coal": 0.4157, + "gas": 0.2443, + "hydro": 0.0379, + "oil": 0.114, + "solar": 0.0474, + "wind": 0.1409 + } + }, "MD": { "_source":...
Fix typo on tpu.rst * Fix typo on tpu.rst There're 3 ways :) * Update docs/source/tpu.rst
@@ -27,9 +27,9 @@ some subset of those 2048 cores. How to access TPUs ------------------ -To access TPUs there are two main ways. +To access TPUs, there are three main ways. -1. Using google colab. +1. Using Google Colab. 2. Using Google Cloud (GCP). 3. Using Kaggle.
BUG: Add HOME to the git environment. git config files can contain ~ expansions that require $HOME to be defined. Some installations of git have these in the global defaults now.
@@ -73,7 +73,7 @@ def git_version(): def _minimal_ext_cmd(cmd): # construct minimal environment env = {} - for k in ['SYSTEMROOT', 'PATH']: + for k in ['SYSTEMROOT', 'PATH', 'HOME']: v = os.environ.get(k) if v is not None: env[k] = v
Add .signer_fingerprint property to PGPSignature. - This returns the issuer fingerprint if the IssuerFingerprint subpacket is present, otherwise empty string.
@@ -261,6 +261,15 @@ class PGPSignature(Armorable, ParentRef, PGPObject): """ return self._signature.signer + @property + def signer_fingerprint(self): + """ + The fingerprint of the key that generated this signature, if it contained. Otherwise, an empty ``str``. + """ + if 'IssuerFingerprint' in self._signature.subpac...
BUG: Handle comparison against None for ``is_missing``. Older versions of Numpy return False when comparing arrays with None. We want a vectorized compare.
@@ -349,6 +349,11 @@ def is_missing(data, missing_value): return isnan(data) elif is_datetime(data) and isnat(missing_value): return isnat(data) + elif is_object(data) and missing_value is None: + # XXX: Older versions of numpy returns True/False for array == + # None. Work around this by boxing None in a 1x1 array, wh...
Remove useless setting of toggle link text This was immediately overwritten by the call to `setOutlierLinkText` below.
@@ -366,14 +366,10 @@ var analyseChart = { if (_this.globalOptions.hasOutliers) { if (_this.globalOptions.hideOutliers) { _this.globalOptions.hideOutliers = false; - $(_this.el.outliersToggle).find('a').text( - 'Remove them from the chart'); Cookies.set('hide_small_lists', '0'); } else { // set a cookie _this.globalOpt...
GHCI: Don't use `--always-make` to regenerate test data `make test-data` always regenerates test data, without the need to pass the `--always-make` option to make.
@@ -94,7 +94,7 @@ jobs: uses: osbuild/containers/ghci/actions/ghci-osbuild@ghci/v1 with: run: | - make --always-make test-data + make test-data git diff --exit-code -- ./test/data codespell:
Update az keyvault secret set command description Highlight the CREATE functionality of the SET command when a secret does not exist in the vault.
@@ -159,6 +159,11 @@ type: group short-summary: Manage secrets. """ +helps['keyvault secret set'] = """ +type: command +short-summary: Create a secret (if one doesn't exist) or update a secret in a KeyVault. +""" + helps['keyvault show'] = """ type: command short-summary: Show details of a key vault.
Update with Niantic Warning Warn user if recieve warning from Niantic
@@ -213,6 +213,8 @@ class PokemonGoBot(object): self.event_manager.register_event('login_failed') self.event_manager.register_event('login_successful') + self.event_manager.register_event('niantic_warning') + self.event_manager.register_event('set_start_location') self.event_manager.register_event('load_cached_location...
Check qartod_variable references and validate the URL QARTOD variables should have valid a valid URL as the reference.
@@ -8,7 +8,7 @@ from lxml.etree import XPath from compliance_checker.acdd import ACDD1_3Check from compliance_checker.cfutil import get_geophysical_variables, get_instrument_variables from compliance_checker.cf.cf import CF1_6Check, CF1_7Check -from rfc3986 import is_valid_uri +from rfc3986 import api, exceptions, vali...
Adds the fixtures file to the list of things that require a full test Problem: Incremental testing needs the fixtures file added to it Analysis: This adds that file Tests:
@@ -58,7 +58,7 @@ def examine_non_python_rules(line): def determine_files_to_test(product, commit): results = [] build_all = [ - 'setup.py', 'contexts.py', 'mixins.py', 'resource.py' + 'setup.py', 'contexts.py', 'mixins.py', 'resource.py', 'f5sdk_plugins/fixtures.py' ] output_file = "pytest.{0}.jenkins.txt".format(prod...
Update README.md change [DuinoCoibyLabVIEW] to [DuinoCoinbyLabVIEW]
@@ -95,7 +95,7 @@ After doing this, you are good to go with launching the software (just double cl </summary> ### Other miners known to work with Duino-Coin: - * [DuinoCoibyLabVIEW](https://github.com/ericddm/DuinoCoinbyLabVIEW) - miner for LabVIEW family by ericddm + * [DuinoCoinbyLabVIEW](https://github.com/ericddm/D...
Docs: no-relative-path rule doc edits * no-relative-path rule doc edits * chore: auto fixes from pre-commit.com hooks for more information, see
@@ -5,21 +5,20 @@ This rule checks for relative paths in the `ansible.builtin.copy` and `ansible.b Relative paths in a task most often direct Ansible to remote files and directories on managed nodes. In the `ansible.builtin.copy` and `ansible.builtin.template` modules, the `src` argument refers to local files and direc...
Fix Eltex.MES __init__ HG-- branch : feature/dcs
## Vendor: Eltex ## OS: MES ##---------------------------------------------------------------------- -## Copyright (C) 2007-2011 The NOC Project +## Copyright (C) 2007-2017 The NOC Project ## See LICENSE for details ##---------------------------------------------------------------------- @@ -16,16 +16,17 @@ class Profi...
CompileCtx.check_env_metadata: remove redundant check TN:
@@ -712,7 +712,7 @@ class CompileCtx(object): :param StructType cls: Environment metadata struct type. """ - from langkit.compiled_types import BoolType, UserField, resolve_type + from langkit.compiled_types import BoolType, resolve_type with cls.diagnostic_context(): check_source_language( @@ -723,11 +723,6 @@ class C...
tests: update tests for mds to cover multimds case in case of multimds we must check for the number of mds up instead of just checking if the hostname of the node is in the fsmap.
@@ -34,8 +34,7 @@ class TestMDSs(object): hostname=node["vars"]["inventory_hostname"], cluster=node["cluster_name"] ) + num_mdss = len(host.ansible.get_variables()["groups"]["mdss"]) output_raw = host.check_output(cmd) output_json = json.loads(output_raw) - active_daemon = output_json["fsmap"]["by_rank"][0]["name"] - i...
[BitBucket] Fix get_project_tags. If tag_name is given a single tag is returned, else a generator for the tags (paged API)
@@ -1200,7 +1200,7 @@ class Bitbucket(BitbucketBase): params["orderBy"] = order_by return self._get_paged(url, params=params) - def get_project_tags(self, project_key, repository_slug, tag_name): + def get_project_tags(self, project_key, repository_slug, tag_name=None): """ Retrieve a tag in the specified repository. T...
Fix uncommon column case issue for fbprophet 'date' was sometimes 'Date'
@@ -95,6 +95,7 @@ def fbprophet(l_args, s_ticker, df_stock): df_stock = df_stock.sort_index(ascending=True) df_stock.reset_index(level=0, inplace=True) + df_stock.columns = map(str.lower, df_stock.columns) # column names are sometimes upper cased df_stock = df_stock[["date", "5. adjusted close"]] df_stock = df_stock.re...
Update list_settings.js Don't limit list view to 4
@@ -78,7 +78,7 @@ export default class ListSettings { if (field_count < 4) { field_count = 4; } else if (field_count > 10) { - field_count = 4; + field_count = 10; } me.dialog.set_value("total_fields", field_count);
Update staging_settings.py rm CELERY_WORKER_CONCURRENCY and CELERY_WORKER_MAX_TASKS_PER_CHILD for testing Rancher
@@ -136,9 +136,9 @@ USE_TZ = True # Results backend CELERY_RESULT_BACKEND = 'django-db' -if os.environ.get('K8S_DEPLOY') is not None: - CELERY_WORKER_MAX_TASKS_PER_CHILD = 50 -CELERY_WORKER_MAX_MEMORY_PER_CHILD = 6000000 # 6 GB +# if os.environ.get('K8S_DEPLOY') is not None: +# CELERY_WORKER_MAX_TASKS_PER_CHILD = 50 +C...
Added Stories Notifications(Enable/Disable) Changed Parameter Name : disable -> revert
@@ -911,7 +911,7 @@ class UserMixin: """ return self.enable_posts_notifications(user_id, True) - def enable_videos_notifications(self, user_id: str, disable: bool = False) -> bool: + def enable_videos_notifications(self, user_id: str, revert: bool = False) -> bool: """ Enable videos notifications of a user @@ -919,7 +9...
Fix datastore abnormal display with trove list According bug description, the datastore display abnormal when use trove list. Closes-Bug:
@@ -309,13 +309,13 @@ def _print_instances(instances, is_admin=False): setattr(instance, 'size', instance.volume['size']) else: setattr(instance, 'size', '-') + if not hasattr(instance, 'region'): + setattr(instance, 'region', '') if hasattr(instance, 'datastore'): if instance.datastore.get('version'): setattr(instance...
Update bytes_modbus_uplink_converter.py modified bits decoding to have the correct bit order
@@ -117,9 +117,10 @@ class BytesModbusUplinkConverter(ModbusConverter): decoded = None - if lower_type == 'bits': + if lower_type in ['bit','bits']: + decoded_lastbyte= decoder_functions[type_]() decoded= decoder_functions[type_]() - decoded += decoder_functions[type_]() + decoded+=decoded_lastbyte elif lower_type == "...
Update CONTRIBUTING.md Revert to existing slackin invite link.
@@ -5,7 +5,7 @@ We always welcome third-party contributions. And we would love you to become an ### Reporting issues There are several options: -* Talk to us. You can join our Slack team via this [link](https://devito-slackin.now.sh/). Should you have installation issues, or should you bump into something that appears ...
Commenting out bug-fix (part 2) These two lines match the version that was programmed before introducing the bug-fix.
@@ -341,6 +341,9 @@ def activate_CCandACH_trigen(Q_cooling_unmet_W, E_ACH_req_W = 0.0 Qc_CT_ACH_W = 0.0 + Qc_from_storage_W = 0.0 # TODO: Remove this section after merging the pull request for this branch + Qc_to_storage_W = 0.0 + # if Qc_from_storage_W > 0.0: # Qc_storage_correction, Qc_DailyStorage_content_W = \ # da...
[commands] Fix typing.Union converters for 3.7 Guido please don't break this
@@ -257,7 +257,12 @@ class Command: if converter is bool: return _convert_to_bool(argument) - if type(converter) is typing._Union: + try: + origin = converter.__origin__ + except AttributeError: + pass + else: + if origin is typing.Union: errors = [] for conv in converter.__args__: try:
Update command-line-tools.rst Added documentation for channel rename command per PR
@@ -136,6 +136,7 @@ mattermost channel - `mattermost channel move`_ - Move a channel to another team - `mattermost channel remove`_ - Remove users from a channel - `mattermost channel restore`_ - Restore a channel from the archive + - `mattermost channel rename`_ - Rename a channel .. _channel-value-note: @@ -321,6 +32...
Removing doi: from anchors for DOIs found in text This looked odd in URLs that had DOIs and DOI that already had a DOI:
@@ -227,7 +227,7 @@ def _doi_sub(match: Match, doi_to_url: Callable[[str], str])->Tuple[Markup, str] doi_url = f'https://dx.doi.org/{quoted_doi}' doi_url = doi_to_url(doi_url) - anchor = escape('doi:'+doi) + anchor = escape(doi) front = match.string[0:match.start()] return (Markup(f'{front}<a href="{doi_url}">{anchor}<...
fix: add ignore_errors when waiting for nfs resources to start This commit adds an ignore_errors when waiting for the NFS resources to start.
args: executable: /bin/bash -- name: Wait for the image registry operator to start its componentes +- name: Wait for the image registry operator to start its components ansible.builtin.shell: | export KUBECONFIG=~/.kube/config oc get configs.imageregistry.operator.openshift.io cluster until: iregistry_result.rc == 0 ch...
Add atol parameter to PauliSum expectation methods Makes the signatures identical to the corresponding methods in PauliString.
@@ -347,6 +347,7 @@ class PauliSum: state: np.ndarray, qubit_map: Mapping[raw_types.Qid, int], *, + atol: float = 1e-7, check_preconditions: bool = True ) -> float: """Evaluate the expectation of this PauliSum given a wavefunction. @@ -357,6 +358,7 @@ class PauliSum: state: An array representing a valid wavefunction. q...
Update links in notebooks/README.md Fixes
@@ -54,9 +54,10 @@ demonstrates ART with TensorFlow v2 using tensorflow.keras without eager executi or [attack_feature_adversaries_tensorflow_v2.ipynb](attack_feature_adversaries_tensorflow_v2.ipynb) [[on nbviewer](https://nbviewer.jupyter.org/github/Trusted-AI/adversarial-robustness-toolbox/blob/main/notebooks/attack_...
In MenuPageMixin.get_repeated_menu_item(), always set 'has_children_in_menu' to True (Fixes Add some comments to the same method to help explain what is going on Abstract out the logic to identify text to use for a repeated menu item to a new 'get_text_for_repeated_item' method, making it easier to override
@@ -111,6 +111,18 @@ class MenuPageMixin(models.Model): """ return menu_instance.page_has_children(self) + def get_text_for_repeated_item( + self, request=None, current_site=None, original_menu_tag='', **kwargs + ): + """Return the a string to use as 'text' for this page when it is being + included as a 'repeated' menu...
fix: Switch the position of LIMIT and OFFSET MariaDB needs LIMIT before OFFSET. Whereas Postgres accepts LIMIT and OFFSET in any order
@@ -38,7 +38,8 @@ def get_feed(start, page_length): {match_conditions_comment} ) X order by X.creation DESC - OFFSET %(start)s LIMIT %(page_length)s""" + LIMIT %(page_length)s + OFFSET %(start)s""" .format(match_conditions_comment = match_conditions_comment, match_conditions_communication = match_conditions_communicati...
DOC: Correct usage example for np.char.decode docstring The docstring was previously a copy-paste error from `encode` rather than `decode`.
@@ -545,8 +545,8 @@ def _code_dispatcher(a, encoding=None, errors=None): @array_function_dispatch(_code_dispatcher) def decode(a, encoding=None, errors=None): - """ - Calls `str.decode` element-wise. + r""" + Calls ``bytes.decode`` element-wise. The set of available codecs comes from the Python standard library, and ma...
Add path detection to the topological sort Passing cyclic graphs is a bug, so we just raise and AssertionError
@@ -140,17 +140,23 @@ def toposort(graph): test_deps = _reduce_deps(graph) visited = util.OrderedSet() - def visit(node): + def visit(node, path): + # We assume an acyclic graph + assert node not in path + + path.add(node) + # Do a DFS visit of all the adjacent nodes for adj in test_deps[node]: if adj not in visited: -...
Skipped Palo Alto Networks - Malware Remediation Test, Fidelis Elevate Network rsa_packets_and_logs_test Cloaken-Test Preempt
} ], "skipped_tests": { + "Palo Alto Networks - Malware Remediation Test": "Issue 20265", + "Fidelis Elevate Network": "Issue 20263", + "rsa_packets_and_logs_test": "Issue 20262", + "Cloaken-Test": "Issue 20036", "Create Phishing Classifier V2 ML Test": "Issue 20174", "Extract Indicators From File - Generic v2": "Issue...
Add ConstructedCanvas drawing type see ginga.canvas.types.layer
@@ -77,8 +77,61 @@ class DrawingCanvas(Mixins.UIMixin, DrawingMixin, Canvas): self.editable = False +class ConstructedCanvas(DrawingMixin, Canvas): + """Constructed canvas from a list of specifications. + + Parameters are specifications of child objects, where each specification + is a map specifying 'type' and (option...
Update requirements-docs.in pinning sqlalchemy
@@ -29,6 +29,7 @@ inflection josepy logmatic-python marshmallow-sqlalchemy == 0.23.1 #related to the marshmallow issue (to avoid conflicts, as newer versions require marshmallow>=3.0.0) +sqlalchemy < 1.4.0 # ImportError: cannot import name '_ColumnEntity' https://github.com/sqlalchemy/sqlalchemy/issues/6226 marshmallow...
Update exercism-swift hashes The project configuration for 4.2, 5.0 have been updated to match the same hash as 5.1. Associated xfails have also been removed.
"compatibility": [ { "version": "4.2", - "commit": "38a17de8717a2282fd4ff62cd1ce732b926bf4ab" + "commit": "3df5e4ab83a9ab47228a46da7263e09a2a2b0b90" }, { "version": "5.0", - "commit": "38a17de8717a2282fd4ff62cd1ce732b926bf4ab" + "commit": "3df5e4ab83a9ab47228a46da7263e09a2a2b0b90" }, { "version": "5.1", { "action": "Bu...
Update make-osd-partitions.yml change
osd_group_name: osds journal_typecode: 45b0969e-9b03-4f30-b4c6-b4b80ceff106 data_typecode: 4fbd7e29-9d25-41b8-afd0-062c0ceff05d - deviecs: [] + devices: [] hosts: - "{{ osd_group_name }}"
Strip leading and trailing spaces from user's inputs The user input must be sanitized because it is used for following queries.
@@ -47,7 +47,7 @@ def prompt(prompt, default_value=None, hidden=False, options=None): if var == '': return default_value else: - return var + return var.strip() def get_regions(): regions = boto.ec2.regions()
libmanage.py: isolate script formatting logic from do_setenv TN:
@@ -783,36 +783,25 @@ class ManageScript(object): shutil.copyfile(build_path, install_path) - def do_setenv(self, args, output_file=sys.stdout): + def do_setenv(self, args): """ Unless --json is passed, display Bourne shell commands that setup - environment in order to make libadalang available. Otherwise, return a - J...
Increase chunk for fetch_maven_artifacts downloads By default requests module uses 1 byte chunks when iterating over streamed content. This is optimal for responsive use cases, not so much for downloading large files. The chunk size is now set to 10Mb to improve throughput.
@@ -14,6 +14,7 @@ import os import requests from atomic_reactor import util +from atomic_reactor.constants import DEFAULT_DOWNLOAD_BLOCK_SIZE from atomic_reactor.koji_util import create_koji_session from atomic_reactor.plugin import PreBuildPlugin from collections import namedtuple @@ -206,7 +207,7 @@ class FetchMavenA...
Make sure pvc and pod names are unique. Avoids AlreadyExists exceptions.
@@ -73,7 +73,10 @@ class MillionFilesOnCephfs(object): with open(constants.CSI_CEPHFS_POD_YAML, "r") as pod_fd: pod_info = yaml.safe_load(pod_fd) pvc_name = pod_info["spec"]["volumes"][0]["persistentVolumeClaim"]["claimName"] - self.pod_name = pod_info["metadata"]["name"] + # Make sure the pvc and pod names are unique,...
US-NW-AVRN added to exceptions Although AVRN has a gas plant, it is not always running, so I think it should be added to the fossil fuel exceptions. Wind production is reported sometimes around -12.
@@ -67,7 +67,7 @@ def validate_production(obj, zone_key): 'US-CAR-YAD','US-NW-SCL','US-NW-CHPD', 'US-NW-WWA','US-NW-GCPD','US-NW-TPWR', 'US-NW-WAUW','US-SE-SEPA','US-NW-GWA', - 'US-NW-DOPD'])): + 'US-NW-DOPD', 'US-NW-AVRN'])): raise ValidationError( "Coal, gas or oil or unknown production value is required for" " %s" %...
Fix systray icon_size bug If icon has min_width/height hints, the icon size is not increased if the user specifies an icon greater than this size. Fixes
@@ -55,19 +55,15 @@ class Icon(window._Window): icon_size = self.systray.icon_size self.update_hints() - try: - width = self.hints["min_width"] - height = self.hints["min_height"] - except KeyError: - width = icon_size - height = icon_size + width = self.hints.get("min_width", icon_size) + height = self.hints.get("min_...
subs: Use e.key instead of deprecated e.which. Tested by making sure the "Filter stream" search box filters stream on user input (when Enter is not pressed) in the Streams modal.
@@ -639,7 +639,7 @@ export function setup_page(callback) { // streams, either explicitly via user_can_create_streams, or // implicitly because page_params.realm_is_zephyr_mirror_realm. $("#stream_filter input[type='text']").on("keypress", (e) => { - if (e.which !== 13) { + if (e.key !== "Enter") { return; }
Docs: Update dataframe-indexing.rst This PR updates `dataframe-index.rst` with a few naming convention corrections (only minor stuff)
Indexing into Dask DataFrames ============================= -Dask DataFrame supports some of pandas' indexing behavior. +Dask DataFrame supports some of Pandas' indexing behavior. .. currentmodule:: dask.dataframe @@ -15,14 +15,14 @@ Dask DataFrame supports some of pandas' indexing behavior. Label-based Indexing ------...
speed up the code by using random() instead of uniform() as it's almost ten times faster
@@ -476,7 +476,8 @@ class MultiEllipsoid: else: # If `q` is not being returned, assume the user wants this # done internally so we repeat the loop if needed - if q == 1 or rstate.uniform() < (1. / q): + # random is faster than uniform + if q == 1 or rstate.random() < (1. / q): return x, idx def samples(self, nsamples, ...
Completed test cov erage of utils.py TRAC#7301
@@ -31,6 +31,7 @@ def test_interval_map_indexing_and_length(): with pytest.raises(IndexError): im[1 * 10**32 + 20] + def test_interval_map_get_offset(): im = IntervalMap() @@ -54,3 +55,26 @@ def test_interval_map_get_offset(): with pytest.raises(TypeError): im.get_offset(-1.0) + + +def test_invalid_types(): + im = Inte...
[refactor] Switch to f-strings Update astropy/io/votable/connect.py
@@ -101,11 +101,10 @@ def read_table_votable( if len(tables) > 1: if table_id is None: raise ValueError( - "Multiple tables found: table id should be set via " - "the table_id= argument. The available tables are {}, " - "or integers less than {}.".format( - ", ".join(table_id_mapping.keys()), len(tables) - ) + "Multipl...
Update changelog/5040.bugfix.rst Better end-user text
Change dependency Networkx from featurizers ``setup.py`` and ``requirements.txt``. There is an imcompatibility between Rasa dependecy requests 2.22.0 and the own depedency from Rasa for networkx raising errors upon pip install. There is also a bug corrected in ``requirements.txt`` which used ``~=`` instead of ``==``. A...
parent: move subprocess creation to mux thread too Now connect() really is a pure blocking wrapper.
@@ -1567,6 +1567,19 @@ class Connection(object): mitogen.core.listen(self._router.broker, 'shutdown', self._on_broker_shutdown) self._start_timer() + + try: + self.proc = self.start_child() + except Exception: + self._fail_connection(sys.exc_info()[1]) + return + + LOG.debug('child for %r started: pid:%r stdin:%r stdou...
Update core/dbt/deprecations.py Include the actual docs link!
@@ -71,7 +71,7 @@ class MaterializationReturnDeprecation(DBTDeprecation): added, but this behavior will be removed in a future version of dbt. For more information, see: - --- TODO: docs link here --- + https://docs.getdbt.com/v0.15/docs/creating-new-materializations#section-6-returning-relations '''.lstrip()
dashboard: add missing parameter in `ceph_cmd` the `ceph_cmd` fact is missing the `--net=host` parameter. Some tasks consuming this fact can fail like following: ``` Error: error configuring network namespace for container Missing CNI default network ``` Closes:
- name: set_fact container_run_cmd set_fact: - ceph_cmd: "{{ hostvars[groups[mon_group_name][0]]['container_binary'] + ' run --interactive --rm -v /etc/ceph:/etc/ceph:z --entrypoint=ceph ' + ceph_docker_registry + '/' + ceph_docker_image + ':' + ceph_docker_image_tag if containerized_deployment | bool else 'ceph' }}" +...
[ci/release] Disable infra retries for now Infra errors are tackled with concurrency groups. Thus we can disable old mitigation methods like automatic infra retry for now. We keep the script as it does other logic (e.g. checkout local test branch) and infra retry can be enabled via env variable if needed.
@@ -50,7 +50,7 @@ if [ -z "${NO_INSTALL}" ]; then fi RETRY_NUM=0 -MAX_RETRIES=${MAX_RETRIES-3} +MAX_RETRIES=${MAX_RETRIES-1} if [ "${BUILDKITE_RETRY_COUNT-0}" -ge 1 ]; then echo "This is a manually triggered retry from the Buildkite web UI, so we set the number of infra retries to 1." @@ -108,7 +108,7 @@ if [ -z "${NO_...
fix(global): not using correct preset tags fixing pixelAspect to by applied to letter box too
@@ -31,7 +31,7 @@ class ExtractReview(pyblish.api.InstancePlugin): inst_data = instance.data fps = inst_data.get("fps") start_frame = inst_data.get("frameStart") - + pixel_aspect = instance.data["pixelAspect"] self.log.debug("Families In: `{}`".format(instance.data["families"])) # get representation and loop them @@ -1...
Update mapsSync.py Updated disclaimer.
@@ -133,7 +133,7 @@ def get_mapsSync(files_found, report_folder, seeker): if usageentries > 0: - description = 'MapSync values. Medium confidence. Locations and searches from other linked devices might show up here. Travel may or may not have happened.' + description = 'Disclaimer: Entries should be corroborated. Locat...
llvm/codegen: Opencode 'run' for loop. This will be extended with processing of termination conditions.
@@ -1080,12 +1080,37 @@ def gen_composition_run(ctx, composition, *, tags:frozenset): builder.store(cond_init, cond) runs = builder.load(runs_ptr, "runs") - with helpers.for_loop_zero_inc(builder, runs, "run_loop") as (b, iters): + iters_ptr = builder.alloca(runs.type) + builder.store(iters_ptr.type.pointee(0), iters_p...
[cleanup] Remove deprecated twntranslate method This method was deprecated about six years ago. Also cleaning up a couple bits of code that were commented as being for it.
@@ -28,7 +28,6 @@ from collections.abc import Mapping from contextlib import suppress from textwrap import fill from typing import Optional, Union -from warnings import warn import pywikibot from pywikibot import __url__, config @@ -36,7 +35,6 @@ from pywikibot.backports import List, cache from pywikibot.plural import ...
More flexible opref comparison If either pkg type, name, or version is not specified, ignore it in the comparison.
@@ -70,8 +70,12 @@ def _opref_is_op_run(opref, run): return False else: return ( - run_opref.pkg_type == opref.pkg_type and - run_opref.pkg_name == opref.pkg_name and + (opref.pkg_type is None or + run_opref.pkg_type == opref.pkg_type) and + (opref.pkg_name is None or + run_opref.pkg_name == opref.pkg_name) and + (opre...
mlanunch: Make 8th+ replica set members non-voting Replica sets can have up to 7 voting members[1]. This change allows spinning up replica sets with more than 7 members by forcing zero votes starting from the 8th node. [1]
@@ -1512,6 +1512,10 @@ class MLaunchTool(BaseCmdLineTool): if i == 0 and self.args['priority']: member_config['priority'] = 10 + if i >= 7: + member_config['votes'] = 0 + member_config['priority'] = 0 + self.config_docs[name]['members'].append(member_config) # launch arbiter if True
[docs] fix partition_set page Summary: I either missed this or it got mixed up in the docs migration Test Plan: eyes Reviewers: sashank, nate, prha
@@ -36,16 +36,6 @@ file:/dagster_examples/stocks/simple_partitions.py lines:13-16 ``` -Finally, using these two functions, we create a <PyObject module="dagster" object="PartitionSetDefinition" /> named -`stock_data_partitions_set`. We can register these -partitions decorating a function that returns a list of partitio...
GDB helpers: avoid overflow in token text decoding In order to avoid overflow, switch source buffer bounds computations from inferior's integers to native Python integers. This fixes the handling of empty ranges (i.e. superflat arrays, i.e. (1 .. 0 => <>). TN:
@@ -74,8 +74,8 @@ class Token(object): # Fetch the fat pointer, the bounds and then go subscript the # underlying array ourselves. src_buffer = self.tdh.value['source_buffer'] - first = self.value['source_first'] - last = self.value['source_last'] + first = int(self.value['source_first']) + last = int(self.value['sourc...
ebuild/profiles: add 'use' attribute for profile objects Combines the valid USE and USE_EXPAND settings for the profile.
@@ -520,10 +520,23 @@ class ProfileStack(object): @property def use_expand(self): + """USE_EXPAND variables defined by the profile.""" if "USE_EXPAND" in const.incrementals: return frozenset(self.default_env.get("USE_EXPAND", ())) return frozenset(self.default_env.get("USE_EXPAND", "").split()) + @klass.jit_attr + def ...
[isolate] Fix inversion in the fallback query The unchangeable law of maths: X - i > X - (i+1)
@@ -280,9 +280,9 @@ class CronCleanupExpiredHandler(webapp2.RequestHandler): # It was observed that limiting the range on both sides helps with the # chances of the query succeeding, instead of raising a Timeout. q = model.ContentEntry.query( - model.ContentEntry.expiration_ts >= - now - datetime.timedelta(days=i), mod...
AbstractExpression: arbitrary objects can override the prepare protocol TN:
@@ -496,6 +496,9 @@ class AbstractExpression(Frozable): elif isinstance(obj, (dict)): for v in obj.items(): explore(v, fn) + elif (not isinstance(obj, (PropertyDef, TypeRepo.Defer)) and + hasattr(obj, 'prepare')): + explore(obj.prepare(), fn) ret = self for p, order in passes:
fw/output: update internal state on write_config() Update the internal _combined_config object with the one that has been written to ensure that the serialized and run time states are the same.
@@ -269,6 +269,7 @@ class RunOutput(Output): write_pod(self.state.to_pod(), self.statefile) def write_config(self, config): + self._combined_config = config write_pod(config.to_pod(), self.configfile) def read_config(self):
(python-config-type-instance-9) Convert SolidContainerConfigDict and SolidConfigDict to inst() Summary: These are special config types in the environment configs system. Depends on D1587 Test Plan: BK Reviewers: max, alangenfeld
@@ -32,14 +32,14 @@ def SystemDict(fields, description=None): return build_config_dict(fields, description, is_system_config=True) -class _SolidContainerConfigDict(_ConfigHasFields): +class SolidContainerConfigDict(_ConfigHasFields): def __init__(self, name, fields, description=None, handle=None, child_solids_config_fi...
Duckpond: Add a list of already ducked messages Previously race conditions caused the messages to be processed again before knowing the white check mark reaction got added, this seems to solve it
@@ -22,6 +22,7 @@ class DuckPond(Cog): self.bot = bot self.webhook_id = constants.Webhooks.duck_pond self.webhook = None + self.ducked_messages = [] self.bot.loop.create_task(self.fetch_webhook()) self.relay_lock = None @@ -176,7 +177,8 @@ class DuckPond(Cog): duck_count = await self.count_ducks(message) # If we've got...
Fixes ensuring that the verifier can be restarted cleanly when mTLS for agents is disabled The agent attribute "mtls_cert" can be boolean "None" (API 1.0) or could be assigned the value "disabled" in case mTLS is purposefully disabled in post-1.0 API. These changes covers both cases.
@@ -582,7 +582,7 @@ class AgentsHandler(BaseHandler): if "reactivate" in rest_params: if not isinstance(agent, dict): agent = _from_db_obj(agent) - if agent["mtls_cert"]: + if agent["mtls_cert"] and agent["mtls_cert"] != "disabled": agent["ssl_context"] = web_util.generate_agent_mtls_context(agent["mtls_cert"], mtls_op...
new CentralDifferenceTS new ._create_nlst_a(), .create_nlst(), .step()
@@ -571,6 +571,84 @@ class VelocityVerletTS(ElastodynamicsBaseTS): return vect +class CentralDifferenceTS(ElastodynamicsBaseTS): + r""" + Solve elastodynamics problems by the central difference method. + + Should be more efficient than the corresponding NewmarkTS + with :math:`\beta = 0`, :math:`\gamma = 1/2`. + """ + ...
Added "proxy support" via environment variables Useful if you use proxy in your environment
@@ -36,9 +36,16 @@ metadata = { "ddsourcecategory": "aws", } - +try: + host = os.environ['DD_URL'] +except Exception: host = "lambda-intake.logs.datadoghq.com" + +try: + ssl_port = os.environ['DD_PORT'] +except Exception: ssl_port = 10516 + cloudtrail_regex = re.compile('\d+_CloudTrail_\w{2}-\w{4,9}-\d_\d{8}T\d{4}Z.+.j...
Update clock.py - Corrected typo There was a typo in one of the descriptions. Changed "continuo" to 'continue."
@@ -486,7 +486,7 @@ class ClockBaseBehavior(object): MIN_SLEEP = 0.005 '''The minimum time to sleep. If the remaining time is less than this, - the event loop will continuo + the event loop will continue. ''' SLEEP_UNDERSHOOT = MIN_SLEEP - 0.001
squad analysis: highlight yellow title make "yellow squad" title font black on yellow background for better readability
@@ -1020,6 +1020,11 @@ def add_squad_analysis_to_email(session, soup): .squad-unassigned { background-color: #FFBA88; } + h4.squad-yellow { + color: black; + background-color: yellow; + display: inline; + } """ # prepare place for the Squad Analysis in the email squad_analysis_div = soup.new_tag("div")
Stabilize TreeViewAdditionalTestCases.testCheckBoxes() HG-- branch : dev00
@@ -51,6 +51,7 @@ from pywinauto.sysinfo import is_x64_Python # noqa: E402 from pywinauto.remote_memory_block import RemoteMemoryBlock # noqa: E402 from pywinauto.actionlogger import ActionLogger # noqa: E402 from pywinauto.timings import Timings # noqa: E402 +from pywinauto.timings import wait_until # noqa: E402 from ...
Get right tag for reprocessed sentinel2 l2a L2A products with baseline 00.01 are products reprocessed by sentinelhub. Because of that the right tag for the tile id is TILE_ID.
@@ -265,7 +265,7 @@ class SafeTile(AwsTile): tree = client.get_xml(self.get_url(AwsConstants.METADATA)) tile_id_tag = 'TILE_ID_2A' if (self.data_collection is DataCollection.SENTINEL2_L2A - and self.baseline <= '02.06') else 'TILE_ID' + and '00.01' < self.baseline <= '02.06') else 'TILE_ID' tile_id = tree[0].find(tile_...