chore: add number keyword to outliers in number/float64/base#13009
Draft
Planeshifter wants to merge 7 commits into
Draft
chore: add number keyword to outliers in number/float64/base#13009Planeshifter wants to merge 7 commits into
number keyword to outliers in number/float64/base#13009Planeshifter wants to merge 7 commits into
Conversation
Adds the missing `number` keyword to align the package with the prevailing convention in the `number/float64/base` namespace (present in 21/28 (75%) of siblings).
Adds the missing `number` keyword to align the package with the prevailing convention in the `number/float64/base` namespace (present in 21/28 (75%) of siblings).
Adds the missing `number` keyword to align the package with the prevailing convention in the `number/float64/base` namespace (present in 21/28 (75%) of siblings).
Adds the missing `number` keyword to align the package with the prevailing convention in the `number/float64/base` namespace (present in 21/28 (75%) of siblings).
Adds the missing `number` keyword to align the package with the prevailing convention in the `number/float64/base` namespace (present in 21/28 (75%) of siblings).
Adds the missing `number` keyword to align the package with the prevailing convention in the `number/float64/base` namespace (present in 21/28 (75%) of siblings).
- Adds the missing `number` keyword (present in 21/28 (75%) of siblings in `number/float64/base`). - Adds the missing `// MAIN //` section marker in `lib/main.js` (present in 26/27 (96%) of leaf siblings).
Contributor
Coverage Report
The above coverage report was generated for the changes in this PR. |
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 corrects metadata and source-style drift across seven packages in
@stdlib/number/float64/baseso that each outlier conforms to the prevailing convention in the namespace.Namespace summary
@stdlib/number/float64/basepackage.jsontop-level keys,keywordsmembership (stdlib,double,number),lib/main.jssection-marker style,lib/index.jsshape, file-tree skeleton (README.md,docs/types/,examples/index.js,test/test.js).binding.gyp) presence (19/28 = 68%),## C APIsREADME heading,## Notesheading,__stdlib__package.json field, presence ofbenchmark/c/native/subdirectory.Per outlier
number/float64/base/get-high-word,get-low-word,set-high-word,set-low-word,to-words,ulp-differenceEach is missing the bare
numberkeyword inpackage.json. The keyword is present in 21/28 (75%) of siblings, including the closely relatedfrom-words,from-binary-string,to-binary-string,exponent,signbit,normalize,to-int32,to-uint32,to-int64-bytes, andfrom-int64-bytes. All seven packages operate on double-precision numbers and there is no semantic reason for the omission. Appended"number"to the keyword array in each.number/float64/base/identityTwo corrections. (1) Missing
numberkeyword, as above. (2) Missing// MAIN //section marker between the file prologue and the function JSDoc inlib/main.js. The marker is present in 26/27 (96%) of leaf siblings —identityis the lone omission, even though the file already uses the matching// EXPORTS //marker. Inserted the marker using the same one-blank-line stanza asadd,mul,sub.Validation
package.json/manifest.jsonkey sets, README headings).lib/main.jsfor validation prologues, error construction, and JSDoc shape — these packages have no validation prologues and a singleformat-based throw infrom-binary-string, so no semantic drift to correct.tools/,_tools/scaffold/package-json/lib/validate.js,_tools/search/pkg-index/lib/create.js) is sensitive to keyword ordering or section comments.Deliberately excluded
## See Alsoheading absent insub3,to-float16,to-float32,ulp-difference— auto-populated section, generator-owned.identitymissing top-levelbenchmark/c/benchmark.c/Makefile— a naive C reference benchmark for the identity function would be tautological; treated as intentional.exponent,mul,subusesrc/<pkg>.cinstead ofsrc/main.c— alternate-but-internally-consistent convention; renaming would cascade throughmanifest.jsonand is out of scope.assertmember is a namespace re-export, structurally distinct from leaf function packages; excluded from leaf-shape drift.Related Issues
No.
Questions
No.
Other
Generated as part of a cross-package drift-detection routine over
@stdlib/number/float64/base. Majority threshold: ≥⌈28×0.75⌉ = 21. Full per-feature distribution and the corrections that were considered then dropped are recorded in the local audit log.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 a scheduled cross-package drift-detection routine: structural and semantic features were extracted from every member of
@stdlib/number/float64/base, the majority pattern was computed per feature, and outliers were validated by a separate review agent before any patch was applied. Each correction is mechanical (onekeywordsentry per package; one section-marker stanza inidentity/lib/main.js).@stdlib-js/reviewers
Generated by Claude Code