# tools/dupes.sh: the most duplicate groups allowed; lower them as copies are folded, never raise # Raised once, 11-06 (docs/targets.feature T1a): 292/48 -> 296/56 when the Rune host joined the # workspace as engine/rune. Its two real copies were folded (view.rs padding(), tests/common); these twelve are # accessors, one-line forwards and closures matched by shape, not copies: # exact: rune/page tree.rs:57 Tree::get (a11y Ctx::el); rune/page page.rs:83 Page::take_out (rune/style report.rs:40 # Report::take_fresh); rune/page kit.rs:17 closure (engine/native node.rs:257); rune/page events.rs:42 and :54 # the two pointer handlers' closures # near: rune js.rs:164/173 Host clock/take_out; rune/page session.rs:179/192 focused_field/take_out; rune/page # tree.rs:52 Tree::ids (speech Slot::lock); tree.rs:149 Tree::node_mut (calls State::solid); rune tests/css.rs:7 # style (core/wire raw.rs is_object); rune video.rs:155 fnv (tone tonegraph.rs hash, the same FNV-1a: kept, the # host can't depend on systems/); rune/style css.rs:409 closure (plugins fields.rs:272); rune bundle.rs:9 js_dir # Raised once more, 11-06, by raea-web (web-export): 296 -> 297. Its copies were folded (grass's and volume's JSON number # into raea_sys_frame::json_f32; begin_live and app_mut gone; await_models split by target); the one left is an # accessor matched by shape: Engine::world_mut and Opening::world_mut (the canvas window goes on before the engine is # finished, its camera after) with runtime/page bevy_page.rs BevyPage::app # Raised once more, 11-11, by the CapCut export (docs/capcut.feature): near 56 -> 59. Its real copies were folded # (io/apple's cf_key reused, runtime-bundle's flag, frames_in shared with render.rs's exposure pass, a PNG read through # image, the movie writers' frame counts kept once, a byte-concat wrapper gone); the three left match by shape only: # io/capcut store.rs:67 (tasklist's stdout, lower-cased; sdk/ui/parity main.rs:88 trims a command's stdout), # io/capcut build.rs:24 parse (serde_json::from_str + expect; engine/native node.rs:172 js_string, to_string), and # apps/capcut plan.rs:67 (a box moved more than 1 px; systems/layout mod.rs:406, within 1.5 px) # Raised once more, 11-17, when every waiting branch landed together (body motion, wear, foliage, segmented export, the # realtime controls and the rest): 289/58 -> 294/59. Its copies were folded (io-media's backend() is backend_unsigned # wrapped; paint's cut colours read by one closure; foliage's one smoothstep and its bounds in one pass; segments' video # track found once in its tests; the Solari switch through raea_io_home::env_on); the six left match by shape only: # exact: runtime/segments encode.rs Segs open_video/decode_audio and encoder/encoder_10bit, Segmented # push_nv12/push_p010 (a Backend's and a VideoEncoder's one-line forwards, alike by the traits' design); # systems/foliage lib.rs hash_str (tone tonegraph.rs hash, the same FNV-1a: foliage can't depend on systems/ # tone) and Rng::range (core/grow mesh.rs Rng::range in f64; foliage's stream is its own, so moving it to # core/grow's would change every tree) # near: runtime/live props.rs Live::controls/held (accessors); io/av1 and io/soft Backend::sound (one-line forwards) exact=293 near=57