style: align outliers in complex/float64/base with namespace majority patterns#11924
Draft
Planeshifter wants to merge 1 commit intodevelopfrom
Draft
style: align outliers in complex/float64/base with namespace majority patterns#11924Planeshifter wants to merge 1 commit intodevelopfrom
complex/float64/base with namespace majority patterns#11924Planeshifter wants to merge 1 commit intodevelopfrom
Conversation
Apply majority-pattern fixes from a drift sweep of `@stdlib/complex/float64/base`:
- Remove vestigial `__stdlib__: {}` field from `package.json` (absent in 9/9 sibling packages = 100% conformance among non-`assert` siblings).
- Add `benchmark/c/Makefile` (8/8 sibling native packages = 100% conformance).
- Add `benchmark/c/benchmark.c` (8/8 sibling native packages = 100% conformance).
- Add `benchmark/julia/REQUIRE` (8/8 sibling native packages = 100% conformance).
- Add `benchmark/julia/benchmark.jl` (8/8 sibling native packages = 100% conformance).
No public API or test changes; benchmark templates mirror `complex/float64/base/neg`
(unary complex op of the same shape).
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
Aligning outliers in
@stdlib/complex/float64/basewith namespace majority patterns (random namespace pick, seed20260504).Namespace summary
add,add3,assert,div,identity,mul-add,mul,neg,scale,sub); none autogenerated.package.jsonshape (top-level keys,scripts,stdlib,directories,keywords,gypfile),manifest.jsonpresence, README section list/order,test//benchmark//examples/filenames, public signature, validation prologue, error construction, JSDoc shape,@stdlib/*dependencies.package.jsonkeys,gypfile: true(9/10),manifest.jsonpresence (9/10), README## Usage+## Examples(10/10), README## C APIsblock (9/10),examples/index.js(10/10),test/test.js(10/10),test/test.native.js(9/10), public-signature shape per arity,errorConstruction = plain-string(10/10),returnKind = value(10/10),hasExample = true(10/10).## See AlsoREADME section (6/10),## References(1/10),test.assign.js/test.main.js/test.strided.jsand matching benchmarks (6/10 each),__stdlib__package.json key (1/10 — but its lone occurrence is itself drift, see below).identity
Audited against the 9 non-
assertmembers of@stdlib/complex/float64/base:identitywas the sole outlier. Removes vestigial__stdlib__: {}frompackage.json(0/9 siblings carry it). Addsbenchmark/c/Makefile,benchmark/c/benchmark.c,benchmark/julia/REQUIRE, andbenchmark/julia/benchmark.jlto reach 100% conformance with the 8/8 native-binding siblings that have these files. C and Julia templates mirrorcomplex/float64/base/neg(same unary complex shape).Validation
What was checked:
package.json,manifest.json, README, test/benchmark/example filenames).@stdlib/*dependencies) — uniform across all 9 leaf packages; no semantic drift detected.assertoutliers correctly classified intentional;identityoutliers all confirmed drift).What was deliberately excluded:
assert's 20 missing native-related files and missinggypfilefield —assertis a sub-namespace re-exporter without native bindings, so missingbinding.gyp,manifest.json,src/,lib/main.js,lib/native.js,examples/c/,benchmark/c/,benchmark/julia/,test/test.native.jsis by design.(z1,z2)vs(z)vs(alpha,z)vs(alpha,x,y)vs(z1,z2,z3)) — genuine mathematical-shape difference, not drift.## See Also,test.assign.js/test.strided.jsfamily).identity(numberkeyword absent;double/double-precision/dbl/float64present) — not covered by the validated fix set; left for a future targeted pass.Related Issues
None.
Questions
No.
Other
This PR is the output of an automated cross-package drift sweep using a 75% majority-vote threshold. Per-package commits, conformance percentages, and the full audit trail (including the dropped
assertoutliers) live in the local drift report; the corrections that survived three-agent validation are the only ones applied here.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 API drift detection routine using majority-vote analysis. Structural and semantic features were extracted from all 10 members of
@stdlib/complex/float64/base, the majority pattern was computed per feature with a 75% conformance threshold, and three independent validation agents (semantic-review, cross-reference, structural-review) confirmed each correction before it was applied. The benchmark file templates were generated by adapting the corresponding files from sibling packagecomplex/float64/base/neg.@stdlib-js/reviewers
Generated by Claude Code