message
stringlengths
13
484
diff
stringlengths
38
4.63k
HelpChannels: clear roles when resetting permissions Claimants will have a special role that needs to be removed rather than using member overwrites for the category.
@@ -632,18 +632,16 @@ class HelpChannels(Scheduler, commands.Cog): await category.set_permissions(member, **permissions) async def reset_send_permissions(self) -> None: - """Reset send permissions for members with it set to False in the Available category.""" + """Reset send permissions in the Available category for cl...
Add test_create_router_set_gateway_with_fixed_ip sometimes,we need add fixed_ip to router's gateway
@@ -239,6 +239,36 @@ class RoutersTest(base.BaseRouterTest): 'enable_snat': False}) self._verify_gateway_port(router['id']) + @decorators.idempotent_id('cbe42f84-04c2-11e7-8adb-fa163e4fa634') + @test.requires_ext(extension='ext-gw-mode', service='network') + @testtools.skipUnless(CONF.network.public_network_id, + 'The ...
Update common/chromium/dcheck.patch To adapt for minor changes in content/browser/frame_host/navigation_controller_impl.cc
@@ -62,11 +62,11 @@ index 70f1ff97b1ac..d1abd804e988 100644 } diff --git a/content/browser/frame_host/navigation_controller_impl.cc b/content/browser/frame_host/navigation_controller_impl.cc -index bebde463db6a..46dbb416ce11 100644 +index ff1d3fcb6eba..ad6578f645d4 100644 --- a/content/browser/frame_host/navigation_con...
Use quantity_support in obs planning example. This to avoid the override of concatenate causing problems with plt.scatter.
@@ -33,13 +33,14 @@ package. # you're free at 11:00 pm local time, and you want to know if it will be up. # Astropy can answer that. # -# Make print work the same in all versions of Python, set up numpy, -# matplotlib, and use a nicer set of plot parameters: +# Import numpy and matplotlib. For the latter, use a nicer s...
Allow the user created by the Azure template to use Docker. Previously you would have to sudo to do Docker things. Should close
@@ -200,6 +200,8 @@ then echo "WARNING: Docker could not be installed! Continuing anyway!" fi +# Authorize the normal user to use Docker +sudo usermod -aG docker $AZUREUSER ############ # setup OMS
[nixrawio] Cleanup and comments Added comment describing the purpose of the global 'neo_attributes' dictionary. Uncommented some lines that were disabled when investigating bug. Removed unused import 'warnings'.
@@ -12,7 +12,6 @@ from .baserawio import (BaseRawIO, _signal_channel_dtype, _unit_channel_dtype, _event_channel_dtype) from ..io.nixio import NixIO import numpy as np -import warnings try: import nixio as nix @@ -22,6 +21,9 @@ except ImportError: nix = None +# When reading metadata properties, the following keys are ig...
Notify user to rerun bootstrap if any repos installed in develop mode. Check/install repos immediately after arg parsing. This provides a better user experience where we prioritize the environment check and it does not give the user a false impression of failing to start spyder.
time_start = time.time() -logger.info("Executing Spyder from source checkout") - # ---- Parse command line parser = argparse.ArgumentParser( # Prepare arguments for Spyder's main script sys.argv = [sys.argv[0]] + args.spyder_options +# ---- Install sub repos + +installed_dev_repo = False +if not args.no_install: + for ...
Update tasks when filter on server is toggled When filter on server is enabled, we should immediately filter results for the current query on the server. When it's disabled, we need to reload the unfiltered results from the server.
@@ -478,6 +478,7 @@ function visualiserApp(luigi) { $('#serverSideCheckbox').click(function(e) { e.preventDefault(); changeState('filterOnServer', this.checked ? '1' : null); + updateTasks(); }); $("#invertCheckbox").click(function(e) {
[PR workaroud "oem" coding not on Py3.5 Use a Windows API to fetch the console output code page if Python < 3.6, where the encoding name "oem" is not yet defined (this was the original proposal in issue
@@ -249,14 +249,21 @@ def get_output(vcbat, args=None, env=None): # Ongoing problems getting non-corrupted text led to this # changing to "oem" from "mbcs" - the scripts run presumably # attached to a console, so some particular rules apply. + # Unfortunately, "oem" not defined in Python 3.5, so get another way + if sy...
Concession to avoid uat test failure Still getting the occasional out of order output from this script. A better approach is to address the stream sync issues in the tests - but taking this approach for expediency.
from __future__ import print_function -import sys - file = "hello.txt" -print("Reading message from %s" % file, file=sys.stderr) +print("Reading message from %s" % file) print(open(file).read())
Fix title case Change capitalization to title case for consistency.
@@ -627,7 +627,7 @@ Attribute GET Form fields POST Form fields File Uploa ============================== =============== ================ ============ -File uploads +File Uploads ------------ To support file uploads, we have to change the ``<form>`` tag a bit. First, we tell the browser to encode the form data in a dif...
Update Exam validator # Conflicts: # kolibri/core/exams/serializers.py
@@ -105,12 +105,17 @@ class ExamSerializer(serializers.ModelSerializer): def validate_question_sources(self, value): for question in value: - if 'exercise_id' not in question: - raise serializers.ValidationError("Question missing 'exercise_id'") - if 'question_id' not in question: - raise serializers.ValidationError("Q...
rendered_markdown: Rework CSS for markdown headings. Extracted by tabbott from the original pull request, with additional changes to document the surprising margin-top in our current implementation and avoid a bit of unnecessary CSS.
border-top: 1px solid hsl(0, 0%, 87%); } - /* Headings: We need to make sure our headings are less prominent than our sender names styling. */ + /* Headings */ h1, h2, h3, h4, h5, h6 { - font-size: 14px; font-weight: 600; line-height: 1.4; + /* No margin-top is important to make messages that start with a heading + avo...
ubuiltins: Fix broken classmethod decorator. Since classmethod is being redefined here, it broke Sphinx. Fixes
@@ -45,6 +45,7 @@ _bool = bool _bytearray = bytearray _bytes = bytes _callable = callable +_classmethod = classmethod _complex = complex _dict = dict _float = float @@ -585,7 +586,7 @@ class int: Byte sequence that represents the integer. """ - # @classmethod + @_classmethod def from_bytes(cls, _bytes: _bytes, byteorde...
Go back to random browsing when we clear category input. Just clearing the input is a bit more implicit than I'd like, so it might make sense to add a "clear" button later, but it seems those are out of fashion looking at a few other examples. Fixes
@@ -224,6 +224,9 @@ function CategoryFilter() { }) cin.addEventListener("awesomplete-close", function() { + if (cin.value === '') { + setHiddenCategoryAndNextId(this.form, cin.value); + } this.classList.remove("open"); })
secscan: make batch_size configurable For larger databases like quay.io the default batch size is too high to complete the job in a resonable time. Make the batch_size configurable so we can adjust how many scans can be in-flight for a worker
@@ -42,10 +42,8 @@ from data.database import ( db_transaction, ) - logger = logging.getLogger(__name__) - IndexReportState = namedtuple("IndexReportState", ["Index_Finished", "Index_Error"])( "IndexFinished", "IndexError" ) @@ -198,7 +196,9 @@ class V4SecurityScanner(SecurityScannerInterface): ) # 4^log10(total) gives ...
fix get_default_mask_creator error message block -> block4
@@ -567,5 +567,5 @@ def get_mask_creator_default(mask_type: Union[str, List[int]]) -> PruningMaskCre else: raise ValueError( f"Unknown mask_type {mask_type}. Supported mask types include " - "'unstructured' and 'block'" + "'unstructured' and 'block4'" )
MAINT: fixed consistency of state order in Alphabet.get_word_alphabet [CHANGED] previous implementation produced a strange state order that meant a k-mer inferred from extrapolation of bases indices into a 1D index did not match those produced by this method. Code is simplified, uses the itertools.product and addresses...
@@ -547,14 +547,9 @@ class Alphabet(Enumeration): Note that the result is not a JointEnumeration object, and cannot unpack its indices. However, the items in the result _are_ all strings. """ - crossproduct = [""] - for a in range(word_length): - n = [] - for c in crossproduct: - for m in self: - n.append(m + c) - cros...
Change text for loop device The new text will be more helpful for most users.
@@ -116,7 +116,7 @@ class UdiskieMenu(object): """ _quit_label = _('Quit') - _losetup_label = _('Setup loop device') + _losetup_label = _('Mount disc image') def __init__(self, daemon, icons, actions, flat=True): """
Version 0.8.4 New release
@@ -19,7 +19,7 @@ with open(path.join(here, 'README.md'), encoding='utf-8') as f: setup( name='pyspedas', - version='0.8.3', + version='0.8.4', description='Python Space Physics Environment Data Analysis \ Software (SPEDAS)', long_description=long_description,
Minor update to README.md Fixed image not found on sometimes travis status m added header and updated existing headers to subheaers
-[![Build Status](https://travis-ci.org/ReFirmLabs/binwalk.png)](https://travis-ci.org/ReFirmLabs/binwalk) +# Binwalk -Description -=========== +[![Build Status](https://travis-ci.org/ReFirmLabs/binwalk.svg?branch=master)](https://travis-ci.org/ReFirmLabs/binwalk) Binwalk is a fast, easy to use tool for analyzing, reve...
Update ek_router.txt Sorted-uniqed list from ```pastebin.com```
apps8kjdjglkdfg.herokuapp.com dns0101.herokuapp.com + +# Reference: https://twitter.com/david_jursa/status/1131487385034870784 +# Reference: https://pastebin.com/s98awS0E + +adaranth.com +ailtumty.net +baipagid.com +bestadbid.com +blatwalm.com +bodelen.com +consoupow.com +constintptr.com +dawmal.com +deloplen.com +delo...
comments for the commands above the command Easier to read.
@@ -32,12 +32,12 @@ Deletes old revisions. It can be run regularly to keep revision history manageab .. code:: bash ./manage.py deleterevisions - ./manage.py deleterevisions your_app.YourModel --days=30 # keep any changes from last 30 days - ./manage.py deleterevisions your_app.YourModel --keep=30 + ./manage.py deleter...
Fixing comments in facets_normal() Removing one seemingly extraneous comment about the sum of face areas. Updateing one comment to refer to the largest face, rather than the first face.
@@ -1627,9 +1627,8 @@ class Trimesh(Geometry): return np.array([]) area_faces = self.area_faces - # sum the area of each group of faces represented by facets - # the face index of the first face in each facet + # the face index of the largest face in each facet index = np.array([i[area_faces[i].argmax()] for i in self....
Remove unused get_critical_path_timings() API ### Problem As mentioned here this method is not used internally or by known consumers of RunTracker (mainly toolchain plugin at this point) ### Solution Remove unused method ### Result Reduces the surface area for the RunTracker API. minimal surface area for public API is ...
@@ -14,7 +14,7 @@ from typing import Dict, List, Optional, Tuple from pants.base.exiter import PANTS_FAILED_EXIT_CODE, PANTS_SUCCEEDED_EXIT_CODE, ExitCode from pants.base.run_info import RunInfo -from pants.base.workunit import WorkUnit, WorkUnitLabel +from pants.base.workunit import WorkUnit from pants.engine.internal...
kindergarten-garden: update tests to version 1.0.0 Renamed existing tests to match test case descriptions. Deleted and added test cases to bring test list into agreement with data. Added missing test version comment. Closes
@@ -2,14 +2,26 @@ import unittest from kindergarten_garden import Garden +# Tests adapted from `problem-specifications//canonical-data.json` @ v1.0.0 + class KindergartenGardenTests(unittest.TestCase): - def test_alices_garden(self): + def test_garden_with_single_student(self): self.assertEqual( Garden("RC\nGG").plants...
docs: warning for remove subtree [skip ci]
@@ -238,7 +238,10 @@ def validate_loop(doctype, name, lft, rgt): def remove_subtree(doctype: str, name: str, throw=True): - """Remove doc and all its children.""" + """Remove doc and all its children. + + WARN: This does not run any controller hooks for deletion and deletes them with raw SQL query. + """ frappe.has_per...
[sync] update `last_reindex` timestamp see and
@@ -2619,6 +2619,7 @@ class SyncEngine: if last_cursor == "": # We are starting from the beginning, do a full indexing. logger.info("Fetching remote Dropbox") + self._state.set("sync", "last_reindex", time.time()) changes_iter = self.client.list_folder_iterator("/", recursive=True) else: # Pick up where we left off. Th...
Fix BigBrother embeds Move text from footer to description.
@@ -298,8 +298,7 @@ class WatchChannel(metaclass=CogABCMeta): message_jump = f"in [#{msg.channel.name}]({msg.jump_url})" footer = f"Added {time_delta} by {actor} | Reason: {reason}" - embed = Embed(description=f"{msg.author.mention} {message_jump}") - embed.set_footer(text=textwrap.shorten(footer, width=256, placeholde...
discoveryplus: identify free and premium better fixes:
# ex:ts=4:sw=4:sts=4:et # -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- +import datetime import hashlib import logging import random @@ -18,6 +19,7 @@ REALMS = {"discoveryplus.se": "dplayse", "discoveryplus.no": "dplayno", "discove class Dplay(Service): supported_domains = ["discoveryplus.se", "discove...
Made the error message translatable Thanks for highlighting this.
@@ -177,7 +177,7 @@ frappe.request.call = function(opts) { opts.error_callback && opts.error_callback(); }, 502: function(xhr) { - frappe.msgprint("Internal Server Error"); + frappe.msgprint(__("Internal Server Error")); } };
Update apt_hangover.txt Update for Reference and Aliases fields.
# Copyright (c) 2014-2020 Maltrail developers (https://github.com/stamparm/maltrail/) # See the file 'LICENSE' for copying permission -# Aliases: monsoon, neon, viceroy tiger +# Aliases: backconfig, monsoon, neon, viceroy tiger # Reference: https://unit42.paloaltonetworks.com/updated-backconfig-malware-targeting-govern...
Update sentinel-2-l2a-cogs.yaml Tutorial showing how to manage COGs on AWS using Lambda service. It provides software too:
@@ -61,6 +61,9 @@ DataAtWork: - Title: STAC, COG, Python and QGIS URL: http://www.acgeospatial.co.uk/stac-cog-python-and-qgis/ AuthorName: Andrew Cutts + - Title: How to process Sentinel-2 data in a serverless Lambda on AWS? + URL: https://www.linkedin.com/pulse/how-sunny-my-city-better-process-stac-sentinel2-lambda-al...
small fix to correctly pad block shape in pytorch block pruner Reviewers: mark.kurtz Subscribers: #core
@@ -363,7 +363,7 @@ class BlockSparsityMaskCreator(GroupedSparsityMaskCreator): """ block_shape = self._block_shape n_dims = len(tens_shape) - if len(block_shape) < n_dims: # Conv will have block shape [X, Y, 1, ..., 1] + while len(block_shape) < n_dims: # Conv will have block shape [X, Y, 1, ..., 1] block_shape.append...
Update luminositylinkrat.txt Cleaned up some missed orphan records.
@@ -1320,7 +1320,6 @@ dode32.is-slick.com dogcattree.fishdns.com doly.porche.ml doma.kostirez1.tk -domain.com donclef.duckdns.org donmackay.ddns.net donsage.ddns.net @@ -1344,7 +1343,6 @@ drust4nn.no-ip.org dsfds38.fishdns.com dsiminski.no-ip.org dubbel.crabdance.com -duckdns duckgolden.duckdns.org ducksanddicks.duckdn...
fix: allow truncated image files Reason: "IOError: broken data stream when reading image file" Reference:
@@ -28,7 +28,7 @@ from frappe import conf from frappe.utils.nestedset import NestedSet from frappe.model.document import Document from frappe.utils import strip -from PIL import Image, ImageOps +from PIL import Image, ImageFile, ImageOps from six import StringIO, string_types from six.moves.urllib.parse import unquote,...
langkit.dsl: refactor base DSLType info collection TN:
@@ -38,6 +38,16 @@ class DSLType(object): ctx_message = 'in {}'.format(cls._name.camel) return Context(ctx_message, cls._location) + @staticmethod + def _import_base_type_info(name, location, dct): + """ + Metaclass helper. Register in `dct` the name, location and doc + information for the class to be built. + """ + dc...
Mount libpod container volume into collectd container The collectd-libpod-stats plugin requires additional libpod volumes to be mounted into the collectd contianer in order to find and track running containers. This mounts the only additional volume necessary
@@ -683,6 +683,7 @@ outputs: - {get_attr: [ContainersCommon, volumes]} - - /var/lib/kolla/config_files/collectd.json:/var/lib/kolla/config_files/config.json:ro + - /var/lib/containers/storage/overlay-containers:/var/lib/containers/storage/overlay-containers:ro - /var/lib/config-data/puppet-generated/collectd:/var/lib/k...
Cleanup __init__ Handle errors in retrieving origin loggers Simplify some branching logic
@@ -6,7 +6,7 @@ import traceback from datetime import datetime from bson import json_util -from flask import Flask, request, session +from flask import Flask, session from flask_mail import Mail from werkzeug.contrib.fixers import ProxyFix @@ -21,15 +21,27 @@ import api.routes.stats import api.routes.team import api.ro...
(run-hijacking-2) Extract do_launch_for_created_run from _launch_pipeline_execution_for_created_run Summary: We are going to use this function to hijack start_pipeline_execution_for_created_run codepath. Had to change the code to throw a UserFacingGraphQLError rather than just return it. Depends on D3092 Test Plan: BK ...
@@ -110,7 +110,7 @@ def _launch_pipeline_execution(graphene_info, execution_params, is_reexecuted=Fa ) -def _launch_pipeline_execution_for_created_run(graphene_info, run_id): +def do_launch_for_created_run(graphene_info, run_id): check.inst_param(graphene_info, 'graphene_info', ResolveInfo) check.str_param(run_id, 'run...
make edl shaders disabled by default with an option to enable them These were copied into the source repo a long time ago, but now these features are available in VTK. I'm keeping them here for now but probably should just remove it.
@@ -23,6 +23,9 @@ set(EXTRA_SRCS ##### +option(USE_EDL_SHADERS OFF) +if(USE_EDL_SHADERS) + set(GLSL_RESOURCES_DIR edl_resources/Shaders ) @@ -54,6 +57,8 @@ foreach(file ${GLSL_SRCS}) set(EXTRA_SRCS ${EXTRA_SRCS} ${res}) endforeach(file) +endif() + #####
fix: dont update apps/{app}/modules.txt if called from uninstall operation
@@ -42,6 +42,10 @@ class ModuleDef(Document): def on_trash(self): """Delete module name from modules.txt""" + + if frappe.flags.in_uninstall: + return + modules = None if frappe.local.module_app.get(frappe.scrub(self.name)): with open(frappe.get_app_path(self.app_name, "modules.txt"), "r") as f:
modify get_version() tests in test_anim.py remove unused monkeypatch fixtures convert string paths to Path() make test function names more explicit use standard assert for string comparison
#!/usr/bin/env python # -*- coding: utf-8 -*- # (c) The James Hutton Institute 2017-2019 -# (c) University of Strathclyde 2019-2020 +# (c) University of Strathclyde 2019-2021 # Author: Leighton Pritchard # # Contact: # The MIT License # # Copyright (c) 2017-2019 The James Hutton Institute -# Copyright (c) 2019-2020 Uni...
Wrap scheduler definition uploader with credential provider Required to set the right credentials when uploading custom scheduler definition
@@ -1134,6 +1134,7 @@ def upload_scheduler_plugin_definitions(s3_bucket_factory_shared, request) -> di ) scheduler_definition_dict[plugin_name] = {} for region, s3_bucket in s3_bucket_factory_shared.items(): + with aws_credential_provider(region, request.config.getoption("credential")): scheduler_plugin_definition_url ...
Update EnvSpec.check_properties' docstring TN:
@@ -203,10 +203,10 @@ class EnvSpec(object): def check_properties(self): """ - Method call by CompileCtx.compute_properties. Used to check that - properties generated by the env spec are conforming. This relies on - type information and property attributes (privacy, implicit envs), so - it must run only after these can...
updated conda installation instructions Removes pip install instructions for `pmdarima` and `tbats` as they are now included in conda install by default
@@ -55,8 +55,8 @@ To install ``sktime`` with maximum dependencies, including soft dependencies, in conda install -c conda-forge sktime-all-extras -Note: currently this does not include dependencies ``catch-22``, ``pmdarima``, and ``tbats``. -As these packages are not available on ``conda-forge``, they must be installed...
Update index.html with barrosdaniel profile link. Update index.html with barrosdaniel profile link.
<a href="https://github.com/ArquiteturaJoel">GitHub/ArquiteturaJoel</a></li> <li>Hi, I am Karthick Thoppe and my profile link is <a href="https://github.com/karthicktv">GitHub/karthicktv</a></li> + <li>Hi, I am Daniel Barros and my profile link is + <a href="https://github.com/barrosdaniel">GitHub/barrosdaniel</a></li>...
extract step key data into column for postgres event log table Summary: same as D2539, but postgres overrides the default `SqlEventLogStorage::store_event` method Test Plan: bk Reviewers: sashank
@@ -97,8 +97,11 @@ def store_event(self, event): check.inst_param(event, 'event', EventRecord) dagster_event_type = None + step_key = event.step_key + if event.is_dagster_event: dagster_event_type = event.dagster_event.event_type_value + step_key = event.dagster_event.step_key run_id = event.run_id @@ -109,6 +112,7 @@ ...
avoid Py 3.8 for BanditIntegrationTest.test_3rdparty_plugin ### Problem As described in `BanditIntegrationTest.test_3rdparty_plugin` is flaky because its success depends on specific Python version that the test runs the `bandit-aws` plugin with. ### Solution Do not allow Python 3.8 to be used to run the test. ### Resul...
@@ -174,7 +174,10 @@ class BanditIntegrationTest(ExternalToolTestBase): def test_3rdparty_plugin(self) -> None: target = self.make_target_with_origin( - [FileContent("bad.py", b"aws_key = 'JalrXUtnFEMI/K7MDENG/bPxRfiCYzEXAMPLEKEY'\n")] + [FileContent("bad.py", b"aws_key = 'JalrXUtnFEMI/K7MDENG/bPxRfiCYzEXAMPLEKEY'\n")]...
Update integration.py Stated which version is required in the error message
@@ -20,6 +20,7 @@ def _warn_on_old_setuptools(_version=setuptools.__version__): ERROR: setuptools=={_version} is used in combination with setuptools_scm>=6.x Your build configuration is incomplete and previously worked by accident! +setuptools_scm requires setuptools>=45 This happens as setuptools is unable to replace ...
adding fields attribute to photo.Photo and photo.Photoalbum docstring update
@@ -16,6 +16,7 @@ class Photoalbum(PlexPartialObject): addedAt (datetime): Datetime this item was added to the library. art (str): Photo art (/library/metadata/<ratingkey>/art/<artid>) composite (str): Unknown + fields (list): List of :class:`~plexapi.media.Field`. guid (str): Unknown (unique ID) index (sting): Index n...
Update json_schema/core/file/file_core.json Changed to `DCP/2 Ingest` for consistency with other values
"LungMAP", "Zenodo", "Publication", - "HCA Ingest" + "DCP/2 Ingest" ], "user_friendly": "File source", "guidelines": "Should be one of: DCP/2 Analysis, Contributor, ArrayExpress, HCA Release, GEO, SCEA, SCP, DCP/1 Matrix Service, LungMAP, Zenodo, Publication",
Tool: remove abstract decorator for virtual tool Virtual tools may not need to implement the command method. The abstract class requires the abstract method. Removing abstract class to get it optional.
from __future__ import annotations import pathlib -from abc import ABC, abstractmethod from hashlib import sha256 from typing import TYPE_CHECKING, Any, Dict, List, Optional, Type, TypeVar, Union, cast @@ -20,7 +19,7 @@ if TYPE_CHECKING: T = TypeVar("T") -class Tool(ABC, InitializableMixin): +class Tool(InitializableMi...
HelpChannels: move message None check inside `match_bot_embed` It was being done repeatedly outside the function so let's move it in to reduce redundancy.
@@ -440,14 +440,11 @@ class HelpChannels(Scheduler, commands.Cog): def is_dormant_message(self, message: t.Optional[discord.Message]) -> bool: """Return True if the contents of the `message` match `DORMANT_MSG`.""" - if not message: - return False - return self.match_bot_embed(message, DORMANT_MSG) - def match_bot_embe...
Correct links and text Update for new Authn page locations and terminology
@@ -6,9 +6,9 @@ layout: default [Previous Section](decide_deletion_policy.md) \| [Back to Contents](index.md) \| [Next Section](identify_server.md) -Adobe has designed a secure protocol for applications to integrate with Adobe Apis and User Sync is such an application. +Adobe has designed a secure protocol for applicat...
Address a TODO comment in the legacy action provider test * Added a test action generator to the test that checks the config option "load_action_generators".
@@ -120,6 +120,11 @@ class LegacyActionProviderTest(base.BaseTest): ) self.assertEqual('output, delay=0', action_desc.params_spec) + @mock.patch.object( + legacy.LegacyActionProvider, + '_get_action_generators', + mock.MagicMock(return_value=[TestActionGenerator]) + ) def test_only_action_plugins(self): self.override_c...
Re-ordered test skip condition. Re-ordered boolean and so it should fail fast on Windows and not try to run the 2nd part which would cause issues.
@@ -288,7 +288,7 @@ def test_output_redirection(base_app): os.remove(filename) -@pytest.mark.skipif(getpass.getuser() == 'travis' and sys.platform.startswith('linux'), +@pytest.mark.skipif(sys.platform.startswith('linux') and getpass.getuser() == 'travis', reason="Unit test passes on Ubuntu 16.04 and Debian 8.7, but fa...
ebuild.ebd_ipc: drop userpriv eapply()/unpack() support Using it causes breakage when unpacking inside dirs with root perms, e.g. recent firefox-bin ebuilds that unpack directly to subdirs under ${D}.
@@ -963,9 +963,6 @@ class Eapply(IpcCommand): output_func = self.observer.info spawn_kwargs = {'collect_fds': (1, 2)} - if self.op.userpriv: - spawn_kwargs['uid'] = os_data.portage_uid - spawn_kwargs['gid'] = os_data.portage_gid for path, patches in args: prefix = '' @@ -1070,18 +1067,13 @@ class Unpack(IpcCommand): yi...
add '--no-integration-tests' option to pytest. Calling pytest with the flag '--no-integration-tests' all the tests that require an OEF node will be skipped.
@@ -40,7 +40,7 @@ ROOT_DIR = os.path.join(CUR_PATH, "..") def pytest_addoption(parser): """Add options to the parser.""" parser.addoption("--ci", action="store_true", default=False) - parser.addoption("--no-oef", action="store_true", default=False, help="Skip tests that require the OEF.") + parser.addoption("--no-integ...
fix(db): Log mogrified queries Prior to this, queries passed to `frappe.db.sql` with values looked like: "SELECT `defkey`,`defvalue` FROM `tabDefaultValue` WHERE `parent`=%(param1)s ORDER BY `creation`" Now, they'll look "normal" or built like: "SELECT `defkey`,`defvalue` FROM `tabDefaultValue` WHERE `parent`='__global...
@@ -190,7 +190,7 @@ class MariaDBDatabase(MariaDBConnectionUtil, MariaDBExceptionUtil, Database): return db_size[0].get("database_size") def log_query(self, query, values, debug, explain): - self.last_query = self._cursor._last_executed + self.last_query = query = self._cursor._last_executed self._log_query(query, debu...
Update Map, Filter, Reduce.md There was a spelling mistake, so edited it from "retuns" to "returns"
@@ -12,7 +12,7 @@ The ```map()``` function in python has the following syntax: Where ```func``` is the function on which each element in ```iterables``` (as many as they are) would be applied on. Notice the asterisk(```*```) on ```iterables```? It means there can be as many iterables as possible, in so far ```func``` h...
fix: encode URI unconditionally ref:
@@ -334,10 +334,7 @@ frappe.router = { return null; } else { a = String(a); - if (a && a.match(/[%'"\s\t]/)) { - // if special chars, then encode a = encodeURIComponent(a); - } return a; } }).join('/');
pkg_generic_api_body_ada.mako: kill aliasing warnings TN:
@@ -8,10 +8,12 @@ with ${ada_lib_name}.Public_Converters; use ${ada_lib_name}.Public_Converters; package body ${ada_lib_name}.Generic_API is + pragma Warnings (Off, "possible aliasing problem for type"); function "+" is new Ada.Unchecked_Conversion (Internal_Context, Implementation.Internal_Context); function "+" is ne...
Updated total episodes Bananya/Food Wars/Beastars/Ani ni Tsukeru.
@@ -26,6 +26,7 @@ streams: title: 'Bananya: Fushigi na Nakama-tachi' alias: ['Bananya and the Curious Bunch'] has_source: false +length: 13 info: mal: 'https://myanimelist.net/anime/40228' anilist: 'https://anilist.co/anime/110881/Bananya-Fushigi-na-Nakamatachi/' @@ -847,6 +848,7 @@ streams: --- title: 'Beastars' has_s...
storage: handle cn-north-1 region Handle S3 cn-north-1's endpoint, which has a com.cn TLD.
@@ -744,6 +744,9 @@ class S3Storage(_CloudStorage): connect_kwargs["endpoint_url"] = "https://s3.{region}.amazonaws.com".format( region=s3_region ) + # cn-north-1's endpoint has a .com.cn TLD + if s3_region == "cn-north-1": + connect_kwargs["endpoint_url"] = connect_kwargs["endpoint_url"] + ".cn" elif host or endpoint_...
added command to source gdbinit.py you need to source gdbinit.py for it to take effect
@@ -36,6 +36,7 @@ Installation is straightforward. Pwndbg is best supported on Ubuntu 18.04 with git clone https://github.com/pwndbg/pwndbg cd pwndbg ./setup.sh +echo "source $(pwd)/gdbinit.py" >> ~/.gdbinit ``` Other Linux distributions are also supported via `setup.sh`, including:
Add instructions to run Rally as a Kubernetes Job or a Docker container Closes
@@ -129,6 +129,16 @@ Whenever you want to use Rally, run the activation script (step 2 above) first. .. _install_offline-install: +Kubernetes Job +-------------- + +You can run Rally as a Kubernetes `Job <https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/>`_ via `this <https://github.com/...
Fix typo in Github links in elementwise_ops_schema.cc Summary: s/elementwise_op_schema.cc/elementwise_ops_schema.cc Pull Request resolved:
@@ -27,7 +27,7 @@ Argument `broadcast=1` needs to be passed to enable broadcasting. Github Links: -- https://github.com/pytorch/pytorch/blob/master/caffe2/operators/elementwise_op_schema.cc +- https://github.com/pytorch/pytorch/blob/master/caffe2/operators/elementwise_ops_schema.cc )DOC"; @@ -883,7 +883,7 @@ Performs e...
Add inplace TileFetcher module back to public builder API This commit addresses an import error encountered when trying to import inplace TileFetcher functionality. Example failing import that will be fixed by this commit: from starfish.experiment.builder.inplace import ( InplaceFetchedTile, enable_inplace_mode, inplac...
-from starfish.core.experiment.builder import build_image, write_experiment_json # noqa: F401 +from starfish.core.experiment.builder import ( # noqa: F401 + build_image, + inplace, + write_experiment_json, +) from starfish.core.experiment.builder.providers import FetchedTile, TileFetcher # noqa: F401
Pin flask dependencies to versions supporting 1.x Flask should be upgraded to 2.x. For the purposes of switching to python3, keep it at 1.x to minimize amount of changes at the same time.
@@ -41,8 +41,13 @@ GENERIC_REQ = [ ] WEB_REQ = [ + # TODO: upgrade flask and associated dependencies to 2.x "Flask == 1.1.1", "flask-talisman==0.7.0", + "jinja2 <= 2.11.3", # jinja 3.x requires also upgrading flask to 2.x + "markupsafe <= 1.1.1", # markupsafe 2.x requires also upgrading flask to 2.x + "itsdangerous <= ...
Log dead worker replacement We saw a log suggesting a large number of threads. This should help find out if its due to dead workers being replaced.
@@ -218,6 +218,7 @@ class DeployDaemon(PaastaThread): live_workers = len([worker for worker in self.workers if worker.is_alive()]) number_of_dead_workers = self.config.get_deployd_number_workers() - live_workers for i in range(number_of_dead_workers): + self.log.error("Detected a dead worker, starting a replacement thr...
Update handle_offline_cpu.sh 1. Check if ethtool is available. 2. Check if ethtool -L is succeeded.
@@ -30,6 +30,22 @@ function Main() { basedir=$(pwd) syn_net_adpt="" + ethtool --version + if [ $? != 0 ]; then + install_package ethtool + LogMsg "Installing ethtool in the VM" + ethtool --version + if [ $? != 0 ]; then + LogErr "Did not find ethtool and could not install ethtool. Stop the test here" + SetTestStateFail...
test-backend: Improve performance by disabling XML report. We don't use the XML report ourselves. We add options to make this easy to control if specific circumstances indicate doing so.
@@ -232,6 +232,12 @@ def main() -> None: parser.add_argument( "--verbose-coverage", action="store_true", help="Enable verbose print of coverage report." ) + parser.add_argument( + "--xml-report", action="store_true", help="Enable (slow) XML coverage report." + ) + parser.add_argument( + "--no-html-report", action="stor...
Fix ELB discovery. ELBs will not provide 'aliases' so we do not require it on the creation API. Update API already handles this.
@@ -97,10 +97,9 @@ def create(**kwargs): :param kwargs: :return: """ - alias_names = kwargs.pop("aliases") endpoint = Endpoint(**kwargs) - if alias_names: - endpoint.aliases = [EndpointDnsAlias(alias=name) for name in alias_names] + if "aliases" in kwargs: + endpoint.aliases = [EndpointDnsAlias(alias=name) for name in ...
Update github-takeover.yaml This take over is no longer possible
@@ -3,7 +3,7 @@ id: github-takeover info: name: Github Takeover Detection author: pdteam,th3r4id - severity: high + severity: info reference: - https://github.com/EdOverflow/can-i-take-over-xyz tags: takeover,github
bot_code: Add c dir to PASSLIST PASSLIST in bot_main.py defines what may stay in the swarming bot root. The named caches root wasn't in the PASSLIST, so it was deleted on each bot start. Add it there. Review-Url:
@@ -71,6 +71,7 @@ SINGLETON = singleton.Singleton(os.path.dirname(THIS_FILE)) # for more details. PASSLIST = ( '*-cacert.pem', + 'c', 'cipd_cache', 'isolated_cache', 'logs',
$.Analysis: make Unit_Provider_Access type a general one ("access all") TN:
@@ -106,7 +106,7 @@ package ${ada_lib_name}.Analysis is type Unit_Provider_Interface is limited interface; type Unit_Provider_Access is - access Unit_Provider_Interface'Class; + access all Unit_Provider_Interface'Class; type Unit_Provider_Access_Cst is access constant Unit_Provider_Interface'Class; ${ada_doc('langkit.u...
Convert README CI badge to GitHub Actions We don't use Travis CI any more.
@@ -14,7 +14,7 @@ QuTiP: Quantum Toolbox in Python [P. D. Nation](https://github.com/nonhermitian), and [J. R. Johansson](https://github.com/jrjohansson) -[![Build Status](https://img.shields.io/travis/qutip/qutip?logo=Travis)](https://travis-ci.org/qutip/qutip) +[![Build Status](https://github.com/qutip/qutip/actions/...
BUG: remove setup/teardown Remove setup/teardown since these functions are defined at a different level.
@@ -117,20 +117,14 @@ def generate_instrument_list(package=None): class InstTestClass(): """Provides standardized tests for pysat instrument libraries. """ - def setup(self): - self.module_attrs = ['platform', 'name', 'tags', 'sat_ids', + module_attrs = ['platform', 'name', 'tags', 'sat_ids', 'load', 'list_files', 'dow...
Update stack with updated template Using self.template will describe existing stack info, and return the same template in stack. Updated template will be overridden.
@@ -174,17 +174,18 @@ class ClusterStack(StackInfo): def _persist_stack_resources(self, keys): """Set the resources in template identified by keys to have a DeletionPolicy of 'Retain'.""" + template = self.template for key in keys: - self.template["Resources"][key]["DeletionPolicy"] = "Retain" + template["Resources"][k...
Update README.md Small change
@@ -52,7 +52,7 @@ Please refer to the [full documentation](http://yeti-platform.readthedocs.io/en/ Yeti has a `docker-compose` script to get up and running even faster; this is useful for testing or even running production instances of Yeti should your infrastructure support it. Full instructions [here](https://github....
Simplified New publishing check + removed unnecessary Webhook check Replaced type checking with `TextChannel.is_news()` for simplification to check is possible to publish new Removed unnecessary `while` loop on `send_webhook` that check is webhook available. No need for this after starting ordering modification.
@@ -116,7 +116,7 @@ class News(Cog): ) payload["data"]["pep"].append(msg.id) - if msg.channel.type is discord.ChannelType.news: + if msg.channel.is_news(): log.trace("Publishing PEP annnouncement because it was in a news channel") await msg.publish() @@ -170,7 +170,7 @@ class News(Cog): ) payload["data"][maillist].appe...
Move check for existing letter earlier in endpoint In response to: [^1]. [^1]:
@@ -169,6 +169,10 @@ def send_pdf_letter_notification(service_id, post_data): allow_guest_list_recipients=False, ) + # notification already exists e.g. if the user clicked send in different tabs + if get_notification_by_id(post_data['file_id']): + return {'id': str(post_data['file_id'])} + template = get_precompiled_le...
add mat_slopescaledepthbias_decal 0.000001 to decals_off a tradeoff, since it cannot be switched from in game anymore.
@@ -490,8 +490,9 @@ alias characters_ultra "r_flex 1;flex_rules 1;anim_3wayblend 1;r_teeth 1;flex_sm //r_decal_overlap_area .8 // Allow for decals to overlap each other more //r_decal_overlap_count 0 // Do not allow decals to overlap each other //r_decal_overlap_count 3 // Allow for 3 decals to overlap each other +//ma...
Improve error handling throw exception when file not found print name of file not found
@@ -86,7 +86,10 @@ def do_prepifg(gtiff_paths, params): log.info("Preparing interferograms by cropping/multilooking") parallel = params[cf.PARALLEL] - if all([os.path.isfile(f) for f in gtiff_paths]): + for f in gtiff_paths: + if not os.path.isfile(f): + raise Exception("Can not find geotiff: " + str(f) + ". Ensure you...
Fix tests for apostrophe Previous commit didn't reflect all locations and had a copy/paste error.
@@ -1029,7 +1029,7 @@ def test_xmp_sidecar_gps(): xmlns:photoshop="http://ns.adobe.com/photoshop/1.0/"> <photoshop:SidecarForExtension>jpg</photoshop:SidecarForExtension> <dc:description></dc:description> - <dc:title>St. James's Park</dc:title> + <dc:title>St. James&#39;s Park</dc:title> <!-- keywords and persons liste...
MAINT: precompute log(2.0 * M_PI) in `random_loggam' Most compilers should optimize it, but it doesn't hurt to inline and has a better name now.
@@ -342,7 +342,7 @@ uint64_t random_uint(bitgen_t *bitgen_state) { * using logfactorial(k) instead. */ double random_loggam(double x) { - double x0, x2, xp, gl, gl0; + double x0, x2, lg2pi, gl, gl0; RAND_INT_TYPE k, n; static double a[10] = {8.333333333333333e-02, -2.777777777777778e-03, @@ -350,23 +350,25 @@ double ra...
fix(Query Report): Abort last ajax request in refresh If there are two ajax requests and the 1st one takes longer than the 2nd, it's data overrides the report later
@@ -235,7 +235,13 @@ frappe.views.QueryReport = class QueryReport extends frappe.views.BaseList { filters = Object.assign(filters || {}, obj); } - return new Promise(resolve => frappe.call({ + // only one refresh at a time + if (this.last_ajax) { + this.last_ajax.abort(); + } + + return new Promise(resolve => { + this....
fix typo in _ppg_clean_nabian2018 docs assuming it's ok to directly push to dev for small typos!
@@ -117,7 +117,7 @@ def _ppg_clean_elgendi(ppg_signal, sampling_rate): def _ppg_clean_nabian2018(ppg_signal, sampling_rate, heart_rate=None): - """Low-pass filter for continuous BP signal preprocessing, adaopted from Nabian et al. (2018).""" + """Low-pass filter for continuous BP signal preprocessing, adapted from Nabi...
Make most ignore patterns more selective Specifically, match them only in the current (project root) directory.
-*.egg-info +/*.egg-info *.pyc -.coverage +/.coverage .DS_Store -build/ -coverage.xml -dist/ -htmlcov/ -venv/ -_build/ -_static/ -_templates/ -_test.py +/build/ +/coverage.xml +/dist/ +/htmlcov/ +/venv/ +/_build/ +/_static/ +/_templates/ +/_test.py
Update appshell_extensions.js Updating comments
@@ -37,6 +37,8 @@ if (!appshell.fs) { if (!appshell.app) { appshell.app = {}; } + +// Alias the appshell object to brackets. This is temporary and should be removed. if (!brackets) { brackets = appshell; }
Fix BI API HG-- branch : feature/microservices
@@ -337,7 +337,7 @@ class BIAPI(API): "username": u.username, "full_name": "%s %s" % (u.last_name, u.first_name) } for u in qs), - key=lambda u: u["name"]) + key=lambda u: u["username"]) @executor("query") @api @@ -363,10 +363,10 @@ class BIAPI(API): if ar.user: i["user"] = { "id": ar.user.id, - "name": "%s %s" % (u.la...
2.8.3 Automatically generated by python-semantic-release
@@ -9,7 +9,7 @@ https://community.home-assistant.io/t/echo-devices-alexa-as-media-player-testers """ from datetime import timedelta -__version__ = "2.8.2" +__version__ = "2.8.3" PROJECT_URL = "https://github.com/custom-components/alexa_media_player/" ISSUE_URL = "{}issues".format(PROJECT_URL)
Require xopen 0.7.3 (for the PipedGzipReader speedups) Close
@@ -102,7 +102,7 @@ setup( package_dir={'': 'src'}, packages=find_packages('src'), entry_points={'console_scripts': ['cutadapt = cutadapt.__main__:main']}, - install_requires=['dnaio>=0.3', 'xopen>=0.5.0'], + install_requires=['dnaio>=0.3', 'xopen>=0.7.3'], extras_require={ 'dev': ['Cython', 'pytest', 'pytest-timeout',...
Log statistics about restart/omit trials As discussed, logging these statistics has two benefits: 1. Help us confirm that all missing data are intended. 2. Give us the statistics needed to find a better solution to missing data.
@@ -219,6 +219,8 @@ class TrialInstanceManager: # pylint: disable=too-many-instance-attributes def __init__(self, num_trials, experiment_config): self.experiment_config = experiment_config self.num_trials = num_trials + self.num_preemptible_restarts = 0 + self.num_preemptible_omits = 0 # Bound for the number of nonpree...
Add gshortcut to MIME type choices to be consistent Add third party MIME type shortcut
@@ -500,6 +500,7 @@ MIMETYPE_GA_SCRIPT = f'{APPLICATION_VND_GOOGLE_APPS}script' MIMETYPE_GA_SITES = f'{APPLICATION_VND_GOOGLE_APPS}sites' MIMETYPE_GA_SPREADSHEET = f'{APPLICATION_VND_GOOGLE_APPS}spreadsheet' MIMETYPE_GA_SHORTCUT = f'{APPLICATION_VND_GOOGLE_APPS}shortcut' +MIMETYPE_GA_3P_SHORTCUT = f'{APPLICATION_VND_GO...
[easy] Add blank line to docstring A small help for the poor docstring parser in its ungrateful job... (rendered docs look mangled)
class IntermediateStorageDefinition(IConfigMappable): """Defines intermediate data storage behaviors. + Args: name (str): Name of the storage mode. is_persistent (bool): Whether the storage is persistent in a way that can cross process/node
Add e3-core as a dependency for Langkit TN:
@@ -21,7 +21,8 @@ setup( author_email='report@adacore.com', url='https://www.adacore.com', description='A Python framework to generate language parsers', - install_requires=['Mako', 'PyYAML', 'enum', 'enum34', 'funcy', 'docutils'], + install_requires=['Mako', 'PyYAML', 'enum', 'enum34', 'funcy', 'docutils', + 'e3-core'...
Signal error on connection error instead of asserting Summary: No need to assert on connection errors.
@@ -485,7 +485,10 @@ void Pair::handleConnecting() { // Verify that connecting was successful rv = getsockopt(fd_, SOL_SOCKET, SO_ERROR, &optval, &optlen); GLOO_ENFORCE_NE(rv, -1); - GLOO_ENFORCE_EQ(optval, 0, "SO_ERROR: ", strerror(optval)); + if (optval != 0) { + signalIoFailure( + GLOO_ERROR_MSG("connect ", peer_.st...
Add Microsoft Azure Link Add link to documentation for setting up a hail-capable cluster on Microsoft Azure HDInsight
@@ -10,6 +10,14 @@ While Hail does not have any built-in tools for working with tool <https://github.com/hms-dbmi/hail-on-AWS-spot-instances>`__ developed by Carlos De Niz with the `Avillach Lab <https://avillach-lab.hms.harvard.edu/>`_ at Harvard Medical School +Microsoft Azure +--------------- + +The step by step, la...