Conversation
Restructured the README to match the structural majority pattern used across the `stats/base/dists/gamma` namespace: - Wrapped the C APIs section in `<section class="c">` (78.6% of siblings). - Promoted `### C APIs` heading to `## C APIs` (78.6% of siblings). - Promoted `#### Usage` heading under C APIs to `### Usage` (78.6% of siblings). - Closed `<section class="usage">` for the JS API before the C APIs section rather than after it; the C APIs content is now a sibling, not nested inside the JS usage wrapper. No content changes; section layout and heading levels only.
Contributor
Coverage Report
The above coverage report was generated for the changes in this PR. |
kgryte
reviewed
May 1, 2026
…dists/gamma/logcdf` Moved the JS `## Examples` section to sit between the JS `## Usage` section and the `## C APIs` section, matching the namespace majority ordering (10/14 siblings) and addressing review feedback that JS examples should be co-located with the documentation for the JS APIs rather than placed after the C interface documentation. No content changes; section ordering only.
kgryte
approved these changes
May 1, 2026
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
Aligning outliers in
stats/base/dists/gammawith namespace majority structural patterns (random namespace pick, seed20260430).Namespace summary
cdf,ctor,entropy,kurtosis,logcdf,logpdf,mean,mgf,mode,pdf,quantile,skewness,stdev,variance)package.jsonshape,manifest.jsonshape, README section structure (set + sequence), test/benchmark/example file naming, public signature, return kind, validation prologue, error construction, JSDoc shape,@stdlib/*dependencies.<section class="c">wrapper (78.6%),## Usage/## Examplesat level 2 (100%),gypfile/manifest.json/lib/native.jspresence among packages with native impl (12/14, 85.7%), all standard top-levelpackage.jsonkeys (100%), JSDocparamTagsandreturnsTagpresence (100%),hasExampleJSDoc (100%),returnKind: value(100%),validationPrologue: [](NaN-on-invalid pattern, 100%).lib/factory.jspresence (6/14, 42.9%);test.factory.jspresence (6/14, 42.9%). Below the 75% threshold, so excluded.stats/base/dists/gamma/logcdfPromotes the C APIs heading from
###to##and the nested Usage heading from####to###, and wraps C APIs content in a dedicated<section class="c">element closed outside<section class="usage">— matching the pattern held by 11/14 (78.6%) of packages in the namespace. The prior structure had C APIs content swallowed inside the JS usage section with no own wrapper, diverging from the dominant convention.Related Issues
None.
Questions
None.
Other
Validation
package.json/manifest.jsonkeysets, README headings, test/benchmark/example filenames pulled mechanically across all 14 members.publicSignature,returnKind,validationPrologue,errorConstruction,jsdocShape, and@stdlib/*dependencies from each package'slib/.logcdfcorrection. All three returnedconfirmed-drift; cross-reference confirmed no test, example, or external markdown anchor depends on the prior README structure.Deliberately excluded
binding.gyp,manifest.json,lib/native.js,src/*,include/*.h,examples/c/*,benchmark/c/*,test.native.js,test/fixtures/julia/*) missing inctorandquantile— both legitimately lack a native C implementation.cdfandlogcdfretain their existing Usage→C APIs→Examples ordering.lib/factory.js/test.factory.jsasymmetry — present only in packages whose API supports a partial-application factory; not a namespace convention.Checklist
AI Assistance
If you answered "yes" above, how did you use AI assistance?
Disclosure
This PR was authored by Claude Code as part of an automated cross-package drift-detection routine: a randomly selected namespace's packages are compared by structural and semantic features, packages diverging from the namespace majority on features with ≥75% conformance are flagged, and three independent validation agents gate each correction. Only the
logcdfREADME structural realignment survived filtering for this run; all other potential drift was excluded as either intentional (no native impl) or below the majority threshold.@stdlib-js/reviewers
Generated by Claude Code