Skip to content

chore: clean-up#13626

Merged
kgryte merged 2 commits into
developfrom
philipp/fix-commit-review-2026-07-23
Jul 24, 2026
Merged

chore: clean-up#13626
kgryte merged 2 commits into
developfrom
philipp/fix-commit-review-2026-07-23

Conversation

@Planeshifter

Copy link
Copy Markdown
Member

Description

What is the purpose of this pull request?

Follow-up fixes for commits merged to develop between fa5ac3e85 (2026-07-22, 21:49 UTC) and cd1b1aa16 (2026-07-23, 06:04 UTC).

This pull request:

  • stats/base/dists/signrank/cdf: mlim was int in lib/node_modules/@stdlib/stats/base/dists/signrank/cdf/src/main.c (a82a225), assigned n*(n+1)/2 in double precision — overflows INT_MAX for n >= 65536, UB on conversion, and diverges from lib/main.js's double-precision limit. Fixed by declaring mlim as double to match the JS implementation.
  • stats/base/dists/signrank/cdf: in lib/node_modules/@stdlib/stats/base/dists/signrank/cdf/README.md (a82a225), the C API example includes stdlib/math/base/special/ceil without the .h extension, so it won't compile as written; examples/c/example.c in the same commit has it right. Add the extension to match.
  • stats/base/dists/beta/cdf: fix typo in stats/base/dists/beta/cdf README introduced in fa5ac3e: "shpae" → "shape" and missing space after alpha in the C API description (lib/node_modules/@stdlib/stats/base/dists/beta/cdf/README.md).

Related Issues

Does this pull request have any related issues?

No.

Questions

Any questions for reviewers of this pull request?

No.

Other

Any other information relevant to this pull request? This may include screenshots, references, and/or implementation notes.

Review window. All nine commits merged to develop in the 24 hours preceding 2026-07-23 were reviewed: four new distribution packages (stats/base/dists/anglit/skewness, stats/base/dists/burr-type3/cdf, stats/base/dists/wald/cdf, stats/base/dists/log-logistic/variance), four C implementation backfills (stats/base/dists/binomial/cdf, stats/base/dists/signrank/cdf, stats/base/dists/hypergeometric/kurtosis, stats/base/dists/beta/cdf), and one git-notes docs commit (bd358c9).

Validation. Checked: style-guide compliance (docs/style-guides/javascript, docs/style-guides/c) against reference packages (stats/base/dists/normal/cdf and siblings); formula correctness of each implementation against the named distribution (verified algebraically, including the erfcx-based overflow avoidance in wald/cdf); C-vs-JS parity for each C port; N-API arity macros and manifest.json dependencies; README/repl/TypeScript docs for copy-paste errors. Deliberately excluded: subjective style preferences, anything requiring interpretation or changes outside the reviewed diffs (e.g., the small-N denominator behavior in hypergeometric/kurtosis matches the pre-existing JS implementation and was left as deliberate parity). No other high-signal issues were found.

Note. This is a draft for maintainer audit; not requesting review.

Checklist

Please ensure the following tasks are completed before submitting this pull request.

AI Assistance

When authoring the changes proposed in this PR, did you use any kind of AI assistance?

  • Yes
  • No

If you answered "yes" above, how did you use AI assistance?

  • Code generation (e.g., when writing an implementation or fixing a bug)
  • Test/benchmark generation
  • Documentation (including examples)
  • Research and understanding

Disclosure

This PR was produced by a scheduled automated commit-review run using Claude Code: multiple review agents audited the last 24 hours of commits merged to develop for bugs and style-guide violations, and the surviving high-signal fixes were applied and committed by Claude Code.


Generated by Claude Code

claude added 2 commits July 23, 2026 12:21
Declaring `mlim` as an `int` overflows for `n >= 65536`, as
`n*(n+1)/2` exceeds `INT_MAX`, diverging from the JavaScript
implementation which computes the limit in double-precision.

Also adds a missing `.h` extension to an include statement in the
README C API example.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ErZxMF18HhuGHiv1ZKWR19
Corrects "shpae" to "shape" and adds a missing space in the README
description of `stdlib_base_dists_beta_cdf`.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ErZxMF18HhuGHiv1ZKWR19
@stdlib-bot stdlib-bot added the Statistics Issue or pull request related to statistical functionality. label Jul 23, 2026
@stdlib-bot

Copy link
Copy Markdown
Contributor

Coverage Report

Package Statements Branches Functions Lines
stats/base/dists/beta/cdf $\\color{green}337/337$
$\\color{green}+100.00\\%$
$\\color{green}29/29$
$\\color{green}+100.00\\%$
$\\color{green}4/4$
$\\color{green}+100.00\\%$
$\\color{green}337/337$
$\\color{green}+100.00\\%$
stats/base/dists/signrank/cdf $\\color{green}382/382$
$\\color{green}+100.00\\%$
$\\color{green}40/40$
$\\color{green}+100.00\\%$
$\\color{green}5/5$
$\\color{green}+100.00\\%$
$\\color{green}382/382$
$\\color{green}+100.00\\%$

The above coverage report was generated for the changes in this PR.

@Planeshifter Planeshifter changed the title fix: apply follow-up fixes for commits merged to develop (2026-07-23 review window) chore: apply follow-up fixes for commits merged to develop (2026-07-23 review window) Jul 23, 2026
@Planeshifter
Planeshifter marked this pull request as ready for review July 23, 2026 15:26
@Planeshifter
Planeshifter requested review from a team and kgryte July 23, 2026 15:26
@stdlib-bot stdlib-bot added the Needs Review A pull request which needs code review. label Jul 23, 2026
@kgryte kgryte changed the title chore: apply follow-up fixes for commits merged to develop (2026-07-23 review window) chore: clean-up Jul 24, 2026
@kgryte
kgryte merged commit 4b25135 into develop Jul 24, 2026
59 checks passed
@kgryte
kgryte deleted the philipp/fix-commit-review-2026-07-23 branch July 24, 2026 03:59
@kgryte kgryte removed the Needs Review A pull request which needs code review. label Jul 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Statistics Issue or pull request related to statistical functionality.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants