message
stringlengths
13
484
diff
stringlengths
38
4.63k
Better on_error handling for from_callable Pass the instance of the caught exception to the `on_error` handler, instead of the exception's type.
@@ -58,8 +58,8 @@ def from_callable(cls, supplier, scheduler=None): try: observer.on_next(supplier()) observer.on_completed() - except Exception: - observer.on_error(Exception) + except Exception as e: + observer.on_error(e) return scheduler.schedule(action) return AnonymousObservable(subscribe)
refactor(ldap): use posixgroup adjusted to posixgroup as openldap groups use objectclass 'posixgroup' for both a posix group and a samba group. issue
@@ -161,8 +161,8 @@ class LDAPSettings(Document): elif self.ldap_directory_server.lower() == 'openldap': - ldap_object_class = 'GroupOfNames' - ldap_group_members_attribute = 'member' + ldap_object_class = 'posixgroup' + ldap_group_members_attribute = 'memberuid' elif self.ldap_directory_server.lower() == 'custom':
Derive clone for consensus engine helpers This will make them easier to work with when writing engines.
@@ -32,7 +32,7 @@ pub enum Update { BlockCommit(BlockId), } -#[derive(Default, Debug, Eq, Hash, PartialEq)] +#[derive(Clone, Default, Debug, Eq, Hash, PartialEq)] pub struct BlockId(Vec<u8>); impl Deref for BlockId { type Target = Vec<u8>; @@ -53,7 +53,7 @@ impl From<Vec<u8>> for BlockId { } /// All information about a...
fix: use current_app instead of 'app' for callbacks. Not sure this really mattered - but makes things uniform. For callbacks - use current_app rather than app.
@@ -854,7 +854,7 @@ class Security(object): # N.B. as of jinja 2.9 '_' is always registered # http://jinja.pocoo.org/docs/2.10/extensions/#i18n-extension if "_" not in app.jinja_env.globals: - app.jinja_env.globals["_"] = state.i18n_domain.gettext + current_app.jinja_env.globals["_"] = state.i18n_domain.gettext @app.be...
Update __main__.py Better examples
@@ -283,6 +283,16 @@ print("Position of PP1 and PP2: ", obj.principalPlanePositions(z=0)) print("Focal spots positions: ", obj.focusPositions(z=0)) print("Distance between entrance and exit planes: ", obj.L) +path = ImagingPath() +path.fanAngle = 0.0 +path.fanNumber = 1 +path.rayNumber = 15 +path.objectHeight = 10.0 +p...
[Stress tester XFails] Update XFails Add two new timeouts that started occurring after migrating argument completion to solver-based Add another case of that I missed to add in my last PR
], "issueUrl" : "https://bugs.swift.org/browse/SR-14694" }, + { + "path" : "*\/MovieSwift\/MovieSwift\/MovieSwift\/views\/components\/moviesList\/base\/MoviesList.swift", + "modification" : "unmodified", + "issueDetail" : { + "kind" : "codeComplete", + "offset" : 4791 + }, + "applicableConfigs" : [ + "main" + ], + "iss...
Fix race condition in `ThreadedHistory`. The Lock in `ThreadedHistory` was not always properly released, and because of that, in situations where the user was pasting enormous amounts of text, the application could freeze at the point where lines were added to the history.
@@ -158,8 +158,13 @@ class ThreadedHistory(History): continue # Read new items (in lock). - await loop.run_in_executor(None, self._lock.acquire) + # (Important: acquiring the lock should happen *in* the try + # block. Otherwise it's not guaranteed it will ever be + # released. This can happen when this coroutine is can...
libmanage.py: turn --cargs into --gargs and make it convenient for opts TN:
@@ -9,6 +9,7 @@ import os from os import path import pdb import pipes +import shlex import shutil import subprocess import sys @@ -375,8 +376,8 @@ class ManageScript(object): help='Disable warnings to build the generated library' ) subparser.add_argument( - '--cargs', nargs='*', default=[], - help='Options to pass as "...
[tasks] remove redundant condition in Loop.next_iteration self._task is only None if the Loop has never been started before, which means None should be returned always, regardless of how many seconds was passed into the constructor this didn't break anything before because self._next_iteration will be None as well if s...
@@ -154,7 +154,7 @@ class Loop: .. versionadded:: 1.3 """ - if self._task is None and self._sleep: + if self._task is None: return None elif self._task and self._task.done() or self._stop_next_iteration: return None
populate_db: Generate resolved topics for testing. To try to match normal workflow, some streams have many resolved topics and others have few.
@@ -6,6 +6,7 @@ from typing import Any, Dict, List import orjson from scripts.lib.zulip_tools import get_or_create_dev_uuid_var_path +from zerver.lib.topic import RESOLVED_TOPIC_PREFIX def load_config() -> Dict[str, Any]: @@ -36,7 +37,23 @@ def generate_topics(num_topics: int) -> List[str]: topic = " ".join(filter(None...
fix setting and getting locale on SUSE systems Also on with systems with systemd, SUSE still uses /etc/sysconfig/language
@@ -127,13 +127,14 @@ def get_locale(): salt '*' locale.get_locale ''' cmd = '' - if salt.utils.systemd.booted(__context__): + if 'Suse' in __grains__['os_family']: + # this block applies to all SUSE systems - also with systemd + cmd = 'grep "^RC_LANG" /etc/sysconfig/language' + elif salt.utils.systemd.booted(__context...
[modules/battery_all] Fix remaining time calculation Thanks to for pointing out a bug in the calculation of the remaining time for multiple batteries. see
@@ -6,6 +6,7 @@ Parameters: * battery.device : Comma-separated list of battery devices to read information from (defaults to auto for auto-detection) * battery.warning : Warning threshold in % of remaining charge (defaults to 20) * battery.critical : Critical threshold in % of remaining charge (defaults to 10) + * batt...
Update version 0.7.6 -> 0.7.7 New SampleSet object
# # ================================================================================================ -__version__ = '0.7.6' +__version__ = '0.7.7' __author__ = 'D-Wave Systems Inc.' __authoremail__ = 'acondello@dwavesys.com' __description__ = 'A shared API for binary quadratic model samplers.'
Don't get node info, if there is no node. It prevents the exception is reraised, if node is not ready.
@@ -118,7 +118,7 @@ class TestResult: set_filtered_fields(self, result_message, fields=fields) # get information of default node, and send to notifier. - if self.environment: + if self.environment and self.environment.nodes: environment_information = ( self.environment.default_node.get_node_information() )
Only check if docs build Summary: to facilitate OSS contributions Test Plan: Unit tests Reviewers: schrockn, alangenfeld, natekupp
-# py27 compat, see https://stackoverflow.com/a/844443/324449 -import io import os -import re import subprocess import sys from dagster.utils import script_relative_path -BUILT_DOCS_RELATIVE_PATH = '_build/' - -IGNORE_FILES = [ - '.DS_Store', - '.pytest_cache', - 'objects.inv', - '[A-Z0-9a-z_-]*\\.png', - '[A-Z0-9a-z_-...
Test fix - BuildKit Fails on CI Fix
@@ -54,13 +54,15 @@ ENV WORKDIR /out RUN mkdir -p $WORKDIR WORKDIR $WORKDIR +# The argument needs to be re-declared otherwise it returns an empty string. +ARG fuzzer # Copy over all the build artifacts (without * to preserve directory structure). # This also copies seed and dictionary files if they are available. COPY ...
Update radix_sort.py This will fix the error in the list index showing as float
@@ -10,8 +10,8 @@ def radixsort(lst): # split lst between lists for i in lst: - tmp = i / placement - buckets[tmp % RADIX].append( i ) + tmp = int((i / placement) % RADIX) + buckets[tmp].append(i) if maxLength and tmp > 0: maxLength = False
Attach subscription during provisioning. Fixes
pool: "{{ rhsm_pool }}" when: "'Current' not in subscribed.stdout and rhsm_user is defined and rhsm_user" + - name: Check if subscription is attached + command: subscription-manager list --consumed --pool-only --matches="{{ rhsm_pool }}" + register: subscription_attached + changed_when: no + + - block: + - name: Get po...
Added few data sources and updated previous ones. Made few changes in data sources: 1.) Added links to few data sources. 2.) Updated previous data sources with added links to their respective sites.
@@ -5,10 +5,13 @@ to select data source basing on location, or on the user's preferences. ## Possible data sources -* OpenWeatherMap -* AccuWeather -* Windy.com -* yr.no +* [Open weather map](https://openweathermap.org/) +* [Accu weather](https://www.accuweather.com/) +* [Windy](https://www.windy.com/?26.953,75.711,5) ...
client: disable profiler of cas We don't see download slowness now.
@@ -604,18 +604,6 @@ def _fetch_and_map_with_cas(cas_client, digest, instance, output_dir, cache_dir, 'info', ] - # cpu profile may not work fast on armv7l. - # https://crbug.com/1197523#c10 - do_profile = platform.machine() != 'armv7l' - - if do_profile: - cmd.extend([ - '-profile-output-dir', - profile_dir, - '-profi...
Add CHANGELOG entries for 0.6.14 See also the 0.6-maintenance branch.
+0.6.14 2019-08-30 +----------------- + +* Bugfix follow Werkzeug LocalProxy name API. +* Bugfix ensure multiple files are correctly loaded. +* Bugfix ensure make_response status code is an int. +* Bugfix be clear about header encoding. +* Bugfix ensure loading form/files data is timeout protected. +* Bugfix add missin...
implement tri-state logic for create_flatten_image Customer wants to have more granularity, they want to create flatten 'image', but not separate 'image' per layer.
@@ -32,7 +32,7 @@ class CollectColorCodedInstances(pyblish.api.ContextPlugin): # TODO check if could be set globally, probably doesn't make sense when # flattened template cannot subset_template_name = "" - create_flatten_image = False + create_flatten_image = "no" # probably not possible to configure this globally fla...
docs/CARS: add 2022 Camry * Add 2022 Camry ICE DongleID/route f72a3ad7dc38d5cf|2021-11-14--09-21-28 * fix whitespace
| Toyota | Avalon 2016-21 | TSS-P | Stock<sup>3</sup>| 20mph<sup>1</sup> | 0mph | | Toyota | Avalon Hybrid 2019-21 | TSS-P | Stock<sup>3</sup>| 20mph<sup>1</sup> | 0mph | | Toyota | Camry 2018-20 | All | Stock | 0mph<sup>4</sup> | 0mph | -| Toyota | Camry 2021 | All | openpilot | 0mph<sup>4</sup> | 0mph | +| Toyota | C...
Camera animation issue. Fixed, by getting correct camera object from depsgraph.
@@ -223,11 +223,12 @@ class RenderEngine(Engine): return # EXPORT CAMERA - camera_key = object.key(scene.camera) + camera_key = object.key(scene.camera) # current camera key rpr_camera = self.rpr_context.create_camera(camera_key) self.rpr_context.scene.set_camera(rpr_camera) - camera_obj = scene.camera + # camera objec...
fix: minor changes Clear headline to avoid duplicate headlines. Dont show headline for new forms
@@ -8,14 +8,14 @@ frappe.ui.form.on('Web Template', { } frm.toggle_display('standard', frappe.boot.developer_mode); - frm.toggle_display('template', !frm.doc.standard); }, standard: function(frm) { - if (!frm.doc.standard) { + if (!frm.doc.standard && !frm.is_new()) { // If standard changes from true to false, hide tem...
postgresql compatibility for get_l3_agent routines This commit fixes a bug caused by the sqlalchemy group_by statement in the get_l3_agent routines when using postgresql. All select statements need to be replicated in the group_by statement. Closes-Bug:
@@ -96,7 +96,7 @@ class Agent(base.NeutronDbObject): rb_model.RouterL3AgentBinding.router_id ).label('count')).outerjoin( rb_model.RouterL3AgentBinding).group_by( - agent_model.Agent.id, + agent_model.Agent, rb_model.RouterL3AgentBinding .l3_agent_id).order_by('count') res = query.filter(agent_model.Agent.id.in_(agent_...
Also auto-append .bat on windows (fixes This is apparently how dart wraps scripts on Windows
@@ -20,10 +20,11 @@ def add_extension_if_missing(server_binary_args: 'List[str]') -> 'List[str]': # what extensions should we append so CreateProcess can find it? # node has .cmd - # are .bat files common? + # dart has .bat # python has .exe wrappers - not needed - if path_to_executable and path_to_executable.lower().e...
import separate files from Ramda to prevent the entire ramda library from being bundled
/* eslint-disable no-undef,react/no-did-update-set-state,no-magic-numbers */ -import R from 'ramda'; +import { + comparator, + equals, + forEach, + has, + isEmpty, + lt, + path, + pathOr, + sort, +} from 'ramda'; import React from 'react'; import PropTypes from 'prop-types'; import {connect} from 'react-redux'; @@ -40,...
Lkt: add missing doc for the public GrammarDecl.lexer property TN:
@@ -974,11 +974,13 @@ class GrammarDecl(BaseGrammarDecl): syn_name = Field(type=T.DefId) rules = Field(type=T.FullDecl.list) - lexer = Property( - Entity.full_decl.get_annotation('with_lexer') - .params.params.at(0).value.as_entity.check_referenced_decl, - public=True - ) + @langkit_property(public=True) + def lexer():...
Fix the view to origin This should prevent surprising scroll behavior, since (0, 0) is always in the view bounding box. The canvas can grow by moving items further away from the origin, but origin remains the anchor point. Also, origin is put in the upper left when opening a diagram.
@@ -207,7 +207,10 @@ class GtkView(Gtk.DrawingArea, Gtk.Scrollable): @property def bounding_box(self) -> Rectangle: """The bounding box of the complete view, relative to the view port.""" - return Rectangle(*self._qtree.soft_bounds) + bounds = Rectangle(*self._qtree.soft_bounds) + vx0, vy0 = self._matrix.transform_poin...
reraise the same error instead of reraising the same class of error. Makes sure BBQ detects the same error.
@@ -189,7 +189,7 @@ def _networkimport(channel_id, update_progress=None, check_for_cancel=None): except OSError: pass ChannelMetadataCache.objects.filter(id=channel_id).delete() - raise UserCancelledError + raise connections.close_all() # close all DB connections (FIX for #1818) def _localimport(drive_id, update_progre...
Added to new Plugins bottle-jwt: JSON Web Token authentication plugin for bottle.py bottle-smart-filters: Bottle Querystring smart guessing.
@@ -53,5 +53,13 @@ Have a look at :ref:`plugins` for general questions about plugins (installation, `Bottle-Werkzeug <http://pypi.python.org/pypi/bottle-werkzeug/>`_ Integrates the `werkzeug` library (alternative request and response objects, advanced debugging middleware and more). +`bottle-smart-filters <https://gith...
ebuild.repository: UnconfiguredTree: add deprecated attr To build a packages restriction from profiles/package.deprecated for use by pkgcheck.
@@ -627,6 +627,12 @@ class UnconfiguredTree(prototype.tree): """Base package masks from profiles/package.mask.""" return frozenset(chain.from_iterable(repo._profile.masks[1] for repo in self.trees)) + @klass.jit_attr + def deprecated(self): + """Base deprecated packages restriction from profiles/package.deprecated.""" ...
Moves an import statement to be function-local. In order to keep the desired global-import dependencies to the tree structure described in the pyGSTi manual, an import from algorithms from within objects (not in the tree) has been relocated so it is local to the one function that needs it.
@@ -9,9 +9,6 @@ from __future__ import division, print_function, absolute_import, unicode_litera import numpy as _np import matplotlib.pyplot as plt -from ..algorithms import germselection as germsel - - class GermSetEval: def __init__(self, germset=None, gatesets=None, resultDict=None, errorDict=None): @@ -95,6 +92,8 ...
Update bibliography.bib Added references for LARS
@@ -40,6 +40,30 @@ eprint = {https://arc.aiaa.org/doi/pdf/10.2514/6.2019-3333} title = {Turbulence and the dynamics of coherent structures. I. Coherent structures} } +@article{LARS, + author = {Bradley Efron and Trevor Hastie and Iain Johnstone and Robert Tibshirani}, + title = {Least angle regression}, + journal = {Th...
add option reverse for _get_selected, update docstring and use reverse = False in copy to clipboard
@@ -682,7 +682,7 @@ class FilterCoeffs(QWidget): cr = "\n" # newline character text = "" - sel = self._get_selected(self.tblCoeff)['sel'] + sel = self._get_selected(self.tblCoeff, reverse=False)['sel'] if not np.any(sel): # nothing selected -> copy everything raw from ba for r in range(self.num_rows): # text += qstr(se...
Reject abstract AST nodes with no concrete subclass (no-tn-check)
@@ -757,6 +757,24 @@ class CompileCtx(object): # Langkit_Support.Lexical_Env generic package requires it. T.env_md.require_hash_function() + def check_concrete_subclasses(self, astnode): + """ + Emit an error if `astnode` is abstract and has no concrete subclass. + + :param ASTNodeType astnode: AST node to check. + """...
check for empty reason after determining duration fixes
@@ -337,13 +337,14 @@ class Moderation(BaseCog): @commands.bot_has_permissions(ban_members=True) async def tempban(self, ctx: commands.Context, user: DiscordUser, duration: Duration, *, reason: Reason = ""): """tempban_help""" - if reason == "": - reason = Translator.translate("no_reason", ctx.guild.id) if duration.uni...
fw/version: Bump revison versions Bump the revision version for WA and the required version for devlib.
@@ -21,9 +21,9 @@ from subprocess import Popen, PIPE VersionTuple = namedtuple('Version', ['major', 'minor', 'revision', 'dev']) -version = VersionTuple(3, 1, 1, 'dev1') +version = VersionTuple(3, 1, 2, '') -required_devlib_version = VersionTuple(1, 1, 0, 'dev1') +required_devlib_version = VersionTuple(1, 1, 1, '') def...
Updates CI for C++11 (again..) TravisCI is.... picky...
#!/bin/bash # This script needs to be run as admin sudo apt-get update -sudo apt-get install g++ ##An example of how to search for a file in apt packages ## (useful for debugging TravisCI build errors) @@ -21,10 +20,25 @@ sudo apt-get install g++ apt-get install libsuitesparse-dev cp /usr/lib/liblapack.so /usr/lib/libs...
Change index for shaft and disks when importing This will make it standard to change the index from 1 based to 0 based which is the python standard. Before commit this was done only to the shaft.
@@ -117,7 +117,11 @@ def read_table_file(file, element, sheet_name=0, n=0, sheet_type="Model"): if row[i].lower() == header_key_word: header_index = index header_found = True - if "inches" in row[i].lower() or "lbm" in row[i].lower() or 'lb' in row[i].lower(): + if ( + "inches" in row[i].lower() + or "lbm" in row[i].lo...
Fixes an error with canonical url. Summary: Deleted this section by mistake in last PR. Pull Request resolved:
@@ -142,6 +142,14 @@ html_theme_path = [pytorch_sphinx_theme.get_html_theme_path()] # further. For a list of options available for each theme, see the # documentation. +html_theme_options = { + 'pytorch_project': 'docs', + 'canonical_url': 'https://pytorch.org/docs/stable/', + 'collapse_navigation': False, + 'display_v...
Fix Requests Session verify parameter Due to bad variable naming, the wrong value was being passed to the verify session parameter. Let's rename the variables to reflect the insecure SSL parameter semantics.
@@ -58,7 +58,7 @@ class DownloadRemoteSourcePlugin(PreBuildPlugin): self.log.info('Checking for additional configurations at %s', url) session = get_retrying_requests_session() - session.verify = insecure + session.verify = not insecure response = session.get(url) response_json = response.json() @@ -75,8 +75,8 @@ class...
refactor: rate limiter decorator added We have rate limiter for reset passowrd alone and it is not re-usable for other endpoints. Added a generic rate limiter decorator that can be used for any endpoint.
from __future__ import unicode_literals from datetime import datetime +from functools import wraps +from typing import Union + +from werkzeug.wrappers import Response + import frappe from frappe import _ from frappe.utils import cint -from werkzeug.wrappers import Response def apply(): @@ -79,3 +83,40 @@ class RateLimi...
Misc cleanup reinstate `IsTopic` computed property remove duplicate KCircularLoader instantiate content and channel from Vuex
:genContentLink="genContentLink" @close="markAsComplete" /> - <KCircularLoader v-else /> </div> </template> ...mapGetters(['isUserLoggedIn', 'currentUserId']), ...mapState(['pageName']), ...mapState('topicsTree', { + content: state => state.content, contentId: state => state.content.content_id, contentNodeId: state => ...
Switch to stable Juju 2.7 by default for addon Also allow overriding the version used with an environment variable.
@@ -4,20 +4,18 @@ set -eu source $SNAP/actions/common/utils.sh - function get_juju_client () { # check if juju cli is already in the system. Download if it doesn't exist. if [ ! -f "${SNAP_DATA}/bin/juju" ]; then + JUJU_VERSION="${JUJU_VERSION:-2.7.0}" + JUJU_SERIES=$(echo $JUJU_VERSION | sed 's|\.[0-9]\+$||') + run_wi...
README.md: Fix broken link to contribution guide Commit moved the guide from docs/contributing.md -> CONTRIBUTING.md without updating the reference in docs/README.md. Commit attempted to fix the link but did not uppercase the filename as needed.
* [Changelog](changelog.md) * User documentation - + [Contributing to Conan Center Index](../contributing.md) + + [Contributing to Conan Center Index](../CONTRIBUTING.md) + [Adding Packages to ConanCenter](how_to_add_packages.md) + [Review Process](review_process.md) + [Packaging policy](packaging_policy.md)
Update ROADMAP.md Broken link in the scikitlearn example
@@ -78,7 +78,7 @@ accelerate community innovation and collaboration. * Cloud AI Platform integration with BulkInferrer * Multi Framework Support in TFX Components * Experimental -[Scikit Learn example in TFX](https://github.com/tensorflow/tfx/blob/master/tfx/examples/iris/experimental/iris_pipeline_sklearn_local.py) +[...
ROADMAP: Update roadmap * ROADMAP: Update roadmap The roadmap is out of date. So we need to update it. * Address comment * Address comment
@@ -10,21 +10,30 @@ This document defines the roadmap for TiDB development. ## TiDB: - [ ] Optimizer - - [ ] Refactor Ranger - - [ ] Optimize the statistics info + - [x] Refactor Ranger - [ ] Optimize the cost model + - [ ] Join Reorder +- [ ] Statistics + - [x] Update statistics dynamically according to the query feed...
Tweaks to fix GPG signing. Ref:
@@ -46,11 +46,11 @@ jobs: path: dist - name: Configure GPG Key run: | - echo -n "${{ secrets.GPG_SIGNING_KEY }}" | base64 --decode | gpg --import + echo -n "${{ secrets.GPG_SIGNING_KEY }}" | base64 --decode | gpg --import --no-tty --batch --yes - name: Sign wheel - run: gpg --batch --pinentry loopback --passphrase ${{ ...
Update the release calendar Updated the release planning date to the release calendar. <img width="245" alt="Screen Shot 2021-03-03 at 11 43 28 AM" src="https://user-images.githubusercontent.com/44108233/109744474-b3f0eb00-7c15-11eb-9a8d-14f1b2088e0d.png">
@@ -152,7 +152,11 @@ The chart below is the expected release dates of minor releases. +------------+---------+ | Date | Version | +============+=========+ -| 02/10 2020 | 1.7.0 | +| 03/08 2021 | 1.7.0 | ++------------+---------+ +| 04/30 2021 | 1.8.0 | ++------------+---------+ +| 06/11 2021 | 1.9.0 | +------------+---...
fix: fix target matching for secondary accounts Secondary accounts have a different unique_id so would fail to match during convert. Add match on device_serial_number. closes
@@ -117,11 +117,17 @@ class AlexaNotificationService(BaseNotificationService): # hide_serial(alexa.unique_id), # alexa.entity_id, # ) - if item in (alexa, alexa.name, alexa.unique_id, alexa.entity_id): + if item in ( + alexa, + alexa.name, + alexa.unique_id, + alexa.entity_id, + alexa.device_serial_number, + ): if type...
Add rflush It is required. Seems to works without it when a single rwrite is issued, but it is required anytime rwrite is used.
@@ -2473,6 +2473,7 @@ static int mrf_handler(request_rec *r) } ap_set_content_length(r,this_record->size); ap_rwrite(this_data,this_record->size,r); + ap_rflush(r); // Got a hit, do we log anything? if (!hit_count--) {
Make sure we clean up the runner when we quit This should also take care of the greenlets
@@ -492,6 +492,8 @@ def main(): events.quitting.fire() events.parallel_quitting.fire() + if runners.locust_runner is not None: + runners.locust_runner.quit() print_stats(runners.locust_runner.request_stats) print_percentile_stats(runners.locust_runner.request_stats) if options.csvfilebase:
Update README.md no s on packages
@@ -15,7 +15,7 @@ To train a model in FEDn you provide the client code (in 'client') as a tarball. ```bash tar -cf mnist.tar client gzip mnist.tar -cp mnist.tar.gz packages/ +cp mnist.tar.gz package/ ``` Navigate to 'https://localhost:8090/start' and follow the link to 'context' to upload the compute package.
hiero: update parse_container and ls to new functionality accepting track containers
@@ -124,11 +124,20 @@ def ls(): """ # get all track items from current timeline - all_track_items = lib.get_track_items() - - for track_item in all_track_items: - container = parse_container(track_item) - if container: + all_items = lib.get_track_items() + + # append all video tracks + for track in lib.get_current_sequ...
Hardcode docker username Rather than store it as a secret, which it is not, hardcode the value
@@ -34,7 +34,7 @@ jobs: - name: Docker login uses: docker/login-action@v1 with: - username: ${{ secrets.DOCKER_USERNAME }} + username: dimagi password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Run tests env:
Add gpu request support to k8s as a first pass, this hard-codes nvidia, which should be parameterized
@@ -896,18 +896,20 @@ class KubernetesDeploymentConfig(LongRunningServiceConfig): return kubernetes_env def get_resource_requirements(self) -> V1ResourceRequirements: - return V1ResourceRequirements( limits = { "cpu": self.get_cpus() + self.get_cpu_burst_add(), "memory": f"{self.get_mem()}Mi", "ephemeral-storage": f"{s...
doc/customdevices: use correct default argument Make it match the implementation.
@@ -109,11 +109,11 @@ class UARTDevice(): baudrate (int): Baudrate of the UART device. timeout (:ref:`time`): How long to wait during :meth:`.read` before giving up. If you choose ``None``, - it will wait forever. (*Default*: ``None``) + it will wait forever (*Default*: ``None``). """ pass - def read(self, length): + d...
Animation Editor : fix "multiple value" exception when dragging tangent ref
@@ -397,8 +397,10 @@ private: double solveForTime( const double tl, const double th, const double time ) const { - if( time <= 0.0 ) return 0.0; - if( time >= 1.0 ) return 1.0; + // NOTE : keeping tl and th in the range [0,1] ensures f is monotonic increasing over interval [0,1]. + + assert( 0.0 <= tl && tl <= 1.0 ); +...
Fix in the triangles.py class for the moment of inertia computation: A flipped sign, see given reference.
@@ -266,11 +266,11 @@ def mass_properties(triangles, (volume * (center_mass[[0, 2]]**2).sum()) inertia[2, 2] = integrated[4] + integrated[5] - \ (volume * (center_mass[[0, 1]]**2).sum()) - inertia[0, 1] = ( + inertia[0, 1] = - ( integrated[7] - (volume * np.product(center_mass[[0, 1]]))) - inertia[1, 2] = ( + inertia[1...
Make fieldnames of csv.DictReader Optional Also run stdlib/2and3/csv.pyi through black and isort
-from collections import OrderedDict import sys -from typing import Any, Dict, Iterable, Iterator, List, Mapping, Optional, Sequence, Text, Type, Union - -from _csv import (_reader, - _writer, - reader as reader, - writer as writer, - register_dialect as register_dialect, - unregister_dialect as unregister_dialect, - g...
Update histogram.py make default number of bins to be 100
@@ -55,7 +55,7 @@ def _hist_gray(gray_img, bins, lower_bound, upper_bound, mask=None): # return hist_data -def histogram(img, mask=None, bins=None, lower_bound=None, upper_bound=None, title=None): +def histogram(img, mask=None, bins=100, lower_bound=None, upper_bound=None, title=None): """Plot a histogram using ggplot ...
trivial: more suitable log in set_admin_password We support to change passwd of both Windows and Linux. So "Admin password" is preferable to "Root password" in the log.
@@ -3411,7 +3411,7 @@ class ComputeManager(manager.Manager): try: self.driver.set_admin_password(instance, new_pass) - LOG.info("Root password set", instance=instance) + LOG.info("Admin password set", instance=instance) instance.task_state = None instance.save( expected_task_state=task_states.UPDATING_PASSWORD)
Removed split Split was causing white character to return.
@@ -60,7 +60,7 @@ class GridEngineBatchSystem(AbstractGridEngineBatchSystem): def submitJob(self, subLine): process = subprocess.Popen(subLine, stdout=subprocess.PIPE) - result = int(process.stdout.readline().strip().split('.')[0]) + result = int(process.stdout.readline().strip()) return result def getJobExitCode(self,...
Update elf_mirai.txt Missed trails for binaries.
@@ -1479,3 +1479,26 @@ senpai.site # Reference: https://twitter.com/0xrb/status/1107592182100189184 /Pemex1.sh +/loligang.arc +/loligang.arm +/loligang.arm4 +/loligang.armv4l +/loligang.arm5 +/loligang.arm5n +/loligang.arm6 +/loligang.arm7 +/loligang.dbg +/loligang.i586 +/loligang.i686 +/loligang.m68k +/loligang.mips +...
Skip pillar refresh test This test is flaky and fails intermittently, even with the `flaky` decoractor. Skipping for now until we can debug further.
@@ -13,6 +13,7 @@ import textwrap from tests.support.case import ModuleCase from tests.support.helpers import flaky from tests.support.paths import TMP_PILLAR_TREE +from tests.support.unit import skipIf # Import Salt Libs import salt.utils.files @@ -169,6 +170,7 @@ class SaltUtilSyncModuleTest(ModuleCase): self.assertE...
Fix entity_to_id mapping entity_to_id mapping must be initialised from all triples, and not just the training triples, as e.g. contains entities in the test part which do not occur in the train part (neither as subject, nor object).
@@ -32,8 +32,10 @@ def main(training_file, test_file, output_direc): # Step 1: Create instances log.info("Create instances") training_triples = load_triples(path=training_file) + test_triples = load_triples(path=test_file) + all_triples = np.concatenate([training_triples, test_triples], axis=0) - entity_to_id, relation...
fix slack backend get_user_details contract correct username when USERNAME_WITH_TEAM settings enabled
@@ -40,7 +40,7 @@ class SlackOAuth2(BaseOAuth2): if self.setting('USERNAME_WITH_TEAM', True) and team and \ 'name' in team: - name = '{0}@{1}'.format(name, response['team']['name']) + username = '{0}@{1}'.format(username, response['team']['name']) return { 'username': username,
Add CRD admin permission to deployer SA This is following the instruction here
@@ -94,5 +94,11 @@ x-google-marketplace: deployerServiceAccount: roles: - type: ClusterRole # This is a cluster-wide ClusterRole + rulesType: CUSTOM # We specify our own custom RBAC roles + rules: + - apiGroups: ['apiextensions.k8s.io'] + resources: ['customresourcedefinitions'] + verbs: ['*'] + - type: Role # This is ...
Include authorization.conf in snapshot * Add log to make clear when something is not copied This is helpful to know if for some reason the expected file hasn't been found and it won't be included in the snapshot. * Add authorization.conf to the snapshot
@@ -92,6 +92,14 @@ def copy_files_between_manager_and_snapshot(archive_root, # This is a 4.x+ install, files go where they went. data_to_copy = [(path, path) for path in data_to_copy] + # Include roles configuration file in snapshot + data_to_copy.append( + ( + '/opt/manager/authorization.conf', + 'authorization.conf',...
Update documentation of GenericInvestmentStorageBlock Documentation of GenericInvestmentStorageBlock now uses same wording as the documentation of GenericStorageBlock. To avoid duplications, it redirects there where applicable.
@@ -221,7 +221,7 @@ class GenericStorageBlock(SimpleBlock): **The following constraints are created:** - Set last time step to the initial capacity if `balanced == True` + Set last time step to the initial capacity if :attr:`balanced == True` .. math:: E(n, t_{last}) = &E(n, -1)\\ &\forall n \in \textrm{STORAGES\_BALAN...
Cat program revised (v2) (bugfix) Additional change: * Fixed improper behavior if no arguments were passed
@@ -49,11 +49,11 @@ def no_files(): def main(): """Entry point of the cat program.""" - try: # Read the arguments passed to the program - with_files(sys.argv[1:]) - except IndexError: + if not sys.argv[1:]: no_files() + else: + with_files(sys.argv[1:]) if __name__ == "__main__": main()
Improve her_ddpg_fetchreach parameters Improve parameters of example her_ddpg_fetchreach; the original parameters are not working
"""This is an example to train a task with DDPG + HER algorithm. Here it creates a gym environment FetchReach. - -Results (may vary by seed): - AverageSuccessRate: 0.9 - RiseTime: epoch 8 """ import gym import tensorflow as tf @@ -67,11 +63,11 @@ def her_ddpg_fetchreach(ctxt=None, seed=1): qf_lr=1e-3, qf=qf, replay_buf...
[doc] Enable documentation generated for makecat.py script put all global settings into main and use global variables for access rename global variable "main" to "main_ns" use pywikibot.handle_args(args) before handling local options
@@ -58,10 +58,11 @@ class MakeCatBot(SingleSiteBot, NoRedirectPageBot): """Bot tries to find new articles for a given category.""" - @classmethod - def needcheck(cls, pl): + @staticmethod + def needcheck(pl): """Verify whether the current page may be processed.""" - if main: + global main_ns, checked, skipdates + if ma...
Update to use the latest stable Ocean dwave-system -> 0.8.x dwave-hybrid -> 0.4.x
@@ -30,9 +30,9 @@ else: install_requires = [ 'dwave-networkx>=0.8.0,<0.9.0', - 'dwave-system>=0.7.0,<0.8.0', + 'dwave-system>=0.8.0,<0.9.0', 'dwave-qbsolv>=0.2.7,<0.3.0', - 'dwave-hybrid>=0.3.0,<0.4.0', + 'dwave-hybrid>=0.4.0,<0.5.0', 'dwave-neal>=0.5.0,<0.6.0', 'dwave-tabu>=0.2.0,<0.3.0', 'dimod>=0.8.0,<0.9.0',
Add BaseException to the restart catch Exception. Since Exception is not enough I added BaseException cos some Exception are not inherited from Exception but BaseException and Exception doesn't inherit from BaseException.
@@ -1021,7 +1021,7 @@ def main(): runApp() except KeyboardInterrupt: raise - except Exception as e: + except(BaseException, Exception) as e: if app.autoRestart(): # Wait 30 second and try to relaunch application time.sleep(30)
Cache the pre-built image The worker container can then use it Saves a *lot* of time (and otherwise wasted resources)
@@ -43,6 +43,8 @@ services: build: context: . target: dev + # Cache the built image to be used by the inventree-dev-worker process + image: inventree-dev-image ports: # Expose web server on port 8000 - 8000:8000 @@ -60,9 +62,7 @@ services: # Background worker process handles long-running or periodic tasks inventree-dev...
Fix deprecated scalar type in ATen/native/Distributions.cpp Summary: Pull Request resolved:
@@ -230,7 +230,7 @@ Tensor _s_gamma_cpu(const Tensor& alpha, Generator *gen) { Tensor _s_dirichlet_cpu(const Tensor& alpha, Generator *gen) { Tensor ret = at::zeros(alpha.sizes(), alpha.options()); - AT_DISPATCH_FLOATING_TYPES(ret.type(), "dirichlet", [&] { + AT_DISPATCH_FLOATING_TYPES(ret.scalar_type(), "dirichlet", [...
Fixes test_equal Summary: Pull Request resolved: Test Plan: Imported from OSS
@@ -560,19 +560,32 @@ class TestQuantizedOps(TestCase): qX2 = torch.quantize_linear(X2, scale=scale2, zero_point=zero_point2, dtype=torch_type2) - def equal_ref(X, params, X_scheme, X2, params2, X2_scheme): - if X_scheme != X2_scheme: + def equal_ref(qX, qX2): + if qX.qscheme() != qX2.qscheme(): return False - if param...
lint Call list immediately becuase in python 3 values() return an iterator which can cause issues
@@ -362,9 +362,9 @@ class LocationTypesView(BaseDomainView): payload_loc_type_name_by_pk[loc_type['pk']] = loc_type['name'] if loc_type.get('code'): payload_loc_type_code_by_pk[loc_type['pk']] = loc_type['code'] - names = payload_loc_type_name_by_pk.values() + names = list(payload_loc_type_name_by_pk.values()) names_ar...
Update integration-PhishAI.yml * Update integration-PhishAI.yml Url should be URL, as in the rest of the integrations, to maintain consistency * Update integration-PhishAI.yml * Update integration-PhishAI.yml * Update integration-PhishAI.yml
@@ -107,7 +107,7 @@ script: ContentsFormat: formats.json, HumanReadable: md, EntryContext: { - 'Url(obj.Data.Url && obj.Data.Url===val.Data.Url)' : { + 'URL(obj.Data.URL && obj.Data.URL===val.Data.URL)' : { 'Data': ec.PhishAI.Url }, 'IP(obj.Hostname && obj.Hostname===val.Hostname)' : { @@ -178,3 +178,4 @@ script: type:...
Fix for building OpenCAS On some systems, e.g. Ubuntu, the order of linking `math` library is important and when linking is done too early, openCAS making fails.
@@ -101,7 +101,7 @@ sync: # $(TARGET): $(TARGET).a @echo " LD " $@ - @$(CC) $(CFLAGS) $(LDFLAGS) -o $(TARGET) $< + @$(CC) $(CFLAGS) -o $(TARGET) $< $(LDFLAGS) $(TARGET).a: $(patsubst %,$(OBJDIR)%,$(OBJS)) @echo " AR " $@
[microNPU] removing extra bytes for workspace Given that microNPU codegen uses target hooks it undergoes the core compiler that updates workspace sizes. We dont need the additional sizes anymore. This commit removes the sizes.
@@ -222,7 +222,7 @@ def build_source(module, inputs, outputs, accel="ethos-u55-256", output_toleranc inputs=inputs, outputs=outputs, output_tolerance=output_tolerance, - extra_memory_in_bytes=16 * 1024 * 1024, + extra_memory_in_bytes=0, ), interface_api="c", use_unpacked_api=True,
cabana: optimize chart update optimize update
@@ -325,7 +325,6 @@ void ChartView::updateLineMarker(double current_sec) { chart()->plotArea().width() * (current_sec - axis_x->min()) / (axis_x->max() - axis_x->min()); if (int(line_marker->line().x1()) != x) { line_marker->setLine(x, 0, x, height()); - chart()->update(); } } @@ -410,6 +409,7 @@ void ChartView::mouseR...
removed unnecessary call of `mdbx.stop_sync` Syncing will be stopped automatically when mdbx is garbage-collected. And if not, a force-quit does not hurt either.
@@ -488,9 +488,7 @@ class MaestralGuiApp(QtWidgets.QSystemTrayIcon): def quit(self): """Quit Maestral""" - if self.started and self.mdbx: - self.mdbx.stop_sync() - if not is_macos_bundle: + if self.started and self.mdbx and not is_macos_bundle: stop_maestral_daemon_process(CONFIG_NAME) self.deleteLater() QtCore.QCoreAp...
Standalone: Fix, for Linux remove both RPATH and RUNPATH. * The later also makes it load outside stuff, which should be avoided for real standalone usage as much as possible.
@@ -942,7 +942,7 @@ def getSharedLibraryRPATH(filename): ) for line in stdout.split(b"\n"): - if b"RPATH" in line: + if b"RPATH" in line or b"RUNPATH" in line: return line[line.find(b'[')+1:line.rfind(b']')] return None
Restrict carbon verson to compatable release Carbon 10.9.0 introduced CSS changes that break how the common properties module is displayed. This forces the editor to use an earlier compatible version.
"@elyra-ai/canvas": "^6.1.23", "@elyra/application": "^0.4.0", "autoprefixer": "^9.6.0", - "carbon-components": "^10.3.2", + "carbon-components": "~10.8.1", "json-loader": "^0.5.7", "react": "^16.8.6", "react-dom": "^16.8.6",
Update README.md Move virtualenv configuration to gitbook
@@ -85,15 +85,6 @@ GPU: NVIDIA, GTX 1080+ recommended 3. Join the community * Once you've made something cool, be sure to share it on the Discord \([https://discord.gg/t4WWBPF](https://discord.gg/t4WWBPF)\). -#### Optional `virtualenv`: - -If you use virtualenv: - -```bash - virtualenv --system-site-packages -p python3...
SRIOV-VerifyVF-Connection.sh: small fix asterisk removed from 'find' commands. In some cases, it returned more interfaces than expected.
@@ -63,7 +63,7 @@ while [ $__iterator -le "$vf_count" ]; do synthetic_interface_vm_1=$(ip addr | grep $static_IP_1 | awk '{print $NF}') LogMsg "Synthetic interface found: $synthetic_interface_vm_1" - vf_interface_vm_1=$(find /sys/devices/* -name "*${synthetic_interface_vm_1}*" | grep "pci" | sed 's/\// /g' | awk '{prin...
Update settings.py Finally, I got a sample, that has illustrative scannings via 139 and 445 ports...
@@ -79,7 +79,7 @@ HIGH_PRIORITY_REFERENCES = ("bambenekconsulting.com", "github.com/stamparm/black CONSONANTS = "bcdfghjklmnpqrstvwxyz" BAD_TRAIL_PREFIXES = ("127.", "192.168.", "localhost") LOCALHOST_IP = {4: "127.0.0.1", 6: "::1"} -POTENTIAL_INFECTION_PORTS = (135, 445, 1433, 3389, 6379, 6892, 6893, 6901) +POTENTIAL_...
Fix `unit.fileserver.test_gitfs` for Windows Put `import pwd` in a try/except block Set `os.environ['USERNAME']` in windows using win_functions Add error function for `shutil.rmtree`
@@ -9,8 +9,12 @@ import os import shutil import tempfile import textwrap -import pwd import logging +import stat +try: + import pwd +except ImportError: + pass # Import 3rd-party libs import yaml @@ -189,7 +193,6 @@ class GitFSTest(TestCase, LoaderModuleMockMixin): self.integration_base_files = os.path.join(FILES, 'fil...
Fix 405 Method Not Allowed bug for GET method to /dev/futurecosts App-native URLs need to come before tastypie.resources ModelResource API/Classes in urls.py
@@ -104,13 +104,10 @@ urlpatterns = [ re_path(r'', include(stable_api.urls), name='ghpghx'), path('dev/', include('job.urls')), - re_path(r'', include(dev_api.urls), name='job'), - path('dev/', include('futurecosts.urls')), + re_path(r'', include(dev_api.urls), name='job'), re_path(r'', include(dev_api.urls), name='fut...
Correct Docstring For OcGetNode OcGetNode parse output of `oc get nodes -o yaml`
@@ -28,8 +28,8 @@ OcGetEndPoints - command ``oc get endpoints -o yaml --all-namespaces`` OcGetEvent - command ``oc get event -o yaml --all-namespaces`` -------------------------------------------------------------- -OcGetNode - command ``oc get node -o yaml`` -------------------------------------------- +OcGetNode - co...
text_to_speech_demo: don't use "is" for string comparison I removed the comparison to "~", because "~" is not in _symbol_to_id, and therefore that check is redundant.
@@ -97,4 +97,4 @@ def _symbols_to_sequence(symbols): def _should_keep_symbol(s): - return s in _symbol_to_id and s is not '_' and s is not '~' + return s in _symbol_to_id and s != _pad
Avoid (future) cusparse name collision Summary: A future version of cusparse will define "cusparseGetErrorString." This PR simply updates PyTorch's name for this function to "getCusparseErrorString" to avoid the collision. Pull Request resolved:
namespace at { namespace native { namespace sparse { namespace cuda { -std::string cusparseGetErrorString(cusparseStatus_t status) { +std::string getCusparseErrorString(cusparseStatus_t status) { switch(status) { case CUSPARSE_STATUS_SUCCESS: @@ -55,7 +55,7 @@ std::string cusparseGetErrorString(cusparseStatus_t status)...
Init local variables It's UB to use uninitialized values as arguments.
@@ -661,7 +661,7 @@ void RealGees<T>::Kernel(void* out_tuple, void** data, XlaCustomCallStatus*) { const T* a_in = reinterpret_cast<T*>(data[4]); // bool* select (T, T) = reinterpret_cast<bool* (T, T)>(data[5]); - bool (*select)(T, T); + bool (*select)(T, T) = nullptr; void** out = reinterpret_cast<void**>(out_tuple); ...
Update version 0.7.6 -> 0.8.0 New Features * Embedding composites can now return embedding in sampleset's info field Changes * Upgraded to 0.6.x branch of the cloud client which adds support for unstructured solvers, and improves polling and error handling
# ============================================================================= __all__ = ['__version__', '__author__', '__authoremail__', '__description__'] -__version__ = '0.7.6' +__version__ = '0.8.0' __author__ = 'D-Wave Systems Inc.' __authoremail__ = 'acondello@dwavesys.com' __description__ = 'All things D-Wave S...
fix when task_data is not dict In legacy cases task might be only string with its name, not structure with additional metadata (type etc.). This implementation handles that.
@@ -121,10 +121,13 @@ class IntegrateSlackAPI(pyblish.api.InstancePlugin): ): fill_pairs.append(("task", task_data["name"])) - else: + elif isinstance(task_data, dict): for key, value in task_data.items(): fill_key = "task[{}]".format(key) fill_pairs.append((fill_key, value)) + else: + # fallback for legacy - if task_d...
refactors HCrystallBall Forecaster refactor of HCrystalBallForecaster, see
@@ -3,8 +3,7 @@ import pandas as pd from sklearn.base import clone from sktime.forecasting.base._base import DEFAULT_ALPHA -from sktime.forecasting.base._sktime import _OptionalForecastingHorizonMixin -from sktime.forecasting.base._sktime import _SktimeForecaster +from sktime.forecasting.base import BaseForecaster from...