message
stringlengths
13
484
diff
stringlengths
38
4.63k
Updated example to be consistent with Secrets Manager Docs I updated the descriptions to be more consistent with the terminology found in the Secrets Manager documentation.
.. _aws-boto3-secrets-manager: ############################################### -Retrieving Your Secret from AWS Secrets Manager +Retrieving a Secret from AWS Secrets Manager ############################################### -This Python example shows you how to retrieve an AWS Secrets Manager decoded secret that was crea...
Start Gaphor as a Gtk.Application For one, this greys out the Quit option in the MacOS menu
@@ -125,9 +125,17 @@ class _Application(object): return self.init_service(name) def run(self): - from gi.repository import Gtk + from gi.repository import Gio, Gtk + app = Gtk.Application(application_id="org.gaphor.gaphor", + flags=Gio.ApplicationFlags.FLAGS_NONE) - Gtk.main() + def app_activate(app): + main_window = s...
make sure cmd is not run when npm isn't installed apparently the skipIf on the functions still get run, even if the function is going to be skipped based on a skipIf on the class.
@@ -54,7 +54,8 @@ class NpmStateTest(integration.ModuleCase, integration.SaltReturnAssertsMixIn): ret = self.run_state('npm.installed', name=None, pkgs=['pm2', 'grunt']) self.assertSaltTrueReturn(ret) - @skipIf(LooseVersion(cmd.run('npm -v')) >= LooseVersion(MAX_NPM_VERSION), 'Skip with npm >= 5.0.0 until #41770 is fix...
(refactor) liquid connector get_tracking_pairs changed logger info to avoid user confusion
@@ -234,7 +234,7 @@ class LiquidAPIOrderBookDataSource(OrderBookTrackerDataSource): retval[trading_pair] = LiquidOrderBookTrackerEntry(trading_pair, snapshot_timestamp, order_book) self.logger().info(f"Initialized order book for {trading_pair}. " - f"{index*1}/{number_of_pairs} completed") + f"{index+1}/{number_of_pair...
Update exposed-gitignore.yaml New conditions to avoid false positives.
@@ -24,7 +24,7 @@ requests: - type: dsl dsl: - - '!contains(tolower(body), "<html")' + - '!contains(tolower(body), "<html") && !contains(tolower(body), "<!doctype") && !contains(tolower(body), "<script")' - type: dsl dsl:
Fix centipede linker flags Mirrors [the fixes from OSS-Fuzz](https://github.com/google/oss-fuzz/pull/9427): 1. Use [`-Wl` on the linker flags](https://github.com/google/oss-fuzz/pull/9427#issuecomment-1385205488). 2. Use [`LDFLAGS`](https://github.com/google/oss-fuzz/pull/9427#issuecomment-1385375441).
@@ -24,11 +24,8 @@ def build(): san_cflags = ['-fsanitize-coverage=trace-loads'] link_cflags = [ - '-Wno-error=unused-command-line-argument', - '-ldl', - '-lrt', - '-lpthread', - '/lib/weak.o', + '-Wno-unused-command-line-argument', + '-Wl,-ldl,-lrt,-lpthread,/lib/weak.o' ] # TODO(Dongge): Build targets with sanitizers...
Update readme.md for Mac Mono will generate a path '/usr/local/lib/pkgconfig:/usr/lib/pkgconfig:/Library/Frameworks/Mono.framework/Versions/Current/lib/pkgconfig' for different mono versions, thus we do not need to care about which version we are using.
@@ -93,7 +93,7 @@ To enable usage of a GPU, additional packages need to be installed. The followin For macOS Catalina, open the configuration of zsh via the terminal: * Type in `cd` to navigate to the home directory. * Type `nano ~/.zshrc` to open the configuration of the terminal -* Add the path to your mono installat...
BUG/DOC: Description of k_posdef Closes Corrects documentation to note that k_posdef is the dimension of the state innovation.
@@ -66,7 +66,7 @@ class KalmanFilter(Representation): The dimension of the unobserved state process. k_posdef : int, optional The dimension of a guaranteed positive definite covariance matrix - describing the shocks in the measurement equation. Must be less than + describing the shocks in the transition equation. Must ...
Add examples for view_* functions Minimal examples of an airplane model of different views
@@ -1980,6 +1980,18 @@ class Renderer(_vtk.vtkRenderer): negative : bool, optional View from the opposite direction. + Examples + -------- + View the XY plane of a built-in mesh example. + + >>> from pyvista import examples + >>> import pyvista as pv + >>> airplane = examples.load_airplane() + >>> pl = pv.Plotter() + >...
refactored still image creator Not tested yet as it is not working in regular develop either.
-from collections import OrderedDict - import nuke -from openpype.hosts.nuke.api import plugin from openpype.hosts.nuke.api.lib import create_write_node +from openpype.hosts.nuke.plugins.create import create_write_render -class CreateWriteStill(plugin.OpenPypeCreator): +class CreateWriteStill(create_write_render.Create...
MAINT: Remove duplicate cond check from assert_array_compare We already in "if not cond" branch of code, we don't need to check it again
@@ -773,7 +773,6 @@ def chk_same_position(x_id, y_id, hasval='nan'): + '\n(mismatch %s%%)' % (match,), verbose=verbose, header=header, names=('x', 'y'), precision=precision) - if not cond: raise AssertionError(msg) except ValueError: import traceback
Stop referencing langkit.compiled_types.logic_var_type TN:
@@ -5,8 +5,7 @@ from itertools import izip_longest import funcy from langkit import names -from langkit.compiled_types import (Argument, T, equation_type, logic_var_type, - no_compiled_type) +from langkit.compiled_types import Argument, T, equation_type, no_compiled_type from langkit.diagnostics import check_multiple, ...
Resolve - Regular division for memory calculation * Resolve This commit attempts to solve the problem of making LSF to "-R select[mem > 0] rusage[mem=0]" as well as the problem of overloading the behaviour of the --doubleMem parameters * Resolve - regular division for memory calculation
@@ -249,7 +249,7 @@ class LSFBatchSystem(AbstractGridEngineBatchSystem): mem_resource = parse_memory_resource(mem) mem_limit = parse_memory_limit(mem) else: - mem = float(mem) // 1024**3 + mem = float(mem) / 1024**3 mem_resource = parse_memory_resource(mem) mem_limit = parse_memory_limit(mem)
Fixed some warnings Applied type casts for warnings which pointed out 8-bit and 16-bit int conversions
#include <cinttypes> #include <stdexcept> -#define DEF(METHOD) .def_static(#METHOD, &JaggedArraySrc::METHOD<std::int64_t>)\ +#define DEF(METHOD) def_static(#METHOD, &JaggedArraySrc::METHOD<std::int64_t>)\ .def_static(#METHOD, &JaggedArraySrc::METHOD<std::uint64_t>)\ .def_static(#METHOD, &JaggedArraySrc::METHOD<std::int...
Add 2 plants to AR.py Added VMA2TG01 to TG04 (gas) and NESPDI02 (oil).
@@ -291,6 +291,7 @@ power_plant_type = { 'NECOTV02': 'gas', 'NECOTV03': 'gas', 'NECOTV04': 'gas', + 'NESPDI02': 'oil', 'NIH1HI': 'hydro', 'NIH4HI': 'hydro', 'NOMODI01': 'gas', @@ -450,6 +451,10 @@ power_plant_type = { 'VGESTG16': 'gas', 'VGESTG18': 'gas', 'VIALDI01': 'oil', + 'VMA2TG01': 'gas', + 'VMA2TG02': 'gas', + '...
fix Tagging.tags usage properly Fixes
@@ -2393,7 +2393,7 @@ class Minio: # pylint: disable=too-many-public-methods "GET", bucket_name, query_params={"tagging": ""}, ) tagging = unmarshal(Tagging, response.data.decode()) - return tagging.tags() + return tagging.tags except S3Error as exc: if exc.code != "NoSuchTagSet": raise @@ -2470,7 +2470,7 @@ class Mini...
comment verify stage we need to fix package first
@@ -11,8 +11,8 @@ stages: - name: test - name: publish if: branch = master AND tag =~ ^v.* -- name: verify - if: branch = master +#- name: verify +# if: branch = master jobs: include: @@ -36,10 +36,10 @@ jobs: tags: true repo: Mirantis/kqueen - - stage: verify - before_install: - - docker-compose up -d - install: - - p...
downloader: unpack archives to the directory they are in This makes a lot more sense than unpacking them to the model directory. I think the only reason we haven't done it this way before is because we never downloaded any archives to subdirectories of the model directory.
@@ -446,7 +446,7 @@ class PostprocUnpackArchive(Postproc): reporter.print_section_heading('Unpacking {}', postproc_file) - shutil.unpack_archive(str(postproc_file), str(output_dir), self.format) + shutil.unpack_archive(str(postproc_file), str(output_dir / postproc_file.parent), self.format) postproc_file.unlink() # Rem...
Add new is_causal flag introduced by nn.Transformer API Summary: Add new is_causal flag introduced by nn.Transformer API
@@ -149,7 +149,7 @@ class PETransformerEncoderLayer(nn.Module): state["activation"] = F.relu super(PETransformerEncoderLayer, self).__setstate__(state) - def forward(self, src, src_mask=None, src_key_padding_mask=None): + def forward(self, src, src_mask=None, src_key_padding_mask=None, is_causal=False): encoded_src = s...
[nixio] Write new objects found in ChannelIndex subtree If new objects are found in the ChannelIndex substructure (determined by the lack of nix_name annotation), they are created on the parent Block without being attached to a Group. Fixes
@@ -999,8 +999,15 @@ class NixIO(BaseIO): """ for chx in neoblock.channel_indexes: - signames = [sig.annotations["nix_name"] for sig in - chx.analogsignals + chx.irregularlysampledsignals] + signames = [] + for asig in chx.analogsignals: + if "nix_name" not in asig.annotations: + self._write_analogsignal(asig, nixblock...
Small typo correction on CONTRIBUTING.md * Update CONTRIBUTING.md Small typo correction. * Update .github/CONTRIBUTING.md
@@ -112,8 +112,8 @@ In case you adding new dependencies, make sure that they are compatible with the ### Coding Style -1. Use f-strings for output formation (except logging when we stay with lazy `logging.info("Hello %s!`, name); -2. Black code formatter is used using `pre-commit` hook. +1. Use f-strings for output for...
names.Name: remove dead code TN:
@@ -35,15 +35,9 @@ class Name(object): def __eq__(self, other): return isinstance(other, Name) and self.base_name == other.base_name - def __ne__(self, other): - return not (self == other) - def __lt__(self, other): return self.base_name < other.base_name - def __gt__(self, other): - return self.base_name > other.base_...
Change the quantizer to match the behavior of the FBGEMM implementation Summary: Pull Request resolved: FBGEMM uses 64 bit values. Need to change our implementation to match
@@ -134,13 +134,13 @@ T quantize_val(float scale, int32_t zero_point, float value) { // cases away from zero, and can be consistent with SIMD implementations for // example in x86 using _mm512_cvtps_epi32 or mm512_round_ps with // _MM_FROUND_CUR_DIRECTION option that also follow the current rounding mode. - int32_t qva...
TST: Add test of new `parametrize` decorator. The new decorator was added to numpy.testing in order to facilitate the transition to using pytest.
+""" +Test the decorators from ``testing.decorators``. + +""" from __future__ import division, absolute_import, print_function import warnings @@ -13,6 +17,7 @@ def slow_func(x, y, z): assert_(slow_func.slow) + def test_setastest(): @dec.setastest() def f_default(a): @@ -30,6 +35,7 @@ def f_isnottest(a): assert_(f_iste...
Add webargs-quart to the extensions list This is a useful library to parse and validate arguments.
@@ -10,3 +10,5 @@ here, Resource Sharing (access control) support. - `Quart-OpenApi <https://github.com/factset/quart-openapi/>`_ RESTful API building. +- `Webargs-Quart <https://github.com/esfoobar/webargs-quart>`_ Webargs + parsing for Quart.
Add bold to unread host/surfing request messages Added styling to messages in both the hosting and surfing tab to be in bold when the last message sent is unread.
@@ -7,6 +7,7 @@ import { } from "@material-ui/core"; import { makeStyles } from "@material-ui/core/styles"; import { Skeleton } from "@material-ui/lab"; +import classNames from "classnames"; import Avatar from "components/Avatar"; import TextBody from "components/TextBody"; import useAuthStore from "features/auth/useAu...
attributions Adjusted attribution wording to direct more users to the docs page.
@@ -28,6 +28,6 @@ of the code can be found ### Attribution -Please cite [Speagle (2019)](https://arxiv.org/abs/1904.02180) if you find the -package useful in your research, along with any relevant papers on the -[citations page](https://dynesty.readthedocs.io/en/latest/index.html#citations). +If you find the package us...
Update dynamics-krylov.rst fixed inherited imports
@@ -42,8 +42,11 @@ function for master-equation evolution, except that the initial state must be a Let's solve a simple example using the algorithm in QuTiP to get familiar with the method. .. plot:: - :context: + :context: reset + from qutip import jmat, rand_ket, krylovsolve + import numpy as np + import matplotlib.p...
Last Connection date for user in admin panel * Last Connection date for user in admin panel display last connection for each user in user admin panel. add the date at the end of the tab * Update admin.py * Update admin.py
@@ -208,7 +208,7 @@ class InvenTreeUserAdmin(UserAdmin): (And it's confusing!) """ - + list_display = ('username', 'email', 'first_name', 'last_name', 'is_staff', 'last_login') # display last connection for each user in user admin panel. fieldsets = ( (None, {'fields': ('username', 'password')}), (_('Personal info'), {...
robot-simulator: updated tests to v3.0.0 Updated tests to v2.3.0 , added Exception tests for invalid directions/instructions as well as tests for each direction the robot can go Closes
@@ -3,7 +3,7 @@ import unittest from robot_simulator import Robot, NORTH, EAST, SOUTH, WEST -# Tests adapted from `problem-specifications//canonical-data.json` @ v2.2.0 +# Tests adapted from `problem-specifications//canonical-data.json` @ v3.0.0 class RobotSimulatorTest(unittest.TestCase): def test_init(self): @@ -17,1...
add monster girl doctor monster musume no Oisha-san, absolutely nothing to do with Monster Musume from before, hopefully it's a fun show
@@ -103,6 +103,32 @@ streams: amazon|Amazon US: '' amazon_uk|Amazon UK: '' primevideo|Prime Video International: '' +--- +title: 'Monster Musume no Oisha-san' +alias: ['Monster Girl Doctor'] +has_source: true +info: + mal: 'https://myanimelist.net/anime/40708' + anilist: 'https://anilist.co/anime/113286' + anidb: 'http...
Update the homepage in pyproject.toml It was still pointing to the older location within Will's GitHub, but now it lives under the Textualize organisation.
[tool.poetry] name = "rich" -homepage = "https://github.com/willmcgugan/rich" +homepage = "https://github.com/Textualize/rich" documentation = "https://rich.readthedocs.io/en/latest/" version = "13.0.0" description = "Render rich text, tables, progress bars, syntax highlighting, markdown and more to the terminal"
fs2bs: use match filter in selectattr() changed the filter in selectattr() from 'match' to 'equalto' but due to an incompatibility with the Jinja2 version for python 2.7 on el7 we must stick to using 'match' filter.
set_fact: osd_ids: "{{ osd_ids | default([]) | union(item) }}" with_items: - - "{{ ((osd_tree.stdout | default('{}') | trim | from_json).nodes | selectattr('name', 'equalto', inventory_hostname) | map(attribute='children') | list) }}" + - "{{ ((osd_tree.stdout | default('{}') | trim | from_json).nodes | selectattr('nam...
(fix) Fixes pre-commit gh CI step In a recent [PR](https://github.com/hummingbot/hummingbot/pull/5219), I have inadvertently stopped the pre-commit hooks from running on the gh CI pipeline. This PR fixes that issue.
@@ -54,13 +54,13 @@ jobs: run: yarn --cwd ./gateway install # Compile and run tests if code has changed - - name: Run Flake8 and eslint + - name: Run pre-commit hooks on diff shell: bash if: steps.program-changes.outputs.cache-hit != 'true' || steps.conda-dependencies.outputs.cache-hit != 'true' run: | source $CONDA/et...
Fix nightly build failures Summary: See: Test Plan: n/a Reviewers: max, alangenfeld, schrockn
@@ -80,11 +80,17 @@ def construct_publish_comands(additional_steps=None, nightly=False): '''The modules managed by this script.''' -MODULE_NAMES = ['dagster', 'dagit', 'dagster-graphql', 'dagstermill', 'dagster-airflow'] +MODULE_NAMES = [ + 'dagster', + 'dagit', + 'dagster-graphql', + 'dagstermill', + 'dagster-airflow'...
Attempt to fix API error Based on server errors, this part of the code seems to be the issue.
@@ -96,9 +96,13 @@ class DataFile(models.Model): return str("{0}:{1}:{2}").format(self.user, self.source, self.file) def download_url(self, request): - key = self.generate_key(request) + # 20201222 MPB: commenting these out because generate_key is producing "out of range" errors; + # unclear why, but this was an incomp...
[BUG] `plot_cluster_algorithm`: fix error "`predict_series is undefined`" if `X` is passed as `np.ndarray` currently the `plot_cluster_algorithm` function in `sktime/clustering/utils/plotting/_plot_partitions.py` throws an error if `X` is passed as a `numpy` array. Exception is throwns because `predict_series` is unde...
@@ -74,6 +74,7 @@ def plot_cluster_algorithm(model: TimeSeriesLloyds, X: TimeSeriesInstances, k: i import matplotlib.patches as mpatches import matplotlib.pyplot as plt + predict_series = X if isinstance(X, pd.DataFrame): predict_series = convert_to(X, "numpy3D") plt.figure(figsize=(5, 10))
[cli] import survey locally Two advantages: * It does not crash in pytest where stdin / stdout don't point to files * The daemon does not need it.
@@ -14,7 +14,6 @@ from typing import ( ) import click -import survey if TYPE_CHECKING: from datetime import datetime @@ -562,6 +561,8 @@ focus_color = f"{response_color}{bold}" def prompt(message: str, default: str = "", validate: Optional[Callable] = None) -> str: + import survey + styled_default = _syle_hint(default)...
AbstractEventLoop exception handler is optional Closes * get_exception_handler() is only available in 3.5
@@ -180,9 +180,10 @@ class AbstractEventLoop(metaclass=ABCMeta): def remove_signal_handler(self, sig: int) -> None: ... # Error handlers. @abstractmethod - def set_exception_handler(self, handler: _ExceptionHandler) -> None: ... + def set_exception_handler(self, handler: Optional[_ExceptionHandler]) -> None: ... + if s...
Update hclu.py last fix for layout
@@ -57,7 +57,8 @@ class HighConfidenceLowUncertainty(Attack): :param max_val: maximal value any feature can take, defaults to 1.0 :type max_val: :float: """ - super(HighConfidenceLowUncertainty, self).__init__(classifier=classifier) + super(HighConfidenceLowUncertainty, self).__init__( + classifier=classifier) if not i...
Update http_server.cc Change metrics http content type from "text/plain" to "text/plain; charset=utf-8".
@@ -144,6 +144,9 @@ HTTPMetricsServer::Handle(evhtp_request_t* req) } evhtp_res res = EVHTP_RES_BADREQ; + evhtp_headers_add_header( + req->headers_out, + evhtp_header_new(kContentTypeHeader, "text/plain; charset=utf-8", 1, 1)); // Call to metric endpoint should not have any trailing string if (RE2::FullMatch(std::strin...
Remove invalid param for flatpak_update_dockerfile The plugin no longer takes compose_ids from user params, instead it takes compose info from the resolve_composes result.
@@ -21,7 +21,7 @@ from atomic_reactor.plugins.flatpak_create_dockerfile import ( FLATPAK_CLEANUPSCRIPT_FILENAME, FLATPAK_INCLUDEPKGS_FILENAME, ) -from atomic_reactor.util import is_flatpak_build, map_to_user_params +from atomic_reactor.util import is_flatpak_build from atomic_reactor.utils.flatpak_util import FlatpakUt...
Standalone: Make "main" inside "site.py" do nothing. * This fixes standalone for at least Anaconda, where it was otherwise adding paths that should not be there.
@@ -127,11 +127,18 @@ __file__ = (__nuitka_binary_dir + '%s%s') if '__nuitka_binary_dir' in dict(__bui source_code ) + # Debian stretch site.py source_code = source_code.replace( "PREFIXES = [sys.prefix, sys.exec_prefix]", "PREFIXES = []" ) + # Anaconda3 4.1.2 site.py + source_code = source_code.replace( + "def main():...
[Doc] messaging -> messagingv2 Nova sends notifications using 2.0 messging format.
@@ -424,7 +424,7 @@ to Watcher receives Nova notifications in ``watcher_notifications`` as well. into which Nova services will publish events :: [oslo_messaging_notifications] - driver = messaging + driver = messagingv2 topics = notifications,watcher_notifications * Restart the Nova services.
Fix double parsing of 'fmt' in Pomodoro widget By using a variable called 'fmt' which is also used by `base._TextBox`, the string formatting happense twice. This can be fixed by removing the formatting within Pomodoro and just letting the base class handle it. Closes
@@ -29,7 +29,6 @@ class Pomodoro(base.ThreadPoolText): """Pomodoro technique widget""" orientations = base.ORIENTATION_HORIZONTAL defaults = [ - ("fmt", "{}", "fmt"), ("num_pomodori", 4, "Number of pomodori to do in a cycle"), ("length_pomodori", 25, "Length of one pomodori in minutes"), ("length_short_break", 5, "Leng...
bool(restore_id_element) == False for some reason Very strange. I introduced this in actually - got past testing because dropping "is not None" was a last minute response to PR feedback.
@@ -197,7 +197,7 @@ class AdminRestoreView(TemplateView): @staticmethod def get_stats_from_xml(xml_payload): restore_id_element = xml_payload.find('{{{0}}}Sync/{{{0}}}restore_id'.format(SYNC_XMLNS)) - restore_id = restore_id_element.text if restore_id_element else None + restore_id = restore_id_element.text if restore_...
Cabana: use deque::resize() instead of pop_back in loop use resize instead of pop_front in loop
@@ -71,8 +71,8 @@ void CANMessages::process(QHash<QString, std::deque<CanData>> *messages) { msgs = std::move(new_msgs); } else { msgs.insert(msgs.begin(), std::make_move_iterator(new_msgs.begin()), std::make_move_iterator(new_msgs.end())); - while (msgs.size() >= settings.can_msg_log_size) { - msgs.pop_back(); + if (m...
Keep one msvs debug msg, test expects is Investigate whether it should expect such output at a later date, for now, just let the test pass.
@@ -607,8 +607,8 @@ class _DSPGenerator: config.platform = 'Win32' self.configs[variant] = config - # DEBUG - # print("Adding '" + self.name + ' - ' + config.variant + '|' + config.platform + "' to '" + str(dspfile) + "'") + # DEBUG: leave enabled, test/MSVS/CPPPATH-dirs.py expects this + print("Adding '" + self.name +...
Update ek_spelevo.txt Root forms to hold more potential subdomains for this EK.
@@ -85,3 +85,61 @@ world.italyalemanes.top # Reference: https://otx.alienvault.com/pulse/5d40766ecabf3f345b3811db shark.denizprivatne.top + +# Misc. + +aphroditedrink.top +armlessdance.top +awesomeablam.top +barbiereallity.top +beestkilroys.top +belarusapple.top +bloggerlolicon.top +bridgettepromise.top +brunetbebitas....
Change NodeJS 12->14, include apt-utils fix: nodejs12 not build docker fix: apt-utils warning
@@ -10,14 +10,14 @@ ENV APT_INSTALL="apt-get -y install --no-install-recommends" ENV APT_UPDATE="apt-get -y update" ENV PIP_INSTALL="python3 -m pip install" -ADD https://deb.nodesource.com/setup_12.x /tmp +ADD https://deb.nodesource.com/setup_14.x /tmp ADD https://dl.google.com/linux/direct/google-chrome-stable_current...
Added more useful output on overwrite fail ListifyRobot fails on non-empty page for output, adding a more helpful error message.
@@ -944,8 +944,10 @@ class CategoryListifyRobot(object): else: listString += "*[[:%s]]\n" % article.title() if self.list.exists() and not self.overwrite: - pywikibot.output(u'Page %s already exists, aborting.' - % self.list.title()) + pywikibot.output( + 'Page {} already exists, aborting.\n' + 'Use -overwrite option to...
Fix the problem that BlockVerifier did not choose proper tx hash generator
from typing import TYPE_CHECKING from . import BlockBuilder from .. import BlockVerifier as BaseBlockVerifier -from ... import TransactionVerifier +from ... import TransactionVerifier, TransactionVersions if TYPE_CHECKING: from . import BlockHeader, BlockBody @@ -51,8 +51,9 @@ class BlockVerifier(BaseBlockVerifier): re...
Use the ingress cert for IBM Cloud deployments Use the ingress cert for IBM Cloud deployments
@@ -1185,7 +1185,10 @@ def obc_io_create_delete(mcg_obj, awscli_pod, bucket_factory): def retrieve_verification_mode(): - if config.ENV_DATA["platform"].lower() == "ibm_cloud": + if ( + config.ENV_DATA["platform"] == constants.IBMCLOUD_PLATFORM + and config.ENV_DATA["deployment_type"] == "managed" + ): verify = True el...
Ctypes: Make "is" and "is not" compararison target C type aware. * This now generates the needed target type from the values given to be identical.
@@ -80,6 +80,36 @@ def generateComparisonExpressionCode(to_name, expression, emit, context): ) ) + return + elif comparator == "Is": + emit( + to_name.getCType().getAssignmentCodeFromBoolCondition( + to_name = to_name, + condition = "%s == %s" % (left_name, right_name) + ) + ) + + getReleaseCodes( + release_names = (le...
Fix optimised_pow2_inplace() on Python 3.10 Fix optimised_pow2_inplace() doctest on Python 3.10 because the error message changed. Python 3.9 error message: unsupported operand type(s) for ** or pow(): 'int' and 'str' Python 3.10 error message: unsupported operand type(s) for **=: 'int' and 'str'
@@ -153,9 +153,9 @@ def optimised_pow2_inplace(n): 0.5 >>> optimised_pow2_inplace(0.5) == 2 ** 0.5 True - >>> optimised_pow2_inplace('test') + >>> optimised_pow2_inplace('test') #doctest: +ELLIPSIS Traceback (most recent call last): - TypeError: unsupported operand type(s) for ** or pow(): 'int' and 'str' + TypeError: ...
Fix ordering of tf and tflite installs in ci_cpu The recently merged 8306 PR introduced a depedency for tflite installation that tf must be installed first. However, that PR did not correct the ordering in ci_cpu which does not have that ordering.
@@ -79,14 +79,14 @@ RUN bash /install/ubuntu_install_sbt.sh COPY install/ubuntu_install_verilator.sh /install/ubuntu_install_verilator.sh RUN bash /install/ubuntu_install_verilator.sh -# TFLite deps -COPY install/ubuntu_install_tflite.sh /install/ubuntu_install_tflite.sh -RUN bash /install/ubuntu_install_tflite.sh - # ...
notifications: Reformat 0003 migration To make it easier to add more choices here.
@@ -15,6 +15,35 @@ class Migration(migrations.Migration): migrations.AlterField( model_name='notificationtemplate', name='type', - field=models.CharField(choices=[('reservation_requested', 'Reservation requested'), ('reservation_requested_official', 'Reservation requested official'), ('reservation_cancelled', 'Reservat...
osd autodiscovery mode: fix holders detection Small fix for (probably copy&paste) issue from
- ansible_devices is defined - item.0.item.value.removable == "0" - item.0.item.value.partitions|count == 0 - - item.value.holders|count == 0 + - item.0.item.value.holders|count == 0 - item.0.rc != 0 - name: check if a partition named 'ceph' exists (autodiscover disks)
enable docker layer caching in circleci remove "Download docker images for cache" step as we don't need it any more
@@ -12,9 +12,7 @@ jobs: pre-commit run --all-files - setup_remote_docker: version: 17.10.0-ce - - run: - name: Download docker images for cache - command: make pull + docker_layer_caching: true - run: name: Build docker images command: make build-ci
Fix finding interpreters if file matches spec Before this fix, when running `pdm use python` if there was a file or folder named `python` then the code would not look for other installed interpreters.
@@ -632,7 +632,6 @@ class Project: python = find_python_in_path(python_spec) if python: yield PythonInfo.from_path(python) - else: python = shutil.which(python_spec) if python: yield PythonInfo.from_path(python)
BUG: When filling an array from the cache, store original for objects For object dtypes when the dimension limit is reached, we should prefer to store the original object, even if we have a converted array available.
@@ -632,6 +632,7 @@ PyArray_AssignFromCache_Recursive( PyArrayObject *self, const int ndim, coercion_cache_obj **cache) { /* Consume first cache element by extracting information and freeing it */ + PyObject *original_obj = (*cache)->converted_obj; PyObject *obj = (*cache)->arr_or_sequence; Py_INCREF(obj); npy_bool seq...
Try kill -9ing apt-get Summary: Pull Request resolved: Test Plan: Imported from OSS
@@ -37,6 +37,9 @@ sudo apt-get purge -y unattended-upgrades cat /etc/apt/sources.list +# For the bestest luck, kill -9 now +sudo pkill -9 apt-get || true + # Bail out early if we detect apt/dpkg is stuck ps auxfww | (! grep '[a]pt') ps auxfww | (! grep '[d]pkg')
Remove right frame flip Gives better results
@@ -101,7 +101,6 @@ with dai.Device() as device: rightFrame = qRight.get().getFrame() disparityFrame = qDisparity.get().getFrame() - rightFrame = cv2.flip(rightFrame, flipCode=1) cv2.imshow("rectified right", rightFrame) cv2.imshow("disparity", disparityFrame)
Update solaris core grains test The check for zpool grains was moved out of core grains and into zfs grains. The mock for the call to zpool grains function was failing. We also need to update any calls to the salt.utils file to use the new paths.
@@ -27,6 +27,7 @@ from tests.support.mock import ( # Import Salt Libs import salt.utils.files import salt.utils.platform +import salt.utils.path import salt.grains.core as core # Import 3rd-party libs @@ -938,15 +939,15 @@ SwapTotal: 4789244 kB''' path_isfile_mock = MagicMock(side_effect=lambda x: x in ['/etc/release']...
Temporary workaround to bypass the proxy until the reason for the chameleon crash is found.
@@ -24,7 +24,7 @@ services: - --consul=consul:8500 - --fluentd=fluentd:24224 - --rest-port=8881 - - --grpc-endpoint=voltha:50555 + - --grpc-endpoint=vcore:50556 - --instance-id-is-container-name networks: - voltha-net
Fix typo on _merge_url seperator -> separator
@@ -370,7 +370,7 @@ class BaseClient: if merge_url.is_relative_url: # To merge URLs we always append to the base URL. To get this # behaviour correct we always ensure the base URL ends in a '/' - # seperator, and strip any leading '/' from the merge URL. + # separator, and strip any leading '/' from the merge URL. # # ...
Refactor infraction_edit and infraction_append This refactors the infraction_edit and infraction_append commands to utilize the Infraction converter.
@@ -10,7 +10,7 @@ from discord.utils import escape_markdown from bot import constants from bot.bot import Bot -from bot.converters import Expiry, Snowflake, UserMention, allowed_strings, proxy_user +from bot.converters import Expiry, Infraction, Snowflake, UserMention, allowed_strings, proxy_user from bot.exts.moderati...
Set negative scale factor reflections with the excluded flag as opposed to outlier flag.
@@ -278,9 +278,9 @@ def remove_bad_data(self): for table in self.reflections: bad_sf = table["inverse_scale_factor"] < 0.001 n += bad_sf.count(True) - table.set_flags(bad_sf, table.flags.outlier_in_scaling) + table.set_flags(bad_sf, table.flags.excluded_for_scaling) if n > 0: - logger.info("%s reflections set as outlie...
Changes wilcard optimizer to Nelder-Mead. After realizing that the landscape seems particularly challenging, as the L-BFGS-B and CG methods fail to find good optima.
@@ -1623,7 +1623,9 @@ def get_wildcard_budget(model, ds, circuitsToUse, parameters, evaltree_cache, co a, b = _wildcard_objective_firstTerms(Wv), eta * _np.linalg.norm(Wv, ord=1) print('wildcard: misfit + L1_reg = %.3g + %.3g = %.3g' % (a,b,a+b),Wv) soln = _spo.minimize(_wildcard_objective, Wvec_init, - method='L-BFGS-...
improve hosts template HG-- branch : feature/microservices
# {{ ansible_managed }} -127.0.0.1 localhost -::1 localhost ip6-localhost ip6-loopback +127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 +::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 # The following lines are desirable for IPv6 capable hosts. fe00::0 ip6-localnet
ceph-defaults: fix containerized osd restarts This needs to check `containerized_deployment` because socket_osd_container is undefined otherwise.
when: # We do not want to run these checks on initial deployment (`socket_osd_container.results[n].rc == 0`) # except when a crush location is specified. ceph-disk will start the osds before the osd crush location is specified + - containerized_deployment - ((crush_location is defined and crush_location) or item.get('r...
isAlive removed in Python 9, change to is_alive See for more details
@@ -502,7 +502,7 @@ def start(host, tlsport, port): # keep the main thread active, so it can process the signals and gracefully shutdown while True: - if not any([thread.isAlive() for thread in threads]): + if not any([thread.is_alive() for thread in threads]): # All threads have stopped break # Some threads are still ...
fix!: use repeatable read isolation level RR isolation is default in MariaDB, for sake of consistency use same isolation level in postgres
@@ -3,7 +3,7 @@ from typing import List, Tuple, Union import psycopg2 import psycopg2.extensions -from psycopg2.extensions import ISOLATION_LEVEL_AUTOCOMMIT +from psycopg2.extensions import ISOLATION_LEVEL_REPEATABLE_READ from psycopg2.errorcodes import STRING_DATA_RIGHT_TRUNCATION import frappe @@ -69,7 +69,7 @@ class...
race host added subscribe_to_races function added
@@ -26,6 +26,7 @@ class BetfairStream(object): HOSTS = collections.defaultdict( lambda: 'stream-api.betfair.com', integration='stream-api-integration.betfair.com', + race='sports-data-stream-api.betfair.com', ) def __init__(self, unique_id, listener, app_key, session_token, timeout, buffer_size, description, host): @@ ...
Update accuracy-check.yml * Update accuracy-check.yml Corrected inputs name for onnx_runtime framework. * Update accuracy-check.yml Removed inputs section for onnx_runtime framework
@@ -5,10 +5,6 @@ models: - framework: onnx_runtime model: resnet-v1-50.onnx adapter: classification - inputs: - - name: data - type: INPUT - shape: 1,3,224,224 datasets: - name: imagenet_1000_classes
Enforce usage of urllib2 instead of urllib for updates urllib1 SSL implementation is broken in some situations (for instance when using specific web proxies...).
@@ -14,7 +14,7 @@ import sqlite3 import subprocess import sys import time -import urllib +import urllib2 import urlparse sys.dont_write_bytecode = True @@ -270,10 +270,9 @@ def update_ipcat(force=False): print "[i] updating ipcat database..." try: - if PROXIES: - urllib.URLopener(PROXIES).urlretrieve(IPCAT_URL, IPCAT_C...
Pontoon: Update Indonesian (id) localization of AMO Localization authors: eljuno Kiki Reinhart Previano K.
@@ -1806,9 +1806,8 @@ msgstr "" msgid "Comment on {addon} {version}." msgstr "Komentar untuk {addon} {version}." -#, fuzzy msgid "Commented" -msgstr "dikomentari" +msgstr "Dikomentari" msgid "{tag} added to {addon}." msgstr "{tag} ditambahkan ke {addon}." @@ -7905,7 +7904,6 @@ msgstr "Pengaya Mozilla telah dipindahkan ...
CONTRIBUTING.md: Note on protoc I had to do this on my fresh installation of Ubuntu 20.04
@@ -59,6 +59,8 @@ pushd <your_source_dir> pip install -e .[all] # the [all] suffix includes additional packages for test ``` +Note that you have to have protocol buffer compiler `protoc` installed in order to be able to install the requirements. Download the latest version [here](https://github.com/protocolbuffers/prot...
fix skipped_backward tests to return as PASS If skip_backward/skip_double_back is False, the test is marked as skipped, even when the Forward is checked and passes successfully. This change will make sure that, even these tests are marked as PASS by Pytest
import inspect import sys +import unittest import numpy import pytest @@ -79,6 +80,27 @@ class OpTest(chainer.testing.function_link.FunctionTestBase): raise NotImplementedError( 'Op test implementation must override `forward_chainerx`.') + def run_test_forward(self, backend_config): + # Skipping Forward -> Test Skipped...
Fix tf2 lite nano camera support Fix tflite input/output conversion.
import os +import numpy as np import tensorflow as tf from donkeycar.parts.keras import KerasPilot @@ -55,7 +56,7 @@ class TFLitePilot(KerasPilot): self.input_shape = self.input_details[0]['shape'] def inference(self, img_arr, other_arr): - input_data = img_arr.reshape(self.input_shape) + input_data = np.float32(img_ar...
[Test] rename to test_brevitas_trained_lfc_w1a1_pytorch since w1a2 is coming
@@ -15,15 +15,15 @@ from finn.core.modelwrapper import ModelWrapper export_onnx_path = "test_output_lfc.onnx" # TODO get from config instead, hardcoded to Docker path for now -trained_lfc_checkpoint = ( +trained_lfc_w1a1_checkpoint = ( "/workspace/brevitas_cnv_lfc/pretrained_models/LFC_1W1A/checkpoints/best.tar" ) -def...
Add comment formatting to NCL_conOncon_1.py A line beginning with 20 or more '#' characters tells sphinx-gallery to create a text cell containing the following comment lines instead of a code block when generating Jupyter notebooks from Python scripts.
@@ -5,20 +5,32 @@ conOncon_1 Plots/Contours/Lines """ +################################################################################ +# +# import modules +# import numpy as np import xarray as xr - import matplotlib.pyplot as plt import matplotlib.ticker as tic from matplotlib.ticker import ScalarFormatter - from pp...
api/iodevices/Ev3devSensor: add device index This makes it easy to find the sensor to access additional features through the ev3dev lego-sensor and lego-port classes.
@@ -35,7 +35,13 @@ class LUMPDevice(): class Ev3devSensor(): - """Read values with an ev3dev-compatible sensor.""" + """Read values of an ev3dev-compatible sensor.""" + + sensor_index = 0 + """Index of the ev3dev sysfs `lego-sensor`_ class.""" + + port_index = 0 + """Index of the ev3dev sysfs `lego-port`_ class.""" def...
Fix link to custom tutorial Missing an s
@@ -30,7 +30,7 @@ Ubuntu 18.04. We have a bunch of tutorials to get you started. tutorials/jetstream tutorials/google -- :ref:`tutorial/custom`. +- :ref:`tutorials/custom`. You should use this if your cloud provider does not already have a direct tutorial, or if you have experience setting up servers.
TST: Add test for 1d hetrd This test could not be run previously due to a numpy bug (see as the minimum numpy version (1.14) required by SciPy now includes the fix, we are able to add the requried test.
@@ -709,21 +709,12 @@ class TestHetrd(object): @pytest.mark.parametrize('real_dtype,complex_dtype', zip(REAL_DTYPES, COMPLEX_DTYPES)) - def test_hetrd(self, real_dtype, complex_dtype): - n = 3 + @pytest.mark.parametrize('n', (1, 3)) + def test_hetrd(self, n, real_dtype, complex_dtype): A = np.zeros((n, n), dtype=comple...
Griewank function description added; bug fixes
@@ -32,7 +32,7 @@ class MyBenchmark(object): for i in range(10): Algorithm = DifferentialEvolutionAlgorithm( - 10, 40, 10000, 0.5, 0.9, 'whitley') + 10, 40, 10000, -32.768, 32.768, 'griewank') Best = Algorithm.run() logger.info(Best)
Fix the signal handling to work on Windows This includes handling the SIGBREAK signal which is raised on Windows resulting in the correct graceful shutdown.
@@ -1371,11 +1371,9 @@ class Quart(Scaffold): def _signal_handler(*_: Any) -> None: shutdown_event.set() - try: - loop.add_signal_handler(signal.SIGTERM, _signal_handler) - loop.add_signal_handler(signal.SIGINT, _signal_handler) - except (AttributeError, NotImplementedError): - pass + for signal_name in {"SIGINT", "SIG...
Add FW versions for 2018 Lexus NX Hybrid New Ecu Engine and Ecu Esp for NX Hybrid My18 European Edition, I'm From Italy
@@ -1225,10 +1225,12 @@ FW_VERSIONS = { (Ecu.engine, 0x7e0, None): [ b'\x0237882000\x00\x00\x00\x00\x00\x00\x00\x00A4701000\x00\x00\x00\x00\x00\x00\x00\x00', b'\x0237841000\x00\x00\x00\x00\x00\x00\x00\x00A4701000\x00\x00\x00\x00\x00\x00\x00\x00', + b'\x0237886000\x00\x00\x00\x00\x00\x00\x00\x00A4701000\x00\x00\x00\x00\...
[validation] Replace required_openstack in neutron/network.py Replaces old required_openstack decorator with new validation.add in neutron/network.py.
@@ -156,7 +156,7 @@ class CreateAndUpdateSubnets(utils.NeutronScenario): @validation.number("subnets_per_network", minval=1, integer_only=True) @validation.required_services(consts.Service.NEUTRON) -@validation.required_openstack(users=True) +@validation.add("required_platform", platform="openstack", users=True) @scena...
Fix mapped dimensions in simple initiator Note: Unsure why it was not done this way beforehand.
@@ -119,8 +119,8 @@ class SimpleMeasurementInitiator(GaussianInitiator): prior_state_vector = self.prior_state.state_vector.copy() prior_covar = self.prior_state.covar.copy() - mapped_dimensions, _ = np.nonzero( - model_matrix.T @ np.ones((model_matrix.shape[0], 1))) + mapped_dimensions = measurement_model.mapping + pr...
Scheduler: drop _task suffix from method names It's redundant. After all, this scheduler cannot schedule anything else.
@@ -18,7 +18,7 @@ class Scheduler: """Return True if a task with the given `task_id` is currently scheduled.""" return task_id in self._scheduled_tasks - def schedule_task(self, task_id: t.Hashable, task: t.Awaitable) -> None: + def schedule(self, task_id: t.Hashable, task: t.Awaitable) -> None: """Schedule the executi...
Add json "strict" parameter to CoreNLP This allows the (optional) processing of text control characters without raising errors.
@@ -48,6 +48,7 @@ class CoreNLPServer: java_options=None, corenlp_options=None, port=None, + strict_json=True, ): if corenlp_options is None: @@ -98,6 +99,7 @@ class CoreNLPServer: self.corenlp_options = corenlp_options self.java_options = java_options or ["-mx2g"] + self.strict_json = strict_json def start(self, stdou...
Azure : Run Nightly builds Azure will now run nightly builds on `master` as long as changes have been made to the repo since the last build.
trigger: - master +schedules: +- cron: "0 23 * * *" + displayName: Nightly + always: false + branches: + include: + - master + jobs : # We build on linux using a Docker container generated by GafferHQ/build.
[DOC] Update .all-contributorsrc with doc contribution by arampuria19 Update .all-contributorsrc with doc contribution by arampuria19
"code", "ideas" ] + }, + { + "login": "arampuria19", + "name": "Akshat Rampuria", + "profile": "https://github.com/arampuria19", + "contributions": [ + "doc" + ] } ] }
[BUG FIX] Fix: ray version check failed due to extra output in STDOUT Use files to transfer information across processes
@@ -5,6 +5,7 @@ import logging import os import shutil import sys +import tempfile from typing import Dict, List, Optional, Tuple from ray._private.async_compat import asynccontextmanager, create_task, get_running_loop @@ -167,10 +168,22 @@ class PipProcessor: """ async def _get_ray_version_and_path() -> Tuple[str, str...
Documentation added for the two new settting variables BLOG_ABSTRACT_CKEDITOR and BLOG_POST_TEXT_CKEDITOR
@@ -97,7 +97,8 @@ Global Settings * BLOG_PLUGIN_TEMPLATE_FOLDERS: (Sub-)folder from which the plugin templates are loaded. The default folder is ``plugins``. It goes into the ``djangocms_blog`` template folder (or, if set, the folder named in the app hook). This allows, e.g., different templates for showing a post list...
tests: don't install s3cmd on containerized setup The s3cmd package should only be installed on non containerized deployment.
vars: s3cmd_cmd: "s3cmd --no-ssl --access_key={{ system_access_key }} --secret_key={{ system_secret_key }} --host={{ rgw_multisite_endpoint_addr }}:8080 --host-bucket={{ rgw_multisite_endpoint_addr }}:8080" tasks: - - - name: check if it is Atomic host - stat: path=/run/ostree-booted - register: stat_ostree - check_mod...
improve installation instructions Added separated subsections for each OS (OS X, Linux, Windows) on the installation guide.
@@ -51,26 +51,45 @@ Received file written to README.md ```$ pip install magic-wormhole``` -Or on macOS with `homebrew`: `$ brew install magic-wormhole` -Or on Debian 9 and Ubuntu 17.04+ with `apt`: +### OS X + +On OS X, you may need to install `pip` and +run `$ xcode-select --install` to get GCC. + +Or with `homebrew`:...
ceph-nfs: fix ceph_nfs_ceph_user variable The ceph_nfs_ceph_user variable is a string for the ceph-nfs role but a list in ceph-client role. introduced a confusion between both variable type in the ceph-nfs role for external ceph with ganesha. Closes:
- name: copy rgw keyring when deploying internal ganesha with external ceph cluster copy: - src: "/etc/ceph/{{ cluster }}.{{ ceph_nfs_ceph_user.name }}.keyring" + src: "/etc/ceph/{{ cluster }}.{{ ceph_nfs_ceph_user }}.keyring" dest: "/var/lib/ceph/radosgw/{{ cluster }}-rgw.{{ ansible_hostname }}/keyring" mode: '0600' o...
tests/http_tests.py: Fix unittest.skipTest calls 'unittest.skipTest' does not exist. Replace it with `self.skipTest`.
@@ -652,8 +652,8 @@ class QueryStringParamsTestCase(HttpbinTestCase): """Test fetch method with no parameters.""" r = http.fetch(uri=self.url, params={}) if r.status == 503: # T203637 - unittest.skipTest('503: Service currently not available for ' - + self.url) + self.skipTest( + '503: Service currently not available f...