Skip to content

refactor: rename parameter to ensure consistency with other packages#12376

Merged
kgryte merged 1 commit into
developfrom
philipp/drift-stats-strided-2026-05-30
May 30, 2026
Merged

refactor: rename parameter to ensure consistency with other packages#12376
kgryte merged 1 commit into
developfrom
philipp/drift-stats-strided-2026-05-30

Conversation

@Planeshifter
Copy link
Copy Markdown
Member

Description

This pull request:

  • Renames the bare stride parameter (and its three in-body references) in lib/node_modules/@stdlib/stats/strided/dmeankbn/lib/ndarray.js to strideX. The convention strideX (suffix matching the corresponding array parameter x) is used by 237 of 239 sibling packages in @stdlib/stats/strided with an ndarray.js (99.2% conformance), and the same package's own README.md, docs/types/index.d.ts, and docs/repl.txt already document the parameter as strideX — so the source was the only piece out of sync. Positional rename; no behavior change.

Related Issues

No.

Questions

No.

Other

No.

Checklist

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 generated by an automated cross-package API drift detection routine driven by Claude Code. The routine performs a majority-vote scan over a randomly selected stdlib namespace (here, stats/strided), runs a three-agent validation pass (semantic, cross-reference, structural), and applies only mechanical, single-package, behavior-preserving fixes. A maintainer should review and promote out of draft.


@stdlib-js/reviewers


Generated by Claude Code

…array.js

Renames the bare `stride` parameter (and its three in-body references) in
`lib/node_modules/@stdlib/stats/strided/dmeankbn/lib/ndarray.js` to
`strideX`, matching the convention used by 237 of 239 sibling packages
(99.2% conformance) and aligning the source with the package's own
`README.md`, `docs/types/index.d.ts`, and `docs/repl.txt`, which already
document the parameter as `strideX`. No behavior change.

Signed-off-by: Philipp Burckhardt <pburckhardt@outlook.com>
@stdlib-bot stdlib-bot added the Statistics Issue or pull request related to statistical functionality. label May 30, 2026
@stdlib-bot
Copy link
Copy Markdown
Contributor

Coverage Report

Package Statements Branches Functions Lines
stats/strided/dmeankbn $\color{green}367/367$
$\color{green}+100.00\%$
$\color{green}18/18$
$\color{green}+100.00\%$
$\color{green}4/4$
$\color{green}+100.00\%$
$\color{green}367/367$
$\color{green}+100.00\%$

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

@kgryte kgryte marked this pull request as ready for review May 30, 2026 20:04
@kgryte kgryte requested a review from a team May 30, 2026 20:04
@stdlib-bot stdlib-bot added the Needs Review A pull request which needs code review. label May 30, 2026
@kgryte kgryte removed the Needs Review A pull request which needs code review. label May 30, 2026
@kgryte kgryte changed the title refactor: rename stride parameter to strideX in stats/strided/dmeankbn ndarray.js refactor: rename parameter to ensure consistency with other packages May 30, 2026
@kgryte kgryte merged commit aa674a4 into develop May 30, 2026
53 checks passed
@kgryte kgryte deleted the philipp/drift-stats-strided-2026-05-30 branch May 30, 2026 20:05
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