From ee9d9b822eaa15d729fb6d6025a3b558d09cdc2c Mon Sep 17 00:00:00 2001 From: LokeshRanjan Date: Mon, 2 Feb 2026 21:17:41 +0530 Subject: [PATCH 1/4] bench: refactor to use string interpolation in stats/base/dists/bernoulli/ctor --- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: passed - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed --- --- .../bernoulli/ctor/benchmark/benchmark.js | 29 ++++++++++--------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/lib/node_modules/@stdlib/stats/base/dists/bernoulli/ctor/benchmark/benchmark.js b/lib/node_modules/@stdlib/stats/base/dists/bernoulli/ctor/benchmark/benchmark.js index 5fb823507a56..e665eb25e533 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/bernoulli/ctor/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/stats/base/dists/bernoulli/ctor/benchmark/benchmark.js @@ -25,13 +25,14 @@ var uniform = require( '@stdlib/random/array/uniform' ); var discreteUniform = require( '@stdlib/random/array/discrete-uniform' ); var isnan = require( '@stdlib/math/base/assert/is-nan' ); var ln = require( '@stdlib/math/base/special/ln' ); +var format = require( '@stdlib/string/format' ); var pkg = require( './../package.json' ).name; var Bernoulli = require( './../lib' ); // MAIN // -bench( pkg+'::instantiation', function benchmark( b ) { +bench( format( '%s::instantiation', pkg ), function benchmark( b ) { var dist; var opts; var p; @@ -57,7 +58,7 @@ bench( pkg+'::instantiation', function benchmark( b ) { b.end(); }); -bench( pkg+'::get:p', function benchmark( b ) { +bench( format( '%s::get:p', pkg ), function benchmark( b ) { var dist; var p; var y; @@ -81,7 +82,7 @@ bench( pkg+'::get:p', function benchmark( b ) { b.end(); }); -bench( pkg+'::set:p', function benchmark( b ) { +bench( format( '%s::set:p', pkg ), function benchmark( b ) { var dist; var opts; var p; @@ -111,7 +112,7 @@ bench( pkg+'::set:p', function benchmark( b ) { b.end(); }); -bench( pkg+':entropy', function benchmark( b ) { +bench( format( '%s::entropy', pkg ), function benchmark( b ) { var dist; var opts; var x; @@ -143,7 +144,7 @@ bench( pkg+':entropy', function benchmark( b ) { b.end(); }); -bench( pkg+':kurtosis', function benchmark( b ) { +bench( format( '%s::kurtosis', pkg ), function benchmark( b ) { var dist; var opts; var x; @@ -175,7 +176,7 @@ bench( pkg+':kurtosis', function benchmark( b ) { b.end(); }); -bench( pkg+':mean', function benchmark( b ) { +bench( format( '%s::mean', pkg ), function benchmark( b ) { var dist; var opts; var x; @@ -207,7 +208,7 @@ bench( pkg+':mean', function benchmark( b ) { b.end(); }); -bench( pkg+':median', function benchmark( b ) { +bench( format( '%s::median', pkg ), function benchmark( b ) { var dist; var opts; var x; @@ -239,7 +240,7 @@ bench( pkg+':median', function benchmark( b ) { b.end(); }); -bench( pkg+':skewness', function benchmark( b ) { +bench( format( '%s::skewness', pkg ), function benchmark( b ) { var dist; var opts; var x; @@ -271,7 +272,7 @@ bench( pkg+':skewness', function benchmark( b ) { b.end(); }); -bench( pkg+':stdev', function benchmark( b ) { +bench( format( '%s::stdev', pkg ), function benchmark( b ) { var dist; var opts; var x; @@ -303,7 +304,7 @@ bench( pkg+':stdev', function benchmark( b ) { b.end(); }); -bench( pkg+':variance', function benchmark( b ) { +bench( format( '%s::variance', pkg ), function benchmark( b ) { var dist; var opts; var x; @@ -335,7 +336,7 @@ bench( pkg+':variance', function benchmark( b ) { b.end(); }); -bench( pkg+':cdf', function benchmark( b ) { +bench( format( '%s::cdf', pkg ), function benchmark( b ) { var dist; var opts; var p; @@ -366,7 +367,7 @@ bench( pkg+':cdf', function benchmark( b ) { b.end(); }); -bench( pkg+':mgf', function benchmark( b ) { +bench( format( '%s::mgf', pkg ), function benchmark( b ) { var dist; var opts; var p; @@ -397,7 +398,7 @@ bench( pkg+':mgf', function benchmark( b ) { b.end(); }); -bench( pkg+':pmf', function benchmark( b ) { +bench( format( '%s::pmf', pkg ), function benchmark( b ) { var dist; var opts; var p; @@ -428,7 +429,7 @@ bench( pkg+':pmf', function benchmark( b ) { b.end(); }); -bench( pkg+':quantile', function benchmark( b ) { +bench( format( '%s"::quantile', pkg ), function benchmark( b ) { var dist; var opts; var p; From a2382c0d4c8b3a94e81806d5c96f986bfbab72c1 Mon Sep 17 00:00:00 2001 From: LokeshRanjan Date: Tue, 3 Feb 2026 14:58:43 +0530 Subject: [PATCH 2/4] fix: update single colon use --- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: passed - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed --- --- .../bernoulli/ctor/benchmark/benchmark.js | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/lib/node_modules/@stdlib/stats/base/dists/bernoulli/ctor/benchmark/benchmark.js b/lib/node_modules/@stdlib/stats/base/dists/bernoulli/ctor/benchmark/benchmark.js index e665eb25e533..91b44f4ae2e4 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/bernoulli/ctor/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/stats/base/dists/bernoulli/ctor/benchmark/benchmark.js @@ -32,7 +32,7 @@ var Bernoulli = require( './../lib' ); // MAIN // -bench( format( '%s::instantiation', pkg ), function benchmark( b ) { +bench( format( '%s:instantiation', pkg ), function benchmark( b ) { var dist; var opts; var p; @@ -112,7 +112,7 @@ bench( format( '%s::set:p', pkg ), function benchmark( b ) { b.end(); }); -bench( format( '%s::entropy', pkg ), function benchmark( b ) { +bench( format( '%s:entropy', pkg ), function benchmark( b ) { var dist; var opts; var x; @@ -144,7 +144,7 @@ bench( format( '%s::entropy', pkg ), function benchmark( b ) { b.end(); }); -bench( format( '%s::kurtosis', pkg ), function benchmark( b ) { +bench( format( '%s:kurtosis', pkg ), function benchmark( b ) { var dist; var opts; var x; @@ -176,7 +176,7 @@ bench( format( '%s::kurtosis', pkg ), function benchmark( b ) { b.end(); }); -bench( format( '%s::mean', pkg ), function benchmark( b ) { +bench( format( '%s:mean', pkg ), function benchmark( b ) { var dist; var opts; var x; @@ -208,7 +208,7 @@ bench( format( '%s::mean', pkg ), function benchmark( b ) { b.end(); }); -bench( format( '%s::median', pkg ), function benchmark( b ) { +bench( format( '%s:median', pkg ), function benchmark( b ) { var dist; var opts; var x; @@ -240,7 +240,7 @@ bench( format( '%s::median', pkg ), function benchmark( b ) { b.end(); }); -bench( format( '%s::skewness', pkg ), function benchmark( b ) { +bench( format( '%s:skewness', pkg ), function benchmark( b ) { var dist; var opts; var x; @@ -272,7 +272,7 @@ bench( format( '%s::skewness', pkg ), function benchmark( b ) { b.end(); }); -bench( format( '%s::stdev', pkg ), function benchmark( b ) { +bench( format( '%s:stdev', pkg ), function benchmark( b ) { var dist; var opts; var x; @@ -304,7 +304,7 @@ bench( format( '%s::stdev', pkg ), function benchmark( b ) { b.end(); }); -bench( format( '%s::variance', pkg ), function benchmark( b ) { +bench( format( '%s:variance', pkg ), function benchmark( b ) { var dist; var opts; var x; @@ -336,7 +336,7 @@ bench( format( '%s::variance', pkg ), function benchmark( b ) { b.end(); }); -bench( format( '%s::cdf', pkg ), function benchmark( b ) { +bench( format( '%s:cdf', pkg ), function benchmark( b ) { var dist; var opts; var p; @@ -367,7 +367,7 @@ bench( format( '%s::cdf', pkg ), function benchmark( b ) { b.end(); }); -bench( format( '%s::mgf', pkg ), function benchmark( b ) { +bench( format( '%s:mgf', pkg ), function benchmark( b ) { var dist; var opts; var p; @@ -398,7 +398,7 @@ bench( format( '%s::mgf', pkg ), function benchmark( b ) { b.end(); }); -bench( format( '%s::pmf', pkg ), function benchmark( b ) { +bench( format( '%s:pmf', pkg ), function benchmark( b ) { var dist; var opts; var p; @@ -429,7 +429,7 @@ bench( format( '%s::pmf', pkg ), function benchmark( b ) { b.end(); }); -bench( format( '%s"::quantile', pkg ), function benchmark( b ) { +bench( format( '%s":quantile', pkg ), function benchmark( b ) { var dist; var opts; var p; From ffe6f6e3ae891f71afdfd132d6ff368a29cf7f27 Mon Sep 17 00:00:00 2001 From: Lokesh Ranjan Date: Tue, 3 Feb 2026 23:46:40 +0530 Subject: [PATCH 3/4] Fix benchmark label formatting for instantiation Signed-off-by: Lokesh Ranjan --- .../stats/base/dists/bernoulli/ctor/benchmark/benchmark.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/stats/base/dists/bernoulli/ctor/benchmark/benchmark.js b/lib/node_modules/@stdlib/stats/base/dists/bernoulli/ctor/benchmark/benchmark.js index 91b44f4ae2e4..23a060047b15 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/bernoulli/ctor/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/stats/base/dists/bernoulli/ctor/benchmark/benchmark.js @@ -32,7 +32,7 @@ var Bernoulli = require( './../lib' ); // MAIN // -bench( format( '%s:instantiation', pkg ), function benchmark( b ) { +bench( format( '%s::instantiation', pkg ), function benchmark( b ) { var dist; var opts; var p; From ec3f57c130fbbfa3643ca700669185324cf0701f Mon Sep 17 00:00:00 2001 From: Athan Date: Wed, 4 Feb 2026 23:58:46 -0800 Subject: [PATCH 4/4] bench: fix description Signed-off-by: Athan --- .../stats/base/dists/bernoulli/ctor/benchmark/benchmark.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/stats/base/dists/bernoulli/ctor/benchmark/benchmark.js b/lib/node_modules/@stdlib/stats/base/dists/bernoulli/ctor/benchmark/benchmark.js index 23a060047b15..26e062ca2bf3 100644 --- a/lib/node_modules/@stdlib/stats/base/dists/bernoulli/ctor/benchmark/benchmark.js +++ b/lib/node_modules/@stdlib/stats/base/dists/bernoulli/ctor/benchmark/benchmark.js @@ -429,7 +429,7 @@ bench( format( '%s:pmf', pkg ), function benchmark( b ) { b.end(); }); -bench( format( '%s":quantile', pkg ), function benchmark( b ) { +bench( format( '%s:quantile', pkg ), function benchmark( b ) { var dist; var opts; var p;