message
stringlengths
13
484
diff
stringlengths
38
4.63k
Improve the detect backup was created when parse log Task: Story:
import os +import sys + from oslo_config import cfg from oslo_log import log as logging from oslo_utils import importutils -import sys topdir = os.path.normpath( os.path.join(os.path.abspath(sys.argv[0]), os.pardir, os.pardir))
Refactored stackcreate fuction to return full testdata Takes in: taskcat_cfg taskcat cfg as ymal object test_list as list sprefix (special prefix) as string Returns: list_of_test - Each element in the list is a dict of test_names -- Each iten in dict contain data returned from create_stack 'StackID' and 'ResponseMeta...
@@ -41,10 +41,11 @@ def main(): tcat_instance.stage_in_s3(taskcat_cfg) tcat_instance.validate_template(taskcat_cfg, test_list) tcat_instance.validate_parameters(taskcat_cfg, test_list) - stackinfo = tcat_instance.stackcreate(taskcat_cfg, test_list, 'tag') - tcat_instance.get_stackstatus(stackinfo, 5) - tcat_instance.cr...
Update dynamic_domain.txt A little bit later I'll try to proceed these two lists: and (especially)
@@ -2555,6 +2555,15 @@ my-router.de my-gateway.de +# Reference: https://gist.github.com/neu5ron/8dd695d4cb26b6dcd997#gistcomment-2141306 (# spdyn.de domains) + +firewall-gateway.com +firewall-gateway.de +firewall-gateway.net +my-firewall.org +myfirewall.org +spdns.org + # Reference: https://www.virustotal.com/gui/domai...
Fix build when included by another project; take 2 Summary: Only adding `include_directories` doesn't propagate to the including targets. Also use `target_include_directories` to do so. Closes
@@ -62,7 +62,8 @@ configure_file(config.h.in config.h) # Prepend include path so that generated config.h is picked up. # Note that it is included as "gloo/config.h" to add parent directory. -include_directories(BEFORE ${CMAKE_CURRENT_BINARY_DIR}/..) +get_filename_component(PARENT_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR} ...
fix(match_main_contract): fix match_main_contract interface fix match_main_contract interface
@@ -426,5 +426,5 @@ if __name__ == '__main__': stock_a_pe_df = stock_a_pe(symbol="kc") print(stock_a_pe_df) - stock_a_pe_df = stock_a_pe(symbol="000300.XSHG") + stock_a_pe_df = stock_a_pe(symbol="000016.XSHG") print(stock_a_pe_df)
implemented synching referenced files in workfile When workfile is synched, it checks for referenced files (added by Loader) and tries to sync them too.
from openpype.modules import ModulesManager from openpype.pipeline import load +:from openpype.lib.avalon_context import get_linked_ids_for_representations +from openpype.modules.sync_server.utils import SiteAlreadyPresentError class AddSyncSite(load.LoaderPlugin): - """Add sync site to representation""" + """Add sync ...
Downgrade master CI checks to nightly cadence. CI seems to be getting bogged down, re-running the full CI suite every time we push to master. This downgrades the health checks to a nightly cadence instead of after merging every PR.
name: Continuous Integration on: - # Trigger the workflow on push or pull request, - # but only for the master branch - push: - branches: - - master + schedule: + # Checks out master by default. + - cron: '0 0 * * *' pull_request: branches: - master
Fixes sentry-native crashpad compilation on Linux Without this patch sentry does not compile, ref.
@@ -24,6 +24,12 @@ sources: url: "https://github.com/getsentry/sentry-native/releases/download/0.2.6/sentry-native-0.2.6.zip" sha256: "0d93bd77f70a64f3681d4928dfca6b327374218a84d33ee31489114d8e4716c0" patches: + "0.4.12": + - patch_file: "patches/0.4.xx-CXX-14.patch" + base_path: "source_subfolder" + "0.4.11": + - patc...
ebuild.domain: force external repos to use their location as a repo_id Otherwise multiple repos can easily have the same repo_id, e.g. a copy of the gentoo tree from rsync and another copy of it as a git checkout.
@@ -531,7 +531,7 @@ class domain(config_domain): path = os.path.abspath(path) if not os.path.isdir(os.path.join(path, 'profiles')): raise TypeError('invalid repo: %r' % path) - repo_config = RepoConfig(path) + repo_config = RepoConfig(path, config_name=path) repo_obj = ebuild_repo.tree(config, repo_config) location = r...
Update the link for reporting data to a database Link was killed in: And the new link was moved again in: As of today, the other two links on this line still appear to be correct.
@@ -54,7 +54,7 @@ Even though Locust primarily works with web sites/services, it can be used to te ## Hackable -Locust's code base is intentionally kept small and doesn't solve everything out of the box. Instead, we try to make it easy to adapt to any situation you may come across, using regular Python code. If you wan...
Minor code style fixes Make spacing after function definition consistent with rest of the codebase
@@ -191,6 +191,7 @@ class MLflowCallback(object): Args: study: Study to be tracked in MLflow. """ + # This sets the `tracking_uri` for MLflow. if self._tracking_uri is not None: mlflow.set_tracking_uri(self._tracking_uri) @@ -205,6 +206,7 @@ class MLflowCallback(object): trial: Trial to be tracked. study: Study to be t...
models: Change return type of get_human_admin_users to QuerySet. I would be accessing some methods of QuerySet in the subsequent commits. So marking this as Sequence results in mypy errors.
@@ -636,7 +636,7 @@ class Realm(models.Model): role__in=roles, ) - def get_human_billing_admin_users(self) -> Sequence["UserProfile"]: + def get_human_billing_admin_users(self) -> QuerySet: return UserProfile.objects.filter( Q(role=UserProfile.ROLE_REALM_OWNER) | Q(is_billing_admin=True), realm=self,
Add Wikibase Client extension requirement to APISite.unconnectedpages() This special page is only available on wikis that have this extension installed.
@@ -6543,6 +6543,7 @@ class APISite(BaseSite): return lrgen @deprecated_args(step=None) + @need_extension('Wikibase Client') def unconnected_pages(self, total=None): """Yield Page objects from Special:UnconnectedPages.
Update .readthedocs.yml set build python version 3.6.10 instead of default 3.6 (.12) for which pip currently recommends wrong numpy version
@@ -18,7 +18,7 @@ formats: [] # Optionally set the version of Python and requirements required to build your docs python: - version: 3.6 + version: 3.6.10 install: - requirements: docs/requirements.txt - method: setuptools
Clarify the installation process Changes: Explain the difference between pip and manual installation Clarify the installation steps Correct the command for manual installation
@@ -13,7 +13,7 @@ Requirements :lines: 25-27 :dedent: 4 -Depending on the processed files, it might require the **manual installation** of extra modules. +If you are planning to use file formats other than plain ``txt``, you will need to install additional **extra modules** to have the right interface. At the moment, t...
Modifies examples in staticmethods The CI's stores each saved rotor for each doctest, so I'm removing the saved rotor after every test * save() * load() * available_rotors() * remove()
@@ -2083,7 +2083,8 @@ class Rotor(object): Examples -------- >>> rotor = rotor_example() - >>> rotor.save('new_rotor.toml') + >>> rotor.save('new_rotor') + >>> Rotor.remove('new_rotor') """ main_path = os.path.dirname(ross.__file__) path = Path(main_path) @@ -2133,10 +2134,11 @@ class Rotor(object): Example ------- >>>...
Fix for plugin setting not working: Always allow plugin API URLs
-"""JSON API for the plugin app.""" +"""API for the plugin app.""" -from django.conf import settings from django.urls import include, re_path from django_filters.rest_framework import DjangoFilterBackend @@ -238,7 +237,6 @@ general_plugin_api_urls = [ re_path(r'^.*$', PluginList.as_view(), name='api-plugin-list'), ] -i...
Remove pip install paunch We now have python-paunch-1.1.1 [1] in the overcloud images so we do not need to pip install it any longer. [1]
@@ -139,10 +139,6 @@ resources: - name: Write kolla config json files copy: content="{{item.value|to_json}}" dest="{{item.key}}" force=yes with_dict: "{{kolla_config}}" - - name: Install paunch FIXME remove when packaged - shell: | - yum -y install python-pip - pip install paunch #######################################...
Changes an assert(is-real) statement to be more robust. Using numpy.isreal has a very low tolerance on imaginary values (maybe none?) and so the use of all(isreal(x)) has been removed in favor of isclose(norm(imag(x)),0). The former was giving false assertion errors when being used to depolarize a 3Q-GST Lindbladian g...
@@ -2126,7 +2126,8 @@ class LindbladParameterizedGate(Gate): assert(self.hamGens.shape == (bsH-1,d2,d2)) if nonham_diagonal_only: assert(self.otherGens.shape == (bsO-1,d2,d2)) - assert(_np.all(_np.isreal(otherC))) + assert(_np.isclose(_np.linalg.norm(_np.imag(otherC)),0)) + #assert(_np.all(_np.isreal(otherC))) #sometim...
util: use new location for needs_ssh Resolves: rm#39322
@@ -12,7 +12,7 @@ def can_connect_passwordless(hostname): denied`` message or a``Host key verification failed`` message. """ # Ensure we are not doing this for local hosts - if not remoto.connection.needs_ssh(hostname): + if not remoto.backends.needs_ssh(hostname): return True logger = logging.getLogger(hostname)
simplify isflipped logic This patch removes the 'fromdims > 0' check from the isflipped property method, which is superfluous as numpy correctly reports the determinant of a 0x0 matrix to be 1.
@@ -176,7 +176,7 @@ class Square(Matrix): @property def isflipped(self): - return self.fromdims > 0 and self.det < 0 + return bool(self.det < 0) @types.lru_cache def transform_poly(self, coeffs):
Update link to vcalendar-filter Original link is dead.
#!/usr/bin/awk -f -# mutt2khal is designed to be used in conjunction with vcalendar-filter (https://github.com/datamuc/mutt-filters/blob/master/vcalendar-filter) +# mutt2khal is designed to be used in conjunction with vcalendar-filter (https://github.com/terabyte/mutt-filters/blob/master/vcalendar-filter) # and was ins...
discover-features not protocol-discovery I changed protocol-discovery to discover-features. It is very confusing to refer to "protocol-discovery" as the identifier for the message family and then list "discover-features" in the example.
@@ -27,13 +27,13 @@ supported by one another's agents. They need a way to find out. This RFC introduces a protocol for discussing the protocols an agent can handle. The identifier for the message family used by this protocol is -`protocol-discovery`, and the fully qualified URI for its definition is: +`discover-feature...
Implement boundary attack paper:
@@ -196,6 +196,63 @@ class LabelOnlyDecisionBoundary(MembershipInferenceAttack): self.distance_threshold_tau = distance_threshold_tau + def calibrate_distance_threshold_unsupervised( + self, top_t: int, num_samples: int, max_queries: int, **kwargs + ): + """ + Calibrate distance threshold on randomly generated samples,...
update __init__ file just add some commas this will avoid warnings like " 'events' is not declared in __all__ "
@@ -17,9 +17,9 @@ __all__ = ( "SequentialTaskSet", "wait_time", "task", "tag", "TaskSet", - "HttpUser", "User" - "between", "constant", "constant_pacing" - "events", + "HttpUser", "User", + "between", "constant", "constant_pacing", + "events" ) # Used for raising a DeprecationWarning if old Locust/HttpLocust is used
Add support for kubeflow 0.6 dashboard Requires an HTTPS connection, which means we have to use an ingress instead of just connecting to the pod itself.
@@ -58,15 +58,15 @@ def main(): password_overlay = { "applications": { - "ambassador-auth": {"options": {"password": password}}, "katib-db": {"options": {"root_password": get_random_pass()}}, + "kubeflow-gatekeeper": {"options": {"password": password}}, "modeldb-db": {"options": {"root_password": get_random_pass()}}, -...
return and print infos return generated informations to the function and not just print out
@@ -170,13 +170,15 @@ class MeshInterface: def showInfo(self, file=sys.stdout): """Show human readable summary about this object""" - - print( - f"Owner: {self.getLongName()} ({self.getShortName()})", file=file) - print(f"\nMy info: {stripnl(MessageToJson(self.myInfo))}", file=file) - print("\nNodes in mesh:", file=fil...
Bump supported protoc version to 3.1.0. Review-Url:
@@ -22,7 +22,7 @@ THIS_DIR = os.path.dirname(os.path.abspath(__file__)) # Minimally required protoc version. MIN_SUPPORTED_PROTOC_VERSION = (3, 0, 0) # Maximally supported protoc version. -MAX_SUPPORTED_PROTOC_VERSION = (3, 0, 0) +MAX_SUPPORTED_PROTOC_VERSION = (3, 1, 0) # Printed if protoc is missing or too old.
Added ref parameter to the record_exchange def Tests should fail
@@ -98,7 +98,8 @@ def create_card_hold(db, participant, amount): log(msg + "succeeded.") else: log(msg + "failed: %s" % error) - record_exchange(db, route, amount, fee, participant, 'failed', error) + ref = result.transaction.id + record_exchange(db, route, amount, fee, participant, 'failed', error, ref) return hold, e...
support reduced Basis mask test The basis test suite automatically tests validity of all combinations of masks. If the number of dofs is large, this takes too much time. This patch adds support for defining the masks to test via the `checkmasks` attribute, defaulting to all.
@@ -1238,7 +1238,8 @@ class CommonBasis: self.basis.get_support(numpy.array([[True]*self.checkndofs], dtype=bool)) def test_getitem_array(self): - for mask in itertools.product(*[[False, True]]*self.checkndofs): + checkmasks = getattr(self, 'checkmasks', itertools.product(*[[False, True]]*self.checkndofs)) + for mask i...
Update ncepgrib2.py Moved import of pygrib.gaulats to inside elif gdtnum == 40 since no other condition relies on gaulats
@@ -756,7 +756,6 @@ lat/lon values returned by grid method may be incorrect.""" @return: C{B{lats},B{lons}}, float32 numpy arrays containing latitudes and longitudes of grid (in degrees). """ - from pygrib import gaulats gdsinfo = self.grid_definition_info gdtnum = self.grid_definition_template_number gdtmpl = self.gri...
Status: don't throw on missing services If postgres or rabbitmq isn't there, return empty instead of throwing an indexerror
@@ -69,12 +69,13 @@ class Status(SecuredResource): if not config.instance.postgresql_host.startswith(('localhost', '127.0.0.1')): for job in jobs: - if job['display_name'] == 'PostgreSQL': + if job['display_name'] == 'PostgreSQL' \ + and job['instances']: job['instances'][0]['state'] = 'remote' broker_state = 'running'...
[Nightly-test] promote single_node/decision_tree_autoscaling_20_runs to staging In this way, we can use these two tests to test anyscale staging release.
- name: decision_tree_autoscaling_20_runs group: core-multi-test working_dir: nightly_tests + env: staging legacy: test_name: decision_tree_autoscaling_20_runs test_suite: nightly_tests - name: single_node group: core-scalability-test working_dir: benchmarks + env: staging legacy: test_name: single_node test_suite: ben...
Update README.md added formatting fixes
@@ -76,10 +76,11 @@ sudo regionset /dev/sr0 ## Install **Setup 'arm' user and ubuntu basics:** -# Sets up graphics drivers, does Ubuntu update & Upgrade, gets Ubuntu to auto set up driver, and finally installs and setups up avahi-daemon + +Sets up graphics drivers, does Ubuntu update & Upgrade, gets Ubuntu to auto set ...
cppunparse: Fix writing `_Constant`/`_Bytes` with the wrong string quotes fixes issue
@@ -544,19 +544,20 @@ class CPPUnparser: self.dispatch(t.body) self.leave() - def _write_constant(self, value): + def _write_constant(self, value, infer_type=False): + result = repr(value) if isinstance(value, (float, complex)): # Substitute overflowing decimal literal for AST infinities. - self.write(repr(value).repla...
Error message when no genemes found after dereplication. Fixes
@@ -156,7 +156,15 @@ checkpoint rename_genomes: def get_genomes_fasta(wildcards): genome_dir = checkpoints.rename_genomes.get(**wildcards).output.dir path= os.path.join(genome_dir, "{genome}.fasta") - return expand(path, genome=glob_wildcards(path).genome) + genomes=expand(path, genome=glob_wildcards(path).genome) + + ...
Use math.isqrt() in _gf_ddf_shoup() There are no other cases, mentioned in This finally closes diofant/diofant#839
@@ -1396,7 +1396,7 @@ def _gf_ddf_shoup(self, f): domain = self.domain n, q = f.degree(), domain.order - k = math.ceil(math.sqrt(n//2)) + k = math.isqrt(n//2 - 1) + 1 if n > 1 else 0 x = self.gens[0] h = pow(x, q, f)
site.py: delete page using pageid instead of title Use pageid to delete page.
@@ -3825,24 +3825,33 @@ class APISite(BaseSite): """Delete page from the wiki. Requires appropriate privilege level. @see: U{https://www.mediawiki.org/wiki/API:Delete} + Page to be deleted can be given either as Page object or as pageid. - @param page: Page to be deleted. - @type page: pywikibot.Page + @param page: Pag...
Addd options to use updated bleurt checkpoints * Update bleurt.py add options to use newer recommended checkpoint bleurt-20 and its distilled versions * Update bleurt.py remove trailing spaces
@@ -69,6 +69,10 @@ CHECKPOINT_URLS = { "bleurt-base-512": "https://storage.googleapis.com/bleurt-oss/bleurt-base-512.zip", "bleurt-large-128": "https://storage.googleapis.com/bleurt-oss/bleurt-large-128.zip", "bleurt-large-512": "https://storage.googleapis.com/bleurt-oss/bleurt-large-512.zip", + "bleurt-20-d3": "https:...
Fixed nondeterministic RG for ORT RNN tests Summary: Relaxing tolerance for ORT RNN tests Pull Request resolved:
@@ -72,6 +72,12 @@ class TestONNXRuntime(unittest.TestCase): opset_version = _export_onnx_opset_version keep_initializers_as_inputs = True # For IR version 3 type export. + def setUp(self): + torch.manual_seed(0) + if torch.cuda.is_available(): + torch.cuda.manual_seed_all(0) + np.random.seed(seed=0) + def run_test(sel...
Update ssa___applying_stolen_credentials_via_powersploit_modules.yml Fixed a typo "accuonts" -> "accounts"
@@ -2,7 +2,7 @@ name: Applying Stolen Credentials via PowerSploit modules id: 270b482d-2af2-448f-9923-9cf005f61be4 version: 1 date: '2020-11-03' -description: Stolen credentials are applied by methods such as user impersonation, credential injection, spoofing of authentication processes or getting hold of critical accu...
add ability to move resources Used this to transfer resources from one project to another. Not exposed via HQ but can come in handy for dev purposes.
@@ -196,3 +196,39 @@ class TransifexApiClient(object): :return: source lang code on transifex """ return self.project_details().json().get('source_language_code') + + def move_resources(self, hq_lang_code, target_project, version=None, use_version_postfix=True): + """ + ability to move resources from one project to ano...
Update circl_passive_ssl.py Cleaned up
@@ -38,9 +38,6 @@ class CirclPassiveSSLApi(object): if r.ok: return r.json() - return None - - @staticmethod def fetch_cert(cert_sha1, settings): auth = ( @@ -55,8 +52,6 @@ class CirclPassiveSSLApi(object): if r.ok: return r.json() - return None - class CirclPassiveSSLSearchIP(OneShotAnalytics, CirclPassiveSSLApi): def...
MAINT: Removing parallelisation from distance calculation [CHANGED] was using context stack from ContextStack in the process of rewriting to a different distribution
@@ -112,8 +112,7 @@ class EstimateDistances(object): self._est_params = list(est_params or []) self._run = False # a flag indicating whether estimation completed - # whether we're on the master CPU or not - self._on_master_cpu = parallel.get_communicator().Get_rank() == 0 + def __str__(self): return str(self.get_table(...
Add default channel for Condor provider Fixes
@@ -3,6 +3,7 @@ import os import re import time +from parsl.channels import LocalChannel from parsl.utils import RepresentationMixin from parsl.launchers import SingleNodeLauncher from parsl.providers.condor.template import template_string @@ -59,7 +60,7 @@ class CondorProvider(RepresentationMixin, ClusterProvider): :c...
Force function to_bytes to always return bytes The recently introduced function to_bytes should return bytes, otherwise it's confusing and we can get unexpected results. References:
@@ -106,21 +106,16 @@ def to_bytes(x): .. versionadded:: 0.8.2 - .. note:: If the argument passed is not of type str or bytes, - it will be ignored, cause some twisted.web operations has the - capability to extract the needed bytes string from the object - itself via the render method. - - .. warning:: This is similar ...
Re-order prerequisite installations Some subtasks, such as testing proxy connectivity, will load and reinitialize config variables. Those may conflict with those values intended in script.
#!/bin/bash # Exit immediately if anything goes wrong, instead of making things worse. set -e +#################################################################### + +# NB(kamidzi): following calls load_configs(); potentially is destructive to settings +if [[ ! -z "$BOOTSTRAP_HTTP_PROXY_URL" ]] || [[ ! -z "$BOOTSTRAP_H...
Avoid checking `field` twice on all iterations Yields a small performance improvement
@@ -937,7 +937,7 @@ class ComponentCreateView(GetReturnURLMixin, View): # Assign errors on the child form's name/label field to name_pattern/label_pattern on the parent form if field == 'name': field = 'name_pattern' - if field == 'label': + elif field == 'label': field = 'label_pattern' for e in errors: form.add_error...
Typo in powerfeed.md pot -> port
# Power Feed -A power feed represents the distribution of power from a power panel to a particular device, typically a power distribution unit (PDU). The power pot (inlet) on a device can be connected via a cable to a power feed. A power feed may optionally be assigned to a rack to allow more easily tracking the distri...
Warn instead of fail when NoConvergence errors occur in world_to_pixel_values Closes
@@ -323,7 +323,17 @@ class FITSWCSAPIMixin(BaseLowLevelWCS, HighLevelWCSMixin): return world[0] if self.world_n_dim == 1 else tuple(world) def world_to_pixel_values(self, *world_arrays): + # avoid circular import + from astropy.wcs.wcs import NoConvergence + try: pixel = self.all_world2pix(*world_arrays, 0) + except No...
$.Rewriting: add a disclaimer for this experimental feature TN:
## vim: filetype=makoada +-- This package provides support for tree-based source code rewriting. +-- +-- .. ATTENTION:: This is an experimental feature, so even if it is exposed to +-- allow experiments, it is totally unsupported and the API is very likely to +-- change in the future. + private with Ada.Containers.Hash...
add an optional argument while running the test suite This allows the test suite to be run nicely inside an environment without killing the main thread
@@ -18,7 +18,7 @@ from fontParts.test import test_image from fontParts.test import test_guideline -def testEnvironment(objectGenerator): +def testEnvironment(objectGenerator, inApp=False): modules = [ test_font, test_info, @@ -43,8 +43,11 @@ def testEnvironment(objectGenerator): _setObjectGenerator(suite, objectGenerat...
More strict conflict with pydocstyle See
'sphinx_rtd_theme>=0.2.4'], } extra_reqs['develop'] = ['pytest>=3.0', 'flake8>=2.5.5,!=3.1.0', - 'flake8-docstrings', 'pydocstyle!=2.1.0', 'pep8-naming', + 'flake8-docstrings', 'pydocstyle<2.1.0', 'pep8-naming', 'flake8-comprehensions', 'flake8-isort', 'pytest-cov', 'coverage'] + setup_reqs
Check out the branch' head, no merging Now commit hashes are traceable in git.
@@ -14,6 +14,8 @@ jobs: if: "!contains(github.event.head_commit.message, 'skip ci')" steps: - uses: actions/checkout@v2 + with: + ref: ${{ github.event.pull_request.head.sha }} - name: Set up Python uses: actions/setup-python@v2.1.2 - name: Lint with Pre-commit @@ -25,6 +27,8 @@ jobs: if: "!contains(github.event.head_c...
Fix docs/qubits.ipynb as part of docs cleanup for Cirq 1.0 Move import to top
{ "cells": [ - { - "cell_type": "markdown", - "metadata": { - "id": "WZ1G8QHhdHZR" - }, - "source": [ - "##### Copyright 2020 The Cirq Developers" - ] - }, { "cell_type": "code", "execution_count": null, }, "outputs": [], "source": [ - "#@title Licensed under the Apache License, Version 2.0 (the \"License\");\n", + "#@...
Update apt_unclassified.txt > apt_mustangpanda
@@ -1589,12 +1589,6 @@ ckstar.zapto.org 64.34.205.178:443 -# Reference: https://twitter.com/katechondic/status/1556940169483264000 -# Reference: https://twitter.com/katechondic/status/1557031529141964801 -# Reference: https://www.virustotal.com/gui/file/c52828dbf62fc52ae750ada43c505c934f1faeb9c58d71c76bdb398a3fbbe1e2/d...
stop tab buttons from scrolling around The always_overscroll (default true) option that was added to ScrollView in causes the buttons of TabbedPanel to always scroll
@@ -683,7 +683,7 @@ class TabbedPanel(GridLayout): tab_pos = self.tab_pos tab_layout = self._tab_layout tab_layout.clear_widgets() - scrl_v = ScrollView(size_hint=(None, 1)) + scrl_v = ScrollView(size_hint=(None, 1), always_overscroll=False) tabs = self._tab_strip parent = tabs.parent if parent:
$.Analysis: simplify Reparse implementations TN:
@@ -71,10 +71,6 @@ package body ${ada_lib_name}.Analysis is procedure Free is new Ada.Unchecked_Deallocation (Analysis_Unit_Type, Analysis_Unit); - procedure Update_Charset (Unit : Analysis_Unit; Charset : String); - -- If Charset is an empty string, do nothing. Otherwise, update - -- Unit.Charset field to Charset. - f...
coresight: fix GenericMemAPTarget issues. * coresight: revert superclass of GenericMemAPTarget to CoreSightCoreComponent. This fixes an issue where DebugContext tries to access .core if the parent is not a CoreSightCoreComponent. * coresight: GenericMemAPTarget: raise CoreRegisterAccessError for core register methods. ...
# pyOCD debugger # Copyright (c) 2020 Cypress Semiconductor Corporation -# Copyright (c) 2021 Chris Reed +# Copyright (c) 2021-2022 Chris Reed # SPDX-License-Identifier: Apache-2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); import logging -from .component import CoreSightComponent +from .compon...
Expanded ability of import Renamed GIT_PYTHON_NOWARN to GIT_PYTHON_INITERR and added values for quiet import, warning import, and raise import. These respectively mean that no message or error is printed if git is non-existent, a plain warning is printed but the import succeeds, and an ImportError exception is raised.
@@ -232,11 +232,20 @@ class Git(LazyMixin): # executable cls.GIT_PYTHON_GIT_EXECUTABLE = cls.git_exec_name - # test if the user didn't want a warning - nowarn = os.environ.get("GIT_PYTHON_NOWARN", "false") - nowarn = nowarn.lower() in ["t", "true", "y", "yes"] - - if not nowarn: + # determine what the user wanted to ha...
Updated description to something a bit simpler l
@@ -194,7 +194,7 @@ API | Description | Auth | HTTPS | CORS | Link | API | Description | Auth | HTTPS | CORS | Link | |---|---|---|---|---|---| | ApiLeap | Make screenshots from web pages and HTML | `apiKey` | Yes | Unknown | [Go!](https://apileap.com/) | -| Apility.io | IP, Domains and Emails anti-abuse API blocklist ...
Update TCN Fixes
@@ -6,8 +6,13 @@ from redbot.message import headers class tcn(headers.HttpHeader): canonical_name = "TCN" + description = """\ +The `TCN` header field is part of an experimental transparent content negotiation scheme. It +is not widely supported in clients. +""" reference = "https://tools.ietf.org/html/rfc2295" - list_...
InfraValidator should skip k8s resource cleanup if pod_name is None Please refer
@@ -188,6 +188,10 @@ class KubernetesRunner(base_runner.BaseModelServerRunner): logger=logging.warning, retry_filter=_api_exception_retry_filter) def _DeleteModelServerPod(self): + if self._pod_name is None: + # No model server Pod has been created yet. + logging.info('Server pod has not been created.') + return try: l...
Remove integration shoeboxes at start of scaling. This can be disabled with the option delete_integration_shoeboxes
.type = int .help = "Number of bins to use for calculating and plotting merging stats." .expert_level = 1 + delete_integration_shoeboxes = True + .type = bool + .help = "Discard integration shoebox data from scaling output, to help" + "with memory management." + .expert_level = 2 } include scope dials.algorithms.scalin...
refactor: [cli] do not set log level at the top of the module do not set log level at the top of the module, anyconfig.cli because it'll be set by anyconfig.cli.to_log_level at any rate later.
@@ -25,7 +25,6 @@ _ENCODING = locale.getdefaultlocale()[1] or 'UTF-8' logging.basicConfig(format="%(levelname)s: %(message)s") LOGGER = logging.getLogger("anyconfig") LOGGER.addHandler(logging.StreamHandler()) -LOGGER.setLevel(logging.WARN) if anyconfig.compat.IS_PYTHON_3: import io
Adding guards around tracepath/tracepath6 commands The scripts-library.sh file is calling commands without testing if they exist first. This change adds guards to prevent a non-existant binary from being called.
@@ -186,10 +186,14 @@ function get_instance_info { systemd-resolve --statistics && \ cat /etc/systemd/resolved.conf) > \ "/openstack/log/instance-info/host_dns_info_${TS}.log" || true + if [ "$(which tracepath)" ]; then { tracepath "8.8.8.8" -m 5 2>/dev/null || tracepath "8.8.8.8"; } > \ "/openstack/log/instance-info/h...
Rephrase RuntimeError description This PR rephrases a confusing description of a RuntimeError to be more clear and precise.
@@ -143,7 +143,8 @@ class RDBStorage(BaseStorage): :exc:`ValueError`: If the given `heartbeat_interval` or `grace_period` is not a positive integer. :exc:`RuntimeError`: - If the a process that was failed by heartbeat but was actually running. + When a process tries to finish a trial that has already + been set to FAIL...
refactor: tests: keys: Add type annotations. This commit adds parameter and return type annotations or hints to the `test_keys.py` file, that contains tests for its counterpart `keys.py` from the `zulipterminal` module, to make mypy checks consistent and improve code readability.
-from typing import Dict +from typing import Any, Dict import pytest +from pytest_mock import MockerFixture from zulipterminal.config import keys @@ -11,33 +12,33 @@ USED_KEYS = {key for values in keys.KEY_BINDINGS.values() for key in values["key @pytest.fixture(params=keys.KEY_BINDINGS.keys()) -def valid_command(reque...
AnimationEditor : Refactor `__editablePlugAdded()` Remove bogus check for children - CurvePlugs always have a single output called "out". Avoid deprecated PathListingWidget methods. Support unusual case of a CurvePlug with multiple outputs. Block selection changed slot when updating selection, so we don't get unwanted ...
@@ -240,20 +240,14 @@ class AnimationEditor( GafferUI.NodeSetEditor ) : def __editablePlugAdded( self, standardSet, curvePlug ) : - curves = curvePlug.children() - if not curves : - return - - connected = curves[0].outputs() - - if not connected : - return - - previousSelection = self.__curveList.getSelectedPaths() - n...
fix: Decode content before calling json.loads() This commit fixes an issue that happens when trying to open **Prepared Reports**. The issue happens because the content isn't decoded in a format readable by the `json.loads()` function. This was fixed by decoding the content to *utf-8*.
@@ -320,7 +320,7 @@ def get_prepared_report_result(report, filters, dn="", user=None): attached_file = frappe.get_doc("File", attached_file_name) compressed_content = attached_file.get_content() uncompressed_content = gzip_decompress(compressed_content) - data = json.loads(uncompressed_content) + data = json.loads(unco...
[bugfix] Mediawiki backend: Do not fail when no email is present I included additional data in MediaWiki backend's get_user_data. The previous solution failed when no such data were available because MediaWiki didn't sent it (because set grants didn't permit it to do so).
@@ -173,13 +173,13 @@ class MediaWiki(BaseOAuth1): return { 'username': identity['username'], 'userID': identity['sub'], - 'email': identity['email'], - 'confirmed_email': identity['confirmed_email'], - 'editcount': identity['editcount'], - 'rights': identity['rights'], - 'groups': identity['groups'], - 'registered': i...
TST: added unit test for timezones Added a unit test for aware datetimes. Also added missing enumerate in a recently adjusted unit test.
@@ -556,6 +556,8 @@ class TestBasics(): # # ------------------------------------------------------------------------- def test_today_yesterday_and_tomorrow(self): + """ Test the correct instantiation of yesterday/today/tomorrow dates + """ self.ref_time = dt.datetime.utcnow() self.out = dt.datetime(self.ref_time.year, ...
Fix tick label text width caused by formatting By formatting the code to conform to PEP8, I forgot a backslash causing a misbehavior. This patch fixes that, as otherwise the whole dictionary would have been set to the variable instead of only one value it contains.
@@ -387,7 +387,7 @@ class Axes(object): tick_label_text_width = None tick_label_text_width_identifier = "%s tick label text width" % axes if tick_label_text_width_identifier in data['extra axis options']: - tick_label_text_width = data['extra axis options [base]'] + tick_label_text_width = data['extra axis options [bas...
[web] Import static.js in index.html This is necessary after we introducing the static mode, or it will raise an "undefined" exception.
<link rel="stylesheet" href="/static/vendor.css"/> <link rel="stylesheet" href="/static/app.css"/> <link rel="icon" href="/static/images/favicon.ico" type="image/x-icon"/> + <script src="/static/static.js"></script> <script src="/static/vendor.js"></script> <script src="/static/app.js"></script> </head>
exposing net_transformer_fun before add grad Summary: Pull Request resolved: Need a interface to re-write the graph after the net is built and after adding gradient ops.
@@ -44,6 +44,7 @@ def Parallelize( param_update_builder_fun=None, optimizer_builder_fun=None, post_sync_builder_fun=None, + pre_grad_net_transformer_fun=None, net_transformer_fun=None, devices=None, rendezvous=None, @@ -91,6 +92,11 @@ def Parallelize( Signature: net_transformer_fun( model, num_devices, device_prefix, d...
Remove max_rows parameter from DataFrame.to_markdown function Resolves I removed the `max_rows` parameter from the `DataFrame.to_markdown` function.
@@ -1764,13 +1764,12 @@ defaultdict(<class 'list'>, {'col..., 'col...})] kdf._to_internal_pandas(), self.to_latex, pd.DataFrame.to_latex, args ) - def to_markdown(self, buf=None, mode=None, max_rows=None): + def to_markdown(self, buf=None, mode=None): """ Print DataFrame in Markdown-friendly format. .. note:: This meth...
Also wrap code blocks at 80 chars (unless already wrapped) Follow-up to
@@ -196,11 +196,13 @@ class LspHoverCommand(LspTextCommand): else: value = item.get("value") language = item.get("language") + + if '\n' not in value: + value = "\n".join(textwrap.wrap(value, 80)) + if language: formatted.append("```{}\n{}\n```\n".format(language, value)) else: - if '\n' not in value: - value = "\n".jo...
[Datasets] Skip flaky pipelining memory release test This pipelining memory release test is flaky; it was skipped in this Polars PR, which was then reverted.
@@ -81,6 +81,7 @@ class OnesSource(Datasource): return read_tasks +@pytest.mark.skip(reason="Flaky, see https://github.com/ray-project/ray/issues/24757") @pytest.mark.parametrize("lazy_input", [True, False]) def test_memory_release_pipeline(shutdown_only, lazy_input): context = DatasetContext.get_current()
Add get_submatrix function See:
import numpy import scipy.sparse +from scipy.sparse import csc_matrix +from scipy.sparse.compressed import _process_slice, get_csr_submatrix def sparse_matrix(shape, integer=False): @@ -112,3 +114,37 @@ def smallest_int_type_for_range(minimum, maximum): return numpy.uint64 else: return numpy.int64 + + +def get_submatri...
add optionnal H parameter to replace N A user can set H for LampRays the same way they set H for an ObjectRays
@@ -788,11 +788,15 @@ class ObjectRays(UniformRays): class LampRays(RandomUniformRays, Rays): def __init__(self, diameter, NA=1.0, N=100, random=False, z=0, rayColors=None, T=10, label=None): + def __init__(self, diameter, NA=1.0, N=100, T=10, H=None, random=False, z=0, rayColors=None, label=None): if random: RandomUni...
Update directories in running_pets.md Correct documentation so all commands should be run from the root of the git directory.
@@ -51,29 +51,35 @@ dataset for Oxford-IIIT Pets lives [here](http://www.robots.ox.ac.uk/~vgg/data/pets/). You will need to download both the image dataset [`images.tar.gz`](http://www.robots.ox.ac.uk/~vgg/data/pets/data/images.tar.gz) and the groundtruth data [`annotations.tar.gz`](http://www.robots.ox.ac.uk/~vgg/data...
ENH: Changed the sequence of checking for locale existence of a file and importing urllib modules in numpy._datasource.py to prevent the import in case the local file was found See
@@ -547,6 +547,11 @@ def exists(self, path): is accessible if it exists in either location. """ + + # First test for local path + if os.path.exists(path): + return True + # We import this here because importing urllib2 is slow and # a significant fraction of numpy's total import time. if sys.version_info[0] >= 3: @@ -5...
Update Linux-Test-Project-Tests.sh git package does not exist on sles12sp4.
@@ -38,24 +38,24 @@ GetDistro update_repos LogMsg "Installing dependencies" -common_packages=(git m4 bison flex make gcc psmisc autoconf automake) +common_packages=(m4 bison flex make gcc psmisc autoconf automake) update_repos install_package "${common_packages[@]}" case $DISTRO in "suse"*) - suse_packages=(db48-utils ...
[API docs] Fix Moment API docs. Improves docs rendering for `cirq.Moment`
@@ -357,7 +357,18 @@ class Moment: return self.__class__(op.transform_qubits(qubit_map) for op in self.operations) def expand_to(self, qubits: Iterable['cirq.Qid']) -> 'cirq.Moment': - """Returns self expanded to given superset of qubits by making identities explicit.""" + """Returns self expanded to given superset of ...
Fix for issue - Check of elements fixed properties in restriction now verify None values.
@@ -360,6 +360,15 @@ class XsdElement(XsdComponent, ValidationMixin, ParticleMixin, ElementPathMixin) else: return 'none' + @property + def depth(self): + if self.ref is not None: + return 1 + elif self.type.parent is None: + return 1 + else: + return self.type.depth + 1 + # Global element's exclusive properties @prope...
enable consul ui on bootrap server HG-- branch : feature/dcs
{% endif -%} "bootstrap": true, "server": true, + "ui": true, "check_update_interval": "0s", "node_name": "{{ consul_node_name }}", "datacenter": "{{ consul_datacenter }}",
Ensure linebreak after summary_prefix Added a newline after a non-empty summary_prefix to ensure there is a linebreak between the set summary_prefix and the hardcoded 'Aggregation resulted in the following data...' table header.
@@ -241,6 +241,11 @@ class Alerter(object): #Type independent prefix text = self.rule.get('summary_prefix', '') + # If a prefix is set, ensure there is a newline between it and the hardcoded + # 'Aggregation resulted in...' header below + if text != '': + text += "\n" + summary_table_fields = self.rule['summary_table_f...
Make scanning for meta encoding much quicker Previously, this code tried to match everything with strings beginning with "<"; now we jump forward to each "<" and compare there. This also alters the jumpTo implementation to avoid computing a (perhaps long) slice, making repeated calls O(n^2).
@@ -668,15 +668,11 @@ class EncodingBytes(bytes): def jumpTo(self, bytes): """Look for the next sequence of bytes matching a given sequence. If a match is found advance the position to the last byte of the match""" - newPosition = self[self.position:].find(bytes) - if newPosition > -1: - # XXX: This is ugly, but I can'...
Added fix for bluray with no title crashing ARM if the bluray is not identified and has no title it will error out. This should stop the error and allow the rip to continue.
@@ -108,6 +108,10 @@ def identify_bluray(job): doc = xmltodict.parse(xml_file.read()) except OSError as e: logging.error("Disc is a bluray, but bdmt_eng.xml could not be found. Disc cannot be identified. Error number is: " + str(e.errno)) + # Fix for blurays with no label causing crashes + job.title = "not identified" ...
Update test.py Improved with progress
@@ -3,28 +3,42 @@ from numpy import * import matplotlib.pyplot as plt fobj = 5 +dObj = 5 + f2 = 200 -f3 = 200 +d2 = 100 + +f3 = 100 +d3 = 10 path = ImagingPath() path.append(Space(d=f3)) -path.append(Lens(f=f3, diameter=100)) +path.append(Lens(f=f3, diameter=d3)) path.append(Space(d=f3)) path.append(Space(d=f2)) -path....
[BUG] pinning click due to incompatibility with newest black This PR follows the fix suggested in to restore `code-quality` CI functionality temporarily, until the incompatibility is fixed.
@@ -25,6 +25,7 @@ repos: hooks: - id: black language_version: python3 + additional_dependencies: [click==8.0.4] # args: [--line-length 79] - repo: https://github.com/pycqa/flake8
Add parse_table method to Huawei.VRP profile HG-- branch : feature/microservices
@@ -89,3 +89,24 @@ class Profile(BaseProfile): # Do not change these numbers. Used in get_switchport script v["version"] = "3.10" return v["version"] + + @staticmethod + def parse_table(e): + p = {"table": []} + is_table = False + is_next = False + header = [] + for l in e.splitlines(): + if not l: + continue + if "-"*...
Fix DyDCNv2 RuntimeError the parameter of offset is not set as continuous will trigger the runtime error: offset must be continuous
@@ -44,7 +44,7 @@ class DyDCNv2(nn.Module): def forward(self, x, offset, mask): """Forward function.""" - x = self.conv(x.contiguous(), offset, mask) + x = self.conv(x.contiguous(), offset.contiguous(), mask) if self.with_norm: x = self.norm(x) return x
make deactivaton safe even if apps were not loaded rigth
@@ -269,12 +269,17 @@ class PluginAppConfig(AppConfig): for plugin_path in settings.INTEGRATION_APPS_PATHS: models = [] # the modelrefs need to be collected as poping an item in a iter is not welcomed app_name = plugin_path.split('.')[-1] + try: + app_config = apps.get_app_config(app_name) # check all models - for mode...
commands/process: Fix initialization of ProcessContext ordering Ensure that that ProcessContext is initialized before attempting to initialize any of the output processors.
@@ -80,6 +80,9 @@ class ProcessCommand(Command): pc = ProcessContext() for run_output in output_list: + pc.run_output = run_output + pc.target_info = run_output.target_info + if not args.recursive: self.logger.info('Installing output processors') else: @@ -108,8 +111,6 @@ class ProcessCommand(Command): pm.validate() pm...
Extract ECS task overrides This makes it easier to extend in the future and also prevents an additional storage call to look up the run's tags when we already have the run.
import warnings from collections import namedtuple from contextlib import suppress +from typing import Any, Dict import boto3 from botocore.exceptions import ClientError @@ -224,30 +225,29 @@ def launch_run(self, context: LaunchRunContext) -> None: # Set cpu or memory overrides # https://docs.aws.amazon.com/AmazonECS/l...
Update py3.8-all-free.yml missing req !
@@ -5,9 +5,37 @@ dependencies: - python=3.8 - xarray - scipy - - netCDF4 + - netcdf4 - erddapy - fsspec - aiohttp - packaging - toolz + + - dask + - gsw + - pyarrow + - tqdm + - distributed + + - matplotlib + - cartopy + - seaborn + - ipython + - ipywidgets + - ipykernel + + - zarr + - bottleneck + - cftime + - cfgrib ...
client: make logging_utils_test.py run on Python3 Regexp pattern needs to be bytes for bytes text.
-#!/usr/bin/env vpython +#!/usr/bin/env vpython3 # Copyright 2015 The LUCI Authors. All rights reserved. # Use of this source code is governed under the Apache License, Version 2.0 # that can be found in the LICENSE file. @@ -46,7 +46,8 @@ class Test(unittest.TestCase): expected = _LOG_HEADER + ': DEBUG foo\n$' if sys....
Make register and nameless variable run through sympy before being set Closes
"""This is for context-related stuff.""" from vyxal.Canvas import Canvas +import sympy class Context: @@ -11,7 +12,7 @@ class Context: self.empty_input_is_zero = True self.default_arity = 1 self.dictionary_compression = True - self.ghost_variable = 0 + self.ghost_variable = sympy.nsimplify(0) self.function_stack = [] s...
Base rocket and hab RPs off of breakdowns, allowing them to work for playoffs. This allows for rocket RP, hab RP, and unicorn match analysis on playoff matches.
@@ -188,8 +188,9 @@ class EventInsightsHelper(object): hatch_panel_points += alliance_breakdown['hatchPanelPoints'] cargo_points += alliance_breakdown['cargoPoints'] - alliance_rocket_rp_achieved = alliance_breakdown['completeRocketRankingPoint'] - alliance_climb_rp_achieved = alliance_breakdown['habDockingRankingPoint...