message
stringlengths
13
484
diff
stringlengths
38
4.63k
[doc]Update doc for profiling using the correct VARs Based on code here: Also, verified that the ENV vars as is makes "ray start" crash.
@@ -34,8 +34,8 @@ If you want to launch Ray in profiling mode, define the following variables: .. code-block:: bash - export RAYLET_PERFTOOLS_PATH=/usr/lib/x86_64-linux-gnu/libprofiler.so - export RAYLET_PERFTOOLS_LOGFILE=/tmp/pprof.out + export PERFTOOLS_PATH=/usr/lib/x86_64-linux-gnu/libprofiler.so + export PERFTOOLS...
minor spelling correction minor spelling correction in documentation
@@ -118,7 +118,7 @@ Install from GitHub ------------------- Alternatively, install it directly from the source repository on -GitHub. This is the "bleading edge" version, but it may be useful for +GitHub. This is the "bleeding edge" version, but it may be useful for accessing bug fixes and/or new features that have not...
[core] input: add logging for input events to debug input event issues (which seem to become more frequent), add some input event logging. see
@@ -5,9 +5,12 @@ import json import uuid import time import select +import logging import threading import bumblebee.util +log = logging.getLogger(__name__) + LEFT_MOUSE = 1 MIDDLE_MOUSE = 2 RIGHT_MOUSE = 3 @@ -24,6 +27,7 @@ def read_input(inp): """Read i3bar input and execute callbacks""" epoll = select.epoll() epoll....
Order test results by decreasing date for build order This means that "newer" results will be found first Thus a newer "true" will beat an older "false"
@@ -1056,6 +1056,7 @@ function loadBuildOutputTable(build_info, options={}) { '{% url "api-stock-test-result-list" %}', { build: build_info.pk, + ordering: '-date', }, { success: function(results) {
Update ebcli version in ebcli/__init__.py so that the package is ready for the next official release cr
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF # ANY KIND, either express or implied. See the License for the specific # language governing permissions and limitations under the License. -__version__ = '3.10.3' +__version__ = '3.10.4'
Wait for applications to terminate on model reset Model.reset() does not wait for all applications to terminiate even though it does wait for all machines to terminate. This commit fixes the issue by blocking until the application count is zero.
@@ -845,6 +845,9 @@ class Model: log.debug('Resetting model') for app in self.applications.values(): await app.destroy() + await self.block_until( + lambda: len(self.applications) == 0 + ) for machine in self.machines.values(): await machine.destroy(force=force) await self.block_until(
Update jaomix.py Cleanup comments
@@ -51,54 +51,6 @@ class JaomixCrawler(Crawler): } ) - # self.novel_id = soup.select_one("div.like-but")["id"] - # - # pages_soup = self.make_soup( - # self.submit_form( - # ajax_url, - # data={ - # "action": "toc", - # "selectall": self.novel_id, - # }, - # ) - # ) - # - # pages = reversed(pages_soup.select("select.se...
Fixed defualt.yaml default.yaml was copied from ChIP-seq workflow. Fixed description and parameters to match ATA-seq
################################################################################ -# This file is the default configuration of the ChIP-seq workflow! +# This file is the default configuration of the ATAC-seq workflow! # # In order to adjust some parameters, please either use the wrapper script -# (eg. /path/to/snakemake...
Docs: Update cloud.rst [skip ci] This PR updates `cloud.rst` with a minor punctuation improvements.
Cloud Deployments ================= -To get started running Dask on common Cloud providers -like Amazon, Google, or Microsoft -we currently recommend deploying +To get started running Dask on common Cloud providers like Amazon, +Google, or Microsoft, we currently recommend deploying :doc:`Dask with Kubernetes and Helm ...
Drop "target" terminology It was being used inconsistently, which made it look like there was a "module" and a "target module", when both referred to the same thing.
@@ -67,7 +67,7 @@ class WorkflowHelper(PostProcessor): for frame in frames: entry.stack.add_frame(frame) - def get_frame_children(self, command, target_module, module_only=False, include_target_root=False): + def get_frame_children(self, command, module, module_only=False, include_root_module=False): """ For a form ret...
Update interactive-learning.rst I believe the proposed action should be venue rather than concert_reviews as shown below. Otherwise the text makes no sense.
@@ -120,7 +120,7 @@ possibilities (depending on the training run, it might also be correct): concerts: None, venues: None ------ - ? The bot wants to run 'action_show_concert_reviews', correct? No + ? The bot wants to run 'action_show_venue_reviews', correct? No Now we type ``n``, because it chose the wrong action, and...
GafferArnoldUI::ArnoldShaderUI : Create default parameter labels based on Arnold snake_case naming convention
@@ -178,9 +178,15 @@ def __translateNodeMetadata( nodeEntry ) : __metadata[paramPath]["layout:section"] = page # Label from OSL "label" - label = __aiMetadataGetStr( nodeEntry, paramName, "label", label ) + label = __aiMetadataGetStr( nodeEntry, paramName, "label" ) if label is not None : __metadata[paramPath]["label"]...
Version changes should invalidate pytest runs. ### Problem When changing the pytest version or when adding/removing pytest plugins, pants does not invalidate targets. ### Solution Make sure pytest fingerprinting takes requirements into account. ### Result Test cache is correctly invalidated if we change any of the unde...
@@ -18,7 +18,8 @@ class PyTest(Subsystem): '--args', type=list, member_type=str, help="Arguments to pass directly to Pytest, e.g. `--pytest-args=\"-k test_foo --quiet\"`", ) - register('--version', default='pytest>=4.6.6,<4.7', help="Requirement string for Pytest.") + register('--version', default='pytest>=4.6.6,<4.7',...
Make meta=True by default for linint2 Docstring already said True is default behavior, updated code to match.
@@ -3,7 +3,7 @@ import numpy as np import xarray as xr from dask.array.core import map_blocks -def linint2(fi, xo, yo, icycx, xmsg=None, meta=False, xi=None, yi=None): +def linint2(fi, xo, yo, icycx, xmsg=None, meta=True, xi=None, yi=None): """Return a 2-dimensionally linearly interpolated grid. Args:
mismatch bug for external datasets adds check for None when fixing data mismatches.
@@ -254,16 +254,16 @@ def extract_images(filedata, i, png_destination, flattened_to_level, failed, is1 # Function when pydicom fails to read a value attempt to read as other types. def fix_mismatch_callback(raw_elem, **kwargs): try: + if raw_elem.VR: values.convert_value(raw_elem.VR, raw_elem) - except TypeError: + exc...
Set a classname prefix for atomic styletron css classes fix css conflict between plotly and baseweb slider
@@ -24,7 +24,7 @@ import { LightTheme, BaseProvider } from "baseui" import { Provider as StyletronProvider } from "styletron-react" import { SCSS_VARS } from "autogen/scssVariables" -const engine = new Styletron() +const engine = new Styletron({ prefix: "st-" }) const popupZIndex = Number(SCSS_VARS["$z-index-popup-menu...
`datetime.timedelta`: Remove explicit inheritance from `SupportsAbs` Fixes
@@ -2,7 +2,7 @@ import sys from _typeshed import Self from abc import abstractmethod from time import struct_time -from typing import ClassVar, NamedTuple, NoReturn, SupportsAbs, TypeVar, overload +from typing import ClassVar, NamedTuple, NoReturn, TypeVar, overload from typing_extensions import Literal, TypeAlias, fin...
Add test conditions for get_updater() and get_one_valid_targetinfo Some of these conditions detected bugs
@@ -1839,8 +1839,38 @@ class TestMultiRepoUpdater(unittest_toolbox.Modified_TestCase): # Restore the Root file. shutil.move(backup_root_filepath, root_filepath) + # Verify that a targetinfo is not returned for a non-existent target. + multi_repo_updater.map_file['mapping'][1]['terminating'] = False self.assertRaises(tu...
Update mediaprocessor.py move purge before default track selection prioritize default source track if present (copy is higher priority)
@@ -487,6 +487,7 @@ class MediaProcessor: same_codec_options = [x for x in same_channel_options if Converter.codec_name_to_ffprobe_codec_name("audio", x['codec']) == codec or (x['codec'] == 'copy' and self.getSourceStream(x['map'], info).codec == codec)] if len(same_codec_options) > 1: same_codec_options.sort(key=lambd...
Update README.rst Specify how to install `stanfordnlp` models so that tests pass.
@@ -41,6 +41,7 @@ Use ``pyenv`` to manage Python versions and ``poetry`` for package builds. - ``$ pyenv local cltkv1``. Open a new window and this should be activated, with a ``(cltkv1) `` prepended to your Bash prompt. * Install ``poetry`` to support packaging: https://poetry.eustace.io/docs/ * Install dependencies i...
Changes ColorBoxPlot to default to "boxLabels=False". This seems reasonable given that it takes so long to render lots of box labels, and this information is (by default) available via the hover info.
@@ -765,7 +765,7 @@ class BoxKeyPlot(WorkspacePlot): class ColorBoxPlot(WorkspacePlot): def __init__(self, ws, plottype, gss, dataset, gateset, - sumUp=False, boxLabels=True, hoverInfo=True, invert=False, + sumUp=False, boxLabels=False, hoverInfo=True, invert=False, prec='compact', linlg_pcntle=.05, minProbClipForWeigh...
print_counters `self.logger.info("Total {}: {}/{}".format(key, val, self.max_per_day[key]))`
@@ -256,7 +256,7 @@ class Bot(object): def print_counters(self): for key, val in self.total.items(): if val > 0: - self.logger.info("Total {}: {}".format(key, val)) + self.logger.info("Total {}: {}/{}".format(key, val, self.max_per_day[key])) self.logger.info("Total requests: {}".format(self.api.total_requests)) def de...
Add warning when no credentials found. Credential detection can take a very long time to fail. Change copy as suggested by
@@ -139,7 +139,10 @@ func getSessionOrDefaultCreds(profile string) map[string]string { opts.Profile = profile // Obtain AWS credentials and pass them through to the container runtime via env variables if sess, err := session.NewSessionWithOptions(opts); err == nil { - if creds, err := sess.Config.Credentials.Get(); err...
Update broad-crawls.rst Added section on how to treat memory consumption problems of broad crawls.
@@ -174,3 +174,32 @@ It is turned OFF by default because it has some performance overhead, and enabling it for focused crawls doesn't make much sense. .. _ajax crawlable: https://developers.google.com/webmasters/ajax-crawling/docs/getting-started + +Reducing memory consumption for broad crawls +========================...
fix: adjust to new solution object Fluxes are now default Series so allow them to be as input to room and moma
@@ -81,7 +81,7 @@ def fba(model, objective=None, reactions=None, *args, **kwargs): assert_optimal(model) solution = get_solution(model) if reactions is not None: - result = FluxDistributionResult({r: solution.get_primal_by_id(r) for r in reactions}, solution.f) + result = FluxDistributionResult({r: solution[r] for r in...
Schedule build every day of the week. Starts 3 hours before the SDG daily build:
-String cron_string = BRANCH_NAME == "master" ? "H 12 * * 1,3,5" : "" +String cron_string = BRANCH_NAME == "master" ? "H 12 * * 1-5" : "" // Mon-Fri at noon UTC, 8am EST, 5am PDT pipeline { agent { label 'ephemeral-linux' }
[IMPR] use a sentinel variable to determine the end of an iterable This enables None to be part of the iterables chain
@@ -1029,9 +1029,11 @@ def roundrobin_generators(*iterables): :return: the combined generator of iterables :rtype: generator """ + sentinel = object() return (item - for item in itertools.chain.from_iterable(zip_longest(*iterables)) - if item is not None) + for item in itertools.chain.from_iterable( + zip_longest(*iter...
[hail] use TLS to speak to maven repos Protectes from (unlikely) man in the middle attacks on our infrastructure.
@@ -22,8 +22,8 @@ repositories { mavenCentral() jcenter() maven { url "https://repository.cloudera.com/artifactory/cloudera-repos/" } - maven { url "http://repo.hortonworks.com/content/repositories/releases/" } - maven { url "http://repo.spring.io/plugins-release/" } + maven { url "https://repo.hortonworks.com/content/...
feat(ldap): ldap search string validation ldap search string is user input. validate to ensure is enclosed in '()', has the '{0}' placeholder and has the same number of brackets as used in complex ldap search strings. issue
@@ -13,13 +13,12 @@ class LDAPSettings(Document): return if not self.flags.ignore_mandatory: - if not self.ldap_search_string.startswith('('): - self.ldap_search_string = '(' + self.ldap_search_string - if not self.ldap_search_string.endswith(')'): - self.ldap_search_string = self.ldap_search_string + ')' - - if self.l...
puppeteer: Replace `hidden: false` with `visible: true`. I had a misconception with hidden and visible options and thought `hidden: false` was same as `visible: true` and other way too. But `hidden: false` or `visible: false` does nothing more than checking if the selector exists. Also, to mention, `visible: false`'s w...
@@ -98,12 +98,12 @@ async function test_reply_with_r_shortcut(page) { } async function test_open_close_compose_box(page) { - await page.waitForSelector("#stream-message", {hidden: false}); + await page.waitForSelector("#stream-message", {visible: true}); await close_compose_box(page); await page.waitForSelector("#strea...
Use globally defined `device` instead of passing as arg The PR reduces the number of args in functions by using globally defined `device` variable.
@@ -47,9 +47,9 @@ def cross_validation_with_val_set(dataset, t_start = time.perf_counter() for epoch in range(1, epochs + 1): - train_loss = train(model, optimizer, train_loader, device) - val_losses.append(eval_loss(model, val_loader, device)) - accs.append(eval_acc(model, test_loader, device)) + train_loss = train(mo...
m1n1.constructutils: Keep a global addr->struct map This allows easily identifying pointers to the beginning of structs.
@@ -8,6 +8,7 @@ from construct.lib import HexDisplayedInteger from .utils import * g_struct_trace = set() +g_struct_addrmap = {} g_depth = 0 def recusive_reload(obj, token=None): @@ -80,6 +81,10 @@ def str_value(value, repr=False): if isinstance(value, DecDisplayedInteger): return str(value) if isinstance(value, int): ...
[swarming] remove command from local_smoke_test Also fix non-deterministic behavior.
@@ -69,7 +69,6 @@ DEFAULT_COMMAND = ["python", "-u", "%s.py" % HELLO_WORLD] # The default isolated command is to map and run HELLO_WORLD. DEFAULT_ISOLATE_HELLO = """{ "variables": { - "command": ["python", "-u", "%(name)s.py"], "files": ["%(name)s.py"], }, }""" % { @@ -999,7 +998,7 @@ class Test(unittest.TestCase): u'i...
Expand namespaces automatically when there is only one namespace Make namespace list expand by default if only one namespace is available
@@ -21,11 +21,16 @@ import { ToolbarConfig } from 'patternfly-ng/toolbar/toolbar-config'; import { ToolbarView } from 'patternfly-ng/toolbar/toolbar-view'; import { IMe } from '../../auth/auth.service'; import { AuthService } from '../../auth/auth.service'; -import { Namespace } from '../../resources/namespaces/namespa...
Fix test_multiple_hooks test by adding retry * Without the retry the test might fail if it ends before the hook of the workflow_succeeded ran.
# * limitations under the License. import os -import yaml import uuid import tempfile +import yaml +from retrying import retry + from integration_tests.tests import utils from integration_tests.framework import docl from integration_tests import AgentlessTestCase - from integration_tests.tests.utils import upload_mock_...
Fix TypeError Response.text is a string, Response.content is bytes
@@ -52,7 +52,7 @@ def get_feed_xml(requests, feed_name, page): resp = requests.get(feed_url) if ( resp.status_code == 500 - and 'AtomFeedRuntimeException: feed does not exist' in resp.content + and 'AtomFeedRuntimeException: feed does not exist' in resp.text ): exception = OpenmrsFeedDoesNotExist( f'Domain "{requests.d...
Partially revert "llvm, functions/LinearMatrix: Add value shape workaround for MappingProjection" This reverts commit The workaround is no longer necessary after: ("Component: if applicable, get matrix from parameter state when instantiating function")
@@ -4662,15 +4662,6 @@ class LinearMatrix(TransferFunction): # --------------------------------------- def get_param_ids(self): return [MATRIX] - def get_output_struct_type(self): - default_val = self.instance_defaults.value - # FIXME: PathwayProjection does not initialize default value correctly - from psyneulink.comp...
Update run_classifier_multi_label_infer.py run_classifier_multi_label_infer.py add output_logits and output_prob
@@ -32,6 +32,9 @@ def main(): tokenizer_opts(parser) + parser.add_argument("--output_logits", action="store_true", help="Write logits to output file.") + parser.add_argument("--output_prob", action="store_true", help="Write probabilities to output file.") + args = parser.parse_args() # Load the hyperparameters from the...
Fix `unit.modules.test_znc` for Windows Mock the signal object as it's missing SIGUSR1 and SIGHUP on Windows
@@ -54,7 +54,8 @@ class ZncTestCase(TestCase, LoaderModuleMockMixin): Tests write the active configuration state to config file ''' mock = MagicMock(return_value='SALT') - with patch.dict(znc.__salt__, {'ps.pkill': mock}): + with patch.dict(znc.__salt__, {'ps.pkill': mock}), \ + patch.object(znc, 'signal', MagicMock())...
Pass references when not consuming argument When the argument to a function is not consumed in that function, it is better to pass a reference.
* ------------------------------------------------------------------------------ */ -#![allow(unknown_lints)] - use protobuf; use protobuf::{Message as ProtobufMessage, ProtobufError}; use rand; @@ -85,9 +83,9 @@ impl ZmqDriver { let driver_thread = thread::spawn(move || { driver_loop( update_sender, - self.stop_receiv...
tv4play: fixed a crash if someone tried to download a geoblock file fixed:
@@ -73,6 +73,9 @@ class Tv4play(Service, OpenGraphThumbMixin): url = "https://playback-api.b17g.net/media/{}?service=tv4&device=browser&protocol=hls%2Cdash&drm=widevine".format(vid) res = self.http.request("get", url, cookies=self.cookies) + if res.status_code > 200: + yield ServiceError("Can't play this because the vi...
Update Nintendo - Super Nintendo Entertainment System.dat Added homepage to Banzai mario world
@@ -11,6 +11,7 @@ game ( game ( name "Banzai Mario World (USA)" description "'Super Mario World' hack by GbreezeSunset" + homepage "https://www.smwcentral.net/?p=section&a=details&id=11477" rom ( name "Banzai Mario World.sfc" size 2097152 crc 922d3660 md5 1daa2333725eec3e0f0ec077c2395755 sha1 ddc5df0b72a3a7b8e490464908...
Update codeinput.kv Demo Showcasing code input changed sample code to Python 3
@@ -5,5 +5,5 @@ ShowcaseScreen: CodeInput: padding: '4dp' - text: 'class Hello(object):\n\tpass\n\nprint "Hello world"' + text: 'class Hello(object):\n\tpass\n\nprint("Hello world")' focus: True if root.parent else False
Don't notify batch observers unless batch is new Updates the publisher to only notify batch observers if the batch is new (is not already in the queue).
@@ -468,9 +468,6 @@ impl SyncBlockPublisher { pub fn on_batch_received(&self, batch: Batch) { let mut state = self.state.write().expect("Lock should not be poisoned"); - for observer in &state.batch_observers { - observer.notify_batch_pending(&batch); - } // Batch can be added if the signer is authorized and the batch ...
Update german numbers of netto installation Updated the numbers of netto installed electricity in Germany. My source came from "Frauenhofer ISE" the data is from July 2018 Source link:
] ], "capacity": { - "biomass": 9501, - "coal": 46336, - "gas": 29731, + "biomass": 7400, + "coal": 46250, + "gas": 29550, "geothermal": 39, "hydro": 5490, "hydro storage": 9440, "nuclear": 9516, "oil": 4437, - "solar": 40716, + "solar": 44320, "unknown": 3137, - "wind": 49592 + "wind": 58190 }, "contributors": [ "http...
Update dynamic_step_driver.py back_prop=False is deprecated. So updated it using tf.stop_gradient.
@@ -193,12 +193,11 @@ class DynamicStepDriver(driver.Driver): self.env.time_step_spec()) counter = tf.zeros(batch_dims, tf.int32) - [_, time_step, policy_state] = tf.while_loop( + [_, time_step, policy_state] = tf.nest.map_structure(tf.stop_gradient,tf.while_loop( cond=self._loop_condition_fn(), body=self._loop_body_fn...
message: de-duplicate reaction type conversion Removes some duplicate code in Message.{add,remove}_reaction. The code in question converts the emoji object from Reaction, Emoji, str, or PartialEmoji to a string form suitable for sending over the wire.
@@ -675,18 +675,7 @@ class Message: The emoji parameter is invalid. """ - if isinstance(emoji, Reaction): - emoji = emoji.emoji - - if isinstance(emoji, Emoji): - emoji = '%s:%s' % (emoji.name, emoji.id) - elif isinstance(emoji, PartialEmoji): - emoji = emoji._as_reaction() - elif isinstance(emoji, str): - pass # this ...
web: InternalContentHandler logs exceptions Maybe it should actually log as an exception?
@@ -748,6 +748,7 @@ class InternalContentHandler (SplitRequestHandler): self.do_response(False) def do_response (self, is_get): + path = "<Unknown>" try: path = self.path.lstrip("/").replace("/","__").replace(".","_") r = getattr(self, "GET_" + path, None) @@ -793,8 +794,11 @@ class InternalContentHandler (SplitRequest...
Update migration guide for RunConfig Test Plan: docs only Reviewers: alangenfeld, prha
@@ -83,7 +83,7 @@ Error: Fix: -Find any references to context.resources.<resource_name>, and ensure that the enclosing +Find any references to `context.resources.<resource_name>`, and ensure that the enclosing solid definition, type definition, or config function has the resource key specified in its `required_resource...
Update netrxd.py Fixed bug in the update (failing when no "state" were present)
@@ -530,10 +530,14 @@ def _addRates(self, params): if 'regions' not in param: # param['regions'] = [None] # Following Craig's suggestion (in concordance with the default in NEURON) - param['regions'] = [self.rxd['species'][species]['regions'] for species in self.rxd['species'].keys() if param['species']==species] + \ -...
Need openbsd-netcat in Arch Linux Similar to
@@ -52,7 +52,7 @@ case "$distro" in echo "Updating mirrors" pacman -Sy &> $LOG_DIR/pacman_update.log echo "|-- running pacman install...." - yes | pacman -S git libtool m4 automake curl pkg-config python python-pip libffi make autoconf gcc10 sudo inetutils bc + yes | pacman -S git libtool m4 automake curl pkg-config py...
ImageNode : Remove context asserts The new ContextSanitiser is a more convenient way of achieving the same thing.
@@ -118,31 +118,18 @@ void ImageNode::hash( const Gaffer::ValuePlug *output, const Gaffer::Context *co } else if( output == imagePlug->formatPlug() ) { - // The asserts in these 4 conditionals can be uncommented to catch anywhere that these - // global plugs are being hashed with unnecessary tile specific context. This...
Update magentocore.txt Minus dups.
@@ -3290,3 +3290,26 @@ artichgroup.com jquerylib-min.com jquerylib-min.net onlinecdn-js.com + +# Reference: https://www.riskiq.com/resources/research/magecart-ant-and-cockroach-skimmer/ + +2binary-education.pw +ads2.adverline.com/retargetproduit/partntertag/103754_tag.js +alexa-rank.pw +batbing.com +bgznnfzn.pw +checki...
[modules/shell] remove obsolete event handlers modules are now automatically updated when clicked. fixes
@@ -50,10 +50,6 @@ class Module(core.module.Module): if self.parameter("scrolling.makewide") is None: self.set("scrolling.makewide", False) - # LMB and RMB will update output regardless of timer - core.input.register(self, button=core.input.LEFT_MOUSE, cmd=self.update) - core.input.register(self, button=core.input.RIGH...
Fix Syntax Error in Calling b2a_hex() s/hbyteorder/byteorder/
@@ -30,7 +30,7 @@ LOGGER = logging.getLogger(__name__) class NoopPayload(object): def __init__(self): self.nonce = binascii.b2a_hex(random.getrandbits( - 8 * 8).to_bytes(8, hbyteorder='little')) + 8 * 8).to_bytes(8, byteorder='little')) self._sha512 = None def sha512(self):
Fix datastreamer Summary: `WorkerDone` is put to the queue at the end of data. It's a namedtuple, which is an instance of Sequence. The change preserves the type of the object, which is necessary to make data streamer stops.
@@ -144,17 +144,21 @@ def pin_memory(batch): elif isinstance(batch, string_classes): return batch elif dataclasses.is_dataclass(batch): - retval = dataclasses.replace( + return dataclasses.replace( batch, **{ field.name: pin_memory(getattr(batch, field.name)) for field in dataclasses.fields(batch) } ) - return retval e...
Replace USER_EDIT_PAGE links with UserEditPage getter Fix missing user id param
import { mapState, mapGetters } from 'vuex'; import { UserKinds } from 'kolibri.coreVue.vuex.constants'; import commonCoreStrings from 'kolibri.coreVue.mixins.commonCoreStrings'; + import cloneDeep from 'lodash/cloneDeep'; import PaginatedListContainer from 'kolibri.coreVue.components.PaginatedListContainer'; import Us...
Update README.md Adding payloads for Citrix and Cisco
@@ -388,6 +388,19 @@ Assuming payloads such as the previous return a verbose error. You can start poi ]> <root></root> ``` +### Cisco WebEx +``` +<!ENTITY % local_dtd SYSTEM "file:///usr/share/xml/scrollkeeper/dtds/scrollkeeper-omf.dtd"> +<!ENTITY % url.attribute.set '>Your DTD code<!ENTITY test "test"'> +%local_dtd; +...
PoseNet example [Example] PoseNet
@@ -60,22 +60,18 @@ async function detectPoseInRealTime(video) { await predict(); algorithm.onChange((algorithm) => { guiState.algorithm = algorithm; - poseDetectionFrame(); }); scoreThreshold.onChange((scoreThreshold) => { guiState.scoreThreshold = scoreThreshold; util._minScore = guiState.scoreThreshold; - poseDetect...
Update CLI to permit quitting. The autoloaded device wouldn't quit properly. Now it should.
@@ -50,8 +50,8 @@ parser.add_argument('-gb', '--adjust_y', type=int, help='adjust grbl home_y posi parser.add_argument('-rs', '--ruida', action='store_true', help='run ruida-emulator') -args = parser.parse_args(sys.argv[1:]) -# args = parser.parse_args(["-zc"]) +# args = parser.parse_args(sys.argv[1:]) +args = parser.p...
catch exceptions for safety Since this isn't a critical piece of functionality we don't want to break app saves if this fails.
@@ -4,6 +4,7 @@ from django.dispatch.dispatcher import Signal from corehq.apps.callcenter.app_parser import get_call_center_config_from_app from corehq.apps.domain.models import Domain +from dimagi.utils.logging import notify_exception def create_app_structure_repeat_records(sender, application, **kwargs): @@ -19,6 +20...
Handling potential CRS mismatch This fixes the error described in issue .
@@ -43,10 +43,13 @@ def calc_bounding_box_projected_coordinates(shapefile_zone, shapefile_surroundin # connect both files and avoid repetition data_zone = Gdf.from_file(shapefile_zone) + data_zone = data_zone.to_crs(get_geographic_coordinate_system()) + data_dis = Gdf.from_file(shapefile_surroundings) data_dis = data_d...
performance improvement changed the printing part which create a new String everytime it does str +=
@@ -54,15 +54,11 @@ public class InsertionSort { numList.set(k+1, val); } //display the sorted list to the user - String str=""; for(int i=0; i < numList.size() - 1; i++) { - str+=String.valueOf(numList.get(i)); - str+=", "; - } - str+=String.valueOf(numList.get(numList.size()-1)); - System.out.println(str); + System.o...
Enable the 'redis' / 'aiohttp' Sentry integrations This will provide breadcrumbs for these systems in all our Sentry events, if applicable. Closes
@@ -3,7 +3,9 @@ import logging import discord import sentry_sdk from discord.ext.commands import when_mentioned_or +from sentry_sdk.integrations.aiohttp import AioHttpIntegration from sentry_sdk.integrations.logging import LoggingIntegration +from sentry_sdk.integrations.redis import RedisIntegration from bot import co...
Add document for case sensitivity Resolves
@@ -138,6 +138,31 @@ this behavior. For instance, see below: ... Reference 'a' is ambiguous, could be: a, a.; +Additionally, it is strongly discouraged to use case sensitive column names. Koalas disallows it by default. + +.. code-block:: python + + >>> import databricks.koalas as ks + >>> kdf = ks.DataFrame({'a': [1, ...
Surface data structure fix Surface data parameters were returned as arrays instead of scalars. This is now fixed.
@@ -2578,9 +2578,7 @@ class GempakSurface(GempakFile): station[param] = packed_buffer[iprm].decode().strip() else: for iprm, param in enumerate(parameters['name']): - station[param] = np.array( - packed_buffer[iprm], dtype=np.float32 - ) + station[param] = packed_buffer[iprm] stations.append(station) return stations
Replace link to 404 object IAM docs with a note on limited utility. Closes
@@ -1183,8 +1183,13 @@ class Blob(_PropertyMixin): def get_iam_policy(self, client=None): """Retrieve the IAM policy for the object. - See - https://cloud.google.com/storage/docs/json_api/v1/objects/getIamPolicy + .. note: + + Blob- / object-level IAM support does not yet exist and methods + currently call an internal ...
Rolling upgrades: Migrate to ceph-key module This change moves ceph-mgr upgrades to using ceph-key library. Fixes:
vars: upgrade_ceph_packages: True + ceph_release: "{{ ceph_stable_release }}" hosts: - "{{ mgr_group_name|default('mgrs') }}" set_fact: ceph_cluster_fsid: "{{ cluster_uuid_container.stdout if containerized_deployment else cluster_uuid_non_container.stdout }}" - - name: non container | create ceph mgr keyring(s) - comma...
Avoid caching event loop in telethon.sync This would cause issues when creating and setting a different event loop from a different thread since it would use the old loop and not the new one, solved by explicitly getting the loop every time, although this has a slight performance hit.
@@ -25,8 +25,7 @@ from .tl.custom.sendergetter import SenderGetter class _SyncGen: - def __init__(self, loop, gen): - self.loop = loop + def __init__(self, gen): self.gen = gen def __iter__(self): @@ -34,21 +33,25 @@ class _SyncGen: def __next__(self): try: - return self.loop.run_until_complete(self.gen.__anext__()) + ...
rbd-mirror: Allow to copy the admin keyring The ceph-rbd-mirror role allows to copy the admin keyring via the copy_admin_key variable but there's actually no task in that role doing the job.
group: "{{ ceph_uid if containerized_deployment else 'ceph' }}" mode: "{{ ceph_keyring_permissions }}" +- name: copy ceph admin keyring if needed + copy: + src: "{{ fetch_directory }}/{{ fsid }}/etc/ceph/{{ cluster }}.client.admin.keyring" + dest: "/etc/ceph/{{ cluster }}.client.admin.keyring" + owner: "{{ ceph_uid if ...
Update rc_model_SIA.py account for internal loads of light and appliance with factor (f = Hs/Es) account for soler heat gains with factor (f = sqrt(Hs))
@@ -590,11 +590,10 @@ def calc_rc_model_temperatures(phi_hc_cv, phi_hc_r, bpr, tsd, t): m_ve_mech = tsd['m_ve_mech'][t] m_ve_window = tsd['m_ve_window'][t] m_ve_inf = tsd['m_ve_inf'][t] - El = tsd['El'][t] - Ea = tsd['Ea'][t] + El = tsd['El'][t] * (bpr.architecture.Hs / bpr.architecture.Es) # account for a proportion o...
Add links to GitHub and GitHub issues Also capitalize some sentence starts
@@ -66,8 +66,8 @@ follows: Next Steps ---------- -* `sign up for release announcements <https://groups.google.com/group/nltk>`_ -* `join in the discussion <https://groups.google.com/group/nltk-users>`_ +* `Sign up for release announcements <https://groups.google.com/group/nltk>`_ +* `Join in the discussion <https://gro...
Azure XML adjustment the jackson dependencies have been commented
<version>${org.mongodb.version}</version> </dependency> - <dependency> + <!--dependency> <groupId>com.fasterxml.jackson.dataformat</groupId> <artifactId>jackson-dataformat-yaml</artifactId> <version>2.9.5</version> - </dependency> + </dependency--> <dependency> <groupId>ch.qos.logback</groupId> <artifactId>httpclient</...
Close the unused open file handle I didn't see anything in tempfile that looked like we could skip opening it in the first place
@@ -59,7 +59,8 @@ class TransientTempfile(object): """ def __enter__(self): - _, self.path = tempfile.mkstemp() + fd, self.path = tempfile.mkstemp() + os.close(fd) return self.path def __exit__(self, exc_type, exc_val, exc_tb):
fix return type for `Table.expand()` return type for `Table.expand()` was `int` should be `bool` based on the type annotation for `expand` argument for `Table.__init__`
@@ -247,7 +247,7 @@ class Table(JupyterMixin): ) @property - def expand(self) -> int: + def expand(self) -> bool: """Setting a non-None self.width implies expand.""" return self._expand or self.width is not None
Unify_One_Side: make trace message more specific TN:
@@ -19,7 +19,7 @@ package body Langkit_Support.Adalog.Unify_One_Side is function Apply (Self : in out Unify_Rec) return Boolean is begin - Trace ("In Unify"); + Trace ("In Unify_One_Side"); if Is_Defined (Self.Left) then Trace ("Left defined");
message view: Refactor _rerender_message to accept object of parameters. It is changed to improve readability, about what parameters are being passed.
@@ -1163,7 +1163,7 @@ export class MessageListView { header.replaceWith(rendered_recipient_row); } - _rerender_message(message_container, message_content_edited, is_revealed) { + _rerender_message(message_container, {message_content_edited, is_revealed}) { const row = this.get_row(message_container.msg.id); const was_s...
[hail] add make clean * [hail] add make clean * fix makefile g
@@ -339,3 +339,11 @@ native-lib-prebuilt: $(MAKE) -C src/main/c prebuilt native-lib-reset-prebuilt: $(MAKE) -C src/main/c reset-prebuilt + +clean: clean-env clean-docs native-lib-clean + ./gradlew clean $(GRADLE_ARGS) + rm -rf build/ + rm -rf python/hail/hail-all-spark.jar + rm -rf python/README.md + rm -rf $(SCALA_BUI...
Remove pre 3.3 special casing We aren't supporting those versions anymore anyways and it's hard to get test coverage on the code path.
@@ -9,12 +9,8 @@ available from its original location oemof/oemof/groupings.py SPDX-License-Identifier: GPL-3.0-or-later """ -try: from collections.abc import (Hashable, Iterable, Mapping, MutableMapping as MuMa) -except ImportError: - from collections import (Hashable, Iterable, Mapping, - MutableMapping as MuMa) from...
Refactor of logic to make code more readable Functionality remains as it was
@@ -248,12 +248,9 @@ def preview_letter_template_by_notification_id(service_id, notification_id, file page_number = page if page else "1" content = base64.b64encode(pdf_file).decode('utf-8') content_outside_printable_area = metadata.get("message") == "content-outside-printable-area" + page_is_in_invalid_pages = page_nu...
change docs for ray.remote num_gpus The documentation says that can take fractional num_gpus which is true, but the documentation lists it as an integer. I think this is strictly a problem in the docs.
@@ -2218,7 +2218,7 @@ def remote(*args, **kwargs): the remote function invocation. num_cpus (float): The quantity of CPU cores to reserve for this task or for the lifetime of the actor. - num_gpus (int): The quantity of GPUs to reserve + num_gpus (float): The quantity of GPUs to reserve for this task or for the lifetim...
Enable admin management of curricula This commit adds Curriculum model to Django admin, and makes it possible for people with proper permissions to view/add/change/delete the records from within. This is another part that was required by
@@ -11,6 +11,7 @@ from .models import ( Badge, TrainingRequirement, TrainingRequest, + Curriculum, ) @@ -18,6 +19,10 @@ class RoleAdmin(admin.ModelAdmin): list_display = ('name', 'verbose_name') +class CurriculumAdmin(admin.ModelAdmin): + list_display = ('__str__', 'slug', 'name', 'active', 'unknown') + + admin.site.re...
`select_related` collection on image listing `images/results.html` shows the collection if it's available, which results in `O(n)` queries.
@@ -43,7 +43,7 @@ class BaseListingView(TemplateView): # Get images (filtered by user permission) images = permission_policy.instances_user_has_any_permission_for( self.request.user, ['change', 'delete'] - ).order_by('-created_at') + ).order_by('-created_at').select_related('collection') # Search query_string = None
cortex_test.py: added test cases. Verify r/w core regs while running raises exception. Verify that all core registers can be read and written. Aligned printed timings for simulated gdb operations.
@@ -317,6 +317,38 @@ def cortex_test(board_id): origRegs[0] = origR0 target.write_core_registers_raw(['r0', 'r1', 'r2', 'r3'], origRegs) + print("Verify exception is raised while core is running") + target.resume() + try: + val = target.read_core_register('r0') + except exceptions.CoreRegisterAccessError: + passed = Tr...
Add get_bi_selector to managed_object model HG-- branch : feature/microservices
@@ -1300,6 +1300,32 @@ class ManagedObject(Model): def allow_autosegmentation(self): return self.get_autosegmentation_policy() == "e" + @classmethod + def get_bi_selector(cls, cfg): + qs = {} + print cfg + if "administrative_domain" in cfg: + d = AdministrativeDomain.get_by_id(cfg["administrative_domain"]) + if d: + qs...
fix bug where copying output and error file resulted in same file when multiple tests were declared in a single buildspec
@@ -305,11 +305,11 @@ class BuilderBase(ABC): """Copy output and error file into test root directory since stage directory will be removed.""" shutil.copy2( - self.metadata["outfile"], + os.path.join(self.stage_dir, os.path.basename(self.metadata["outfile"])), os.path.join(self.test_root, os.path.basename(self.metadata...
Constrain log length for CBC proxy payload This avoids any issues due to large payloads (e.g. with a lot of polygons in the 'areas' field). While we may miss part of the log in such cases, this is more than we get already anyway.
@@ -123,7 +123,7 @@ class CBCProxyClientBase(ABC): payload_bytes = bytes(json.dumps(payload), encoding='utf8') try: current_app.logger.info( - f"Calling lambda {lambda_name} with payload {payload}" + f"Calling lambda {lambda_name} with payload {str(payload)[:1000]}" ) result = self._lambda_client.invoke(
util/rhsm: Check if repositories is None before iterating When `get_fallback_rhsm_secrets` was used, `Subscriptions.repositories` was None, and `get_secrets` never returned the fallback secrets. So check if `repositories` is None before iterating over it, otherwise return the fallback secrets.
@@ -93,6 +93,7 @@ class Subscriptions: def get_secrets(self, url): # Try to find a matching URL from redhat.repo file first + if self.repositories is not None: for parameters in self.repositories.values(): if parameters["matchurl"].match(url) is not None: return {
Adds guide for the kubeflow dag runner image specification retrospectively. See #3761#issuecomment-846723307 for the discussion.
* `--package-path` and `--skaffold_cmd` flags were deleted. The compiled path can be specified when creating a KubeflowDagRunner class instance. TFX CLI doesn't depend on skaffold any more and use Docker SDK directly. +* Specify the container image for KubeflowDagRunner in the + KubeflowDagRunnerConfig directly instead...
Fix how stylechecks.py handles exclude directories... ... instead of testing whether the excluded pattern is present in the tested path, test that the tested path ends with the excluded pattern. The previous behavior was preventing "astdoc" from being checked by stylechecks because the "doc" directory was excluded. TN:
@@ -569,6 +569,18 @@ def check_file(report, filename): # pragma: no cover check_file_content(report, filename, content) +def excludes_match(path, excludes): + """ + Return whether at least one item in `excludes` matches the `path`. + + :type path: str + :type excludes: list[str] + :rtype: bool + """ + return any(path.e...
Fix history saved to original subject instance Fixes
@@ -66,7 +66,7 @@ class Subject(dict): value = copy.deepcopy(value) result_dict[key] = value new = Subject(result_dict) - new.history = self.history + new.history = self.history[:] return new @staticmethod
Automatically expose Entity_Info in the public APIs TN:
@@ -1466,7 +1466,7 @@ class CompileCtx(object): This also emits non-blocking errors for all types that are exposed in the public API whereas they should not. """ - from langkit.compiled_types import ArrayType, Struct + from langkit.compiled_types import ArrayType, Struct, StructMetaclass # All code must ignore _exposed...
Tweak format string used to generate robot documentation timestamp. The previous version fails on windows, which I'm guessing has to do with a couple of dashes (which are unnecessary; I don't even know why they were there in the first place).
@@ -88,7 +88,7 @@ class RobotDoc(BaseTask): """Generate the html. `libraries` is a list of LibraryDocumentation objects""" title = self.options.get("title", "Keyword Documentation") - date = time.strftime("%A %B %-d, %-I:%M %p") + date = time.strftime("%A %B %d, %I:%M %p") cci_version = cumulusci.__version__ stylesheet...
Using debug findsource Was working locally but not on CI
@@ -36,6 +36,7 @@ import sys ORIGINAL_getsourcefile = inspect.getsourcefile +ORIGINAL_findsource = inspect.findsource THIS_FILE = os.path.abspath(__file__) THIS_DIR = os.path.dirname(THIS_FILE) REZ_SOURCE_DIR = os.getenv("REZ_SOURCE_DIR", os.path.dirname(THIS_DIR)) @@ -52,6 +53,39 @@ CLONE_URL = os.getenv( ) +def DEBUG...
ocs_ci/ocs/resources/pvc.py - Added backed_sc method
@@ -100,6 +100,7 @@ class PVC(OCS): """ return self.data.get('spec').get('accessModes')[0] + @property def backed_sc(self): """ Returns the storage class of pvc object in namespace
Updated: return type for getweakrefs Fixes
import sys -from typing import Any, Callable, Generic, Optional, TypeVar, overload +from typing import Any, Callable, Generic, List, Optional, TypeVar, overload if sys.version_info >= (3, 9): from types import GenericAlias @@ -25,7 +25,7 @@ class ReferenceType(Generic[_T]): ref = ReferenceType def getweakrefcount(__obj...
Remove deprecated nova commands novaclient.cert was removed 18 months ago this commit removes those calls.
"availability_zones_find": "availability_zones.find", "availability_zones_findall": "availability_zones.findall", "availability_zones_list": "availability_zones.list", - "certs_convert_into_with_meta": "certs.convert_into_with_meta", - "certs_create": "certs.create", - "certs_get": "certs.get", "flavor_access_add_tenan...
add `dispenser_tx_hash` field added `dispenser_tx_hash` field to `dispenses` table to link dispenses directly to dispenser
@@ -64,6 +64,7 @@ def initialise(db): destination TEXT, asset TEXT, dispense_quantity INTEGER, + dispenser_tx_hash TEXT, PRIMARY KEY (tx_index, dispense_index, source, destination), FOREIGN KEY (tx_index, tx_hash, block_index) REFERENCES transactions(tx_index, tx_hash, block_index)) ''') @@ -310,10 +311,11 @@ def dispe...
socket: fix default mode for makefile Fixes
@@ -638,13 +638,11 @@ class socket: else: def listen(self, __backlog: int) -> None: ... # Note that the makefile's documented windows-specific behavior is not represented - if sys.version_info < (3,): - def makefile(self, mode: unicode = ..., buffering: int = ...) -> BinaryIO: ... - else: + if sys.version_info >= (3,):...
Cluster REST API changes Pass the config without the additional dict envelope Use the same endpoint for starting and joining
@@ -307,12 +307,21 @@ class Cluster(ClusterResourceBase): @rest_decorators.marshal_with(ClusterState) def put(self, cluster): """ - Start the "create cluster" execution. + Join the current manager to the cluster, or start a new one. - The created cluster will already have one node (the current manager). + If created, t...