refactor: rename parameter to ensure consistency with other packages#12376
Merged
Conversation
…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>
Contributor
Coverage Report
The above coverage report was generated for the changes in this PR. |
kgryte
approved these changes
May 30, 2026
stride parameter to strideX in stats/strided/dmeankbn ndarray.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This pull request:
strideparameter (and its three in-body references) inlib/node_modules/@stdlib/stats/strided/dmeankbn/lib/ndarray.jstostrideX. The conventionstrideX(suffix matching the corresponding array parameterx) is used by 237 of 239 sibling packages in@stdlib/stats/stridedwith anndarray.js(99.2% conformance), and the same package's ownREADME.md,docs/types/index.d.ts, anddocs/repl.txtalready document the parameter asstrideX— 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
If you answered "yes" above, how did you use AI assistance?
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