From 2d06b7b076c2eeeeaa795e2ef453805df817436d Mon Sep 17 00:00:00 2001 From: Manvith <148960168+manvith2003@users.noreply.github.com> Date: Sat, 25 Oct 2025 11:03:49 +0530 Subject: [PATCH 1/5] chore: add structured package data for math/base/special/trunc2 --- 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: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed --- --- .../math/base/special/trunc2/package.json | 84 ++++++++++++++++++- 1 file changed, 83 insertions(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/trunc2/package.json b/lib/node_modules/@stdlib/math/base/special/trunc2/package.json index 14f6885324dc..240d17ebeb64 100644 --- a/lib/node_modules/@stdlib/math/base/special/trunc2/package.json +++ b/lib/node_modules/@stdlib/math/base/special/trunc2/package.json @@ -67,5 +67,87 @@ "prevpow2", "nearest", "number" - ] + ], + "__stdlib__": { + "scaffold": { + "$schema": "math/base@v1.0", + "base_alias": "trunc2", + "alias": "trunc2", + "pkg_desc": "round a numeric value to the nearest power of two toward zero", + "desc": "round a numeric value to the nearest power of two toward zero", + "short_desc": "", + "parameters": [ + { + "name": "x", + "desc": "input value", + "type": { + "javascript": "number", + "jsdoc": "number", + "c": "double", + "dtype": "float64" + }, + "domain": [ + { + "min": "-infinity", + "max": "infinity" + } + ], + "rand": { + "prng": "random/base/uniform", + "parameters": [ + -1000, + 1000 + ] + }, + "example_values": [ + 5.6, + 49, + 0.7, + -0.9, + -42, + 88, + -3.2, + 120, + -15, + 230, + -375, + 0, + 9, + -99, + 100, + -1000, + 1500, + -2500, + 7, + -8 + ] + } + ], + "output_policy": "real_floating_point_and_generic", + "returns": { + "desc": "rounded value", + "type": { + "javascript": "number", + "jsdoc": "number", + "c": "double", + "dtype": "float64" + } + }, + "keywords": [ + "truncate", + "trunc", + "trunc2", + "round", + "floor", + "ceil", + "nextpow2", + "prevpow2", + "nearest", + "number" + ], + "extra_keywords": [ + "math.trunc" + ] + } + } } From e1c6666c66c17aca7302f814718484d0d4112a8d Mon Sep 17 00:00:00 2001 From: Manvith <148960168+manvith2003@users.noreply.github.com> Date: Wed, 29 Oct 2025 19:07:37 +0530 Subject: [PATCH 2/5] Change base alias from 'trunc2' to 'trunc' Signed-off-by: Manvith <148960168+manvith2003@users.noreply.github.com> --- lib/node_modules/@stdlib/math/base/special/trunc2/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/trunc2/package.json b/lib/node_modules/@stdlib/math/base/special/trunc2/package.json index 240d17ebeb64..fc696130b5c7 100644 --- a/lib/node_modules/@stdlib/math/base/special/trunc2/package.json +++ b/lib/node_modules/@stdlib/math/base/special/trunc2/package.json @@ -71,7 +71,7 @@ "__stdlib__": { "scaffold": { "$schema": "math/base@v1.0", - "base_alias": "trunc2", + "base_alias": "trunc", "alias": "trunc2", "pkg_desc": "round a numeric value to the nearest power of two toward zero", "desc": "round a numeric value to the nearest power of two toward zero", From 7cca942581600a4c5b9566f937098e17590862da Mon Sep 17 00:00:00 2001 From: Athan Date: Wed, 29 Oct 2025 17:56:02 -0700 Subject: [PATCH 3/5] chore: fix base alias Signed-off-by: Athan --- lib/node_modules/@stdlib/math/base/special/trunc2/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/trunc2/package.json b/lib/node_modules/@stdlib/math/base/special/trunc2/package.json index fc696130b5c7..240d17ebeb64 100644 --- a/lib/node_modules/@stdlib/math/base/special/trunc2/package.json +++ b/lib/node_modules/@stdlib/math/base/special/trunc2/package.json @@ -71,7 +71,7 @@ "__stdlib__": { "scaffold": { "$schema": "math/base@v1.0", - "base_alias": "trunc", + "base_alias": "trunc2", "alias": "trunc2", "pkg_desc": "round a numeric value to the nearest power of two toward zero", "desc": "round a numeric value to the nearest power of two toward zero", From 0cd553f6b074ac4d046b6f5e3ac1a2dea56f6814 Mon Sep 17 00:00:00 2001 From: Athan Date: Wed, 29 Oct 2025 17:56:54 -0700 Subject: [PATCH 4/5] chore: update keywords Signed-off-by: Athan --- lib/node_modules/@stdlib/math/base/special/trunc2/package.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/math/base/special/trunc2/package.json b/lib/node_modules/@stdlib/math/base/special/trunc2/package.json index 240d17ebeb64..c20517e25991 100644 --- a/lib/node_modules/@stdlib/math/base/special/trunc2/package.json +++ b/lib/node_modules/@stdlib/math/base/special/trunc2/package.json @@ -142,8 +142,7 @@ "ceil", "nextpow2", "prevpow2", - "nearest", - "number" + "nearest" ], "extra_keywords": [ "math.trunc" From 715d37c7554acc29a5803b06da4a667a04b9404e Mon Sep 17 00:00:00 2001 From: Athan Date: Wed, 29 Oct 2025 17:59:52 -0700 Subject: [PATCH 5/5] docs: fix description Signed-off-by: Athan --- lib/node_modules/@stdlib/math/base/special/trunc2/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/trunc2/package.json b/lib/node_modules/@stdlib/math/base/special/trunc2/package.json index c20517e25991..1e4bb70ce160 100644 --- a/lib/node_modules/@stdlib/math/base/special/trunc2/package.json +++ b/lib/node_modules/@stdlib/math/base/special/trunc2/package.json @@ -74,7 +74,7 @@ "base_alias": "trunc2", "alias": "trunc2", "pkg_desc": "round a numeric value to the nearest power of two toward zero", - "desc": "round a numeric value to the nearest power of two toward zero", + "desc": "rounds a numeric value to the nearest power of two toward zero", "short_desc": "", "parameters": [ {