From 99c65e52afb7181be00e7687898bd76b62658f83 Mon Sep 17 00:00:00 2001 From: Manvith <148960168+manvith2003@users.noreply.github.com> Date: Fri, 24 Oct 2025 18:18:21 +0530 Subject: [PATCH 1/6] chore: add structured package data for math/base/special/bernoulli --- 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/bernoulli/package.json | 69 ++++++++++++++++++- 1 file changed, 68 insertions(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/bernoulli/package.json b/lib/node_modules/@stdlib/math/base/special/bernoulli/package.json index 0e5e7775f24e..bddf447e2297 100644 --- a/lib/node_modules/@stdlib/math/base/special/bernoulli/package.json +++ b/lib/node_modules/@stdlib/math/base/special/bernoulli/package.json @@ -61,5 +61,72 @@ "function", "bernoulli", "number" - ] + ], + "__stdlib__": { + "scaffold": { + "$schema": "math/base@v1.0", + "base_alias": "bernoulli", + "alias": "bernoulli", + "pkg_desc": "Compute the nth Bernoulli number", + "desc": "Compute the nth Bernoulli number", + "short_desc": "nth Bernoulli number", + "parameters": [ + { + "name": "n", + "desc": "input nonnegative integer", + "type": { + "javascript": "number", + "jsdoc": "integer", + "c": "int32_t", + "dtype": "int32" + }, + "domain": [ + { + "min": "0", + "max": "infinity" + } + ], + "rand": { + "prng": "random/base/discrete-uniform", + "parameters": [ + 0, + 20 + ] + }, + "example_values": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 10, + 20 + ] + } + ], + "output_policy": "real_floating_point_and_generic", + "returns": { + "desc": "function value", + "type": { + "javascript": "number", + "jsdoc": "number", + "c": "double", + "dtype": "float64" + } + }, + "keywords": [ + "bernoulli", + "number", + "special", + "function", + "sequence" + ], + "extra_keywords": [ + "math.bernoulli" + ] + } + } } + From be66913887febb7abc53eb795a82cc7faf3c4497 Mon Sep 17 00:00:00 2001 From: Manvith <148960168+manvith2003@users.noreply.github.com> Date: Sat, 25 Oct 2025 11:39:23 +0530 Subject: [PATCH 2/6] Update package.json for Bernoulli function Signed-off-by: Manvith <148960168+manvith2003@users.noreply.github.com> --- .../math/base/special/bernoulli/package.json | 29 ++++++++++--------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/lib/node_modules/@stdlib/math/base/special/bernoulli/package.json b/lib/node_modules/@stdlib/math/base/special/bernoulli/package.json index bddf447e2297..1cfce8a7363a 100644 --- a/lib/node_modules/@stdlib/math/base/special/bernoulli/package.json +++ b/lib/node_modules/@stdlib/math/base/special/bernoulli/package.json @@ -67,18 +67,18 @@ "$schema": "math/base@v1.0", "base_alias": "bernoulli", "alias": "bernoulli", - "pkg_desc": "Compute the nth Bernoulli number", - "desc": "Compute the nth Bernoulli number", - "short_desc": "nth Bernoulli number", + "pkg_desc": "compute the nth Bernoulli number", + "desc": "compute the nth Bernoulli number", + "short_desc": "Bernoulli number", "parameters": [ { "name": "n", "desc": "input nonnegative integer", "type": { "javascript": "number", - "jsdoc": "integer", - "c": "int32_t", - "dtype": "int32" + "jsdoc": "number", + "c": "double", + "dtype": "float64" }, "domain": [ { @@ -90,7 +90,7 @@ "prng": "random/base/discrete-uniform", "parameters": [ 0, - 20 + 30 ] }, "example_values": [ @@ -102,7 +102,12 @@ 5, 6, 10, - 20 + 20, + 15, + 18, + 25, + 21, + 22 ] } ], @@ -120,13 +125,9 @@ "bernoulli", "number", "special", - "function", - "sequence" + "function" ], - "extra_keywords": [ - "math.bernoulli" - ] + "extra_keywords": [] } } } - From 2665e7dce864ebcbc7edcf96ccf73ff0afb7e1fc Mon Sep 17 00:00:00 2001 From: Athan Date: Wed, 29 Oct 2025 19:59:30 -0700 Subject: [PATCH 3/6] docs: update description Signed-off-by: Athan --- .../@stdlib/math/base/special/bernoulli/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/bernoulli/package.json b/lib/node_modules/@stdlib/math/base/special/bernoulli/package.json index 1cfce8a7363a..43aa77f89ef1 100644 --- a/lib/node_modules/@stdlib/math/base/special/bernoulli/package.json +++ b/lib/node_modules/@stdlib/math/base/special/bernoulli/package.json @@ -68,7 +68,7 @@ "base_alias": "bernoulli", "alias": "bernoulli", "pkg_desc": "compute the nth Bernoulli number", - "desc": "compute the nth Bernoulli number", + "desc": "computes the nth Bernoulli number", "short_desc": "Bernoulli number", "parameters": [ { From f51ab68c622f5575831c1d810cdb610bf905c410 Mon Sep 17 00:00:00 2001 From: Athan Date: Wed, 29 Oct 2025 20:00:40 -0700 Subject: [PATCH 4/6] docs: update description Signed-off-by: Athan --- .../@stdlib/math/base/special/bernoulli/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/bernoulli/package.json b/lib/node_modules/@stdlib/math/base/special/bernoulli/package.json index 43aa77f89ef1..3e7403116f03 100644 --- a/lib/node_modules/@stdlib/math/base/special/bernoulli/package.json +++ b/lib/node_modules/@stdlib/math/base/special/bernoulli/package.json @@ -73,7 +73,7 @@ "parameters": [ { "name": "n", - "desc": "input nonnegative integer", + "desc": "input value", "type": { "javascript": "number", "jsdoc": "number", From f1a365e87a31810470ddc7cb9c566bea5e572f99 Mon Sep 17 00:00:00 2001 From: Athan Date: Wed, 29 Oct 2025 20:01:08 -0700 Subject: [PATCH 5/6] chore: remove quotes Signed-off-by: Athan --- .../@stdlib/math/base/special/bernoulli/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/bernoulli/package.json b/lib/node_modules/@stdlib/math/base/special/bernoulli/package.json index 3e7403116f03..a324e1d0ccde 100644 --- a/lib/node_modules/@stdlib/math/base/special/bernoulli/package.json +++ b/lib/node_modules/@stdlib/math/base/special/bernoulli/package.json @@ -82,7 +82,7 @@ }, "domain": [ { - "min": "0", + "min": 0, "max": "infinity" } ], From ecbc6bf3cf7eadc2e209253c91a47b04aafd4632 Mon Sep 17 00:00:00 2001 From: Athan Date: Wed, 29 Oct 2025 20:02:06 -0700 Subject: [PATCH 6/6] chore: update keywords Signed-off-by: Athan --- .../@stdlib/math/base/special/bernoulli/package.json | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/node_modules/@stdlib/math/base/special/bernoulli/package.json b/lib/node_modules/@stdlib/math/base/special/bernoulli/package.json index a324e1d0ccde..fc96cad3b8cb 100644 --- a/lib/node_modules/@stdlib/math/base/special/bernoulli/package.json +++ b/lib/node_modules/@stdlib/math/base/special/bernoulli/package.json @@ -122,10 +122,7 @@ } }, "keywords": [ - "bernoulli", - "number", - "special", - "function" + "bernoulli" ], "extra_keywords": [] }