From f959bc5bad300d8017947110042b525f8521c600 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 5 Aug 2026 12:39:20 +0000 Subject: [PATCH 1/3] style: remove erroneous `new` operator and fix annotations in `array/uint64` The private `getUint64` helper is a plain function, not a constructor, and is invoked without `new` at every other call site. Also updates the `entries` JSDoc example return annotations to use ``, matching the README, REPL docs, and TypeScript declaration examples. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_019rAgMTvhZQG45E6NcnoguQ --- lib/node_modules/@stdlib/array/uint64/lib/main.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/node_modules/@stdlib/array/uint64/lib/main.js b/lib/node_modules/@stdlib/array/uint64/lib/main.js index c4c2be8f107c..e366fe395f55 100644 --- a/lib/node_modules/@stdlib/array/uint64/lib/main.js +++ b/lib/node_modules/@stdlib/array/uint64/lib/main.js @@ -621,13 +621,13 @@ setReadOnly( Uint64Array.prototype, 'BYTES_PER_ELEMENT', Uint64Array.BYTES_PER_E * * // Iterate over the key-value pairs... * var v = it.next().value; -* // returns [ 0, [ 1n ] ] +* // returns [ 0, [ 1n ] ] * * v = it.next().value; -* // returns [ 1, [ 2n ] ] +* // returns [ 1, [ 2n ] ] * * v = it.next().value; -* // returns [ 2, [ 3n ] ] +* // returns [ 2, [ 3n ] ] * * var bool = it.next().done; * // returns true @@ -673,7 +673,7 @@ setReadOnly( Uint64Array.prototype, 'entries', function entries() { }; } return { - 'value': [ i, new getUint64( buffer, i ) ], + 'value': [ i, getUint64( buffer, i ) ], 'done': false }; } From 29f8d0d89ca0aeb549f68b582f16cea54bf12116 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 5 Aug 2026 12:39:25 +0000 Subject: [PATCH 2/3] docs: fix typo in `ml/base/loss/float64/hinge-gradient` Corrects "where as" to "whereas" in the README notes section, matching the identical sentence in the REPL docs, TypeScript declarations, and source JSDoc. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_019rAgMTvhZQG45E6NcnoguQ --- .../@stdlib/ml/base/loss/float64/hinge-gradient/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/ml/base/loss/float64/hinge-gradient/README.md b/lib/node_modules/@stdlib/ml/base/loss/float64/hinge-gradient/README.md index 98dcd43b2451..6818c88b1b30 100644 --- a/lib/node_modules/@stdlib/ml/base/loss/float64/hinge-gradient/README.md +++ b/lib/node_modules/@stdlib/ml/base/loss/float64/hinge-gradient/README.md @@ -99,7 +99,7 @@ v = hingeGradient( 2.4, 1.0, 0.453, 0.76 ); ## Notes -- When `t = 1.0`, we get the loss used by SVM, where as when `t = 0.0`, we get the loss used by the Perceptron. +- When `t = 1.0`, we get the loss used by SVM, whereas when `t = 0.0`, we get the loss used by the Perceptron. From 79fb418fd1be0ee1c73697c01e27152ebcfbc642 Mon Sep 17 00:00:00 2001 From: Athan Date: Thu, 6 Aug 2026 00:06:34 -0700 Subject: [PATCH 3/3] Apply suggestions from code review Co-authored-by: Athan Signed-off-by: Athan --- .../@stdlib/ml/base/loss/float64/hinge-gradient/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/ml/base/loss/float64/hinge-gradient/README.md b/lib/node_modules/@stdlib/ml/base/loss/float64/hinge-gradient/README.md index 6818c88b1b30..2a3bbf8c6ad1 100644 --- a/lib/node_modules/@stdlib/ml/base/loss/float64/hinge-gradient/README.md +++ b/lib/node_modules/@stdlib/ml/base/loss/float64/hinge-gradient/README.md @@ -99,7 +99,7 @@ v = hingeGradient( 2.4, 1.0, 0.453, 0.76 ); ## Notes -- When `t = 1.0`, we get the loss used by SVM, whereas when `t = 0.0`, we get the loss used by the Perceptron. +- When `t = 1.0`, we get the loss used by SVM; whereas, when `t = 0.0`, we get the loss used by the Perceptron.