From 9c59b6c93ab3bb8d6c88ebb0eb54b2feb95ab244 Mon Sep 17 00:00:00 2001 From: Lokeshranjan8 Date: Sat, 30 Aug 2025 21:35:56 +0530 Subject: [PATCH 1/7] chore: add structured package data for math/base/special/log2 --- 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: passed - 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: na - 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: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed --- --- .../math/base/special/log2/package.json | 78 ++++++++++++++++++- 1 file changed, 77 insertions(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/log2/package.json b/lib/node_modules/@stdlib/math/base/special/log2/package.json index af871cee1f5f..29fbaa3a8378 100644 --- a/lib/node_modules/@stdlib/math/base/special/log2/package.json +++ b/lib/node_modules/@stdlib/math/base/special/log2/package.json @@ -62,5 +62,81 @@ "base 2", "logarithm", "log" - ] + ], + "__stdlib__": { + "scaffold": { + "$schema": "math/base@v1.0", + "base_alias": "log2", + "alias": "log2", + "pkg_desc": "compute the Binary logarithm", + "desc": "computes the Binary logarithm", + "short_desc": "Binary logarithm", + "parameters": [ + { + "name": "x", + "desc": "input value", + "type": { + "javascript": "number", + "jsdoc": "number", + "c": "double", + "dtype": "float64" + }, + "domain": [ + { + "min": "0", + "max": "infinity" + } + ], + "rand": { + "prng": "random/base/uniform", + "parameters": [ + 0, + 100 + ] + }, + "example_values": [ + 0, + 0.01, + 0.25, + 0.5, + 1, + 2, + 3, + 4, + 9, + 16, + 25, + 36, + 49, + 64, + 81, + 100, + 0.1, + 10, + 50, + 99.99 + ] + } + ], + "output_policy": "real_floating_point_and_generic", + "returns": { + "desc": "Binary logarithm", + "type": { + "javascript": "number", + "jsdoc": "number", + "c": "double", + "dtype": "float64" + } + }, + "keywords": [ + "sqrt", + "square", + "root", + "principal" + ], + "extra_keywords": [ + "math.log2" + ] + } + } } From 82693b56d6bfb9d12ab4fb340de5f66535b32469 Mon Sep 17 00:00:00 2001 From: Lokesh Ranjan Date: Sat, 30 Aug 2025 21:56:03 +0530 Subject: [PATCH 2/7] Update package.json Signed-off-by: Lokesh Ranjan From 89318fde1b7edd2546b57538010b095ceddeca14 Mon Sep 17 00:00:00 2001 From: Lokesh Ranjan Date: Sat, 30 Aug 2025 22:00:26 +0530 Subject: [PATCH 3/7] Update package.json Signed-off-by: Lokesh Ranjan --- .../@stdlib/math/base/special/log2/package.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/node_modules/@stdlib/math/base/special/log2/package.json b/lib/node_modules/@stdlib/math/base/special/log2/package.json index 29fbaa3a8378..8a30f8121b21 100644 --- a/lib/node_modules/@stdlib/math/base/special/log2/package.json +++ b/lib/node_modules/@stdlib/math/base/special/log2/package.json @@ -129,10 +129,10 @@ } }, "keywords": [ - "sqrt", - "square", - "root", - "principal" + "logarithm", + "log2", + "binary", + "base 2" ], "extra_keywords": [ "math.log2" From e996724216c105dab5daf330313a7e192ea8caa6 Mon Sep 17 00:00:00 2001 From: Athan Date: Sat, 30 Aug 2025 12:28:16 -0700 Subject: [PATCH 4/7] docs: lowercase word Signed-off-by: Athan --- .../@stdlib/math/base/special/log2/package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/node_modules/@stdlib/math/base/special/log2/package.json b/lib/node_modules/@stdlib/math/base/special/log2/package.json index 8a30f8121b21..7ba8e3247aca 100644 --- a/lib/node_modules/@stdlib/math/base/special/log2/package.json +++ b/lib/node_modules/@stdlib/math/base/special/log2/package.json @@ -68,9 +68,9 @@ "$schema": "math/base@v1.0", "base_alias": "log2", "alias": "log2", - "pkg_desc": "compute the Binary logarithm", - "desc": "computes the Binary logarithm", - "short_desc": "Binary logarithm", + "pkg_desc": "compute the binary logarithm", + "desc": "computes the binary logarithm", + "short_desc": "binary logarithm", "parameters": [ { "name": "x", From e949e338b50b05847ec8bdee7beb0cd8fc7e2dc7 Mon Sep 17 00:00:00 2001 From: Athan Date: Sat, 30 Aug 2025 12:29:10 -0700 Subject: [PATCH 5/7] chore: remove quotes Signed-off-by: Athan --- lib/node_modules/@stdlib/math/base/special/log2/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/log2/package.json b/lib/node_modules/@stdlib/math/base/special/log2/package.json index 7ba8e3247aca..e3734d82f75b 100644 --- a/lib/node_modules/@stdlib/math/base/special/log2/package.json +++ b/lib/node_modules/@stdlib/math/base/special/log2/package.json @@ -83,7 +83,7 @@ }, "domain": [ { - "min": "0", + "min": 0, "max": "infinity" } ], From e803ceda543a9c469af230a9c908bd23af177540 Mon Sep 17 00:00:00 2001 From: Athan Date: Sat, 30 Aug 2025 12:29:31 -0700 Subject: [PATCH 6/7] docs: lowercase word Signed-off-by: Athan --- lib/node_modules/@stdlib/math/base/special/log2/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/log2/package.json b/lib/node_modules/@stdlib/math/base/special/log2/package.json index e3734d82f75b..050a3ef1f332 100644 --- a/lib/node_modules/@stdlib/math/base/special/log2/package.json +++ b/lib/node_modules/@stdlib/math/base/special/log2/package.json @@ -120,7 +120,7 @@ ], "output_policy": "real_floating_point_and_generic", "returns": { - "desc": "Binary logarithm", + "desc": "binary logarithm", "type": { "javascript": "number", "jsdoc": "number", From 2084ff123ca0f3db6ddb1a6057d3115fd200ae0e Mon Sep 17 00:00:00 2001 From: Athan Date: Sat, 30 Aug 2025 12:29:52 -0700 Subject: [PATCH 7/7] chore: add keyword Signed-off-by: Athan --- lib/node_modules/@stdlib/math/base/special/log2/package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/log2/package.json b/lib/node_modules/@stdlib/math/base/special/log2/package.json index 050a3ef1f332..d6ae728993eb 100644 --- a/lib/node_modules/@stdlib/math/base/special/log2/package.json +++ b/lib/node_modules/@stdlib/math/base/special/log2/package.json @@ -132,7 +132,8 @@ "logarithm", "log2", "binary", - "base 2" + "base 2", + "log" ], "extra_keywords": [ "math.log2"