{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AXB1","name":"Runtime evidence locked \u2014 no reproducible boot","shortDescription":{"text":"Runtime evidence locked \u2014 no reproducible boot"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB1"},{"id":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"S1","name":"Web-Security Posture","shortDescription":{"text":"Web-Security Posture"},"helpUri":"https://codehealth.canine.dev/dimensions/S1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"SpeechToTextWhisper.process_output (cyclomatic 17): SpeechToTextWhisper.process_output has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/audio/speech_to_text_whisper.ex"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"2514c7a974095f39972abe71af48b043355f843ce6d97c41a335fcef93c9daf2"}},{"ruleId":"D2","level":"warning","message":{"text":"Bumblebee.load_tokenizer (cognitive 42): Bumblebee.load_tokenizer has cognitive complexity 42 (threshold 15). Drivers by points: if/else 9 (24 pts), match/switch 6 (17 pts), boolean chains 1 (nesting depth added 26). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident. This file is where this pass\u0027s cognitive complexity CONCENTRATES: lib/bumblebee.ex holds 3 of the 7 functions over the threshold \u2014 including the worst \u2014 and 56 of the 87 points over it (64%), 3.5\u00D7 the next-largest file (lib/bumblebee/huggingface/hub.ex at 16). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee.ex"},"region":{"startLine":959}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d136969a2a14d44780a2a82b836b0e8685725ac14ae4a2ff55d9bb631e6dfa7"}},{"ruleId":"D2","level":"warning","message":{"text":"Bumblebee.load_generation_config (cognitive 36): Bumblebee.load_generation_config has cognitive complexity 36 (threshold 15). Drivers by points: if/else 8 (22 pts), match/switch 5 (13 pts), boolean chains 1 (nesting depth added 22). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident. This file is where this pass\u0027s cognitive complexity CONCENTRATES: lib/bumblebee.ex holds 3 of the 7 functions over the threshold \u2014 including the worst \u2014 and 56 of the 87 points over it (64%), 3.5\u00D7 the next-largest file (lib/bumblebee/huggingface/hub.ex at 16). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee.ex"},"region":{"startLine":1076}}}],"partialFingerprints":{"codehealthFindingId/v1":"883bcf9ff89a763a49d551c4f8feb15c2ad85bc7e44e07bc53f3d119158ba7e8"}},{"ruleId":"D2","level":"warning","message":{"text":"SpeechToTextWhisper.process_output (cognitive 27): SpeechToTextWhisper.process_output has cognitive complexity 27 (threshold 15). Drivers by points: if/else 18 (22 pts), boolean chains 3, match/switch 1 (2 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/audio/speech_to_text_whisper.ex"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"6af988fd8aa7a965463447739a4f6b8f914596dd657bfcda3d97090d5b6cc25b"}},{"ruleId":"D2","level":"warning","message":{"text":"Hub.cached_download (cognitive 23): Hub.cached_download has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (17 pts), match/switch 3 (5 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/huggingface/hub.ex"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"d70c740ba04039c01756845ef5fda4f9ae937f209dd6a2ebe5b43f791530a247"}},{"ruleId":"D2","level":"warning","message":{"text":"Hub.head_download (cognitive 23): Hub.head_download has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (15 pts), match/switch 3 (8 pts) (nesting depth added 13). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/huggingface/hub.ex"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8de1058445ac111be21366fe47c05b40cc3e8d8ac6917ea6115feae4dc4368a"}},{"ruleId":"D2","level":"warning","message":{"text":"Bumblebee.do_load_spec (cognitive 23): Bumblebee.do_load_spec has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (14 pts), match/switch 3 (6 pts), boolean chains 3 (nesting depth added 11). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident. This file is where this pass\u0027s cognitive complexity CONCENTRATES: lib/bumblebee.ex holds 3 of the 7 functions over the threshold \u2014 including the worst \u2014 and 56 of the 87 points over it (64%), 3.5\u00D7 the next-largest file (lib/bumblebee/huggingface/hub.ex at 16). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee.ex"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"490a7670b89b0c48b2ed3af29a8460883f83742be56cace32fd205f540316c56"}},{"ruleId":"D2","level":"warning","message":{"text":"Generation.get_logits_processor (cognitive 18): Generation.get_logits_processor has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 3 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/generation.ex"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb5b417fd0bab2b91771221e57e4edd11730be68e25c2b3675d92c1f4aa9dadb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: bumblebee/layers.ex: FileTooLong \u2014 863 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 37 functions. The bar is 500 significant lines; this is 363 over it, 1.73\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/layers.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8c7aa8b04e96953792625ae9e4b14d875e4de64ffa0b0984b1f8a9edc6f0f92"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: lib/bumblebee.ex: FileTooLong \u2014 848 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 34 functions. The bar is 500 significant lines; this is 348 over it, 1.70\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c423291293a6e11fea2e67537ce7068056644ef7da8b03d2f869138539d069e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: text/generation.ex: FileTooLong \u2014 699 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 199 over it, 1.40\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/generation.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bbba4c77a9c0831e4410d042ff38f3f2058e092bf310e5ccad6327323ee25d2"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: Shared: TooManyFunctions \u2014 35 functions. The bar is 30 functions; this is 5 over it, 1.17\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/shared.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"74b59b86550fae14d6c3bdcff21de3801d6a54b66e1181df72dac2bf1a9fa00a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: text/mbart.ex: FileTooLong \u2014 557 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 57 over it, 1.11\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/mbart.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"49877d20e0a3fe73f03dffe4a3464f718ec3cb1e292ddadf7fe9b7bf8ae96e7c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: text/bart.ex: FileTooLong \u2014 527 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 27 over it, 1.05\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/bart.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f61cf0887e71d476ffeb12575ec3eab19eabc5dc4cdbe5d3b5a5f8483e115f0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: text/deberta_v2.ex: FileTooLong \u2014 513 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 13 over it, 1.03\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/deberta_v2.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"24b915d4ee88e58a2a56352e88c13baeb1b4ce0c4feac425173fad25f7503164"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: audio/speech_to_text_whisper.ex: FileTooLong \u2014 510 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 10 over it, 1.02\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/audio/speech_to_text_whisper.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fcc8cfc26ab455342ea146a681df397ef6a268b20f1d7e6bb4db838d3c59323"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (9 members, 34 shared lines): lib/bumblebee/text/cross_encoding.ex:7-88 | lib/bumblebee/text/fill_mask.ex:7-126 | lib/bumblebee/text/question_answering.ex:8-129 | lib/bumblebee/text/text_classification.ex:7-105 | lib/bumblebee/text/text_embedding.ex:7-167 | lib/bumblebee/text/text_generation.ex:8-105 | lib/bumblebee/text/text_reranking_qwen3.ex:7-147 | lib/bumblebee/text/token_classification.ex:8-110 | lib/bumblebee/text/translation.ex:8-126 \u2014 These 9 members are variants of one another: a block of 34 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 9 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 9 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/cross_encoding.ex"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"3817648b561cfc616c21bb50a45545bc895971c681276f09a19df575fa447c1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 25 shared lines): lib/bumblebee/audio/whisper.ex:479-557 | lib/bumblebee/text/blenderbot.ex:459-554 | lib/bumblebee/text/gpt2.ex:387-484 | lib/bumblebee/text/gpt_big_code.ex:392-490 | lib/bumblebee/text/m2m100.ex:489-584 | lib/bumblebee/text/mbart.ex:630-725 \u2014 These 6 members are variants of one another: a block of 25 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/audio/whisper.ex"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f6ae81e097c9ce698645c047b0dbbef19060e2cad11209490f259ce65c8232a"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 15 shared lines): lib/bumblebee/multimodal/layout_lm.ex:528-569 | lib/bumblebee/text/bart.ex:735-783 | lib/bumblebee/text/blenderbot.ex:600-641 | lib/bumblebee/text/m2m100.ex:631-674 | lib/bumblebee/text/mbart.ex:772-822 | lib/bumblebee/text/roberta.ex:632-669 \u2014 These 6 members are variants of one another: a block of 15 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/multimodal/layout_lm.ex"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"2756b14a204aa0cf83ab08fbe23d55173981ac9937c1f038662bc115ed62c1f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 40 shared lines): lib/bumblebee/text/llama.ex:314-375 | lib/bumblebee/text/mistral.ex:314-377 | lib/bumblebee/text/phi3.ex:345-409 | lib/bumblebee/text/qwen3.ex:317-386 | lib/bumblebee/text/smollm3.ex:388-456 \u2014 These 5 members are variants of one another: a block of 40 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/llama.ex"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"832b71162436d010eb66f2755acd6b39a9b8803bfcc2989274876ca4b6ca2d64"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 29 shared lines): lib/bumblebee/text/gemma.ex:322-389 | lib/bumblebee/text/llama.ex:314-375 | lib/bumblebee/text/mistral.ex:314-377 | lib/bumblebee/text/phi3.ex:345-409 | lib/bumblebee/text/qwen3.ex:317-386 \u2014 These 5 members are variants of one another: a block of 29 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/gemma.ex"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"127ecabcadf3c165bf9096ed779b9692a0be1346573640a2f4af86d38abe4105"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 21 shared lines): lib/bumblebee/text/bart.ex:387-416 | lib/bumblebee/text/blenderbot.ex:239-268 | lib/bumblebee/text/m2m100.ex:238-267 | lib/bumblebee/text/mbart.ex:384-413 | lib/bumblebee/text/t5.ex:284-311 \u2014 These 5 members are variants of one another: a block of 21 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/bart.ex"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"65fb940b8c643c94ea15b348267db72974d380eb2c5d01c3065f54497f9f2c3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): lib/bumblebee/multimodal/layout_lm.ex:409-457 | lib/bumblebee/text/albert.ex:382-441 \u2014 These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/multimodal/layout_lm.ex"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"87cd6c6acd33ff4d1f0b677c948def08ada4d4d6e7ef07d144098b023088bcc0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): lib/bumblebee/text/bert.ex:465-497 | lib/bumblebee/text/roberta.ex:417-450 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/bert.ex"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c021a7aafe3477e00f23467cb0bd3341a7b575799b968920c74514d8eb4c24b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): lib/bumblebee/vision/deit.ex:261-286 | lib/bumblebee/vision/vit.ex:215-236 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/vision/deit.ex"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"745b8ba957c0f69dfaa60402019f088c27c5846f3a02e06dc538e3652e1cae66"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (13 members, 50\u002B identical tokens): lib/bumblebee/multimodal/layout_lm.ex:208-226 | lib/bumblebee/multimodal/layout_lm.ex:230-248 | lib/bumblebee/text/albert.ex:216-233 | lib/bumblebee/text/albert.ex:237-254 | lib/bumblebee/text/bert.ex:228-246 | lib/bumblebee/text/bert.ex:250-268 | lib/bumblebee/text/distilbert.ex:192-210 | lib/bumblebee/text/distilbert.ex:214-232 | lib/bumblebee/text/modernbert.ex:199-228 | lib/bumblebee/text/modernbert.ex:232-260 | lib/bumblebee/text/mpnet.ex:198-222 | lib/bumblebee/text/mpnet.ex:226-244 | lib/bumblebee/text/roberta.ex:238-256 \u2014 These 13 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 13 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 13 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/multimodal/layout_lm.ex"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"86dafcc63eb8d562f8396c04aae53dfb3abdb4dd6124d9307ff4d63756d140a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (12 members, 50\u002B identical tokens): lib/bumblebee/text/gemma.ex:238-250 | lib/bumblebee/text/gemma3_text.ex:280-292 | lib/bumblebee/text/gpt2.ex:297-314 | lib/bumblebee/text/gpt_big_code.ex:302-319 | lib/bumblebee/text/gpt_neo_x.ex:263-275 | lib/bumblebee/text/llama.ex:240-252 | lib/bumblebee/text/mistral.ex:238-250 | lib/bumblebee/text/modernbert_decoder.ex:207-218 | lib/bumblebee/text/phi.ex:264-276 | lib/bumblebee/text/phi3.ex:269-281 | lib/bumblebee/text/qwen3.ex:243-255 | lib/bumblebee/text/smollm3.ex:314-326 \u2014 These 12 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 12 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 12 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/gemma.ex"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9aa7d2d40146c424f0c33c3ac1ba32e2d2817d6a270a77189bdb9584af3309c"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (11 members, 50\u002B identical tokens): lib/bumblebee/text/gemma.ex:199-234 | lib/bumblebee/text/gemma3_text.ex:241-276 | lib/bumblebee/text/gpt2.ex:244-277 | lib/bumblebee/text/gpt_big_code.ex:248-281 | lib/bumblebee/text/gpt_neo_x.ex:201-235 | lib/bumblebee/text/llama.ex:201-236 | lib/bumblebee/text/mistral.ex:199-234 | lib/bumblebee/text/phi.ex:203-238 | lib/bumblebee/text/phi3.ex:208-243 | lib/bumblebee/text/qwen3.ex:204-239 | lib/bumblebee/text/smollm3.ex:231-266 \u2014 These 11 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 11 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 11 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/gemma.ex"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7d20664977b3d1cf3a193fc509b5d3b788224cb9dd5a17acace1287c31b4008"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (10 members, 50\u002B identical tokens): lib/bumblebee/text/gemma.ex:254-291 | lib/bumblebee/text/gemma3_text.ex:296-333 | lib/bumblebee/text/gpt_neo_x.ex:279-314 | lib/bumblebee/text/llama.ex:256-291 | lib/bumblebee/text/mistral.ex:254-289 | lib/bumblebee/text/modernbert_decoder.ex:222-257 | lib/bumblebee/text/phi.ex:280-315 | lib/bumblebee/text/phi3.ex:285-320 | lib/bumblebee/text/qwen3.ex:259-294 | lib/bumblebee/text/smollm3.ex:330-365 \u2014 These 10 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 10 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 10 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/gemma.ex"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dd717f66875fb926d4de69b698a152159d07f957c0792b8dbd5baacde7bf302"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): lib/bumblebee/multimodal/layout_lm.ex:252-268 | lib/bumblebee/text/bart.ex:308-328 | lib/bumblebee/text/bert.ex:272-288 | lib/bumblebee/text/mbart.ex:305-325 | lib/bumblebee/text/mpnet.ex:248-264 | lib/bumblebee/text/roberta.ex:260-276 | lib/bumblebee/text/smollm3.ex:294-310 \u2014 These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/multimodal/layout_lm.ex"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"431741bba3b59e6021bd9f7d2731523afe188377b75489a59f71d395f94804d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): lib/bumblebee/audio/whisper.ex:283-331 | lib/bumblebee/text/bart.ex:436-490 | lib/bumblebee/text/blenderbot.ex:288-342 | lib/bumblebee/text/m2m100.ex:287-341 | lib/bumblebee/text/mbart.ex:433-506 | lib/bumblebee/text/t5.ex:315-368 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/audio/whisper.ex"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d8b1566ee29056bf15876f1b2b57b9fb0183b385677c803ddbcc6b06f8e7488"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): lib/bumblebee/audio/whisper.ex:576-598 | lib/bumblebee/text/bart.ex:707-729 | lib/bumblebee/text/blenderbot.ex:573-594 | lib/bumblebee/text/m2m100.ex:603-625 | lib/bumblebee/text/mbart.ex:744-766 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/audio/whisper.ex"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fb12b01947e9e3b830caab3a5555cde688f0b77b273b9bd55844e28a5e45ede"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): lib/bumblebee/text/albert.ex:278-312 | lib/bumblebee/text/bert.ex:292-326 | lib/bumblebee/text/distilbert.ex:261-295 | lib/bumblebee/text/mpnet.ex:268-300 | lib/bumblebee/text/roberta.ex:280-314 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/albert.ex"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"133d67b8d00af7300014352b5c85a50b8307aeb17e2c964513145c34ce3686cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): lib/bumblebee/vision/blip_vision.ex:183-223 | lib/bumblebee/vision/clip_vision.ex:207-249 | lib/bumblebee/vision/deit.ex:304-351 | lib/bumblebee/vision/dino_v2.ex:344-394 | lib/bumblebee/vision/vit.ex:254-301 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/vision/blip_vision.ex"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ed8e609b8f08d42bee358d8bbd9b9830ccf0bf6f9b8560bb7b9b0577af4a8a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): lib/bumblebee/text/bart.ex:515-527 | lib/bumblebee/text/blenderbot.ex:366-378 | lib/bumblebee/text/m2m100.ex:434-446 | lib/bumblebee/text/mbart.ex:593-605 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/bart.ex"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a3405b9604fa602abea9e4bc5b7ca6fb8a3553c9dcaa6d7e62463a33e5af7ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (96 corresponding lines): lib/bumblebee/diffusion/stable_diffusion.ex:130-225 | lib/bumblebee/diffusion/stable_diffusion_controlnet.ex:153-252 \u2014 These two members are one piece of code written twice and then edited apart: 96 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/diffusion/stable_diffusion.ex"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"43b5c18fb13bfc3f0b71d355e3e3c8c0be767a0272fdae8a8cb5e8695847b844"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (80 corresponding lines): lib/bumblebee/vision/image_classification.ex:7-86 | lib/bumblebee/vision/image_embedding.ex:7-101 \u2014 These two members are one piece of code written twice and then edited apart: 80 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/vision/image_classification.ex"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e3e50135ad9e6d2020cd99cc99d50a2e85961b03a0781616744db9b477b792b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (50 corresponding lines): lib/bumblebee/text/modernbert.ex:487-537 | lib/bumblebee/text/modernbert_decoder.ex:412-461 \u2014 These two members are one piece of code written twice and then edited apart: 50 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/modernbert.ex"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd60edcecd8e28e8f0327c0bb1f103dba66beb9a4f5b90227da918609a9d5bdf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 59\u002B corresponding lines): lib/bumblebee/text/blenderbot.ex:387-445 | lib/bumblebee/text/m2m100.ex:345-403 | lib/bumblebee/text/mbart.ex:510-568 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 59 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/blenderbot.ex"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"a45b23b1d504055dd0ab45e5f98acdd994f82a7a91109f9e259965eeb0754614"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (53 corresponding lines): lib/bumblebee/diffusion/layers/unet.ex:78-141 | lib/bumblebee/diffusion/layers/unet.ex:156-208 \u2014 These two members are one piece of code written twice and then edited apart: 53 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/diffusion/layers/unet.ex"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbdedfcbbf9a817b3002b53cc3af59f3d26f927f9c36f48df3651759177baf01"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (50 corresponding lines): lib/bumblebee/diffusion/stable_diffusion.ex:240-289 | lib/bumblebee/diffusion/stable_diffusion_controlnet.ex:268-327 \u2014 These two members are one piece of code written twice and then edited apart: 50 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/diffusion/stable_diffusion.ex"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"f46a515df0a5e937717cc1185343df32083a72fcd16b18d3e29d7dcd0cc5faa6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): lib/bumblebee/text/bert.ex:397-427 | lib/bumblebee/text/roberta.ex:349-379 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/bert.ex"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2f7ec3272e4a93f02bd91c683073ef075bd44c94f64a0ea407389edc44fec68"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): lib/bumblebee/diffusion/controlnet.ex:393-435 | lib/bumblebee/diffusion/unet_2d_conditional.ex:409-449 \u2014 These two members are one piece of code written twice and then edited apart: 41 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/diffusion/controlnet.ex"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ee490106c5c827bd61368ab6a1009fb01184c18ef9f56f0caafdef96fefe6a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (69 corresponding lines): lib/bumblebee/text/gpt_neo_x.ex:337-409 | lib/bumblebee/text/modernbert_decoder.ex:283-351 \u2014 These two members are one piece of code written twice and then edited apart: 69 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/gpt_neo_x.ex"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"aafd3a7ec994851ff193620175719a0f19364e67da818594de18dc95d9ebc9c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 46\u002B corresponding lines): lib/bumblebee/text/bart.ex:542-590 | lib/bumblebee/text/distilbert.ex:368-413 | lib/bumblebee/text/mpnet.ex:365-424 | lib/bumblebee/text/nomic_bert.ex:213-269 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 46 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/bart.ex"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6584d9af5ce71f80e26685405bdd84d4147d709ace872007c796fa8f344cc41"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): lib/bumblebee/text/gpt2.ex:497-517 | lib/bumblebee/text/gpt_big_code.ex:503-524 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/gpt2.ex"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4239006a7a29c1e117815e6997319364f5a5c7fbbaa72730c82ce01e54d0a9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): lib/bumblebee/diffusion/controlnet.ex:443-502 | lib/bumblebee/diffusion/vae_kl.ex:449-487 \u2014 These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/diffusion/controlnet.ex"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a100bd3c4c42e20d84b63f94781dacca5aebb93868769ddcadbf06c4c64194b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (44 corresponding lines): lib/bumblebee/audio/whisper.ex:604-647 | lib/bumblebee/text/deberta_v2.ex:643-686 \u2014 These two members are one piece of code written twice and then edited apart: 44 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/audio/whisper.ex"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"0553217f842d2371f3df2d31f5b120f3692a8d9a3ab24d3c75947e358f5edce6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): lib/bumblebee.ex:837-865 | lib/bumblebee.ex:1232-1260 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee.ex"},"region":{"startLine":837}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbab16a2b4a7b5bff3bdb40e393a6a4a0f40e464771985597b61c8c1274b6e20"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): lib/bumblebee/diffusion/vae_kl.ex:165-190 | lib/bumblebee/diffusion/vae_kl.ex:194-215 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/diffusion/vae_kl.ex"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"0110500f38834d96969442a67698005ae0851149a90c3926a6cb9a91488b1fdd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 41\u002B corresponding lines): lib/bumblebee/text/gpt_big_code.ex:532-572 | lib/bumblebee/text/modernbert.ex:543-597 | lib/bumblebee/text/phi3.ex:454-497 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 41 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/gpt_big_code.ex"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"1add6e6006f357b423648861582d40840313ad27c43445b78caf7b644f6de2d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 22\u002B corresponding lines): lib/bumblebee/text/llama.ex:394-415 | lib/bumblebee/text/smollm3.ex:475-508 | lib/bumblebee/text/t5.ex:639-660 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 22 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/llama.ex"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc535667b771629580da5936a23c381341e2e74dfc94173a69b31bbaf03c9fbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): lib/bumblebee/vision/deit.ex:397-435 | lib/bumblebee/vision/vit.ex:347-377 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/vision/deit.ex"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"c52ec3f2dfd444c95a87f1d081141cf69388c7aef47e5d5ca0bd6d641182e54a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 20\u002B corresponding lines): lib/bumblebee/text/albert.ex:486-508 | lib/bumblebee/text/bert.ex:654-674 | lib/bumblebee/text/mpnet.ex:466-485 | lib/bumblebee/text/nomic_bert.ex:323-342 | lib/bumblebee/text/roberta.ex:607-626 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 20 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/albert.ex"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"e820ab4685e0b040f357c2efc38905195b8364d624a85452591fa151a8b8f8c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 19\u002B corresponding lines): lib/bumblebee/text/blip_text.ex:449-467 | lib/bumblebee/vision/deit.ex:372-391 | lib/bumblebee/vision/dino_v2.ex:437-460 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 19 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/blip_text.ex"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"d416dd85fc3e5a12ace18931e9739228b2639f8f77fa86d71195543d45e989df"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): lib/bumblebee/layers.ex:403-442 | lib/bumblebee/layers.ex:468-492 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/layers.ex"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"0663f04034d0d36b77f2ad31b8692ec3bcec6aabd5d50e83fd6191e3fa74c128"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): lib/bumblebee/text/bert.ex:680-721 | lib/bumblebee/text/t5.ex:682-728 \u2014 These two members are one piece of code written twice and then edited apart: 42 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/bert.ex"},"region":{"startLine":680}}}],"partialFingerprints":{"codehealthFindingId/v1":"e36bdfa65cc10490da26dc183a88af4d5b78986e6ca228500a4772b42e316cc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): lib/bumblebee/multimodal/blip.ex:201-222 | lib/bumblebee/multimodal/clip.ex:175-196 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/multimodal/blip.ex"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"604b8ad30a0a396288f5c19449c604708eca2cc97923020636f5148f4eb06391"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 27\u002B corresponding lines): lib/bumblebee/diffusion/ddim_scheduler.ex:243-270 | lib/bumblebee/diffusion/lcm_scheduler.ex:293-320 | lib/bumblebee/diffusion/pndm_scheduler.ex:418-444 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 27 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/diffusion/ddim_scheduler.ex"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f50931f80c63bdcbdd05637b48c5de00c092d6da9b54d88375293b0cd5fd1a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): lib/bumblebee/vision/convnext.ex:170-203 | lib/bumblebee/vision/resnet.ex:154-180 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/vision/convnext.ex"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"28b41608518717d1337f69a7d9cf1e901e95f630cdc2f692c795d7ffb6c6e22a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 19\u002B corresponding lines): lib/bumblebee/text/mistral.ex:396-415 | lib/bumblebee/text/phi.ex:415-433 | lib/bumblebee/text/phi3.ex:429-448 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 19 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/mistral.ex"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"0811cf4d41711c95cf0617a6eb640e41ee43cc794660be8a1ce7236f382b6ddb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 22\u002B corresponding lines): lib/bumblebee/text/albert.ex:346-378 | lib/bumblebee/text/distilbert.ex:337-358 | lib/bumblebee/text/mpnet.ex:340-361 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 22 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/albert.ex"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"db7c17646acb8c645e6ad7d498511762be09d0e83a74b77d4cacaf0d94a855c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): lib/bumblebee/diffusion/vae_kl.ex:248-273 | lib/bumblebee/diffusion/vae_kl.ex:307-329 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/diffusion/vae_kl.ex"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f4193eee86f843834a3036376d28317fdae26c543e1dcaff974410dfd21a1ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): lib/bumblebee/diffusion/vae_kl.ex:219-241 | lib/bumblebee/diffusion/vae_kl.ex:277-300 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/diffusion/vae_kl.ex"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"53c6f5d6dd90b40fddc402b68257efd807e95ec2d75a3999dec896529376fb76"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): lib/bumblebee/vision/dino_v2.ex:272-294 | lib/bumblebee/vision/swin.ex:192-216 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/vision/dino_v2.ex"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f7dc973f043641d2a7bdb7ada861f2257d10dd990553280b8dbd958f020cf94"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): lib/bumblebee/vision/resnet.ex:213-228 | lib/bumblebee/vision/resnet.ex:232-255 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/vision/resnet.ex"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c634f4832461c972853117c6244e68eeed31c881b9dfedeb02878c0cd20a04c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): lib/bumblebee/conversion/pytorch_loader.ex:138-157 | lib/bumblebee/conversion/pytorch_loader.ex:162-183 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/conversion/pytorch_loader.ex"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"939b619f1d23cf367838c0e0dd82c8009fcc8137af0783237d3a0deaa28eb308"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): lib/bumblebee/text/deberta_v2.ex:189-214 | lib/bumblebee/text/roberta.ex:212-234 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/deberta_v2.ex"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"292d231d6327db15bdcf1578f7165262288d9c86e3005f5fabc06e5d3abd383f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 14\u002B corresponding lines): lib/bumblebee/multimodal/layout_lm.ex:473-490 | lib/bumblebee/text/bert.ex:624-641 | lib/bumblebee/text/blip_text.ex:418-435 | lib/bumblebee/text/mpnet.ex:440-453 | lib/bumblebee/text/roberta.ex:577-594 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/multimodal/layout_lm.ex"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"43dd84c2ad03c55eb2b99e3ee6e30bec6a15678e16b7d711aae2006377b5f4e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): lib/bumblebee/vision/blip_vision.ex:144-165 | lib/bumblebee/vision/clip_vision.ex:159-180 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/vision/blip_vision.ex"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"df80f6ee78b0d8b582ca02834c8d79f99eb0a575f0160ea36e26f8b9af0a76da"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): lib/bumblebee/vision/deit.ex:237-257 | lib/bumblebee/vision/vit.ex:191-211 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/vision/deit.ex"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdbe84d3def65dec2fcf15be700a0af09444ac8a817f1f1f2243d8635ac472f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): lib/bumblebee/vision/convnext.ex:125-147 | lib/bumblebee/vision/resnet.ex:111-132 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/vision/convnext.ex"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"a16c3139363a0306b3375e8014d35b94c3f603913f821c82c0d55c3dda13ddd6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): lib/bumblebee/vision/convnext.ex:312-327 | lib/bumblebee/vision/resnet.ex:311-324 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/vision/convnext.ex"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"849a90d9c1c0236ca7934e4464fb95b637ac61a79ed4314abcefd80ad280dec1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): lib/bumblebee/text/gpt_neo_x.ex:455-484 | lib/bumblebee/text/modernbert_decoder.ex:467-494 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/gpt_neo_x.ex"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcadfce911da53a37cc44e649c9fece8d8308e315b1e1d3e896174b47a6113ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): lib/bumblebee/vision/swin.ex:485-503 | lib/bumblebee/vision/swin.ex:507-526 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/vision/swin.ex"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3e5a2fba85bf6ed4328170b3a66f2a98bc468eb63b01f83fbd4a28b6ff0bf29"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): lib/bumblebee/text/albert.ex:457-473 | lib/bumblebee/text/distilbert.ex:429-446 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/albert.ex"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"607fdea78ae6143b0de5ffa88322338c2efecc10ff2455c746402e99b444b2fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 18\u002B corresponding lines): lib/bumblebee/text/bart.ex:494-511 | lib/bumblebee/text/blip_text.ex:269-293 | lib/bumblebee/text/mbart.ex:572-589 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 18 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/bart.ex"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b9b6ba81822e9bfff9fff75022fbff067b7b701020b42ef0638f7c57a7e9c86"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): lib/bumblebee/vision/bit_featurizer.ex:160-176 | lib/bumblebee/vision/convnext_featurizer.ex:119-132 | lib/bumblebee/vision/deit_featurizer.ex:126-140 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/vision/bit_featurizer.ex"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"46040d38fb8f3d3c9b59033e5b88fcfb4593013d778973145a4b2885b8b858a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): lib/bumblebee/text/distilbert.ex:299-311 | lib/bumblebee/text/mpnet.ex:304-313 | lib/bumblebee/text/nomic_bert.ex:148-157 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/distilbert.ex"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a61b0407ed40d71d485d5d7e7a3b19ba5926ac499033fffdc3ea6c7f6d872ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): lib/bumblebee/audio/whisper.ex:208-226 | lib/bumblebee/text/t5.ex:227-248 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/audio/whisper.ex"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dd3070521cf660e17a86c75ecaaaacbb69638eacecd047d08cc9a11f9b846f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): lib/bumblebee/text/gemma3_text.ex:561-586 | lib/bumblebee/text/llama.ex:421-436 | lib/bumblebee/text/qwen3.ex:430-447 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/gemma3_text.ex"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"e722463a3b51b900c4babb8f9ca8f6e60568b90adef7810d8c8076aede1e1ca6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): lib/bumblebee/vision/convnext.ex:333-355 | lib/bumblebee/vision/swin.ex:624-657 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/vision/convnext.ex"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"42bf156ad19996bd93851ccda3514b128c633b0e64249e1b9e6de6f26146da25"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): lib/bumblebee/text/modernbert.ex:297-305 | lib/bumblebee/text/modernbert_decoder.ex:261-271 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/modernbert.ex"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"a924bdb24d061aa14ec4eed8d740a1925d27f0dca201563f8e991679c8310968"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): lib/bumblebee/text/phi.ex:242-260 | lib/bumblebee/text/smollm3.ex:270-290 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/phi.ex"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"926accde2dfb6f8969843b632fd89cb01eb80058d763f75b1733cc58dd59fe75"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): lib/bumblebee.ex:891-907 | lib/bumblebee.ex:1031-1047 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee.ex"},"region":{"startLine":891}}}],"partialFingerprints":{"codehealthFindingId/v1":"e88af68c60d598ad89fd9cd5132f76ed071f23da40c37b3259bf289a6acf393c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 18\u002B corresponding lines): lib/bumblebee/multimodal/layout_lm.ex:288-310 | lib/bumblebee/text/albert.ex:325-342 | lib/bumblebee/text/distilbert.ex:315-333 | lib/bumblebee/text/mpnet.ex:317-336 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 18 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/multimodal/layout_lm.ex"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"606039d4d256dea13b0ba1ea0d3d79e76a4443ad4f902baae5bb9552190569e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): lib/bumblebee/vision/blip_vision.ex:169-179 | lib/bumblebee/vision/clip_vision.ex:184-195 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/vision/blip_vision.ex"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5ebdbc030e09d7e3d911857e0f65c566360cef8fde980aec7cbb0affdd408fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): lib/bumblebee/conversion/pytorch_params.ex:384-392 | lib/bumblebee/conversion/pytorch_params.ex:396-404 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/conversion/pytorch_params.ex"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cd2da3839f69dc187a8d1a8517c447846b6ef78e8e6a82bde4caa5e39415f0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): lib/bumblebee/conversion/pytorch_params.ex:408-413 | lib/bumblebee/conversion/pytorch_params.ex:433-438 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/conversion/pytorch_params.ex"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"2277f4a021a50f973b3b6711a9007ef4e66c37d577ca6169c4de7d92e2beb513"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): lib/bumblebee/text/bert.ex:330-343 | lib/bumblebee/text/bert.ex:347-363 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/bert.ex"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b18c0c84e8c9588bbc9c4a939faa82c2ddc35b8e844bfbe296c72dc60f30081"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): lib/bumblebee/vision/clip_vision.ex:114-126 | lib/bumblebee/text/clip_text.ex:130-142 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/vision/clip_vision.ex"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"8180087530f74caed8ed1161216b2fb741857a4d0ab903ca54865d58077f2ae8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): lib/bumblebee/text/gpt_big_code.ex:286-298 | lib/bumblebee/text/t5.ex:202-214 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/gpt_big_code.ex"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"39172f1603e61ddbbf2e79a9a3593ec6cbc672b3ee863386755f1ca860b09376"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): lib/bumblebee/text/modernbert.ex:276-293 | lib/bumblebee/text/t5.ex:252-266 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/modernbert.ex"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"92b964d1c8967433cfb50cda8055ca713704ac0224eb97c8555737f22ff86d3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): lib/bumblebee/utils/axon.ex:45-51 | lib/bumblebee/utils/nx.ex:57-63 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/utils/axon.ex"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"821271de9791153fba3eafeb05314a4e0c71fb873538ea753f4abca989e5a95a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): lib/bumblebee/vision/convnext.ex:110-121 | lib/bumblebee/vision/resnet.ex:99-107 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/vision/convnext.ex"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"6aee319818556e2a14a9dfa6205de9dce5b7b61c0862f5bcf1ba3c1c9ec6503b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 3\u002B corresponding lines): lib/bumblebee/vision/blip_featurizer.ex:79-81 | lib/bumblebee/vision/deit_featurizer.ex:93-95 | lib/bumblebee/vision/vit_featurizer.ex:79-81 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/vision/blip_featurizer.ex"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"2da29b8854ed26d04e8374b5d78440274973e3bb96b262bba19754ebdafbe33c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): lib/bumblebee/diffusion/stable_diffusion.ex:333-335 | lib/bumblebee/diffusion/stable_diffusion_controlnet.ex:389-391 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/diffusion/stable_diffusion.ex"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2e6eed999872778cad9627fad3d6ab9a693750c2aa96e094e5cdcfb4d8545ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): lib/bumblebee/text/phi.ex:399-406 | lib/bumblebee/text/phi3.ex:413-420 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/phi.ex"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a0d27fde93700634802d25d00dd5bc87f9d203a466b20b78f10a7e983912762"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): lib/bumblebee/diffusion/stable_diffusion.ex:443-448 | lib/bumblebee/diffusion/stable_diffusion_controlnet.ex:524-531 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/diffusion/stable_diffusion.ex"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"53aefeac6aaa4402f84a74dd3f352dc68064ea938fedba87ed22baf0a8989906"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (91 lines \u00D7 3): lib/bumblebee/text/bert.ex:518-608 | lib/bumblebee/text/blip_text.ex:312-402 | lib/bumblebee/text/roberta.ex:471-561 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/bert.ex\u0060 and \u0060lib/bumblebee/text/blip_text.ex\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 266 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/text/bert.ex:518\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/bert.ex"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c36755d633f4973512f027e73ad83c79c3efe5268bf74ca81af1f06d04215a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (77 lines \u00D7 2): lib/bumblebee/text/gpt2.ex:404-480 | lib/bumblebee/text/gpt_big_code.ex:410-486 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/gpt2.ex\u0060 and \u0060lib/bumblebee/text/gpt_big_code.ex\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 352 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/text/gpt2.ex:404\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/gpt2.ex"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"a574678875c5d3a8a01caf649a6dc13d674fae24055a938f698ea21ec314498a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (70 lines \u00D7 3): lib/bumblebee/text/blenderbot.ex:461-530 | lib/bumblebee/text/m2m100.ex:491-560 | lib/bumblebee/text/mbart.ex:632-701 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/blenderbot.ex\u0060 and \u0060lib/bumblebee/text/m2m100.ex\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 557 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/text/blenderbot.ex:461\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/blenderbot.ex"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"25d8f9f16c18d350d0e1bd5726adc573dbe456eb9e8d1751be1d01048ab7d5b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39 lines \u00D7 2): lib/bumblebee/diffusion/controlnet.ex:325-363 | lib/bumblebee/diffusion/unet_2d_conditional.ex:250-288 \u2014 before extracting anything, compare \u0060lib/bumblebee/diffusion/controlnet.ex\u0060 and \u0060lib/bumblebee/diffusion/unet_2d_conditional.ex\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 233 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/diffusion/controlnet.ex"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6584f1b6a07aa480dcb8aec10bb1a5564d89fbfd7f879f987e31a7379638b8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 3): lib/bumblebee/text/blenderbot.ex:387-423 | lib/bumblebee/text/m2m100.ex:345-381 | lib/bumblebee/text/mbart.ex:510-546 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/blenderbot.ex\u0060 and \u0060lib/bumblebee/text/m2m100.ex\u0060 as WHOLE FILES: this scan already matched 29 separate duplicated blocks between them, totalling at least 557 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/text/blenderbot.ex:387\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/blenderbot.ex"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"33af416583dda5123b9b1f2845ef3acab59c53580d8411d6a849ee16abe736c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34\u201337 lines \u00D7 2): lib/bumblebee/diffusion/stable_diffusion.ex:165-198 | lib/bumblebee/diffusion/stable_diffusion_controlnet.ex:192-228 \u2014 before extracting anything, compare \u0060lib/bumblebee/diffusion/stable_diffusion.ex\u0060 and \u0060lib/bumblebee/diffusion/stable_diffusion_controlnet.ex\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 136 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/diffusion/stable_diffusion.ex"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bca47ca03a3e44f56e6bb57502989a13b1c44d3e408b1edaab433db3f2b73de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2): lib/bumblebee/diffusion/stable_diffusion.ex:130-165 | lib/bumblebee/diffusion/stable_diffusion_controlnet.ex:153-188 \u2014 before extracting anything, compare \u0060lib/bumblebee/diffusion/stable_diffusion.ex\u0060 and \u0060lib/bumblebee/diffusion/stable_diffusion_controlnet.ex\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 136 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/bumblebee/diffusion/stable_diffusion_controlnet.ex:190\u0060 calls \u0060length\u0060 and \u0060lib/bumblebee/diffusion/stable_diffusion.ex:166\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/diffusion/stable_diffusion.ex"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"20f03010d86bcca68dfadf916c10257b2a416bfadcd860da455fba6e783c0988"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2): lib/bumblebee/text/bart.ex:269-304 | lib/bumblebee/text/mbart.ex:266-301 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/bart.ex\u0060 and \u0060lib/bumblebee/text/mbart.ex\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 454 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/bart.ex"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"ace162804d1597655f3c1b2dbab334a287b6e9af3d5bc35329f565adc8bf2502"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (52 lines \u00D7 2): lib/bumblebee/text/bart.ex:332-383 | lib/bumblebee/text/mbart.ex:329-380 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/bart.ex\u0060 and \u0060lib/bumblebee/text/mbart.ex\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 454 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/bart.ex"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1747abfa48801507bb57a3daaf9909fb9e17bfa630031fd6ce18ea82e2e0cbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2): lib/bumblebee/text/text_generation.ex:28-63 | lib/bumblebee/text/translation.ex:25-60 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/text_generation.ex\u0060 and \u0060lib/bumblebee/text/translation.ex\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 125 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/text/text_generation.ex:28\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/bumblebee/text/translation.ex:62\u0060 calls \u0060template\u0060 and \u0060lib/bumblebee/text/text_generation.ex:65\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/text_generation.ex"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d045bbf8d4f402a626f54aa6b131199732dfd5969bd4b4c7e91d65d51b2ca70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2): lib/bumblebee/diffusion/controlnet.ex:393-426 | lib/bumblebee/diffusion/unet_2d_conditional.ex:409-442 \u2014 before extracting anything, compare \u0060lib/bumblebee/diffusion/controlnet.ex\u0060 and \u0060lib/bumblebee/diffusion/unet_2d_conditional.ex\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 233 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/diffusion/controlnet.ex:393\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/diffusion/controlnet.ex"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"d956552534b2fa3740aab3e0e11c197e290b11c0307eecbae4e5ee93239af335"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2): lib/bumblebee/text/modernbert.ex:487-520 | lib/bumblebee/text/modernbert_decoder.ex:412-445 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/modernbert.ex\u0060 and \u0060lib/bumblebee/text/modernbert_decoder.ex\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/text/modernbert.ex:487\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/bumblebee/text/modernbert.ex:523\u0060 calls \u0060optional\u0060, \u0060number\u0060 and \u0060lib/bumblebee/text/modernbert_decoder.ex:448\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/modernbert.ex"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"6151ee8c12d592d286458b1460da8b0e74b14a646b7c02fadc5b928b84205356"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): lib/bumblebee/text/gpt_neo_x.ex:282-314 | lib/bumblebee/text/phi.ex:283-315 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/gpt_neo_x.ex\u0060 and \u0060lib/bumblebee/text/phi.ex\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 130 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/text/gpt_neo_x.ex:282\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/gpt_neo_x.ex"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5e66b3a31a5f905381aca454a11b9e5c427ff187f0e154d9c72e1a05974bb9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): lib/bumblebee/text/modernbert.ex:552-583 | lib/bumblebee/text/phi3.ex:459-490 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/modernbert.ex\u0060 and \u0060lib/bumblebee/text/phi3.ex\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 74 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/modernbert.ex"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d0f408c55df34c5a873929c643897280c4bb511ca9c506b612d1911be3f3824"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29\u201331 lines \u00D7 5): lib/bumblebee/text/albert.ex:282-312 | lib/bumblebee/text/bert.ex:296-326 | lib/bumblebee/text/distilbert.ex:265-295 | lib/bumblebee/text/mpnet.ex:272-300 | lib/bumblebee/text/roberta.ex:284-314 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/albert.ex\u0060 and \u0060lib/bumblebee/text/bert.ex\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 172 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/albert.ex"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7183114fd3d87ba927825b1eb983ac6da82d0d08acf546cfe7855c959f5e281"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 3): lib/bumblebee/text/bert.ex:431-461 | lib/bumblebee/text/blip_text.ex:235-265 | lib/bumblebee/text/roberta.ex:383-413 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/bert.ex\u0060 and \u0060lib/bumblebee/text/blip_text.ex\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 266 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/bert.ex"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e5352bfd032f569ef79664a915067b2286eb1d956313b0a9e2be7819078db64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201330 lines \u00D7 4): lib/bumblebee/audio/whisper.ex:436-463 | lib/bumblebee/text/blenderbot.ex:412-441 | lib/bumblebee/text/m2m100.ex:370-399 | lib/bumblebee/text/mbart.ex:535-564 \u2014 before extracting anything, compare \u0060lib/bumblebee/audio/whisper.ex\u0060 and \u0060lib/bumblebee/text/blenderbot.ex\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 246 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/audio/whisper.ex:436\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/audio/whisper.ex"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"45fccaca131265a9aae1ea63aed4259037104f294eb3f819eabd20efa3a93395"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): lib/bumblebee/text/bart.ex:754-783 | lib/bumblebee/text/mbart.ex:793-822 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/bart.ex\u0060 and \u0060lib/bumblebee/text/mbart.ex\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 454 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/text/bart.ex:754\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/bart.ex"},"region":{"startLine":754}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9f07ed2c73d899f7cbc281024b06ba6cc64ac0e18176c71bbc75b9b197a5534"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): lib/bumblebee/text/gemma.ex:263-291 | lib/bumblebee/text/gemma3_text.ex:305-333 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/gemma.ex\u0060 and \u0060lib/bumblebee/text/gemma3_text.ex\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 178 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/gemma.ex"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"836281d4a710e9a1db076172f5461f8028464a2003332352eda90f618eb834c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): lib/bumblebee/text/gpt2.ex:320-348 | lib/bumblebee/text/gpt_big_code.ex:325-353 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/gpt2.ex\u0060 and \u0060lib/bumblebee/text/gpt_big_code.ex\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 352 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/text/gpt2.ex:320\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/gpt2.ex"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc35d2d111b636ad272c2b4877e018632079469307292163cbde1154f13396f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): lib/bumblebee/vision/deit.ex:323-351 | lib/bumblebee/vision/vit.ex:273-301 \u2014 before extracting anything, compare \u0060lib/bumblebee/vision/deit.ex\u0060 and \u0060lib/bumblebee/vision/vit.ex\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 284 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/vision/deit.ex:323\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/vision/deit.ex"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1c4c4a154ba2453399cbc3ddcf4d53ddd8537ad0d42ec4f563b1af8fcf2da05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 3): lib/bumblebee/multimodal/layout_lm.ex:430-457 | lib/bumblebee/text/albert.ex:414-441 | lib/bumblebee/text/mpnet.ex:397-424 \u2014 before extracting anything, compare \u0060lib/bumblebee/multimodal/layout_lm.ex\u0060 and \u0060lib/bumblebee/text/albert.ex\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 231 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/multimodal/layout_lm.ex:430\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/multimodal/layout_lm.ex"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c45b4ff6f4c4e94564c5ad555ae4888d4bc61d10e8ca389d5f22d196358fe4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201328 lines \u00D7 2): lib/bumblebee/text/modernbert.ex:363-387 | lib/bumblebee/text/modernbert_decoder.ex:319-346 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/modernbert.ex\u0060 and \u0060lib/bumblebee/text/modernbert_decoder.ex\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/text/modernbert.ex:363\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/modernbert.ex"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bb964dc48ecfcdaa2aef97fcb5cfd9b3983e3a00f4f9140cf50d163e0bfd4b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 5): lib/bumblebee/text/llama.ex:265-291 | lib/bumblebee/text/mistral.ex:263-289 | lib/bumblebee/text/phi3.ex:294-320 | lib/bumblebee/text/qwen3.ex:268-294 | lib/bumblebee/text/smollm3.ex:339-365 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/llama.ex\u0060 and \u0060lib/bumblebee/text/mistral.ex\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 230 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/llama.ex"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba79dfadc43688aa02e9e58ddba080b4d0dc905e2eb95e8490e1e85ed4d035bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201327 lines \u00D7 4): lib/bumblebee/audio/whisper.ex:528-554 | lib/bumblebee/text/blenderbot.ex:523-548 | lib/bumblebee/text/m2m100.ex:553-578 | lib/bumblebee/text/mbart.ex:694-719 \u2014 before extracting anything, compare \u0060lib/bumblebee/audio/whisper.ex\u0060 and \u0060lib/bumblebee/text/blenderbot.ex\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 246 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/audio/whisper.ex:528\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/audio/whisper.ex"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"8179c8287194d7fb9f0f0af88faba04557c8e43e61741f913b8e5f54fcdfab0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): lib/bumblebee/text/bert.ex:470-496 | lib/bumblebee/text/roberta.ex:423-449 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/bert.ex\u0060 and \u0060lib/bumblebee/text/roberta.ex\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 534 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/bert.ex"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"6deb389108ab70daa4e1fc3b9e16f4989223107872ba957ab6ced813085fb9c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 3): lib/bumblebee/text/bart.ex:451-476 | lib/bumblebee/text/blenderbot.ex:303-328 | lib/bumblebee/text/m2m100.ex:302-327 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/bart.ex\u0060 and \u0060lib/bumblebee/text/blenderbot.ex\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 313 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/text/bart.ex:451\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/bart.ex"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc13f935d892765f0bdaaac0856eceff0e9f72d5eddd1b5a3bc0a79d7d72235a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): lib/bumblebee/audio/speech_to_text_whisper.ex:65-90 | lib/bumblebee/vision/image_to_text.ex:34-59 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/audio/speech_to_text_whisper.ex"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"03b5802d6cd213da52968387bcb1ba51e8ce0124d4b90ee94140b5ee8d6b8bed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 11): lib/bumblebee/text/gemma.ex:208-232 | lib/bumblebee/text/gemma3_text.ex:250-274 | lib/bumblebee/text/gpt2.ex:251-275 | lib/bumblebee/text/gpt_big_code.ex:255-279 | lib/bumblebee/text/gpt_neo_x.ex:209-233 | lib/bumblebee/text/llama.ex:210-234 | lib/bumblebee/text/mistral.ex:208-232 | lib/bumblebee/text/phi.ex:212-236 | lib/bumblebee/text/phi3.ex:217-241 | lib/bumblebee/text/qwen3.ex:213-237 | lib/bumblebee/text/smollm3.ex:240-264 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/gemma.ex\u0060 and \u0060lib/bumblebee/text/gemma3_text.ex\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 178 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/text/gemma.ex:208\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/gemma.ex"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"32bd7f5756c3642934b562f847f43c611707eaf10dc28ef322ad300222bfdb32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 10): lib/bumblebee/text/gemma.ex:254-278 | lib/bumblebee/text/gemma3_text.ex:296-320 | lib/bumblebee/text/gpt_neo_x.ex:279-303 | lib/bumblebee/text/llama.ex:256-280 | lib/bumblebee/text/mistral.ex:254-278 | lib/bumblebee/text/modernbert_decoder.ex:222-246 | lib/bumblebee/text/phi.ex:280-304 | lib/bumblebee/text/phi3.ex:285-309 | lib/bumblebee/text/qwen3.ex:259-283 | lib/bumblebee/text/smollm3.ex:330-354 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/gemma.ex\u0060 and \u0060lib/bumblebee/text/gemma3_text.ex\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 178 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/gemma.ex"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd4f64c81207982b6ec33e12a400708ceedede227c1f63f607ad04034e2a11d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201325 lines \u00D7 5): lib/bumblebee/text/bart.ex:463-487 | lib/bumblebee/text/blenderbot.ex:315-339 | lib/bumblebee/text/m2m100.ex:314-338 | lib/bumblebee/text/mbart.ex:479-503 | lib/bumblebee/text/t5.ex:343-365 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/bart.ex\u0060 and \u0060lib/bumblebee/text/blenderbot.ex\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 313 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/text/bart.ex:463\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/bart.ex"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf17d398dd4fd27b560732d9754f423b5dd3bef92e40de181be6f809013fa77a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 5): lib/bumblebee/text/llama.ex:348-372 | lib/bumblebee/text/mistral.ex:350-374 | lib/bumblebee/text/phi3.ex:382-406 | lib/bumblebee/text/qwen3.ex:359-383 | lib/bumblebee/text/smollm3.ex:429-453 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/llama.ex\u0060 and \u0060lib/bumblebee/text/mistral.ex\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 230 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/text/llama.ex:348\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/llama.ex"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"1afa1bc11bc582b0b2238ec180e2693d65181362514c50ac17ca1486af546217"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201325 lines \u00D7 3): lib/bumblebee/audio/whisper.ex:613-625 | lib/bumblebee/vision/convnext.ex:335-354 | lib/bumblebee/vision/swin.ex:626-650 \u2014 before extracting anything, compare \u0060lib/bumblebee/audio/whisper.ex\u0060 and \u0060lib/bumblebee/vision/convnext.ex\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 67 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/audio/whisper.ex"},"region":{"startLine":613}}}],"partialFingerprints":{"codehealthFindingId/v1":"6504e405dc6c9c5ed255d4dfa59aec4523c8698ab94e980f0351f400217aa263"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): lib/bumblebee/diffusion/controlnet.ex:203-227 | lib/bumblebee/diffusion/unet_2d_conditional.ex:196-220 \u2014 before extracting anything, compare \u0060lib/bumblebee/diffusion/controlnet.ex\u0060 and \u0060lib/bumblebee/diffusion/unet_2d_conditional.ex\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 233 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/bumblebee/diffusion/controlnet.ex:230\u0060 calls \u0060controlnet_embedding\u0060, \u0060add\u0060 and \u0060lib/bumblebee/diffusion/unet_2d_conditional.ex:222\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/diffusion/controlnet.ex"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4856d5838fbfa7908eeca8373699820d906a9b65cd1e27690783b833bcde1f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): lib/bumblebee/vision/bit_featurizer.ex:92-116 | lib/bumblebee/vision/clip_featurizer.ex:81-105 \u2014 before extracting anything, compare \u0060lib/bumblebee/vision/bit_featurizer.ex\u0060 and \u0060lib/bumblebee/vision/clip_featurizer.ex\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 56 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/vision/bit_featurizer.ex"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d09f02110a1fc61bbb761aab5e817c22d4a4008e82169caa5a466c37389bd76"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): lib/bumblebee/text/text_generation.ex:65-88 | lib/bumblebee/text/translation.ex:63-86 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/text_generation.ex\u0060 and \u0060lib/bumblebee/text/translation.ex\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 125 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/text/text_generation.ex:65\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/bumblebee/text/translation.ex:62\u0060 calls \u0060template\u0060 and \u0060lib/bumblebee/text/text_generation.ex:64\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/text_generation.ex"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"c98bcb880a20067cd2e79e31e295e90debfa012a6f01e31fcd7ebe1abf9ec61f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): lib/bumblebee/vision/deit.ex:201-224 | lib/bumblebee/vision/vit.ex:155-178 \u2014 before extracting anything, compare \u0060lib/bumblebee/vision/deit.ex\u0060 and \u0060lib/bumblebee/vision/vit.ex\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 284 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/vision/deit.ex:201\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/vision/deit.ex"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"b86024b8dcf8e2682b5ec79dd92ce58c8f7d09d9bd6fae11e1554c52f8002099"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 4): lib/bumblebee/text/bart.ex:606-628 | lib/bumblebee/text/blenderbot.ex:462-484 | lib/bumblebee/text/m2m100.ex:492-514 | lib/bumblebee/text/mbart.ex:633-655 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/bart.ex\u0060 and \u0060lib/bumblebee/text/blenderbot.ex\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 313 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/text/bart.ex:606\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/bart.ex"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"38236f1b5cabf57de6865b8359fcbb729d316eb60ba70f846842f54bfbb09599"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201323 lines \u00D7 2): lib/bumblebee/text/gpt_big_code.ex:539-549 | lib/bumblebee/text/modernbert.ex:549-571 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/text/gpt_big_code.ex:539\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/gpt_big_code.ex"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"f231ea1451993720dd2712091b4a1609beadb6a90722e4f38821d473b328d09f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201322 lines \u00D7 16): lib/bumblebee/audio/whisper.ex:625-643 | lib/bumblebee/diffusion/controlnet.ex:444-465 | lib/bumblebee/diffusion/unet_2d_conditional.ex:458-479 | lib/bumblebee/multimodal/layout_lm.ex:529-545 | lib/bumblebee/text/albert.ex:515-534 | lib/bumblebee/text/bart.ex:736-749 | lib/bumblebee/text/bert.ex:681-700 | lib/bumblebee/text/blenderbot.ex:601-614 | lib/bumblebee/text/distilbert.ex:483-499 | lib/bumblebee/text/gemma3_text.ex:562-578 | lib/bumblebee/text/m2m100.ex:632-645 | lib/bumblebee/text/mbart.ex:773-786 | lib/bumblebee/text/mpnet.ex:492-504 | lib/bumblebee/text/roberta.ex:633-652 | lib/bumblebee/text/t5.ex:699-713 | lib/bumblebee/vision/deit.ex:417-432 \u2014 before extracting anything, compare \u0060lib/bumblebee/audio/whisper.ex\u0060 and \u0060lib/bumblebee/diffusion/controlnet.ex\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 63 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/audio/whisper.ex"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"6946ae602d69a601be3c8b62857e235570c45bca6df98cfcef4e2d512412fa03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201322 lines \u00D7 4): lib/bumblebee/audio/whisper.ex:617-625 | lib/bumblebee/text/deberta_v2.ex:644-652 | lib/bumblebee/vision/convnext.ex:338-353 | lib/bumblebee/vision/swin.ex:629-650 \u2014 before extracting anything, compare \u0060lib/bumblebee/audio/whisper.ex\u0060 and \u0060lib/bumblebee/text/deberta_v2.ex\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 101 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/audio/whisper.ex"},"region":{"startLine":617}}}],"partialFingerprints":{"codehealthFindingId/v1":"43137a317b566bff60ed882e8780a2f17f67f404129002d70e85c4e4664c44f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 4): lib/bumblebee/text/llama.ex:317-338 | lib/bumblebee/text/mistral.ex:317-338 | lib/bumblebee/text/phi3.ex:348-369 | lib/bumblebee/text/qwen3.ex:326-347 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/llama.ex\u0060 and \u0060lib/bumblebee/text/mistral.ex\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 230 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/text/llama.ex:317\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/llama.ex"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc5c29fe66e60bec44b3a8349f3433f56c6200b88f33fd06f6a56cc72375c871"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201322 lines \u00D7 4): lib/bumblebee/vision/blip_vision.ex:259-273 | lib/bumblebee/vision/deit.ex:397-418 | lib/bumblebee/vision/dino_v2.ex:466-481 | lib/bumblebee/vision/vit.ex:347-362 \u2014 before extracting anything, compare \u0060lib/bumblebee/vision/blip_vision.ex\u0060 and \u0060lib/bumblebee/vision/deit.ex\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 60 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/vision/blip_vision.ex:259\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/vision/blip_vision.ex"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"48d3952a83675aa9debaaad661b5d64a5fffa5113c62fdc5d5fe13820a77141c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 3): lib/bumblebee/diffusion/ddim_scheduler.ex:243-264 | lib/bumblebee/diffusion/lcm_scheduler.ex:293-314 | lib/bumblebee/diffusion/pndm_scheduler.ex:418-439 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/diffusion/ddim_scheduler.ex:243\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/bumblebee/diffusion/ddim_scheduler.ex:266\u0060 calls \u0060boolean\u0060 and \u0060lib/bumblebee/diffusion/pndm_scheduler.ex:441\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/diffusion/ddim_scheduler.ex"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"bee0972d4d38256874919522caa925ff3c3eb2a4311253773be347d7a361cde1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): lib/bumblebee/text/gpt2.ex:352-373 | lib/bumblebee/text/gpt_big_code.ex:357-378 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/gpt2.ex\u0060 and \u0060lib/bumblebee/text/gpt_big_code.ex\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 352 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/gpt2.ex"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cd018c126334372a406f9c1a2cc3849dfca1fdc2e31d787217e08f81c94d7b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): lib/bumblebee/text/modernbert.ex:205-226 | lib/bumblebee/text/modernbert.ex:237-258 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/text/modernbert.ex:205\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/bumblebee/text/modernbert.ex:204\u0060 calls \u0060mean_pooling\u0060 and \u0060lib/bumblebee/text/modernbert.ex:236\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/modernbert.ex"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0f2bfbfc566dfd17e901cdcdbd4dd8ec50b7e566a06072af6c142047ebd81f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 4): lib/bumblebee/vision/blip_vision.ex:183-203 | lib/bumblebee/vision/deit.ex:304-324 | lib/bumblebee/vision/dino_v2.ex:344-364 | lib/bumblebee/vision/vit.ex:254-274 \u2014 before extracting anything, compare \u0060lib/bumblebee/vision/blip_vision.ex\u0060 and \u0060lib/bumblebee/vision/deit.ex\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 60 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/vision/blip_vision.ex:183\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/vision/blip_vision.ex"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"a79a0f50fb71d008639da9d48b3122df90e1d08552d444c165d901097bec5a7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 3): lib/bumblebee/text/bert.ex:407-427 | lib/bumblebee/text/blip_text.ex:211-231 | lib/bumblebee/text/roberta.ex:359-379 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/bert.ex\u0060 and \u0060lib/bumblebee/text/blip_text.ex\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 266 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/text/bert.ex:407\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/bert.ex"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e611ce92ef18f611ebfb8fb4e5698b781c4fdf49c1f6a539669e5293e3cfff5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): lib/bumblebee/text/bart.ex:308-328 | lib/bumblebee/text/mbart.ex:305-325 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/bart.ex\u0060 and \u0060lib/bumblebee/text/mbart.ex\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 454 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/bart.ex"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"8104ee85ee98bcba86774fa8e882c745e22d0126cc3afe296b8f949963cc70bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 3): lib/bumblebee/text/modernbert.ex:570-588 | lib/bumblebee/text/modernbert_decoder.ex:473-491 | lib/bumblebee/text/phi3.ex:477-496 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/modernbert.ex\u0060 and \u0060lib/bumblebee/text/modernbert_decoder.ex\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/modernbert.ex"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"411ef83871709e7116f12b29bca55e24b52d1eaf663d56f24d62f96040e91108"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): lib/bumblebee/audio/whisper.ex:481-500 | lib/bumblebee/text/t5.ex:489-508 \u2014 before extracting anything, compare \u0060lib/bumblebee/audio/whisper.ex\u0060 and \u0060lib/bumblebee/text/t5.ex\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 79 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/audio/whisper.ex:481\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/audio/whisper.ex"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc6cae88607d434bc5a80bf84802503a3ae0df8ba37a904c820a35cbed5bea79"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): lib/bumblebee/text/gemma.ex:324-343 | lib/bumblebee/text/gemma3_text.ex:369-388 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/gemma.ex\u0060 and \u0060lib/bumblebee/text/gemma3_text.ex\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 178 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/text/gemma.ex:324\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/bumblebee/text/gemma3_text.ex:367\u0060 calls \u0060generate_layer_types\u0060 and \u0060lib/bumblebee/text/gemma.ex:322\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/gemma.ex"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b742fde6c35dcf65be28968809f7cae2d375c11dc900eafcdfd0598863fcb3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201320 lines \u00D7 2): lib/bumblebee/vision/image_classification.ex:25-41 | lib/bumblebee/vision/image_embedding.ex:20-39 \u2014 before extracting anything, compare \u0060lib/bumblebee/vision/image_classification.ex\u0060 and \u0060lib/bumblebee/vision/image_embedding.ex\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/vision/image_classification.ex"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ee5fe739802eef1adfa949cd9f490af9846294768234ec28aeb5ed5c1809d06"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 5): lib/bumblebee/text/blenderbot.ex:504-521 | lib/bumblebee/text/gpt2.ex:438-456 | lib/bumblebee/text/gpt_big_code.ex:444-462 | lib/bumblebee/text/m2m100.ex:534-551 | lib/bumblebee/text/mbart.ex:675-692 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/blenderbot.ex\u0060 and \u0060lib/bumblebee/text/gpt2.ex\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 83 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/text/gpt2.ex:438\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/bumblebee/text/gpt2.ex:458\u0060 calls \u0060none\u0060 and \u0060lib/bumblebee/text/blenderbot.ex:523\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/blenderbot.ex"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"90ad975ceaecc9876b83e3ad5ed9ccc80cb31bc591131a7dfd4e73b1fba23986"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201319 lines \u00D7 4): lib/bumblebee/text/bart.ex:357-373 | lib/bumblebee/text/gpt2.ex:318-336 | lib/bumblebee/text/gpt_big_code.ex:323-341 | lib/bumblebee/text/mbart.ex:354-370 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/bart.ex\u0060 and \u0060lib/bumblebee/text/mbart.ex\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 454 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/bumblebee/text/gpt2.ex:317\u0060 calls \u0060core\u0060 and \u0060lib/bumblebee/text/bart.ex:355\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/bart.ex"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"34e4da21506e74c4387ff1d39760daee6778cb1ec328c7a633f97191c846a1f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 4): lib/bumblebee/text/bart.ex:436-454 | lib/bumblebee/text/blenderbot.ex:288-306 | lib/bumblebee/text/m2m100.ex:287-305 | lib/bumblebee/text/mbart.ex:433-451 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/bart.ex\u0060 and \u0060lib/bumblebee/text/blenderbot.ex\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 313 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/bart.ex"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"029d9a5bb82e3115e31d77b6c82077fe1937da33db80df8e24f0dbe369ceb37b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 4): lib/bumblebee/text/bart.ex:642-659 | lib/bumblebee/text/bert.ex:556-574 | lib/bumblebee/text/blip_text.ex:350-368 | lib/bumblebee/text/roberta.ex:509-527 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/bart.ex\u0060 and \u0060lib/bumblebee/text/bert.ex\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 100 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/text/bert.ex:556\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/bart.ex"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f57dee7b4cac44fd329e552c24282a6fccb92e73c3f8eb9023daad2310bd369"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201319 lines \u00D7 3): lib/bumblebee/audio/whisper.ex:608-621 | lib/bumblebee/audio/whisper.ex:623-641 | lib/bumblebee/text/deberta_v2.ex:665-683 \u2014 before extracting anything, compare \u0060lib/bumblebee/audio/whisper.ex\u0060 and \u0060lib/bumblebee/text/deberta_v2.ex\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 101 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/audio/whisper.ex:608\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/audio/whisper.ex"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3d2baba4d81f53eb7077137cb13a5b56cd65bb813f1acd53e847a5c5b06d75a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201319 lines \u00D7 3): lib/bumblebee/multimodal/layout_lm.ex:292-310 | lib/bumblebee/text/distilbert.ex:317-333 | lib/bumblebee/text/mpnet.ex:320-336 \u2014 before extracting anything, compare \u0060lib/bumblebee/multimodal/layout_lm.ex\u0060 and \u0060lib/bumblebee/text/distilbert.ex\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 281 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/multimodal/layout_lm.ex:292\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/multimodal/layout_lm.ex"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"97ff05bf78e9fcfbea9b393d744b04eb728b2b4c6df67254db8d59a67792cadc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): lib/bumblebee/multimodal/blip.ex:230-248 | lib/bumblebee/multimodal/clip.ex:204-222 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/multimodal/blip.ex"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"e48f98b78b3f311356539688e1bb07455465f599d48bb6b47b7a3b54dbb70bcd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): lib/bumblebee/text/gpt2.ex:222-240 | lib/bumblebee/text/gpt_big_code.ex:226-244 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/gpt2.ex\u0060 and \u0060lib/bumblebee/text/gpt_big_code.ex\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 352 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/gpt2.ex"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"458fa733d5b453f1553bfaf070a9f4e6d4a635619b9136a7d31eac274535c2ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201319 lines \u00D7 2): lib/bumblebee/vision/image_classification.ex:54-70 | lib/bumblebee/vision/image_embedding.ex:77-95 \u2014 before extracting anything, compare \u0060lib/bumblebee/vision/image_classification.ex\u0060 and \u0060lib/bumblebee/vision/image_embedding.ex\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/vision/image_classification.ex:54\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/vision/image_classification.ex"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"6354979dca973a113337effa9ddaf09c908bc68a5f32e9cc8a1ee8a5918e09c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 7): lib/bumblebee/text/cross_encoding.ex:54-70 | lib/bumblebee/text/fill_mask.ex:74-90 | lib/bumblebee/text/question_answering.ex:69-86 | lib/bumblebee/text/text_classification.ex:61-77 | lib/bumblebee/text/text_embedding.ex:133-149 | lib/bumblebee/text/text_reranking_qwen3.ex:103-119 | lib/bumblebee/text/token_classification.ex:64-80 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/cross_encoding.ex\u0060 and \u0060lib/bumblebee/text/fill_mask.ex\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 70 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/text/cross_encoding.ex:54\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/bumblebee/text/cross_encoding.ex:53\u0060 calls \u0060template\u0060 and \u0060lib/bumblebee/text/fill_mask.ex:73\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/cross_encoding.ex"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"933da4fcf2cd51e62137339ff866dc1ed4e8c2d8ac3db0c2dc4053f14f19f79f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 4): lib/bumblebee/multimodal/layout_lm.ex:411-428 | lib/bumblebee/text/distilbert.ex:370-387 | lib/bumblebee/text/mpnet.ex:377-394 | lib/bumblebee/text/nomic_bert.ex:215-232 \u2014 before extracting anything, compare \u0060lib/bumblebee/multimodal/layout_lm.ex\u0060 and \u0060lib/bumblebee/text/distilbert.ex\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 281 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/multimodal/layout_lm.ex:411\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/multimodal/layout_lm.ex"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"38fa8c13b4693487601409b9a6d2d0f5c6062e83273d1db752f02a589a1a295e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 4): lib/bumblebee/text/bart.ex:707-724 | lib/bumblebee/text/blenderbot.ex:573-590 | lib/bumblebee/text/m2m100.ex:603-620 | lib/bumblebee/text/mbart.ex:744-761 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/bart.ex\u0060 and \u0060lib/bumblebee/text/blenderbot.ex\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 313 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/text/bart.ex:707\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/bumblebee/text/bart.ex:725\u0060 calls \u0060number\u0060 and \u0060lib/bumblebee/text/blenderbot.ex:591\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/bart.ex"},"region":{"startLine":707}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bf79f6251a01dc09a24db26b4ca1db3e90b07690b1d3325584cea80937f4291"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): lib/bumblebee/text/bart.ex:248-265 | lib/bumblebee/text/blenderbot.ex:218-235 | lib/bumblebee/text/mbart.ex:245-262 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/bart.ex\u0060 and \u0060lib/bumblebee/text/blenderbot.ex\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 313 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/bart.ex"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"2114dad839502a2df390891963045e419cf6448c4143b9fa2f8e9e4116f290d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): lib/bumblebee/text/phi.ex:242-259 | lib/bumblebee/text/phi3.ex:247-264 | lib/bumblebee/text/smollm3.ex:270-287 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/phi.ex\u0060 and \u0060lib/bumblebee/text/phi3.ex\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 130 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/text/phi.ex:242\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/phi.ex"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"270aae5be364108ef425739e97d4dccef63f64be56b44d1b22d8516aba17eac3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): lib/bumblebee.ex:848-865 | lib/bumblebee.ex:1243-1260 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee.ex"},"region":{"startLine":848}}}],"partialFingerprints":{"codehealthFindingId/v1":"90c65f5e30297b8e54c181f9ce47bbd52f8fef1275ef3d9075bcae8b69c24ca4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): lib/bumblebee/diffusion/controlnet.ex:464-482 | lib/bumblebee/diffusion/unet_2d_conditional.ex:480-497 \u2014 before extracting anything, compare \u0060lib/bumblebee/diffusion/controlnet.ex\u0060 and \u0060lib/bumblebee/diffusion/unet_2d_conditional.ex\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 233 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/diffusion/controlnet.ex:464\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/diffusion/controlnet.ex"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7c87cd3a6e83970cc9daaf45b4e3bfa290d9c3e897278f8a53f6f9bb35a9f29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): lib/bumblebee/text/gemma.ex:330-347 | lib/bumblebee/text/qwen3.ex:323-339 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/gemma.ex\u0060 and \u0060lib/bumblebee/text/qwen3.ex\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 167 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/text/gemma.ex:330\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/gemma.ex"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"c264f0d37d0697b8c63a3c209d83f3d6024c1845ccbe6ae87933ff5f6b996207"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): lib/bumblebee/text/gpt2.ex:201-218 | lib/bumblebee/text/gpt_big_code.ex:205-222 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/gpt2.ex\u0060 and \u0060lib/bumblebee/text/gpt_big_code.ex\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 352 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/gpt2.ex"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b95281631dd7cdf9961cf90399b656f2f882fc6987ec546bc45dcf98a1547f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): lib/bumblebee/text/text_embedding.ex:27-43 | lib/bumblebee/text/text_reranking_qwen3.ex:49-66 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/text_embedding.ex\u0060 and \u0060lib/bumblebee/text/text_reranking_qwen3.ex\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 92 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/text_embedding.ex"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"daacb5dad3363ed46c9ca30027a9af3a6fe14014a5f4f60fa7fbeb0fc42f6999"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 6): lib/bumblebee/audio/whisper.ex:534-549 | lib/bumblebee/text/blenderbot.ex:529-544 | lib/bumblebee/text/gpt2.ex:468-484 | lib/bumblebee/text/gpt_big_code.ex:474-490 | lib/bumblebee/text/m2m100.ex:559-574 | lib/bumblebee/text/mbart.ex:700-715 \u2014 before extracting anything, compare \u0060lib/bumblebee/audio/whisper.ex\u0060 and \u0060lib/bumblebee/text/blenderbot.ex\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 246 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/audio/whisper.ex:534\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/audio/whisper.ex"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"73f2f544969c2a4f466492dff1ddfeee3e324ca37fd96452f63c2ba1a518f367"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 5): lib/bumblebee/audio/whisper.ex:624-642 | lib/bumblebee/text/deberta_v2.ex:668-684 | lib/bumblebee/vision/clip_vision.ex:287-303 | lib/bumblebee/vision/deit.ex:415-431 | lib/bumblebee/vision/vit.ex:359-375 \u2014 before extracting anything, compare \u0060lib/bumblebee/audio/whisper.ex\u0060 and \u0060lib/bumblebee/text/deberta_v2.ex\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 101 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/audio/whisper.ex:624\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/audio/whisper.ex"},"region":{"startLine":624}}}],"partialFingerprints":{"codehealthFindingId/v1":"93b3c51f47ca8470b289f6c782ff0a5a5d06190e71b88274ac9f5d27a230a1bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 5): lib/bumblebee/multimodal/layout_lm.ex:252-268 | lib/bumblebee/text/bert.ex:272-288 | lib/bumblebee/text/mpnet.ex:248-264 | lib/bumblebee/text/roberta.ex:260-276 | lib/bumblebee/text/smollm3.ex:294-310 \u2014 before extracting anything, compare \u0060lib/bumblebee/multimodal/layout_lm.ex\u0060 and \u0060lib/bumblebee/text/bert.ex\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 246 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/multimodal/layout_lm.ex"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d4869c39df88065b18512c094b529af90a6c3b2587598c7b27f3d50a92338db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 5): lib/bumblebee/vision/blip_vision.ex:185-201 | lib/bumblebee/vision/clip_vision.ex:211-227 | lib/bumblebee/vision/deit.ex:306-322 | lib/bumblebee/vision/dino_v2.ex:346-362 | lib/bumblebee/vision/vit.ex:256-272 \u2014 before extracting anything, compare \u0060lib/bumblebee/vision/blip_vision.ex\u0060 and \u0060lib/bumblebee/vision/clip_vision.ex\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 60 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/vision/blip_vision.ex:185\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/bumblebee/vision/clip_vision.ex:209\u0060 calls \u0060normal\u0060 and \u0060lib/bumblebee/vision/blip_vision.ex:183\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/vision/blip_vision.ex"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2d9b1a6e9e35ad9ffece24a7737bbe2a04da82940fe41fb1d4fb81ba6750e50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 4): lib/bumblebee/text/bart.ex:446-462 | lib/bumblebee/text/blenderbot.ex:298-314 | lib/bumblebee/text/m2m100.ex:297-313 | lib/bumblebee/text/t5.ex:326-341 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/bart.ex\u0060 and \u0060lib/bumblebee/text/blenderbot.ex\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 313 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/text/bart.ex:446\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/bart.ex"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b070fa733a8e1b62d1abbad1713cbdf7e0a3e1fcbdebf16a58d41893dadf3c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): lib/bumblebee/vision/blip_featurizer.ex:58-74 | lib/bumblebee/vision/deit_featurizer.ex:72-88 | lib/bumblebee/vision/vit_featurizer.ex:58-74 \u2014 before extracting anything, compare \u0060lib/bumblebee/vision/blip_featurizer.ex\u0060 and \u0060lib/bumblebee/vision/deit_featurizer.ex\u0060 as WHOLE FILES: 88% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/vision/blip_featurizer.ex"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e3e4e9bddf2ef111149198862baeca1fc70ba4bb5d4b43be28246c2c84b3c01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): lib/bumblebee/diffusion/stable_diffusion.ex:313-329 | lib/bumblebee/diffusion/stable_diffusion_controlnet.ex:369-385 \u2014 before extracting anything, compare \u0060lib/bumblebee/diffusion/stable_diffusion.ex\u0060 and \u0060lib/bumblebee/diffusion/stable_diffusion_controlnet.ex\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 136 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/diffusion/stable_diffusion.ex"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd004b491c9541e96f4c4aded616713870c09f568f9e02701ec4af624b30b866"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): lib/bumblebee/text/clip_text.ex:240-256 | lib/bumblebee/vision/clip_vision.ex:233-249 \u2014 \u0060lib/bumblebee/text/clip_text.ex\u0060 and \u0060lib/bumblebee/vision/clip_vision.ex\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 60 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/text/clip_text.ex:240\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/clip_text.ex"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcc16a4e6dbd8112ebe452d8a263d4cff5ee78f649bbf007c549f626ed0f5244"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): lib/bumblebee/text/cross_encoding.ex:20-36 | lib/bumblebee/text/text_classification.ex:24-40 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/cross_encoding.ex\u0060 and \u0060lib/bumblebee/text/text_classification.ex\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 87 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/cross_encoding.ex"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9e7353cda3028a2646453beb5ed8e290f539f6932e9cc502bf5a8e88b404319"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): lib/bumblebee/text/gemma.ex:295-310 | lib/bumblebee/text/gemma3_text.ex:337-353 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/gemma.ex\u0060 and \u0060lib/bumblebee/text/gemma3_text.ex\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 178 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/gemma.ex"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9eff73f56df7bb56d7eb1439fdab64c30180a30d1c1b9323b483b6989139a28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 2): lib/bumblebee/text/t5.ex:423-437 | lib/bumblebee/text/t5.ex:542-558 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/text/t5.ex:423\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/t5.ex"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"37bbc7bdbf581370a24b2f68767981bdfaedd0d35b6cb89fca81b79e048c3ec1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): lib/bumblebee/text/text_classification.ex:10-26 | lib/bumblebee/vision/image_classification.ex:14-30 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/text_classification.ex\u0060 and \u0060lib/bumblebee/vision/image_classification.ex\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/text_classification.ex"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c1bb9d5979450a382e2c8388dad0c4497b82fb4d2817c753af27639f87003c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 6): lib/bumblebee/audio/whisper.ex:316-331 | lib/bumblebee/text/bart.ex:475-490 | lib/bumblebee/text/blenderbot.ex:327-342 | lib/bumblebee/text/m2m100.ex:326-341 | lib/bumblebee/text/mbart.ex:491-506 | lib/bumblebee/text/t5.ex:353-368 \u2014 before extracting anything, compare \u0060lib/bumblebee/audio/whisper.ex\u0060 and \u0060lib/bumblebee/text/bart.ex\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 77 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/audio/whisper.ex:316\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/audio/whisper.ex"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"428b1bfc583628baa0364d3d95306280ecda739d49a85945199b52260cbf352d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 5): lib/bumblebee/multimodal/layout_lm.ex:230-245 | lib/bumblebee/text/bert.ex:250-265 | lib/bumblebee/text/distilbert.ex:214-229 | lib/bumblebee/text/mpnet.ex:226-241 | lib/bumblebee/text/roberta.ex:238-253 \u2014 before extracting anything, compare \u0060lib/bumblebee/multimodal/layout_lm.ex\u0060 and \u0060lib/bumblebee/text/bert.ex\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 246 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/multimodal/layout_lm.ex:230\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/multimodal/layout_lm.ex"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a494cd902cdd87b7cff7708ab6dd049ad98b4ad7d09c76fb96b34108a14b6c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201316 lines \u00D7 5): lib/bumblebee/text/bert.ex:699-714 | lib/bumblebee/text/gemma3_text.ex:572-585 | lib/bumblebee/text/llama.ex:425-435 | lib/bumblebee/text/qwen3.ex:436-446 | lib/bumblebee/text/smollm3.ex:518-527 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/bert.ex\u0060 and \u0060lib/bumblebee/text/gemma3_text.ex\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 79 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/text/bert.ex:699\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/bert.ex"},"region":{"startLine":699}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb4cba747aabce284153566e0b01cb8a28ca9370cd3998d182bf148602a5ddb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 5): lib/bumblebee/text/gemma.ex:333-348 | lib/bumblebee/text/llama.ex:316-331 | lib/bumblebee/text/mistral.ex:316-331 | lib/bumblebee/text/phi3.ex:347-362 | lib/bumblebee/text/qwen3.ex:325-340 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/gemma.ex\u0060 and \u0060lib/bumblebee/text/llama.ex\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 162 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/text/gemma.ex:333\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/gemma.ex"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"78e8d9c18e44f4ce75395a2ebf7e67e2993c2b6ba128131bc5ce83e1ed048c13"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 4): lib/bumblebee/text/fill_mask.ex:59-74 | lib/bumblebee/text/text_classification.ex:45-60 | lib/bumblebee/text/text_reranking_qwen3.ex:88-103 | lib/bumblebee/text/token_classification.ex:49-64 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/fill_mask.ex\u0060 and \u0060lib/bumblebee/text/text_classification.ex\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 104 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/text/fill_mask.ex:59\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/bumblebee/text/text_classification.ex:61\u0060 calls \u0060template\u0060 and \u0060lib/bumblebee/text/fill_mask.ex:75\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/fill_mask.ex"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a46f7243f0f9aad57ba41551ef19cc2550bc76b9d816019bf4134e731b5b2e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): lib/bumblebee/multimodal/layout_lm.ex:208-223 | lib/bumblebee/text/bert.ex:228-243 | lib/bumblebee/text/distilbert.ex:192-207 \u2014 before extracting anything, compare \u0060lib/bumblebee/multimodal/layout_lm.ex\u0060 and \u0060lib/bumblebee/text/bert.ex\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 246 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/multimodal/layout_lm.ex:208\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/multimodal/layout_lm.ex"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"38485e1d01a379daa6f77ae7a8b8a3b1c7cab0a7b36eb4384bd635f9aed2852c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 3): lib/bumblebee/multimodal/layout_lm.ex:422-437 | lib/bumblebee/text/albert.ex:406-421 | lib/bumblebee/text/distilbert.ex:381-395 \u2014 before extracting anything, compare \u0060lib/bumblebee/multimodal/layout_lm.ex\u0060 and \u0060lib/bumblebee/text/albert.ex\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 231 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/multimodal/layout_lm.ex:422\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/multimodal/layout_lm.ex"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8f503fd48443af04c9dd66a162e096f083e5be53283929dd9e8d462df1d43e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): lib/bumblebee/text/bart.ex:494-509 | lib/bumblebee/text/blenderbot.ex:346-361 | lib/bumblebee/text/mbart.ex:572-587 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/bart.ex\u0060 and \u0060lib/bumblebee/text/blenderbot.ex\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 313 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/bumblebee/text/bart.ex:510\u0060 calls \u0060layer_norm\u0060, \u0060join\u0060 and \u0060lib/bumblebee/text/blenderbot.ex:362\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/bart.ex"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"787358c98833a1e8cf20f9088065087b2a2a84d264b0aa901e01b314f741acc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): lib/bumblebee/text/bart.ex:560-575 | lib/bumblebee/text/distilbert.ex:386-401 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/bart.ex\u0060 and \u0060lib/bumblebee/text/distilbert.ex\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 101 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/text/bart.ex:560\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/bart.ex"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bf07df59af1da8f545991c54810abe1722ffba330ae8cc5e358db266b796f8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201316 lines \u00D7 2): lib/bumblebee/text/cross_encoding.ex:10-25 | lib/bumblebee/text/question_answering.ex:11-21 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/cross_encoding.ex\u0060 and \u0060lib/bumblebee/text/question_answering.ex\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 85 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/cross_encoding.ex"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"d086aa444b6e1f48da2019815821822d9cb9281de810926e025e32c1d3eb53ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): lib/bumblebee/text/gpt2.ex:387-402 | lib/bumblebee/text/gpt_big_code.ex:392-407 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/gpt2.ex\u0060 and \u0060lib/bumblebee/text/gpt_big_code.ex\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 352 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/text/gpt2.ex:387\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/gpt2.ex"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"11c8945461a1c5131f26168c09fea73a299d21075aafaa6b6ad397feb88a9453"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): lib/bumblebee/text/modernbert.ex:522-537 | lib/bumblebee/text/modernbert_decoder.ex:446-461 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/modernbert.ex\u0060 and \u0060lib/bumblebee/text/modernbert_decoder.ex\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/text/modernbert.ex:522\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/bumblebee/text/modernbert.ex:519\u0060 calls \u0060optional\u0060, \u0060number\u0060 and \u0060lib/bumblebee/text/modernbert_decoder.ex:443\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/modernbert.ex"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"df30b847c4c0710ad3b3ef9f711611b88683bd40cfe1e934d196d05be53619ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 2): lib/bumblebee/vision/blip_vision.ex:144-159 | lib/bumblebee/vision/clip_vision.ex:159-172 \u2014 before extracting anything, compare \u0060lib/bumblebee/vision/blip_vision.ex\u0060 and \u0060lib/bumblebee/vision/clip_vision.ex\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 60 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/vision/blip_vision.ex"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a02d8f6832ae53b0144b7e617608f1f22a93c07b26407f08f2bc67785352fc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): lib/bumblebee/vision/deit.ex:148-163 | lib/bumblebee/vision/vit.ex:136-151 \u2014 before extracting anything, compare \u0060lib/bumblebee/vision/deit.ex\u0060 and \u0060lib/bumblebee/vision/vit.ex\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 284 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/vision/deit.ex"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8f920425bea7955b90dd635bcd421298fe23ef676308f4bd165ed29aceee423"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): lib/bumblebee/vision/deit.ex:242-257 | lib/bumblebee/vision/vit.ex:196-211 \u2014 before extracting anything, compare \u0060lib/bumblebee/vision/deit.ex\u0060 and \u0060lib/bumblebee/vision/vit.ex\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 284 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/vision/deit.ex"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2f96d53a4393eb2621dde2eaaf4838c7d4b7d88c746e6bc7d58374f3c371229"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): lib/bumblebee/vision/dino_v2.ex:275-290 | lib/bumblebee/vision/vit.ex:218-233 \u2014 before extracting anything, compare \u0060lib/bumblebee/vision/dino_v2.ex\u0060 and \u0060lib/bumblebee/vision/vit.ex\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 114 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/bumblebee/vision/dino_v2.ex:291\u0060 calls \u0060interpolate_position_embeddings\u0060 and \u0060lib/bumblebee/vision/vit.ex:235\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/vision/dino_v2.ex"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eb0dd904029c7287ae7173ffc27ccba75d6e39cad03a94052ba7ae04084a31e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 9): lib/bumblebee/text/cross_encoding.ex:56-70 | lib/bumblebee/text/fill_mask.ex:76-90 | lib/bumblebee/text/question_answering.ex:71-85 | lib/bumblebee/text/text_classification.ex:63-77 | lib/bumblebee/text/text_embedding.ex:135-149 | lib/bumblebee/text/text_generation.ex:66-80 | lib/bumblebee/text/text_reranking_qwen3.ex:105-119 | lib/bumblebee/text/token_classification.ex:66-80 | lib/bumblebee/text/translation.ex:64-78 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/cross_encoding.ex\u0060 and \u0060lib/bumblebee/text/fill_mask.ex\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 70 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/text/cross_encoding.ex:56\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/bumblebee/text/cross_encoding.ex:53\u0060 calls \u0060template\u0060 and \u0060lib/bumblebee/text/fill_mask.ex:73\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/cross_encoding.ex"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"56c653bf4ca78071d2aded8053447834bd3e9c8a1d28e00e9acc8682194952cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 6): lib/bumblebee/multimodal/layout_lm.ex:233-247 | lib/bumblebee/text/albert.ex:239-253 | lib/bumblebee/text/bert.ex:253-267 | lib/bumblebee/text/distilbert.ex:217-231 | lib/bumblebee/text/mpnet.ex:229-243 | lib/bumblebee/text/roberta.ex:241-255 \u2014 before extracting anything, compare \u0060lib/bumblebee/multimodal/layout_lm.ex\u0060 and \u0060lib/bumblebee/text/albert.ex\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 231 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/multimodal/layout_lm.ex:233\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/multimodal/layout_lm.ex"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a7fd1d78738b7f50f15a70a10fd5e1e308b30a14c585ba95c427010b09e8504"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 6): lib/bumblebee/text/blenderbot.ex:504-516 | lib/bumblebee/text/gpt2.ex:437-451 | lib/bumblebee/text/gpt_big_code.ex:443-457 | lib/bumblebee/text/m2m100.ex:534-546 | lib/bumblebee/text/mbart.ex:675-687 | lib/bumblebee/text/t5.ex:533-547 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/blenderbot.ex\u0060 and \u0060lib/bumblebee/text/gpt2.ex\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 83 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/text/gpt2.ex:437\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/blenderbot.ex"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4aa4bb36eabde445563d2ce9d444041cc462d21f7a16d155baf0d64a81ce3d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 5): lib/bumblebee/text/bert.ex:516-530 | lib/bumblebee/text/blip_text.ex:310-324 | lib/bumblebee/text/gpt2.ex:389-403 | lib/bumblebee/text/gpt_big_code.ex:394-408 | lib/bumblebee/text/roberta.ex:469-483 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/bert.ex\u0060 and \u0060lib/bumblebee/text/blip_text.ex\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 266 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/text/bert.ex:516\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/bert.ex"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ce116dafee3e482bbcc667af634fe0d2774c343cadb2d25996d6999925d3bb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): lib/bumblebee/audio/whisper.ex:479-493 | lib/bumblebee/text/blenderbot.ex:459-473 | lib/bumblebee/text/m2m100.ex:489-503 | lib/bumblebee/text/mbart.ex:630-644 \u2014 before extracting anything, compare \u0060lib/bumblebee/audio/whisper.ex\u0060 and \u0060lib/bumblebee/text/blenderbot.ex\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 246 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/audio/whisper.ex:479\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/audio/whisper.ex"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbbe66d87c7d5f040277ac3e7e58067f2d4a04bf2fcb72bd04df082f7444eeff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): lib/bumblebee/multimodal/layout_lm.ex:211-225 | lib/bumblebee/text/albert.ex:218-232 | lib/bumblebee/text/bert.ex:231-245 | lib/bumblebee/text/distilbert.ex:195-209 \u2014 before extracting anything, compare \u0060lib/bumblebee/multimodal/layout_lm.ex\u0060 and \u0060lib/bumblebee/text/albert.ex\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 231 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/multimodal/layout_lm.ex:211\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/multimodal/layout_lm.ex"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbb4a640436f82e58f3d0b06510a140493d1ee7dd9653f2efbe37daf8762125f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201315 lines \u00D7 3): lib/bumblebee/text/cross_encoding.ex:13-27 | lib/bumblebee/text/question_answering.ex:13-23 | lib/bumblebee/text/text_reranking_qwen3.ex:40-54 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/cross_encoding.ex\u0060 and \u0060lib/bumblebee/text/question_answering.ex\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 85 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/text/cross_encoding.ex:13\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/cross_encoding.ex"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c5f8a2b5e1fe258f2b05ee837a904e35377dd889010391fa63a817cd565193d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201315 lines \u00D7 3): lib/bumblebee/vision/deit.ex:237-248 | lib/bumblebee/vision/swin.ex:164-178 | lib/bumblebee/vision/vit.ex:191-202 \u2014 before extracting anything, compare \u0060lib/bumblebee/vision/deit.ex\u0060 and \u0060lib/bumblebee/vision/vit.ex\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 284 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/vision/deit.ex"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"f15c7be804baecd62a78a1d524f60ab0bb82f085cbc1ac97b79dec3869cfd09f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): lib/bumblebee/text/modernbert.ex:409-423 | lib/bumblebee/text/modernbert_decoder.ex:357-371 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/modernbert.ex\u0060 and \u0060lib/bumblebee/text/modernbert_decoder.ex\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/modernbert.ex"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5d9be7b60de3e3b5fd86e061de068b562d021384ebf377a076b10497698e46b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): lib/bumblebee/text/modernbert.ex:439-453 | lib/bumblebee/text/modernbert_decoder.ex:375-389 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/modernbert.ex\u0060 and \u0060lib/bumblebee/text/modernbert_decoder.ex\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/modernbert.ex"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"fed8929b9512a62c89d36ffbd422284dbce4ed3bafebaccdbd4b2adedb07880a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): lib/bumblebee/text/text_classification.ex:91-105 | lib/bumblebee/vision/image_classification.ex:72-86 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/text_classification.ex\u0060 and \u0060lib/bumblebee/vision/image_classification.ex\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/text/text_classification.ex:91\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/text_classification.ex"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"a420371d2f577db22d13fbe351cd4843aaded4831c3021c39d1e2ba047ce9a80"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 13): lib/bumblebee/multimodal/layout_lm.ex:213-226 | lib/bumblebee/multimodal/layout_lm.ex:235-248 | lib/bumblebee/text/albert.ex:220-233 | lib/bumblebee/text/albert.ex:241-254 | lib/bumblebee/text/bert.ex:233-246 | lib/bumblebee/text/bert.ex:255-268 | lib/bumblebee/text/distilbert.ex:197-210 | lib/bumblebee/text/distilbert.ex:219-232 | lib/bumblebee/text/modernbert.ex:215-228 | lib/bumblebee/text/modernbert.ex:247-260 | lib/bumblebee/text/mpnet.ex:209-222 | lib/bumblebee/text/mpnet.ex:231-244 | lib/bumblebee/text/roberta.ex:243-256 \u2014 before extracting anything, compare \u0060lib/bumblebee/multimodal/layout_lm.ex\u0060 and \u0060lib/bumblebee/text/albert.ex\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 231 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/bumblebee/text/mpnet.ex:208\u0060 calls \u0060tanh\u0060 and \u0060lib/bumblebee/text/modernbert.ex:214\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/multimodal/layout_lm.ex"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"cceb5af4ac79ad8147b5e759e46746044134de97fcb735c3d338013b1d329e6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 9): lib/bumblebee/text/cross_encoding.ex:17-30 | lib/bumblebee/text/fill_mask.ex:14-25 | lib/bumblebee/text/question_answering.ex:13-26 | lib/bumblebee/text/text_classification.ex:21-34 | lib/bumblebee/text/text_embedding.ex:22-35 | lib/bumblebee/text/text_generation.ex:24-37 | lib/bumblebee/text/text_reranking_qwen3.ex:44-57 | lib/bumblebee/text/token_classification.ex:24-37 | lib/bumblebee/text/translation.ex:21-34 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/cross_encoding.ex\u0060 and \u0060lib/bumblebee/text/fill_mask.ex\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 70 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/bumblebee/text/fill_mask.ex:27\u0060 calls \u0060special_token_id\u0060, \u0060id_to_token\u0060 and \u0060lib/bumblebee/text/text_embedding.ex:35\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/cross_encoding.ex"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0bd712052d4eca0b8c08925b3ee60e3d9ca0bac631c3c73f2b41b6a82baabda"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201314 lines \u00D7 4): lib/bumblebee/multimodal/layout_lm.ex:439-452 | lib/bumblebee/text/albert.ex:423-436 | lib/bumblebee/text/distilbert.ex:398-408 | lib/bumblebee/text/mpnet.ex:406-419 \u2014 before extracting anything, compare \u0060lib/bumblebee/multimodal/layout_lm.ex\u0060 and \u0060lib/bumblebee/text/albert.ex\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 231 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/multimodal/layout_lm.ex:439\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/multimodal/layout_lm.ex"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff46dd3983abd7efab93f3e044b562f6f2e38f0f843957978f3a1bcc8fda71a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/bumblebee/diffusion/vae_kl.ex:253-266 | lib/bumblebee/diffusion/vae_kl.ex:312-325 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/diffusion/vae_kl.ex"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b898a74d1c08713dc2722bf629896f066b1a1cf737bb941e6601337e950e819"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): lib/bumblebee/text/modernbert.ex:582-594 | lib/bumblebee/text/t5.ex:698-711 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/text/modernbert.ex:582\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/modernbert.ex"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"574ecd2898ffd0fb72f309eb4580245d4c9e1ec7fc95da71b047447ab9a098b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 18): lib/bumblebee/audio/whisper.ex:628-647 | lib/bumblebee/diffusion/controlnet.ex:463-480 | lib/bumblebee/diffusion/unet_2d_conditional.ex:479-495 | lib/bumblebee/multimodal/layout_lm.ex:557-569 | lib/bumblebee/text/albert.ex:528-544 | lib/bumblebee/text/clip_text.ex:289-305 | lib/bumblebee/text/deberta_v2.ex:669-686 | lib/bumblebee/text/distilbert.ex:497-509 | lib/bumblebee/text/gemma.ex:436-448 | lib/bumblebee/text/m2m100.ex:658-674 | lib/bumblebee/text/mistral.ex:423-435 | lib/bumblebee/text/modernbert.ex:585-597 | lib/bumblebee/text/mpnet.ex:503-515 | lib/bumblebee/text/phi.ex:440-452 | lib/bumblebee/text/roberta.ex:657-669 | lib/bumblebee/vision/clip_vision.ex:289-305 | lib/bumblebee/vision/deit.ex:420-435 | lib/bumblebee/vision/vit.ex:361-377 \u2014 before extracting anything, compare \u0060lib/bumblebee/audio/whisper.ex\u0060 and \u0060lib/bumblebee/diffusion/controlnet.ex\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 63 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/audio/whisper.ex:628\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/audio/whisper.ex"},"region":{"startLine":628}}}],"partialFingerprints":{"codehealthFindingId/v1":"c18146d8990dbed0cf23a9f77d1d20c88cdcc4bd1eb62dc6fe5668d478f71ad5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 7): lib/bumblebee/multimodal/layout_lm.ex:253-265 | lib/bumblebee/text/bart.ex:309-321 | lib/bumblebee/text/bert.ex:273-285 | lib/bumblebee/text/mbart.ex:306-318 | lib/bumblebee/text/mpnet.ex:249-261 | lib/bumblebee/text/roberta.ex:261-273 | lib/bumblebee/text/smollm3.ex:295-307 \u2014 before extracting anything, compare \u0060lib/bumblebee/multimodal/layout_lm.ex\u0060 and \u0060lib/bumblebee/text/bart.ex\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 87 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/multimodal/layout_lm.ex:253\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/multimodal/layout_lm.ex"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4efb4053f3e6b5cc53d026abc2daf6cc9b263d69198905c5956778af5638ad7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 6): lib/bumblebee/text/gemma.ex:377-389 | lib/bumblebee/text/llama.ex:363-375 | lib/bumblebee/text/mistral.ex:365-377 | lib/bumblebee/text/phi3.ex:397-409 | lib/bumblebee/text/qwen3.ex:374-386 | lib/bumblebee/text/smollm3.ex:444-456 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/gemma.ex\u0060 and \u0060lib/bumblebee/text/llama.ex\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 162 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/text/gemma.ex:377\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/gemma.ex"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"134c633000d08361d2264312947108f64e677ecc6ff5503e27d58c2513e849a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 5): lib/bumblebee/multimodal/layout_lm.ex:478-490 | lib/bumblebee/text/bert.ex:629-641 | lib/bumblebee/text/blip_text.ex:423-435 | lib/bumblebee/text/mpnet.ex:442-453 | lib/bumblebee/text/roberta.ex:582-594 \u2014 before extracting anything, compare \u0060lib/bumblebee/multimodal/layout_lm.ex\u0060 and \u0060lib/bumblebee/text/bert.ex\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 246 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/multimodal/layout_lm.ex"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e53267ee66e53088d3b90b3f19f6d73f60d0be88c7d7b8c431b975ed2ca8ac7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201313 lines \u00D7 5): lib/bumblebee/text/bart.ex:446-455 | lib/bumblebee/text/blenderbot.ex:298-307 | lib/bumblebee/text/m2m100.ex:297-306 | lib/bumblebee/text/mbart.ex:443-452 | lib/bumblebee/text/t5.ex:325-337 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/bart.ex\u0060 and \u0060lib/bumblebee/text/blenderbot.ex\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 313 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/text/bart.ex:446\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/bart.ex"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"de30d2ebfe95ddf644a575adf912f38c868a71405d3e2a3dd0d415dbf3125ac3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): lib/bumblebee/audio/whisper.ex:497-509 | lib/bumblebee/text/blenderbot.ex:482-494 | lib/bumblebee/text/m2m100.ex:512-524 | lib/bumblebee/text/mbart.ex:653-665 \u2014 before extracting anything, compare \u0060lib/bumblebee/audio/whisper.ex\u0060 and \u0060lib/bumblebee/text/blenderbot.ex\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 246 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/audio/whisper.ex"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"f82f6f41cc4b395b1292e4e72733d5d12d7e0d5b18450e44d13020bb2021f9a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): lib/bumblebee/text/bart.ex:515-527 | lib/bumblebee/text/blenderbot.ex:366-378 | lib/bumblebee/text/m2m100.ex:434-446 | lib/bumblebee/text/mbart.ex:593-605 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/bart.ex\u0060 and \u0060lib/bumblebee/text/blenderbot.ex\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 313 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/bart.ex"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"47aa753226e3fea0a1786f38fde82af498a18848249173cebb80e4dd33f236a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): lib/bumblebee/text/bert.ex:475-487 | lib/bumblebee/text/distilbert.ex:342-354 | lib/bumblebee/text/mpnet.ex:345-357 | lib/bumblebee/text/roberta.ex:428-440 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/bert.ex\u0060 and \u0060lib/bumblebee/text/distilbert.ex\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 234 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/bert.ex"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d030db61d1dfecc52058f62f4717628995c2deb38503c197d6f031f8c07a1cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/bumblebee/audio/whisper.ex:610-622 | lib/bumblebee/text/blenderbot.ex:623-638 \u2014 before extracting anything, compare \u0060lib/bumblebee/audio/whisper.ex\u0060 and \u0060lib/bumblebee/text/blenderbot.ex\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 246 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/audio/whisper.ex:610\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/audio/whisper.ex"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"471ad6ea389d2be86d4098858242dc2e2c0b38af31e8f9cb839d0aacbd7b4583"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/bumblebee/diffusion/controlnet.ex:367-379 | lib/bumblebee/diffusion/unet_2d_conditional.ex:292-304 \u2014 before extracting anything, compare \u0060lib/bumblebee/diffusion/controlnet.ex\u0060 and \u0060lib/bumblebee/diffusion/unet_2d_conditional.ex\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 233 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/diffusion/controlnet.ex"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea8b6b67cf86ccb68921aa4ad7694c9d78f34dfc1ce0692fc37b217a7b34f7ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 2): lib/bumblebee/diffusion/stable_diffusion.ex:295-305 | lib/bumblebee/diffusion/stable_diffusion_controlnet.ex:337-349 \u2014 before extracting anything, compare \u0060lib/bumblebee/diffusion/stable_diffusion.ex\u0060 and \u0060lib/bumblebee/diffusion/stable_diffusion_controlnet.ex\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 136 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/diffusion/stable_diffusion.ex"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"aee63b0bc07cd6eddd07e176cbd60cf85db0e4b170bb9b4b9362d39d9389b28c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): lib/bumblebee/text/gemma.ex:350-361 | lib/bumblebee/text/llama.ex:335-347 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/gemma.ex\u0060 and \u0060lib/bumblebee/text/llama.ex\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 162 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/text/gemma.ex:350\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/gemma.ex"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecf47e71b68a96ca26c94fd682ceff2f61934aaacf6a15494c802105f9c20424"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/bumblebee/vision/blip_featurizer.ex:104-116 | lib/bumblebee/vision/vit_featurizer.ex:104-116 \u2014 before extracting anything, compare \u0060lib/bumblebee/vision/blip_featurizer.ex\u0060 and \u0060lib/bumblebee/vision/vit_featurizer.ex\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 44 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/vision/blip_featurizer.ex"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f6b5b6cdfdc4f13ee4732dd52d51fed793dbb4c931e7d3669235dd08adf01d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 19): lib/bumblebee/audio/whisper.ex:625-642 | lib/bumblebee/diffusion/controlnet.ex:445-465 | lib/bumblebee/diffusion/unet_2d_conditional.ex:459-479 | lib/bumblebee/multimodal/layout_lm.ex:530-545 | lib/bumblebee/text/albert.ex:516-534 | lib/bumblebee/text/bart.ex:737-749 | lib/bumblebee/text/bert.ex:682-700 | lib/bumblebee/text/blenderbot.ex:602-614 | lib/bumblebee/text/deberta_v2.ex:669-685 | lib/bumblebee/text/distilbert.ex:484-499 | lib/bumblebee/text/gemma3_text.ex:564-578 | lib/bumblebee/text/m2m100.ex:633-645 | lib/bumblebee/text/mbart.ex:774-786 | lib/bumblebee/text/mpnet.ex:493-504 | lib/bumblebee/text/roberta.ex:634-652 | lib/bumblebee/text/t5.ex:699-711 | lib/bumblebee/vision/clip_vision.ex:289-304 | lib/bumblebee/vision/deit.ex:417-431 | lib/bumblebee/vision/vit.ex:361-376 \u2014 before extracting anything, compare \u0060lib/bumblebee/audio/whisper.ex\u0060 and \u0060lib/bumblebee/diffusion/controlnet.ex\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 63 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/audio/whisper.ex"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"f71b40ff7a64f1e26766b842db01f5b6b234fcab5ab07e56930f5eaae7740564"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 19): lib/bumblebee/diffusion/controlnet.ex:444-463 | lib/bumblebee/diffusion/unet_2d_conditional.ex:458-477 | lib/bumblebee/multimodal/layout_lm.ex:528-543 | lib/bumblebee/text/albert.ex:514-532 | lib/bumblebee/text/bart.ex:735-748 | lib/bumblebee/text/bert.ex:680-698 | lib/bumblebee/text/blenderbot.ex:600-613 | lib/bumblebee/text/clip_text.ex:288-303 | lib/bumblebee/text/distilbert.ex:482-498 | lib/bumblebee/text/gemma.ex:434-445 | lib/bumblebee/text/gemma3_text.ex:561-576 | lib/bumblebee/text/llama.ex:421-433 | lib/bumblebee/text/m2m100.ex:631-644 | lib/bumblebee/text/mbart.ex:772-785 | lib/bumblebee/text/mistral.ex:421-432 | lib/bumblebee/text/mpnet.ex:491-503 | lib/bumblebee/text/phi.ex:439-450 | lib/bumblebee/text/qwen3.ex:430-441 | lib/bumblebee/text/roberta.ex:632-650 \u2014 before extracting anything, compare \u0060lib/bumblebee/diffusion/controlnet.ex\u0060 and \u0060lib/bumblebee/diffusion/unet_2d_conditional.ex\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 233 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/multimodal/layout_lm.ex:528\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/diffusion/controlnet.ex"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4e80db920d7e9ef5f6588dcaaf05cf4b6fc73b90990238922acc23151654278"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 5): lib/bumblebee/audio/whisper.ex:436-447 | lib/bumblebee/audio/whisper.ex:521-532 | lib/bumblebee/text/blenderbot.ex:412-423 | lib/bumblebee/text/m2m100.ex:370-381 | lib/bumblebee/text/mbart.ex:535-546 \u2014 before extracting anything, compare \u0060lib/bumblebee/audio/whisper.ex\u0060 and \u0060lib/bumblebee/text/blenderbot.ex\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 246 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/audio/whisper.ex:436\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/audio/whisper.ex"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"f20108c4416ea9e19df1f90f6502e29cc3d243c3b346ce08a911b665cc1f9280"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 5): lib/bumblebee/text/bart.ex:387-398 | lib/bumblebee/text/blenderbot.ex:239-250 | lib/bumblebee/text/m2m100.ex:238-249 | lib/bumblebee/text/mbart.ex:384-395 | lib/bumblebee/text/t5.ex:284-295 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/bart.ex\u0060 and \u0060lib/bumblebee/text/blenderbot.ex\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 313 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/text/bart.ex:387\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/bart.ex"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f90c85c7abe4d186f40554e8d4be7771e249047397e9fa4bc92c8dc972d54cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 5): lib/bumblebee/text/llama.ex:328-339 | lib/bumblebee/text/mistral.ex:328-339 | lib/bumblebee/text/phi3.ex:359-370 | lib/bumblebee/text/qwen3.ex:337-348 | lib/bumblebee/text/smollm3.ex:414-425 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/llama.ex\u0060 and \u0060lib/bumblebee/text/mistral.ex\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 230 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/text/llama.ex:328\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/llama.ex"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f9f444cf1f704b45b52aa51f503dcda4c07a366285cbf895313e075006fbe46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): lib/bumblebee/diffusion/controlnet.ex:443-462 | lib/bumblebee/diffusion/unet_2d_conditional.ex:457-476 | lib/bumblebee/text/smollm3.ex:514-525 \u2014 before extracting anything, compare \u0060lib/bumblebee/diffusion/controlnet.ex\u0060 and \u0060lib/bumblebee/diffusion/unet_2d_conditional.ex\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 233 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/diffusion/controlnet.ex:443\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/diffusion/controlnet.ex"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8282a4a66cd9825c24e97f74c2c252cb5fea4e316d02384880e07b13f660271"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 3): lib/bumblebee/text/bert.ex:367-377 | lib/bumblebee/text/blip_text.ex:171-181 | lib/bumblebee/text/roberta.ex:318-329 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/bert.ex\u0060 and \u0060lib/bumblebee/text/blip_text.ex\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 266 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/bert.ex"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a1439cf08dab0feaec55d313d01c26bff1e002231dca451714957c045a0d21e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): lib/bumblebee/text/clip_text.ex:237-248 | lib/bumblebee/vision/blip_vision.ex:204-215 | lib/bumblebee/vision/clip_vision.ex:230-241 \u2014 \u0060lib/bumblebee/text/clip_text.ex\u0060 and \u0060lib/bumblebee/vision/clip_vision.ex\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 60 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/text/clip_text.ex:237\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/clip_text.ex"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dfe22ae6d2888f166e147b1131b3022d23d2deb15d874a8ded85a45227699e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): lib/bumblebee/diffusion/stable_diffusion.ex:240-250 | lib/bumblebee/diffusion/stable_diffusion_controlnet.ex:269-280 \u2014 before extracting anything, compare \u0060lib/bumblebee/diffusion/stable_diffusion.ex\u0060 and \u0060lib/bumblebee/diffusion/stable_diffusion_controlnet.ex\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 136 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/diffusion/stable_diffusion.ex:240\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/bumblebee/diffusion/stable_diffusion_controlnet.ex:268\u0060 calls \u0060maybe_preallocate\u0060 and \u0060lib/bumblebee/diffusion/stable_diffusion.ex:239\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/diffusion/stable_diffusion.ex"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a6f3ad7349edd342f042332bafd1c51bf352bc60910937c433c6051cc17c542"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201312 lines \u00D7 2): lib/bumblebee/diffusion/unet_2d_conditional.ex:499-507 | lib/bumblebee/diffusion/vae_kl.ex:468-479 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/diffusion/unet_2d_conditional.ex:499\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/diffusion/unet_2d_conditional.ex"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"a657570fe4dfd9a4d4c847feafcfe024a9183243975670610128ae41df65c732"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/bumblebee/text/gpt2.ex:506-517 | lib/bumblebee/text/gpt_big_code.ex:513-524 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/gpt2.ex\u0060 and \u0060lib/bumblebee/text/gpt_big_code.ex\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 352 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/text/gpt2.ex:506\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/bumblebee/text/gpt_big_code.ex:512\u0060 calls \u0060mapping\u0060 and \u0060lib/bumblebee/text/gpt2.ex:505\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/gpt2.ex"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"febbb4f9c849ca5f0327f7dd11616cf53c3dfe10fb79985cc8980fd7e685ef01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/bumblebee/text/mistral.ex:401-412 | lib/bumblebee/text/phi3.ex:434-445 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/mistral.ex\u0060 and \u0060lib/bumblebee/text/phi3.ex\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 239 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/text/mistral.ex:401\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/mistral.ex"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a22af1af8e18c3224244d76045a38b08e437ba310234627179ab6358d913b45"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/bumblebee/vision/bit_featurizer.ex:121-132 | lib/bumblebee/vision/clip_featurizer.ex:110-121 \u2014 before extracting anything, compare \u0060lib/bumblebee/vision/bit_featurizer.ex\u0060 and \u0060lib/bumblebee/vision/clip_featurizer.ex\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 56 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/vision/bit_featurizer.ex"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bd82a8fa7f0c628befef44a2167def2e120b0ff42b658a51784595095fd2923"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 7): lib/bumblebee/diffusion/stable_diffusion.ex:155-167 | lib/bumblebee/text/question_answering.ex:16-28 | lib/bumblebee/text/text_embedding.ex:25-35 | lib/bumblebee/text/text_generation.ex:27-39 | lib/bumblebee/text/text_reranking_qwen3.ex:47-59 | lib/bumblebee/text/token_classification.ex:27-39 | lib/bumblebee/text/translation.ex:24-36 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/question_answering.ex\u0060 and \u0060lib/bumblebee/text/text_embedding.ex\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 67 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/diffusion/stable_diffusion.ex:155\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/diffusion/stable_diffusion.ex"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"80ad26175a538df7ade71a1205dec8b585884b1804be2fc4aaa6a04f111150a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 7): lib/bumblebee/multimodal/layout_lm.ex:442-452 | lib/bumblebee/text/albert.ex:426-436 | lib/bumblebee/text/bert.ex:587-597 | lib/bumblebee/text/blip_text.ex:381-391 | lib/bumblebee/text/distilbert.ex:398-408 | lib/bumblebee/text/mpnet.ex:409-419 | lib/bumblebee/text/roberta.ex:540-550 \u2014 before extracting anything, compare \u0060lib/bumblebee/multimodal/layout_lm.ex\u0060 and \u0060lib/bumblebee/text/albert.ex\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 231 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/multimodal/layout_lm.ex"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"2327948be7ee11c63cb483b3f20cf7f9955a3f8fdbc3870fe0982d1cded057f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 5): lib/bumblebee/text/blenderbot.ex:487-497 | lib/bumblebee/text/gpt2.ex:417-428 | lib/bumblebee/text/gpt_big_code.ex:423-434 | lib/bumblebee/text/m2m100.ex:517-527 | lib/bumblebee/text/mbart.ex:658-668 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/blenderbot.ex\u0060 and \u0060lib/bumblebee/text/gpt2.ex\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 83 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/text/gpt2.ex:417\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/blenderbot.ex"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e8872009279b67da126817284f8394ef174d9a24d1424a8964673db19492432"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): lib/bumblebee/audio/whisper.ex:612-622 | lib/bumblebee/text/blenderbot.ex:627-638 | lib/bumblebee/vision/convnext.ex:334-349 | lib/bumblebee/vision/swin.ex:625-644 \u2014 before extracting anything, compare \u0060lib/bumblebee/audio/whisper.ex\u0060 and \u0060lib/bumblebee/text/blenderbot.ex\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 246 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/audio/whisper.ex:612\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/audio/whisper.ex"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"f955b4bed7aca57617d704c9873d3f9549801ec9932b70cee8b6fd1ff6fc6578"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201311 lines \u00D7 4): lib/bumblebee/text/fill_mask.ex:104-114 | lib/bumblebee/text/text_classification.ex:89-96 | lib/bumblebee/text/zero_shot_classification.ex:113-120 | lib/bumblebee/vision/image_classification.ex:70-77 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/fill_mask.ex\u0060 and \u0060lib/bumblebee/text/text_classification.ex\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 104 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/text/fill_mask.ex:104\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/bumblebee/text/zero_shot_classification.ex:108\u0060 calls \u0060composite_unflatten_batch\u0060, \u0060length\u0060 and \u0060lib/bumblebee/text/fill_mask.ex:100\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/fill_mask.ex"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3269a22e533b8d23edc709494e9a0ab9471ac33b6a8d949fe67577db54be544"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201311 lines \u00D7 3): lib/bumblebee/text/bart.ex:577-587 | lib/bumblebee/text/bart.ex:672-681 | lib/bumblebee/text/distilbert.ex:403-409 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/bart.ex\u0060 and \u0060lib/bumblebee/text/distilbert.ex\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 101 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/text/bart.ex:577\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/bart.ex"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"fde850f0c8017d68376099dc2db1a1bf7bdd8ce56e70a755c09546f1f29df8a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 3): lib/bumblebee/vision/deit.ex:261-271 | lib/bumblebee/vision/dino_v2.ex:272-280 | lib/bumblebee/vision/vit.ex:215-223 \u2014 before extracting anything, compare \u0060lib/bumblebee/vision/deit.ex\u0060 and \u0060lib/bumblebee/vision/dino_v2.ex\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 92 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/vision/deit.ex"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc5e5b82ecefbc1dcd489f3b6c2bd2eb9772753ff6011f0e81ce73455eb25084"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): lib/bumblebee/vision/deit.ex:290-300 | lib/bumblebee/vision/dino_v2.ex:298-308 | lib/bumblebee/vision/vit.ex:240-250 \u2014 before extracting anything, compare \u0060lib/bumblebee/vision/deit.ex\u0060 and \u0060lib/bumblebee/vision/dino_v2.ex\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 92 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/vision/deit.ex"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc4f64becbba3d7c54891751dccb2ebb63f1b11d4ed8700894e4156cc06cad8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): lib/bumblebee/vision/image_classification.ex:56-66 | lib/bumblebee/vision/image_embedding.ex:79-89 | lib/bumblebee/vision/image_to_text.ex:50-60 \u2014 before extracting anything, compare \u0060lib/bumblebee/vision/image_classification.ex\u0060 and \u0060lib/bumblebee/vision/image_embedding.ex\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/vision/image_classification.ex:56\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/vision/image_classification.ex"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a18e513e10a92b8a5f04b9f061d5cbd210912cdb9bd8c6349b6a9f75a755525"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/bumblebee/diffusion/stable_diffusion.ex:215-225 | lib/bumblebee/diffusion/stable_diffusion_controlnet.ex:242-252 \u2014 before extracting anything, compare \u0060lib/bumblebee/diffusion/stable_diffusion.ex\u0060 and \u0060lib/bumblebee/diffusion/stable_diffusion_controlnet.ex\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 136 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/diffusion/stable_diffusion.ex:215\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/diffusion/stable_diffusion.ex"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"6004bf5d2eaa33e584b3dca2e95db9f991afb07b5818ac5819ebfff151f298da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/bumblebee/diffusion/stable_diffusion/safety_checker.ex:72-82 | lib/bumblebee/multimodal/clip.ex:119-129 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/diffusion/stable_diffusion/safety_checker.ex"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"897ac07de3b7012559e1dd31d20068e621dd0cdb8b733832ddf263e8c4c3a1d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201311 lines \u00D7 2): lib/bumblebee/text/bart.ex:633-639 | lib/bumblebee/text/bart.ex:652-662 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/text/bart.ex:633\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/bart.ex"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"99ba5e18409f6b426f5f5984d33995bf0074f2b1f528a2c97c0f3db9c3d4fa29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/bumblebee/text/clip_text.ex:272-282 | lib/bumblebee/vision/clip_vision.ex:265-275 \u2014 \u0060lib/bumblebee/text/clip_text.ex\u0060 and \u0060lib/bumblebee/vision/clip_vision.ex\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 60 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/text/clip_text.ex:272\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/clip_text.ex"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"74fc925260482f3b4a86fb93ac6c63815a3b959c740d9709d7aa2fd2b9e655e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/bumblebee/text/modernbert.ex:466-476 | lib/bumblebee/text/modernbert_decoder.ex:397-407 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/modernbert.ex\u0060 and \u0060lib/bumblebee/text/modernbert_decoder.ex\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/modernbert.ex"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c32dc55cc5b30ef5d1bc3df579e2fdb98dbffe6ea75fc1a724f056f562a6eab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 6): lib/bumblebee/multimodal/layout_lm.ex:480-489 | lib/bumblebee/text/albert.ex:464-473 | lib/bumblebee/text/bert.ex:631-640 | lib/bumblebee/text/blip_text.ex:425-434 | lib/bumblebee/text/mpnet.ex:444-452 | lib/bumblebee/text/roberta.ex:584-593 \u2014 before extracting anything, compare \u0060lib/bumblebee/multimodal/layout_lm.ex\u0060 and \u0060lib/bumblebee/text/albert.ex\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 231 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/multimodal/layout_lm.ex:480\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/bumblebee/multimodal/layout_lm.ex:490\u0060 calls \u0060bias\u0060, \u0060join\u0060 and \u0060lib/bumblebee/text/albert.ex:474\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/multimodal/layout_lm.ex"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"58b51bceed8027f606a29c52821a818288c06d2e637b1a8fe632ec9f3b654f6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): lib/bumblebee/multimodal/layout_lm.ex:427-437 | lib/bumblebee/text/albert.ex:411-421 | lib/bumblebee/text/bart.ex:560-569 | lib/bumblebee/text/distilbert.ex:386-395 \u2014 before extracting anything, compare \u0060lib/bumblebee/multimodal/layout_lm.ex\u0060 and \u0060lib/bumblebee/text/albert.ex\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 231 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/multimodal/layout_lm.ex:427\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/multimodal/layout_lm.ex"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"657ac4e2dc0afe6dd005b53849b530264562186d548ccbe48969afe58bd26a2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): lib/bumblebee/multimodal/layout_lm.ex:503-512 | lib/bumblebee/text/bert.ex:654-663 | lib/bumblebee/text/nomic_bert.ex:323-332 | lib/bumblebee/text/roberta.ex:607-616 \u2014 before extracting anything, compare \u0060lib/bumblebee/multimodal/layout_lm.ex\u0060 and \u0060lib/bumblebee/text/bert.ex\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 246 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/multimodal/layout_lm.ex:503\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/multimodal/layout_lm.ex"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"180918351ab5a9d4cc01197e61e11863b272bc854b4544b71385f2499156cd65"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 4): lib/bumblebee/text/fill_mask.ex:84-91 | lib/bumblebee/text/text_embedding.ex:143-152 | lib/bumblebee/text/token_classification.ex:74-83 | lib/bumblebee/text/zero_shot_classification.ex:90-97 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/fill_mask.ex\u0060 and \u0060lib/bumblebee/text/text_embedding.ex\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 87 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/text/fill_mask.ex:84\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/fill_mask.ex"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"813e2702160c78447b0f2e0b787b2384b40a214d0e1eff3d50aed612efd498e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): lib/bumblebee/vision/deit.ex:372-381 | lib/bumblebee/vision/dino_v2.ex:437-446 | lib/bumblebee/vision/vit.ex:322-331 \u2014 before extracting anything, compare \u0060lib/bumblebee/vision/deit.ex\u0060 and \u0060lib/bumblebee/vision/dino_v2.ex\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 92 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/vision/deit.ex:372\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/vision/deit.ex"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"24521569ce4a32439ccec109c58720a38e07abf818ce0e95ce00332bbd6bd759"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/bumblebee/diffusion/layers/unet.ex:78-87 | lib/bumblebee/diffusion/layers/unet.ex:156-165 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/diffusion/layers/unet.ex"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"369f331206cf1da1648279d0db3716544292aa46d2d3fc65b8b07bc3c2f7d54e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/bumblebee/diffusion/stable_diffusion.ex:280-289 | lib/bumblebee/diffusion/stable_diffusion_controlnet.ex:318-327 \u2014 before extracting anything, compare \u0060lib/bumblebee/diffusion/stable_diffusion.ex\u0060 and \u0060lib/bumblebee/diffusion/stable_diffusion_controlnet.ex\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 136 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/diffusion/stable_diffusion.ex"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3efc3911262f1e44b3ca1dd54faffa58de78b14a14731c99fd93928f99743ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201310 lines \u00D7 2): lib/bumblebee/layers.ex:429-438 | lib/bumblebee/layers.ex:482-488 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/layers.ex"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7b19661284b02256cd5dd8edd536f60105e3bb9c9b62e1ac4bbb8a9d4cf5699"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/bumblebee/text/bert.ex:397-406 | lib/bumblebee/text/roberta.ex:349-358 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/bert.ex\u0060 and \u0060lib/bumblebee/text/roberta.ex\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 534 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/text/bert.ex:397\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/bert.ex"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb440691df1d62c399b72acca8d5d6d68f50e4bca297d77839609af6e218b160"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/bumblebee/text/gpt_neo_x.ex:374-383 | lib/bumblebee/text/gpt_neo_x.ex:389-398 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/gpt_neo_x.ex"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"db89b952d3e777514cf8bd546e9e8d397caccb0631f3a2552e06720fdbf6d8c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/bumblebee/text/m2m100.ex:225-234 | lib/bumblebee/text/t5.ex:239-248 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/m2m100.ex\u0060 and \u0060lib/bumblebee/text/t5.ex\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 167 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/m2m100.ex"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"96441733f4e7d29239d3aae5fe6943e566e1ba6aa1299eb8b9fef69d0031e56a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/bumblebee/text/translation.ex:15-26 | lib/bumblebee/vision/image_to_text.ex:16-25 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/text/translation.ex:15\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/translation.ex"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"0777ba5b19e7c7f3869b73d63101b581ca8fe133bec9553bbda94ea96f4fde23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/bumblebee/vision/blip_vision.ex:237-246 | lib/bumblebee/vision/clip_vision.ex:259-268 \u2014 before extracting anything, compare \u0060lib/bumblebee/vision/blip_vision.ex\u0060 and \u0060lib/bumblebee/vision/clip_vision.ex\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 60 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/vision/blip_vision.ex:237\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/bumblebee/vision/clip_vision.ex:269\u0060 calls \u0060number\u0060 and \u0060lib/bumblebee/vision/blip_vision.ex:247\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/vision/blip_vision.ex"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"304f75c0d3fa96198185933e3ee89489696f9c54f779ebfdb889897c02aabac6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/bumblebee/vision/deit.ex:277-286 | lib/bumblebee/vision/vit.ex:227-236 \u2014 before extracting anything, compare \u0060lib/bumblebee/vision/deit.ex\u0060 and \u0060lib/bumblebee/vision/vit.ex\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 284 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/vision/deit.ex"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"59e9b5d8afbf07b3272cfd3ac434c9ec10c309f095d61adf51d34f78453ab692"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 10): lib/bumblebee/text/clip_text.ex:266-274 | lib/bumblebee/text/distilbert.ex:459-467 | lib/bumblebee/text/gemma.ex:408-416 | lib/bumblebee/text/gpt2.ex:497-505 | lib/bumblebee/text/gpt_big_code.ex:503-511 | lib/bumblebee/text/gpt_neo_x.ex:428-436 | lib/bumblebee/text/mistral.ex:396-404 | lib/bumblebee/text/mpnet.ex:466-474 | lib/bumblebee/text/phi.ex:415-423 | lib/bumblebee/text/phi3.ex:429-437 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/clip_text.ex\u0060 and \u0060lib/bumblebee/text/distilbert.ex\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/text/clip_text.ex:266\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/bumblebee/text/clip_text.ex:276\u0060 calls \u0060number\u0060 and \u0060lib/bumblebee/text/distilbert.ex:469\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/clip_text.ex"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"cda97851a6913c0e172a2cc2f11de8507baa722e57ddac5079b78fe138fcec12"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 6): lib/bumblebee/audio/whisper.ex:502-510 | lib/bumblebee/text/blenderbot.ex:487-495 | lib/bumblebee/text/gpt2.ex:416-426 | lib/bumblebee/text/gpt_big_code.ex:422-432 | lib/bumblebee/text/m2m100.ex:517-525 | lib/bumblebee/text/mbart.ex:658-666 \u2014 before extracting anything, compare \u0060lib/bumblebee/audio/whisper.ex\u0060 and \u0060lib/bumblebee/text/blenderbot.ex\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 246 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/text/gpt2.ex:416\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/audio/whisper.ex"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"831718e59a6c9053d858cb9d3c10ea2ce44a886d371fe8654eee6fcfbdc6d989"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): lib/bumblebee/text/cross_encoding.ex:74-82 | lib/bumblebee/text/fill_mask.ex:96-104 | lib/bumblebee/text/text_classification.ex:81-89 | lib/bumblebee/text/text_embedding.ex:153-161 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/cross_encoding.ex\u0060 and \u0060lib/bumblebee/text/fill_mask.ex\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 70 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/text/cross_encoding.ex:74\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/cross_encoding.ex"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f5bd46c39c582f0c88f47225372cfcb016601d6db685e534ea3283b831b7883"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): lib/bumblebee/text/mistral.ex:407-415 | lib/bumblebee/text/phi.ex:425-433 | lib/bumblebee/text/phi3.ex:440-448 | lib/bumblebee/text/qwen3.ex:416-424 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/mistral.ex\u0060 and \u0060lib/bumblebee/text/phi.ex\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 152 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/text/mistral.ex:407\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/bumblebee/text/mistral.ex:406\u0060 calls \u0060optional\u0060, \u0060number\u0060 and \u0060lib/bumblebee/text/phi.ex:424\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/mistral.ex"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"27b31aa6cb51aef2b80e5496dbec89ef82a737e86e75cd2f8a6263d01d88ee8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): lib/bumblebee/text/bert.ex:485-493 | lib/bumblebee/text/nomic_bert.ex:198-206 | lib/bumblebee/text/roberta.ex:438-446 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/bert.ex\u0060 and \u0060lib/bumblebee/text/roberta.ex\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 534 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/text/bert.ex:485\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/bert.ex"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8344706ae8567473cb27dc615bf5bce7c51a443581aed8ea8c1c9001614302f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): lib/bumblebee/text/gpt_big_code.ex:541-549 | lib/bumblebee/text/modernbert.ex:551-572 | lib/bumblebee/text/phi3.ex:458-479 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/gpt_big_code.ex\u0060 and \u0060lib/bumblebee/text/phi3.ex\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 73 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/gpt_big_code.ex"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"85df7e3160917842bf320440c7f863cdea9e9078cb264f0d9c41a0b8aaad5426"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): lib/bumblebee/text/llama.ex:396-404 | lib/bumblebee/text/qwen3.ex:406-414 | lib/bumblebee/text/smollm3.ex:487-495 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/llama.ex\u0060 and \u0060lib/bumblebee/text/qwen3.ex\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 270 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/text/llama.ex:396\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/llama.ex"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bab80a5836d0786ef6ab454fd9b65b14cb6a9b68798acfa15b17ba388d9d8ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): lib/bumblebee/text/text_generation.ex:90-104 | lib/bumblebee/text/translation.ex:110-125 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/text_generation.ex\u0060 and \u0060lib/bumblebee/text/translation.ex\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 125 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/text/text_generation.ex:90\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/text_generation.ex"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5fac5de3e0b49ad9ab921ebe0241cecb1a1c00db0b98154aff9bac718c3ff62"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/bumblebee/vision/bit_featurizer.ex:160-168 | lib/bumblebee/vision/clip_featurizer.ex:144-152 \u2014 before extracting anything, compare \u0060lib/bumblebee/vision/bit_featurizer.ex\u0060 and \u0060lib/bumblebee/vision/clip_featurizer.ex\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 56 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/vision/bit_featurizer.ex:160\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/bumblebee/vision/bit_featurizer.ex:170\u0060 calls \u0060number\u0060, \u0060boolean\u0060 and \u0060lib/bumblebee/vision/clip_featurizer.ex:154\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/vision/bit_featurizer.ex"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ee764a404df57464429dddd10d7062f228cc7fca5c785952a87abd80e726b68"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/bumblebee/vision/clip_featurizer.ex:150-158 | lib/bumblebee/vision/deit_featurizer.ex:132-140 \u2014 before extracting anything, compare \u0060lib/bumblebee/vision/clip_featurizer.ex\u0060 and \u0060lib/bumblebee/vision/deit_featurizer.ex\u0060 as WHOLE FILES: 87% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/vision/clip_featurizer.ex:150\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/vision/clip_featurizer.ex"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5528d57cab7f9dbb17a3f80076fdd85d1a840a6e8024722238b095db562401a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 12): lib/bumblebee/text/gemma.ex:238-245 | lib/bumblebee/text/gemma3_text.ex:280-287 | lib/bumblebee/text/gpt2.ex:297-303 | lib/bumblebee/text/gpt_big_code.ex:302-308 | lib/bumblebee/text/gpt_neo_x.ex:263-270 | lib/bumblebee/text/llama.ex:240-247 | lib/bumblebee/text/mistral.ex:238-245 | lib/bumblebee/text/modernbert_decoder.ex:207-213 | lib/bumblebee/text/phi.ex:264-271 | lib/bumblebee/text/phi3.ex:269-276 | lib/bumblebee/text/qwen3.ex:243-250 | lib/bumblebee/text/smollm3.ex:314-321 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/gemma.ex\u0060 and \u0060lib/bumblebee/text/gemma3_text.ex\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 178 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/text/gemma.ex:238\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/gemma.ex"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"efa61f3bdaf7f9ed76a63fd3473b8401fc7010c36816c3d41845159112bd1ed7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 6): lib/bumblebee/multimodal/layout_lm.ex:473-483 | lib/bumblebee/text/bert.ex:624-634 | lib/bumblebee/text/blip_text.ex:418-428 | lib/bumblebee/text/distilbert.ex:429-439 | lib/bumblebee/text/mpnet.ex:440-447 | lib/bumblebee/text/roberta.ex:577-587 \u2014 before extracting anything, compare \u0060lib/bumblebee/multimodal/layout_lm.ex\u0060 and \u0060lib/bumblebee/text/bert.ex\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 246 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/multimodal/layout_lm.ex"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b7fad26adcfa26b099404dfeaa098076b6f9737327e464b4d3a59a12c611d86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): lib/bumblebee/text/gemma.ex:413-420 | lib/bumblebee/text/llama.ex:400-407 | lib/bumblebee/text/qwen3.ex:410-417 | lib/bumblebee/text/smollm3.ex:491-498 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/gemma.ex\u0060 and \u0060lib/bumblebee/text/llama.ex\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 162 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/bumblebee/text/llama.ex:399\u0060 calls \u0060boolean\u0060 and \u0060lib/bumblebee/text/gemma.ex:412\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/gemma.ex"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"1740bf469cfffc19a75e5e47de7e21526722648267eab8073133f9c953f71f05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/bumblebee/audio/whisper.ex:591-598 | lib/bumblebee/text/blenderbot.ex:587-594 \u2014 before extracting anything, compare \u0060lib/bumblebee/audio/whisper.ex\u0060 and \u0060lib/bumblebee/text/blenderbot.ex\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 246 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/audio/whisper.ex:591\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/bumblebee/text/blenderbot.ex:586\u0060 calls \u0060boolean\u0060 and \u0060lib/bumblebee/audio/whisper.ex:590\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/audio/whisper.ex"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"e505026a545c471066a530e8a50ccb2df2673fab750a650d61f1f451c5ffa053"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/bumblebee/multimodal/layout_lm.ex:515-522 | lib/bumblebee/text/albert.ex:501-508 \u2014 before extracting anything, compare \u0060lib/bumblebee/multimodal/layout_lm.ex\u0060 and \u0060lib/bumblebee/text/albert.ex\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 231 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/multimodal/layout_lm.ex:515\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/multimodal/layout_lm.ex"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a211eab399795882e78d260e6cc3f1d89af12d59a689d6d8de5e63d87ea59c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 9): lib/bumblebee/text/cross_encoding.ex:48-53 | lib/bumblebee/text/fill_mask.ex:69-75 | lib/bumblebee/text/question_answering.ex:63-68 | lib/bumblebee/text/text_classification.ex:55-60 | lib/bumblebee/text/text_embedding.ex:128-134 | lib/bumblebee/text/text_generation.ex:58-63 | lib/bumblebee/text/text_reranking_qwen3.ex:98-104 | lib/bumblebee/text/token_classification.ex:59-65 | lib/bumblebee/text/translation.ex:55-60 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/cross_encoding.ex\u0060 and \u0060lib/bumblebee/text/fill_mask.ex\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 70 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/text/cross_encoding.ex:48\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/bumblebee/text/cross_encoding.ex:53\u0060 calls \u0060template\u0060 and \u0060lib/bumblebee/text/fill_mask.ex:75\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/cross_encoding.ex"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"8effcb45f799e67cb3b502763ebfbaf01265138212e0ee6b51bef1a7a1ac278f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): lib/bumblebee/text/cross_encoding.ex:73-79 | lib/bumblebee/text/fill_mask.ex:95-101 | lib/bumblebee/text/text_classification.ex:80-86 | lib/bumblebee/text/text_embedding.ex:152-158 | lib/bumblebee/text/text_reranking_qwen3.ex:129-135 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/cross_encoding.ex\u0060 and \u0060lib/bumblebee/text/fill_mask.ex\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 70 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/cross_encoding.ex"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"b54d5153b753e6f86ac58231edae726a092306dc95b29887e1a79f467cc664ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): lib/bumblebee/text/fill_mask.ex:84-90 | lib/bumblebee/text/text_classification.ex:71-77 | lib/bumblebee/text/text_embedding.ex:143-149 | lib/bumblebee/text/token_classification.ex:74-80 | lib/bumblebee/text/zero_shot_classification.ex:90-96 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/fill_mask.ex\u0060 and \u0060lib/bumblebee/text/text_classification.ex\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 104 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/text/fill_mask.ex:84\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/fill_mask.ex"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9c697c4e564f82a6e2f312db94065da8772b73352fda3de8a881fc61b59ed20"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): lib/bumblebee/text/albert.ex:372-378 | lib/bumblebee/text/bert.ex:491-497 | lib/bumblebee/text/roberta.ex:444-450 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/albert.ex\u0060 and \u0060lib/bumblebee/text/bert.ex\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 172 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/text/albert.ex:372\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/albert.ex"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d688898efc2311657be0808dbd4657849f7adfde17b64ea76af551f9a602a2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): lib/bumblebee/text/bert.ex:401-407 | lib/bumblebee/text/distilbert.ex:301-307 | lib/bumblebee/text/roberta.ex:353-359 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/bert.ex\u0060 and \u0060lib/bumblebee/text/distilbert.ex\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 234 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/text/bert.ex:401\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/bert.ex"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"822a95a6cb848894006688eb55444147a2da288e6b75b7ca8fe6982cd28d4230"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): lib/bumblebee/text/blip_text.ex:461-467 | lib/bumblebee/vision/deit.ex:385-391 | lib/bumblebee/vision/vit.ex:335-341 \u2014 before extracting anything, compare \u0060lib/bumblebee/vision/deit.ex\u0060 and \u0060lib/bumblebee/vision/vit.ex\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 284 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/text/blip_text.ex:461\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/bumblebee/vision/deit.ex:383\u0060 calls \u0060boolean\u0060 and \u0060lib/bumblebee/text/blip_text.ex:459\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/blip_text.ex"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f498b9694fbec6fc280f35d4d0fea37dc5aebd34b51e0f134a5abec9c991c29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/bumblebee/text/modernbert.ex:299-305 | lib/bumblebee/text/modernbert_decoder.ex:264-270 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/modernbert.ex\u0060 and \u0060lib/bumblebee/text/modernbert_decoder.ex\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/modernbert.ex"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6a49c3c808c8930641ebd91af1b6a07192cde1536651c106cd582127c47ffe1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 6): lib/bumblebee/multimodal/layout_lm.ex:511-516 | lib/bumblebee/text/bert.ex:662-667 | lib/bumblebee/text/blip_text.ex:457-462 | lib/bumblebee/text/distilbert.ex:466-471 | lib/bumblebee/text/mpnet.ex:473-478 | lib/bumblebee/text/roberta.ex:615-620 \u2014 before extracting anything, compare \u0060lib/bumblebee/multimodal/layout_lm.ex\u0060 and \u0060lib/bumblebee/text/bert.ex\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 246 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/bumblebee/multimodal/layout_lm.ex:517\u0060 calls \u0060optional\u0060, \u0060number\u0060 and \u0060lib/bumblebee/text/blip_text.ex:463\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/multimodal/layout_lm.ex"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"638dfe1f1dbe0ec29c6b342fec529d45c1e83e7e3d57ebb911870c49da21970f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 6): lib/bumblebee/multimodal/layout_lm.ex:512-517 | lib/bumblebee/text/albert.ex:498-503 | lib/bumblebee/text/bert.ex:663-668 | lib/bumblebee/text/distilbert.ex:467-472 | lib/bumblebee/text/mpnet.ex:474-479 | lib/bumblebee/text/roberta.ex:616-621 \u2014 before extracting anything, compare \u0060lib/bumblebee/multimodal/layout_lm.ex\u0060 and \u0060lib/bumblebee/text/albert.ex\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 231 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/bumblebee/multimodal/layout_lm.ex:518\u0060 calls \u0060number\u0060 and \u0060lib/bumblebee/text/distilbert.ex:473\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/multimodal/layout_lm.ex"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"5db30643edeb0ea587243df9da2d9ac1cde2317748e37815195759a590944637"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): lib/bumblebee/audio/whisper.ex:585-590 | lib/bumblebee/text/bart.ex:714-719 | lib/bumblebee/text/blenderbot.ex:580-585 | lib/bumblebee/text/m2m100.ex:610-615 | lib/bumblebee/text/mbart.ex:751-756 \u2014 before extracting anything, compare \u0060lib/bumblebee/audio/whisper.ex\u0060 and \u0060lib/bumblebee/text/bart.ex\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 77 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/bumblebee/text/bart.ex:720\u0060 calls \u0060boolean\u0060 and \u0060lib/bumblebee/audio/whisper.ex:591\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/audio/whisper.ex"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b0e138f0590df36a7af6176ef2e8be73f5b1cdeb1d7f0ee0802ff22b80efb20"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/bumblebee/conversion/pytorch_loader.ex:142-147 | lib/bumblebee/conversion/pytorch_loader.ex:164-169 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/conversion/pytorch_loader.ex"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"75fe9c700269b4d6bd96dc7172cb1da62cfa075c1e5f3b0e17864c5ff0178e76"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/bumblebee/multimodal/layout_lm.ex:372-377 | lib/bumblebee/multimodal/layout_lm.ex:379-384 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/multimodal/layout_lm.ex"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a7f79192b32c58bddae0f632c17fb836cdf34548dbb8dabac237f09c3f545fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/bumblebee/text/modernbert.ex:264-269 | lib/bumblebee/text/nomic_bert.ex:148-153 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/text/modernbert.ex:264\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/bumblebee/text/nomic_bert.ex:155\u0060 calls \u0060input\u0060 and \u0060lib/bumblebee/text/modernbert.ex:271\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/modernbert.ex"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"53b0b1d04e67a9df7269ce568a5be3e1e94691412988077d60aec28df8dc8915"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/bumblebee/text/text_reranking_qwen3.ex:134-139 | lib/bumblebee/text/token_classification.ex:90-95 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/text_reranking_qwen3.ex\u0060 and \u0060lib/bumblebee/text/token_classification.ex\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 89 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/text/text_reranking_qwen3.ex:134\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/bumblebee/text/token_classification.ex:88\u0060 calls \u0060take\u0060 and \u0060lib/bumblebee/text/text_reranking_qwen3.ex:132\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/text_reranking_qwen3.ex"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"34d0949edeed66360e313f9c88e10d567562731e46f2b0592fc634a1718ab36e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/bumblebee/vision/blip_vision.ex:242-247 | lib/bumblebee/vision/vit.ex:328-333 \u2014 before extracting anything, compare \u0060lib/bumblebee/vision/blip_vision.ex\u0060 and \u0060lib/bumblebee/vision/vit.ex\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 66 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/vision/blip_vision.ex"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a982fbce0dfc457cc78c9f5cd5bb57a6730e6b2850d5aff7d13f09471458256"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u20136 lines \u00D7 2): lib/bumblebee/vision/dino_v2.ex:448-452 | lib/bumblebee/vision/vit.ex:333-338 \u2014 before extracting anything, compare \u0060lib/bumblebee/vision/dino_v2.ex\u0060 and \u0060lib/bumblebee/vision/vit.ex\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 114 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/vision/dino_v2.ex"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"017ba7ce283c0e31564b8762f54a0ac3db1ad4d6b75a5ba67371d047050d9263"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 19): lib/bumblebee/text/bart.ex:348-355 | lib/bumblebee/text/bart.ex:408-416 | lib/bumblebee/text/blenderbot.ex:260-268 | lib/bumblebee/text/gemma.ex:246-250 | lib/bumblebee/text/gemma3_text.ex:288-292 | lib/bumblebee/text/gpt2.ex:307-314 | lib/bumblebee/text/gpt_big_code.ex:312-319 | lib/bumblebee/text/gpt_neo_x.ex:271-275 | lib/bumblebee/text/llama.ex:248-252 | lib/bumblebee/text/m2m100.ex:259-267 | lib/bumblebee/text/mbart.ex:345-352 | lib/bumblebee/text/mbart.ex:405-413 | lib/bumblebee/text/mistral.ex:246-250 | lib/bumblebee/text/modernbert_decoder.ex:214-218 | lib/bumblebee/text/phi.ex:272-276 | lib/bumblebee/text/phi3.ex:277-281 | lib/bumblebee/text/qwen3.ex:251-255 | lib/bumblebee/text/smollm3.ex:322-326 | lib/bumblebee/text/t5.ex:303-311 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/bart.ex\u0060 and \u0060lib/bumblebee/text/blenderbot.ex\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 313 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/text/bart.ex:348\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/bumblebee/text/bart.ex:347\u0060 calls \u0060input\u0060 and \u0060lib/bumblebee/text/bart.ex:408\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/bart.ex"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"567807150e7e98a4d8bfd8e6ee88abc1c787bcb614a7fffb2c85e14f1d18e84e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 6): lib/bumblebee/text/bart.ex:338-342 | lib/bumblebee/text/bert.ex:412-416 | lib/bumblebee/text/blip_text.ex:207-211 | lib/bumblebee/text/blip_text.ex:216-220 | lib/bumblebee/text/mbart.ex:335-339 | lib/bumblebee/text/roberta.ex:364-368 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/bart.ex\u0060 and \u0060lib/bumblebee/text/bert.ex\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 100 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/text/bart.ex:338\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/bart.ex"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5236b317b94fd9a47f94188cd621c3d8054105b56dfe8e81e4fe930130097bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): lib/bumblebee/text/distilbert.ex:305-309 | lib/bumblebee/text/modernbert.ex:268-272 | lib/bumblebee/text/mpnet.ex:309-313 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/distilbert.ex\u0060 and \u0060lib/bumblebee/text/modernbert.ex\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/text/distilbert.ex:305\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/distilbert.ex"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"523c6dc9d2a8638e679b8ae8631d78300b20923c8a4344374d1c16b9598a7989"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): lib/bumblebee/text/modernbert.ex:265-269 | lib/bumblebee/text/mpnet.ex:306-310 | lib/bumblebee/text/nomic_bert.ex:149-153 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/modernbert.ex\u0060 and \u0060lib/bumblebee/text/mpnet.ex\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 54 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/text/modernbert.ex:265\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/bumblebee/text/nomic_bert.ex:155\u0060 calls \u0060input\u0060 and \u0060lib/bumblebee/text/modernbert.ex:271\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/modernbert.ex"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"999fef1f1e87afd9716732d7dd6ab2de171a32bd67d5ca0a67527c942085a2cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): lib/bumblebee/audio/whisper.ex:271-279 | lib/bumblebee/multimodal/blip.ex:123-127 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/bumblebee/audio/whisper.ex:271\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/audio/whisper.ex"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"45f754eed9eb707cdb4ab92780dad2057fd3babf45a0d8d6897afb027e2005fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 5): lib/bumblebee/audio/whisper.ex:231-242 | lib/bumblebee/text/bart.ex:421-432 | lib/bumblebee/text/blenderbot.ex:273-284 | lib/bumblebee/text/m2m100.ex:272-283 | lib/bumblebee/text/mbart.ex:418-429 \u2014 before extracting anything, compare \u0060lib/bumblebee/audio/whisper.ex\u0060 and \u0060lib/bumblebee/text/bart.ex\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 77 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/audio/whisper.ex"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"c117bf3c53553942d5036bc089ea1127a02329e66ec8a7f9cb87db07b0a69628"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 6): lib/bumblebee/multimodal/layout_lm.ex:195-204 | lib/bumblebee/text/bert.ex:215-224 | lib/bumblebee/text/distilbert.ex:179-188 | lib/bumblebee/text/modernbert.ex:186-195 | lib/bumblebee/text/mpnet.ex:185-194 | lib/bumblebee/text/roberta.ex:199-208 \u2014 before extracting anything, compare \u0060lib/bumblebee/multimodal/layout_lm.ex\u0060 and \u0060lib/bumblebee/text/bert.ex\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 246 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/multimodal/layout_lm.ex"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"7022a1461e3d1c5f58767e50400622d545fc3292ebbafe542dce6ab3327fb94e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/bumblebee/text/bart.ex:531-538 | lib/bumblebee/text/mbart.ex:609-616 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/bart.ex\u0060 and \u0060lib/bumblebee/text/mbart.ex\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 454 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/bart.ex"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1d85c14c96a61323872fa4dee2fd6550b49876954f66a17255977ac249c607e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 12): lib/bumblebee/text/bart.ex:692-698 | lib/bumblebee/text/blenderbot.ex:558-564 | lib/bumblebee/text/gemma.ex:393-399 | lib/bumblebee/text/gemma3_text.ex:466-472 | lib/bumblebee/text/gpt_neo_x.ex:413-419 | lib/bumblebee/text/llama.ex:379-385 | lib/bumblebee/text/m2m100.ex:588-594 | lib/bumblebee/text/mbart.ex:729-735 | lib/bumblebee/text/mistral.ex:381-387 | lib/bumblebee/text/qwen3.ex:390-395 | lib/bumblebee/text/smollm3.ex:460-466 | lib/bumblebee/text/t5.ex:624-630 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/bart.ex\u0060 and \u0060lib/bumblebee/text/blenderbot.ex\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 313 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/bart.ex"},"region":{"startLine":692}}}],"partialFingerprints":{"codehealthFindingId/v1":"302e0b0720076d5a36a86e37e34623e5449c194deaf82044021c357f98a06040"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): lib/bumblebee/text/bert.ex:382-393 | lib/bumblebee/text/blip_text.ex:186-197 | lib/bumblebee/text/gpt2.ex:282-293 | lib/bumblebee/text/roberta.ex:334-345 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/bert.ex\u0060 and \u0060lib/bumblebee/text/blip_text.ex\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 266 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/bert.ex"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f0ba5d883c896773db5155c120cb1b0a5ee7647810e6807adec21daa3276fe5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 7): lib/bumblebee/text/bert.ex:612-620 | lib/bumblebee/text/blip_text.ex:406-414 | lib/bumblebee/text/mpnet.ex:428-436 | lib/bumblebee/text/nomic_bert.ex:273-281 | lib/bumblebee/text/roberta.ex:565-573 | lib/bumblebee/vision/deit.ex:355-363 | lib/bumblebee/vision/vit.ex:305-313 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/bert.ex\u0060 and \u0060lib/bumblebee/text/blip_text.ex\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 266 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/bert.ex"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"39b73ed4fd770a624b36814bfe883bafd8e8953ed837449580b14e405569c33a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): lib/bumblebee/text/gemma.ex:166-172 | lib/bumblebee/text/gemma3_text.ex:208-214 | lib/bumblebee/text/llama.ex:168-174 | lib/bumblebee/text/qwen3.ex:171-177 | lib/bumblebee/text/smollm3.ex:198-204 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/gemma.ex\u0060 and \u0060lib/bumblebee/text/gemma3_text.ex\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 178 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/gemma.ex"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"72a9ded5a71333ffc4601025f2867e4ce425ec83350069f5405ba5143a26b37f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 10): lib/bumblebee/text/gemma.ex:185-195 | lib/bumblebee/text/gemma3_text.ex:227-237 | lib/bumblebee/text/gpt_neo_x.ex:187-197 | lib/bumblebee/text/llama.ex:187-197 | lib/bumblebee/text/mistral.ex:185-195 | lib/bumblebee/text/modernbert_decoder.ex:193-203 | lib/bumblebee/text/phi.ex:189-199 | lib/bumblebee/text/phi3.ex:194-204 | lib/bumblebee/text/qwen3.ex:190-200 | lib/bumblebee/text/smollm3.ex:217-227 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/gemma.ex\u0060 and \u0060lib/bumblebee/text/gemma3_text.ex\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 178 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/gemma.ex"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d756508023a22d1936943870719ac431855b90b8d41aa3f18a16f4430aee06d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 7): lib/bumblebee/text/gpt_neo_x.ex:318-325 | lib/bumblebee/text/llama.ex:295-302 | lib/bumblebee/text/mistral.ex:293-302 | lib/bumblebee/text/phi.ex:319-328 | lib/bumblebee/text/phi3.ex:324-333 | lib/bumblebee/text/qwen3.ex:298-305 | lib/bumblebee/text/smollm3.ex:369-376 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/gpt_neo_x.ex\u0060 and \u0060lib/bumblebee/text/llama.ex\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 95 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/gpt_neo_x.ex"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"f02dd4f7ff949f076ebe9445907ac99d1125ed289de4bc409db912d5a4d89c21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): lib/bumblebee/text/mistral.ex:167-172 | lib/bumblebee/text/phi.ex:171-176 | lib/bumblebee/text/phi3.ex:176-181 \u2014 before extracting anything, compare \u0060lib/bumblebee/text/mistral.ex\u0060 and \u0060lib/bumblebee/text/phi.ex\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 152 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/mistral.ex"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc8f7c7718228faa219a80c6d4dbecdb3f891d82bdbc1b0c3e4ac72e898c6604"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/bumblebee/vision/bit_featurizer.ex:78-87 | lib/bumblebee/vision/clip_featurizer.ex:67-76 \u2014 before extracting anything, compare \u0060lib/bumblebee/vision/bit_featurizer.ex\u0060 and \u0060lib/bumblebee/vision/clip_featurizer.ex\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 56 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/vision/bit_featurizer.ex"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"74ada0d492861fe436783c48a3c5b88a5417fdd41d569de7a732657e4a0b6a38"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): lib/bumblebee/vision/blip_featurizer.ex:86-99 | lib/bumblebee/vision/clip_featurizer.ex:126-139 | lib/bumblebee/vision/convnext_featurizer.ex:101-114 | lib/bumblebee/vision/vit_featurizer.ex:86-99 \u2014 before extracting anything, compare \u0060lib/bumblebee/vision/blip_featurizer.ex\u0060 and \u0060lib/bumblebee/vision/vit_featurizer.ex\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 44 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/vision/blip_featurizer.ex"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e7d24d658e287417041d86a17d29950fce78a4160f3f6ef77a660426c89d646"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): lib/bumblebee/vision/blip_vision.ex:111-115 | lib/bumblebee/vision/clip_vision.ex:130-134 \u2014 before extracting anything, compare \u0060lib/bumblebee/vision/blip_vision.ex\u0060 and \u0060lib/bumblebee/vision/clip_vision.ex\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 60 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/vision/blip_vision.ex"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c8fb3ac2b7383734e8d57d9b55fb0cbcdcf09a0540d0c5c4eb95978d553df6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): lib/bumblebee/vision/deit.ex:228-233 | lib/bumblebee/vision/swin.ex:155-160 | lib/bumblebee/vision/vit.ex:182-187 \u2014 before extracting anything, compare \u0060lib/bumblebee/vision/deit.ex\u0060 and \u0060lib/bumblebee/vision/vit.ex\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 284 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/vision/deit.ex"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd649790c484792fbaf31a24e0c3e871ec6df0c143d65dba45704c4c7391a672"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): lib/bumblebee/conversion/pytorch_params.ex:417-421 | lib/bumblebee/conversion/pytorch_params.ex:425-429 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/conversion/pytorch_params.ex"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e9e35b4dc251ee9b017ddbaccf61c3a3c997a642846737c49185759e45f2e99"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): examples/phoenix/image_classification.exs:232-249 | examples/phoenix/speech_to_text.exs:229-247 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/phoenix/image_classification.exs"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6ba988aecf941e0a9e37783de978664baa1d2ea50f8fab6e1be68740cd3d796"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): examples/phoenix/image_classification.exs:242-249 | examples/phoenix/text_classification.exs:84-91 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060examples/phoenix/text_classification.exs:82\u0060 calls \u0060assign\u0060 and \u0060examples/phoenix/image_classification.exs:240\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/phoenix/image_classification.exs"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"f462db6e82a1d86dec96c37d72a298fb3b454213ad6f10f7bddbe438b4d6879c"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 18 significant file(s) lose their only recent owner: lib/bumblebee/text/mbart.ex, lib/bumblebee/text/bart.ex, lib/bumblebee/text/t5.ex, lib/bumblebee/text/bert.ex, lib/bumblebee/text/m2m100.ex, lib/bumblebee/text/blenderbot.ex, lib/bumblebee/text/roberta.ex, lib/bumblebee/audio/whisper.ex (\u002B10 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ddc203705a18328503fd9edab741f996d0f8dc0da9d526924da201152254062e"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 1 other contributor(s) are each the sole owner of a small amount of code below the off-boarding threshold \u2014 folded into the bus-factor score and metrics (19 single-owned of 95 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 95 of the 110 production source files in this repository met that bar). They are anonymized user #2 (1 file(s)) \u2014 spread or document their files in the same way, at lower priority than the named off-boarding risks above. The files folded here: lib/bumblebee/audio/whisper_featurizer.ex."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # ToDo Bumblee.configure() \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"test/bumblebee/text/generation_test.exs"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"d63a73d2f38f4fc7e97858242c01a431268588ecca31e3bb3ecbac09d777cb6f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: remove once we load tied embeddings \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"test/bumblebee/text/roberta_test.exs"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3d2e2c9ad241bd532b933f904307b71140cbca77c756e9158e76a204cd2fbb4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: remove once we load tied embeddings \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"test/bumblebee/text/roberta_test.exs"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"abfc688243c8d55e30213b1f9959f79333e448343d5742e3238f9aecb50f3a87"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: remove options on v0.6 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee.ex"},"region":{"startLine":930}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b6c2cbddf7032b392161e898e32f0a58f9c6e7d3402438ce826c7f8aae33e55"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Add to Axon \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/layers.ex"},"region":{"startLine":1163}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b3be87d490d9ac56090eae5a4c9f12ccf4f60cc2065575b8b0f5a46253c8f12"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Replace with mean layer in Axon \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/vision/deit.ex"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a1695cc05c872f5f51b615f669ae6c73a27de946ff607f3ad0c1326eed3dc36"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: wrap encoder block in a layer_drop combinator \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/albert.ex"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c7a23a1e38fca9943b7f2ca256875d557682607bf23385e6618b231d6677c44"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: use a shared parameter with embeddings.word_embeddings.kernel \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/albert.ex"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ec52221a7d5c4fd0d1cff983e8f6424c1beb2ef7836abe1bd6bc2e5f4e94c25"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: use a shared parameter with embeddings.word_embeddings.kernel \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/bert.ex"},"region":{"startLine":626}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd8bd6ff0cb2105670f2f8371276706233b3c07af724d10692db0d9a164c92df"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: use a shared parameter with embeddings.word_embeddings.kernel \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/blip_text.ex"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fcd8e063ef04c479acbf9c84015bf0a5dd1781f7a5799192317a312a43efcc5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: use a shared parameter with embeddings.word_embeddings.kernel \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/distilbert.ex"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"b121c03074f78c0046db7cfa741aa36fff529a04adc7e4fc78df92c9c9a4951d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: use a shared parameter with embeddings.word_embeddings.kernel \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/roberta.ex"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a7829fd438703a8aa0256606cc8bbf15e2b2920e6aaca0675520678cf1d385a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: use a shared parameter with embeddings.word_embeddings.kernel \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/multimodal/layout_lm.ex"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"7af16c98ea34549d20996c5500e148cfa92a534b226f3f1a6ddd8fb5d6f9eee1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment repeated across 15 files: The identical TodoComment appears in 15 files (15 occurrences) \u2014 almost certainly one boilerplate line from a single migration or decision, not 15 independent debts. Fix the systemic cause once rather than file-by-file. Text: \u0022# TODO: Tie lm-head to word embedding as a spec option\u0022. Source code is not a task system: track the cleanup where tasks live. (Every occurrence still counts toward the score and metrics.)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/bart.ex"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"adf2c3eb318cfe73f5c32fa4678ffe27143957af89397e77f6f826e8700466d5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Axon needs a way to specify ignoring pad tokens \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/mistral.ex"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"b11fd6d7065cd40cc30ecf36ba0c91b0e53145ccbf51600c535630c2ef0aaa33"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Axon needs a way to specify ignoring pad tokens \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/phi.ex"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"71404f38e2614246a63e9e24c6ca052c7648fc725fbe11f44ced1f764e123a38"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Axon needs a way to specify ignoring pad tokens \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/phi3.ex"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cf898bcb21f470f0236d093fd715c14c449bbd6f1e3d6a4f6298aeeeffaa28a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Optional offset mapping \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/token_classification.ex"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e78c1c2200ccb4fc8de466fd4af4d95f0988232f126ff2520a6b6b5d51264a6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Non-BPE tokenizers \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/token_classification.ex"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"e620577cb1a24597ad9e8f57ed082e890709fd5996dec4ed23f5f6fb55bcbcde"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: use log_sumexp on Axon v0.6.1 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/generation/logits_processing.ex"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"267b4f263df0ad99ca91f292d7baff552387bbf89deac1b5ac6325e208ad0e6e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Explicitly tie these weights \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/multimodal/layout_lm.ex"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"148d0f6855b8801c5c668c8343d5d5d01ffbb4fdb6003555d65fa5f6f29f559b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: this is never loaded, add support for :ignored source name \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/diffusion/vae_kl.ex"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"250e0b91c673fccd1d8c2bf47d8e22da809d61014b693fa16dacc0db41530e53"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"341fef30e40c699fa8a97a3d601f89fa38aa7f3e554faea4a64aa429c32105e0"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f2f17c9ef6fa870e60e3e1bd06f07ccbedaf6a85d245c47c7a64c7c6173eaa12"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ba9ad9db77dfb9a4061a039cb77636eef9abaa0de5a66cd89b8498c145bb2c06"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0220d9068eff413ab13574f3a5788e9746fd5e82ca8c7083947857080e2c78ca"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8ac450f3b4e5f10489e7c4d355db844e369e333749501dd0c3df676e6d0bff28"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"093b03d676194f340b3fab024d73a5d0d527dfc04f99c9ad21fd578b1c94fed8"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2812793eb7a68144392a2559ecb26297cc27b5438995c7db9dc99964b39d63a9"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2d3b6423a8d27cd9fd2a58a7c5f85f5df6ac5fb69cdc9c963e75117f782c3ed7"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9924c677332d52330d079830fbbd9cec4cbef75381d3a1ef8cdd355d355954d2"},"properties":{"dependency":{"package":"cowlib","version":"2.16.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fb481229b7f07dab306ecb94f830ec69d91a468844f63169b104206229a1a533"},"properties":{"dependency":{"package":"plug","version":"1.18.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2d89d55bd73b86db12ae42a7be2e4adf4cd53c736546381a1dd68b459efeac7e"},"properties":{"dependency":{"package":"cowboy","version":"2.14.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7b07ef73e1136d16ebcc27bc5711fb8da6883d3311906692073da98bdd7504cc"},"properties":{"dependency":{"package":"plug_cowboy","version":"2.7.4","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","EEF-[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"12192512338528ab229b69a82f3b5f1b5c2b67cd1c3402767296d0878121b0f2"},"properties":{"dependency":{"package":"plug_crypto","version":"2.1.1","advisory":"EEF-[CVE redacted]","aliases":["[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/vision/swin.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d00ed0bc9e053c6836d2027e48c6cc3013296d41133995ec85a3910476017b8c"}},{"ruleId":"D34","level":"note","message":{"text":"Further orphaned files (smaller): 11 smaller file(s) also have no living knowledge \u2014 folded into the freshness score and metrics rather than raised one row each \u2014 most significant first: lib/bumblebee/diffusion/stable_diffusion_controlnet.ex, lib/bumblebee/diffusion/controlnet.ex, lib/bumblebee/text/mpnet.ex, lib/bumblebee/vision/dino_v2.ex, lib/bumblebee/text/distilbert.ex, lib/bumblebee/text/nomic_bert.ex, lib/bumblebee/diffusion/lcm_scheduler.ex, lib/bumblebee/text/text_reranking_qwen3.ex (and 3 more) (12 orphaned of 95 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 95 of the 110 production source files in this repository met that bar). Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/diffusion/stable_diffusion_controlnet.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ab59b2411d1e656f5f50ed1fdf1e62f8207909f60fe9199228a452f5cc464e0"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/diffusion/controlnet.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d06812f043355faee817d3afdcd81ae9fff7f59bcc051d6db759160455735e12"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/mpnet.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e9790eaad59904072c91fb796cba767eddb31633f0edfc85d4f285dfc0fd13d"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/vision/dino_v2.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"252d3be870589fa8cf30f53032e51b646231b92ea54d2dcbd35adc86087ad0a5"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/distilbert.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4823208cdf03f32f74e47eece7926a8266a66c15c4d147aa13d938592e47310f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/nomic_bert.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae3da7b2b25f5d14f9b24128640fbc71ea1ada73f8c15c14c068e6207d9e5735"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/diffusion/lcm_scheduler.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d74cda4cf4f63f982216c5cb7d8507becd6c6ffc80747588e3a3252eb6916ad"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/text_reranking_qwen3.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6846d10ad4d192413cb559de1bcc77609380cfbe81f4391a262a99a2b85995a"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/vision/bit_featurizer.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"669e6767dd1ef83c50703fa4973a283a88c5d13b7b87d18ef8086b47ecdbff84"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/cross_encoding.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"30b727d56809037ee7b5bb7275205536705f9808971d6b8756588b8d9d4f51a6"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/scheduler.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea5e7a2fc9ce53606b3429535f378ce711cad2d2991eddc0ea1c09c7d69d4812"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: deit.ex \u2194 vit.ex: \u0060lib/bumblebee/vision/deit.ex\u0060 and \u0060lib/bumblebee/vision/vit.ex\u0060 change together 92% of the time (12 of the 13 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 12 shared commits counted here, the most recent 3 are \u0060f739e0ac\u0060 Add DINOv2 model (#334); \u0060e0e7c2ad\u0060 Rename ViT and DeiT :for_masked_image_modeling output from :logits to\u2026; \u00602344cbaf\u0060 Refactor embedding layers (#196) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/vision/deit.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"84d285d4858c3f191313f5f31e2156c00da8a4cc8fa196a38d3932bff44defbf"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: text.ex \u2194 vision.ex: \u0060lib/bumblebee/text.ex\u0060 and \u0060lib/bumblebee/vision.ex\u0060 change together 64% of the time (7 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are \u006082905452\u0060 Update serving input specs to also allow nil for optional attributes; \u0060b63e7127\u0060 Make randomization seed a serving input, rather than compile option (\u2026; \u006076a45d37\u0060 Add projection heads for ClipText and ClipVision (#276) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"56f52f3d240c70179a63d8b36bb6af8c1aa2dfb638f3e67e506c1e1145082f80"}},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"812bc5f27d9034c390469b8ab8a576aa80c3f9cc33de17269ab78b392c804e47"},"taxa":[{"id":"CICD-SEC-5","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d339e23018d6ba57a64e7789bce515a9b72a731c2f4069852406dd1012e4a611"},"taxa":[{"id":"CICD-SEC-5","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"},"taxa":[{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"M2","level":"note","message":{"text":"No architecture diagram/doc: No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named \u0060architecture\u0060 or \u0060design\u0060 in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape \u2014 no \u0060## Architecture\u0060 heading, no \u0022architecture overview\u0022/\u0022high-level design\u0022 phrasing, no \u0022the architecture is \u2026\u0022 introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document \u2014 not evidence that nobody wrote the shape down."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0c190e7c159d1850ee706c3ac4486e151e8a4fe169de4bf61436b9f399654f06"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add sobelow (Elixir/Phoenix) (or \u0060semgrep --config=auto\u0060, which runs on any language) as a CI step. What was searched, so you can tell an absence from a miss: the 2 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/test.yaml"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"S1","level":"warning","message":{"text":"Weak hash algorithm: MD5/SHA1 is computed here, and both are collision-broken. If this digest protects anything \u2014 a signature, an integrity or tamper check, a credential, or any value an attacker can influence \u2014 that is a real weakness: use SHA-256\u002B (\u0060:crypto.hash(:sha256, data)\u0060) for content integrity, or a KDF (bcrypt/Argon2/scrypt) for password storage. If it only derives a non-security identifier (a cache key, an avatar URL, an ETag), collision resistance carries no security consequence here; make that intent explicit instead \u2014 a non-cryptographic hash such as xxhash or murmurhash says it in code \u2014 since the algorithm alone cannot distinguish the two uses. Where a protocol this code does not own fixes the digest (a k-anonymity range query, a legacy signature format), the protocol decides; say so beside the call."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/huggingface/hub.ex"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2264038e3117320ea7da6ce8475708a35fed5a797685707b6fce221c72c044a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Code.ensure_loaded?(module) and function_exported?(module, :process_batch, 2)\u0060 appears character-identically in 2 files \u2014 lib/bumblebee.ex, lib/bumblebee/featurizer.ex. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee.ex"},"region":{"startLine":812}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d54be07e84a582256605cba5b2d5165a1fd43e9a41fa31380e78e7132e626f8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060featurizer.resize and Shared.featurizer_size_fixed?(featurizer.size) and not featurizer.center_crop\u0060 appears character-identically in 2 files \u2014 lib/bumblebee/vision/bit_featurizer.ex, lib/bumblebee/vision/clip_featurizer.ex. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/vision/bit_featurizer.ex"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea8e52380b32857df9ed57af0a423e3e183d2a5fcdc1d8ca3e85be6a6756dd99"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060safety_checker != nil and safety_checker_featurizer == nil\u0060 appears character-identically in 2 files \u2014 lib/bumblebee/diffusion/stable_diffusion.ex, lib/bumblebee/diffusion/stable_diffusion_controlnet.ex. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/diffusion/stable_diffusion.ex"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"d18de21f72a9407c501005e145444f6c82d0fb28dadf245e3555cdb01c8763a0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060safety_checker_params \u0026\u0026 Shared.maybe_preallocate(safety_checker_params, preallocate_params, defn_options)\u0060 appears character-identically in 2 files \u2014 lib/bumblebee/diffusion/stable_diffusion.ex, lib/bumblebee/diffusion/stable_diffusion_controlnet.ex. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/diffusion/stable_diffusion.ex"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bb54191584b59894e4e66306abb48bf79b6dff2fe66ba4719f0ca57fd10ca56"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060spec.classifier_dropout_rate || spec.dropout_rate\u0060 appears character-identically in 10 files \u2014 lib/bumblebee/multimodal/layout_lm.ex, lib/bumblebee/text/albert.ex, lib/bumblebee/text/bert.ex, lib/bumblebee/text/deberta_v2.ex. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/multimodal/layout_lm.ex"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f80840ad3293838a374de8f46e46be4e3b1734233e9b2df291838f692462862"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060spec.intermediate_size || 4 * spec.hidden_size\u0060 appears character-identically in 2 files \u2014 lib/bumblebee/text/gpt2.ex, lib/bumblebee/text/gpt_big_code.ex. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/gpt2.ex"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1d38b9a8140c90880904270c3dd19e21840050150487ad9c44c3618e30bc3aa"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060spec.layer_types || generate_layer_types(spec.num_blocks)\u0060 appears character-identically in 2 files \u2014 lib/bumblebee/text/gemma3_text.ex, lib/bumblebee/text/modernbert.ex. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/bumblebee/text/gemma3_text.ex"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1a9eab0754042e3fd8935a98ffafd48c54b59088fd6f4026bc212cc0b87f997"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"id":"CICD-SEC-5","guid":"cc7f4610-8859-e654-9029-d5f97d992220","name":"Insufficient PBAC (Pipeline-Based Access Controls)","shortDescription":{"text":"Insufficient PBAC (Pipeline-Based Access Controls)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-05-Insufficient-PBAC"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":16,"secretScannerRunsExcluded":0}},"redactionTokens":["A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."]}]}